diff --git a/node_modules/basic-ftp/dist/parseListMLSD.js b/node_modules/basic-ftp/dist/parseListMLSD.js deleted file mode 100644 index afa3123..0000000 --- a/node_modules/basic-ftp/dist/parseListMLSD.js +++ /dev/null @@ -1,187 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.testLine = testLine; -exports.parseLine = parseLine; -exports.transformList = transformList; -exports.parseMLSxDate = parseMLSxDate; -const FileInfo_1 = require("./FileInfo"); -function parseSize(value, info) { - info.size = parseInt(value, 10); -} -/** - * Parsers for MLSD facts. - */ -const factHandlersByName = { - "size": parseSize, // File size - "sizd": parseSize, // Directory size - "unique": (value, info) => { - info.uniqueID = value; - }, - "modify": (value, info) => { - info.modifiedAt = parseMLSxDate(value); - info.rawModifiedAt = info.modifiedAt.toISOString(); - }, - "type": (value, info) => { - // There seems to be confusion on how to handle symbolic links for Unix. RFC 3659 doesn't describe - // this but mentions some examples using the syntax `type=OS.unix=slink:`. But according to - // an entry in the Errata (https://www.rfc-editor.org/errata/eid1500) this syntax can't be valid. - // Instead it proposes to use `type=OS.unix=symlink` and to then list the actual target of the - // symbolic link as another entry in the directory listing. The unique identifiers can then be used - // to derive the connection between link(s) and target. We'll have to handle both cases as there - // are differing opinions on how to deal with this. Here are some links on this topic: - // - ProFTPD source: https://github.com/proftpd/proftpd/blob/56e6dfa598cbd4ef5c6cba439bcbcd53a63e3b21/modules/mod_facts.c#L531 - // - ProFTPD bug: http://bugs.proftpd.org/show_bug.cgi?id=3318 - // - ProFTPD statement: http://www.proftpd.org/docs/modules/mod_facts.html - // – FileZilla bug: https://trac.filezilla-project.org/ticket/9310 - if (value.startsWith("OS.unix=slink")) { - info.type = FileInfo_1.FileType.SymbolicLink; - info.link = value.substr(value.indexOf(":") + 1); - return 1 /* FactHandlerResult.Continue */; - } - switch (value) { - case "file": - info.type = FileInfo_1.FileType.File; - break; - case "dir": - info.type = FileInfo_1.FileType.Directory; - break; - case "OS.unix=symlink": - info.type = FileInfo_1.FileType.SymbolicLink; - // The target of the symbolic link might be defined in another line in the directory listing. - // We'll handle this in `transformList()` below. - break; - case "cdir": // Current directory being listed - case "pdir": // Parent directory - return 2 /* FactHandlerResult.IgnoreFile */; // Don't include these entries in the listing - default: - info.type = FileInfo_1.FileType.Unknown; - } - return 1 /* FactHandlerResult.Continue */; - }, - "unix.mode": (value, info) => { - const digits = value.substr(-3); - info.permissions = { - user: parseInt(digits[0], 10), - group: parseInt(digits[1], 10), - world: parseInt(digits[2], 10) - }; - }, - "unix.ownername": (value, info) => { - info.user = value; - }, - "unix.owner": (value, info) => { - if (info.user === undefined) - info.user = value; - }, - get "unix.uid"() { - return this["unix.owner"]; - }, - "unix.groupname": (value, info) => { - info.group = value; - }, - "unix.group": (value, info) => { - if (info.group === undefined) - info.group = value; - }, - get "unix.gid"() { - return this["unix.group"]; - } - // Regarding the fact "perm": - // We don't handle permission information stored in "perm" because its information is conceptually - // different from what users of FTP clients usually associate with "permissions". Those that have - // some expectations (and probably want to edit them with a SITE command) often unknowingly expect - // the Unix permission system. The information passed by "perm" describes what FTP commands can be - // executed with a file/directory. But even this can be either incomplete or just meant as a "guide" - // as the spec mentions. From https://tools.ietf.org/html/rfc3659#section-7.5.5: "The permissions are - // described here as they apply to FTP commands. They may not map easily into particular permissions - // available on the server's operating system." The parser by Apache Commons tries to translate these - // to Unix permissions – this is misleading users and might not even be correct. -}; -/** - * Split a string once at the first position of a delimiter. For example - * `splitStringOnce("a b c d", " ")` returns `["a", "b c d"]`. - */ -function splitStringOnce(str, delimiter) { - const pos = str.indexOf(delimiter); - const a = str.substr(0, pos); - const b = str.substr(pos + delimiter.length); - return [a, b]; -} -/** - * Returns true if a given line might be part of an MLSD listing. - * - * - Example 1: `size=15227;type=dir;perm=el;modify=20190419065730; test one` - * - Example 2: ` file name` (leading space) - */ -function testLine(line) { - return /^\S+=\S+;/.test(line) || line.startsWith(" "); -} -/** - * Parse single line as MLSD listing, see specification at https://tools.ietf.org/html/rfc3659#section-7. - */ -function parseLine(line) { - const [packedFacts, name] = splitStringOnce(line, " "); - if (name === "" || name === "." || name === "..") { - return undefined; - } - const info = new FileInfo_1.FileInfo(name); - const facts = packedFacts.split(";"); - for (const fact of facts) { - const [factName, factValue] = splitStringOnce(fact, "="); - if (!factValue) { - continue; - } - const factHandler = factHandlersByName[factName.toLowerCase()]; - if (!factHandler) { - continue; - } - const result = factHandler(factValue, info); - if (result === 2 /* FactHandlerResult.IgnoreFile */) { - return undefined; - } - } - return info; -} -function transformList(files) { - // Create a map of all files that are not symbolic links by their unique ID - const nonLinksByID = new Map(); - for (const file of files) { - if (!file.isSymbolicLink && file.uniqueID !== undefined) { - nonLinksByID.set(file.uniqueID, file); - } - } - const resolvedFiles = []; - for (const file of files) { - // Try to associate unresolved symbolic links with a target file/directory. - if (file.isSymbolicLink && file.uniqueID !== undefined && file.link === undefined) { - const target = nonLinksByID.get(file.uniqueID); - if (target !== undefined) { - file.link = target.name; - } - } - // The target of a symbolic link is listed as an entry in the directory listing but might - // have a path pointing outside of this directory. In that case we don't want this entry - // to be part of the listing. We generally don't want these kind of entries at all. - const isPartOfDirectory = !file.name.includes("/"); - if (isPartOfDirectory) { - resolvedFiles.push(file); - } - } - return resolvedFiles; -} -/** - * Parse date as specified in https://tools.ietf.org/html/rfc3659#section-2.3. - * - * Message contains response code and modified time in the format: YYYYMMDDHHMMSS[.sss] - * For example `19991005213102` or `19980615100045.014`. - */ -function parseMLSxDate(fact) { - return new Date(Date.UTC(+fact.slice(0, 4), // Year - +fact.slice(4, 6) - 1, // Month - +fact.slice(6, 8), // Date - +fact.slice(8, 10), // Hours - +fact.slice(10, 12), // Minutes - +fact.slice(12, 14), // Seconds - +fact.slice(15, 18) // Milliseconds - )); -} diff --git a/node_modules/basic-ftp/dist/parseListUnix.d.ts b/node_modules/basic-ftp/dist/parseListUnix.d.ts deleted file mode 100644 index d33b052..0000000 --- a/node_modules/basic-ftp/dist/parseListUnix.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { FileInfo } from "./FileInfo"; -/** - * Returns true if a given line might be a Unix-style listing. - * - * - Example: `-rw-r--r--+ 1 patrick staff 1057 Dec 11 14:35 test.txt` - */ -export declare function testLine(line: string): boolean; -/** - * Parse a single line of a Unix-style directory listing. - */ -export declare function parseLine(line: string): FileInfo | undefined; -export declare function transformList(files: FileInfo[]): FileInfo[]; diff --git a/node_modules/basic-ftp/dist/parseListUnix.js b/node_modules/basic-ftp/dist/parseListUnix.js deleted file mode 100644 index 7bf5350..0000000 --- a/node_modules/basic-ftp/dist/parseListUnix.js +++ /dev/null @@ -1,155 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.testLine = testLine; -exports.parseLine = parseLine; -exports.transformList = transformList; -const FileInfo_1 = require("./FileInfo"); -const JA_MONTH = "\u6708"; -const JA_DAY = "\u65e5"; -const JA_YEAR = "\u5e74"; -/** - * This parser is based on the FTP client library source code in Apache Commons Net provided - * under the Apache 2.0 license. It has been simplified and rewritten to better fit the Javascript language. - * - * https://github.com/apache/commons-net/blob/master/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java - * - * Below is the regular expression used by this parser. - * - * Permissions: - * r the file is readable - * w the file is writable - * x the file is executable - * - the indicated permission is not granted - * L mandatory locking occurs during access (the set-group-ID bit is - * on and the group execution bit is off) - * s the set-user-ID or set-group-ID bit is on, and the corresponding - * user or group execution bit is also on - * S undefined bit-state (the set-user-ID bit is on and the user - * execution bit is off) - * t the 1000 (octal) bit, or sticky bit, is on [see chmod(1)], and - * execution is on - * T the 1000 bit is turned on, and execution is off (undefined bit- - * state) - * e z/OS external link bit - * Final letter may be appended: - * + file has extended security attributes (e.g. ACL) - * Note: local listings on MacOSX also use '@' - * this is not allowed for here as does not appear to be shown by FTP servers - * {@code @} file has extended attributes - */ -const RE_LINE = new RegExp("([bcdelfmpSs-])" // file type - + "(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]?)))\\+?" // permissions - + "\\s*" // separator TODO why allow it to be omitted?? - + "(\\d+)" // link count - + "\\s+" // separator - + "(?:(\\S+(?:\\s\\S+)*?)\\s+)?" // owner name (optional spaces) - + "(?:(\\S+(?:\\s\\S+)*)\\s+)?" // group name (optional spaces) - + "(\\d+(?:,\\s*\\d+)?)" // size or n,m - + "\\s+" // separator - /** - * numeric or standard format date: - * yyyy-mm-dd (expecting hh:mm to follow) - * MMM [d]d - * [d]d MMM - * N.B. use non-space for MMM to allow for languages such as German which use - * diacritics (e.g. umlaut) in some abbreviations. - * Japanese uses numeric day and month with suffixes to distinguish them - * [d]dXX [d]dZZ - */ - + "(" + - "(?:\\d+[-/]\\d+[-/]\\d+)" + // yyyy-mm-dd - "|(?:\\S{3}\\s+\\d{1,2})" + // MMM [d]d - "|(?:\\d{1,2}\\s+\\S{3})" + // [d]d MMM - "|(?:\\d{1,2}" + JA_MONTH + "\\s+\\d{1,2}" + JA_DAY + ")" + - ")" - + "\\s+" // separator - /** - * year (for non-recent standard format) - yyyy - * or time (for numeric or recent standard format) [h]h:mm - * or Japanese year - yyyyXX - */ - + "((?:\\d+(?::\\d+)?)|(?:\\d{4}" + JA_YEAR + "))" // (20) - + "\\s" // separator - + "(.*)"); // the rest (21) -/** - * Returns true if a given line might be a Unix-style listing. - * - * - Example: `-rw-r--r--+ 1 patrick staff 1057 Dec 11 14:35 test.txt` - */ -function testLine(line) { - return RE_LINE.test(line); -} -/** - * Parse a single line of a Unix-style directory listing. - */ -function parseLine(line) { - const groups = line.match(RE_LINE); - if (groups === null) { - return undefined; - } - const name = groups[21]; - if (name === "." || name === "..") { // Ignore parent directory links - return undefined; - } - const file = new FileInfo_1.FileInfo(name); - file.size = parseInt(groups[18], 10); - file.user = groups[16]; - file.group = groups[17]; - file.hardLinkCount = parseInt(groups[15], 10); - file.rawModifiedAt = groups[19] + " " + groups[20]; - file.permissions = { - user: parseMode(groups[4], groups[5], groups[6]), - group: parseMode(groups[8], groups[9], groups[10]), - world: parseMode(groups[12], groups[13], groups[14]), - }; - // Set file type - switch (groups[1].charAt(0)) { - case "d": - file.type = FileInfo_1.FileType.Directory; - break; - case "e": // NET-39 => z/OS external link - file.type = FileInfo_1.FileType.SymbolicLink; - break; - case "l": - file.type = FileInfo_1.FileType.SymbolicLink; - break; - case "b": - case "c": - file.type = FileInfo_1.FileType.File; // TODO change this if DEVICE_TYPE implemented - break; - case "f": - case "-": - file.type = FileInfo_1.FileType.File; - break; - default: - // A 'whiteout' file is an ARTIFICIAL entry in any of several types of - // 'translucent' filesystems, of which a 'union' filesystem is one. - file.type = FileInfo_1.FileType.Unknown; - } - // Separate out the link name for symbolic links - if (file.isSymbolicLink) { - const end = name.indexOf(" -> "); - if (end !== -1) { - file.name = name.substring(0, end); - file.link = name.substring(end + 4); - } - } - return file; -} -function transformList(files) { - return files; -} -function parseMode(r, w, x) { - let value = 0; - if (r !== "-") { - value += FileInfo_1.FileInfo.UnixPermission.Read; - } - if (w !== "-") { - value += FileInfo_1.FileInfo.UnixPermission.Write; - } - const execToken = x.charAt(0); - if (execToken !== "-" && execToken.toUpperCase() !== execToken) { - value += FileInfo_1.FileInfo.UnixPermission.Execute; - } - return value; -} diff --git a/node_modules/basic-ftp/dist/transfer.d.ts b/node_modules/basic-ftp/dist/transfer.d.ts deleted file mode 100644 index 4dbd3b5..0000000 --- a/node_modules/basic-ftp/dist/transfer.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Writable, Readable } from "stream"; -import { FTPContext, FTPResponse } from "./FtpContext"; -import { ProgressTracker, ProgressType } from "./ProgressTracker"; -export type UploadCommand = "STOR" | "APPE"; -/** - * Prepare a data socket using passive mode over IPv6. - */ -export declare function enterPassiveModeIPv6(ftp: FTPContext): Promise; -/** - * Parse an EPSV response. Returns only the port as in EPSV the host of the control connection is used. - */ -export declare function parseEpsvResponse(message: string): number; -/** - * Prepare a data socket using passive mode over IPv4. - */ -export declare function enterPassiveModeIPv4(ftp: FTPContext): Promise; -/** - * Prepare a data socket using passive mode over IPv4. Ignore the IP provided by the PASV response, - * and use the control host IP. This is the same behaviour as with the more modern variant EPSV. Use - * this to fix issues around NAT or provide more security by preventing FTP bounce attacks. - */ -export declare function enterPassiveModeIPv4_forceControlHostIP(ftp: FTPContext): Promise; -/** - * Parse a PASV response. - */ -export declare function parsePasvResponse(message: string): { - host: string; - port: number; -}; -export declare function connectForPassiveTransfer(host: string, port: number, ftp: FTPContext): Promise; -export interface TransferConfig { - command: string; - remotePath: string; - type: ProgressType; - ftp: FTPContext; - tracker: ProgressTracker; -} -export declare function uploadFrom(source: Readable, config: TransferConfig): Promise; -export declare function downloadTo(destination: Writable, config: TransferConfig): Promise; diff --git a/node_modules/basic-ftp/dist/transfer.js b/node_modules/basic-ftp/dist/transfer.js deleted file mode 100644 index 6a12b21..0000000 --- a/node_modules/basic-ftp/dist/transfer.js +++ /dev/null @@ -1,318 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.enterPassiveModeIPv6 = enterPassiveModeIPv6; -exports.parseEpsvResponse = parseEpsvResponse; -exports.enterPassiveModeIPv4 = enterPassiveModeIPv4; -exports.enterPassiveModeIPv4_forceControlHostIP = enterPassiveModeIPv4_forceControlHostIP; -exports.parsePasvResponse = parsePasvResponse; -exports.connectForPassiveTransfer = connectForPassiveTransfer; -exports.uploadFrom = uploadFrom; -exports.downloadTo = downloadTo; -const netUtils_1 = require("./netUtils"); -const stream_1 = require("stream"); -const tls_1 = require("tls"); -const parseControlResponse_1 = require("./parseControlResponse"); -/** - * Prepare a data socket using passive mode over IPv6. - */ -async function enterPassiveModeIPv6(ftp) { - const res = await ftp.request("EPSV"); - const port = parseEpsvResponse(res.message); - if (!port) { - throw new Error("Can't parse EPSV response: " + res.message); - } - const controlHost = ftp.socket.remoteAddress; - if (controlHost === undefined) { - throw new Error("Control socket is disconnected, can't get remote address."); - } - await connectForPassiveTransfer(controlHost, port, ftp); - return res; -} -/** - * Parse an EPSV response. Returns only the port as in EPSV the host of the control connection is used. - */ -function parseEpsvResponse(message) { - // Get port from EPSV response, e.g. "229 Entering Extended Passive Mode (|||6446|)" - // Some FTP Servers such as the one on IBM i (OS/400) use ! instead of | in their EPSV response. - const groups = message.match(/[|!]{3}(.+)[|!]/); - if (groups === null || groups[1] === undefined) { - throw new Error(`Can't parse response to 'EPSV': ${message}`); - } - const port = parseInt(groups[1], 10); - if (Number.isNaN(port)) { - throw new Error(`Can't parse response to 'EPSV', port is not a number: ${message}`); - } - return port; -} -/** - * Prepare a data socket using passive mode over IPv4. - */ -async function enterPassiveModeIPv4(ftp) { - const res = await ftp.request("PASV"); - const target = parsePasvResponse(res.message); - if (!target) { - throw new Error("Can't parse PASV response: " + res.message); - } - // If the host in the PASV response has a local address while the control connection hasn't, - // we assume a NAT issue and use the IP of the control connection as the target for the data connection. - // We can't always perform this replacement because it's possible (although unlikely) that the FTP server - // indeed uses a different host for data connections. - const controlHost = ftp.socket.remoteAddress; - if ((0, netUtils_1.ipIsPrivateV4Address)(target.host) && controlHost && !(0, netUtils_1.ipIsPrivateV4Address)(controlHost)) { - target.host = controlHost; - } - await connectForPassiveTransfer(target.host, target.port, ftp); - return res; -} -/** - * Prepare a data socket using passive mode over IPv4. Ignore the IP provided by the PASV response, - * and use the control host IP. This is the same behaviour as with the more modern variant EPSV. Use - * this to fix issues around NAT or provide more security by preventing FTP bounce attacks. - */ -async function enterPassiveModeIPv4_forceControlHostIP(ftp) { - const res = await ftp.request("PASV"); - const target = parsePasvResponse(res.message); - if (!target) { - throw new Error("Can't parse PASV response: " + res.message); - } - const controlHost = ftp.socket.remoteAddress; - if (controlHost === undefined) { - throw new Error("Control socket is disconnected, can't get remote address."); - } - await connectForPassiveTransfer(controlHost, target.port, ftp); - return res; -} -/** - * Parse a PASV response. - */ -function parsePasvResponse(message) { - // Get host and port from PASV response, e.g. "227 Entering Passive Mode (192,168,1,100,10,229)" - const groups = message.match(/([-\d]+,[-\d]+,[-\d]+,[-\d]+),([-\d]+),([-\d]+)/); - if (groups === null || groups.length !== 4) { - throw new Error(`Can't parse response to 'PASV': ${message}`); - } - return { - host: groups[1].replace(/,/g, "."), - port: (parseInt(groups[2], 10) & 255) * 256 + (parseInt(groups[3], 10) & 255) - }; -} -function connectForPassiveTransfer(host, port, ftp) { - return new Promise((resolve, reject) => { - let socket = ftp._newSocket(); - const handleConnErr = function (err) { - err.message = "Can't open data connection in passive mode: " + err.message; - reject(err); - }; - const handleTimeout = function () { - socket.destroy(); - reject(new Error(`Timeout when trying to open data connection to ${host}:${port}`)); - }; - socket.setTimeout(ftp.timeout); - socket.on("error", handleConnErr); - socket.on("timeout", handleTimeout); - socket.connect({ port, host, family: ftp.ipFamily }, () => { - if (ftp.socket instanceof tls_1.TLSSocket) { - socket = (0, tls_1.connect)(Object.assign({}, ftp.tlsOptions, { - socket, - // Reuse the TLS session negotiated earlier when the control connection - // was upgraded. Servers expect this because it provides additional - // security: If a completely new session would be negotiated, a hacker - // could guess the port and connect to the new data connection before we do - // by just starting his/her own TLS session. - session: ftp.socket.getSession() - })); - // It's the responsibility of the transfer task to wait until the - // TLS socket issued the event 'secureConnect'. We can't do this - // here because some servers will start upgrading after the - // specific transfer request has been made. List and download don't - // have to wait for this event because the server sends whenever it - // is ready. But for upload this has to be taken into account, - // see the details in the upload() function below. - } - // Let the FTPContext listen to errors from now on, remove local handler. - socket.removeListener("error", handleConnErr); - socket.removeListener("timeout", handleTimeout); - ftp.dataSocket = socket; - resolve(); - }); - }); -} -/** - * Helps resolving/rejecting transfers. - * - * This is used internally for all FTP transfers. For example when downloading, the server might confirm - * with "226 Transfer complete" when in fact the download on the data connection has not finished - * yet. With all transfers we make sure that a) the result arrived and b) has been confirmed by - * e.g. the control connection. We just don't know in which order this will happen. - */ -class TransferResolver { - /** - * Instantiate a TransferResolver - */ - constructor(ftp, progress) { - this.ftp = ftp; - this.progress = progress; - this.response = undefined; - this.dataTransferDone = false; - } - /** - * Mark the beginning of a transfer. - * - * @param name - Name of the transfer, usually the filename. - * @param type - Type of transfer, usually "upload" or "download". - */ - onDataStart(name, type) { - // Let the data socket be in charge of tracking timeouts during transfer. - // The control socket sits idle during this time anyway and might provoke - // a timeout unnecessarily. The control connection will take care - // of timeouts again once data transfer is complete or failed. - if (this.ftp.dataSocket === undefined) { - throw new Error("Data transfer should start but there is no data connection."); - } - this.ftp.socket.setTimeout(0); - this.ftp.dataSocket.setTimeout(this.ftp.timeout); - this.progress.start(this.ftp.dataSocket, name, type); - } - /** - * The data connection has finished the transfer. - */ - onDataDone(task) { - this.progress.updateAndStop(); - // Hand-over timeout tracking back to the control connection. It's possible that - // we don't receive the response over the control connection that the transfer is - // done. In this case, we want to correctly associate the resulting timeout with - // the control connection. - this.ftp.socket.setTimeout(this.ftp.timeout); - if (this.ftp.dataSocket) { - this.ftp.dataSocket.setTimeout(0); - } - this.dataTransferDone = true; - this.tryResolve(task); - } - /** - * The control connection reports the transfer as finished. - */ - onControlDone(task, response) { - this.response = response; - this.tryResolve(task); - } - /** - * An error has been reported and the task should be rejected. - */ - onError(task, err) { - this.progress.updateAndStop(); - this.ftp.socket.setTimeout(this.ftp.timeout); - this.ftp.dataSocket = undefined; - task.reject(err); - } - /** - * Control connection sent an unexpected request requiring a response from our part. We - * can't provide that (because unknown) and have to close the contrext with an error because - * the FTP server is now caught up in a state we can't resolve. - */ - onUnexpectedRequest(response) { - const err = new Error(`Unexpected FTP response is requesting an answer: ${response.message}`); - this.ftp.closeWithError(err); - } - tryResolve(task) { - // To resolve, we need both control and data connection to report that the transfer is done. - const canResolve = this.dataTransferDone && this.response !== undefined; - if (canResolve) { - this.ftp.dataSocket = undefined; - task.resolve(this.response); - } - } -} -function uploadFrom(source, config) { - const resolver = new TransferResolver(config.ftp, config.tracker); - const fullCommand = `${config.command} ${config.remotePath}`; - return config.ftp.handle(fullCommand, (res, task) => { - if (res instanceof Error) { - resolver.onError(task, res); - } - else if (res.code === 150 || res.code === 125) { // Ready to upload - const dataSocket = config.ftp.dataSocket; - if (!dataSocket) { - resolver.onError(task, new Error("Upload should begin but no data connection is available.")); - return; - } - // If we are using TLS, we have to wait until the dataSocket issued - // 'secureConnect'. If this hasn't happened yet, getCipher() returns undefined. - const canUpload = "getCipher" in dataSocket ? dataSocket.getCipher() !== undefined : true; - onConditionOrEvent(canUpload, dataSocket, "secureConnect", () => { - config.ftp.log(`Uploading to ${(0, netUtils_1.describeAddress)(dataSocket)} (${(0, netUtils_1.describeTLS)(dataSocket)})`); - resolver.onDataStart(config.remotePath, config.type); - (0, stream_1.pipeline)(source, dataSocket, err => { - if (err) { - resolver.onError(task, err); - } - else { - resolver.onDataDone(task); - } - }); - }); - } - else if ((0, parseControlResponse_1.positiveCompletion)(res.code)) { // Transfer complete - resolver.onControlDone(task, res); - } - else if ((0, parseControlResponse_1.positiveIntermediate)(res.code)) { - resolver.onUnexpectedRequest(res); - } - // Ignore all other positive preliminary response codes (< 200) - }); -} -function downloadTo(destination, config) { - if (!config.ftp.dataSocket) { - throw new Error("Download will be initiated but no data connection is available."); - } - const resolver = new TransferResolver(config.ftp, config.tracker); - return config.ftp.handle(config.command, (res, task) => { - if (res instanceof Error) { - resolver.onError(task, res); - } - else if (res.code === 150 || res.code === 125) { // Ready to download - const dataSocket = config.ftp.dataSocket; - if (!dataSocket) { - resolver.onError(task, new Error("Download should begin but no data connection is available.")); - return; - } - config.ftp.log(`Downloading from ${(0, netUtils_1.describeAddress)(dataSocket)} (${(0, netUtils_1.describeTLS)(dataSocket)})`); - resolver.onDataStart(config.remotePath, config.type); - (0, stream_1.pipeline)(dataSocket, destination, err => { - if (err) { - resolver.onError(task, err); - } - else { - resolver.onDataDone(task); - } - }); - } - else if (res.code === 350) { // Restarting at startAt. - config.ftp.send("RETR " + config.remotePath); - } - else if ((0, parseControlResponse_1.positiveCompletion)(res.code)) { // Transfer complete - resolver.onControlDone(task, res); - } - else if ((0, parseControlResponse_1.positiveIntermediate)(res.code)) { - resolver.onUnexpectedRequest(res); - } - // Ignore all other positive preliminary response codes (< 200) - }); -} -/** - * Calls a function immediately if a condition is met or subscribes to an event and calls - * it once the event is emitted. - * - * @param condition The condition to test. - * @param emitter The emitter to use if the condition is not met. - * @param eventName The event to subscribe to if the condition is not met. - * @param action The function to call. - */ -function onConditionOrEvent(condition, emitter, eventName, action) { - if (condition === true) { - action(); - } - else { - emitter.once(eventName, () => action()); - } -} diff --git a/node_modules/basic-ftp/package.json b/node_modules/basic-ftp/package.json deleted file mode 100644 index 37b49b5..0000000 --- a/node_modules/basic-ftp/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "basic-ftp", - "version": "5.2.0", - "description": "FTP client for Node.js, supports FTPS over TLS, IPv6, Async/Await, and Typescript.", - "main": "dist/index", - "types": "dist/index", - "files": [ - "dist/**/*" - ], - "scripts": { - "prepublishOnly": "npm run clean && npm run lint && tsc && mocha", - "prepare": "tsc", - "test": "npm run prepublishOnly", - "clean": "rm -rf dist", - "lint": "eslint \"./src/**/*.ts\"", - "lint-fix": "eslint --fix \"./src/**/*.ts\"", - "dev": "npm run clean && tsc --watch", - "tdd": "mocha --watch", - "buildOnly": "tsc" - }, - "repository": { - "type": "git", - "url": "https://github.com/patrickjuchli/basic-ftp.git" - }, - "author": "Patrick Juchli ", - "license": "MIT", - "keywords": [ - "ftp", - "ftps", - "promise", - "async", - "await", - "tls", - "ipv6", - "typescript" - ], - "engines": { - "node": ">=10.0.0" - }, - "devDependencies": { - "@eslint/eslintrc": "3.3.3", - "@eslint/js": "10.0.1", - "@types/mocha": "10.0.10", - "@types/node": "25.3.0", - "@typescript-eslint/eslint-plugin": "8.56.0", - "@typescript-eslint/parser": "8.56.0", - "eslint": "10.0.1", - "globals": "17.3.0", - "mocha": "11.7.5", - "typescript": "5.9.3" - } -} diff --git a/node_modules/buffer-crc32/LICENSE b/node_modules/buffer-crc32/LICENSE deleted file mode 100644 index 4cef10e..0000000 --- a/node_modules/buffer-crc32/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -The MIT License - -Copyright (c) 2013 Brian J. Brennan - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the -Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE -FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/buffer-crc32/README.md b/node_modules/buffer-crc32/README.md deleted file mode 100644 index 0d9d8b8..0000000 --- a/node_modules/buffer-crc32/README.md +++ /dev/null @@ -1,47 +0,0 @@ -# buffer-crc32 - -[![Build Status](https://secure.travis-ci.org/brianloveswords/buffer-crc32.png?branch=master)](http://travis-ci.org/brianloveswords/buffer-crc32) - -crc32 that works with binary data and fancy character sets, outputs -buffer, signed or unsigned data and has tests. - -Derived from the sample CRC implementation in the PNG specification: http://www.w3.org/TR/PNG/#D-CRCAppendix - -# install -``` -npm install buffer-crc32 -``` - -# example -```js -var crc32 = require('buffer-crc32'); -// works with buffers -var buf = Buffer([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]) -crc32(buf) // -> - -// has convenience methods for getting signed or unsigned ints -crc32.signed(buf) // -> -1805997238 -crc32.unsigned(buf) // -> 2488970058 - -// will cast to buffer if given a string, so you can -// directly use foreign characters safely -crc32('自動販売機') // -> - -// and works in append mode too -var partialCrc = crc32('hey'); -var partialCrc = crc32(' ', partialCrc); -var partialCrc = crc32('sup', partialCrc); -var partialCrc = crc32(' ', partialCrc); -var finalCrc = crc32('bros', partialCrc); // -> -``` - -# tests -This was tested against the output of zlib's crc32 method. You can run -the tests with`npm test` (requires tap) - -# see also -https://github.com/alexgorbatchev/node-crc, `crc.buffer.crc32` also -supports buffer inputs and return unsigned ints (thanks @tjholowaychuk). - -# license -MIT/X11 diff --git a/node_modules/buffer-crc32/index.js b/node_modules/buffer-crc32/index.js deleted file mode 100644 index 6727dd3..0000000 --- a/node_modules/buffer-crc32/index.js +++ /dev/null @@ -1,111 +0,0 @@ -var Buffer = require('buffer').Buffer; - -var CRC_TABLE = [ - 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, - 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, - 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, - 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, - 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, - 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, - 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, - 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, - 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, - 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, - 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, - 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, - 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, - 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, - 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e, - 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, - 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, - 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, - 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, - 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, - 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, - 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, - 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, - 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, - 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, - 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, - 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, - 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, - 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344, - 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, - 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, - 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, - 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, - 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, - 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, - 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, - 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, - 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, - 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, - 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, - 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, - 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242, - 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, - 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, - 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, - 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, - 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, - 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, - 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, - 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, - 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, - 0x2d02ef8d -]; - -if (typeof Int32Array !== 'undefined') { - CRC_TABLE = new Int32Array(CRC_TABLE); -} - -function ensureBuffer(input) { - if (Buffer.isBuffer(input)) { - return input; - } - - var hasNewBufferAPI = - typeof Buffer.alloc === "function" && - typeof Buffer.from === "function"; - - if (typeof input === "number") { - return hasNewBufferAPI ? Buffer.alloc(input) : new Buffer(input); - } - else if (typeof input === "string") { - return hasNewBufferAPI ? Buffer.from(input) : new Buffer(input); - } - else { - throw new Error("input must be buffer, number, or string, received " + - typeof input); - } -} - -function bufferizeInt(num) { - var tmp = ensureBuffer(4); - tmp.writeInt32BE(num, 0); - return tmp; -} - -function _crc32(buf, previous) { - buf = ensureBuffer(buf); - if (Buffer.isBuffer(previous)) { - previous = previous.readUInt32BE(0); - } - var crc = ~~previous ^ -1; - for (var n = 0; n < buf.length; n++) { - crc = CRC_TABLE[(crc ^ buf[n]) & 0xff] ^ (crc >>> 8); - } - return (crc ^ -1); -} - -function crc32() { - return bufferizeInt(_crc32.apply(null, arguments)); -} -crc32.signed = function () { - return _crc32.apply(null, arguments); -}; -crc32.unsigned = function () { - return _crc32.apply(null, arguments) >>> 0; -}; - -module.exports = crc32; diff --git a/node_modules/buffer-crc32/package.json b/node_modules/buffer-crc32/package.json deleted file mode 100644 index e896bec..0000000 --- a/node_modules/buffer-crc32/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "author": "Brian J. Brennan ", - "name": "buffer-crc32", - "description": "A pure javascript CRC32 algorithm that plays nice with binary data", - "version": "0.2.13", - "licenses": [ - { - "type": "MIT", - "url": "https://github.com/brianloveswords/buffer-crc32/raw/master/LICENSE" - } - ], - "contributors": [ - { - "name": "Vladimir Kuznetsov", - "github": "mistakster" - } - ], - "homepage": "https://github.com/brianloveswords/buffer-crc32", - "repository": { - "type": "git", - "url": "git://github.com/brianloveswords/buffer-crc32.git" - }, - "main": "index.js", - "scripts": { - "test": "./node_modules/.bin/tap tests/*.test.js" - }, - "dependencies": {}, - "devDependencies": { - "tap": "~0.2.5" - }, - "optionalDependencies": {}, - "engines": { - "node": "*" - }, - "license": "MIT", - "files": [ - "index.js" - ] -} diff --git a/node_modules/callsites/index.d.ts b/node_modules/callsites/index.d.ts deleted file mode 100644 index 61f597c..0000000 --- a/node_modules/callsites/index.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -declare namespace callsites { - interface CallSite { - /** - Returns the value of `this`. - */ - getThis(): unknown | undefined; - - /** - Returns the type of `this` as a string. This is the name of the function stored in the constructor field of `this`, if available, otherwise the object's `[[Class]]` internal property. - */ - getTypeName(): string | null; - - /** - Returns the current function. - */ - getFunction(): Function | undefined; - - /** - Returns the name of the current function, typically its `name` property. If a name property is not available an attempt will be made to try to infer a name from the function's context. - */ - getFunctionName(): string | null; - - /** - Returns the name of the property of `this` or one of its prototypes that holds the current function. - */ - getMethodName(): string | undefined; - - /** - Returns the name of the script if this function was defined in a script. - */ - getFileName(): string | null; - - /** - Returns the current line number if this function was defined in a script. - */ - getLineNumber(): number | null; - - /** - Returns the current column number if this function was defined in a script. - */ - getColumnNumber(): number | null; - - /** - Returns a string representing the location where `eval` was called if this function was created using a call to `eval`. - */ - getEvalOrigin(): string | undefined; - - /** - Returns `true` if this is a top-level invocation, that is, if it's a global object. - */ - isToplevel(): boolean; - - /** - Returns `true` if this call takes place in code defined by a call to `eval`. - */ - isEval(): boolean; - - /** - Returns `true` if this call is in native V8 code. - */ - isNative(): boolean; - - /** - Returns `true` if this is a constructor call. - */ - isConstructor(): boolean; - } -} - -declare const callsites: { - /** - Get callsites from the V8 stack trace API. - - @returns An array of `CallSite` objects. - - @example - ``` - import callsites = require('callsites'); - - function unicorn() { - console.log(callsites()[0].getFileName()); - //=> '/Users/sindresorhus/dev/callsites/test.js' - } - - unicorn(); - ``` - */ - (): callsites.CallSite[]; - - // TODO: Remove this for the next major release, refactor the whole definition to: - // declare function callsites(): callsites.CallSite[]; - // export = callsites; - default: typeof callsites; -}; - -export = callsites; diff --git a/node_modules/callsites/index.js b/node_modules/callsites/index.js deleted file mode 100644 index 486c241..0000000 --- a/node_modules/callsites/index.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -const callsites = () => { - const _prepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = (_, stack) => stack; - const stack = new Error().stack.slice(1); - Error.prepareStackTrace = _prepareStackTrace; - return stack; -}; - -module.exports = callsites; -// TODO: Remove this for the next major release -module.exports.default = callsites; diff --git a/node_modules/callsites/license b/node_modules/callsites/license deleted file mode 100644 index e7af2f7..0000000 --- a/node_modules/callsites/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/callsites/package.json b/node_modules/callsites/package.json deleted file mode 100644 index 93463c3..0000000 --- a/node_modules/callsites/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "callsites", - "version": "3.1.0", - "description": "Get callsites from the V8 stack trace API", - "license": "MIT", - "repository": "sindresorhus/callsites", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "stacktrace", - "v8", - "callsite", - "callsites", - "stack", - "trace", - "function", - "file", - "line", - "debug" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/node_modules/callsites/readme.md b/node_modules/callsites/readme.md deleted file mode 100644 index fc84613..0000000 --- a/node_modules/callsites/readme.md +++ /dev/null @@ -1,48 +0,0 @@ -# callsites [![Build Status](https://travis-ci.org/sindresorhus/callsites.svg?branch=master)](https://travis-ci.org/sindresorhus/callsites) - -> Get callsites from the [V8 stack trace API](https://v8.dev/docs/stack-trace-api) - - -## Install - -``` -$ npm install callsites -``` - - -## Usage - -```js -const callsites = require('callsites'); - -function unicorn() { - console.log(callsites()[0].getFileName()); - //=> '/Users/sindresorhus/dev/callsites/test.js' -} - -unicorn(); -``` - - -## API - -Returns an array of callsite objects with the following methods: - -- `getThis`: returns the value of `this`. -- `getTypeName`: returns the type of `this` as a string. This is the name of the function stored in the constructor field of `this`, if available, otherwise the object's `[[Class]]` internal property. -- `getFunction`: returns the current function. -- `getFunctionName`: returns the name of the current function, typically its `name` property. If a name property is not available an attempt will be made to try to infer a name from the function's context. -- `getMethodName`: returns the name of the property of `this` or one of its prototypes that holds the current function. -- `getFileName`: if this function was defined in a script returns the name of the script. -- `getLineNumber`: if this function was defined in a script returns the current line number. -- `getColumnNumber`: if this function was defined in a script returns the current column number -- `getEvalOrigin`: if this function was created using a call to `eval` returns a string representing the location where `eval` was called. -- `isToplevel`: is this a top-level invocation, that is, is this the global object? -- `isEval`: does this call take place in code defined by a call to `eval`? -- `isNative`: is this call in native V8 code? -- `isConstructor`: is this a constructor call? - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/chromium-bidi/.browser b/node_modules/chromium-bidi/.browser deleted file mode 100644 index c057981..0000000 --- a/node_modules/chromium-bidi/.browser +++ /dev/null @@ -1 +0,0 @@ -chrome@146.0.7680.2 \ No newline at end of file diff --git a/node_modules/chromium-bidi/LICENSE b/node_modules/chromium-bidi/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/node_modules/chromium-bidi/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/chromium-bidi/README.md b/node_modules/chromium-bidi/README.md deleted file mode 100644 index d4cffe3..0000000 --- a/node_modules/chromium-bidi/README.md +++ /dev/null @@ -1,635 +0,0 @@ -# WebDriver BiDi for Chromium [![chromium-bidi on npm](https://img.shields.io/npm/v/chromium-bidi)](https://www.npmjs.com/package/chromium-bidi) - -## CI status - -![E2E Tests](https://github.com/GoogleChromeLabs/chromium-bidi/actions/workflows/e2e.yml/badge.svg) -![Unit Tests](https://github.com/GoogleChromeLabs/chromium-bidi/actions/workflows/unit.yml/badge.svg) -![WPT Tests](https://github.com/GoogleChromeLabs/chromium-bidi/actions/workflows/wpt.yml/badge.svg) - -![Pre-commit](https://github.com/GoogleChromeLabs/chromium-bidi/actions/workflows/pre-commit.yml/badge.svg) - -This is an implementation of the -[WebDriver BiDi](https://w3c.github.io/webdriver-bidi/) protocol with some -extensions (**BiDi+**) -for Chromium, implemented as a JavaScript layer translating between BiDi and CDP, -running inside a Chrome tab. - -Current status can be checked -at [WPT WebDriver BiDi status](https://wpt.fyi/results/webdriver/tests/bidi). - -## Performance Benchmarks - -The project continuously monitors the performance and overhead of the WebDriver BiDi implementation. - -- **Dashboard:** [Chromium-BiDi Performance Benchmarks](https://googlechromelabs.github.io/chromium-bidi/bench/) -- **Details:** Refer to [docs/benchmark.md](docs/benchmark.md) for detailed information about the benchmarking infrastructure, methodology, and statistical analysis. - -Note that performance data can be sensitive to CI environment fluctuations, especially on macOS. - -## BiDi+ - -**"BiDi+"** is an extension of the WebDriver BiDi protocol. In addition to [WebDriver BiDi](https://w3c.github.io/webdriver-bidi/) it has: - -### Command `goog:cdp.sendCommand` - -```cddl -CdpSendCommandCommand = { - method: "goog:cdp.sendCommand", - params: CdpSendCommandParameters, -} - -CdpSendCommandParameters = { - method: text, - params: any, - session?: text, -} - -CdpSendCommandResult = { - result: any, - session: text, -} -``` - -The command runs the -described [CDP command](https://chromedevtools.github.io/devtools-protocol) -and returns the result. - -### Command `goog:cdp.getSession` - -```cddl -CdpGetSessionCommand = { - method: "goog:cdp.getSession", - params: CdpGetSessionParameters, -} - -CdpGetSessionParameters = { - context: BrowsingContext, -} - -CdpGetSessionResult = { - session: text, -} -``` - -The command returns the default CDP session for the selected browsing context. - -### Command `goog:cdp.resolveRealm` - -```cddl -CdpResolveRealmCommand = { - method: "goog:cdp.resolveRealm", - params: CdpResolveRealmParameters, -} - -CdpResolveRealmParameters = { - realm: Script.Realm, -} - -CdpResolveRealmResult = { - executionContextId: text, -} -``` - -The command returns resolves a BiDi realm to its CDP execution context ID. - -### Events `goog:cdp` - -```cddl -CdpEventReceivedEvent = { - method: "goog:cdp.", - params: CdpEventReceivedParameters, -} - -CdpEventReceivedParameters = { - event: text, - params: any, - session: text, -} -``` - -The event contains a CDP event. - -### Field `goog:channel` - -Each command can be extended with a `goog:channel`: - -```cddl -Command = { - id: js-uint, - "goog:channel"?: text, - CommandData, - Extensible, -} -``` - -If provided and non-empty string, the very same `goog:channel` is added to the response: - -```cddl -CommandResponse = { - id: js-uint, - "goog:channel"?: text, - result: ResultData, - Extensible, -} - -ErrorResponse = { - id: js-uint / null, - "goog:channel"?: text, - error: ErrorCode, - message: text, - ?stacktrace: text, - Extensible -} -``` - -When client uses -commands [`session.subscribe`](https://w3c.github.io/webdriver-bidi/#command-session-subscribe) -and [`session.unsubscribe`](https://w3c.github.io/webdriver-bidi/#command-session-unsubscribe) -with `goog:channel`, the subscriptions are handled per channel, and the corresponding -`goog:channel` filed is added to the event message: - -```cddl -Event = { - "goog:channel"?: text, - EventData, - Extensible, -} -``` - -## Dev Setup - -### `npm` - -This is a Node.js project, so install dependencies as usual: - -```sh -npm install -``` - -### `cargo` - - - -We use [cddlconv](https://github.com/google/cddlconv) to generate our WebDriverBiDi types before building. - -1. Install [Rust](https://rustup.rs/). -2. Run `cargo install --git https://github.com/google/cddlconv.git cddlconv` - -### pre-commit.com integration - -Refer to the documentation at [.pre-commit-config.yaml](.pre-commit-config.yaml). - -```sh -pre-commit install --hook-type pre-push -``` - -Re-installing pre-commit locally: - -``` -pre-commit clean && pip install pre-commit -``` - -### Starting WebDriver BiDi Server - -This will run the server on port `8080`: - -```sh -npm run server -``` - -Use the `PORT=` environment variable or `--port=` argument to run it on another port: - -```sh -PORT=8081 npm run server -npm run server -- --port=8081 -``` - -Use the `DEBUG` environment variable to see debug info: - -```sh -DEBUG=* npm run server -``` - -Use the `DEBUG_DEPTH` (default: `10`) environment variable to see debug deeply nested objects: - -```sh -DEBUG_DEPTH=100 DEBUG=* npm run server -``` - -Use the `CHANNEL=...` environment variable with one of the following values to run -the specific Chrome channel: `stable`, `beta`, `canary`, `dev`, `local`. Default is -`local`. The `local` channel means the pinned in `.browser` Chrome version will be -downloaded if it is not yet in cache. Otherwise, the requested Chrome version should -be installed. - -```sh -CHANNEL=dev npm run server -``` - -Use the CLI argument `--verbose` to have CDP events printed to the console. Note: you have to enable debugging output `bidi:mapper:debug:*` as well. - -```sh -DEBUG=bidi:mapper:debug:* npm run server -- --verbose -``` - -or - -```sh -DEBUG=* npm run server -- --verbose -``` - -### Starting on Linux and Mac - -TODO: verify it works on Windows. - -You can also run the server by using `npm run server`. It will write -output to the file `log.txt`: - -```sh -npm run server -- --port=8081 --headless=false -``` - -### Running with in other project - -Sometimes it good to verify that a change will not affect thing downstream for other packages. -There is a useful `puppeteer` label you can add to any PR to run Puppeteer test with your changes. -It will bundle `chromium-bidi` and install it in Puppeteer project then run that package test. - -## Running - -### Unit tests - -Running: - -```sh -npm run unit -``` - -### E2E tests - -The e2e tests serve the following purposes: - -1. Brief checks of the scenarios (the detailed check is done in WPT) -2. Test Chromium-specific behavior nuances -3. Add a simple setup for engaging the specific command - -The E2E tests are written using Python, in order to more-or-less align with the web-platform-tests. - -#### Installation - -Python 3.10+ and some dependencies are required: - -```sh -python -m pip install --user pipenv -pipenv install -``` - -#### Running - -The E2E tests require BiDi server running on the same host. By default, tests -try to connect to the port `8080`. The server can be run from the project root: - -```sh -npm run e2e # alias to to e2e:headless -npm run e2e:headful -npm run e2e:headless -``` - -This commands will run `./tools/run-e2e.mjs`, which will log the PyTest output to console, -Additionally the output is also recorded under `./logs/.e2e.log`, this will contain -both the PyTest logs and in the event of `FAILED` test all the Chromium-BiDi logs. - -If you need to see the logs for all test run the command with `VERBOSE=true`. - -Simply pass `npm run e2e -- tests/` and the e2e will run only the selected one. -You run a specific test by running `npm run e2e -- -k `. - -Use `CHROMEDRIVER` environment to run tests in `chromedriver` instead of NodeJS runner: - -```shell -CHROMEDRIVER=true npm run e2e -``` - -Use the `PORT` environment variable to connect to another port: - -```sh -PORT=8081 npm run e2e -``` - -Use the `HEADLESS` to run the tests in headless (new or old) or headful modes. -Values: `new`, `old`, `false`, default: `new`. - -```sh -HEADLESS=new npm run e2e -``` - -#### Updating snapshots - -```sh -npm run e2e -- --snapshot-update true -``` - -See https://github.com/tophat/syrupy for more information. - -### Local http server - -E2E tests use local http -server [`pytest-httpserver`](https://pytest-httpserver.readthedocs.io/), which is run -automatically with the tests. However, -sometimes it is useful to run the http server outside the test -case, for example for manual debugging. This can be done by running: - -```sh -pipenv run local_http_server -``` - -...or directly: - -```sh -python tests/tools/local_http_server.py -``` - -### Examples - -Refer to [examples/README.md](examples/README.md). - -## WPT (Web Platform Tests) - -WPT is added as -a [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules). To get run -WPT tests: - -### Check out and setup WPT - -#### 1. Check out WPT - -```sh -git submodule update --init -``` - -#### 2. Go to the WPT folder - -```sh -cd wpt -``` - -#### 3. Set up virtualenv - -Follow the [_System -Setup_](https://web-platform-tests.org/running-tests/from-local-system.html#system-setup) -instructions. - -#### 4. Setup `hosts` file - -Follow -the [`hosts` File Setup](https://web-platform-tests.org/running-tests/from-local-system.html#hosts-file-setup) -instructions. - -##### 4.a On Linux, macOS or other UNIX-like system - -```sh -./wpt make-hosts-file | sudo tee -a /etc/hosts -``` - -##### 4.b On **Windows** - -This must be run in a PowerShell session with Administrator privileges: - -```sh -python wpt make-hosts-file | Out-File $env:SystemRoot\System32\drivers\etc\hosts -Encoding ascii -Append -``` - -If you are behind a proxy, you also need to make sure the domains above are excluded -from your proxy lookups. - -#### 5. Set `BROWSER_BIN` - -Set the `BROWSER_BIN` environment variable to a Chrome, Edge or Chromium binary to launch. -For example, on macOS: - -```sh -# Chrome -export BROWSER_BIN="/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary" -export BROWSER_BIN="/Applications/Google Chrome Dev.app/Contents/MacOS/Google Chrome Dev" -export BROWSER_BIN="/Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta" -export BROWSER_BIN="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" -export BROWSER_BIN="/Applications/Chromium.app/Contents/MacOS/Chromium" - -# Edge -export BROWSER_BIN="/Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary" -export BROWSER_BIN="/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge" -``` - -### Run WPT tests - -#### 1. Make sure you have Chrome Dev installed - -https://www.google.com/chrome/dev/ - -#### 2. Build Chromedriver BiDi - -Oneshot: - -```sh -npm run build -``` - -Continuously: - -```sh -npm run build --watch -``` - -#### 3. Run - -```sh -npm run wpt -- webdriver/tests/bidi/ -``` - -### Update WPT expectations if needed - -```sh -UPDATE_EXPECTATIONS=true npm run wpt -- webdriver/tests/bidi/ -``` - -## How does it work? - -The architecture is described in the -[WebDriver BiDi in Chrome Context implementation plan](https://docs.google.com/document/d/1VfQ9tv0wPSnb5TI-MOobjoQ5CXLnJJx9F_PxOMQc8kY) -. - -There are 2 main modules: - -1. backend WS server in `src`. It runs webSocket server, and for each ws connection - runs an instance of browser with BiDi Mapper. -2. front-end BiDi Mapper in `src/bidiMapper`. Gets BiDi commands from the backend, - and map them to CDP commands. - -## Contributing - -The BiDi commands are processed in the `src/bidiMapper/commandProcessor.ts`. To add a -new command, add it to `_processCommand`, write and call processor for it. - -### Publish new `npm` release - -#### Release branches - -`chromium-bidi` maintains release branches corresponding to Chrome releases. The -branches are named using the following pattern: `releases/m$MAJOR_VERSION`. - -The new release branch is created as soon a new major browser version is -published by the -[update-browser-version](https://github.com/GoogleChromeLabs/chromium-bidi/blob/main/.github/workflows/update-browser-version.yml) -job: - -- the PR created by this job should be marked as a feature and it should cause the - major package version to be bumped. -- once the browser version is bumped, the commit preceding the version bump - should be used to create a release branch for major version pinned before the bump. - -Changes that need to be cherry-picked into the release branch should be marked -as patches. Either major or minor version bumps are not allowed on the release -branch. - -Example workflow: - -```mermaid -gitGraph - commit id: "feat: featA" - commit id: "release: v0.5.0" - branch release/m129 - checkout main - commit id: "feat: roll Chrome to M130 from 129" - commit id: "release: v0.6.0" - commit id: "fix: for m129" - checkout release/m129 - cherry-pick id: "fix: for m129" - commit id: "release: v0.5.1 " -``` - -Currently, the releases from release branches are not automated. - -#### Automatic release - -We use [release-please](https://github.com/googleapis/release-please) to automate releases. When a release should be done, check for the release PR in our [pull requests](https://github.com/GoogleChromeLabs/chromium-bidi/pulls) and merge it. - -#### Manual release - -1. Dry-run - - ```sh - npm publish --dry-run - ``` - -1. Open a PR bumping the chromium-bidi version number in `package.json` for review: - - ```sh - npm version patch -m 'chore: Release v%s' --no-git-tag-version - ``` - - Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/). - -1. After the PR is reviewed, [create a GitHub release](https://github.com/GoogleChromeLabs/chromium-bidi/releases/new) specifying the tag name matching the bumped version. - Our CI then automatically publishes the new release to npm based on the tag name. - -#### Roll into Chromium - -This section assumes you already have a Chromium set-up locally, -and knowledge on [how to submit changes to the repo](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/contributing.md). -Otherwise submit an issue for a project maintainer. - -1. Create a new branch in chromium `src/`. -2. Update the mapper version: - -```shell -third_party/bidimapper/roll_bidimapper -``` - -3. Submit a CL with bug `42323268` ([link](https://crbug.com/42323268)). - -4. [Regenerate WPT expectations or baselines](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/testing/run_web_platform_tests.md#test-expectations-and-baselines): - - 4.1. Trigger a build and test run: - - ```shell - third_party/blink/tools/blink_tool.py rebaseline-cl --build="linux-blink-rel" --verbose - ``` - - 4.2. Once the test completes on the builder, rerun that command to update the - baselines. Update test expectations if there are any crashes or timeouts. - Commit the changes (if any), and upload the new patch to the CL. - -5. Add appropriate reviewers or comment the CL link on the PR. - -## Adding new command - -Want to add a shiny new command to WebDriver BiDi for Chromium? Here's the playbook: - -### Prerequisites - -#### Specification - -The WebDriver BiDi [module](https://w3c.github.io/webdriver-bidi/#protocol-modules), [command](https://w3c.github.io/webdriver-bidi/#commands), or [event](https://w3c.github.io/webdriver-bidi/#events) must be specified either in the [WebDriver BiDi specification](https://w3c.github.io/webdriver-bidi) or as an extension in a separate specification (e.g., the [Permissions specification](https://www.w3.org/TR/permissions/#automation-webdriver-bidi)). The specification should include the command's type definitions in valid [CDDL](https://datatracker.ietf.org/doc/html/rfc8610) format. - -#### WPT wdspec tests - -You'll need tests to prove your command works as expected. These tests should be written using [WPT wdspec](https://web-platform-tests.org/writing-tests/wdspec.html) and submitted along with the spec itself. Don't forget to roll the WPT repo into the Mapper ([dependabot](https://github.com/GoogleChromeLabs/chromium-bidi/network/updates/10663151/jobs) can help, and you will likely need to tweak some expectations afterward). - -#### CDP implementation - -Make sure Chromium already has the CDP methods your command will rely on. - -### Update CDDL types - -1. If your command lives in a separate spec, add a link to that spec in the ["Build WebDriverBiDi types"](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/.github/workflows/update-bidi-types.yml#L27) GitHub action (check out the ["bluetooth" pull request](https://github.com/GoogleChromeLabs/chromium-bidi/pull/2585) for an example). -2. Run the ["Update WebdriverBiDi types"](https://github.com/GoogleChromeLabs/chromium-bidi/actions/workflows/update-bidi-types.yml) GitHub action. This will create a pull request with your new types. If you added a command, this PR will have a failing check complaining about a non-exhaustive switch statement: - > error: Switch is not exhaustive. Cases not matched: "{NEW_COMMAND_NAME}" @typescript-eslint/switch-exhaustiveness-check -3. Update the created pull request. Add your new command to [`CommandProcessor.#processCommand`](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/src/bidiMapper/CommandProcessor.ts#L140). For now, just have it throw an UnknownErrorException (see the [example](https://github.com/GoogleChromeLabs/chromium-bidi/pull/2647/files#diff-7f06ce28b8514fd75b759d217bff9f5a471b657bcf78bd893cc291c7945c1cacR169) for how to do this). - -```typescript -case '{NEW_COMMAND_NAME}': - throw new UnknownErrorException( - `Method ${command.method} is not implemented.`, - ); -``` - -4. Merge it! Standard PR process: create, review, merge. - -### Implement the new command - -[`CommandProcessor.#processCommand`](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/src/bidiMapper/CommandProcessor.ts#L140) handles parsing parameters and running your command. - -#### (only if the new command has non-empty parameters) parse command parameters - -If your command has parameters, update the [`BidiCommandParameterParser`](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/src/bidiMapper/BidiParser.ts#L31) and implement the parsing logic in [`BidiNoOpParser`](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/src/bidiMapper/BidiNoOpParser.ts#L209), [`BidiParser`](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/src/bidiTab/BidiParser.ts#L182) and [`protocol-parser`](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/src/protocol-parser/protocol-parser.ts#L386). Look at the [example](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/src/bidiMapper/BidiParser.ts#L97) for guidance. - -#### Implement the new command - -Write the core logic for your command in the appropriate domain processor. Again, [example](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/src/bidiMapper/modules/permissions/PermissionsProcessor.ts#L32) is your friend. - -#### Call the module processor's method - -Call your new module processor method from `CommandProcessor.#processCommand`, passing in the parsed parameters. [Example](https://github.com/GoogleChromeLabs/chromium-bidi/blob/0f971303281aba1910786035facc5eb54a833232/src/bidiMapper/CommandProcessor.ts#L313). - -#### Add e2e tests - -Write end-to-end tests for your command, including the happy path and any edge cases that might trip things up. Focus on testing the code in the mapper. - -#### Update WPT expectations - -Your WPT tests will probably fail now. - -> Tests with unexpected results: PASS [expected FAIL] ... - -Update the expectations in a draft PR with the "update-expectations" label. This will trigger an automated PR "test: update the expectations for PR" that you'll need to merge to your branch. - -#### Merge it! - -Mark your PR as ready, get it reviewed, and merge it in. - -### Roll in ChromeDriver - -This bit usually involves the core devs: - -1. [Release](#automatic-release) your changes. -2. [Roll the changes into ChromeDriver](#roll-into-chromium). diff --git a/node_modules/chromium-bidi/lib/THIRD_PARTY_NOTICES b/node_modules/chromium-bidi/lib/THIRD_PARTY_NOTICES deleted file mode 100644 index 5c8cf5e..0000000 --- a/node_modules/chromium-bidi/lib/THIRD_PARTY_NOTICES +++ /dev/null @@ -1,56 +0,0 @@ -Name: mitt -URL: https://github.com/developit/mitt -Version: 3.0.1 -License: MIT - -MIT License - -Copyright (c) 2021 Jason Miller - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - --------------------- DEPENDENCY DIVIDER -------------------- - -Name: zod -URL: https://zod.dev -Version: 3.25.76 -License: MIT - -MIT License - -Copyright (c) 2025 Colin McDonnell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.d.ts deleted file mode 100644 index 8520592..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * @fileoverview The entry point to the BiDi Mapper namespace. - * Other modules should only access exports defined in this file. - * XXX: Add ESlint rule for this (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md) - */ -export { BidiServer } from './BidiServer.js'; -export { MapperOptions } from './MapperOptions.js'; -export type { CdpConnection } from '../cdp/CdpConnection.js'; -export type { CdpClient } from '../cdp/CdpClient.js'; -export { EventEmitter } from '../utils/EventEmitter.js'; -export type { BidiTransport } from './BidiTransport.js'; -export { OutgoingMessage } from './OutgoingMessage.js'; -export type { BidiCommandParameterParser } from './BidiParser.js'; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js deleted file mode 100644 index 8e53f90..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OutgoingMessage = exports.EventEmitter = exports.BidiServer = void 0; -/** - * @fileoverview The entry point to the BiDi Mapper namespace. - * Other modules should only access exports defined in this file. - * XXX: Add ESlint rule for this (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md) - */ -var BidiServer_js_1 = require("./BidiServer.js"); -Object.defineProperty(exports, "BidiServer", { enumerable: true, get: function () { return BidiServer_js_1.BidiServer; } }); -var EventEmitter_js_1 = require("../utils/EventEmitter.js"); -Object.defineProperty(exports, "EventEmitter", { enumerable: true, get: function () { return EventEmitter_js_1.EventEmitter; } }); -var OutgoingMessage_js_1 = require("./OutgoingMessage.js"); -Object.defineProperty(exports, "OutgoingMessage", { enumerable: true, get: function () { return OutgoingMessage_js_1.OutgoingMessage; } }); -//# sourceMappingURL=BidiMapper.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js.map deleted file mode 100644 index 234b59a..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiMapper.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiMapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH;;;;GAIG;AACH,iDAA2C;AAAnC,2GAAA,UAAU,OAAA;AAIlB,4DAAsD;AAA9C,+GAAA,YAAY,OAAA;AAEpB,2DAAqD;AAA7C,qHAAA,eAAe,OAAA"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.d.ts deleted file mode 100644 index 958522b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Browser, BrowsingContext, Cdp, Emulation, Input, Network, Script, Session, Storage, Permissions, Bluetooth, WebExtension, UAClientHints } from '../protocol/protocol.js'; -import type { BidiCommandParameterParser } from './BidiParser.js'; -export declare class BidiNoOpParser implements BidiCommandParameterParser { - parseDisableSimulationParameters(params: unknown): Bluetooth.DisableSimulationParameters; - parseHandleRequestDevicePromptParams(params: unknown): Bluetooth.HandleRequestDevicePromptParameters; - parseSimulateAdapterParameters(params: unknown): Bluetooth.SimulateAdapterParameters; - parseSimulateAdvertisementParameters(params: unknown): Bluetooth.SimulateAdvertisementParameters; - parseSimulateCharacteristicParameters(params: unknown): Bluetooth.SimulateCharacteristicParameters; - parseSimulateCharacteristicResponseParameters(params: unknown): Bluetooth.SimulateCharacteristicResponseParameters; - parseSimulateDescriptorParameters(params: unknown): Bluetooth.SimulateDescriptorParameters; - parseSimulateDescriptorResponseParameters(params: unknown): Bluetooth.SimulateDescriptorResponseParameters; - parseSimulateGattConnectionResponseParameters(params: unknown): Bluetooth.SimulateGattConnectionResponseParameters; - parseSimulateGattDisconnectionParameters(params: unknown): Bluetooth.SimulateGattDisconnectionParameters; - parseSimulatePreconnectedPeripheralParameters(params: unknown): Bluetooth.SimulatePreconnectedPeripheralParameters; - parseSimulateServiceParameters(params: unknown): Bluetooth.SimulateServiceParameters; - parseCreateUserContextParameters(params: unknown): Browser.CreateUserContextParameters; - parseRemoveUserContextParameters(params: unknown): Browser.RemoveUserContextParameters; - parseSetClientWindowStateParameters(params: unknown): Browser.SetClientWindowStateParameters; - parseSetDownloadBehaviorParameters(params: unknown): Browser.SetDownloadBehaviorParameters; - parseActivateParams(params: unknown): BrowsingContext.ActivateParameters; - parseCaptureScreenshotParams(params: unknown): BrowsingContext.CaptureScreenshotParameters; - parseCloseParams(params: unknown): BrowsingContext.CloseParameters; - parseCreateParams(params: unknown): BrowsingContext.CreateParameters; - parseGetTreeParams(params: unknown): BrowsingContext.GetTreeParameters; - parseHandleUserPromptParams(params: unknown): BrowsingContext.HandleUserPromptParameters; - parseLocateNodesParams(params: unknown): BrowsingContext.LocateNodesParameters; - parseNavigateParams(params: unknown): BrowsingContext.NavigateParameters; - parsePrintParams(params: unknown): BrowsingContext.PrintParameters; - parseReloadParams(params: unknown): BrowsingContext.ReloadParameters; - parseSetViewportParams(params: unknown): BrowsingContext.SetViewportParameters; - parseTraverseHistoryParams(params: unknown): BrowsingContext.TraverseHistoryParameters; - parseGetSessionParams(params: unknown): Cdp.GetSessionParameters; - parseResolveRealmParams(params: unknown): Cdp.ResolveRealmParameters; - parseSendCommandParams(params: unknown): Cdp.SendCommandParameters; - parseSetClientHintsOverrideParams(params: unknown): UAClientHints.UserAgentClientHints.SetClientHintsOverrideCommand['params']; - parseSetForcedColorsModeThemeOverrideParams(params: unknown): Emulation.SetForcedColorsModeThemeOverrideParameters; - parseSetGeolocationOverrideParams(params: unknown): Emulation.SetGeolocationOverrideParameters; - parseSetLocaleOverrideParams(params: unknown): Emulation.SetLocaleOverrideParameters; - parseSetNetworkConditionsParams(params: unknown): Emulation.SetNetworkConditionsParameters; - parseSetScreenOrientationOverrideParams(params: unknown): Emulation.SetScreenOrientationOverrideParameters; - parseSetScreenSettingsOverrideParams(params: unknown): Emulation.SetScreenSettingsOverrideParameters; - parseSetScriptingEnabledParams(params: unknown): Emulation.SetScriptingEnabledParameters; - parseSetTimezoneOverrideParams(params: unknown): Emulation.SetTimezoneOverrideParameters; - parseSetTouchOverrideParams(params: unknown): Emulation.SetTouchOverrideParameters; - parseSetUserAgentOverrideParams(params: unknown): Emulation.SetUserAgentOverrideParameters; - parseAddPreloadScriptParams(params: unknown): Script.AddPreloadScriptParameters; - parseCallFunctionParams(params: unknown): Script.CallFunctionParameters; - parseDisownParams(params: unknown): Script.DisownParameters; - parseEvaluateParams(params: unknown): Script.EvaluateParameters; - parseGetRealmsParams(params: unknown): Script.GetRealmsParameters; - parseRemovePreloadScriptParams(params: unknown): Script.RemovePreloadScriptParameters; - parsePerformActionsParams(params: unknown): Input.PerformActionsParameters; - parseReleaseActionsParams(params: unknown): Input.ReleaseActionsParameters; - parseSetFilesParams(params: unknown): Input.SetFilesParameters; - parseAddDataCollectorParams(params: unknown): Network.AddDataCollectorParameters; - parseAddInterceptParams(params: unknown): Network.AddInterceptParameters; - parseContinueRequestParams(params: unknown): Network.ContinueRequestParameters; - parseContinueResponseParams(params: unknown): Network.ContinueResponseParameters; - parseContinueWithAuthParams(params: unknown): Network.ContinueWithAuthParameters; - parseDisownDataParams(params: unknown): Network.DisownDataParameters; - parseFailRequestParams(params: unknown): Network.FailRequestParameters; - parseGetDataParams(params: unknown): Network.GetDataParameters; - parseProvideResponseParams(params: unknown): Network.ProvideResponseParameters; - parseRemoveDataCollectorParams(params: unknown): Network.RemoveDataCollectorParameters; - parseRemoveInterceptParams(params: unknown): Network.RemoveInterceptParameters; - parseSetCacheBehaviorParams(params: unknown): Network.SetCacheBehaviorParameters; - parseSetExtraHeadersParams(params: unknown): Network.SetExtraHeadersParameters; - parseSetPermissionsParams(params: unknown): Permissions.SetPermissionParameters; - parseSubscribeParams(params: unknown): Session.SubscribeParameters; - parseUnsubscribeParams(params: unknown): Session.UnsubscribeByAttributesRequest | Session.UnsubscribeByIdRequest; - parseDeleteCookiesParams(params: unknown): Storage.DeleteCookiesParameters; - parseGetCookiesParams(params: unknown): Storage.GetCookiesParameters; - parseSetCookieParams(params: unknown): Storage.SetCookieParameters; - parseInstallParams(params: unknown): WebExtension.InstallParameters; - parseUninstallParams(params: unknown): WebExtension.UninstallParameters; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js deleted file mode 100644 index c511d4f..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js +++ /dev/null @@ -1,274 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BidiNoOpParser = void 0; -class BidiNoOpParser { - // Bluetooth module - // keep-sorted start block=yes - parseDisableSimulationParameters(params) { - return params; - } - parseHandleRequestDevicePromptParams(params) { - return params; - } - parseSimulateAdapterParameters(params) { - return params; - } - parseSimulateAdvertisementParameters(params) { - return params; - } - parseSimulateCharacteristicParameters(params) { - return params; - } - parseSimulateCharacteristicResponseParameters(params) { - return params; - } - parseSimulateDescriptorParameters(params) { - return params; - } - parseSimulateDescriptorResponseParameters(params) { - return params; - } - parseSimulateGattConnectionResponseParameters(params) { - return params; - } - parseSimulateGattDisconnectionParameters(params) { - return params; - } - parseSimulatePreconnectedPeripheralParameters(params) { - return params; - } - parseSimulateServiceParameters(params) { - return params; - } - // keep-sorted end - // Browser module - // keep-sorted start block=yes - parseCreateUserContextParameters(params) { - return params; - } - parseRemoveUserContextParameters(params) { - return params; - } - parseSetClientWindowStateParameters(params) { - return params; - } - parseSetDownloadBehaviorParameters(params) { - return params; - } - // keep-sorted end - // Browsing Context module - // keep-sorted start block=yes - parseActivateParams(params) { - return params; - } - parseCaptureScreenshotParams(params) { - return params; - } - parseCloseParams(params) { - return params; - } - parseCreateParams(params) { - return params; - } - parseGetTreeParams(params) { - return params; - } - parseHandleUserPromptParams(params) { - return params; - } - parseLocateNodesParams(params) { - return params; - } - parseNavigateParams(params) { - return params; - } - parsePrintParams(params) { - return params; - } - parseReloadParams(params) { - return params; - } - parseSetViewportParams(params) { - return params; - } - parseTraverseHistoryParams(params) { - return params; - } - // keep-sorted end - // CDP module - // keep-sorted start block=yes - parseGetSessionParams(params) { - return params; - } - parseResolveRealmParams(params) { - return params; - } - parseSendCommandParams(params) { - return params; - } - // keep-sorted end - // Emulation module - // keep-sorted start block=yes - parseSetClientHintsOverrideParams(params) { - return params; - } - parseSetForcedColorsModeThemeOverrideParams(params) { - return params; - } - parseSetGeolocationOverrideParams(params) { - return params; - } - parseSetLocaleOverrideParams(params) { - return params; - } - parseSetNetworkConditionsParams(params) { - return params; - } - parseSetScreenOrientationOverrideParams(params) { - return params; - } - parseSetScreenSettingsOverrideParams(params) { - return params; - } - parseSetScriptingEnabledParams(params) { - return params; - } - parseSetTimezoneOverrideParams(params) { - return params; - } - parseSetTouchOverrideParams(params) { - return params; - } - parseSetUserAgentOverrideParams(params) { - return params; - } - // keep-sorted end - // Script module - // keep-sorted start block=yes - parseAddPreloadScriptParams(params) { - return params; - } - parseCallFunctionParams(params) { - return params; - } - parseDisownParams(params) { - return params; - } - parseEvaluateParams(params) { - return params; - } - parseGetRealmsParams(params) { - return params; - } - parseRemovePreloadScriptParams(params) { - return params; - } - // keep-sorted end - // Input module - // keep-sorted start block=yes - parsePerformActionsParams(params) { - return params; - } - parseReleaseActionsParams(params) { - return params; - } - parseSetFilesParams(params) { - return params; - } - // keep-sorted end - // Network module - // keep-sorted start block=yes - parseAddDataCollectorParams(params) { - return params; - } - parseAddInterceptParams(params) { - return params; - } - parseContinueRequestParams(params) { - return params; - } - parseContinueResponseParams(params) { - return params; - } - parseContinueWithAuthParams(params) { - return params; - } - parseDisownDataParams(params) { - return params; - } - parseFailRequestParams(params) { - return params; - } - parseGetDataParams(params) { - return params; - } - parseProvideResponseParams(params) { - return params; - } - parseRemoveDataCollectorParams(params) { - return params; - } - parseRemoveInterceptParams(params) { - return params; - } - parseSetCacheBehaviorParams(params) { - return params; - } - parseSetExtraHeadersParams(params) { - return params; - } - // keep-sorted end - // Permissions module - // keep-sorted start block=yes - parseSetPermissionsParams(params) { - return params; - } - // keep-sorted end - // Session module - // keep-sorted start block=yes - parseSubscribeParams(params) { - return params; - } - parseUnsubscribeParams(params) { - return params; - } - // keep-sorted end - // Storage module - // keep-sorted start block=yes - parseDeleteCookiesParams(params) { - return params; - } - parseGetCookiesParams(params) { - return params; - } - parseSetCookieParams(params) { - return params; - } - // keep-sorted end - // WebExtenstion module - // keep-sorted start block=yes - parseInstallParams(params) { - return params; - } - parseUninstallParams(params) { - return params; - } -} -exports.BidiNoOpParser = BidiNoOpParser; -//# sourceMappingURL=BidiNoOpParser.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js.map deleted file mode 100644 index 56d0d5f..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiNoOpParser.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiNoOpParser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAoBH,MAAa,cAAc;IACzB,mBAAmB;IACnB,8BAA8B;IAC9B,gCAAgC,CAC9B,MAAe;QAEf,OAAO,MAA+C,CAAC;IACzD,CAAC;IACD,oCAAoC,CAClC,MAAe;QAEf,OAAO,MAAuD,CAAC;IACjE,CAAC;IACD,8BAA8B,CAC5B,MAAe;QAEf,OAAO,MAA6C,CAAC;IACvD,CAAC;IACD,oCAAoC,CAClC,MAAe;QAEf,OAAO,MAAmD,CAAC;IAC7D,CAAC;IACD,qCAAqC,CACnC,MAAe;QAEf,OAAO,MAAoD,CAAC;IAC9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MAAe;QAChC,OAAO,MAAmC,CAAC;IAC7C,CAAC;IACD,0BAA0B,CACxB,MAAe;QAEf,OAAO,MAA2C,CAAC;IACrD,CAAC;IACD,8BAA8B,CAC5B,MAAe;QAEf,OAAO,MAA+C,CAAC;IACzD,CAAC;IACD,0BAA0B,CACxB,MAAe;QAEf,OAAO,MAA2C,CAAC;IACrD,CAAC;IACD,2BAA2B,CACzB,MAAe;QAEf,OAAO,MAA4C,CAAC;IACtD,CAAC;IACD,0BAA0B,CACxB,MAAe;QAEf,OAAO,MAA2C,CAAC;IACrD,CAAC;IACD,kBAAkB;IAElB,qBAAqB;IACrB,8BAA8B;IAC9B,yBAAyB,CACvB,MAAe;QAEf,OAAO,MAA6C,CAAC;IACvD,CAAC;IACD,kBAAkB;IAElB,iBAAiB;IACjB,8BAA8B;IAC9B,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAAqC,CAAC;IAC/C,CAAC;IACD,sBAAsB,CACpB,MAAe;QAEf,OAAO,MAE2B,CAAC;IACrC,CAAC;IACD,kBAAkB;IAElB,iBAAiB;IACjB,8BAA8B;IAC9B,wBAAwB,CAAC,MAAe;QACtC,OAAO,MAAyC,CAAC;IACnD,CAAC;IACD,qBAAqB,CAAC,MAAe;QACnC,OAAO,MAAsC,CAAC;IAChD,CAAC;IACD,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAAqC,CAAC;IAC/C,CAAC;IACD,kBAAkB;IAElB,uBAAuB;IACvB,8BAA8B;IAC9B,kBAAkB,CAAC,MAAe;QAChC,OAAO,MAAwC,CAAC;IAClD,CAAC;IACD,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAA0C,CAAC;IACpD,CAAC;CAEF;AApWD,wCAoWC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.d.ts deleted file mode 100644 index 83ad603..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Bluetooth, Browser, BrowsingContext, Cdp, Emulation, Input, Network, Permissions, Script, Session, Storage, WebExtension, UAClientHints } from '../protocol/protocol.js'; -export interface BidiCommandParameterParser { - parseDisableSimulationParameters(params: unknown): Bluetooth.DisableSimulationParameters; - parseHandleRequestDevicePromptParams(params: unknown): Bluetooth.HandleRequestDevicePromptParameters; - parseSimulateAdapterParameters(params: unknown): Bluetooth.SimulateAdapterParameters; - parseSimulateAdvertisementParameters(params: unknown): Bluetooth.SimulateAdvertisementParameters; - parseSimulateCharacteristicParameters(params: unknown): Bluetooth.SimulateCharacteristicParameters; - parseSimulateCharacteristicResponseParameters(params: unknown): Bluetooth.SimulateCharacteristicResponseParameters; - parseSimulateDescriptorParameters(params: unknown): Bluetooth.SimulateDescriptorParameters; - parseSimulateDescriptorResponseParameters(params: unknown): Bluetooth.SimulateDescriptorResponseParameters; - parseSimulateGattConnectionResponseParameters(params: unknown): Bluetooth.SimulateGattConnectionResponseParameters; - parseSimulateGattDisconnectionParameters(params: unknown): Bluetooth.SimulateGattDisconnectionParameters; - parseSimulatePreconnectedPeripheralParameters(params: unknown): Bluetooth.SimulatePreconnectedPeripheralParameters; - parseSimulateServiceParameters(params: unknown): Bluetooth.SimulateServiceParameters; - parseCreateUserContextParameters(params: unknown): Browser.CreateUserContextParameters; - parseRemoveUserContextParameters(params: unknown): Browser.RemoveUserContextParameters; - parseSetClientWindowStateParameters(params: unknown): Browser.SetClientWindowStateParameters; - parseSetDownloadBehaviorParameters(params: unknown): Browser.SetDownloadBehaviorParameters; - parseActivateParams(params: unknown): BrowsingContext.ActivateParameters; - parseCaptureScreenshotParams(params: unknown): BrowsingContext.CaptureScreenshotParameters; - parseCloseParams(params: unknown): BrowsingContext.CloseParameters; - parseCreateParams(params: unknown): BrowsingContext.CreateParameters; - parseGetTreeParams(params: unknown): BrowsingContext.GetTreeParameters; - parseHandleUserPromptParams(params: unknown): BrowsingContext.HandleUserPromptParameters; - parseLocateNodesParams(params: unknown): BrowsingContext.LocateNodesParameters; - parseNavigateParams(params: unknown): BrowsingContext.NavigateParameters; - parsePrintParams(params: unknown): BrowsingContext.PrintParameters; - parseReloadParams(params: unknown): BrowsingContext.ReloadParameters; - parseSetViewportParams(params: unknown): BrowsingContext.SetViewportParameters; - parseTraverseHistoryParams(params: unknown): BrowsingContext.TraverseHistoryParameters; - parseGetSessionParams(params: unknown): Cdp.GetSessionParameters; - parseResolveRealmParams(params: unknown): Cdp.ResolveRealmParameters; - parseSendCommandParams(params: unknown): Cdp.SendCommandParameters; - parseSetClientHintsOverrideParams(params: unknown): UAClientHints.UserAgentClientHints.SetClientHintsOverrideCommand['params']; - parseSetForcedColorsModeThemeOverrideParams(params: unknown): Emulation.SetForcedColorsModeThemeOverrideParameters; - parseSetGeolocationOverrideParams(params: unknown): Emulation.SetGeolocationOverrideParameters; - parseSetLocaleOverrideParams(params: unknown): Emulation.SetLocaleOverrideParameters; - parseSetNetworkConditionsParams(params: unknown): Emulation.SetNetworkConditionsParameters; - parseSetScreenOrientationOverrideParams(params: unknown): Emulation.SetScreenOrientationOverrideParameters; - parseSetScreenSettingsOverrideParams(params: unknown): Emulation.SetScreenSettingsOverrideParameters; - parseSetScriptingEnabledParams(params: unknown): Emulation.SetScriptingEnabledParameters; - parseSetTimezoneOverrideParams(params: unknown): Emulation.SetTimezoneOverrideParameters; - parseSetTouchOverrideParams(params: unknown): Emulation.SetTouchOverrideParameters; - parseSetUserAgentOverrideParams(params: unknown): Emulation.SetUserAgentOverrideParameters; - parsePerformActionsParams(params: unknown): Input.PerformActionsParameters; - parseReleaseActionsParams(params: unknown): Input.ReleaseActionsParameters; - parseSetFilesParams(params: unknown): Input.SetFilesParameters; - parseSetPermissionsParams(params: unknown): Permissions.SetPermissionParameters; - parseAddDataCollectorParams(params: unknown): Network.AddDataCollectorParameters; - parseAddInterceptParams(params: unknown): Network.AddInterceptParameters; - parseContinueRequestParams(params: unknown): Network.ContinueRequestParameters; - parseContinueResponseParams(params: unknown): Network.ContinueResponseParameters; - parseContinueWithAuthParams(params: unknown): Network.ContinueWithAuthParameters; - parseDisownDataParams(params: unknown): Network.DisownDataParameters; - parseFailRequestParams(params: unknown): Network.FailRequestParameters; - parseGetDataParams(params: unknown): Network.GetDataParameters; - parseProvideResponseParams(params: unknown): Network.ProvideResponseParameters; - parseRemoveDataCollectorParams(params: unknown): Network.RemoveDataCollectorParameters; - parseRemoveInterceptParams(params: unknown): Network.RemoveInterceptParameters; - parseSetCacheBehaviorParams(params: unknown): Network.SetCacheBehaviorParameters; - parseSetExtraHeadersParams(params: unknown): Network.SetExtraHeadersParameters; - parseAddPreloadScriptParams(params: unknown): Script.AddPreloadScriptParameters; - parseCallFunctionParams(params: unknown): Script.CallFunctionParameters; - parseDisownParams(params: unknown): Script.DisownParameters; - parseEvaluateParams(params: unknown): Script.EvaluateParameters; - parseGetRealmsParams(params: unknown): Script.GetRealmsParameters; - parseRemovePreloadScriptParams(params: unknown): Script.RemovePreloadScriptParameters; - parseSubscribeParams(params: unknown): Session.SubscribeParameters; - parseUnsubscribeParams(params: unknown): Session.UnsubscribeParameters; - parseDeleteCookiesParams(params: unknown): Storage.DeleteCookiesParameters; - parseGetCookiesParams(params: unknown): Storage.GetCookiesParameters; - parseSetCookieParams(params: unknown): Storage.SetCookieParameters; - parseInstallParams(params: unknown): WebExtension.InstallParameters; - parseUninstallParams(params: unknown): WebExtension.UninstallParameters; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.js deleted file mode 100644 index 466a391..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=BidiParser.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.js.map deleted file mode 100644 index c245f5f..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiParser.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiParser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.d.ts deleted file mode 100644 index de23cdf..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../cdp/CdpClient.js'; -import type { CdpConnection } from '../cdp/CdpConnection.js'; -import type { ChromiumBidi } from '../protocol/protocol.js'; -import { EventEmitter } from '../utils/EventEmitter.js'; -import { type LoggerFn } from '../utils/log.js'; -import type { Result } from '../utils/result.js'; -import type { BidiCommandParameterParser } from './BidiParser.js'; -import type { BidiTransport } from './BidiTransport.js'; -import type { OutgoingMessage } from './OutgoingMessage.js'; -interface BidiServerEvent extends Record { - message: ChromiumBidi.Command; -} -export declare class BidiServer extends EventEmitter { - #private; - private constructor(); - /** - * Creates and starts BiDi Mapper instance. - */ - static createAndStart(bidiTransport: BidiTransport, cdpConnection: CdpConnection, browserCdpClient: CdpClient, selfTargetId: string, parser?: BidiCommandParameterParser, logger?: LoggerFn): Promise; - /** - * Sends BiDi message. - */ - emitOutgoingMessage(messageEntry: Promise>, event: string): void; - close(): void; -} -export {}; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js deleted file mode 100644 index 810de82..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js +++ /dev/null @@ -1,169 +0,0 @@ -"use strict"; -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BidiServer = void 0; -const EventEmitter_js_1 = require("../utils/EventEmitter.js"); -const log_js_1 = require("../utils/log.js"); -const ProcessingQueue_js_1 = require("../utils/ProcessingQueue.js"); -const CommandProcessor_js_1 = require("./CommandProcessor.js"); -const BluetoothProcessor_js_1 = require("./modules/bluetooth/BluetoothProcessor.js"); -const ContextConfigStorage_js_1 = require("./modules/browser/ContextConfigStorage.js"); -const UserContextStorage_js_1 = require("./modules/browser/UserContextStorage.js"); -const CdpTargetManager_js_1 = require("./modules/cdp/CdpTargetManager.js"); -const BrowsingContextStorage_js_1 = require("./modules/context/BrowsingContextStorage.js"); -const NetworkStorage_js_1 = require("./modules/network/NetworkStorage.js"); -const PreloadScriptStorage_js_1 = require("./modules/script/PreloadScriptStorage.js"); -const RealmStorage_js_1 = require("./modules/script/RealmStorage.js"); -const EventManager_js_1 = require("./modules/session/EventManager.js"); -const SpeculationProcessor_js_1 = require("./modules/speculation/SpeculationProcessor.js"); -class BidiServer extends EventEmitter_js_1.EventEmitter { - #messageQueue; - #transport; - #commandProcessor; - #eventManager; - #browsingContextStorage = new BrowsingContextStorage_js_1.BrowsingContextStorage(); - #realmStorage = new RealmStorage_js_1.RealmStorage(); - #preloadScriptStorage = new PreloadScriptStorage_js_1.PreloadScriptStorage(); - #bluetoothProcessor; - #speculationProcessor; - #logger; - #handleIncomingMessage = (message) => { - void this.#commandProcessor.processCommand(message).catch((error) => { - this.#logger?.(log_js_1.LogType.debugError, error); - }); - }; - #processOutgoingMessage = async (messageEntry) => { - const message = messageEntry.message; - if (messageEntry.googChannel !== null) { - message['goog:channel'] = messageEntry.googChannel; - } - await this.#transport.sendMessage(message); - }; - constructor(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, defaultUserContextId, defaultUserAgent, parser, logger) { - super(); - this.#logger = logger; - this.#messageQueue = new ProcessingQueue_js_1.ProcessingQueue(this.#processOutgoingMessage, this.#logger); - this.#transport = bidiTransport; - this.#transport.setOnMessage(this.#handleIncomingMessage); - const contextConfigStorage = new ContextConfigStorage_js_1.ContextConfigStorage(); - const userContextStorage = new UserContextStorage_js_1.UserContextStorage(browserCdpClient); - this.#eventManager = new EventManager_js_1.EventManager(this.#browsingContextStorage, userContextStorage); - const networkStorage = new NetworkStorage_js_1.NetworkStorage(this.#eventManager, this.#browsingContextStorage, browserCdpClient, logger); - this.#bluetoothProcessor = new BluetoothProcessor_js_1.BluetoothProcessor(this.#eventManager, this.#browsingContextStorage); - this.#speculationProcessor = new SpeculationProcessor_js_1.SpeculationProcessor(this.#eventManager, this.#logger); - this.#commandProcessor = new CommandProcessor_js_1.CommandProcessor(cdpConnection, browserCdpClient, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, this.#preloadScriptStorage, networkStorage, contextConfigStorage, this.#bluetoothProcessor, userContextStorage, parser, async (options) => { - // This is required to ignore certificate errors when service worker is fetched. - await browserCdpClient.sendCommand('Security.setIgnoreCertificateErrors', { - ignore: options.acceptInsecureCerts ?? false, - }); - contextConfigStorage.updateGlobalConfig({ - acceptInsecureCerts: options.acceptInsecureCerts ?? false, - userPromptHandler: options.unhandledPromptBehavior, - prerenderingDisabled: options?.['goog:prerenderingDisabled'] ?? false, - disableNetworkDurableMessages: options?.['goog:disableNetworkDurableMessages'], - }); - new CdpTargetManager_js_1.CdpTargetManager(cdpConnection, browserCdpClient, selfTargetId, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, networkStorage, contextConfigStorage, this.#bluetoothProcessor, this.#speculationProcessor, this.#preloadScriptStorage, defaultUserContextId, defaultUserAgent, logger); - // Needed to get events about new targets. - await browserCdpClient.sendCommand('Target.setDiscoverTargets', { - discover: true, - }); - // Needed to automatically attach to new targets. - await browserCdpClient.sendCommand('Target.setAutoAttach', { - autoAttach: true, - waitForDebuggerOnStart: true, - flatten: true, - // Browser session should attach to tab instead of the page, so that - // prerendering is not blocked. - filter: [ - { - type: 'page', - exclude: true, - }, - {}, - ], - }); - await this.#topLevelContextsLoaded(); - }, this.#logger); - this.#eventManager.on("event" /* EventManagerEvents.Event */, ({ message, event }) => { - this.emitOutgoingMessage(message, event); - }); - this.#commandProcessor.on("response" /* CommandProcessorEvents.Response */, ({ message, event }) => { - this.emitOutgoingMessage(message, event); - }); - } - /** - * Creates and starts BiDi Mapper instance. - */ - static async createAndStart(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, parser, logger) { - const [defaultUserContextId, version] = await Promise.all([ - this.#getDefaultUserContextId(browserCdpClient), - // Fetch the default User Agent to be used in `CdpTarget`. This allows to avoid - // round trips to the browser for every target override. - browserCdpClient.sendCommand('Browser.getVersion'), - // Required for `Browser.downloadWillBegin` events. - browserCdpClient.sendCommand('Browser.setDownloadBehavior', { - behavior: 'default', - eventsEnabled: true, - }), - ]); - const server = new BidiServer(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, defaultUserContextId, version.userAgent, parser, logger); - return server; - } - static async #getDefaultUserContextId(browserCdpClient) { - // In chromium before `145.0.7578.0`, the default context is not exposed in - // `Target.getBrowserContexts`, but can be observed via `Target.getTargets`. - // If so, try to determine the default browser context by checking which one - // is mentioned in `Target.getTargets` and not in - // `Target.getBrowserContexts`. - // TODO(after 2026-02-24): rely only on `defaultBrowserContextId` from - // `Target.getBrowserContexts` after Chromium 145 reaches stable. - const [{ defaultBrowserContextId, browserContextIds }, { targetInfos }] = await Promise.all([ - browserCdpClient.sendCommand('Target.getBrowserContexts'), - browserCdpClient.sendCommand('Target.getTargets'), - ]); - if (defaultBrowserContextId) { - return defaultBrowserContextId; - } - for (const info of targetInfos) { - if (info.browserContextId && - !browserContextIds.includes(info.browserContextId)) { - // The target belongs to a browser context that is not mentioned in - // `Target.getBrowserContexts`. This is the default browser context. - return info.browserContextId; - } - } - // The browser context is unknown. - return 'default'; - } - /** - * Sends BiDi message. - */ - emitOutgoingMessage(messageEntry, event) { - this.#messageQueue.add(messageEntry, event); - } - close() { - this.#transport.close(); - } - async #topLevelContextsLoaded() { - await Promise.all(this.#browsingContextStorage - .getTopLevelContexts() - .map((c) => c.lifecycleLoaded())); - } -} -exports.BidiServer = BidiServer; -//# sourceMappingURL=BidiServer.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js.map deleted file mode 100644 index 728464d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiServer.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiServer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,8DAAsD;AACtD,4CAAuD;AACvD,oEAA4D;AAK5D,+DAA+E;AAE/E,qFAA6E;AAC7E,uFAA+E;AAC/E,mFAA2E;AAC3E,2EAAmE;AACnE,2FAAmF;AACnF,2EAAmE;AACnE,sFAA8E;AAC9E,sEAA8D;AAC9D,uEAG2C;AAC3C,2FAAmF;AAOnF,MAAa,UAAW,SAAQ,8BAA6B;IAC3D,aAAa,CAAmC;IAChD,UAAU,CAAgB;IAC1B,iBAAiB,CAAmB;IACpC,aAAa,CAAe;IAE5B,uBAAuB,GAAG,IAAI,kDAAsB,EAAE,CAAC;IACvD,aAAa,GAAG,IAAI,8BAAY,EAAE,CAAC;IACnC,qBAAqB,GAAG,IAAI,8CAAoB,EAAE,CAAC;IACnD,mBAAmB,CAAqB;IACxC,qBAAqB,CAAuB;IAE5C,OAAO,CAAY;IAEnB,sBAAsB,GAAG,CAAC,OAA6B,EAAE,EAAE;QACzD,KAAK,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YAClE,IAAI,CAAC,OAAO,EAAE,CAAC,gBAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,uBAAuB,GAAG,KAAK,EAAE,YAA6B,EAAE,EAAE;QAChE,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;QAErC,IAAI,YAA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js/bidiMapper/BidiTransport.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.d.ts deleted file mode 100644 index 6824b83..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { ChromiumBidi } from '../protocol/protocol.js'; -export interface BidiTransport { - setOnMessage: (handler: (message: ChromiumBidi.Command) => Promise | void) => void; - sendMessage: (message: ChromiumBidi.Message) => Promise | void; - close(): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.js deleted file mode 100644 index 0d1bfa1..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=BidiTransport.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.js.map deleted file mode 100644 index 4bb4acd..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiTransport.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiTransport.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.d.ts deleted file mode 100644 index e8a3471..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../cdp/CdpClient.js'; -import type { CdpConnection } from '../cdp/CdpConnection.js'; -import { type ChromiumBidi } from '../protocol/protocol.js'; -import { EventEmitter } from '../utils/EventEmitter.js'; -import { type LoggerFn } from '../utils/log.js'; -import type { Result } from '../utils/result.js'; -import type { BidiCommandParameterParser } from './BidiParser.js'; -import type { MapperOptions } from './MapperOptions.js'; -import type { BluetoothProcessor } from './modules/bluetooth/BluetoothProcessor.js'; -import type { ContextConfigStorage } from './modules/browser/ContextConfigStorage.js'; -import type { UserContextStorage } from './modules/browser/UserContextStorage.js'; -import type { BrowsingContextStorage } from './modules/context/BrowsingContextStorage.js'; -import type { NetworkStorage } from './modules/network/NetworkStorage.js'; -import type { PreloadScriptStorage } from './modules/script/PreloadScriptStorage.js'; -import type { RealmStorage } from './modules/script/RealmStorage.js'; -import type { EventManager } from './modules/session/EventManager.js'; -import { OutgoingMessage } from './OutgoingMessage.js'; -export declare const enum CommandProcessorEvents { - Response = "response" -} -interface CommandProcessorEventsMap extends Record { - [CommandProcessorEvents.Response]: { - message: Promise>; - event: string; - }; -} -export declare class CommandProcessor extends EventEmitter { - #private; - constructor(cdpConnection: CdpConnection, browserCdpClient: CdpClient, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, preloadScriptStorage: PreloadScriptStorage, networkStorage: NetworkStorage, contextConfigStorage: ContextConfigStorage, bluetoothProcessor: BluetoothProcessor, userContextStorage: UserContextStorage, parser: BidiCommandParameterParser | undefined, initConnection: (options: MapperOptions) => Promise, logger?: LoggerFn); - processCommand(command: ChromiumBidi.Command): Promise; -} -export {}; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js deleted file mode 100644 index a3be7df..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js +++ /dev/null @@ -1,326 +0,0 @@ -"use strict"; -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CommandProcessor = void 0; -const protocol_js_1 = require("../protocol/protocol.js"); -const EventEmitter_js_1 = require("../utils/EventEmitter.js"); -const log_js_1 = require("../utils/log.js"); -const BidiNoOpParser_js_1 = require("./BidiNoOpParser.js"); -const BrowserProcessor_js_1 = require("./modules/browser/BrowserProcessor.js"); -const CdpProcessor_js_1 = require("./modules/cdp/CdpProcessor.js"); -const BrowsingContextProcessor_js_1 = require("./modules/context/BrowsingContextProcessor.js"); -const EmulationProcessor_js_1 = require("./modules/emulation/EmulationProcessor.js"); -const InputProcessor_js_1 = require("./modules/input/InputProcessor.js"); -const NetworkProcessor_js_1 = require("./modules/network/NetworkProcessor.js"); -const PermissionsProcessor_js_1 = require("./modules/permissions/PermissionsProcessor.js"); -const ScriptProcessor_js_1 = require("./modules/script/ScriptProcessor.js"); -const SessionProcessor_js_1 = require("./modules/session/SessionProcessor.js"); -const StorageProcessor_js_1 = require("./modules/storage/StorageProcessor.js"); -const WebExtensionProcessor_js_1 = require("./modules/webExtension/WebExtensionProcessor.js"); -const OutgoingMessage_js_1 = require("./OutgoingMessage.js"); -class CommandProcessor extends EventEmitter_js_1.EventEmitter { - // keep-sorted start - #bluetoothProcessor; - #browserCdpClient; - #browserProcessor; - #browsingContextProcessor; - #cdpProcessor; - #emulationProcessor; - #inputProcessor; - #networkProcessor; - #permissionsProcessor; - #scriptProcessor; - #sessionProcessor; - #storageProcessor; - #webExtensionProcessor; - // keep-sorted end - #parser; - #logger; - constructor(cdpConnection, browserCdpClient, eventManager, browsingContextStorage, realmStorage, preloadScriptStorage, networkStorage, contextConfigStorage, bluetoothProcessor, userContextStorage, parser = new BidiNoOpParser_js_1.BidiNoOpParser(), initConnection, logger) { - super(); - this.#browserCdpClient = browserCdpClient; - this.#parser = parser; - this.#logger = logger; - this.#bluetoothProcessor = bluetoothProcessor; - // keep-sorted start block=yes - this.#browserProcessor = new BrowserProcessor_js_1.BrowserProcessor(browserCdpClient, browsingContextStorage, contextConfigStorage, userContextStorage); - this.#browsingContextProcessor = new BrowsingContextProcessor_js_1.BrowsingContextProcessor(browserCdpClient, browsingContextStorage, userContextStorage, contextConfigStorage, eventManager); - this.#cdpProcessor = new CdpProcessor_js_1.CdpProcessor(browsingContextStorage, realmStorage, cdpConnection, browserCdpClient); - this.#emulationProcessor = new EmulationProcessor_js_1.EmulationProcessor(browsingContextStorage, userContextStorage, contextConfigStorage); - this.#inputProcessor = new InputProcessor_js_1.InputProcessor(browsingContextStorage); - this.#networkProcessor = new NetworkProcessor_js_1.NetworkProcessor(browsingContextStorage, networkStorage, userContextStorage, contextConfigStorage); - this.#permissionsProcessor = new PermissionsProcessor_js_1.PermissionsProcessor(browserCdpClient); - this.#scriptProcessor = new ScriptProcessor_js_1.ScriptProcessor(eventManager, browsingContextStorage, realmStorage, preloadScriptStorage, userContextStorage, logger); - this.#sessionProcessor = new SessionProcessor_js_1.SessionProcessor(eventManager, browserCdpClient, initConnection); - this.#storageProcessor = new StorageProcessor_js_1.StorageProcessor(browserCdpClient, browsingContextStorage, logger); - this.#webExtensionProcessor = new WebExtensionProcessor_js_1.WebExtensionProcessor(browserCdpClient); - // keep-sorted end - } - async #processCommand(command) { - switch (command.method) { - // Bluetooth module - // keep-sorted start block=yes - case 'bluetooth.disableSimulation': - return await this.#bluetoothProcessor.disableSimulation(this.#parser.parseDisableSimulationParameters(command.params)); - case 'bluetooth.handleRequestDevicePrompt': - return await this.#bluetoothProcessor.handleRequestDevicePrompt(this.#parser.parseHandleRequestDevicePromptParams(command.params)); - case 'bluetooth.simulateAdapter': - return await this.#bluetoothProcessor.simulateAdapter(this.#parser.parseSimulateAdapterParameters(command.params)); - case 'bluetooth.simulateAdvertisement': - return await this.#bluetoothProcessor.simulateAdvertisement(this.#parser.parseSimulateAdvertisementParameters(command.params)); - case 'bluetooth.simulateCharacteristic': - return await this.#bluetoothProcessor.simulateCharacteristic(this.#parser.parseSimulateCharacteristicParameters(command.params)); - case 'bluetooth.simulateCharacteristicResponse': - return await this.#bluetoothProcessor.simulateCharacteristicResponse(this.#parser.parseSimulateCharacteristicResponseParameters(command.params)); - case 'bluetooth.simulateDescriptor': - return await this.#bluetoothProcessor.simulateDescriptor(this.#parser.parseSimulateDescriptorParameters(command.params)); - case 'bluetooth.simulateDescriptorResponse': - return await this.#bluetoothProcessor.simulateDescriptorResponse(this.#parser.parseSimulateDescriptorResponseParameters(command.params)); - case 'bluetooth.simulateGattConnectionResponse': - return await this.#bluetoothProcessor.simulateGattConnectionResponse(this.#parser.parseSimulateGattConnectionResponseParameters(command.params)); - case 'bluetooth.simulateGattDisconnection': - return await this.#bluetoothProcessor.simulateGattDisconnection(this.#parser.parseSimulateGattDisconnectionParameters(command.params)); - case 'bluetooth.simulatePreconnectedPeripheral': - return await this.#bluetoothProcessor.simulatePreconnectedPeripheral(this.#parser.parseSimulatePreconnectedPeripheralParameters(command.params)); - case 'bluetooth.simulateService': - return await this.#bluetoothProcessor.simulateService(this.#parser.parseSimulateServiceParameters(command.params)); - // keep-sorted end - // Browser module - // keep-sorted start block=yes - case 'browser.close': - return this.#browserProcessor.close(); - case 'browser.createUserContext': - return await this.#browserProcessor.createUserContext(this.#parser.parseCreateUserContextParameters(command.params)); - case 'browser.getClientWindows': - return await this.#browserProcessor.getClientWindows(); - case 'browser.getUserContexts': - return await this.#browserProcessor.getUserContexts(); - case 'browser.removeUserContext': - return await this.#browserProcessor.removeUserContext(this.#parser.parseRemoveUserContextParameters(command.params)); - case 'browser.setClientWindowState': - return await this.#browserProcessor.setClientWindowState(this.#parser.parseSetClientWindowStateParameters(command.params)); - case 'browser.setDownloadBehavior': - return await this.#browserProcessor.setDownloadBehavior(this.#parser.parseSetDownloadBehaviorParameters(command.params)); - // keep-sorted end - // Browsing Context module - // keep-sorted start block=yes - case 'browsingContext.activate': - return await this.#browsingContextProcessor.activate(this.#parser.parseActivateParams(command.params)); - case 'browsingContext.captureScreenshot': - return await this.#browsingContextProcessor.captureScreenshot(this.#parser.parseCaptureScreenshotParams(command.params)); - case 'browsingContext.close': - return await this.#browsingContextProcessor.close(this.#parser.parseCloseParams(command.params)); - case 'browsingContext.create': - return await this.#browsingContextProcessor.create(this.#parser.parseCreateParams(command.params)); - case 'browsingContext.getTree': - return this.#browsingContextProcessor.getTree(this.#parser.parseGetTreeParams(command.params)); - case 'browsingContext.handleUserPrompt': - return await this.#browsingContextProcessor.handleUserPrompt(this.#parser.parseHandleUserPromptParams(command.params)); - case 'browsingContext.locateNodes': - return await this.#browsingContextProcessor.locateNodes(this.#parser.parseLocateNodesParams(command.params)); - case 'browsingContext.navigate': - return await this.#browsingContextProcessor.navigate(this.#parser.parseNavigateParams(command.params)); - case 'browsingContext.print': - return await this.#browsingContextProcessor.print(this.#parser.parsePrintParams(command.params)); - case 'browsingContext.reload': - return await this.#browsingContextProcessor.reload(this.#parser.parseReloadParams(command.params)); - case 'browsingContext.setViewport': - return await this.#browsingContextProcessor.setViewport(this.#parser.parseSetViewportParams(command.params)); - case 'browsingContext.traverseHistory': - return await this.#browsingContextProcessor.traverseHistory(this.#parser.parseTraverseHistoryParams(command.params)); - // keep-sorted end - // CDP module - // keep-sorted start block=yes - case 'goog:cdp.getSession': - return this.#cdpProcessor.getSession(this.#parser.parseGetSessionParams(command.params)); - case 'goog:cdp.resolveRealm': - return this.#cdpProcessor.resolveRealm(this.#parser.parseResolveRealmParams(command.params)); - case 'goog:cdp.sendCommand': - return await this.#cdpProcessor.sendCommand(this.#parser.parseSendCommandParams(command.params)); - // keep-sorted end - // Emulation module - // keep-sorted start block=yes - case 'emulation.setForcedColorsModeThemeOverride': - this.#parser.parseSetForcedColorsModeThemeOverrideParams(command.params); - throw new protocol_js_1.UnsupportedOperationException(`Method ${command.method} is not implemented.`); - case 'emulation.setGeolocationOverride': - return await this.#emulationProcessor.setGeolocationOverride(this.#parser.parseSetGeolocationOverrideParams(command.params)); - case 'emulation.setLocaleOverride': - return await this.#emulationProcessor.setLocaleOverride(this.#parser.parseSetLocaleOverrideParams(command.params)); - case 'emulation.setNetworkConditions': - return await this.#emulationProcessor.setNetworkConditions(this.#parser.parseSetNetworkConditionsParams(command.params)); - case 'emulation.setScreenOrientationOverride': - return await this.#emulationProcessor.setScreenOrientationOverride(this.#parser.parseSetScreenOrientationOverrideParams(command.params)); - case 'emulation.setScreenSettingsOverride': - return await this.#emulationProcessor.setScreenSettingsOverride(this.#parser.parseSetScreenSettingsOverrideParams(command.params)); - case 'emulation.setScriptingEnabled': - return await this.#emulationProcessor.setScriptingEnabled(this.#parser.parseSetScriptingEnabledParams(command.params)); - case 'emulation.setTimezoneOverride': - return await this.#emulationProcessor.setTimezoneOverride(this.#parser.parseSetTimezoneOverrideParams(command.params)); - case 'emulation.setTouchOverride': - return await this.#emulationProcessor.setTouchOverride(this.#parser.parseSetTouchOverrideParams(command.params)); - case 'emulation.setUserAgentOverride': - return await this.#emulationProcessor.setUserAgentOverrideParams(this.#parser.parseSetUserAgentOverrideParams(command.params)); - case 'userAgentClientHints.setClientHintsOverride': - return await this.#emulationProcessor.setClientHintsOverride(this.#parser.parseSetClientHintsOverrideParams(command.params)); - // keep-sorted end - // Input module - // keep-sorted start block=yes - case 'input.performActions': - return await this.#inputProcessor.performActions(this.#parser.parsePerformActionsParams(command.params)); - case 'input.releaseActions': - return await this.#inputProcessor.releaseActions(this.#parser.parseReleaseActionsParams(command.params)); - case 'input.setFiles': - return await this.#inputProcessor.setFiles(this.#parser.parseSetFilesParams(command.params)); - // keep-sorted end - // Network module - // keep-sorted start block=yes - case 'network.addDataCollector': - return await this.#networkProcessor.addDataCollector(this.#parser.parseAddDataCollectorParams(command.params)); - case 'network.addIntercept': - return await this.#networkProcessor.addIntercept(this.#parser.parseAddInterceptParams(command.params)); - case 'network.continueRequest': - return await this.#networkProcessor.continueRequest(this.#parser.parseContinueRequestParams(command.params)); - case 'network.continueResponse': - return await this.#networkProcessor.continueResponse(this.#parser.parseContinueResponseParams(command.params)); - case 'network.continueWithAuth': - return await this.#networkProcessor.continueWithAuth(this.#parser.parseContinueWithAuthParams(command.params)); - case 'network.disownData': - return this.#networkProcessor.disownData(this.#parser.parseDisownDataParams(command.params)); - case 'network.failRequest': - return await this.#networkProcessor.failRequest(this.#parser.parseFailRequestParams(command.params)); - case 'network.getData': - return await this.#networkProcessor.getData(this.#parser.parseGetDataParams(command.params)); - case 'network.provideResponse': - return await this.#networkProcessor.provideResponse(this.#parser.parseProvideResponseParams(command.params)); - case 'network.removeDataCollector': - return await this.#networkProcessor.removeDataCollector(this.#parser.parseRemoveDataCollectorParams(command.params)); - case 'network.removeIntercept': - return await this.#networkProcessor.removeIntercept(this.#parser.parseRemoveInterceptParams(command.params)); - case 'network.setCacheBehavior': - return await this.#networkProcessor.setCacheBehavior(this.#parser.parseSetCacheBehaviorParams(command.params)); - case 'network.setExtraHeaders': - return await this.#networkProcessor.setExtraHeaders(this.#parser.parseSetExtraHeadersParams(command.params)); - // keep-sorted end - // Permissions module - // keep-sorted start block=yes - case 'permissions.setPermission': - return await this.#permissionsProcessor.setPermissions(this.#parser.parseSetPermissionsParams(command.params)); - // keep-sorted end - // Script module - // keep-sorted start block=yes - case 'script.addPreloadScript': - return await this.#scriptProcessor.addPreloadScript(this.#parser.parseAddPreloadScriptParams(command.params)); - case 'script.callFunction': - return await this.#scriptProcessor.callFunction(this.#parser.parseCallFunctionParams(this.#processTargetParams(command.params))); - case 'script.disown': - return await this.#scriptProcessor.disown(this.#parser.parseDisownParams(this.#processTargetParams(command.params))); - case 'script.evaluate': - return await this.#scriptProcessor.evaluate(this.#parser.parseEvaluateParams(this.#processTargetParams(command.params))); - case 'script.getRealms': - return this.#scriptProcessor.getRealms(this.#parser.parseGetRealmsParams(command.params)); - case 'script.removePreloadScript': - return await this.#scriptProcessor.removePreloadScript(this.#parser.parseRemovePreloadScriptParams(command.params)); - // keep-sorted end - // Session module - // keep-sorted start block=yes - case 'session.end': - throw new protocol_js_1.UnsupportedOperationException(`Method ${command.method} is not implemented.`); - case 'session.new': - return await this.#sessionProcessor.new(command.params); - case 'session.status': - return this.#sessionProcessor.status(); - case 'session.subscribe': - return await this.#sessionProcessor.subscribe(this.#parser.parseSubscribeParams(command.params), command['goog:channel']); - case 'session.unsubscribe': - return await this.#sessionProcessor.unsubscribe(this.#parser.parseUnsubscribeParams(command.params), command['goog:channel']); - // keep-sorted end - // Storage module - // keep-sorted start block=yes - case 'storage.deleteCookies': - return await this.#storageProcessor.deleteCookies(this.#parser.parseDeleteCookiesParams(command.params)); - case 'storage.getCookies': - return await this.#storageProcessor.getCookies(this.#parser.parseGetCookiesParams(command.params)); - case 'storage.setCookie': - return await this.#storageProcessor.setCookie(this.#parser.parseSetCookieParams(command.params)); - // keep-sorted end - // WebExtension module - // keep-sorted start block=yes - case 'webExtension.install': - return await this.#webExtensionProcessor.install(this.#parser.parseInstallParams(command.params)); - case 'webExtension.uninstall': - return await this.#webExtensionProcessor.uninstall(this.#parser.parseUninstallParams(command.params)); - // keep-sorted end - } - // Intentionally kept outside the switch statement to ensure that - // ESLint @typescript-eslint/switch-exhaustiveness-check triggers if a new - // command is added. - throw new protocol_js_1.UnknownCommandException(`Unknown command '${command?.method}'.`); - } - // Workaround for as zod.union always take the first schema - // https://github.com/w3c/webdriver-bidi/issues/635 - #processTargetParams(params) { - if (typeof params === 'object' && - params && - 'target' in params && - typeof params.target === 'object' && - params.target && - 'context' in params.target) { - delete params.target['realm']; - } - return params; - } - async processCommand(command) { - try { - const result = await this.#processCommand(command); - const response = { - type: 'success', - id: command.id, - result, - }; - this.emit("response" /* CommandProcessorEvents.Response */, { - message: OutgoingMessage_js_1.OutgoingMessage.createResolved(response, command['goog:channel']), - event: command.method, - }); - } - catch (e) { - if (e instanceof protocol_js_1.Exception) { - this.emit("response" /* CommandProcessorEvents.Response */, { - message: OutgoingMessage_js_1.OutgoingMessage.createResolved(e.toErrorResponse(command.id), command['goog:channel']), - event: command.method, - }); - } - else { - const error = e; - this.#logger?.(log_js_1.LogType.bidi, error); - // Heuristic required for processing cases when a browsing context is gone - // during the command processing, e.g. like in test - // `test_input_keyDown_closes_browsing_context`. - const errorException = this.#browserCdpClient.isCloseError(e) - ? new protocol_js_1.NoSuchFrameException(`Browsing context is gone`) - : new protocol_js_1.UnknownErrorException(error.message, error.stack); - this.emit("response" /* CommandProcessorEvents.Response */, { - message: OutgoingMessage_js_1.OutgoingMessage.createResolved(errorException.toErrorResponse(command.id), command['goog:channel']), - event: command.method, - }); - } - } - } -} -exports.CommandProcessor = CommandProcessor; -//# sourceMappingURL=CommandProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js.map deleted file mode 100644 index f8e78bb..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CommandProcessor.js","sourceRoot":"","sources":["../../../src/bidiMapper/CommandProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAIH,yDAQiC;AACjC,8DAAsD;AACtD,4CAAuD;AAGvD,2DAAmD;AAInD,+EAAuE;AAGvE,mEAA2D;AAC3D,+FAAuF;AAEvF,qFAA6E;AAC7E,yEAAiE;AACjE,+EAAuE;AAEvE,2FAAmF;AAGnF,4EAAoE;AAEpE,+EAAuE;AACvE,+EAAuE;AACvE,8FAAsF;AACtF,6DAAqD;AAarD,MAAa,gBAAiB,SAAQ,8BAAuC;IAC3E,oBAAoB;IACpB,mBAAmB,CAAqB;IACxC,iBAAiB,CAAY;IAC7B,iBAAiB,CAAmB;IACpC,yBAAyB,CAA2B;IACpD,aAAa,CAAe;IAC5B,mBAAmB,CAAqB;IACxC,eAAe,CAAiB;IAChC,iBAAiB,CAAmB;IACpC,qBAAqB,CAAuB;IAC5C,gBAAgB,CAAkB;IAClC,iBAAiB,CAAmB;IACpC,iBAAiB,CAAmB;IACpC,sBAAsB,CAAwB;IAC9C,kBAAkB;IAElB,OAAO,CAA6B;IACpC,OAAO,CAAY;IAEnB,YACE,aAA4B,EAC5B,gBAA2B,EAC3B,YAA0B,EAC1B,sBAA8C,EAC9C,YAA0B,EAC1B,oBAA0C,EAC1C,cAA8B,EAC9B,oBAA0C,EAC1C,kBAAsC,EACtC,kBAAsC,EACtC,SAAqC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AE,CAAC;YACX,IAAI,CAAC,YAAY,uBAAS,EAAE,CAAC;gBAC3B,IAAI,CAAC,IAAI,mDAAkC;oBACzC,OAAO,EAAE,oCAAe,CAAC,cAAc,CACrC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,EAC7B,OAAO,CAAC,cAAc,CAAC,CACxB;oBACD,KAAK,EAAE,OAAO,CAAC,MAAM;iBACtB,CAAC,CAAC;YACL,CAAC;iBAAM,CAAC;gBACN,MAAM,KAAK,GAAG,CAAU,CAAC;gBACzB,IAAI,CAAC,OAAO,EAAE,CAAC,gBAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBACpC,0EAA0E;gBAC1E,mDAAmD;gBACnD,gDAAgD;gBAChD,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC;oBAC3D,CAAC,CAAC,IAAI,kCAAoB,CAAC,0BAA0B,CAAC;oBACtD,CAAC,CAAC,IAAI,mCAAqB,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC1D,IAAI,CAAC,IAAI,mDAAkC;oBACzC,OAAO,EAAE,oCAAe,CAAC,cAAc,CACrC,cAAc,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,EAC1C,OAAO,CAAC,cAAc,CAAC,CACxB;oBACD,KAAK,EAAE,OAAO,CAAC,MAAM;iBACtB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;CACF;AA5hBD,4CA4hBC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/MapperOptions.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/MapperOptions.d.ts deleted file mode 100644 index 01a18c6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/MapperOptions.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { Session } from '../protocol/generated/webdriver-bidi.js'; -export interface MapperOptions { - acceptInsecureCerts?: boolean; - unhandledPromptBehavior?: Session.UserPromptHandler; - 'goog:prerenderingDisabled'?: boolean; - 'goog:disableNetworkDurableMessages'?: true; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/MapperOptions.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/MapperOptions.js deleted file mode 100644 index 990c981..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/MapperOptions.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -/* - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=MapperOptions.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/MapperOptions.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/MapperOptions.js.map deleted file mode 100644 index bb59e35..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/MapperOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MapperOptions.js","sourceRoot":"","sources":["../../../src/bidiMapper/MapperOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.d.ts deleted file mode 100644 index 3ef8ae1..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { GoogChannel } from '../protocol/chromium-bidi.js'; -import type { ChromiumBidi } from '../protocol/protocol.js'; -import type { Result } from '../utils/result.js'; -export declare class OutgoingMessage { - #private; - private constructor(); - static createFromPromise(messagePromise: Promise>, googChannel: GoogChannel): Promise>; - static createResolved(message: ChromiumBidi.Message, googChannel?: GoogChannel): Promise>; - get message(): ChromiumBidi.Message; - get googChannel(): GoogChannel; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js deleted file mode 100644 index eb57bd1..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OutgoingMessage = void 0; -class OutgoingMessage { - #message; - #googChannel; - constructor(message, googChannel = null) { - this.#message = message; - this.#googChannel = googChannel; - } - static createFromPromise(messagePromise, googChannel) { - return messagePromise.then((message) => { - if (message.kind === 'success') { - return { - kind: 'success', - value: new OutgoingMessage(message.value, googChannel), - }; - } - return message; - }); - } - static createResolved(message, googChannel = null) { - return Promise.resolve({ - kind: 'success', - value: new OutgoingMessage(message, googChannel), - }); - } - get message() { - return this.#message; - } - get googChannel() { - return this.#googChannel; - } -} -exports.OutgoingMessage = OutgoingMessage; -//# sourceMappingURL=OutgoingMessage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js.map deleted file mode 100644 index ba2e552..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OutgoingMessage.js","sourceRoot":"","sources":["../../../src/bidiMapper/OutgoingMessage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAMH,MAAa,eAAe;IACjB,QAAQ,CAAuB;IAC/B,YAAY,CAAc;IAEnC,YACE,OAA6B,EAC7B,cAA2B,IAAI;QAE/B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,iBAAiB,CACtB,cAAqD,EACrD,WAAwB;QAExB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;YACrC,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBAC/B,OAAO;oBACL,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,IAAI,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC;iBACvD,CAAC;YACJ,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,cAAc,CACnB,OAA6B,EAC7B,cAA2B,IAAI;QAE/B,OAAO,OAAO,CAAC,OAAO,CAAC;YACrB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI,eAAe,CAAC,OAAO,EAAE,WAAW,CAAC;SACjD,CAAC,CAAC;IACL,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;CACF;AA5CD,0CA4CC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.d.ts deleted file mode 100644 index 9b5b6e9..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type Bluetooth, type EmptyResult } from '../../../protocol/protocol.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -export declare class BluetoothProcessor { - #private; - constructor(eventManager: EventManager, browsingContextStorage: BrowsingContextStorage); - simulateAdapter(params: Bluetooth.SimulateAdapterParameters): Promise; - disableSimulation(params: Bluetooth.DisableSimulationParameters): Promise; - simulatePreconnectedPeripheral(params: Bluetooth.SimulatePreconnectedPeripheralParameters): Promise; - simulateAdvertisement(params: Bluetooth.SimulateAdvertisementParameters): Promise; - simulateCharacteristic(params: Bluetooth.SimulateCharacteristicParameters): Promise; - simulateCharacteristicResponse(params: Bluetooth.SimulateCharacteristicResponseParameters): Promise; - simulateDescriptor(params: Bluetooth.SimulateDescriptorParameters): Promise; - simulateDescriptorResponse(params: Bluetooth.SimulateDescriptorResponseParameters): Promise; - simulateGattConnectionResponse(params: Bluetooth.SimulateGattConnectionResponseParameters): Promise; - simulateGattDisconnection(params: Bluetooth.SimulateGattDisconnectionParameters): Promise; - simulateService(params: Bluetooth.SimulateServiceParameters): Promise; - onCdpTargetCreated(cdpTarget: CdpTarget): void; - handleRequestDevicePrompt(params: Bluetooth.HandleRequestDevicePromptParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js deleted file mode 100644 index 0ac1934..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js +++ /dev/null @@ -1,411 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BluetoothProcessor = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -/** Represents a base Bluetooth GATT item. */ -class BluetoothGattItem { - id; - uuid; - constructor(id, uuid) { - this.id = id; - this.uuid = uuid; - } -} -/** Represents a Bluetooth descriptor. */ -class BluetoothDescriptor extends BluetoothGattItem { - characteristic; - constructor(id, uuid, characteristic) { - super(id, uuid); - this.characteristic = characteristic; - } -} -/** Represents a Bluetooth characteristic. */ -class BluetoothCharacteristic extends BluetoothGattItem { - descriptors = new Map(); - service; - constructor(id, uuid, service) { - super(id, uuid); - this.service = service; - } -} -/** Represents a Bluetooth service. */ -class BluetoothService extends BluetoothGattItem { - characteristics = new Map(); - device; - constructor(id, uuid, device) { - super(id, uuid); - this.device = device; - } -} -/** Represents a Bluetooth device. */ -class BluetoothDevice { - address; - services = new Map(); - constructor(address) { - this.address = address; - } -} -class BluetoothProcessor { - #eventManager; - #browsingContextStorage; - #bluetoothDevices = new Map(); - // A map from a characteristic id from CDP to its BluetoothCharacteristic object. - #bluetoothCharacteristics = new Map(); - // A map from a descriptor id from CDP to its BluetoothDescriptor object. - #bluetoothDescriptors = new Map(); - constructor(eventManager, browsingContextStorage) { - this.#eventManager = eventManager; - this.#browsingContextStorage = browsingContextStorage; - } - #getDevice(address) { - const device = this.#bluetoothDevices.get(address); - if (!device) { - throw new protocol_js_1.InvalidArgumentException(`Bluetooth device with address ${address} does not exist`); - } - return device; - } - #getService(device, serviceUuid) { - const service = device.services.get(serviceUuid); - if (!service) { - throw new protocol_js_1.InvalidArgumentException(`Service with UUID ${serviceUuid} on device ${device.address} does not exist`); - } - return service; - } - #getCharacteristic(service, characteristicUuid) { - const characteristic = service.characteristics.get(characteristicUuid); - if (!characteristic) { - throw new protocol_js_1.InvalidArgumentException(`Characteristic with UUID ${characteristicUuid} does not exist for service ${service.uuid} on device ${service.device.address}`); - } - return characteristic; - } - #getDescriptor(characteristic, descriptorUuid) { - const descriptor = characteristic.descriptors.get(descriptorUuid); - if (!descriptor) { - throw new protocol_js_1.InvalidArgumentException(`Descriptor with UUID ${descriptorUuid} does not exist for characteristic ${characteristic.uuid} on service ${characteristic.service.uuid} on device ${characteristic.service.device.address}`); - } - return descriptor; - } - async simulateAdapter(params) { - if (params.state === undefined) { - // The bluetooth.simulateAdapter Command - // Step 4.2. If params["state"] does not exist, return error with error code invalid argument. - // https://webbluetoothcg.github.io/web-bluetooth/#bluetooth-simulateAdapter-command - throw new protocol_js_1.InvalidArgumentException(`Parameter "state" is required for creating a Bluetooth adapter`); - } - const context = this.#browsingContextStorage.getContext(params.context); - // Bluetooth spec requires overriding the existing adapter (step 6). From the CDP - // perspective, we need to disable the emulation first. - // https://webbluetoothcg.github.io/web-bluetooth/#bluetooth-simulateAdapter-command - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.disable'); - this.#bluetoothDevices.clear(); - this.#bluetoothCharacteristics.clear(); - this.#bluetoothDescriptors.clear(); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.enable', { - state: params.state, - leSupported: params.leSupported ?? true, - }); - return {}; - } - async disableSimulation(params) { - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.disable'); - this.#bluetoothDevices.clear(); - this.#bluetoothCharacteristics.clear(); - this.#bluetoothDescriptors.clear(); - return {}; - } - async simulatePreconnectedPeripheral(params) { - if (this.#bluetoothDevices.has(params.address)) { - throw new protocol_js_1.InvalidArgumentException(`Bluetooth device with address ${params.address} already exists`); - } - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulatePreconnectedPeripheral', { - address: params.address, - name: params.name, - knownServiceUuids: params.knownServiceUuids, - manufacturerData: params.manufacturerData, - }); - this.#bluetoothDevices.set(params.address, new BluetoothDevice(params.address)); - return {}; - } - async simulateAdvertisement(params) { - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateAdvertisement', { - entry: params.scanEntry, - }); - return {}; - } - async simulateCharacteristic(params) { - const device = this.#getDevice(params.address); - const service = this.#getService(device, params.serviceUuid); - const context = this.#browsingContextStorage.getContext(params.context); - switch (params.type) { - case 'add': { - if (params.characteristicProperties === undefined) { - throw new protocol_js_1.InvalidArgumentException(`Parameter "characteristicProperties" is required for adding a Bluetooth characteristic`); - } - if (service.characteristics.has(params.characteristicUuid)) { - throw new protocol_js_1.InvalidArgumentException(`Characteristic with UUID ${params.characteristicUuid} already exists`); - } - const response = await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.addCharacteristic', { - serviceId: service.id, - characteristicUuid: params.characteristicUuid, - properties: params.characteristicProperties, - }); - const characteristic = new BluetoothCharacteristic(response.characteristicId, params.characteristicUuid, service); - service.characteristics.set(params.characteristicUuid, characteristic); - this.#bluetoothCharacteristics.set(characteristic.id, characteristic); - return {}; - } - case 'remove': { - if (params.characteristicProperties !== undefined) { - throw new protocol_js_1.InvalidArgumentException(`Parameter "characteristicProperties" should not be provided for removing a Bluetooth characteristic`); - } - const characteristic = this.#getCharacteristic(service, params.characteristicUuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.removeCharacteristic', { - characteristicId: characteristic.id, - }); - service.characteristics.delete(params.characteristicUuid); - this.#bluetoothCharacteristics.delete(characteristic.id); - return {}; - } - default: - throw new protocol_js_1.InvalidArgumentException(`Parameter "type" of ${params.type} is not supported`); - } - } - async simulateCharacteristicResponse(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const device = this.#getDevice(params.address); - const service = this.#getService(device, params.serviceUuid); - const characteristic = this.#getCharacteristic(service, params.characteristicUuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateCharacteristicOperationResponse', { - characteristicId: characteristic.id, - type: params.type, - code: params.code, - ...(params.data && { - data: btoa(String.fromCharCode(...params.data)), - }), - }); - return {}; - } - async simulateDescriptor(params) { - const device = this.#getDevice(params.address); - const service = this.#getService(device, params.serviceUuid); - const characteristic = this.#getCharacteristic(service, params.characteristicUuid); - const context = this.#browsingContextStorage.getContext(params.context); - switch (params.type) { - case 'add': { - if (characteristic.descriptors.has(params.descriptorUuid)) { - throw new protocol_js_1.InvalidArgumentException(`Descriptor with UUID ${params.descriptorUuid} already exists`); - } - const response = await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.addDescriptor', { - characteristicId: characteristic.id, - descriptorUuid: params.descriptorUuid, - }); - const descriptor = new BluetoothDescriptor(response.descriptorId, params.descriptorUuid, characteristic); - characteristic.descriptors.set(params.descriptorUuid, descriptor); - this.#bluetoothDescriptors.set(descriptor.id, descriptor); - return {}; - } - case 'remove': { - const descriptor = this.#getDescriptor(characteristic, params.descriptorUuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.removeDescriptor', { - descriptorId: descriptor.id, - }); - characteristic.descriptors.delete(params.descriptorUuid); - this.#bluetoothDescriptors.delete(descriptor.id); - return {}; - } - default: - throw new protocol_js_1.InvalidArgumentException(`Parameter "type" of ${params.type} is not supported`); - } - } - async simulateDescriptorResponse(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const device = this.#getDevice(params.address); - const service = this.#getService(device, params.serviceUuid); - const characteristic = this.#getCharacteristic(service, params.characteristicUuid); - const descriptor = this.#getDescriptor(characteristic, params.descriptorUuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateDescriptorOperationResponse', { - descriptorId: descriptor.id, - type: params.type, - code: params.code, - ...(params.data && { - data: btoa(String.fromCharCode(...params.data)), - }), - }); - return {}; - } - async simulateGattConnectionResponse(params) { - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateGATTOperationResponse', { - address: params.address, - type: 'connection', - code: params.code, - }); - return {}; - } - async simulateGattDisconnection(params) { - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateGATTDisconnection', { - address: params.address, - }); - return {}; - } - async simulateService(params) { - const device = this.#getDevice(params.address); - const context = this.#browsingContextStorage.getContext(params.context); - switch (params.type) { - case 'add': { - if (device.services.has(params.uuid)) { - throw new protocol_js_1.InvalidArgumentException(`Service with UUID ${params.uuid} already exists`); - } - const response = await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.addService', { - address: params.address, - serviceUuid: params.uuid, - }); - device.services.set(params.uuid, new BluetoothService(response.serviceId, params.uuid, device)); - return {}; - } - case 'remove': { - const service = this.#getService(device, params.uuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.removeService', { - serviceId: service.id, - }); - device.services.delete(params.uuid); - return {}; - } - default: - throw new protocol_js_1.InvalidArgumentException(`Parameter "type" of ${params.type} is not supported`); - } - } - onCdpTargetCreated(cdpTarget) { - cdpTarget.cdpClient.on('DeviceAccess.deviceRequestPrompted', (event) => { - this.#eventManager.registerEvent({ - type: 'event', - method: 'bluetooth.requestDevicePromptUpdated', - params: { - context: cdpTarget.id, - prompt: event.id, - devices: event.devices, - }, - }, cdpTarget.id); - }); - cdpTarget.browserCdpClient.on('BluetoothEmulation.gattOperationReceived', async (event) => { - switch (event.type) { - case 'connection': - this.#eventManager.registerEvent({ - type: 'event', - method: 'bluetooth.gattConnectionAttempted', - params: { - context: cdpTarget.id, - address: event.address, - }, - }, cdpTarget.id); - return; - case 'discovery': - // Chromium Web Bluetooth simulation generates this GATT discovery event when - // a page attempts to get services for a given Bluetooth device for the first time. - // This 'get services' operation is put on hold until a GATT discovery response - // is sent to the simulation. - // Note: Web Bluetooth automation (see https://webbluetoothcg.github.io/web-bluetooth/#automated-testing) - // does not support simulating a GATT discovery response. This is because simulated services, characteristics, - // or descriptors are immediately visible to the simulation, meaning it doesn't have a distinct - // DISCOVERY state. Therefore, this code simulates a successful GATT discovery - // response upon receiving this event. - await cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateGATTOperationResponse', { - address: event.address, - type: 'discovery', - code: 0x0, - }); - } - }); - cdpTarget.browserCdpClient.on('BluetoothEmulation.characteristicOperationReceived', (event) => { - if (!this.#bluetoothCharacteristics.has(event.characteristicId)) { - return; - } - let type; - if (event.type === 'write') { - // write-default-deprecated comes from - // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattcharacteristic-writevalue, - // which is deprecated so not supported. - if (event.writeType === 'write-default-deprecated') { - return; - } - type = event.writeType; - } - else { - type = event.type; - } - const characteristic = this.#bluetoothCharacteristics.get(event.characteristicId); - this.#eventManager.registerEvent({ - type: 'event', - method: 'bluetooth.characteristicEventGenerated', - params: { - context: cdpTarget.id, - address: characteristic.service.device.address, - serviceUuid: characteristic.service.uuid, - characteristicUuid: characteristic.uuid, - type, - ...(event.data && { - data: Array.from(atob(event.data), (c) => c.charCodeAt(0)), - }), - }, - }, cdpTarget.id); - }); - cdpTarget.browserCdpClient.on('BluetoothEmulation.descriptorOperationReceived', (event) => { - if (!this.#bluetoothDescriptors.has(event.descriptorId)) { - return; - } - const descriptor = this.#bluetoothDescriptors.get(event.descriptorId); - this.#eventManager.registerEvent({ - type: 'event', - method: 'bluetooth.descriptorEventGenerated', - params: { - context: cdpTarget.id, - address: descriptor.characteristic.service.device.address, - serviceUuid: descriptor.characteristic.service.uuid, - characteristicUuid: descriptor.characteristic.uuid, - descriptorUuid: descriptor.uuid, - type: event.type, - ...(event.data && { - data: Array.from(atob(event.data), (c) => c.charCodeAt(0)), - }), - }, - }, cdpTarget.id); - }); - } - async handleRequestDevicePrompt(params) { - const context = this.#browsingContextStorage.getContext(params.context); - if (params.accept) { - await context.cdpTarget.cdpClient.sendCommand('DeviceAccess.selectPrompt', { - id: params.prompt, - deviceId: params.device, - }); - } - else { - await context.cdpTarget.cdpClient.sendCommand('DeviceAccess.cancelPrompt', { - id: params.prompt, - }); - } - return {}; - } -} -exports.BluetoothProcessor = BluetoothProcessor; -//# sourceMappingURL=BluetoothProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js.map deleted file mode 100644 index 1eb6187..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BluetoothProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/bluetooth/BluetoothProcessor.ts"],"names":[],"mappings":";AAAA;;;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;aAAM,CAAC;YACN,MAAM,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAC3C,2BAA2B,EAC3B;gBACE,EAAE,EAAE,MAAM,CAAC,MAAM;aAClB,CACF,CAAC;QACJ,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAlhBD,gDAkhBC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.d.ts deleted file mode 100644 index bae4408..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type Browser, type EmptyResult, type Session } from '../../../protocol/protocol.js'; -import type { CdpClient } from '../../BidiMapper.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { ContextConfigStorage } from './ContextConfigStorage.js'; -import type { UserContextStorage } from './UserContextStorage.js'; -export declare class BrowserProcessor { - #private; - constructor(browserCdpClient: CdpClient, browsingContextStorage: BrowsingContextStorage, configStorage: ContextConfigStorage, userContextStorage: UserContextStorage); - close(): EmptyResult; - createUserContext(params: Record): Promise; - removeUserContext(params: Browser.RemoveUserContextParameters): Promise; - getUserContexts(): Promise; - setClientWindowState(params: Browser.SetClientWindowStateParameters): Promise; - getClientWindows(): Promise; - setDownloadBehavior(params: Browser.SetDownloadBehaviorParameters): Promise; -} -/** - * Proxy config parse implementation: - * https://source.chromium.org/chromium/chromium/src/+/main:net/proxy_resolution/proxy_config.h;drc=743a82d08e59d803c94ee1b8564b8b11dd7b462f;l=107 - */ -export declare function getProxyStr(proxyConfig: Session.ProxyConfiguration): string | undefined; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js deleted file mode 100644 index 257cf08..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js +++ /dev/null @@ -1,294 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BrowserProcessor = void 0; -exports.getProxyStr = getProxyStr; -const protocol_js_1 = require("../../../protocol/protocol.js"); -class BrowserProcessor { - #browserCdpClient; - #browsingContextStorage; - #configStorage; - #userContextStorage; - constructor(browserCdpClient, browsingContextStorage, configStorage, userContextStorage) { - this.#browserCdpClient = browserCdpClient; - this.#browsingContextStorage = browsingContextStorage; - this.#configStorage = configStorage; - this.#userContextStorage = userContextStorage; - } - close() { - // Ensure that it is put at the end of the event loop. - // This way we send back the response before closing the tab. - // Always catch uncaught exceptions. - setTimeout(() => this.#browserCdpClient.sendCommand('Browser.close').catch(() => { }), 0); - return {}; - } - async createUserContext(params) { - // `params` is a record to provide legacy `goog:` parameters. Now as the `proxy` - // parameter is specified, we should get rid of `goog:proxyServer` and - // `goog:proxyBypassList` and make the params of type - // `Browser.CreateUserContextParameters`. - const w3cParams = params; - const globalConfig = this.#configStorage.getGlobalConfig(); - if (w3cParams.acceptInsecureCerts !== undefined) { - if (w3cParams.acceptInsecureCerts === false && - globalConfig.acceptInsecureCerts === true) - // TODO: https://github.com/GoogleChromeLabs/chromium-bidi/issues/3398 - throw new protocol_js_1.UnknownErrorException(`Cannot set user context's "acceptInsecureCerts" to false, when a capability "acceptInsecureCerts" is set to true`); - } - const request = {}; - if (w3cParams.proxy) { - const proxyStr = getProxyStr(w3cParams.proxy); - if (proxyStr) { - request.proxyServer = proxyStr; - } - if (w3cParams.proxy.noProxy) { - request.proxyBypassList = w3cParams.proxy.noProxy.join(','); - } - } - else { - // TODO: remove after Puppeteer stops using it. - if (params['goog:proxyServer'] !== undefined) { - request.proxyServer = params['goog:proxyServer']; - } - const proxyBypassList = params['goog:proxyBypassList'] ?? undefined; - if (proxyBypassList) { - request.proxyBypassList = proxyBypassList.join(','); - } - } - const context = await this.#browserCdpClient.sendCommand('Target.createBrowserContext', request); - await this.#applyDownloadBehavior(globalConfig.downloadBehavior ?? null, context.browserContextId); - this.#configStorage.updateUserContextConfig(context.browserContextId, { - acceptInsecureCerts: params['acceptInsecureCerts'], - userPromptHandler: params['unhandledPromptBehavior'], - }); - return { - userContext: context.browserContextId, - }; - } - async removeUserContext(params) { - const userContext = params.userContext; - if (userContext === 'default') { - throw new protocol_js_1.InvalidArgumentException('`default` user context cannot be removed'); - } - try { - await this.#browserCdpClient.sendCommand('Target.disposeBrowserContext', { - browserContextId: userContext, - }); - } - catch (err) { - // https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/target_handler.cc;l=1424;drc=c686e8f4fd379312469fe018f5c390e9c8f20d0d - if (err.message.startsWith('Failed to find context with id')) { - throw new protocol_js_1.NoSuchUserContextException(err.message); - } - throw err; - } - return {}; - } - async getUserContexts() { - return { - userContexts: await this.#userContextStorage.getUserContexts(), - }; - } - async #getWindowInfo(targetId) { - const windowInfo = await this.#browserCdpClient.sendCommand('Browser.getWindowForTarget', { targetId }); - return { - // `active` is not supported in CDP yet. - active: false, - clientWindow: `${windowInfo.windowId}`, - state: windowInfo.bounds.windowState ?? 'normal', - height: windowInfo.bounds.height ?? 0, - width: windowInfo.bounds.width ?? 0, - x: windowInfo.bounds.left ?? 0, - y: windowInfo.bounds.top ?? 0, - }; - } - async setClientWindowState(params) { - const { clientWindow } = params; - const bounds = { - windowState: params.state, - }; - if (params.state === 'normal') { - if (params.width !== undefined) { - bounds.width = params.width; - } - if (params.height !== undefined) { - bounds.height = params.height; - } - if (params.x !== undefined) { - bounds.left = params.x; - } - if (params.y !== undefined) { - bounds.top = params.y; - } - } - const windowId = Number.parseInt(clientWindow); - if (isNaN(windowId)) { - throw new protocol_js_1.InvalidArgumentException('no such client window'); - } - await this.#browserCdpClient.sendCommand('Browser.setWindowBounds', { - windowId, - bounds, - }); - const result = await this.#browserCdpClient.sendCommand('Browser.getWindowBounds', { - windowId, - }); - return { - active: false, - clientWindow: `${windowId}`, - state: result.bounds.windowState ?? 'normal', - height: result.bounds.height ?? 0, - width: result.bounds.width ?? 0, - x: result.bounds.left ?? 0, - y: result.bounds.top ?? 0, - }; - } - async getClientWindows() { - const topLevelTargetIds = this.#browsingContextStorage - .getTopLevelContexts() - .map((b) => b.cdpTarget.id); - const clientWindows = await Promise.all(topLevelTargetIds.map(async (targetId) => await this.#getWindowInfo(targetId))); - const uniqueClientWindowIds = new Set(); - const uniqueClientWindows = new Array(); - // Filter out duplicated client windows. - for (const window of clientWindows) { - if (!uniqueClientWindowIds.has(window.clientWindow)) { - uniqueClientWindowIds.add(window.clientWindow); - uniqueClientWindows.push(window); - } - } - return { clientWindows: uniqueClientWindows }; - } - #toCdpDownloadBehavior(downloadBehavior) { - if (downloadBehavior === null) - // CDP "default" behavior. - return { - behavior: 'default', - }; - if (downloadBehavior?.type === 'denied') - // Deny all the downloads. - return { - behavior: 'deny', - }; - if (downloadBehavior?.type === 'allowed') { - // CDP behavior "allow" means "save downloaded files to the specific download path". - return { - behavior: 'allow', - downloadPath: downloadBehavior.destinationFolder, - }; - } - // Unreachable. Handled by params parser. - throw new protocol_js_1.UnknownErrorException('Unexpected download behavior'); - } - async #applyDownloadBehavior(downloadBehavior, userContext) { - await this.#browserCdpClient.sendCommand('Browser.setDownloadBehavior', { - ...this.#toCdpDownloadBehavior(downloadBehavior), - browserContextId: userContext === 'default' ? undefined : userContext, - // Required for enabling download events. - eventsEnabled: true, - }); - } - async setDownloadBehavior(params) { - let userContexts; - if (params.userContexts === undefined) { - // Global download behavior. - userContexts = (await this.#userContextStorage.getUserContexts()).map((c) => c.userContext); - } - else { - // Download behavior for the specific user contexts. - userContexts = Array.from(await this.#userContextStorage.verifyUserContextIdList(params.userContexts)); - } - if (params.userContexts === undefined) { - // Store the global setting to be applied for the future user contexts. - this.#configStorage.updateGlobalConfig({ - downloadBehavior: params.downloadBehavior, - }); - } - else { - params.userContexts.map((userContext) => this.#configStorage.updateUserContextConfig(userContext, { - downloadBehavior: params.downloadBehavior, - })); - } - await Promise.all(userContexts.map(async (userContext) => { - // Download behavior can be already set per user context, in which case the global - // one should not be applied. - const downloadBehavior = this.#configStorage.getActiveConfig(undefined, userContext) - .downloadBehavior ?? null; - await this.#applyDownloadBehavior(downloadBehavior, userContext); - })); - return {}; - } -} -exports.BrowserProcessor = BrowserProcessor; -/** - * Proxy config parse implementation: - * https://source.chromium.org/chromium/chromium/src/+/main:net/proxy_resolution/proxy_config.h;drc=743a82d08e59d803c94ee1b8564b8b11dd7b462f;l=107 - */ -function getProxyStr(proxyConfig) { - if (proxyConfig.proxyType === 'direct' || - proxyConfig.proxyType === 'system') { - // These types imply that Chrome should use its default behavior (e.g., direct - // connection or system-configured proxy). No specific `proxyServer` string is - // needed. - return undefined; - } - if (proxyConfig.proxyType === 'pac') { - throw new protocol_js_1.UnsupportedOperationException(`PAC proxy configuration is not supported per user context`); - } - if (proxyConfig.proxyType === 'autodetect') { - throw new protocol_js_1.UnsupportedOperationException(`Autodetect proxy is not supported per user context`); - } - if (proxyConfig.proxyType === 'manual') { - const servers = []; - // HTTP Proxy - if (proxyConfig.httpProxy !== undefined) { - // servers.push(proxyConfig.httpProxy); - servers.push(`http=${proxyConfig.httpProxy}`); - } - // SSL Proxy (uses 'https' scheme) - if (proxyConfig.sslProxy !== undefined) { - // servers.push(proxyConfig.sslProxy); - servers.push(`https=${proxyConfig.sslProxy}`); - } - // SOCKS Proxy - if (proxyConfig.socksProxy !== undefined || - proxyConfig.socksVersion !== undefined) { - // socksVersion is mandatory and must be a valid integer if socksProxy is - // specified. - if (proxyConfig.socksProxy === undefined) { - throw new protocol_js_1.InvalidArgumentException(`'socksVersion' cannot be set without 'socksProxy'`); - } - if (proxyConfig.socksVersion === undefined || - typeof proxyConfig.socksVersion !== 'number' || - !Number.isInteger(proxyConfig.socksVersion) || - proxyConfig.socksVersion < 0 || - proxyConfig.socksVersion > 255) { - throw new protocol_js_1.InvalidArgumentException(`'socksVersion' must be between 0 and 255`); - } - servers.push(`socks=socks${proxyConfig.socksVersion}://${proxyConfig.socksProxy}`); - } - if (servers.length === 0) { - // If 'manual' proxyType is chosen but no specific proxy servers (http, ssl, socks) - // are provided, it means no proxy server should be configured. - return undefined; - } - return servers.join(';'); - } - // Unreachable. - throw new protocol_js_1.UnknownErrorException(`Unknown proxy type`); -} -//# sourceMappingURL=BrowserProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js.map deleted file mode 100644 index bcb58f0..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BrowserProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/browser/BrowserProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAoUH,kCA6EC;AA7YD,+DAQuC;AAOvC,MAAa,gB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,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,kCAAkC;QAClC,IAAI,WAAW,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACvC,sCAAsC;YACtC,OAAO,CAAC,IAAI,CAAC,SAAS,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,cAAc;QACd,IACE,WAAW,CAAC,UAAU,KAAK,SAAS;YACpC,WAAW,CAAC,YAAY,KAAK,SAAS,EACtC,CAAC;YACD,yEAAyE;YACzE,aAAa;YACb,IAAI,WAAW,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;gBACzC,MAAM,IAAI,sCAAwB,CAChC,mDAAmD,CACpD,CAAC;YACJ,CAAC;YACD,IACE,WAAW,CAAC,YAAY,KAAK,SAAS;gBACtC,OAAO,WAAW,CAAC,YAAY,KAAK,QAAQ;gBAC5C,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC;gBAC3C,WAAW,CAAC,YAAY,GAAG,CAAC;gBAC5B,WAAW,CAAC,YAAY,GAAG,GAAG,EAC9B,CAAC;gBACD,MAAM,IAAI,sCAAwB,CAChC,0CAA0C,CAC3C,CAAC;YACJ,CAAC;YACD,OAAO,CAAC,IAAI,CACV,cAAc,WAAW,CAAC,YAAY,MAAM,WAAW,CAAC,UAAU,EAAE,CACrE,CAAC;QACJ,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,mFAAmF;YACnF,+DAA+D;YAC/D,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IACD,eAAe;IACf,MAAM,IAAI,mCAAqB,CAAC,oBAAoB,CAAC,CAAC;AACxD,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfig.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfig.d.ts deleted file mode 100644 index 1531f85..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfig.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import type { Browser, BrowsingContext, Emulation, Session, UAClientHints } from '../../../protocol/protocol.js'; -/** - * Represents a context configurations. It can be global, per User Context, or per - * Browsing Context. The undefined value means the config will be taken from the upstream - * config. `null` values means the value should be default regardless of the upstream. - */ -export declare class ContextConfig { - acceptInsecureCerts?: boolean; - clientHints?: UAClientHints.UserAgentClientHints.ClientHintsMetadata | null; - devicePixelRatio?: number | null; - disableNetworkDurableMessages?: true; - downloadBehavior?: Browser.DownloadBehavior | null; - emulatedNetworkConditions?: Emulation.NetworkConditions | null; - extraHeaders?: Protocol.Network.Headers; - geolocation?: Emulation.GeolocationCoordinates | Emulation.GeolocationPositionError | null; - locale?: string | null; - maxTouchPoints?: number | null; - prerenderingDisabled?: boolean; - screenArea?: Emulation.ScreenArea | null; - screenOrientation?: Emulation.ScreenOrientation | null; - scriptingEnabled?: false | null; - timezone?: string | null; - userAgent?: string | null; - userPromptHandler?: Session.UserPromptHandler; - viewport?: BrowsingContext.Viewport | null; - /** - * Merges multiple `ContextConfig` objects. The configs are merged in the order they are - * provided. For each property, the value from the last config that defines it will be - * used. The final result will not contain any `undefined` or `null` properties. - * `undefined` values are ignored. `null` values remove the already set value. - */ - static merge(...configs: (ContextConfig | undefined)[]): ContextConfig; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfig.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfig.js deleted file mode 100644 index feeee30..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfig.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ContextConfig = void 0; -/** - * Represents a context configurations. It can be global, per User Context, or per - * Browsing Context. The undefined value means the config will be taken from the upstream - * config. `null` values means the value should be default regardless of the upstream. - */ -class ContextConfig { - // keep-sorted start block=yes - acceptInsecureCerts; - clientHints; - devicePixelRatio; - disableNetworkDurableMessages; - downloadBehavior; - emulatedNetworkConditions; - // Extra headers are kept in CDP format. - extraHeaders; - geolocation; - locale; - maxTouchPoints; - prerenderingDisabled; - screenArea; - screenOrientation; - scriptingEnabled; - // Timezone is kept in CDP format with GMT prefix for offset values. - timezone; - userAgent; - userPromptHandler; - viewport; - // keep-sorted end - /** - * Merges multiple `ContextConfig` objects. The configs are merged in the order they are - * provided. For each property, the value from the last config that defines it will be - * used. The final result will not contain any `undefined` or `null` properties. - * `undefined` values are ignored. `null` values remove the already set value. - */ - static merge(...configs) { - const result = new ContextConfig(); - for (const config of configs) { - if (!config) { - continue; - } - for (const key in config) { - const value = config[key]; - if (value === null) { - delete result[key]; - } - else if (value !== undefined) { - result[key] = value; - } - } - } - return result; - } -} -exports.ContextConfig = ContextConfig; -//# sourceMappingURL=ContextConfig.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfig.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfig.js.map deleted file mode 100644 index 0a8792e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ContextConfig.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/browser/ContextConfig.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAYH;;;;GAIG;AACH,MAAa,aAAa;IACxB,8BAA8B;IAC9B,mBAAmB,CAAW;IAC9B,WAAW,CAAiE;IAC5E,gBAAgB,CAAiB;IACjC,6BAA6B,CAAQ;IACrC,gBAAgB,CAAmC;IACnD,yBAAyB,CAAsC;IAC/D,wCAAwC;IACxC,YAAY,CAA4B;IACxC,WAAW,CAGF;IACT,MAAM,CAAiB;IACvB,cAAc,CAAiB;IAC/B,oBAAoB,CAAW;IAC/B,UAAU,CAA+B;IACzC,iBAAiB,CAAsC;IACvD,gBAAgB,CAAgB;IAChC,oEAAoE;IACpE,QAAQ,CAAiB;IACzB,SAAS,CAAiB;IAC1B,iBAAiB,CAA6B;IAC9C,QAAQ,CAAmC;IAC3C,kBAAkB;IAElB;;;;;OAKG;IACH,MAAM,CAAC,KAAK,CAAC,GAAG,OAAsC;QACpD,MAAM,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;QAEnC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,SAAS;YACX,CAAC;YACD,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;gBACzB,MAAM,KAAK,GAAG,MAAM,CAAC,GAA0B,CAAC,CAAC;gBACjD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;oBACnB,OAAQ,MAAc,CAAC,GAAG,CAAC,CAAC;gBAC9B,CAAC;qBAAM,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;oBAC9B,MAAc,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;gBAC/B,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAnDD,sCAmDC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfigStorage.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfigStorage.d.ts deleted file mode 100644 index 21dbf70..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfigStorage.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { ContextConfig } from './ContextConfig.js'; -/** - * Manages context-specific configurations. This class allows setting - * configurations at three levels: global, user context, and browsing context. - * - * When `getActiveConfig` is called, it merges the configurations in a specific - * order of precedence: `global -> user context -> browsing context`. For each - * configuration property, the value from the highest-precedence level that has a - * non-`undefined` value is used. - * - * The `update` methods (`updateGlobalConfig`, `updateUserContextConfig`, - * `updateBrowsingContextConfig`) merge the provided configuration with the - * existing one at the corresponding level. Properties with `undefined` values in - * the provided configuration are ignored, preserving the existing value. - */ -export declare class ContextConfigStorage { - #private; - /** - * Updates the global configuration. Properties with `undefined` values in the - * provided `config` are ignored. - */ - updateGlobalConfig(config: ContextConfig): void; - /** - * Updates the configuration for a specific browsing context. Properties with - * `undefined` values in the provided `config` are ignored. - */ - updateBrowsingContextConfig(browsingContextId: string, config: ContextConfig): void; - /** - * Updates the configuration for a specific user context. Properties with - * `undefined` values in the provided `config` are ignored. - */ - updateUserContextConfig(userContext: string, config: ContextConfig): void; - /** - * Returns the current global configuration. - */ - getGlobalConfig(): ContextConfig; - /** - * Calculates the active configuration by merging global, user context, and - * browsing context settings. - */ - getActiveConfig(topLevelBrowsingContextId: string | undefined, userContext: string): ContextConfig; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfigStorage.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfigStorage.js deleted file mode 100644 index b863bb1..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfigStorage.js +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; -/* - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ContextConfigStorage = void 0; -const ContextConfig_js_1 = require("./ContextConfig.js"); -/** - * Manages context-specific configurations. This class allows setting - * configurations at three levels: global, user context, and browsing context. - * - * When `getActiveConfig` is called, it merges the configurations in a specific - * order of precedence: `global -> user context -> browsing context`. For each - * configuration property, the value from the highest-precedence level that has a - * non-`undefined` value is used. - * - * The `update` methods (`updateGlobalConfig`, `updateUserContextConfig`, - * `updateBrowsingContextConfig`) merge the provided configuration with the - * existing one at the corresponding level. Properties with `undefined` values in - * the provided configuration are ignored, preserving the existing value. - */ -class ContextConfigStorage { - #global = new ContextConfig_js_1.ContextConfig(); - #userContextConfigs = new Map(); - #browsingContextConfigs = new Map(); - /** - * Updates the global configuration. Properties with `undefined` values in the - * provided `config` are ignored. - */ - updateGlobalConfig(config) { - this.#global = ContextConfig_js_1.ContextConfig.merge(this.#global, config); - } - /** - * Updates the configuration for a specific browsing context. Properties with - * `undefined` values in the provided `config` are ignored. - */ - updateBrowsingContextConfig(browsingContextId, config) { - this.#browsingContextConfigs.set(browsingContextId, ContextConfig_js_1.ContextConfig.merge(this.#browsingContextConfigs.get(browsingContextId), config)); - } - /** - * Updates the configuration for a specific user context. Properties with - * `undefined` values in the provided `config` are ignored. - */ - updateUserContextConfig(userContext, config) { - this.#userContextConfigs.set(userContext, ContextConfig_js_1.ContextConfig.merge(this.#userContextConfigs.get(userContext), config)); - } - /** - * Returns the current global configuration. - */ - getGlobalConfig() { - return this.#global; - } - /** - * Extra headers is a special case. The headers from the different levels have to be - * merged instead of being overridden. - */ - #getExtraHeaders(topLevelBrowsingContextId, userContext) { - const globalHeaders = this.#global.extraHeaders ?? {}; - const userContextHeaders = this.#userContextConfigs.get(userContext)?.extraHeaders ?? {}; - const browsingContextHeaders = topLevelBrowsingContextId === undefined - ? {} - : (this.#browsingContextConfigs.get(topLevelBrowsingContextId) - ?.extraHeaders ?? {}); - return { ...globalHeaders, ...userContextHeaders, ...browsingContextHeaders }; - } - /** - * Calculates the active configuration by merging global, user context, and - * browsing context settings. - */ - getActiveConfig(topLevelBrowsingContextId, userContext) { - let result = ContextConfig_js_1.ContextConfig.merge(this.#global, this.#userContextConfigs.get(userContext)); - if (topLevelBrowsingContextId !== undefined) { - result = ContextConfig_js_1.ContextConfig.merge(result, this.#browsingContextConfigs.get(topLevelBrowsingContextId)); - } - // Extra headers is a special case which have to be treated in a special way. - const extraHeaders = this.#getExtraHeaders(topLevelBrowsingContextId, userContext); - result.extraHeaders = - Object.keys(extraHeaders).length > 0 ? extraHeaders : undefined; - return result; - } -} -exports.ContextConfigStorage = ContextConfigStorage; -//# sourceMappingURL=ContextConfigStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfigStorage.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfigStorage.js.map deleted file mode 100644 index 749e818..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/ContextConfigStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ContextConfigStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/browser/ContextConfigStorage.ts"],"names":[],"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AAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,yBAAyB,CAAC;gBAC1D,EAAE,YAAY,IAAI,EAAE,CAAC,CAAC;QAE9B,OAAO,EAAC,GAAG,aAAa,EAAE,GAAG,kBAAkB,EAAE,GAAG,sBAAsB,EAAC,CAAC;IAC9E,CAAC;IAED;;;OAGG;IACH,eAAe,CACb,yBAA6C,EAC7C,WAAmB;QAEnB,IAAI,MAAM,GAAG,gCAAa,CAAC,KAAK,CAC9B,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAC,CAC1C,CAAC;QACF,IAAI,yBAAyB,KAAK,SAAS,EAAE,CAAC;YAC5C,MAAM,GAAG,gCAAa,CAAC,KAAK,CAC1B,MAAM,EACN,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAC5D,CAAC;QACJ,CAAC;QAED,6EAA6E;QAC7E,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CACxC,yBAAyB,EACzB,WAAW,CACZ,CAAC;QACF,MAAM,CAAC,YAAY;YACjB,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;QAElE,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAjGD,oDAiGC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/UserContextStorage.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/UserContextStorage.d.ts deleted file mode 100644 index 8917817..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/UserContextStorage.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { type Browser } from '../../../protocol/protocol.js'; -export declare class UserContextStorage { - #private; - constructor(browserClient: CdpClient); - getUserContexts(): Promise<[ - Browser.UserContextInfo, - ...Browser.UserContextInfo[] - ]>; - verifyUserContextIdList(userContextIds: Browser.UserContext[]): Promise>; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/UserContextStorage.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/UserContextStorage.js deleted file mode 100644 index a3b6d98..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/UserContextStorage.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UserContextStorage = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -class UserContextStorage { - #browserClient; - constructor(browserClient) { - this.#browserClient = browserClient; - } - async getUserContexts() { - const result = await this.#browserClient.sendCommand('Target.getBrowserContexts'); - return [ - { - userContext: 'default', - }, - ...result.browserContextIds.map((id) => { - return { - userContext: id, - }; - }), - ]; - } - async verifyUserContextIdList(userContextIds) { - const foundContexts = new Set(); - if (!userContextIds.length) { - return foundContexts; - } - const userContexts = await this.getUserContexts(); - const knownUserContextIds = new Set(userContexts.map((userContext) => userContext.userContext)); - for (const userContextId of userContextIds) { - if (!knownUserContextIds.has(userContextId)) { - throw new protocol_js_1.NoSuchUserContextException(`User context ${userContextId} not found`); - } - foundContexts.add(userContextId); - } - return foundContexts; - } -} -exports.UserContextStorage = UserContextStorage; -//# sourceMappingURL=UserContextStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/UserContextStorage.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/UserContextStorage.js.map deleted file mode 100644 index b8e99d1..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/UserContextStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserContextStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/browser/UserContextStorage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,+DAGuC;AAEvC,MAAa,kBAAkB;IAC7B,cAAc,CAAY;IAC1B,YAAY,aAAwB;QAClC,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,eAAe;QAGnB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAClD,2BAA2B,CAC5B,CAAC;QACF,OAAO;YACL;gBACE,WAAW,EAAE,SAAS;aACvB;YACD,GAAG,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;gBACrC,OAAO;oBACL,WAAW,EAAE,EAAE;iBAChB,CAAC;YACJ,CAAC,CAAC;SACH,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,cAAqC;QACjE,MAAM,aAAa,GAAG,IAAI,GAAG,EAAuB,CAAC;QACrD,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC;YAC3B,OAAO,aAAa,CAAC;QACvB,CAAC;QAED,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAClD,MAAM,mBAAmB,GAAG,IAAI,GAAG,CACjC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC,CAC3D,CAAC;QACF,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;YAC3C,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBAC5C,MAAM,IAAI,wCAA0B,CAClC,gBAAgB,aAAa,YAAY,CAC1C,CAAC;YACJ,CAAC;YACD,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACnC,CAAC;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;CACF;AA7CD,gDA6CC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.d.ts deleted file mode 100644 index 5ffde76..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type Cdp } from '../../../protocol/protocol.js'; -import type { CdpClient, CdpConnection } from '../../BidiMapper.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -export declare class CdpProcessor { - #private; - constructor(browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, cdpConnection: CdpConnection, browserCdpClient: CdpClient); - getSession(params: Cdp.GetSessionParameters): Cdp.GetSessionResult; - resolveRealm(params: Cdp.ResolveRealmParameters): Cdp.ResolveRealmResult; - sendCommand(params: Cdp.SendCommandParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js deleted file mode 100644 index be5d170..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CdpProcessor = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -class CdpProcessor { - #browsingContextStorage; - #realmStorage; - #cdpConnection; - #browserCdpClient; - constructor(browsingContextStorage, realmStorage, cdpConnection, browserCdpClient) { - this.#browsingContextStorage = browsingContextStorage; - this.#realmStorage = realmStorage; - this.#cdpConnection = cdpConnection; - this.#browserCdpClient = browserCdpClient; - } - getSession(params) { - const context = params.context; - const sessionId = this.#browsingContextStorage.getContext(context).cdpTarget.cdpSessionId; - if (sessionId === undefined) { - return {}; - } - return { session: sessionId }; - } - resolveRealm(params) { - const context = params.realm; - const realm = this.#realmStorage.getRealm({ realmId: context }); - if (realm === undefined) { - throw new protocol_js_1.UnknownErrorException(`Could not find realm ${params.realm}`); - } - return { executionContextId: realm.executionContextId }; - } - async sendCommand(params) { - const client = params.session - ? this.#cdpConnection.getCdpClient(params.session) - : this.#browserCdpClient; - const result = await client.sendCommand(params.method, params.params); - return { - result, - session: params.session, - }; - } -} -exports.CdpProcessor = CdpProcessor; -//# sourceMappingURL=CdpProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js.map deleted file mode 100644 index 6f6a1be..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CdpProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/cdp/CdpProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAA8E;AAK9E,MAAa,YAAY;IACd,uBAAuB,CAAyB;IAChD,aAAa,CAAe;IAC5B,cAAc,CAAgB;IAC9B,iBAAiB,CAAY;IAEtC,YACE,sBAA8C,EAC9C,YAA0B,EAC1B,aAA4B,EAC5B,gBAA2B;QAE3B,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;IAED,UAAU,CAAC,MAAgC;QACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,MAAM,SAAS,GACb,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC;QAC1E,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,CAAC;IAC9B,CAAC;IAED,YAAY,CAAC,MAAkC;QAC7C,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;QAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAC,OAAO,EAAE,OAAO,EAAC,CAAC,CAAC;QAC9D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,mCAAqB,CAAC,wBAAwB,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QAC1E,CAAC;QACD,OAAO,EAAC,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,EAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,WAAW,CACf,MAAiC;QAEjC,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO;YAC3B,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC;YAClD,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QACtE,OAAO;YACL,MAAM;YACN,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC;IACJ,CAAC;CACF;AAjDD,oCAiDC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.d.ts deleted file mode 100644 index 2398b3c..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import type { Protocol } from 'devtools-protocol'; -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { type Browser, type BrowsingContext, type ChromiumBidi, Emulation, type UAClientHints } from '../../../protocol/protocol.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import type { LoggerFn } from '../../../utils/log.js'; -import type { Result } from '../../../utils/result.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import { type NetworkStorage } from '../network/NetworkStorage.js'; -import type { ChannelProxy } from '../script/ChannelProxy.js'; -import type { PreloadScriptStorage } from '../script/PreloadScriptStorage.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -export declare class CdpTarget { - #private; - readonly userContext: Browser.UserContext; - readonly contextConfigStorage: ContextConfigStorage; - static create(targetId: Protocol.Target.TargetID, cdpClient: CdpClient, browserCdpClient: CdpClient, parentCdpClient: CdpClient, realmStorage: RealmStorage, eventManager: EventManager, preloadScriptStorage: PreloadScriptStorage, browsingContextStorage: BrowsingContextStorage, networkStorage: NetworkStorage, configStorage: ContextConfigStorage, userContext: Browser.UserContext, defaultUserAgent: string, logger?: LoggerFn): CdpTarget; - constructor(targetId: Protocol.Target.TargetID, cdpClient: CdpClient, browserCdpClient: CdpClient, parentCdpClient: CdpClient, eventManager: EventManager, realmStorage: RealmStorage, preloadScriptStorage: PreloadScriptStorage, browsingContextStorage: BrowsingContextStorage, configStorage: ContextConfigStorage, networkStorage: NetworkStorage, userContext: Browser.UserContext, defaultUserAgent: string, logger: LoggerFn | undefined); - /** Returns a deferred that resolves when the target is unblocked. */ - get unblocked(): Deferred>; - get id(): Protocol.Target.TargetID; - get cdpClient(): CdpClient; - get parentCdpClient(): CdpClient; - get browserCdpClient(): CdpClient; - /** Needed for CDP escape path. */ - get cdpSessionId(): Protocol.Target.SessionID; - /** - * Window id the target belongs to. If not known, returns 0. - */ - get windowId(): number; - toggleFetchIfNeeded(): Promise; - /** - * Toggles CDP "Fetch" domain and enable/disable network cache. - */ - toggleNetworkIfNeeded(): Promise; - toggleSetCacheDisabled(disable?: boolean): Promise; - toggleDeviceAccessIfNeeded(): Promise; - togglePreloadIfNeeded(): Promise; - toggleNetwork(): Promise; - /** - * All the ProxyChannels from all the preload scripts of the given - * BrowsingContext. - */ - getChannels(): ChannelProxy[]; - setDeviceMetricsOverride(viewport: BrowsingContext.Viewport | null, devicePixelRatio: number | null, screenOrientation: Emulation.ScreenOrientation | null, screenArea: Emulation.ScreenArea | null): Promise; - get topLevelId(): string; - isSubscribedTo(moduleOrEvent: ChromiumBidi.EventNames): boolean; - setGeolocationOverride(geolocation: Emulation.GeolocationCoordinates | Emulation.GeolocationPositionError | null): Promise; - setTouchOverride(maxTouchPoints: number | null): Promise; - setLocaleOverride(locale: string | null): Promise; - setScriptingEnabled(scriptingEnabled: false | null): Promise; - setTimezoneOverride(timezone: string | null): Promise; - setExtraHeaders(headers: Protocol.Network.Headers): Promise; - setUserAgentAndAcceptLanguage(userAgent: string | null | undefined, acceptLanguage: string | null | undefined, clientHints?: UAClientHints.UserAgentClientHints.ClientHintsMetadata | null): Promise; - setEmulatedNetworkConditions(networkConditions: Emulation.NetworkConditions | null): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js deleted file mode 100644 index ff3d0df..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js +++ /dev/null @@ -1,695 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CdpTarget = void 0; -const chromium_bidi_js_1 = require("../../../protocol/chromium-bidi.js"); -const protocol_js_1 = require("../../../protocol/protocol.js"); -const Deferred_js_1 = require("../../../utils/Deferred.js"); -const log_js_1 = require("../../../utils/log.js"); -const BrowsingContextImpl_js_1 = require("../context/BrowsingContextImpl.js"); -const LogManager_js_1 = require("../log/LogManager.js"); -const NetworkStorage_js_1 = require("../network/NetworkStorage.js"); -class CdpTarget { - #id; - userContext; - #cdpClient; - #browserCdpClient; - #parentCdpClient; - #realmStorage; - #eventManager; - #preloadScriptStorage; - #browsingContextStorage; - #networkStorage; - contextConfigStorage; - #unblocked = new Deferred_js_1.Deferred(); - // Default user agent for the target. Required, as emulating client hints without user - // agent is not possible. Cache it to avoid round trips to the browser for every target override. - #defaultUserAgent; - #logger; - /** - * Target's window id. Is filled when the CDP target is created and do not reflect - * moving targets from one window to another. The actual values - * will be set during `#unblock`. - * */ - #windowId; - #deviceAccessEnabled = false; - #cacheDisableState = false; - #preloadEnabled = false; - #fetchDomainStages = { - request: false, - response: false, - auth: false, - }; - static create(targetId, cdpClient, browserCdpClient, parentCdpClient, realmStorage, eventManager, preloadScriptStorage, browsingContextStorage, networkStorage, configStorage, userContext, defaultUserAgent, logger) { - const cdpTarget = new CdpTarget(targetId, cdpClient, browserCdpClient, parentCdpClient, eventManager, realmStorage, preloadScriptStorage, browsingContextStorage, configStorage, networkStorage, userContext, defaultUserAgent, logger); - LogManager_js_1.LogManager.create(cdpTarget, realmStorage, eventManager, logger); - cdpTarget.#setEventListeners(); - // No need to await. - // Deferred will be resolved when the target is unblocked. - void cdpTarget.#unblock(); - return cdpTarget; - } - constructor(targetId, cdpClient, browserCdpClient, parentCdpClient, eventManager, realmStorage, preloadScriptStorage, browsingContextStorage, configStorage, networkStorage, userContext, defaultUserAgent, logger) { - this.#defaultUserAgent = defaultUserAgent; - this.userContext = userContext; - this.#id = targetId; - this.#cdpClient = cdpClient; - this.#browserCdpClient = browserCdpClient; - this.#parentCdpClient = parentCdpClient; - this.#eventManager = eventManager; - this.#realmStorage = realmStorage; - this.#preloadScriptStorage = preloadScriptStorage; - this.#networkStorage = networkStorage; - this.#browsingContextStorage = browsingContextStorage; - this.contextConfigStorage = configStorage; - this.#logger = logger; - } - /** Returns a deferred that resolves when the target is unblocked. */ - get unblocked() { - return this.#unblocked; - } - get id() { - return this.#id; - } - get cdpClient() { - return this.#cdpClient; - } - get parentCdpClient() { - return this.#parentCdpClient; - } - get browserCdpClient() { - return this.#browserCdpClient; - } - /** Needed for CDP escape path. */ - get cdpSessionId() { - // SAFETY we got the client by it's id for creating - return this.#cdpClient.sessionId; - } - /** - * Window id the target belongs to. If not known, returns 0. - */ - get windowId() { - if (this.#windowId === undefined) { - this.#logger?.(log_js_1.LogType.debugError, 'Getting windowId before it was set, returning 0'); - } - return this.#windowId ?? 0; - } - /** - * Enables all the required CDP domains and unblocks the target. - */ - async #unblock() { - const config = this.contextConfigStorage.getActiveConfig(this.topLevelId, this.userContext); - const results = await Promise.allSettled([ - this.#cdpClient.sendCommand('Page.enable', { - enableFileChooserOpenedEvent: true, - }), - ...(this.#ignoreFileDialog() - ? [] - : [ - this.#cdpClient.sendCommand('Page.setInterceptFileChooserDialog', { - enabled: true, - // The intercepted dialog should be canceled. - cancel: true, - }), - ]), - // There can be some existing frames in the target, if reconnecting to an - // existing browser instance, e.g. via Puppeteer. Need to restore the browsing - // contexts for the frames to correctly handle further events, like - // `Runtime.executionContextCreated`. - // It's important to schedule this task together with enabling domains commands to - // prepare the tree before the events (e.g. Runtime.executionContextCreated) start - // coming. - // https://github.com/GoogleChromeLabs/chromium-bidi/issues/2282 - this.#cdpClient - .sendCommand('Page.getFrameTree') - .then((frameTree) => this.#restoreFrameTreeState(frameTree.frameTree)), - this.#cdpClient.sendCommand('Runtime.enable'), - this.#cdpClient.sendCommand('Page.setLifecycleEventsEnabled', { - enabled: true, - }), - // Enabling CDP Network domain is required for navigation detection: - // https://github.com/GoogleChromeLabs/chromium-bidi/issues/2856. - this.#cdpClient - .sendCommand('Network.enable', { - // If `googDisableNetworkDurableMessages` flag is set, do not enable durable - // messages. - enableDurableMessages: config.disableNetworkDurableMessages !== true, - maxTotalBufferSize: NetworkStorage_js_1.MAX_TOTAL_COLLECTED_SIZE, - }) - .then(() => this.toggleNetworkIfNeeded()), - this.#cdpClient.sendCommand('Target.setAutoAttach', { - autoAttach: true, - waitForDebuggerOnStart: true, - flatten: true, - }), - this.#updateWindowId(), - this.#setUserContextConfig(config), - this.#initAndEvaluatePreloadScripts(), - this.#cdpClient.sendCommand('Runtime.runIfWaitingForDebugger'), - // Resume tab execution as well if it was paused by the debugger. - this.#parentCdpClient.sendCommand('Runtime.runIfWaitingForDebugger'), - this.toggleDeviceAccessIfNeeded(), - this.togglePreloadIfNeeded(), - ]); - for (const result of results) { - if (result instanceof Error) { - // Ignore errors during configuring targets, just log them. - this.#logger?.(log_js_1.LogType.debugError, 'Error happened when configuring a new target', result); - } - } - this.#unblocked.resolve({ - kind: 'success', - value: undefined, - }); - } - #restoreFrameTreeState(frameTree) { - const frame = frameTree.frame; - const maybeContext = this.#browsingContextStorage.findContext(frame.id); - if (maybeContext !== undefined) { - // Restoring parent of already known browsing context. This means the target is - // OOPiF and the BiDi session was connected to already existing browser instance. - if (maybeContext.parentId === null && - frame.parentId !== null && - frame.parentId !== undefined) { - maybeContext.parentId = frame.parentId; - } - } - if (maybeContext === undefined && frame.parentId !== undefined) { - // Restore not yet known nested frames. The top-level frame is created when the - // target is attached. - const parentBrowsingContext = this.#browsingContextStorage.getContext(frame.parentId); - BrowsingContextImpl_js_1.BrowsingContextImpl.create(frame.id, frame.parentId, this.userContext, parentBrowsingContext.cdpTarget, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, this.contextConfigStorage, frame.url, undefined, this.#logger); - } - frameTree.childFrames?.map((frameTree) => this.#restoreFrameTreeState(frameTree)); - } - async toggleFetchIfNeeded() { - const stages = this.#networkStorage.getInterceptionStages(this.topLevelId); - if (this.#fetchDomainStages.request === stages.request && - this.#fetchDomainStages.response === stages.response && - this.#fetchDomainStages.auth === stages.auth) { - return; - } - const patterns = []; - this.#fetchDomainStages = stages; - if (stages.request || stages.auth) { - // CDP quirk we need request interception when we intercept auth - patterns.push({ - urlPattern: '*', - requestStage: 'Request', - }); - } - if (stages.response) { - patterns.push({ - urlPattern: '*', - requestStage: 'Response', - }); - } - if (patterns.length) { - await this.#cdpClient.sendCommand('Fetch.enable', { - patterns, - handleAuthRequests: stages.auth, - }); - } - else { - const blockedRequest = this.#networkStorage - .getRequestsByTarget(this) - .filter((request) => request.interceptPhase); - void Promise.allSettled(blockedRequest.map((request) => request.waitNextPhase)) - .then(async () => { - const blockedRequest = this.#networkStorage - .getRequestsByTarget(this) - .filter((request) => request.interceptPhase); - if (blockedRequest.length) { - return await this.toggleFetchIfNeeded(); - } - return await this.#cdpClient.sendCommand('Fetch.disable'); - }) - .catch((error) => { - this.#logger?.(log_js_1.LogType.bidi, 'Disable failed', error); - }); - } - } - /** - * Toggles CDP "Fetch" domain and enable/disable network cache. - */ - async toggleNetworkIfNeeded() { - // Although the Network domain remains active, Fetch domain activation and caching - // settings should be managed dynamically. - try { - await Promise.all([ - this.toggleSetCacheDisabled(), - this.toggleFetchIfNeeded(), - ]); - } - catch (err) { - this.#logger?.(log_js_1.LogType.debugError, err); - if (!this.#isExpectedError(err)) { - throw err; - } - } - } - async toggleSetCacheDisabled(disable) { - const defaultCacheDisabled = this.#networkStorage.defaultCacheBehavior === 'bypass'; - const cacheDisabled = disable ?? defaultCacheDisabled; - if (this.#cacheDisableState === cacheDisabled) { - return; - } - this.#cacheDisableState = cacheDisabled; - try { - await this.#cdpClient.sendCommand('Network.setCacheDisabled', { - cacheDisabled, - }); - } - catch (err) { - this.#logger?.(log_js_1.LogType.debugError, err); - this.#cacheDisableState = !cacheDisabled; - if (!this.#isExpectedError(err)) { - throw err; - } - } - } - async toggleDeviceAccessIfNeeded() { - const enabled = this.isSubscribedTo(chromium_bidi_js_1.Bluetooth.EventNames.RequestDevicePromptUpdated); - if (this.#deviceAccessEnabled === enabled) { - return; - } - this.#deviceAccessEnabled = enabled; - try { - await this.#cdpClient.sendCommand(enabled ? 'DeviceAccess.enable' : 'DeviceAccess.disable'); - } - catch (err) { - this.#logger?.(log_js_1.LogType.debugError, err); - this.#deviceAccessEnabled = !enabled; - if (!this.#isExpectedError(err)) { - throw err; - } - } - } - async togglePreloadIfNeeded() { - const enabled = this.isSubscribedTo(chromium_bidi_js_1.Speculation.EventNames.PrefetchStatusUpdated); - if (this.#preloadEnabled === enabled) { - return; - } - this.#preloadEnabled = enabled; - try { - await this.#cdpClient.sendCommand(enabled ? 'Preload.enable' : 'Preload.disable'); - } - catch (err) { - this.#logger?.(log_js_1.LogType.debugError, err); - this.#preloadEnabled = !enabled; - if (!this.#isExpectedError(err)) { - throw err; - } - } - } - /** - * Heuristic checking if the error is due to the session being closed. If so, ignore the - * error. - */ - #isExpectedError(err) { - const error = err; - return ((error.code === -32001 && - error.message === 'Session with given id not found.') || - this.#cdpClient.isCloseError(err)); - } - #setEventListeners() { - this.#cdpClient.on('*', (event, params) => { - // We may encounter uses for EventEmitter other than CDP events, - // which we want to skip. - if (typeof event !== 'string') { - return; - } - this.#eventManager.registerEvent({ - type: 'event', - method: `goog:cdp.${event}`, - params: { - event, - params, - session: this.cdpSessionId, - }, - }, this.id); - }); - } - async #enableFetch(stages) { - const patterns = []; - if (stages.request || stages.auth) { - // CDP quirk we need request interception when we intercept auth - patterns.push({ - urlPattern: '*', - requestStage: 'Request', - }); - } - if (stages.response) { - patterns.push({ - urlPattern: '*', - requestStage: 'Response', - }); - } - if (patterns.length) { - const oldStages = this.#fetchDomainStages; - this.#fetchDomainStages = stages; - try { - await this.#cdpClient.sendCommand('Fetch.enable', { - patterns, - handleAuthRequests: stages.auth, - }); - } - catch { - this.#fetchDomainStages = oldStages; - } - } - } - async #disableFetch() { - const blockedRequest = this.#networkStorage - .getRequestsByTarget(this) - .filter((request) => request.interceptPhase); - if (blockedRequest.length === 0) { - this.#fetchDomainStages = { - request: false, - response: false, - auth: false, - }; - await this.#cdpClient.sendCommand('Fetch.disable'); - } - } - async toggleNetwork() { - // TODO: respect the data collectors once CDP Network domain is enabled on-demand: - // const networkEnable = this.#networkStorage.getCollectorsForBrowsingContext(this.topLevelId).length > 0; - const stages = this.#networkStorage.getInterceptionStages(this.topLevelId); - const fetchEnable = Object.values(stages).some((value) => value); - const fetchChanged = this.#fetchDomainStages.request !== stages.request || - this.#fetchDomainStages.response !== stages.response || - this.#fetchDomainStages.auth !== stages.auth; - this.#logger?.(log_js_1.LogType.debugInfo, 'Toggle Network', `Fetch (${fetchEnable}) ${fetchChanged}`); - if (fetchEnable && fetchChanged) { - await this.#enableFetch(stages); - } - if (!fetchEnable && fetchChanged) { - await this.#disableFetch(); - } - } - /** - * All the ProxyChannels from all the preload scripts of the given - * BrowsingContext. - */ - getChannels() { - return this.#preloadScriptStorage - .find() - .flatMap((script) => script.channels); - } - async #updateWindowId() { - const { windowId } = await this.#browserCdpClient.sendCommand('Browser.getWindowForTarget', { targetId: this.id }); - this.#windowId = windowId; - } - /** Loads all top-level preload scripts. */ - async #initAndEvaluatePreloadScripts() { - await Promise.all(this.#preloadScriptStorage - .find({ - // Needed for OOPIF - targetId: this.topLevelId, - }) - .map((script) => { - return script.initInTarget(this, true); - })); - } - async setDeviceMetricsOverride(viewport, devicePixelRatio, screenOrientation, screenArea) { - if (viewport === null && - devicePixelRatio === null && - screenOrientation === null && - screenArea === null) { - await this.cdpClient.sendCommand('Emulation.clearDeviceMetricsOverride'); - return; - } - const metricsOverride = { - width: viewport?.width ?? 0, - height: viewport?.height ?? 0, - deviceScaleFactor: devicePixelRatio ?? 0, - screenOrientation: this.#toCdpScreenOrientationAngle(screenOrientation) ?? undefined, - mobile: false, - screenWidth: screenArea?.width, - screenHeight: screenArea?.height, - }; - await this.cdpClient.sendCommand('Emulation.setDeviceMetricsOverride', metricsOverride); - } - /** - * Immediately schedules all the required commands to configure user context - * configuration and waits for them to finish. It's important to schedule them - * in parallel, so that they are enqueued before any page's scripts. - */ - async #setUserContextConfig(config) { - const promises = []; - promises.push(this.#cdpClient - .sendCommand('Page.setPrerenderingAllowed', { - isAllowed: !config.prerenderingDisabled, - }) - .catch(() => { - // Ignore CDP errors, as the command is not supported by iframe targets or - // prerendered pages. Generic catch, as the error can vary between CdpClient - // implementations: Tab vs Puppeteer. - })); - if (config.viewport !== undefined || - config.devicePixelRatio !== undefined || - config.screenOrientation !== undefined || - config.screenArea !== undefined) { - promises.push(this.setDeviceMetricsOverride(config.viewport ?? null, config.devicePixelRatio ?? null, config.screenOrientation ?? null, config.screenArea ?? null).catch(() => { - // Ignore CDP errors, as the command is not supported by iframe targets. Generic - // catch, as the error can vary between CdpClient implementations: Tab vs - // Puppeteer. - })); - } - if (config.geolocation !== undefined && config.geolocation !== null) { - promises.push(this.setGeolocationOverride(config.geolocation)); - } - if (config.locale !== undefined) { - promises.push(this.setLocaleOverride(config.locale)); - } - if (config.timezone !== undefined) { - promises.push(this.setTimezoneOverride(config.timezone)); - } - if (config.extraHeaders !== undefined) { - promises.push(this.setExtraHeaders(config.extraHeaders)); - } - if (config.userAgent !== undefined || - config.locale !== undefined || - config.clientHints !== undefined) { - promises.push(this.setUserAgentAndAcceptLanguage(config.userAgent, config.locale, config.clientHints)); - } - if (config.scriptingEnabled !== undefined) { - promises.push(this.setScriptingEnabled(config.scriptingEnabled)); - } - if (config.acceptInsecureCerts !== undefined) { - promises.push(this.cdpClient.sendCommand('Security.setIgnoreCertificateErrors', { - ignore: config.acceptInsecureCerts, - })); - } - if (config.emulatedNetworkConditions !== undefined) { - promises.push(this.setEmulatedNetworkConditions(config.emulatedNetworkConditions)); - } - if (config.maxTouchPoints !== undefined) { - promises.push(this.setTouchOverride(config.maxTouchPoints)); - } - await Promise.all(promises); - } - get topLevelId() { - return (this.#browsingContextStorage.findTopLevelContextId(this.id) ?? this.id); - } - isSubscribedTo(moduleOrEvent) { - return this.#eventManager.subscriptionManager.isSubscribedTo(moduleOrEvent, this.topLevelId); - } - #ignoreFileDialog() { - const config = this.contextConfigStorage.getActiveConfig(this.topLevelId, this.userContext); - return ((config.userPromptHandler?.file ?? - config.userPromptHandler?.default ?? - "ignore" /* Session.UserPromptHandlerType.Ignore */) === - "ignore" /* Session.UserPromptHandlerType.Ignore */); - } - async setGeolocationOverride(geolocation) { - if (geolocation === null) { - await this.cdpClient.sendCommand('Emulation.clearGeolocationOverride'); - } - else if ('type' in geolocation) { - if (geolocation.type !== 'positionUnavailable') { - // Unreachable. Handled by params parser. - throw new protocol_js_1.UnknownErrorException(`Unknown geolocation error ${geolocation.type}`); - } - // Omitting latitude, longitude or accuracy emulates position unavailable. - await this.cdpClient.sendCommand('Emulation.setGeolocationOverride', {}); - } - else if ('latitude' in geolocation) { - await this.cdpClient.sendCommand('Emulation.setGeolocationOverride', { - latitude: geolocation.latitude, - longitude: geolocation.longitude, - accuracy: geolocation.accuracy ?? 1, - // `null` value is treated as "missing". - altitude: geolocation.altitude ?? undefined, - altitudeAccuracy: geolocation.altitudeAccuracy ?? undefined, - heading: geolocation.heading ?? undefined, - speed: geolocation.speed ?? undefined, - }); - } - else { - // Unreachable. Handled by params parser. - throw new protocol_js_1.UnknownErrorException('Unexpected geolocation coordinates value'); - } - } - async setTouchOverride(maxTouchPoints) { - const touchEmulationParams = { - enabled: maxTouchPoints !== null, - }; - if (maxTouchPoints !== null) { - touchEmulationParams.maxTouchPoints = maxTouchPoints; - } - await this.cdpClient.sendCommand('Emulation.setTouchEmulationEnabled', touchEmulationParams); - } - #toCdpScreenOrientationAngle(orientation) { - if (orientation === null) { - return null; - } - // https://w3c.github.io/screen-orientation/#the-current-screen-orientation-type-and-angle - if (orientation.natural === "portrait" /* Emulation.ScreenOrientationNatural.Portrait */) { - switch (orientation.type) { - case 'portrait-primary': - return { - angle: 0, - type: 'portraitPrimary', - }; - case 'landscape-primary': - return { - angle: 90, - type: 'landscapePrimary', - }; - case 'portrait-secondary': - return { - angle: 180, - type: 'portraitSecondary', - }; - case 'landscape-secondary': - return { - angle: 270, - type: 'landscapeSecondary', - }; - default: - // Unreachable. - throw new protocol_js_1.UnknownErrorException(`Unexpected screen orientation type ${orientation.type}`); - } - } - if (orientation.natural === "landscape" /* Emulation.ScreenOrientationNatural.Landscape */) { - switch (orientation.type) { - case 'landscape-primary': - return { - angle: 0, - type: 'landscapePrimary', - }; - case 'portrait-primary': - return { - angle: 90, - type: 'portraitPrimary', - }; - case 'landscape-secondary': - return { - angle: 180, - type: 'landscapeSecondary', - }; - case 'portrait-secondary': - return { - angle: 270, - type: 'portraitSecondary', - }; - default: - // Unreachable. - throw new protocol_js_1.UnknownErrorException(`Unexpected screen orientation type ${orientation.type}`); - } - } - // Unreachable. - throw new protocol_js_1.UnknownErrorException(`Unexpected orientation natural ${orientation.natural}`); - } - async setLocaleOverride(locale) { - if (locale === null) { - await this.cdpClient.sendCommand('Emulation.setLocaleOverride', {}); - } - else { - await this.cdpClient.sendCommand('Emulation.setLocaleOverride', { - locale, - }); - } - } - async setScriptingEnabled(scriptingEnabled) { - await this.cdpClient.sendCommand('Emulation.setScriptExecutionDisabled', { - value: scriptingEnabled === false, - }); - } - async setTimezoneOverride(timezone) { - if (timezone === null) { - await this.cdpClient.sendCommand('Emulation.setTimezoneOverride', { - // If empty, disables the override and restores default host system timezone. - timezoneId: '', - }); - } - else { - await this.cdpClient.sendCommand('Emulation.setTimezoneOverride', { - timezoneId: timezone, - }); - } - } - async setExtraHeaders(headers) { - await this.cdpClient.sendCommand('Network.setExtraHTTPHeaders', { - headers, - }); - } - async setUserAgentAndAcceptLanguage(userAgent, acceptLanguage, clientHints) { - const userAgentMetadata = clientHints - ? { - brands: clientHints.brands?.map((b) => ({ - brand: b.brand, - version: b.version, - })), - fullVersionList: clientHints.fullVersionList, - platform: clientHints.platform ?? '', - platformVersion: clientHints.platformVersion ?? '', - architecture: clientHints.architecture ?? '', - model: clientHints.model ?? '', - mobile: clientHints.mobile ?? false, - bitness: clientHints.bitness ?? undefined, - wow64: clientHints.wow64 ?? undefined, - formFactors: clientHints.formFactors ?? undefined, - } - : undefined; - await this.cdpClient.sendCommand('Emulation.setUserAgentOverride', { - // `userAgent` is required if `userAgentMetadata` is provided. - userAgent: userAgent || (userAgentMetadata ? this.#defaultUserAgent : ''), - acceptLanguage: acceptLanguage ?? undefined, - // We need to provide the platform to enable platform emulation. - // Note that the value might be different from the one expected by the - // legacy `navigator.platform` (e.g. `Win32` vs `Windows`). - // https://github.com/w3c/webdriver-bidi/issues/1065 - platform: clientHints?.platform ?? undefined, - userAgentMetadata, - }); - } - async setEmulatedNetworkConditions(networkConditions) { - if (networkConditions !== null && networkConditions.type !== 'offline') { - throw new protocol_js_1.UnsupportedOperationException(`Unsupported network conditions ${networkConditions.type}`); - } - await Promise.all([ - this.cdpClient.sendCommand('Network.emulateNetworkConditionsByRule', { - offline: networkConditions?.type === 'offline', - matchedNetworkConditions: [ - { - urlPattern: '', - latency: 0, - downloadThroughput: -1, - uploadThroughput: -1, - }, - ], - }), - this.cdpClient.sendCommand('Network.overrideNetworkState', { - offline: networkConditions?.type === 'offline', - // TODO: restore the original `latency` value when emulation is removed. - latency: 0, - downloadThroughput: -1, - uploadThroughput: -1, - }), - ]); - } -} -exports.CdpTarget = CdpTarget; -//# sourceMappingURL=CdpTarget.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js.map deleted file mode 100644 index 3b7313e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CdpTarget.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/cdp/CdpTarget.ts"],"names":[],"mappings":";;;AAoBA,yEAA0E;AAC1E,+DASuC;AACvC,4DAAoD;AAEpD,kDAA8C;AAI9C,8EAAsE;AAEtE,wDAAgD;AAChD,oEAGsC;AAWtC,MAAa,SAAS;IACX,GAAG,CAA2B;IAC9B,WAAW,CAAsB;IACjC,UAAU,CAAY;IACtB,iBAAiB,CAAY;IAC7B,gBAAgB,CAAY;IAC5B,aAAa,CAAe;IAC5B,aAAa,CAAe;IAE5B,qBAAqB,CAAuB;IAC5C,uBAAuB,CAAyB;IAChD,eAAe,CAAiB;IAChC,oBAAoB,CAAuB;IAE3C,UAAU,GAAG,IAAI,sBAAQ,EAAgB,CAAC;IACnD,sFAAsF;IACtF,iGAAiG;IACxF,iBAAiB,CAAS;IAC1B,OAAO,CAAuB;IAEvC;;;;SAIK;IACL,SAAS,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AI,IAAI,iBAAiB,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YACvE,MAAM,IAAI,2CAA6B,CACrC,kCAAkC,iBAAiB,CAAC,IAAI,EAAE,CAC3D,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,CAAC,GAAG,CAAC;YAChB,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,wCAAwC,EAAE;gBACnE,OAAO,EAAE,iBAAiB,EAAE,IAAI,KAAK,SAAS;gBAC9C,wBAAwB,EAAE;oBACxB;wBACE,UAAU,EAAE,EAAE;wBACd,OAAO,EAAE,CAAC;wBACV,kBAAkB,EAAE,CAAC,CAAC;wBACtB,gBAAgB,EAAE,CAAC,CAAC;qBACrB;iBACF;aACF,CAAC;YACF,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,8BAA8B,EAAE;gBACzD,OAAO,EAAE,iBAAiB,EAAE,IAAI,KAAK,SAAS;gBAC9C,wEAAwE;gBACxE,OAAO,EAAE,CAAC;gBACV,kBAAkB,EAAE,CAAC,CAAC;gBACtB,gBAAgB,EAAE,CAAC,CAAC;aACrB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAt5BD,8BAs5BC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.d.ts deleted file mode 100644 index 36101d6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import type { CdpConnection } from '../../../cdp/CdpConnection.js'; -import type { Browser } from '../../../protocol/protocol.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { BluetoothProcessor } from '../bluetooth/BluetoothProcessor.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { NetworkStorage } from '../network/NetworkStorage.js'; -import type { PreloadScriptStorage } from '../script/PreloadScriptStorage.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { SpeculationProcessor } from '../speculation/SpeculationProcessor.js'; -export declare class CdpTargetManager { - #private; - constructor(cdpConnection: CdpConnection, browserCdpClient: CdpClient, selfTargetId: string, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, networkStorage: NetworkStorage, configStorage: ContextConfigStorage, bluetoothProcessor: BluetoothProcessor, speculationProcessor: SpeculationProcessor, preloadScriptStorage: PreloadScriptStorage, defaultUserContextId: Browser.UserContext, defaultUserAgent: string, logger?: LoggerFn); -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js deleted file mode 100644 index 2389967..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js +++ /dev/null @@ -1,252 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CdpTargetManager = void 0; -const log_js_1 = require("../../../utils/log.js"); -const BrowsingContextImpl_js_1 = require("../context/BrowsingContextImpl.js"); -const WorkerRealm_js_1 = require("../script/WorkerRealm.js"); -const CdpTarget_js_1 = require("./CdpTarget.js"); -const cdpToBidiTargetTypes = { - service_worker: 'service-worker', - shared_worker: 'shared-worker', - worker: 'dedicated-worker', -}; -class CdpTargetManager { - #browserCdpClient; - #cdpConnection; - #targetKeysToBeIgnoredByAutoAttach = new Set(); - #selfTargetId; - #eventManager; - #browsingContextStorage; - #networkStorage; - #bluetoothProcessor; - #preloadScriptStorage; - #realmStorage; - #configStorage; - #speculationProcessor; - #defaultUserContextId; - #defaultUserAgent; - #logger; - constructor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, configStorage, bluetoothProcessor, speculationProcessor, preloadScriptStorage, defaultUserContextId, defaultUserAgent, logger) { - this.#cdpConnection = cdpConnection; - this.#browserCdpClient = browserCdpClient; - this.#targetKeysToBeIgnoredByAutoAttach.add(selfTargetId); - this.#selfTargetId = selfTargetId; - this.#eventManager = eventManager; - this.#browsingContextStorage = browsingContextStorage; - this.#preloadScriptStorage = preloadScriptStorage; - this.#networkStorage = networkStorage; - this.#configStorage = configStorage; - this.#bluetoothProcessor = bluetoothProcessor; - this.#speculationProcessor = speculationProcessor; - this.#realmStorage = realmStorage; - this.#defaultUserContextId = defaultUserContextId; - this.#defaultUserAgent = defaultUserAgent; - this.#logger = logger; - this.#setEventListeners(browserCdpClient); - } - /** - * This method is called for each CDP session, since this class is responsible - * for creating and destroying all targets and browsing contexts. - */ - #setEventListeners(cdpClient) { - cdpClient.on('Target.attachedToTarget', (params) => { - this.#handleAttachedToTargetEvent(params, cdpClient); - }); - cdpClient.on('Target.detachedFromTarget', this.#handleDetachedFromTargetEvent.bind(this)); - cdpClient.on('Target.targetInfoChanged', this.#handleTargetInfoChangedEvent.bind(this)); - cdpClient.on('Inspector.targetCrashed', () => { - this.#handleTargetCrashedEvent(cdpClient); - }); - cdpClient.on('Page.frameAttached', this.#handleFrameAttachedEvent.bind(this)); - cdpClient.on('Page.frameSubtreeWillBeDetached', this.#handleFrameSubtreeWillBeDetached.bind(this)); - } - #handleFrameAttachedEvent(params) { - const parentBrowsingContext = this.#browsingContextStorage.findContext(params.parentFrameId); - if (parentBrowsingContext !== undefined) { - BrowsingContextImpl_js_1.BrowsingContextImpl.create(params.frameId, params.parentFrameId, parentBrowsingContext.userContext, parentBrowsingContext.cdpTarget, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, this.#configStorage, - // At this point, we don't know the URL of the frame yet, so it will be updated - // later. - 'about:blank', undefined, this.#logger); - } - } - #handleFrameSubtreeWillBeDetached(params) { - this.#browsingContextStorage.findContext(params.frameId)?.dispose(true); - } - #handleAttachedToTargetEvent(params, parentSessionCdpClient) { - const { sessionId, targetInfo } = params; - const targetCdpClient = this.#cdpConnection.getCdpClient(sessionId); - const detach = async () => { - // Detaches and resumes the target suppressing errors. - await targetCdpClient - .sendCommand('Runtime.runIfWaitingForDebugger') - .then(() => parentSessionCdpClient.sendCommand('Target.detachFromTarget', params)) - .catch((error) => this.#logger?.(log_js_1.LogType.debugError, error)); - }; - // Do not attach to the Mapper target. - if (this.#selfTargetId === targetInfo.targetId) { - void detach(); - return; - } - // Service workers are special case because they attach to the - // browser target and the page target (so twice per worker) during - // the regular auto-attach and might hang if the CDP session on - // the browser level is not detached. The logic to detach the - // right session is handled in the switch below. - const targetKey = targetInfo.type === 'service_worker' - ? `${parentSessionCdpClient.sessionId}_${targetInfo.targetId}` - : targetInfo.targetId; - // Mapper generally only needs one session per target. If we - // receive additional auto-attached sessions, that is very likely - // coming from custom CDP sessions. - if (this.#targetKeysToBeIgnoredByAutoAttach.has(targetKey)) { - // Return to leave the session untouched. - return; - } - this.#targetKeysToBeIgnoredByAutoAttach.add(targetKey); - const userContext = targetInfo.browserContextId && - targetInfo.browserContextId !== this.#defaultUserContextId - ? targetInfo.browserContextId - : 'default'; - switch (targetInfo.type) { - case 'tab': { - // Tab targets are required only to handle page targets beneath them. - this.#setEventListeners(targetCdpClient); - // Auto-attach to the page target. No need in resuming tab target debugger, as it - // should preserve the page target debugger state, and will be resumed by the page - // target. - void (async () => { - await targetCdpClient.sendCommand('Target.setAutoAttach', { - autoAttach: true, - waitForDebuggerOnStart: true, - flatten: true, - }); - })(); - return; - } - case 'page': - case 'iframe': { - const cdpTarget = this.#createCdpTarget(targetCdpClient, parentSessionCdpClient, targetInfo, userContext); - const maybeContext = this.#browsingContextStorage.findContext(targetInfo.targetId); - if (maybeContext && targetInfo.type === 'iframe') { - // OOPiF. - maybeContext.updateCdpTarget(cdpTarget); - } - else { - // If attaching to existing browser instance, there could be OOPiF targets. This - // case is handled by the `findFrameParentId` method. - const parentId = this.#findFrameParentId(targetInfo, parentSessionCdpClient.sessionId); - // New context. - BrowsingContextImpl_js_1.BrowsingContextImpl.create(targetInfo.targetId, parentId, userContext, cdpTarget, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, this.#configStorage, - // Hack: when a new target created, CDP emits targetInfoChanged with an empty - // url, and navigates it to about:blank later. When the event is emitted for - // an existing target (reconnect), the url is already known, and navigation - // events will not be emitted anymore. Replacing empty url with `about:blank` - // allows to handle both cases in the same way. - // "7.3.2.1 Creating browsing contexts". - // https://html.spec.whatwg.org/multipage/document-sequences.html#creating-browsing-contexts - // TODO: check who to deal with non-null creator and its `creatorOrigin`. - targetInfo.url === '' ? 'about:blank' : targetInfo.url, targetInfo.openerFrameId ?? targetInfo.openerId, this.#logger); - } - return; - } - case 'service_worker': - case 'worker': { - const realm = this.#realmStorage.findRealm({ - cdpSessionId: parentSessionCdpClient.sessionId, - sandbox: null, // Non-sandboxed realms. - }); - // If there is no browsing context, this worker is already terminated. - if (!realm) { - void detach(); - return; - } - const cdpTarget = this.#createCdpTarget(targetCdpClient, parentSessionCdpClient, targetInfo, userContext); - this.#handleWorkerTarget(cdpToBidiTargetTypes[targetInfo.type], cdpTarget, realm); - return; - } - // In CDP, we only emit shared workers on the browser and not the set of - // frames that use the shared worker. If we change this in the future to - // behave like service workers (emits on both browser and frame targets), - // we can remove this block and merge service workers with the above one. - case 'shared_worker': { - const cdpTarget = this.#createCdpTarget(targetCdpClient, parentSessionCdpClient, targetInfo, userContext); - this.#handleWorkerTarget(cdpToBidiTargetTypes[targetInfo.type], cdpTarget); - return; - } - } - // DevTools or some other not supported by BiDi target. Just release - // debugger and ignore them. - void detach(); - } - /** Try to find the parent browsing context ID for the given attached target. */ - #findFrameParentId(targetInfo, parentSessionId) { - if (targetInfo.type !== 'iframe') { - return null; - } - const parentId = targetInfo.openerFrameId ?? targetInfo.openerId; - if (parentId !== undefined) { - return parentId; - } - if (parentSessionId !== undefined) { - return (this.#browsingContextStorage.findContextBySession(parentSessionId) - ?.id ?? null); - } - return null; - } - #createCdpTarget(targetCdpClient, parentCdpClient, targetInfo, userContext) { - this.#setEventListeners(targetCdpClient); - this.#preloadScriptStorage.onCdpTargetCreated(targetInfo.targetId, userContext); - const target = CdpTarget_js_1.CdpTarget.create(targetInfo.targetId, targetCdpClient, this.#browserCdpClient, parentCdpClient, this.#realmStorage, this.#eventManager, this.#preloadScriptStorage, this.#browsingContextStorage, this.#networkStorage, this.#configStorage, userContext, - // Pass the cached default User Agent to the new target. - this.#defaultUserAgent, this.#logger); - this.#networkStorage.onCdpTargetCreated(target); - this.#bluetoothProcessor.onCdpTargetCreated(target); - this.#speculationProcessor.onCdpTargetCreated(target); - return target; - } - #workers = new Map(); - #handleWorkerTarget(realmType, cdpTarget, ownerRealm) { - cdpTarget.cdpClient.on('Runtime.executionContextCreated', (params) => { - const { uniqueId, id, origin } = params.context; - const workerRealm = new WorkerRealm_js_1.WorkerRealm(cdpTarget.cdpClient, this.#eventManager, id, this.#logger, (0, BrowsingContextImpl_js_1.serializeOrigin)(origin), ownerRealm ? [ownerRealm] : [], uniqueId, this.#realmStorage, realmType); - this.#workers.set(cdpTarget.cdpSessionId, workerRealm); - }); - } - #handleDetachedFromTargetEvent({ sessionId, targetId, }) { - if (targetId) { - this.#preloadScriptStorage.find({ targetId }).map((preloadScript) => { - preloadScript.dispose(targetId); - }); - } - const context = this.#browsingContextStorage.findContextBySession(sessionId); - if (context) { - context.dispose(true); - return; - } - const worker = this.#workers.get(sessionId); - if (worker) { - this.#realmStorage.deleteRealms({ - cdpSessionId: worker.cdpClient.sessionId, - }); - } - } - #handleTargetInfoChangedEvent(params) { - const context = this.#browsingContextStorage.findContext(params.targetInfo.targetId); - if (context) { - context.onTargetInfoChanged(params); - } - } - #handleTargetCrashedEvent(cdpClient) { - // This is primarily used for service and shared workers. CDP tends to not - // signal they closed gracefully and instead says they crashed to signal - // they are closed. - const realms = this.#realmStorage.findRealms({ - cdpSessionId: cdpClient.sessionId, - }); - for (const realm of realms) { - realm.dispose(); - } - } -} -exports.CdpTargetManager = CdpTargetManager; -//# sourceMappingURL=CdpTargetManager.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js.map deleted file mode 100644 index 9f9f25e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CdpTargetManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/cdp/CdpTargetManager.ts"],"names":[],"mappings":";;;AAqBA,kDAA6D;AAG7D,8EAG2C;AAM3C,6DAA2E;AAI3E,iDAAyC;AAEzC,MAAM,oBAAoB,GAAG;IAC3B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,kBAAkB;CAClB,CAAC;AAEX,MAAa,gBAAgB;IAClB,iBAAiB,CAAY;IAC7B,cAAc,CAAgB;IAC9B,kCAAkC,GAAG,IAAI,GAAG,EAAU,CAAC;IACvD,aAAa,CAAS;IACtB,aAAa,CAAe;IAE5B,uBAAuB,CAAyB;IAChD,eAAe,CAAiB;IAChC,mBAAmB,CAAqB;IACxC,qBAAqB,CAAuB;IAC5C,aAAa,CAAe;IAC5B,cAAc,CAAuB;IACrC,qBAAqB,CAAuB;IAE5C,qBAAqB,CAAsB;IAC3C,iBAAiB,CAAS;IAC1B,OAAO,CAAY;IAE5B,YACE,aAA4B,EAC5B,gBAA2B,EAC3B,YAAoB,EACpB,YAA0B,EAC1B,sBAA8C,EAC9C,YAA0B,EAC1B,cAA8B,EAC9B,aAAmC,EACnC,kBAAsC,EACtC,oBAA0C,EAC1C,oBAA0C,EAC1C,oBAAyC,EACzC,gBAAwB,EACxB,MAAiB;QAEjB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,iBAAiB,GA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uB,CAAC,WAAW,CACtD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAC3B,CAAC;QACF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IAED,yBAAyB,CAAC,SAAoB;QAC5C,0EAA0E;QAC1E,wEAAwE;QACxE,mBAAmB;QACnB,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC;YAC3C,YAAY,EAAE,SAAS,CAAC,SAAS;SAClC,CAAC,CAAC;QACH,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,KAAK,CAAC,OAAO,EAAE,CAAC;QAClB,CAAC;IACH,CAAC;CACF;AA9YD,4CA8YC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.d.ts deleted file mode 100644 index 8a0a09b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import { BrowsingContext, type Emulation, type UAClientHints } from '../../../protocol/protocol.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { Realm } from '../script/Realm.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { BrowsingContextStorage } from './BrowsingContextStorage.js'; -export declare class BrowsingContextImpl { - #private; - static readonly LOGGER_PREFIX: "debug:browsingContext"; - readonly userContext: string; - private constructor(); - static create(id: BrowsingContext.BrowsingContext, parentId: BrowsingContext.BrowsingContext | null, userContext: string, cdpTarget: CdpTarget, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, configStorage: ContextConfigStorage, url: string, originalOpener?: string, logger?: LoggerFn): BrowsingContextImpl; - /** - * @see https://html.spec.whatwg.org/multipage/document-sequences.html#navigable - */ - get navigableId(): string | undefined; - get navigationId(): string; - dispose(emitContextDestroyed: boolean): void; - /** Returns the ID of this context. */ - get id(): BrowsingContext.BrowsingContext; - /** Returns the parent context ID. */ - get parentId(): BrowsingContext.BrowsingContext | null; - /** Sets the parent context ID and updates parent's children. */ - set parentId(parentId: BrowsingContext.BrowsingContext | null); - /** Returns the parent context. */ - get parent(): BrowsingContextImpl | null; - /** Returns all direct children contexts. */ - get directChildren(): BrowsingContextImpl[]; - /** Returns all children contexts, flattened. */ - get allChildren(): BrowsingContextImpl[]; - /** - * Returns true if this is a top-level context. - * This is the case whenever the parent context ID is null. - */ - isTopLevelContext(): boolean; - get top(): BrowsingContextImpl; - addChild(childId: BrowsingContext.BrowsingContext): void; - get cdpTarget(): CdpTarget; - updateCdpTarget(cdpTarget: CdpTarget): void; - get url(): string; - lifecycleLoaded(): Promise; - targetUnblockedOrThrow(): Promise; - /** Returns a sandbox for internal helper scripts which is not exposed to the user.*/ - getOrCreateHiddenSandbox(): Promise; - /** Returns a sandbox which is exposed to user. */ - getOrCreateUserSandbox(sandbox: string | undefined): Promise; - /** - * Implements https://w3c.github.io/webdriver-bidi/#get-the-navigable-info. - */ - serializeToBidiValue(maxDepth?: number | null, addParentField?: boolean): BrowsingContext.Info; - onTargetInfoChanged(params: Protocol.Target.TargetInfoChangedEvent): void; - navigate(url: string, wait: BrowsingContext.ReadinessState): Promise; - reload(ignoreCache: boolean, wait: BrowsingContext.ReadinessState): Promise; - setViewport(viewport: BrowsingContext.Viewport | null, devicePixelRatio: number | null, screenOrientation: Emulation.ScreenOrientation | null): Promise; - handleUserPrompt(accept?: boolean, userText?: string): Promise; - activate(): Promise; - captureScreenshot(params: BrowsingContext.CaptureScreenshotParameters): Promise; - print(params: BrowsingContext.PrintParameters): Promise; - close(): Promise; - traverseHistory(delta: number): Promise; - toggleModulesIfNeeded(): Promise; - locateNodes(params: BrowsingContext.LocateNodesParameters): Promise; - setTimezoneOverride(timezone: string | null): Promise; - setLocaleOverride(locale: string | null): Promise; - setGeolocationOverride(geolocation: Emulation.GeolocationCoordinates | Emulation.GeolocationPositionError | null): Promise; - setScriptingEnabled(scriptingEnabled: false | null): Promise; - setUserAgentAndAcceptLanguage(userAgent: string | null | undefined, acceptLanguage: string | null | undefined, clientHints: UAClientHints.UserAgentClientHints.ClientHintsMetadata | null | undefined): Promise; - setEmulatedNetworkConditions(networkConditions: Emulation.NetworkConditions | null): Promise; - setTouchOverride(maxTouchPoints: number | null): Promise; - setExtraHeaders(cdpExtraHeaders: Protocol.Network.Headers): Promise>; -} -export declare function serializeOrigin(origin: string): string; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js deleted file mode 100644 index 995eca2..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js +++ /dev/null @@ -1,1463 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BrowsingContextImpl = void 0; -exports.serializeOrigin = serializeOrigin; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const assert_js_1 = require("../../../utils/assert.js"); -const Deferred_js_1 = require("../../../utils/Deferred.js"); -const log_js_1 = require("../../../utils/log.js"); -const time_js_1 = require("../../../utils/time.js"); -const unitConversions_js_1 = require("../../../utils/unitConversions.js"); -const uuid_js_1 = require("../../../utils/uuid.js"); -const SharedId_js_1 = require("../script/SharedId.js"); -const WindowRealm_js_1 = require("../script/WindowRealm.js"); -const NavigationTracker_js_1 = require("./NavigationTracker.js"); -class BrowsingContextImpl { - static LOGGER_PREFIX = `${log_js_1.LogType.debug}:browsingContext`; - /** Direct children browsing contexts. */ - #children = new Set(); - /** The ID of this browsing context. */ - #id; - userContext; - // Used for running helper scripts. - #hiddenSandbox = (0, uuid_js_1.uuidv4)(); - #downloadIdToUrlMap = new Map(); - /** - * The ID of the parent browsing context. - * If null, this is a top-level context. - */ - #loaderId; - #parentId = null; - #originalOpener; - #lifecycle = { - DOMContentLoaded: new Deferred_js_1.Deferred(), - load: new Deferred_js_1.Deferred(), - }; - #cdpTarget; - #defaultRealmDeferred = new Deferred_js_1.Deferred(); - #browsingContextStorage; - #eventManager; - #logger; - #navigationTracker; - #realmStorage; - #configStorage; - // Set when the user prompt is opened. Required to provide the type in closing event. - #lastUserPromptType; - constructor(id, parentId, userContext, cdpTarget, eventManager, browsingContextStorage, realmStorage, configStorage, url, originalOpener, logger) { - this.#cdpTarget = cdpTarget; - this.#id = id; - this.#parentId = parentId; - this.userContext = userContext; - this.#eventManager = eventManager; - this.#browsingContextStorage = browsingContextStorage; - this.#realmStorage = realmStorage; - this.#configStorage = configStorage; - this.#logger = logger; - this.#originalOpener = originalOpener; - // Register helper realm as hidden, so that it will not be reported to the user. - this.#realmStorage.hiddenSandboxes.add(this.#hiddenSandbox); - this.#navigationTracker = new NavigationTracker_js_1.NavigationTracker(url, id, eventManager, logger); - } - static create(id, parentId, userContext, cdpTarget, eventManager, browsingContextStorage, realmStorage, configStorage, url, originalOpener, logger) { - const context = new _a(id, parentId, userContext, cdpTarget, eventManager, browsingContextStorage, realmStorage, configStorage, url, originalOpener, logger); - context.#initListeners(); - browsingContextStorage.addContext(context); - if (!context.isTopLevelContext()) { - context.parent.addChild(context.id); - } - // Hold on the `contextCreated` event until the target is unblocked. This is required, - // as the parent of the context can be set later in case of reconnecting to an - // existing browser instance + OOPiF. - eventManager.registerPromiseEvent(context.targetUnblockedOrThrow().then(() => { - return { - kind: 'success', - value: { - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextCreated, - params: { - ...context.serializeToBidiValue(), - // Hack to provide the initial URL of the context, as it can be changed - // between the page target is attached and unblocked, as the page is not - // fully paused in MPArch session (https://crbug.com/372842894). - // TODO: remove once https://crbug.com/372842894 is addressed. - url, - }, - }, - }; - }, (error) => { - return { - kind: 'error', - error, - }; - }), context.id, protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextCreated); - return context; - } - /** - * @see https://html.spec.whatwg.org/multipage/document-sequences.html#navigable - */ - get navigableId() { - return this.#loaderId; - } - get navigationId() { - return this.#navigationTracker.currentNavigationId; - } - dispose(emitContextDestroyed) { - this.#navigationTracker.dispose(); - this.#realmStorage.deleteRealms({ - browsingContextId: this.id, - }); - // Delete context from the parent. - if (!this.isTopLevelContext()) { - this.parent.#children.delete(this.id); - } - // Fail all ongoing navigations. - this.#failLifecycleIfNotFinished(); - if (emitContextDestroyed) { - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextDestroyed, - params: this.serializeToBidiValue(null), - }, this.id); - } - // Dispose children after the events are emitted. - this.#deleteAllChildren(); - this.#eventManager.clearBufferedEvents(this.id); - this.#browsingContextStorage.deleteContextById(this.id); - } - /** Returns the ID of this context. */ - get id() { - return this.#id; - } - /** Returns the parent context ID. */ - get parentId() { - return this.#parentId; - } - /** Sets the parent context ID and updates parent's children. */ - set parentId(parentId) { - if (this.#parentId !== null) { - this.#logger?.(log_js_1.LogType.debugError, 'Parent context already set'); - // Cannot do anything except logging, as throwing will stop event processing. So - // just return, - return; - } - this.#parentId = parentId; - if (!this.isTopLevelContext()) { - this.parent.addChild(this.id); - } - } - /** Returns the parent context. */ - get parent() { - if (this.parentId === null) { - return null; - } - return this.#browsingContextStorage.getContext(this.parentId); - } - /** Returns all direct children contexts. */ - get directChildren() { - return [...this.#children].map((id) => this.#browsingContextStorage.getContext(id)); - } - /** Returns all children contexts, flattened. */ - get allChildren() { - const children = this.directChildren; - return children.concat(...children.map((child) => child.allChildren)); - } - /** - * Returns true if this is a top-level context. - * This is the case whenever the parent context ID is null. - */ - isTopLevelContext() { - return this.#parentId === null; - } - get top() { - // eslint-disable-next-line @typescript-eslint/no-this-alias - let topContext = this; - let parent = topContext.parent; - while (parent) { - topContext = parent; - parent = topContext.parent; - } - return topContext; - } - addChild(childId) { - this.#children.add(childId); - } - #deleteAllChildren(emitContextDestroyed = false) { - this.directChildren.map((child) => child.dispose(emitContextDestroyed)); - } - get cdpTarget() { - return this.#cdpTarget; - } - updateCdpTarget(cdpTarget) { - this.#cdpTarget = cdpTarget; - this.#initListeners(); - } - get url() { - return this.#navigationTracker.url; - } - async lifecycleLoaded() { - await this.#lifecycle.load; - } - async targetUnblockedOrThrow() { - const result = await this.#cdpTarget.unblocked; - if (result.kind === 'error') { - throw result.error; - } - } - /** Returns a sandbox for internal helper scripts which is not exposed to the user.*/ - async getOrCreateHiddenSandbox() { - return await this.#getOrCreateSandboxInternal(this.#hiddenSandbox); - } - /** Returns a sandbox which is exposed to user. */ - async getOrCreateUserSandbox(sandbox) { - const realm = await this.#getOrCreateSandboxInternal(sandbox); - if (realm.isHidden()) { - throw new protocol_js_1.NoSuchFrameException(`Realm "${sandbox}" not found`); - } - return realm; - } - async #getOrCreateSandboxInternal(sandbox) { - if (sandbox === undefined || sandbox === '') { - // Default realm is not guaranteed to be created at this point, so return a deferred. - return await this.#defaultRealmDeferred; - } - let maybeSandboxes = this.#realmStorage.findRealms({ - browsingContextId: this.id, - sandbox, - }); - if (maybeSandboxes.length === 0) { - await this.#cdpTarget.cdpClient.sendCommand('Page.createIsolatedWorld', { - frameId: this.id, - worldName: sandbox, - }); - // `Runtime.executionContextCreated` should be emitted by the time the - // previous command is done. - maybeSandboxes = this.#realmStorage.findRealms({ - browsingContextId: this.id, - sandbox, - }); - (0, assert_js_1.assert)(maybeSandboxes.length !== 0); - } - // It's possible for more than one sandbox to be created due to provisional - // frames. In this case, it's always the first one (i.e. the oldest one) - // that is more relevant since the user may have set that one up already - // through evaluation. - return maybeSandboxes[0]; - } - /** - * Implements https://w3c.github.io/webdriver-bidi/#get-the-navigable-info. - */ - serializeToBidiValue(maxDepth = 0, addParentField = true) { - return { - context: this.#id, - url: this.url, - userContext: this.userContext, - originalOpener: this.#originalOpener ?? null, - clientWindow: `${this.cdpTarget.windowId}`, - children: maxDepth === null || maxDepth > 0 - ? this.directChildren.map((c) => c.serializeToBidiValue(maxDepth === null ? maxDepth : maxDepth - 1, false)) - : null, - ...(addParentField ? { parent: this.#parentId } : {}), - }; - } - onTargetInfoChanged(params) { - this.#navigationTracker.onTargetInfoChanged(params.targetInfo.url); - } - #initListeners() { - this.#cdpTarget.cdpClient.on('Network.loadingFailed', (params) => { - // Detect navigation errors like `net::ERR_BLOCKED_BY_RESPONSE`. - // Network related to navigation has request id equals to navigation's loader id. - this.#navigationTracker.networkLoadingFailed(params.requestId, params.errorText); - }); - this.#cdpTarget.cdpClient.on('Page.fileChooserOpened', (params) => { - if (this.id !== params.frameId) { - return; - } - if (this.#loaderId === undefined) { - this.#logger?.(log_js_1.LogType.debugError, 'LoaderId should be defined when file upload is shown', params); - return; - } - const element = params.backendNodeId === undefined - ? undefined - : { - sharedId: (0, SharedId_js_1.getSharedId)(this.id, this.#loaderId, params.backendNodeId), - }; - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.Input.EventNames.FileDialogOpened, - params: { - context: this.id, - multiple: params.mode === 'selectMultiple', - element, - }, - }, this.id); - }); - this.#cdpTarget.cdpClient.on('Page.frameNavigated', (params) => { - if (this.id !== params.frame.id) { - return; - } - this.#navigationTracker.frameNavigated(params.frame.url + (params.frame.urlFragment ?? ''), params.frame.loaderId, - // `unreachableUrl` indicates if the navigation failed. - params.frame.unreachableUrl); - // At the point the page is initialized, all the nested iframes from the - // previous page are detached and realms are destroyed. - // Delete children from context. - this.#deleteAllChildren(); - this.#documentChanged(params.frame.loaderId); - }); - this.#cdpTarget.cdpClient.on('Page.frameStartedNavigating', (params) => { - if (this.id !== params.frameId) { - return; - } - this.#navigationTracker.frameStartedNavigating(params.url, params.loaderId, params.navigationType); - }); - this.#cdpTarget.cdpClient.on('Page.navigatedWithinDocument', (params) => { - if (this.id !== params.frameId) { - return; - } - this.#navigationTracker.navigatedWithinDocument(params.url, params.navigationType); - if (params.navigationType === 'historyApi') { - this.#eventManager.registerEvent({ - type: 'event', - method: 'browsingContext.historyUpdated', - params: { - context: this.id, - timestamp: (0, time_js_1.getTimestamp)(), - url: this.#navigationTracker.url, - }, - }, this.id); - return; - } - }); - this.#cdpTarget.cdpClient.on('Page.lifecycleEvent', (params) => { - if (this.id !== params.frameId) { - return; - } - if (params.name === 'init') { - this.#documentChanged(params.loaderId); - return; - } - if (params.name === 'commit') { - this.#loaderId = params.loaderId; - return; - } - // If mapper attached to the page late, it might miss init and - // commit events. In that case, save the first loaderId for this - // frameId. - if (!this.#loaderId) { - this.#loaderId = params.loaderId; - } - // Ignore event from not current navigation. - if (params.loaderId !== this.#loaderId) { - return; - } - switch (params.name) { - case 'DOMContentLoaded': - if (!this.#navigationTracker.isInitialNavigation) { - // Do not emit for the initial navigation. - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.DomContentLoaded, - params: { - context: this.id, - navigation: this.#navigationTracker.currentNavigationId, - timestamp: (0, time_js_1.getTimestamp)(), - url: this.#navigationTracker.url, - }, - }, this.id); - } - this.#lifecycle.DOMContentLoaded.resolve(); - break; - case 'load': - if (!this.#navigationTracker.isInitialNavigation) { - // Do not emit for the initial navigation. - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.Load, - params: { - context: this.id, - navigation: this.#navigationTracker.currentNavigationId, - timestamp: (0, time_js_1.getTimestamp)(), - url: this.#navigationTracker.url, - }, - }, this.id); - } - // The initial navigation is finished. - this.#navigationTracker.loadPageEvent(params.loaderId); - this.#lifecycle.load.resolve(); - break; - } - }); - this.#cdpTarget.cdpClient.on('Runtime.executionContextCreated', (params) => { - const { auxData, name, uniqueId, id } = params.context; - if (!auxData || auxData.frameId !== this.id) { - return; - } - if (auxData.type === 'isolated' && name === '') { - // This is an internal isolated realm and it is not expected to be exposed to - // WebDriver BiDi users. Ignore it. - return; - } - let origin; - let sandbox; - // Only these execution contexts are supported for now. - switch (auxData.type) { - case 'isolated': - sandbox = name; - // Sandbox should have the same origin as the context itself, but in CDP - // it has an empty one. - if (!this.#defaultRealmDeferred.isFinished) { - this.#logger?.(log_js_1.LogType.debugError, 'Unexpectedly, isolated realm created before the default one'); - } - origin = this.#defaultRealmDeferred.isFinished - ? this.#defaultRealmDeferred.result.origin - : // This fallback is not expected to be ever reached. - ''; - break; - case 'default': - origin = serializeOrigin(params.context.origin); - break; - default: - return; - } - const realm = new WindowRealm_js_1.WindowRealm(this.id, this.#browsingContextStorage, this.#cdpTarget.cdpClient, this.#eventManager, id, this.#logger, origin, uniqueId, this.#realmStorage, sandbox); - if (auxData.isDefault) { - this.#defaultRealmDeferred.resolve(realm); - // Initialize ChannelProxy listeners for all the channels of all the - // preload scripts related to this BrowsingContext. - // TODO: extend for not default realms by the sandbox name. - void Promise.all(this.#cdpTarget - .getChannels() - .map((channel) => channel.startListenerFromWindow(realm, this.#eventManager))); - } - }); - this.#cdpTarget.cdpClient.on('Runtime.executionContextDestroyed', (params) => { - if (this.#defaultRealmDeferred.isFinished && - this.#defaultRealmDeferred.result.executionContextId === - params.executionContextId) { - this.#defaultRealmDeferred = new Deferred_js_1.Deferred(); - } - this.#realmStorage.deleteRealms({ - cdpSessionId: this.#cdpTarget.cdpSessionId, - executionContextId: params.executionContextId, - }); - }); - this.#cdpTarget.cdpClient.on('Runtime.executionContextsCleared', () => { - if (!this.#defaultRealmDeferred.isFinished) { - this.#defaultRealmDeferred.reject(new protocol_js_1.UnknownErrorException('execution contexts cleared')); - } - this.#defaultRealmDeferred = new Deferred_js_1.Deferred(); - this.#realmStorage.deleteRealms({ - cdpSessionId: this.#cdpTarget.cdpSessionId, - }); - }); - this.#cdpTarget.cdpClient.on('Page.javascriptDialogClosed', (params) => { - // Checking for `params.frameId` for comptaibility with Chrome - // versions that do not have a frameId. TODO: remove once - // https://crrev.com/c/6487891 is in stable. - if (params.frameId && this.id !== params.frameId) { - return; - } - if (!params.frameId && - this.#parentId && - this.#cdpTarget.cdpClient !== - this.#browsingContextStorage.getContext(this.#parentId)?.cdpTarget - .cdpClient) { - // If CDP event `Page.javascriptDialogClosed` does not have a frameId, this - // heuristic emits the event only for top-level per-cdp target context, ignoring - // the event for same-process iframes. So the event will be emitted only once per - // CDP target. TODO: remove once https://crrev.com/c/6487891 is in stable. - return; - } - const accepted = params.result; - if (this.#lastUserPromptType === undefined) { - this.#logger?.(log_js_1.LogType.debugError, 'Unexpectedly no opening prompt event before closing one'); - } - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.UserPromptClosed, - params: { - context: this.id, - accepted, - // `lastUserPromptType` should never be undefined here, so fallback to - // `UNKNOWN`. The fallback is required to prevent tests from hanging while - // waiting for the closing event. The cast is required, as the `UNKNOWN` value - // is not standard. - type: this.#lastUserPromptType ?? - 'UNKNOWN', - userText: accepted && params.userInput ? params.userInput : undefined, - }, - }, this.id); - this.#lastUserPromptType = undefined; - }); - this.#cdpTarget.cdpClient.on('Page.javascriptDialogOpening', (params) => { - // Checking for `params.frameId` for comptaibility with Chrome - // versions that do not have a frameId. TODO: remove once - // https://crrev.com/c/6487891 is in stable. - if (params.frameId && this.id !== params.frameId) { - return; - } - if (!params.frameId && - this.#parentId && - this.#cdpTarget.cdpClient !== - this.#browsingContextStorage.getContext(this.#parentId)?.cdpTarget - .cdpClient) { - // If CDP event `Page.javascriptDialogClosed` does not have a frameId, this - // heuristic emits the event only for top-level per-cdp target context, ignoring - // the event for same-process iframes. So the event will be emitted only once per - // CDP target. TODO: remove once https://crrev.com/c/6487891 is in stable. - return; - } - const promptType = _a.#getPromptType(params.type); - // Set the last prompt type to provide it in closing event. - this.#lastUserPromptType = promptType; - const promptHandler = this.#getPromptHandler(promptType); - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.UserPromptOpened, - params: { - context: this.id, - handler: promptHandler, - type: promptType, - message: params.message, - ...(params.type === 'prompt' - ? { defaultValue: params.defaultPrompt } - : {}), - }, - }, this.id); - switch (promptHandler) { - // Based on `unhandledPromptBehavior`, check if the prompt should be handled - // automatically (`accept`, `dismiss`) or wait for the user to do it. - case "accept" /* Session.UserPromptHandlerType.Accept */: - void this.handleUserPrompt(true); - break; - case "dismiss" /* Session.UserPromptHandlerType.Dismiss */: - void this.handleUserPrompt(false); - break; - case "ignore" /* Session.UserPromptHandlerType.Ignore */: - break; - } - }); - this.#cdpTarget.browserCdpClient.on('Browser.downloadWillBegin', (params) => { - if (this.id !== params.frameId) { - return; - } - this.#downloadIdToUrlMap.set(params.guid, params.url); - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.DownloadWillBegin, - params: { - context: this.id, - suggestedFilename: params.suggestedFilename, - navigation: params.guid, - timestamp: (0, time_js_1.getTimestamp)(), - url: params.url, - }, - }, this.id); - }); - this.#cdpTarget.browserCdpClient.on('Browser.downloadProgress', (params) => { - if (!this.#downloadIdToUrlMap.has(params.guid)) { - // The event is not related to this browsing context. - return; - } - if (params.state === 'inProgress') { - // No need in reporting progress. - return; - } - const url = this.#downloadIdToUrlMap.get(params.guid); - switch (params.state) { - case 'canceled': - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.DownloadEnd, - params: { - status: 'canceled', - context: this.id, - navigation: params.guid, - timestamp: (0, time_js_1.getTimestamp)(), - url, - }, - }, this.id); - break; - case 'completed': - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.DownloadEnd, - params: { - filepath: params.filePath ?? null, - status: 'complete', - context: this.id, - navigation: params.guid, - timestamp: (0, time_js_1.getTimestamp)(), - url, - }, - }, this.id); - break; - default: - // Unreachable. - throw new protocol_js_1.UnknownErrorException(`Unknown download state: ${params.state}`); - } - }); - } - static #getPromptType(cdpType) { - switch (cdpType) { - case 'alert': - return "alert" /* BrowsingContext.UserPromptType.Alert */; - case 'beforeunload': - return "beforeunload" /* BrowsingContext.UserPromptType.Beforeunload */; - case 'confirm': - return "confirm" /* BrowsingContext.UserPromptType.Confirm */; - case 'prompt': - return "prompt" /* BrowsingContext.UserPromptType.Prompt */; - } - } - /** - * Returns either custom UserContext's prompt handler, global or default one. - */ - #getPromptHandler(promptType) { - const defaultPromptHandler = "dismiss" /* Session.UserPromptHandlerType.Dismiss */; - const contextConfig = this.#configStorage.getActiveConfig(this.top.id, this.userContext); - switch (promptType) { - case "alert" /* BrowsingContext.UserPromptType.Alert */: - return (contextConfig.userPromptHandler?.alert ?? - contextConfig.userPromptHandler?.default ?? - defaultPromptHandler); - case "beforeunload" /* BrowsingContext.UserPromptType.Beforeunload */: - return (contextConfig.userPromptHandler?.beforeUnload ?? - contextConfig.userPromptHandler?.default ?? - "accept" /* Session.UserPromptHandlerType.Accept */); - case "confirm" /* BrowsingContext.UserPromptType.Confirm */: - return (contextConfig.userPromptHandler?.confirm ?? - contextConfig.userPromptHandler?.default ?? - defaultPromptHandler); - case "prompt" /* BrowsingContext.UserPromptType.Prompt */: - return (contextConfig.userPromptHandler?.prompt ?? - contextConfig.userPromptHandler?.default ?? - defaultPromptHandler); - } - } - #documentChanged(loaderId) { - if (loaderId === undefined || this.#loaderId === loaderId) { - return; - } - // Document changed. - this.#resetLifecycleIfFinished(); - this.#loaderId = loaderId; - // Delete all child iframes and notify about top level destruction. - this.#deleteAllChildren(true); - } - #resetLifecycleIfFinished() { - if (this.#lifecycle.DOMContentLoaded.isFinished) { - this.#lifecycle.DOMContentLoaded = new Deferred_js_1.Deferred(); - } - else { - this.#logger?.(_a.LOGGER_PREFIX, 'Document changed (DOMContentLoaded)'); - } - if (this.#lifecycle.load.isFinished) { - this.#lifecycle.load = new Deferred_js_1.Deferred(); - } - else { - this.#logger?.(_a.LOGGER_PREFIX, 'Document changed (load)'); - } - } - #failLifecycleIfNotFinished() { - if (!this.#lifecycle.DOMContentLoaded.isFinished) { - this.#lifecycle.DOMContentLoaded.reject(new protocol_js_1.UnknownErrorException('navigation canceled')); - } - if (!this.#lifecycle.load.isFinished) { - this.#lifecycle.load.reject(new protocol_js_1.UnknownErrorException('navigation canceled')); - } - } - async navigate(url, wait) { - try { - new URL(url); - } - catch { - throw new protocol_js_1.InvalidArgumentException(`Invalid URL: ${url}`); - } - const navigationState = this.#navigationTracker.createPendingNavigation(url); - // Navigate and wait for the result. If the navigation fails, the error event is - // emitted and the promise is rejected. - const cdpNavigatePromise = (async () => { - const cdpNavigateResult = await this.#cdpTarget.cdpClient.sendCommand('Page.navigate', { - url, - frameId: this.id, - }); - if (cdpNavigateResult.errorText) { - // If navigation failed, no pending navigation is left. - this.#navigationTracker.failNavigation(navigationState, cdpNavigateResult.errorText); - throw new protocol_js_1.UnknownErrorException(cdpNavigateResult.errorText); - } - this.#navigationTracker.navigationCommandFinished(navigationState, cdpNavigateResult.loaderId); - this.#documentChanged(cdpNavigateResult.loaderId); - })(); - // Wait for either the navigation is finished or canceled by another navigation. - const result = await Promise.race([ - // No `loaderId` means same-document navigation. - this.#waitNavigation(wait, cdpNavigatePromise, navigationState), - // Throw an error if the navigation is canceled. - navigationState.finished, - ]); - if (result instanceof NavigationTracker_js_1.NavigationResult) { - if ( - // TODO: check after decision on the spec is done: - // https://github.com/w3c/webdriver-bidi/issues/799. - result.eventName === "browsingContext.navigationAborted" /* NavigationEventName.NavigationAborted */ || - result.eventName === "browsingContext.navigationFailed" /* NavigationEventName.NavigationFailed */) { - throw new protocol_js_1.UnknownErrorException(result.message ?? 'unknown exception'); - } - } - return { - navigation: navigationState.navigationId, - // Url can change due to redirects. Get the one from commandNavigation. - url: navigationState.url, - }; - } - async #waitNavigation(wait, cdpCommandPromise, navigationState) { - await Promise.all([navigationState.committed, cdpCommandPromise]); - if (wait === "none" /* BrowsingContext.ReadinessState.None */) { - return; - } - if (navigationState.isFragmentNavigation === true) { - // After the cdp command is finished, the `fragmentNavigation` should be already - // settled. If it's the fragment navigation, wait for the `navigationStatus` to be - // finished, which happens after the fragment navigation happened. No need to wait for - // DOM events. - await navigationState.finished; - return; - } - if (wait === "interactive" /* BrowsingContext.ReadinessState.Interactive */) { - await this.#lifecycle.DOMContentLoaded; - return; - } - if (wait === "complete" /* BrowsingContext.ReadinessState.Complete */) { - await this.#lifecycle.load; - return; - } - throw new protocol_js_1.InvalidArgumentException(`Wait condition ${wait} is not supported`); - } - // TODO: support concurrent navigations analogous to `navigate`. - async reload(ignoreCache, wait) { - await this.targetUnblockedOrThrow(); - this.#resetLifecycleIfFinished(); - const navigationState = this.#navigationTracker.createPendingNavigation(this.#navigationTracker.url); - const cdpReloadPromise = this.#cdpTarget.cdpClient.sendCommand('Page.reload', { - ignoreCache, - }); - // Wait for either the navigation is finished or canceled by another navigation. - const result = await Promise.race([ - // No `loaderId` means same-document navigation. - this.#waitNavigation(wait, cdpReloadPromise, navigationState), - // Throw an error if the navigation is canceled. - navigationState.finished, - ]); - if (result instanceof NavigationTracker_js_1.NavigationResult) { - if (result.eventName === "browsingContext.navigationAborted" /* NavigationEventName.NavigationAborted */ || - result.eventName === "browsingContext.navigationFailed" /* NavigationEventName.NavigationFailed */) { - throw new protocol_js_1.UnknownErrorException(result.message ?? 'unknown exception'); - } - } - return { - navigation: navigationState.navigationId, - // Url can change due to redirects. Get the one from commandNavigation. - url: navigationState.url, - }; - } - async setViewport(viewport, devicePixelRatio, screenOrientation) { - // Set the target's viewport. - const config = this.#configStorage.getActiveConfig(this.id, this.userContext); - await this.cdpTarget.setDeviceMetricsOverride(viewport, devicePixelRatio, screenOrientation, config.screenArea ?? null); - } - async handleUserPrompt(accept, userText) { - await this.top.#cdpTarget.cdpClient.sendCommand('Page.handleJavaScriptDialog', { - accept: accept ?? true, - promptText: userText, - }); - } - async activate() { - await this.#cdpTarget.cdpClient.sendCommand('Page.bringToFront'); - } - async captureScreenshot(params) { - if (!this.isTopLevelContext()) { - throw new protocol_js_1.UnsupportedOperationException(`Non-top-level 'context' (${params.context}) is currently not supported`); - } - const formatParameters = getImageFormatParameters(params); - let captureBeyondViewport = false; - let script; - params.origin ??= 'viewport'; - switch (params.origin) { - case 'document': { - script = String(() => { - const element = document.documentElement; - return { - x: 0, - y: 0, - width: element.scrollWidth, - height: element.scrollHeight, - }; - }); - captureBeyondViewport = true; - break; - } - case 'viewport': { - script = String(() => { - const viewport = window.visualViewport; - return { - x: viewport.pageLeft, - y: viewport.pageTop, - width: viewport.width, - height: viewport.height, - }; - }); - break; - } - } - const hiddenSandboxRealm = await this.getOrCreateHiddenSandbox(); - const originResult = await hiddenSandboxRealm.callFunction(script, false); - (0, assert_js_1.assert)(originResult.type === 'success'); - const origin = deserializeDOMRect(originResult.result); - (0, assert_js_1.assert)(origin); - let rect = origin; - if (params.clip) { - const clip = params.clip; - if (params.origin === 'viewport' && clip.type === 'box') { - // For viewport origin, the clip is relative to the viewport, while the CDP - // screenshot is relative to the document. So correction for the viewport position - // is required. - clip.x += origin.x; - clip.y += origin.y; - } - rect = getIntersectionRect(await this.#parseRect(clip), origin); - } - if (rect.width === 0 || rect.height === 0) { - throw new protocol_js_1.UnableToCaptureScreenException(`Unable to capture screenshot with zero dimensions: width=${rect.width}, height=${rect.height}`); - } - return await this.#cdpTarget.cdpClient.sendCommand('Page.captureScreenshot', { - clip: { ...rect, scale: 1.0 }, - ...formatParameters, - captureBeyondViewport, - }); - } - async print(params) { - if (!this.isTopLevelContext()) { - throw new protocol_js_1.UnsupportedOperationException('Printing of non-top level contexts is not supported'); - } - const cdpParams = {}; - if (params.background !== undefined) { - cdpParams.printBackground = params.background; - } - if (params.margin?.bottom !== undefined) { - cdpParams.marginBottom = (0, unitConversions_js_1.inchesFromCm)(params.margin.bottom); - } - if (params.margin?.left !== undefined) { - cdpParams.marginLeft = (0, unitConversions_js_1.inchesFromCm)(params.margin.left); - } - if (params.margin?.right !== undefined) { - cdpParams.marginRight = (0, unitConversions_js_1.inchesFromCm)(params.margin.right); - } - if (params.margin?.top !== undefined) { - cdpParams.marginTop = (0, unitConversions_js_1.inchesFromCm)(params.margin.top); - } - if (params.orientation !== undefined) { - cdpParams.landscape = params.orientation === 'landscape'; - } - if (params.page?.height !== undefined) { - cdpParams.paperHeight = (0, unitConversions_js_1.inchesFromCm)(params.page.height); - } - if (params.page?.width !== undefined) { - cdpParams.paperWidth = (0, unitConversions_js_1.inchesFromCm)(params.page.width); - } - if (params.pageRanges !== undefined) { - for (const range of params.pageRanges) { - if (typeof range === 'number') { - continue; - } - const rangeParts = range.split('-'); - if (rangeParts.length < 1 || rangeParts.length > 2) { - throw new protocol_js_1.InvalidArgumentException(`Invalid page range: ${range} is not a valid integer range.`); - } - if (rangeParts.length === 1) { - void parseInteger(rangeParts[0] ?? ''); - continue; - } - let lowerBound; - let upperBound; - const [rangeLowerPart = '', rangeUpperPart = ''] = rangeParts; - if (rangeLowerPart === '') { - lowerBound = 1; - } - else { - lowerBound = parseInteger(rangeLowerPart); - } - if (rangeUpperPart === '') { - upperBound = Number.MAX_SAFE_INTEGER; - } - else { - upperBound = parseInteger(rangeUpperPart); - } - if (lowerBound > upperBound) { - throw new protocol_js_1.InvalidArgumentException(`Invalid page range: ${rangeLowerPart} > ${rangeUpperPart}`); - } - } - cdpParams.pageRanges = params.pageRanges.join(','); - } - if (params.scale !== undefined) { - cdpParams.scale = params.scale; - } - if (params.shrinkToFit !== undefined) { - cdpParams.preferCSSPageSize = !params.shrinkToFit; - } - try { - const result = await this.#cdpTarget.cdpClient.sendCommand('Page.printToPDF', cdpParams); - return { - data: result.data, - }; - } - catch (error) { - // Effectively zero dimensions. - if (error.message === - 'invalid print parameters: content area is empty') { - throw new protocol_js_1.UnsupportedOperationException(error.message); - } - throw error; - } - } - /** - * See - * https://w3c.github.io/webdriver-bidi/#:~:text=If%20command%20parameters%20contains%20%22clip%22%3A - */ - async #parseRect(clip) { - switch (clip.type) { - case 'box': - return { x: clip.x, y: clip.y, width: clip.width, height: clip.height }; - case 'element': { - const hiddenSandboxRealm = await this.getOrCreateHiddenSandbox(); - const result = await hiddenSandboxRealm.callFunction(String((element) => { - return element instanceof Element; - }), false, { type: 'undefined' }, [clip.element]); - if (result.type === 'exception') { - throw new protocol_js_1.NoSuchElementException(`Element '${clip.element.sharedId}' was not found`); - } - (0, assert_js_1.assert)(result.result.type === 'boolean'); - if (!result.result.value) { - throw new protocol_js_1.NoSuchElementException(`Node '${clip.element.sharedId}' is not an Element`); - } - { - const result = await hiddenSandboxRealm.callFunction(String((element) => { - const rect = element.getBoundingClientRect(); - return { - x: rect.x, - y: rect.y, - height: rect.height, - width: rect.width, - }; - }), false, { type: 'undefined' }, [clip.element]); - (0, assert_js_1.assert)(result.type === 'success'); - const rect = deserializeDOMRect(result.result); - if (!rect) { - throw new protocol_js_1.UnableToCaptureScreenException(`Could not get bounding box for Element '${clip.element.sharedId}'`); - } - return rect; - } - } - } - } - async close() { - await this.#cdpTarget.cdpClient.sendCommand('Page.close'); - } - async traverseHistory(delta) { - if (delta === 0) { - return; - } - const history = await this.#cdpTarget.cdpClient.sendCommand('Page.getNavigationHistory'); - const entry = history.entries[history.currentIndex + delta]; - if (!entry) { - throw new protocol_js_1.NoSuchHistoryEntryException(`No history entry at delta ${delta}`); - } - await this.#cdpTarget.cdpClient.sendCommand('Page.navigateToHistoryEntry', { - entryId: entry.id, - }); - } - async toggleModulesIfNeeded() { - await Promise.all([ - this.#cdpTarget.toggleNetworkIfNeeded(), - this.#cdpTarget.toggleDeviceAccessIfNeeded(), - this.#cdpTarget.togglePreloadIfNeeded(), - ]); - } - async locateNodes(params) { - // TODO: create a dedicated sandbox instead of `#defaultRealm`. - return await this.#locateNodesByLocator(await this.#defaultRealmDeferred, params.locator, params.startNodes ?? [], params.maxNodeCount, params.serializationOptions); - } - async #getLocatorDelegate(realm, locator, maxNodeCount, startNodes) { - switch (locator.type) { - case 'context': - throw new Error('Unreachable'); - case 'css': - return { - functionDeclaration: String((cssSelector, maxNodeCount, ...startNodes) => { - const locateNodesUsingCss = (element) => { - if (!(element instanceof HTMLElement || - element instanceof Document || - element instanceof DocumentFragment || - element instanceof SVGElement)) { - throw new Error('startNodes in css selector should be HTMLElement, SVGElement or Document or DocumentFragment'); - } - return [...element.querySelectorAll(cssSelector)]; - }; - startNodes = startNodes.length > 0 ? startNodes : [document]; - const returnedNodes = startNodes - .map((startNode) => - // TODO: stop search early if `maxNodeCount` is reached. - locateNodesUsingCss(startNode)) - .flat(1); - return maxNodeCount === 0 - ? returnedNodes - : returnedNodes.slice(0, maxNodeCount); - }), - argumentsLocalValues: [ - // `cssSelector` - { type: 'string', value: locator.value }, - // `maxNodeCount` with `0` means no limit. - { type: 'number', value: maxNodeCount ?? 0 }, - // `startNodes` - ...startNodes, - ], - }; - case 'xpath': - return { - functionDeclaration: String((xPathSelector, maxNodeCount, ...startNodes) => { - // https://w3c.github.io/webdriver-bidi/#locate-nodes-using-xpath - const evaluator = new XPathEvaluator(); - const expression = evaluator.createExpression(xPathSelector); - const locateNodesUsingXpath = (element) => { - const xPathResult = expression.evaluate(element, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE); - const returnedNodes = []; - for (let i = 0; i < xPathResult.snapshotLength; i++) { - returnedNodes.push(xPathResult.snapshotItem(i)); - } - return returnedNodes; - }; - startNodes = startNodes.length > 0 ? startNodes : [document]; - const returnedNodes = startNodes - .map((startNode) => - // TODO: stop search early if `maxNodeCount` is reached. - locateNodesUsingXpath(startNode)) - .flat(1); - return maxNodeCount === 0 - ? returnedNodes - : returnedNodes.slice(0, maxNodeCount); - }), - argumentsLocalValues: [ - // `xPathSelector` - { type: 'string', value: locator.value }, - // `maxNodeCount` with `0` means no limit. - { type: 'number', value: maxNodeCount ?? 0 }, - // `startNodes` - ...startNodes, - ], - }; - case 'innerText': - // https://w3c.github.io/webdriver-bidi/#locate-nodes-using-inner-text - if (locator.value === '') { - throw new protocol_js_1.InvalidSelectorException('innerText locator cannot be empty'); - } - return { - functionDeclaration: String((innerTextSelector, fullMatch, ignoreCase, maxNodeCount, maxDepth, ...startNodes) => { - const searchText = ignoreCase - ? innerTextSelector.toUpperCase() - : innerTextSelector; - const locateNodesUsingInnerText = (node, currentMaxDepth) => { - const returnedNodes = []; - if (node instanceof DocumentFragment || - node instanceof Document) { - const children = [...node.children]; - children.forEach((child) => - // `currentMaxDepth` is not decremented intentionally according to - // https://github.com/w3c/webdriver-bidi/pull/713. - returnedNodes.push(...locateNodesUsingInnerText(child, currentMaxDepth))); - return returnedNodes; - } - if (!(node instanceof HTMLElement)) { - return []; - } - const element = node; - const nodeInnerText = ignoreCase - ? element.innerText?.toUpperCase() - : element.innerText; - if (!nodeInnerText.includes(searchText)) { - return []; - } - const childNodes = []; - for (const child of element.children) { - if (child instanceof HTMLElement) { - childNodes.push(child); - } - } - if (childNodes.length === 0) { - if (fullMatch && nodeInnerText === searchText) { - returnedNodes.push(element); - } - else { - if (!fullMatch) { - // Note: `nodeInnerText.includes(searchText)` is already checked - returnedNodes.push(element); - } - } - } - else { - const childNodeMatches = - // Don't search deeper if `maxDepth` is reached. - currentMaxDepth <= 0 - ? [] - : childNodes - .map((child) => locateNodesUsingInnerText(child, currentMaxDepth - 1)) - .flat(1); - if (childNodeMatches.length === 0) { - // Note: `nodeInnerText.includes(searchText)` is already checked - if (!fullMatch || nodeInnerText === searchText) { - returnedNodes.push(element); - } - } - else { - returnedNodes.push(...childNodeMatches); - } - } - // TODO: stop search early if `maxNodeCount` is reached. - return returnedNodes; - }; - // TODO: stop search early if `maxNodeCount` is reached. - startNodes = startNodes.length > 0 ? startNodes : [document]; - const returnedNodes = startNodes - .map((startNode) => - // TODO: stop search early if `maxNodeCount` is reached. - locateNodesUsingInnerText(startNode, maxDepth)) - .flat(1); - return maxNodeCount === 0 - ? returnedNodes - : returnedNodes.slice(0, maxNodeCount); - }), - argumentsLocalValues: [ - // `innerTextSelector` - { type: 'string', value: locator.value }, - // `fullMatch` with default `true`. - { type: 'boolean', value: locator.matchType !== 'partial' }, - // `ignoreCase` with default `false`. - { type: 'boolean', value: locator.ignoreCase === true }, - // `maxNodeCount` with `0` means no limit. - { type: 'number', value: maxNodeCount ?? 0 }, - // `maxDepth` with default `1000` (same as default full serialization depth). - { type: 'number', value: locator.maxDepth ?? 1000 }, - // `startNodes` - ...startNodes, - ], - }; - case 'accessibility': { - // https://w3c.github.io/webdriver-bidi/#locate-nodes-using-accessibility-attributes - if (!locator.value.name && !locator.value.role) { - throw new protocol_js_1.InvalidSelectorException('Either name or role has to be specified'); - } - // The next two commands cause a11y caches for the target to be - // preserved. We probably do not need to disable them if the - // client is using a11y features, but we could by calling - // Accessibility.disable. - await Promise.all([ - this.#cdpTarget.cdpClient.sendCommand('Accessibility.enable'), - this.#cdpTarget.cdpClient.sendCommand('Accessibility.getRootAXNode'), - ]); - const bindings = await realm.evaluate( - /* expression=*/ '({getAccessibleName, getAccessibleRole})', - /* awaitPromise=*/ false, "root" /* Script.ResultOwnership.Root */, - /* serializationOptions= */ undefined, - /* userActivation=*/ false, - /* includeCommandLineApi=*/ true); - if (bindings.type !== 'success') { - throw new Error('Could not get bindings'); - } - if (bindings.result.type !== 'object') { - throw new Error('Could not get bindings'); - } - return { - functionDeclaration: String((name, role, bindings, maxNodeCount, ...startNodes) => { - const returnedNodes = []; - let aborted = false; - function collect(contextNodes, selector) { - if (aborted) { - return; - } - for (const contextNode of contextNodes) { - let match = true; - if (selector.role) { - const role = bindings.getAccessibleRole(contextNode); - if (selector.role !== role) { - match = false; - } - } - if (selector.name) { - const name = bindings.getAccessibleName(contextNode); - if (selector.name !== name) { - match = false; - } - } - if (match) { - if (maxNodeCount !== 0 && - returnedNodes.length === maxNodeCount) { - aborted = true; - break; - } - returnedNodes.push(contextNode); - } - const childNodes = []; - for (const child of contextNode.children) { - if (child instanceof HTMLElement) { - childNodes.push(child); - } - } - collect(childNodes, selector); - } - } - startNodes = - startNodes.length > 0 - ? startNodes - : Array.from(document.documentElement.children).filter((c) => c instanceof HTMLElement); - collect(startNodes, { - role, - name, - }); - return returnedNodes; - }), - argumentsLocalValues: [ - // `name` - { type: 'string', value: locator.value.name || '' }, - // `role` - { type: 'string', value: locator.value.role || '' }, - // `bindings`. - { handle: bindings.result.handle }, - // `maxNodeCount` with `0` means no limit. - { type: 'number', value: maxNodeCount ?? 0 }, - // `startNodes` - ...startNodes, - ], - }; - } - } - } - async #locateNodesByLocator(realm, locator, startNodes, maxNodeCount, serializationOptions) { - if (locator.type === 'context') { - if (startNodes.length !== 0) { - throw new protocol_js_1.InvalidArgumentException('Start nodes are not supported'); - } - const contextId = locator.value.context; - if (!contextId) { - throw new protocol_js_1.InvalidSelectorException('Invalid context'); - } - const context = this.#browsingContextStorage.getContext(contextId); - const parent = context.parent; - if (!parent) { - throw new protocol_js_1.InvalidArgumentException('This context has no container'); - } - try { - const { backendNodeId } = await parent.#cdpTarget.cdpClient.sendCommand('DOM.getFrameOwner', { - frameId: contextId, - }); - const { object } = await parent.#cdpTarget.cdpClient.sendCommand('DOM.resolveNode', { - backendNodeId, - }); - const locatorResult = await realm.callFunction(`function () { return this; }`, false, { handle: object.objectId }, [], "none" /* Script.ResultOwnership.None */, serializationOptions); - if (locatorResult.type === 'exception') { - throw new Error('Unknown exception'); - } - return { nodes: [locatorResult.result] }; - } - catch { - throw new protocol_js_1.InvalidArgumentException('Context does not exist'); - } - } - const locatorDelegate = await this.#getLocatorDelegate(realm, locator, maxNodeCount, startNodes); - serializationOptions = { - ...serializationOptions, - // The returned object is an array of nodes, so no need in deeper JS serialization. - maxObjectDepth: 1, - }; - const locatorResult = await realm.callFunction(locatorDelegate.functionDeclaration, false, { type: 'undefined' }, locatorDelegate.argumentsLocalValues, "none" /* Script.ResultOwnership.None */, serializationOptions); - if (locatorResult.type !== 'success') { - this.#logger?.(_a.LOGGER_PREFIX, 'Failed locateNodesByLocator', locatorResult); - // Heuristic to detect invalid selector for different types of selectors. - if ( - // CSS selector. - locatorResult.exceptionDetails.text?.endsWith('is not a valid selector.') || - // XPath selector. - locatorResult.exceptionDetails.text?.endsWith('is not a valid XPath expression.')) { - throw new protocol_js_1.InvalidSelectorException(`Not valid selector ${typeof locator.value === 'string' ? locator.value : JSON.stringify(locator.value)}`); - } - // Heuristic to detect if the `startNode` is not an `HTMLElement` in css selector. - if (locatorResult.exceptionDetails.text === - 'Error: startNodes in css selector should be HTMLElement, SVGElement or Document or DocumentFragment') { - throw new protocol_js_1.InvalidArgumentException('startNodes in css selector should be HTMLElement, SVGElement or Document or DocumentFragment'); - } - throw new protocol_js_1.UnknownErrorException(`Unexpected error in selector script: ${locatorResult.exceptionDetails.text}`); - } - if (locatorResult.result.type !== 'array') { - throw new protocol_js_1.UnknownErrorException(`Unexpected selector script result type: ${locatorResult.result.type}`); - } - // Check there are no non-node elements in the result. - const nodes = locatorResult.result.value.map((value) => { - if (value.type !== 'node') { - throw new protocol_js_1.UnknownErrorException(`Unexpected selector script result element: ${value.type}`); - } - return value; - }); - return { nodes }; - } - #getAllRelatedCdpTargets() { - const targets = new Set(); - targets.add(this.cdpTarget); - this.allChildren.forEach((c) => targets.add(c.cdpTarget)); - return Array.from(targets); - } - async setTimezoneOverride(timezone) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setTimezoneOverride(timezone))); - } - async setLocaleOverride(locale) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setLocaleOverride(locale))); - } - async setGeolocationOverride(geolocation) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setGeolocationOverride(geolocation))); - } - async setScriptingEnabled(scriptingEnabled) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setScriptingEnabled(scriptingEnabled))); - } - async setUserAgentAndAcceptLanguage(userAgent, acceptLanguage, clientHints) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setUserAgentAndAcceptLanguage(userAgent, acceptLanguage, clientHints))); - } - async setEmulatedNetworkConditions(networkConditions) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setEmulatedNetworkConditions(networkConditions))); - } - async setTouchOverride(maxTouchPoints) { - await Promise.allSettled(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setTouchOverride(maxTouchPoints))); - } - async setExtraHeaders(cdpExtraHeaders) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setExtraHeaders(cdpExtraHeaders))); - } -} -exports.BrowsingContextImpl = BrowsingContextImpl; -_a = BrowsingContextImpl; -function serializeOrigin(origin) { - // https://html.spec.whatwg.org/multipage/origin.html#ascii-serialisation-of-an-origin - if (['://', ''].includes(origin)) { - origin = 'null'; - } - return origin; -} -function getImageFormatParameters(params) { - const { quality, type } = params.format ?? { - type: 'image/png', - }; - switch (type) { - case 'image/png': { - return { format: 'png' }; - } - case 'image/jpeg': { - return { - format: 'jpeg', - ...(quality === undefined ? {} : { quality: Math.round(quality * 100) }), - }; - } - case 'image/webp': { - return { - format: 'webp', - ...(quality === undefined ? {} : { quality: Math.round(quality * 100) }), - }; - } - } - throw new protocol_js_1.InvalidArgumentException(`Image format '${type}' is not a supported format`); -} -function deserializeDOMRect(result) { - if (result.type !== 'object' || result.value === undefined) { - return; - } - const x = result.value.find(([key]) => { - return key === 'x'; - })?.[1]; - const y = result.value.find(([key]) => { - return key === 'y'; - })?.[1]; - const height = result.value.find(([key]) => { - return key === 'height'; - })?.[1]; - const width = result.value.find(([key]) => { - return key === 'width'; - })?.[1]; - if (x?.type !== 'number' || - y?.type !== 'number' || - height?.type !== 'number' || - width?.type !== 'number') { - return; - } - return { - x: x.value, - y: y.value, - width: width.value, - height: height.value, - }; -} -/** @see https://w3c.github.io/webdriver-bidi/#normalize-rect */ -function normalizeRect(box) { - return { - ...(box.width < 0 - ? { - x: box.x + box.width, - width: -box.width, - } - : { - x: box.x, - width: box.width, - }), - ...(box.height < 0 - ? { - y: box.y + box.height, - height: -box.height, - } - : { - y: box.y, - height: box.height, - }), - }; -} -/** @see https://w3c.github.io/webdriver-bidi/#rectangle-intersection */ -function getIntersectionRect(first, second) { - first = normalizeRect(first); - second = normalizeRect(second); - const x = Math.max(first.x, second.x); - const y = Math.max(first.y, second.y); - return { - x, - y, - width: Math.max(Math.min(first.x + first.width, second.x + second.width) - x, 0), - height: Math.max(Math.min(first.y + first.height, second.y + second.height) - y, 0), - }; -} -function parseInteger(value) { - value = value.trim(); - if (!/^[0-9]+$/.test(value)) { - throw new protocol_js_1.InvalidArgumentException(`Invalid integer: ${value}`); - } - return parseInt(value); -} -//# sourceMappingURL=BrowsingContextImpl.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js.map deleted file mode 100644 index f0d83f0..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BrowsingContextImpl.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/context/BrowsingContextImpl.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;AAw8DH,0CAMC;AA18DD,+DAeuC;AACvC,wDAAgD;AAChD,4DAAoD;AACpD,kDAA6D;AAC7D,oDAAoD;AACpD,0EAA+D;AAC/D,oDAA8C;AAK9C,uDAAkD;AAClD,6DAAqD;AAIrD,iEAKgC;AAEhC,MAAa,mBAAmB;IAC9B,MAAM,CAAU,aAAa,GAAG,GAAG,gBAAO,CAAC,KAAK,kBAA2B,CAAC;IAE5E,yCAAyC;IAChC,SAAS,GAAG,IAAI,GAAG,EAAmC,CAAC;IAChE,uCAAuC;IAC9B,GAAG,CAAkC;IACrC,WAAW,CAAS;IAC7B,mCAAmC;IAC1B,cAAc,GAAG,IAAA,gBAAM,GAAE,CAAC;IAC1B,mBAAmB,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEzD;;;OAGG;IACH,SAAS,CAA6B;IACtC,SAAS,GAA2C,IAAI,CAAC;IACzD,eAAe,CAAU;IAEzB,UAAU,GAAG;QACX,gBAAgB,EAAE,IAAI,sBAAQ,EAAQ;QACtC,IAAI,EAAE,IAAI,sBAAQ,EAAQ;KAC3B,CAAC;IAEF,UAAU,CAAY;IACtB,qBAAqB,GAAG,IAAI,sBAAQ,EAAS,CAAC;IACrC,uBAAuB,CAAyB;IAChD,aAAa,CAAe;IAC5B,OAAO,CAAY;IACnB,kBAAkB,CAAoB;IACtC,aAAa,CAAe;IAC5B,cAAc,CAAuB;IAE9C,qFAAqF;IACrF,mBAAmB,CAAkC;IAErD,YACE,EAAmC,EACnC,QAAgD,EAChD,WAAmB,EACnB,SAAoB,EACpB,YAA0B,EAC1B,sBAA8C,EAC9C,YAA0B,EAC1B,aAAmC,EACnC,GAAW,EACX,cAAuB,EACvB,MAAiB;QAE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C9D,CAAC,CACF;KACF,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,KAAa;IACjC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IACrB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,sCAAwB,CAAC,oBAAoB,KAAK,EAAE,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.d.ts deleted file mode 100644 index 0f83dcd..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { BrowsingContext, type EmptyResult } from '../../../protocol/protocol.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { UserContextStorage } from '../browser/UserContextStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { BrowsingContextStorage } from './BrowsingContextStorage.js'; -export declare class BrowsingContextProcessor { - #private; - constructor(browserCdpClient: CdpClient, browsingContextStorage: BrowsingContextStorage, userContextStorage: UserContextStorage, contextConfigStorage: ContextConfigStorage, eventManager: EventManager); - getTree(params: BrowsingContext.GetTreeParameters): BrowsingContext.GetTreeResult; - create(params: BrowsingContext.CreateParameters): Promise; - navigate(params: BrowsingContext.NavigateParameters): Promise; - reload(params: BrowsingContext.ReloadParameters): Promise; - activate(params: BrowsingContext.ActivateParameters): Promise; - captureScreenshot(params: BrowsingContext.CaptureScreenshotParameters): Promise; - print(params: BrowsingContext.PrintParameters): Promise; - setViewport(params: BrowsingContext.SetViewportParameters): Promise; - traverseHistory(params: BrowsingContext.TraverseHistoryParameters): Promise; - handleUserPrompt(params: BrowsingContext.HandleUserPromptParameters): Promise; - close(params: BrowsingContext.CloseParameters): Promise; - locateNodes(params: BrowsingContext.LocateNodesParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js deleted file mode 100644 index 75df1bc..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js +++ /dev/null @@ -1,267 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BrowsingContextProcessor = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -class BrowsingContextProcessor { - #browserCdpClient; - #browsingContextStorage; - #contextConfigStorage; - #eventManager; - #userContextStorage; - constructor(browserCdpClient, browsingContextStorage, userContextStorage, contextConfigStorage, eventManager) { - this.#contextConfigStorage = contextConfigStorage; - this.#userContextStorage = userContextStorage; - this.#browserCdpClient = browserCdpClient; - this.#browsingContextStorage = browsingContextStorage; - this.#eventManager = eventManager; - this.#eventManager.addSubscribeHook(protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextCreated, this.#onContextCreatedSubscribeHook.bind(this)); - } - getTree(params) { - const resultContexts = params.root === undefined - ? this.#browsingContextStorage.getTopLevelContexts() - : [this.#browsingContextStorage.getContext(params.root)]; - return { - contexts: resultContexts.map((c) => c.serializeToBidiValue(params.maxDepth ?? Number.MAX_VALUE)), - }; - } - async create(params) { - let referenceContext; - let userContext = 'default'; - if (params.referenceContext !== undefined) { - referenceContext = this.#browsingContextStorage.getContext(params.referenceContext); - if (!referenceContext.isTopLevelContext()) { - throw new protocol_js_1.InvalidArgumentException(`referenceContext should be a top-level context`); - } - userContext = referenceContext.userContext; - } - if (params.userContext !== undefined) { - userContext = params.userContext; - } - const existingContexts = this.#browsingContextStorage - .getAllContexts() - .filter((context) => context.userContext === userContext); - let newWindow = false; - switch (params.type) { - case "tab" /* BrowsingContext.CreateType.Tab */: - newWindow = false; - break; - case "window" /* BrowsingContext.CreateType.Window */: - newWindow = true; - break; - } - if (!existingContexts.length) { - // If there are no contexts in the given user context, we need to set - // newWindow to true as newWindow=false will be rejected. - newWindow = true; - } - let result; - try { - result = await this.#browserCdpClient.sendCommand('Target.createTarget', { - url: 'about:blank', - newWindow, - browserContextId: userContext === 'default' ? undefined : userContext, - background: params.background === true, - }); - } - catch (err) { - if ( - // See https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/devtools/protocol/target_handler.cc;l=90;drc=e80392ac11e48a691f4309964cab83a3a59e01c8 - err.message.startsWith('Failed to find browser context with id') || - // See https://source.chromium.org/chromium/chromium/src/+/main:headless/lib/browser/protocol/target_handler.cc;l=49;drc=e80392ac11e48a691f4309964cab83a3a59e01c8 - err.message === 'browserContextId') { - throw new protocol_js_1.NoSuchUserContextException(`The context ${userContext} was not found`); - } - throw err; - } - // Wait for the new target to be attached and to be added to the browsing context - // storage. - const context = await this.#browsingContextStorage.waitForContext(result.targetId); - // Wait for the new tab to be loaded to avoid race conditions in the - // `browsingContext` events, when the `browsingContext.domContentLoaded` and - // `browsingContext.load` events from the initial `about:blank` navigation - // are emitted after the next navigation is started. - // Details: https://github.com/web-platform-tests/wpt/issues/35846 - await context.lifecycleLoaded(); - return { context: context.id }; - } - navigate(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return context.navigate(params.url, params.wait ?? "none" /* BrowsingContext.ReadinessState.None */); - } - reload(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return context.reload(params.ignoreCache ?? false, params.wait ?? "none" /* BrowsingContext.ReadinessState.None */); - } - async activate(params) { - const context = this.#browsingContextStorage.getContext(params.context); - if (!context.isTopLevelContext()) { - throw new protocol_js_1.InvalidArgumentException('Activation is only supported on the top-level context'); - } - await context.activate(); - return {}; - } - async captureScreenshot(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return await context.captureScreenshot(params); - } - async print(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return await context.print(params); - } - async setViewport(params) { - // Check the The viewport size limits is not checked by protocol parser, so we need to validate - // it manually: - // https://crsrc.org/c/content/browser/devtools/protocol/emulation_handler.cc;drc=f49e23d8e2bd190b42ec62284b8be10dcccd0446;l=660 - const maxDimensionSize = 10_000_000; - if ((params.viewport?.height ?? 0) > maxDimensionSize || - (params.viewport?.width ?? 0) > maxDimensionSize) { - throw new protocol_js_1.UnsupportedOperationException(`Viewport dimension over ${maxDimensionSize} are not supported`); - } - const config = {}; - // `undefined` means no changes should be done to the config. - if (params.devicePixelRatio !== undefined) { - config.devicePixelRatio = params.devicePixelRatio; - } - if (params.viewport !== undefined) { - config.viewport = params.viewport; - } - const impactedTopLevelContexts = await this.#getRelatedTopLevelBrowsingContexts(params.context, params.userContexts); - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, config); - } - if (params.context !== undefined) { - this.#contextConfigStorage.updateBrowsingContextConfig(params.context, config); - } - await Promise.all(impactedTopLevelContexts.map(async (context) => { - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setViewport(config.viewport ?? null, config.devicePixelRatio ?? null, config.screenOrientation ?? null); - })); - return {}; - } - /** - * Returns a list of top-level browsing context ids. - */ - async #getRelatedTopLevelBrowsingContexts(browsingContextId, userContextIds) { - if (browsingContextId === undefined && userContextIds === undefined) { - throw new protocol_js_1.InvalidArgumentException('Either userContexts or context must be provided'); - } - if (browsingContextId !== undefined && userContextIds !== undefined) { - throw new protocol_js_1.InvalidArgumentException('userContexts and context are mutually exclusive'); - } - if (browsingContextId !== undefined) { - const context = this.#browsingContextStorage.getContext(browsingContextId); - if (!context.isTopLevelContext()) { - throw new protocol_js_1.InvalidArgumentException('Emulating viewport is only supported on the top-level context'); - } - return [context]; - } - // Verify that all user contexts exist. - await this.#userContextStorage.verifyUserContextIdList(userContextIds); - const result = []; - for (const userContextId of userContextIds) { - const topLevelBrowsingContexts = this.#browsingContextStorage - .getTopLevelContexts() - .filter((browsingContext) => browsingContext.userContext === userContextId); - result.push(...topLevelBrowsingContexts); - } - // Remove duplicates. Compare `BrowsingContextImpl` by reference is correct here, as - // `browsingContextStorage` returns the same instance for the same id. - return [...new Set(result).values()]; - } - async traverseHistory(params) { - const context = this.#browsingContextStorage.getContext(params.context); - if (!context) { - throw new protocol_js_1.InvalidArgumentException(`No browsing context with id ${params.context}`); - } - if (!context.isTopLevelContext()) { - throw new protocol_js_1.InvalidArgumentException('Traversing history is only supported on the top-level context'); - } - await context.traverseHistory(params.delta); - return {}; - } - async handleUserPrompt(params) { - const context = this.#browsingContextStorage.getContext(params.context); - try { - await context.handleUserPrompt(params.accept, params.userText); - } - catch (error) { - // Heuristically determine the error - // https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/page_handler.cc;l=1085?q=%22No%20dialog%20is%20showing%22&ss=chromium - if (error.message?.includes('No dialog is showing')) { - throw new protocol_js_1.NoSuchAlertException('No dialog is showing'); - } - throw error; - } - return {}; - } - async close(params) { - const context = this.#browsingContextStorage.getContext(params.context); - if (!context.isTopLevelContext()) { - throw new protocol_js_1.InvalidArgumentException(`Non top-level browsing context ${context.id} cannot be closed.`); - } - // Parent session of a page target session can be a `browser` or a `tab` session. - const parentCdpClient = context.cdpTarget.parentCdpClient; - try { - const detachedFromTargetPromise = new Promise((resolve) => { - const onContextDestroyed = (event) => { - if (event.targetId === params.context) { - parentCdpClient.off('Target.detachedFromTarget', onContextDestroyed); - resolve(); - } - }; - parentCdpClient.on('Target.detachedFromTarget', onContextDestroyed); - }); - try { - if (params.promptUnload) { - await context.close(); - } - else { - await parentCdpClient.sendCommand('Target.closeTarget', { - targetId: params.context, - }); - } - } - catch (error) { - // Swallow error that arise from the session being destroyed. Rely on the - // `detachedFromTargetPromise` event to be resolved. - if (!parentCdpClient.isCloseError(error)) { - throw error; - } - } - // Sometimes CDP command finishes before `detachedFromTarget` event, - // sometimes after. Wait for the CDP command to be finished, and then wait - // for `detachedFromTarget` if it hasn't emitted. - await detachedFromTargetPromise; - } - catch (error) { - // Swallow error that arise from the page being destroyed - // Example is navigating to faulty SSL certificate - if (!(error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ && - error.message === 'Not attached to an active page')) { - throw error; - } - } - return {}; - } - async locateNodes(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return await context.locateNodes(params); - } - #onContextCreatedSubscribeHook(contextId) { - const context = this.#browsingContextStorage.getContext(contextId); - const contextsToReport = [ - context, - ...this.#browsingContextStorage.getContext(contextId).allChildren, - ]; - contextsToReport.forEach((context) => { - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextCreated, - params: context.serializeToBidiValue(), - }, context.id); - }); - return Promise.resolve(); - } -} -exports.BrowsingContextProcessor = BrowsingContextProcessor; -//# sourceMappingURL=BrowsingContextProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js.map deleted file mode 100644 index a20d392..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BrowsingContextProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/context/BrowsingContextProcessor.ts"],"names":[],"mappings":";;;AAmBA,+DAQuC;AAUvC,MAAa,wBAAwB;IAC1B,iBAAiB,CAAY;IAC7B,uBAAuB,CAAyB;IAChD,qBAAqB,CAAuB;IAC5C,aAAa,CAAe;IAC5B,mBAAmB,CAAqB;IAEjD,YACE,gBAA2B,EAC3B,sBAA8C,EAC9C,kBAAsC,EACtC,oBAA0C,EAC1C,YAA0B;QAE1B,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;QAClD,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QA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B,CAAC;CACF;AA7YD,4DA6YC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.d.ts deleted file mode 100644 index 261475b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type BrowsingContext } from '../../../protocol/protocol.js'; -import type { BrowsingContextImpl } from './BrowsingContextImpl.js'; -/** Container class for browsing contexts. */ -export declare class BrowsingContextStorage { - #private; - /** Gets all top-level contexts, i.e. those with no parent. */ - getTopLevelContexts(): BrowsingContextImpl[]; - /** Gets all contexts. */ - getAllContexts(): BrowsingContextImpl[]; - /** Deletes the context with the given ID. */ - deleteContextById(id: BrowsingContext.BrowsingContext): void; - /** Deletes the given context. */ - deleteContext(context: BrowsingContextImpl): void; - /** Tracks the given context. */ - addContext(context: BrowsingContextImpl): void; - /** - * Waits for a context with the given ID to be added and returns it. - */ - waitForContext(browsingContextId: BrowsingContext.BrowsingContext): Promise; - /** Returns true whether there is an existing context with the given ID. */ - hasContext(id: BrowsingContext.BrowsingContext): boolean; - /** Gets the context with the given ID, if any. */ - findContext(id: BrowsingContext.BrowsingContext): BrowsingContextImpl | undefined; - /** Returns the top-level context ID of the given context, if any. */ - findTopLevelContextId(id: BrowsingContext.BrowsingContext | null): BrowsingContext.BrowsingContext | null; - findContextBySession(sessionId: string): BrowsingContextImpl | undefined; - /** Gets the context with the given ID, if any, otherwise throws. */ - getContext(id: BrowsingContext.BrowsingContext): BrowsingContextImpl; - verifyTopLevelContextsList(contexts: BrowsingContext.BrowsingContext[] | undefined): Set; - verifyContextsList(contexts: BrowsingContext.BrowsingContext[]): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js deleted file mode 100644 index 0f248ab..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js +++ /dev/null @@ -1,134 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BrowsingContextStorage = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const EventEmitter_js_1 = require("../../../utils/EventEmitter.js"); -/** Container class for browsing contexts. */ -class BrowsingContextStorage { - /** Map from context ID to context implementation. */ - #contexts = new Map(); - /** Event emitter for browsing context storage eventsis not expected to be exposed to - * the outside world. */ - #eventEmitter = new EventEmitter_js_1.EventEmitter(); - /** Gets all top-level contexts, i.e. those with no parent. */ - getTopLevelContexts() { - return this.getAllContexts().filter((context) => context.isTopLevelContext()); - } - /** Gets all contexts. */ - getAllContexts() { - return Array.from(this.#contexts.values()); - } - /** Deletes the context with the given ID. */ - deleteContextById(id) { - this.#contexts.delete(id); - } - /** Deletes the given context. */ - deleteContext(context) { - this.#contexts.delete(context.id); - } - /** Tracks the given context. */ - addContext(context) { - this.#contexts.set(context.id, context); - this.#eventEmitter.emit("added" /* BrowsingContextStorageEvents.Added */, { - browsingContext: context, - }); - } - /** - * Waits for a context with the given ID to be added and returns it. - */ - waitForContext(browsingContextId) { - if (this.#contexts.has(browsingContextId)) { - return Promise.resolve(this.getContext(browsingContextId)); - } - return new Promise((resolve) => { - const listener = (event) => { - if (event.browsingContext.id === browsingContextId) { - this.#eventEmitter.off("added" /* BrowsingContextStorageEvents.Added */, listener); - resolve(event.browsingContext); - } - }; - this.#eventEmitter.on("added" /* BrowsingContextStorageEvents.Added */, listener); - }); - } - /** Returns true whether there is an existing context with the given ID. */ - hasContext(id) { - return this.#contexts.has(id); - } - /** Gets the context with the given ID, if any. */ - findContext(id) { - return this.#contexts.get(id); - } - /** Returns the top-level context ID of the given context, if any. */ - findTopLevelContextId(id) { - if (id === null) { - return null; - } - const maybeContext = this.findContext(id); - if (!maybeContext) { - return null; - } - const parentId = maybeContext.parentId ?? null; - if (parentId === null) { - return id; - } - return this.findTopLevelContextId(parentId); - } - findContextBySession(sessionId) { - for (const context of this.#contexts.values()) { - if (context.cdpTarget.cdpSessionId === sessionId) { - return context; - } - } - return; - } - /** Gets the context with the given ID, if any, otherwise throws. */ - getContext(id) { - const result = this.findContext(id); - if (result === undefined) { - throw new protocol_js_1.NoSuchFrameException(`Context ${id} not found`); - } - return result; - } - verifyTopLevelContextsList(contexts) { - const foundContexts = new Set(); - if (!contexts) { - return foundContexts; - } - for (const contextId of contexts) { - const context = this.getContext(contextId); - if (context.isTopLevelContext()) { - foundContexts.add(context); - } - else { - throw new protocol_js_1.InvalidArgumentException(`Non top-level context '${contextId}' given.`); - } - } - return foundContexts; - } - verifyContextsList(contexts) { - if (!contexts.length) { - return; - } - for (const contextId of contexts) { - this.getContext(contextId); - } - } -} -exports.BrowsingContextStorage = BrowsingContextStorage; -//# sourceMappingURL=BrowsingContextStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js.map deleted file mode 100644 index 2ca5b2b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BrowsingContextStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/context/BrowsingContextStorage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAIuC;AACvC,oEAA4D;AAY5D,6CAA6C;AAC7C,MAAa,sBAAsB;IACjC,qDAAqD;IAC5C,SAAS,GAAG,IAAI,GAAG,EAGzB,CAAC;IACJ;4BACwB;IACf,aAAa,GAAG,IAAI,8BAAY,EAA+B,CAAC;IAEzE,8DAA8D;IAC9D,mBAAmB;QACjB,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAC9C,OAAO,CAAC,iBAAiB,EAAE,CAC5B,CAAC;IACJ,CAAC;IAED,yBAAyB;IACzB,cAAc;QACZ,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,6CAA6C;IAC7C,iBAAiB,CAAC,EAAmC;QACnD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;IAED,iCAAiC;IACjC,aAAa,CAAC,OAA4B;QACxC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;IAED,gCAAgC;IAChC,UAAU,CAAC,OAA4B;QACrC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,aAAa,CAAC,IAAI,mDAAqC;YAC1D,eAAe,EAAE,OAAO;SACzB,CAAC,CA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AED,KAAK,MAAM,SAAS,IAAI,QAAQ,EAAE,CAAC;YACjC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;CACF;AA3ID,wDA2IC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/NavigationTracker.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/NavigationTracker.d.ts deleted file mode 100644 index c029d12..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/NavigationTracker.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -import type { Protocol } from 'devtools-protocol'; -import { type BrowsingContext } from '../../../protocol/protocol.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { EventManager } from '../session/EventManager.js'; -export declare const enum NavigationEventName { - FragmentNavigated = "browsingContext.fragmentNavigated", - NavigationAborted = "browsingContext.navigationAborted", - NavigationFailed = "browsingContext.navigationFailed", - Load = "browsingContext.load" -} -export declare class NavigationResult { - readonly eventName: NavigationEventName; - readonly message?: string; - constructor(eventName: NavigationEventName, message?: string); -} -export declare class NavigationState { - #private; - readonly navigationId: `${string}-${string}-${string}-${string}-${string}`; - url: string; - loaderId?: string; - committed: Deferred; - isFragmentNavigation?: boolean; - get finished(): Promise; - constructor(url: string, browsingContextId: string, isInitial: boolean, eventManager: EventManager); - navigationInfo(): BrowsingContext.NavigationInfo; - start(): void; - frameNavigated(): void; - fragmentNavigated(): void; - load(): void; - fail(message: string): void; -} -/** - * Keeps track of navigations. Details: http://go/webdriver:bidi-navigation - */ -export declare class NavigationTracker { - #private; - constructor(url: string, browsingContextId: string, eventManager: EventManager, logger?: LoggerFn); - /** - * Returns current started ongoing navigation. It can be either a started pending - * navigation, or one is already navigated. - */ - get currentNavigationId(): `${string}-${string}-${string}-${string}-${string}`; - /** - * Flags if the current navigation relates to the initial to `about:blank` navigation. - */ - get isInitialNavigation(): boolean; - /** - * Url of the last navigated navigation. - */ - get url(): string; - /** - * Creates a pending navigation e.g. when navigation command is called. Required to - * provide navigation id before the actual navigation is started. It will be used when - * navigation started. Can be aborted, failed, fragment navigated, or became a current - * navigation. - */ - createPendingNavigation(url: string, canBeInitialNavigation?: boolean): NavigationState; - dispose(): void; - onTargetInfoChanged(url: string): void; - /** - * @param {string} unreachableUrl indicated the navigation is actually failed. - */ - frameNavigated(url: string, loaderId: string, unreachableUrl?: string): void; - navigatedWithinDocument(url: string, navigationType: Protocol.Page.NavigatedWithinDocumentEvent['navigationType']): void; - /** - * Required to mark navigation as fully complete. - * TODO: navigation should be complete when it became the current one on - * `Page.frameNavigated` or on navigating command finished with a new loader Id. - */ - loadPageEvent(loaderId: string): void; - /** - * Fail navigation due to navigation command failed. - */ - failNavigation(navigation: NavigationState, errorText: string): void; - /** - * Updates the navigation's `loaderId` and sets it as current one, if it is a - * cross-document navigation. - */ - navigationCommandFinished(navigation: NavigationState, loaderId?: string): void; - frameStartedNavigating(url: string, loaderId: string, navigationType: string): void; - /** - * If there is a navigation with the loaderId equals to the network request id, it means - * that the navigation failed. - */ - networkLoadingFailed(loaderId: string, errorText: string): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/NavigationTracker.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/NavigationTracker.js deleted file mode 100644 index a168951..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/NavigationTracker.js +++ /dev/null @@ -1,331 +0,0 @@ -"use strict"; -/* - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NavigationTracker = exports.NavigationState = exports.NavigationResult = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const Deferred_js_1 = require("../../../utils/Deferred.js"); -const log_js_1 = require("../../../utils/log.js"); -const time_js_1 = require("../../../utils/time.js"); -const urlHelpers_js_1 = require("../../../utils/urlHelpers.js"); -const uuid_js_1 = require("../../../utils/uuid.js"); -class NavigationResult { - eventName; - message; - constructor(eventName, message) { - this.eventName = eventName; - this.message = message; - } -} -exports.NavigationResult = NavigationResult; -class NavigationState { - navigationId = (0, uuid_js_1.uuidv4)(); - #browsingContextId; - #started = false; - #finished = new Deferred_js_1.Deferred(); - url; - loaderId; - #isInitial; - #eventManager; - committed = new Deferred_js_1.Deferred(); - isFragmentNavigation; - get finished() { - return this.#finished; - } - constructor(url, browsingContextId, isInitial, eventManager) { - this.#browsingContextId = browsingContextId; - this.url = url; - this.#isInitial = isInitial; - this.#eventManager = eventManager; - } - navigationInfo() { - return { - context: this.#browsingContextId, - navigation: this.navigationId, - timestamp: (0, time_js_1.getTimestamp)(), - url: this.url, - }; - } - start() { - if ( - // Initial navigation should not be reported. - !this.#isInitial && - // No need in reporting started navigation twice. - !this.#started && - // No need for reporting fragment navigations. Step 13 vs step 16 of the spec: - // https://html.spec.whatwg.org/#beginning-navigation:webdriver-bidi-navigation-started - !this.isFragmentNavigation) { - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted, - params: this.navigationInfo(), - }, this.#browsingContextId); - } - this.#started = true; - } - #finish(navigationResult) { - this.#started = true; - if (!this.#isInitial && - !this.#finished.isFinished && - navigationResult.eventName !== "browsingContext.load" /* NavigationEventName.Load */) { - this.#eventManager.registerEvent({ - type: 'event', - method: navigationResult.eventName, - params: this.navigationInfo(), - }, this.#browsingContextId); - } - this.#finished.resolve(navigationResult); - } - frameNavigated() { - this.committed.resolve(); - if (!this.#isInitial) { - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.NavigationCommitted, - params: this.navigationInfo(), - }, this.#browsingContextId); - } - } - fragmentNavigated() { - this.committed.resolve(); - this.#finish(new NavigationResult("browsingContext.fragmentNavigated" /* NavigationEventName.FragmentNavigated */)); - } - load() { - this.#finish(new NavigationResult("browsingContext.load" /* NavigationEventName.Load */)); - } - fail(message) { - this.#finish(new NavigationResult(this.committed.isFinished - ? "browsingContext.navigationAborted" /* NavigationEventName.NavigationAborted */ - : "browsingContext.navigationFailed" /* NavigationEventName.NavigationFailed */, message)); - } -} -exports.NavigationState = NavigationState; -/** - * Keeps track of navigations. Details: http://go/webdriver:bidi-navigation - */ -class NavigationTracker { - #eventManager; - #logger; - #loaderIdToNavigationsMap = new Map(); - #browsingContextId; - /** - * Last committed navigation is committed, but is not guaranteed to be finished, as it - * can still wait for `load` or `DOMContentLoaded` events. - */ - #lastCommittedNavigation; - /** - * Pending navigation is a navigation that is started but not yet committed. - */ - #pendingNavigation; - // Flags if the initial navigation to `about:blank` is in progress. - #isInitialNavigation = true; - constructor(url, browsingContextId, eventManager, logger) { - this.#browsingContextId = browsingContextId; - this.#eventManager = eventManager; - this.#logger = logger; - this.#isInitialNavigation = true; - // The initial navigation is always committed. - this.#lastCommittedNavigation = new NavigationState(url, browsingContextId, (0, urlHelpers_js_1.urlMatchesAboutBlank)(url), this.#eventManager); - } - /** - * Returns current started ongoing navigation. It can be either a started pending - * navigation, or one is already navigated. - */ - get currentNavigationId() { - if (this.#pendingNavigation?.isFragmentNavigation === false) { - // Use pending navigation if it is started and it is not a fragment navigation. - return this.#pendingNavigation.navigationId; - } - // If the pending navigation is a fragment one, or if it is not exists, the last - // committed navigation should be used. - return this.#lastCommittedNavigation.navigationId; - } - /** - * Flags if the current navigation relates to the initial to `about:blank` navigation. - */ - get isInitialNavigation() { - return this.#isInitialNavigation; - } - /** - * Url of the last navigated navigation. - */ - get url() { - return this.#lastCommittedNavigation.url; - } - /** - * Creates a pending navigation e.g. when navigation command is called. Required to - * provide navigation id before the actual navigation is started. It will be used when - * navigation started. Can be aborted, failed, fragment navigated, or became a current - * navigation. - */ - createPendingNavigation(url, canBeInitialNavigation = false) { - this.#logger?.(log_js_1.LogType.debug, 'createCommandNavigation'); - this.#isInitialNavigation = - canBeInitialNavigation && - this.#isInitialNavigation && - (0, urlHelpers_js_1.urlMatchesAboutBlank)(url); - this.#pendingNavigation?.fail('navigation canceled by concurrent navigation'); - const navigation = new NavigationState(url, this.#browsingContextId, this.#isInitialNavigation, this.#eventManager); - this.#pendingNavigation = navigation; - return navigation; - } - dispose() { - this.#pendingNavigation?.fail('navigation canceled by context disposal'); - this.#lastCommittedNavigation.fail('navigation canceled by context disposal'); - } - // Update the current url. - onTargetInfoChanged(url) { - this.#logger?.(log_js_1.LogType.debug, `onTargetInfoChanged ${url}`); - this.#lastCommittedNavigation.url = url; - } - #getNavigationForFrameNavigated(url, loaderId) { - if (this.#loaderIdToNavigationsMap.has(loaderId)) { - return this.#loaderIdToNavigationsMap.get(loaderId); - } - if (this.#pendingNavigation !== undefined && - this.#pendingNavigation.loaderId === undefined) { - // This can be a pending navigation to `about:blank` created by a command. Use the - // pending navigation in this case. - return this.#pendingNavigation; - } - // Create a new pending navigation. - return this.createPendingNavigation(url, true); - } - /** - * @param {string} unreachableUrl indicated the navigation is actually failed. - */ - frameNavigated(url, loaderId, unreachableUrl) { - this.#logger?.(log_js_1.LogType.debug, `frameNavigated ${url}`); - if (unreachableUrl !== undefined) { - // The navigation failed. - const navigation = this.#loaderIdToNavigationsMap.get(loaderId) ?? - this.#pendingNavigation ?? - this.createPendingNavigation(unreachableUrl, true); - navigation.url = unreachableUrl; - navigation.start(); - navigation.fail('the requested url is unreachable'); - return; - } - const navigation = this.#getNavigationForFrameNavigated(url, loaderId); - if (navigation !== this.#lastCommittedNavigation) { - // Even though the `lastCommittedNavigation` is navigated, it still can be waiting - // for `load` or `DOMContentLoaded` events. - this.#lastCommittedNavigation.fail('navigation canceled by concurrent navigation'); - } - navigation.url = url; - navigation.loaderId = loaderId; - this.#loaderIdToNavigationsMap.set(loaderId, navigation); - navigation.start(); - navigation.frameNavigated(); - this.#lastCommittedNavigation = navigation; - if (this.#pendingNavigation === navigation) { - this.#pendingNavigation = undefined; - } - } - navigatedWithinDocument(url, navigationType) { - this.#logger?.(log_js_1.LogType.debug, `navigatedWithinDocument ${url}, ${navigationType}`); - // Current navigation URL should be updated. - this.#lastCommittedNavigation.url = url; - if (navigationType !== 'fragment') { - // TODO: check for other navigation types, like `javascript`. - return; - } - // There is no way to map `navigatedWithinDocument` to a specific navigation. Consider - // it is the pending navigation, if it is a fragment one. - const fragmentNavigation = this.#pendingNavigation?.isFragmentNavigation === true - ? this.#pendingNavigation - : new NavigationState(url, this.#browsingContextId, false, this.#eventManager); - // Finish ongoing navigation. - fragmentNavigation.fragmentNavigated(); - if (fragmentNavigation === this.#pendingNavigation) { - this.#pendingNavigation = undefined; - } - } - /** - * Required to mark navigation as fully complete. - * TODO: navigation should be complete when it became the current one on - * `Page.frameNavigated` or on navigating command finished with a new loader Id. - */ - loadPageEvent(loaderId) { - this.#logger?.(log_js_1.LogType.debug, 'loadPageEvent'); - // Even if it was an initial navigation, it is finished. - this.#isInitialNavigation = false; - this.#loaderIdToNavigationsMap.get(loaderId)?.load(); - } - /** - * Fail navigation due to navigation command failed. - */ - failNavigation(navigation, errorText) { - this.#logger?.(log_js_1.LogType.debug, 'failCommandNavigation'); - navigation.fail(errorText); - } - /** - * Updates the navigation's `loaderId` and sets it as current one, if it is a - * cross-document navigation. - */ - navigationCommandFinished(navigation, loaderId) { - this.#logger?.(log_js_1.LogType.debug, `finishCommandNavigation ${navigation.navigationId}, ${loaderId}`); - if (loaderId !== undefined) { - navigation.loaderId = loaderId; - this.#loaderIdToNavigationsMap.set(loaderId, navigation); - } - navigation.isFragmentNavigation = loaderId === undefined; - } - frameStartedNavigating(url, loaderId, navigationType) { - this.#logger?.(log_js_1.LogType.debug, `frameStartedNavigating ${url}, ${loaderId}`); - if (this.#pendingNavigation && - this.#pendingNavigation?.loaderId !== undefined && - this.#pendingNavigation?.loaderId !== loaderId) { - // If there is a pending navigation with loader id set, but not equal to the new - // loader id, cancel pending navigation. - this.#pendingNavigation?.fail('navigation canceled by concurrent navigation'); - this.#pendingNavigation = undefined; - } - if (this.#loaderIdToNavigationsMap.has(loaderId)) { - const existingNavigation = this.#loaderIdToNavigationsMap.get(loaderId); - // Navigation can be changed from `sameDocument` to `differentDocument`. - existingNavigation.isFragmentNavigation = - NavigationTracker.#isFragmentNavigation(navigationType); - this.#pendingNavigation = existingNavigation; - return; - } - const pendingNavigation = this.#pendingNavigation ?? this.createPendingNavigation(url, true); - this.#loaderIdToNavigationsMap.set(loaderId, pendingNavigation); - pendingNavigation.isFragmentNavigation = - NavigationTracker.#isFragmentNavigation(navigationType); - pendingNavigation.url = url; - pendingNavigation.loaderId = loaderId; - pendingNavigation.start(); - } - static #isFragmentNavigation(navigationType) { - // Page.frameStartedNavigating.navigationType can be one of the following values: - // reload, reloadBypassingCache, restore, restoreWithPost, historySameDocument, - // historyDifferentDocument, sameDocument, differentDocument. - // https://chromedevtools.github.io/devtools-protocol/tot/Page/#event-frameStartedNavigating - return ['historySameDocument', 'sameDocument'].includes(navigationType); - } - /** - * If there is a navigation with the loaderId equals to the network request id, it means - * that the navigation failed. - */ - networkLoadingFailed(loaderId, errorText) { - this.#loaderIdToNavigationsMap.get(loaderId)?.fail(errorText); - } -} -exports.NavigationTracker = NavigationTracker; -//# sourceMappingURL=NavigationTracker.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/NavigationTracker.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/NavigationTracker.js.map deleted file mode 100644 index 895207b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/NavigationTracker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Navig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.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/emulation/EmulationProcessor.d.ts deleted file mode 100644 index 4fba9f9..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/emulation/EmulationProcessor.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { EmptyResult, Emulation, UAClientHints } from '../../../protocol/protocol.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { UserContextStorage } from '../browser/UserContextStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -export declare class EmulationProcessor { - #private; - constructor(browsingContextStorage: BrowsingContextStorage, userContextStorage: UserContextStorage, contextConfigStorage: ContextConfigStorage); - setGeolocationOverride(params: Emulation.SetGeolocationOverrideParameters): Promise; - setLocaleOverride(params: Emulation.SetLocaleOverrideParameters): Promise; - setScriptingEnabled(params: Emulation.SetScriptingEnabledParameters): Promise; - setScreenOrientationOverride(params: Emulation.SetScreenOrientationOverrideParameters): Promise; - setScreenSettingsOverride(params: Emulation.SetScreenSettingsOverrideParameters): Promise; - setTimezoneOverride(params: Emulation.SetTimezoneOverrideParameters): Promise; - setTouchOverride(params: Emulation.SetTouchOverrideParameters): Promise; - setUserAgentOverrideParams(params: Emulation.SetUserAgentOverrideParameters): Promise; - setClientHintsOverride(params: UAClientHints.UserAgentClientHints.SetClientHintsOverrideCommand['params']): Promise; - setNetworkConditions(params: Emulation.SetNetworkConditionsParameters): Promise; -} -export declare function isValidLocale(locale: string): boolean; -export declare function isValidTimezone(timezone: string): boolean; -export declare function isTimeZoneOffsetString(timezone: string): boolean; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/emulation/EmulationProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/emulation/EmulationProcessor.js deleted file mode 100644 index 84eb07b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/emulation/EmulationProcessor.js +++ /dev/null @@ -1,384 +0,0 @@ -"use strict"; -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EmulationProcessor = void 0; -exports.isValidLocale = isValidLocale; -exports.isValidTimezone = isValidTimezone; -exports.isTimeZoneOffsetString = isTimeZoneOffsetString; -const protocol_js_1 = require("../../../protocol/protocol.js"); -class EmulationProcessor { - #userContextStorage; - #browsingContextStorage; - #contextConfigStorage; - constructor(browsingContextStorage, userContextStorage, contextConfigStorage) { - this.#userContextStorage = userContextStorage; - this.#browsingContextStorage = browsingContextStorage; - this.#contextConfigStorage = contextConfigStorage; - } - async setGeolocationOverride(params) { - if ('coordinates' in params && 'error' in params) { - // Unreachable. Handled by params parser. - throw new protocol_js_1.InvalidArgumentException('Coordinates and error cannot be set at the same time'); - } - let geolocation = null; - if ('coordinates' in params) { - if ((params.coordinates?.altitude ?? null) === null && - (params.coordinates?.altitudeAccuracy ?? null) !== null) { - throw new protocol_js_1.InvalidArgumentException('Geolocation altitudeAccuracy can be set only with altitude'); - } - geolocation = params.coordinates; - } - else if ('error' in params) { - if (params.error.type !== 'positionUnavailable') { - // Unreachable. Handled by params parser. - throw new protocol_js_1.InvalidArgumentException(`Unknown geolocation error ${params.error.type}`); - } - geolocation = params.error; - } - else { - // Unreachable. Handled by params parser. - throw new protocol_js_1.InvalidArgumentException(`Coordinates or error should be set`); - } - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - geolocation, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - geolocation, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setGeolocationOverride(config.geolocation ?? null); - })); - return {}; - } - async setLocaleOverride(params) { - const locale = params.locale ?? null; - if (locale !== null && !isValidLocale(locale)) { - throw new protocol_js_1.InvalidArgumentException(`Invalid locale "${locale}"`); - } - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - locale, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - locale, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await Promise.all([ - context.setLocaleOverride(config.locale ?? null), - // Set `AcceptLanguage` to locale. - context.setUserAgentAndAcceptLanguage(config.userAgent, config.locale, config.clientHints), - ]); - })); - return {}; - } - async setScriptingEnabled(params) { - const scriptingEnabled = params.enabled; - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - scriptingEnabled, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - scriptingEnabled, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setScriptingEnabled(config.scriptingEnabled ?? null); - })); - return {}; - } - async setScreenOrientationOverride(params) { - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - screenOrientation: params.screenOrientation, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - screenOrientation: params.screenOrientation, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setViewport(config.viewport ?? null, config.devicePixelRatio ?? null, config.screenOrientation ?? null); - })); - return {}; - } - async setScreenSettingsOverride(params) { - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - screenArea: params.screenArea, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - screenArea: params.screenArea, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setViewport(config.viewport ?? null, config.devicePixelRatio ?? null, config.screenOrientation ?? null); - })); - return {}; - } - /** - * Returns a list of top-level browsing contexts. - */ - async #getRelatedTopLevelBrowsingContexts(browsingContextIds, userContextIds, allowGlobal = false) { - if (browsingContextIds === undefined && userContextIds === undefined) { - if (allowGlobal) { - return this.#browsingContextStorage.getTopLevelContexts(); - } - throw new protocol_js_1.InvalidArgumentException('Either user contexts or browsing contexts must be provided'); - } - if (browsingContextIds !== undefined && userContextIds !== undefined) { - throw new protocol_js_1.InvalidArgumentException('User contexts and browsing contexts are mutually exclusive'); - } - const result = []; - if (browsingContextIds === undefined) { - // userContextIds !== undefined - if (userContextIds.length === 0) { - throw new protocol_js_1.InvalidArgumentException('user context should be provided'); - } - // Verify that all user contexts exist. - await this.#userContextStorage.verifyUserContextIdList(userContextIds); - for (const userContextId of userContextIds) { - const topLevelBrowsingContexts = this.#browsingContextStorage - .getTopLevelContexts() - .filter((browsingContext) => browsingContext.userContext === userContextId); - result.push(...topLevelBrowsingContexts); - } - } - else { - if (browsingContextIds.length === 0) { - throw new protocol_js_1.InvalidArgumentException('browsing context should be provided'); - } - for (const browsingContextId of browsingContextIds) { - const browsingContext = this.#browsingContextStorage.getContext(browsingContextId); - if (!browsingContext.isTopLevelContext()) { - throw new protocol_js_1.InvalidArgumentException('The command is only supported on the top-level context'); - } - result.push(browsingContext); - } - } - // Remove duplicates. Compare `BrowsingContextImpl` by reference is correct here, as - // `browsingContextStorage` returns the same instance for the same id. - return [...new Set(result).values()]; - } - async setTimezoneOverride(params) { - let timezone = params.timezone ?? null; - if (timezone !== null && !isValidTimezone(timezone)) { - throw new protocol_js_1.InvalidArgumentException(`Invalid timezone "${timezone}"`); - } - if (timezone !== null && isTimeZoneOffsetString(timezone)) { - // CDP supports offset timezone with `GMT` prefix. - timezone = `GMT${timezone}`; - } - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - timezone, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - timezone, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setTimezoneOverride(config.timezone ?? null); - })); - return {}; - } - async setTouchOverride(params) { - const maxTouchPoints = params.maxTouchPoints; - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts, true); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - maxTouchPoints, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - maxTouchPoints, - }); - } - if (params.contexts === undefined && params.userContexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - maxTouchPoints, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setTouchOverride(config.maxTouchPoints ?? null); - })); - return {}; - } - async setUserAgentOverrideParams(params) { - if (params.userAgent === '') { - throw new protocol_js_1.UnsupportedOperationException('empty user agent string is not supported'); - } - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts, true); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - userAgent: params.userAgent, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - userAgent: params.userAgent, - }); - } - if (params.contexts === undefined && params.userContexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - userAgent: params.userAgent, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setUserAgentAndAcceptLanguage(config.userAgent, config.locale, config.clientHints); - })); - return {}; - } - async setClientHintsOverride(params) { - const clientHints = params.clientHints ?? null; - // Get all relevant contexts to update: - // 1. Specific browsing contexts (if provided). - // 2. All contexts for specific user contexts (if provided). - // 3. All top-level contexts (if global). - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts, true); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - clientHints, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - clientHints, - }); - } - if (params.contexts === undefined && params.userContexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - clientHints, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setUserAgentAndAcceptLanguage(config.userAgent, config.locale, config.clientHints); - })); - return {}; - } - async setNetworkConditions(params) { - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts, true); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - emulatedNetworkConditions: params.networkConditions, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - emulatedNetworkConditions: params.networkConditions, - }); - } - if (params.contexts === undefined && params.userContexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - emulatedNetworkConditions: params.networkConditions, - }); - } - if (params.networkConditions !== null && - params.networkConditions.type !== 'offline') { - throw new protocol_js_1.UnsupportedOperationException(`Unsupported network conditions ${params.networkConditions.type}`); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setEmulatedNetworkConditions(config.emulatedNetworkConditions ?? null); - })); - return {}; - } -} -exports.EmulationProcessor = EmulationProcessor; -// Export for testing. -function isValidLocale(locale) { - try { - new Intl.Locale(locale); - return true; - } - catch (e) { - if (e instanceof RangeError) { - return false; - } - // Re-throw other errors - throw e; - } -} -// Export for testing. -function isValidTimezone(timezone) { - try { - Intl.DateTimeFormat(undefined, { timeZone: timezone }); - return true; - } - catch (e) { - if (e instanceof RangeError) { - return false; - } - // Re-throw other errors - throw e; - } -} -// Export for testing. -function isTimeZoneOffsetString(timezone) { - return /^[+-](?:2[0-3]|[01]\d)(?::[0-5]\d)?$/.test(timezone); -} -//# sourceMappingURL=EmulationProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/emulation/EmulationProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/emulation/EmulationProcessor.js.map deleted file mode 100644 index 50fc6b2..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/emulation/EmulationProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EmulationProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/emulation/EmulationProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAolBH,sCAWC;AAGD,0CAWC;AAGD,wDAEC;AAhnBD,+DAGuC;AAWvC,MAAa,kBAAkB;IAC7B,mBAAmB,CAAqB;IACxC,uBAAuB,CAAyB;IAChD,qBAAqB,CAAuB;IAE5C,YACE,sBAA8C,EAC9C,kBAAsC,EACtC,oBAA0C;QAE1C,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QAC9C,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,MAAkD;QAElD,IAAI,aAAa,IAAI,MAAM,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACjD,yCAAyC;YACzC,MAAM,IAAI,sCAAwB,CAChC,sDAAsD,CACvD,CAAC;QACJ,CAAC;QAED,IAAI,WAAW,GAGJ,IAAI,CAAC;QAEhB,IAAI,aAAa,IAAI,MAAM,EAAE,CAAC;YAC5B,IACE,CAAC,MAAM,CAAC,WAAW,EAAE,Q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CAAC,CACH,CAAC;QACF,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAjkBD,gDAikBC;AAED,sBAAsB;AACtB,SAAgB,aAAa,CAAC,MAAc;IAC1C,IAAI,CAAC;QACH,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,YAAY,UAAU,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;QACD,wBAAwB;QACxB,MAAM,CAAC,CAAC;IACV,CAAC;AACH,CAAC;AAED,sBAAsB;AACtB,SAAgB,eAAe,CAAC,QAAgB;IAC9C,IAAI,CAAC;QACH,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,QAAQ,EAAC,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,YAAY,UAAU,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;QACD,wBAAwB;QACxB,MAAM,CAAC,CAAC;IACV,CAAC;AACH,CAAC;AAED,sBAAsB;AACtB,SAAgB,sBAAsB,CAAC,QAAgB;IACrD,OAAO,sCAAsC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC/D,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.d.ts deleted file mode 100644 index 25f83c6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { ActionOption } from './ActionOption.js'; -import type { InputState } from './InputState.js'; -export declare class ActionDispatcher { - #private; - static isMacOS: (context: BrowsingContextImpl) => Promise; - constructor(inputState: InputState, browsingContextStorage: BrowsingContextStorage, contextId: string, isMacOS: boolean); - dispatchActions(optionsByTick: readonly (readonly Readonly[])[]): Promise; - dispatchTickActions(options: readonly Readonly[]): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js deleted file mode 100644 index c6b891a..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js +++ /dev/null @@ -1,744 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActionDispatcher = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const assert_js_1 = require("../../../utils/assert.js"); -const graphemeTools_js_1 = require("../../../utils/graphemeTools.js"); -const InputSource_js_1 = require("./InputSource.js"); -const keyUtils_js_1 = require("./keyUtils.js"); -const USKeyboardLayout_js_1 = require("./USKeyboardLayout.js"); -/** https://w3c.github.io/webdriver/#dfn-center-point */ -const CALCULATE_IN_VIEW_CENTER_PT_DECL = ((i) => { - const t = i.getClientRects()[0], e = Math.max(0, Math.min(t.x, t.x + t.width)), n = Math.min(window.innerWidth, Math.max(t.x, t.x + t.width)), h = Math.max(0, Math.min(t.y, t.y + t.height)), m = Math.min(window.innerHeight, Math.max(t.y, t.y + t.height)); - return [e + ((n - e) >> 1), h + ((m - h) >> 1)]; -}).toString(); -const IS_MAC_DECL = (() => { - return navigator.platform.toLowerCase().includes('mac'); -}).toString(); -async function getElementCenter(context, element) { - const hiddenSandboxRealm = await context.getOrCreateHiddenSandbox(); - const result = await hiddenSandboxRealm.callFunction(CALCULATE_IN_VIEW_CENTER_PT_DECL, false, { type: 'undefined' }, [element]); - if (result.type === 'exception') { - throw new protocol_js_1.NoSuchElementException(`Origin element ${element.sharedId} was not found`); - } - (0, assert_js_1.assert)(result.result.type === 'array'); - (0, assert_js_1.assert)(result.result.value?.[0]?.type === 'number'); - (0, assert_js_1.assert)(result.result.value?.[1]?.type === 'number'); - const { result: { value: [{ value: x }, { value: y }], }, } = result; - return { x: x, y: y }; -} -class ActionDispatcher { - static isMacOS = async (context) => { - const hiddenSandboxRealm = await context.getOrCreateHiddenSandbox(); - const result = await hiddenSandboxRealm.callFunction(IS_MAC_DECL, false); - (0, assert_js_1.assert)(result.type !== 'exception'); - (0, assert_js_1.assert)(result.result.type === 'boolean'); - return result.result.value; - }; - #browsingContextStorage; - #tickStart = 0; - #tickDuration = 0; - #inputState; - #contextId; - #isMacOS; - constructor(inputState, browsingContextStorage, contextId, isMacOS) { - this.#browsingContextStorage = browsingContextStorage; - this.#inputState = inputState; - this.#contextId = contextId; - this.#isMacOS = isMacOS; - } - /** - * The context can be disposed between action ticks, so need to get it each time. - */ - get #context() { - return this.#browsingContextStorage.getContext(this.#contextId); - } - async dispatchActions(optionsByTick) { - await this.#inputState.queue.run(async () => { - for (const options of optionsByTick) { - await this.dispatchTickActions(options); - } - }); - } - async dispatchTickActions(options) { - this.#tickStart = performance.now(); - this.#tickDuration = 0; - for (const { action } of options) { - if ('duration' in action && action.duration !== undefined) { - this.#tickDuration = Math.max(this.#tickDuration, action.duration); - } - } - const promises = [ - new Promise((resolve) => setTimeout(resolve, this.#tickDuration)), - ]; - for (const option of options) { - // In theory we have to wait for each action to happen, but CDP is serial, - // so as an optimization, we queue all CDP commands at once and await all - // of them. - promises.push(this.#dispatchAction(option)); - } - await Promise.all(promises); - } - async #dispatchAction({ id, action }) { - const source = this.#inputState.get(id); - const keyState = this.#inputState.getGlobalKeyState(); - switch (action.type) { - case 'keyDown': { - // SAFETY: The source is validated before. - await this.#dispatchKeyDownAction(source, action); - this.#inputState.cancelList.push({ - id, - action: { - ...action, - type: 'keyUp', - }, - }); - break; - } - case 'keyUp': { - // SAFETY: The source is validated before. - await this.#dispatchKeyUpAction(source, action); - break; - } - case 'pause': { - // TODO: Implement waiting on the input source. - break; - } - case 'pointerDown': { - // SAFETY: The source is validated before. - await this.#dispatchPointerDownAction(source, keyState, action); - this.#inputState.cancelList.push({ - id, - action: { - ...action, - type: 'pointerUp', - }, - }); - break; - } - case 'pointerMove': { - // SAFETY: The source is validated before. - await this.#dispatchPointerMoveAction(source, keyState, action); - break; - } - case 'pointerUp': { - // SAFETY: The source is validated before. - await this.#dispatchPointerUpAction(source, keyState, action); - break; - } - case 'scroll': { - // SAFETY: The source is validated before. - await this.#dispatchScrollAction(source, keyState, action); - break; - } - } - } - async #dispatchPointerDownAction(source, keyState, action) { - const { button } = action; - if (source.pressed.has(button)) { - return; - } - source.pressed.add(button); - const { x, y, subtype: pointerType } = source; - const { width, height, pressure, twist, tangentialPressure } = action; - const { tiltX, tiltY } = getTilt(action); - // --- Platform-specific code begins here --- - const { modifiers } = keyState; - const { radiusX, radiusY } = getRadii(width ?? 1, height ?? 1); - switch (pointerType) { - case "mouse" /* Input.PointerType.Mouse */: - case "pen" /* Input.PointerType.Pen */: - // TODO: Implement width and height when available. - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mousePressed', - x, - y, - modifiers, - button: getCdpButton(button), - buttons: source.buttons, - clickCount: source.setClickCount(button, new InputSource_js_1.PointerSource.ClickContext(x, y, performance.now())), - pointerType, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure, - }); - break; - case "touch" /* Input.PointerType.Touch */: - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', { - type: 'touchStart', - touchPoints: [ - { - x, - y, - radiusX, - radiusY, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure, - id: source.pointerId, - }, - ], - modifiers, - }); - break; - } - source.radiusX = radiusX; - source.radiusY = radiusY; - source.force = pressure; - // --- Platform-specific code ends here --- - } - #dispatchPointerUpAction(source, keyState, action) { - const { button } = action; - if (!source.pressed.has(button)) { - return; - } - source.pressed.delete(button); - const { x, y, force, radiusX, radiusY, subtype: pointerType } = source; - // --- Platform-specific code begins here --- - const { modifiers } = keyState; - switch (pointerType) { - case "mouse" /* Input.PointerType.Mouse */: - case "pen" /* Input.PointerType.Pen */: - // TODO: Implement width and height when available. - return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mouseReleased', - x, - y, - modifiers, - button: getCdpButton(button), - buttons: source.buttons, - clickCount: source.getClickCount(button), - pointerType, - }); - case "touch" /* Input.PointerType.Touch */: - return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', { - type: 'touchEnd', - touchPoints: [ - { - x, - y, - id: source.pointerId, - force, - radiusX, - radiusY, - }, - ], - modifiers, - }); - } - // --- Platform-specific code ends here --- - } - async #dispatchPointerMoveAction(source, keyState, action) { - const { x: startX, y: startY, subtype: pointerType } = source; - const { width, height, pressure, twist, tangentialPressure, x: offsetX, y: offsetY, origin = 'viewport', duration = this.#tickDuration, } = action; - const { tiltX, tiltY } = getTilt(action); - const { radiusX, radiusY } = getRadii(width ?? 1, height ?? 1); - const { targetX, targetY } = await this.#getCoordinateFromOrigin(origin, offsetX, offsetY, startX, startY); - if (targetX < 0 || targetY < 0) { - throw new protocol_js_1.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${targetX}, y: ${targetY})`); - } - let last; - do { - const ratio = duration > 0 ? (performance.now() - this.#tickStart) / duration : 1; - last = ratio >= 1; - let x; - let y; - if (last) { - x = targetX; - y = targetY; - } - else { - x = Math.round(ratio * (targetX - startX) + startX); - y = Math.round(ratio * (targetY - startY) + startY); - } - if (source.x !== x || source.y !== y) { - // --- Platform-specific code begins here --- - const { modifiers } = keyState; - switch (pointerType) { - case "mouse" /* Input.PointerType.Mouse */: - // TODO: Implement width and height when available. - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mouseMoved', - x, - y, - modifiers, - clickCount: 0, - button: getCdpButton(source.pressed.values().next().value ?? 5), - buttons: source.buttons, - pointerType, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure, - }); - break; - case "pen" /* Input.PointerType.Pen */: - if (source.pressed.size !== 0) { - // Empty `source.pressed.size` means the pen is not detected by digitizer. - // Dispatch a mouse event for the pen only if either: - // 1. the pen is hovering over the digitizer (0); - // 2. the pen is in contact with the digitizer (1); - // 3. the pen has at least one button pressed (2, 4, etc). - // https://www.w3.org/TR/pointerevents/#the-buttons-property - // TODO: Implement width and height when available. - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mouseMoved', - x, - y, - modifiers, - clickCount: 0, - button: getCdpButton(source.pressed.values().next().value ?? 5), - buttons: source.buttons, - pointerType, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure ?? 0.5, - }); - } - break; - case "touch" /* Input.PointerType.Touch */: - if (source.pressed.size !== 0) { - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', { - type: 'touchMove', - touchPoints: [ - { - x, - y, - radiusX, - radiusY, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure, - id: source.pointerId, - }, - ], - modifiers, - }); - } - break; - } - // --- Platform-specific code ends here --- - source.x = x; - source.y = y; - source.radiusX = radiusX; - source.radiusY = radiusY; - source.force = pressure; - } - } while (!last); - } - async #getFrameOffset() { - if (this.#context.id === this.#context.cdpTarget.id) { - return { x: 0, y: 0 }; - } - // https://github.com/w3c/webdriver/pull/1847 proposes dispatching events from - // the top-level browsing context. This implementation dispatches it on the top-most - // same-target frame, which is not top-level one in case of OOPiF. - // TODO: switch to the top-level browsing context. - const { backendNodeId } = await this.#context.cdpTarget.cdpClient.sendCommand('DOM.getFrameOwner', { frameId: this.#context.id }); - const { model: frameBoxModel } = await this.#context.cdpTarget.cdpClient.sendCommand('DOM.getBoxModel', { - backendNodeId, - }); - return { x: frameBoxModel.content[0], y: frameBoxModel.content[1] }; - } - async #getCoordinateFromOrigin(origin, offsetX, offsetY, startX, startY) { - let targetX; - let targetY; - const frameOffset = await this.#getFrameOffset(); - switch (origin) { - case 'viewport': - targetX = offsetX + frameOffset.x; - targetY = offsetY + frameOffset.y; - break; - case 'pointer': - targetX = startX + offsetX + frameOffset.x; - targetY = startY + offsetY + frameOffset.y; - break; - default: { - const { x: posX, y: posY } = await getElementCenter(this.#context, origin.element); - // SAFETY: These can never be special numbers. - targetX = posX + offsetX + frameOffset.x; - targetY = posY + offsetY + frameOffset.y; - break; - } - } - return { targetX, targetY }; - } - async #dispatchScrollAction(_source, keyState, action) { - const { deltaX: targetDeltaX, deltaY: targetDeltaY, x: offsetX, y: offsetY, origin = 'viewport', duration = this.#tickDuration, } = action; - if (origin === 'pointer') { - throw new protocol_js_1.InvalidArgumentException('"pointer" origin is invalid for scrolling.'); - } - const { targetX, targetY } = await this.#getCoordinateFromOrigin(origin, offsetX, offsetY, 0, 0); - if (targetX < 0 || targetY < 0) { - throw new protocol_js_1.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${targetX}, y: ${targetY})`); - } - let currentDeltaX = 0; - let currentDeltaY = 0; - let last; - do { - const ratio = duration > 0 ? (performance.now() - this.#tickStart) / duration : 1; - last = ratio >= 1; - let deltaX; - let deltaY; - if (last) { - deltaX = targetDeltaX - currentDeltaX; - deltaY = targetDeltaY - currentDeltaY; - } - else { - deltaX = Math.round(ratio * targetDeltaX - currentDeltaX); - deltaY = Math.round(ratio * targetDeltaY - currentDeltaY); - } - if (deltaX !== 0 || deltaY !== 0) { - // --- Platform-specific code begins here --- - const { modifiers } = keyState; - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mouseWheel', - deltaX, - deltaY, - x: targetX, - y: targetY, - modifiers, - }); - // --- Platform-specific code ends here --- - currentDeltaX += deltaX; - currentDeltaY += deltaY; - } - } while (!last); - } - async #dispatchKeyDownAction(source, action) { - const rawKey = action.value; - if (!(0, graphemeTools_js_1.isSingleGrapheme)(rawKey)) { - // https://w3c.github.io/webdriver/#dfn-process-a-key-action - // WebDriver spec allows a grapheme to be used. - throw new protocol_js_1.InvalidArgumentException(`Invalid key value: ${rawKey}`); - } - const isGrapheme = (0, graphemeTools_js_1.isSingleComplexGrapheme)(rawKey); - const key = (0, keyUtils_js_1.getNormalizedKey)(rawKey); - const repeat = source.pressed.has(key); - const code = (0, keyUtils_js_1.getKeyCode)(rawKey); - const location = (0, keyUtils_js_1.getKeyLocation)(rawKey); - switch (key) { - case 'Alt': - source.alt = true; - break; - case 'Shift': - source.shift = true; - break; - case 'Control': - source.ctrl = true; - break; - case 'Meta': - source.meta = true; - break; - } - source.pressed.add(key); - const { modifiers } = source; - // --- Platform-specific code begins here --- - // The spread is a little hack so JS gives us an array of unicode characters - // to measure. - const unmodifiedText = getKeyEventUnmodifiedText(key, source, isGrapheme); - const text = getKeyEventText(code ?? '', source) ?? unmodifiedText; - let command; - // The following commands need to be declared because Chromium doesn't - // handle them. See - // https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:third_party/blink/renderer/core/editing/editing_behavior.cc;l=169;drc=b8143cf1dfd24842890fcd831c4f5d909bef4fc4;bpv=0;bpt=1. - if (this.#isMacOS && source.meta) { - switch (code) { - case 'KeyA': - command = 'SelectAll'; - break; - case 'KeyC': - command = 'Copy'; - break; - case 'KeyV': - command = source.shift ? 'PasteAndMatchStyle' : 'Paste'; - break; - case 'KeyX': - command = 'Cut'; - break; - case 'KeyZ': - command = source.shift ? 'Redo' : 'Undo'; - break; - default: - // Intentionally empty. - } - } - const promises = [ - this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchKeyEvent', { - type: text ? 'keyDown' : 'rawKeyDown', - windowsVirtualKeyCode: USKeyboardLayout_js_1.KeyToKeyCode[key], - key, - code, - text, - unmodifiedText, - autoRepeat: repeat, - isSystemKey: source.alt || undefined, - location: location < 3 ? location : undefined, - isKeypad: location === 3, - modifiers, - commands: command ? [command] : undefined, - }), - ]; - // Drag cancelling happens on escape. - if (key === 'Escape') { - if (!source.alt && - ((this.#isMacOS && !source.ctrl && !source.meta) || !this.#isMacOS)) { - promises.push(this.#context.cdpTarget.cdpClient.sendCommand('Input.cancelDragging')); - } - } - await Promise.all(promises); - // --- Platform-specific code ends here --- - } - #dispatchKeyUpAction(source, action) { - const rawKey = action.value; - if (!(0, graphemeTools_js_1.isSingleGrapheme)(rawKey)) { - // https://w3c.github.io/webdriver/#dfn-process-a-key-action - // WebDriver spec allows a grapheme to be used. - throw new protocol_js_1.InvalidArgumentException(`Invalid key value: ${rawKey}`); - } - const isGrapheme = (0, graphemeTools_js_1.isSingleComplexGrapheme)(rawKey); - const key = (0, keyUtils_js_1.getNormalizedKey)(rawKey); - if (!source.pressed.has(key)) { - return; - } - const code = (0, keyUtils_js_1.getKeyCode)(rawKey); - const location = (0, keyUtils_js_1.getKeyLocation)(rawKey); - switch (key) { - case 'Alt': - source.alt = false; - break; - case 'Shift': - source.shift = false; - break; - case 'Control': - source.ctrl = false; - break; - case 'Meta': - source.meta = false; - break; - } - source.pressed.delete(key); - const { modifiers } = source; - // --- Platform-specific code begins here --- - // The spread is a little hack so JS gives us an array of unicode characters - // to measure. - const unmodifiedText = getKeyEventUnmodifiedText(key, source, isGrapheme); - const text = getKeyEventText(code ?? '', source) ?? unmodifiedText; - return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchKeyEvent', { - type: 'keyUp', - windowsVirtualKeyCode: USKeyboardLayout_js_1.KeyToKeyCode[key], - key, - code, - text, - unmodifiedText, - location: location < 3 ? location : undefined, - isSystemKey: source.alt || undefined, - isKeypad: location === 3, - modifiers, - }); - // --- Platform-specific code ends here --- - } -} -exports.ActionDispatcher = ActionDispatcher; -/** - * Translates a non-grapheme key to either an `undefined` for a special keys, or a single - * character modified by shift if needed. - */ -const getKeyEventUnmodifiedText = (key, source, isGrapheme) => { - if (isGrapheme) { - // Graphemes should be presented as text in the CDP command. - return key; - } - if (key === 'Enter') { - return '\r'; - } - // If key is not a single character, it is a normalized key value, and should be - // presented as key, not text in the CDP command. - return [...key].length === 1 - ? source.shift - ? key.toLocaleUpperCase('en-US') - : key - : undefined; -}; -const getKeyEventText = (code, source) => { - if (source.ctrl) { - switch (code) { - case 'Digit2': - if (source.shift) { - return '\x00'; - } - break; - case 'KeyA': - return '\x01'; - case 'KeyB': - return '\x02'; - case 'KeyC': - return '\x03'; - case 'KeyD': - return '\x04'; - case 'KeyE': - return '\x05'; - case 'KeyF': - return '\x06'; - case 'KeyG': - return '\x07'; - case 'KeyH': - return '\x08'; - case 'KeyI': - return '\x09'; - case 'KeyJ': - return '\x0A'; - case 'KeyK': - return '\x0B'; - case 'KeyL': - return '\x0C'; - case 'KeyM': - return '\x0D'; - case 'KeyN': - return '\x0E'; - case 'KeyO': - return '\x0F'; - case 'KeyP': - return '\x10'; - case 'KeyQ': - return '\x11'; - case 'KeyR': - return '\x12'; - case 'KeyS': - return '\x13'; - case 'KeyT': - return '\x14'; - case 'KeyU': - return '\x15'; - case 'KeyV': - return '\x16'; - case 'KeyW': - return '\x17'; - case 'KeyX': - return '\x18'; - case 'KeyY': - return '\x19'; - case 'KeyZ': - return '\x1A'; - case 'BracketLeft': - return '\x1B'; - case 'Backslash': - return '\x1C'; - case 'BracketRight': - return '\x1D'; - case 'Digit6': - if (source.shift) { - return '\x1E'; - } - break; - case 'Minus': - return '\x1F'; - } - return ''; - } - if (source.alt) { - return ''; - } - return; -}; -function getCdpButton(button) { - // https://www.w3.org/TR/pointerevents/#the-button-property - switch (button) { - case 0: - return 'left'; - case 1: - return 'middle'; - case 2: - return 'right'; - case 3: - return 'back'; - case 4: - return 'forward'; - default: - return 'none'; - } -} -function getTilt(action) { - // https://w3c.github.io/pointerevents/#converting-between-tiltx-tilty-and-altitudeangle-azimuthangle - const altitudeAngle = action.altitudeAngle ?? Math.PI / 2; - const azimuthAngle = action.azimuthAngle ?? 0; - let tiltXRadians = 0; - let tiltYRadians = 0; - if (altitudeAngle === 0) { - // the pen is in the X-Y plane - if (azimuthAngle === 0 || azimuthAngle === 2 * Math.PI) { - // pen is on positive X axis - tiltXRadians = Math.PI / 2; - } - if (azimuthAngle === Math.PI / 2) { - // pen is on positive Y axis - tiltYRadians = Math.PI / 2; - } - if (azimuthAngle === Math.PI) { - // pen is on negative X axis - tiltXRadians = -Math.PI / 2; - } - if (azimuthAngle === (3 * Math.PI) / 2) { - // pen is on negative Y axis - tiltYRadians = -Math.PI / 2; - } - if (azimuthAngle > 0 && azimuthAngle < Math.PI / 2) { - tiltXRadians = Math.PI / 2; - tiltYRadians = Math.PI / 2; - } - if (azimuthAngle > Math.PI / 2 && azimuthAngle < Math.PI) { - tiltXRadians = -Math.PI / 2; - tiltYRadians = Math.PI / 2; - } - if (azimuthAngle > Math.PI && azimuthAngle < (3 * Math.PI) / 2) { - tiltXRadians = -Math.PI / 2; - tiltYRadians = -Math.PI / 2; - } - if (azimuthAngle > (3 * Math.PI) / 2 && azimuthAngle < 2 * Math.PI) { - tiltXRadians = Math.PI / 2; - tiltYRadians = -Math.PI / 2; - } - } - if (altitudeAngle !== 0) { - const tanAlt = Math.tan(altitudeAngle); - tiltXRadians = Math.atan(Math.cos(azimuthAngle) / tanAlt); - tiltYRadians = Math.atan(Math.sin(azimuthAngle) / tanAlt); - } - const factor = 180 / Math.PI; - return { - tiltX: Math.round(tiltXRadians * factor), - tiltY: Math.round(tiltYRadians * factor), - }; -} -function getRadii(width, height) { - return { - radiusX: width ? width / 2 : 0.5, - radiusY: height ? height / 2 : 0.5, - }; -} -//# sourceMappingURL=ActionDispatcher.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js.map deleted file mode 100644 index 96aa247..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActionDispatcher.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/ActionDispatcher.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAMuC;AACvC,wDAAgD;AAChD,sEAGyC;AAKzC,qDAI0B;AAE1B,+CAA2E;AAC3E,+DAAmD;AAEnD,wDAAwD;AACxD,MAAM,gCAAgC,GAAG,CAAC,CAAC,CAAU,EAAE,EAAE;IACvD,MAAM,CAAC,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAY,EACxC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAC7C,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAC7D,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC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,CAAC,aAAa,CAAC,CAAC;QACvC,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,CAAC;QAC1D,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC;IAC7B,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC;QACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC;KACzC,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CACf,KAAa,EACb,MAAc;IAEd,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;QAChC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;KACnC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionOption.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionOption.d.ts deleted file mode 100644 index 0a511f9..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionOption.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Input } from '../../../protocol/protocol.js'; -export type ActionOption = ActionOptionFor; -export interface ActionOptionFor { - id: string; - action: A; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionOption.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionOption.js deleted file mode 100644 index 1163e72..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionOption.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ActionOption.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionOption.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionOption.js.map deleted file mode 100644 index 5c9aaa4..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionOption.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActionOption.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/ActionOption.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.d.ts deleted file mode 100644 index 0c8019d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Input, type EmptyResult } from '../../../protocol/protocol.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -export declare class InputProcessor { - #private; - constructor(browsingContextStorage: BrowsingContextStorage); - performActions(params: Input.PerformActionsParameters): Promise; - releaseActions(params: Input.ReleaseActionsParameters): Promise; - setFiles(params: Input.SetFilesParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js deleted file mode 100644 index c008d92..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js +++ /dev/null @@ -1,194 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InputProcessor = void 0; -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -const protocol_js_1 = require("../../../protocol/protocol.js"); -const assert_js_1 = require("../../../utils/assert.js"); -const ActionDispatcher_js_1 = require("../input/ActionDispatcher.js"); -const InputStateManager_js_1 = require("../input/InputStateManager.js"); -class InputProcessor { - #browsingContextStorage; - #inputStateManager = new InputStateManager_js_1.InputStateManager(); - constructor(browsingContextStorage) { - this.#browsingContextStorage = browsingContextStorage; - } - async performActions(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const inputState = this.#inputStateManager.get(context.top); - const actionsByTick = this.#getActionsByTick(params, inputState); - const dispatcher = new ActionDispatcher_js_1.ActionDispatcher(inputState, this.#browsingContextStorage, params.context, await ActionDispatcher_js_1.ActionDispatcher.isMacOS(context).catch(() => false)); - await dispatcher.dispatchActions(actionsByTick); - return {}; - } - async releaseActions(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const topContext = context.top; - const inputState = this.#inputStateManager.get(topContext); - const dispatcher = new ActionDispatcher_js_1.ActionDispatcher(inputState, this.#browsingContextStorage, params.context, await ActionDispatcher_js_1.ActionDispatcher.isMacOS(context).catch(() => false)); - await dispatcher.dispatchTickActions(inputState.cancelList.reverse()); - this.#inputStateManager.delete(topContext); - return {}; - } - async setFiles(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const hiddenSandboxRealm = await context.getOrCreateHiddenSandbox(); - let result; - try { - result = await hiddenSandboxRealm.callFunction(String(function getFiles(fileListLength) { - if (!(this instanceof HTMLInputElement)) { - if (this instanceof Element) { - return 1 /* ErrorCode.Element */; - } - return 0 /* ErrorCode.Node */; - } - if (this.type !== 'file') { - return 2 /* ErrorCode.Type */; - } - if (this.disabled) { - return 3 /* ErrorCode.Disabled */; - } - if (fileListLength > 1 && !this.multiple) { - return 4 /* ErrorCode.Multiple */; - } - return; - }), false, params.element, [{ type: 'number', value: params.files.length }]); - } - catch { - throw new protocol_js_1.NoSuchNodeException(`Could not find element ${params.element.sharedId}`); - } - (0, assert_js_1.assert)(result.type === 'success'); - if (result.result.type === 'number') { - switch (result.result.value) { - case 0 /* ErrorCode.Node */: { - throw new protocol_js_1.NoSuchElementException(`Could not find element ${params.element.sharedId}`); - } - case 1 /* ErrorCode.Element */: { - throw new protocol_js_1.UnableToSetFileInputException(`Element ${params.element.sharedId} is not a input`); - } - case 2 /* ErrorCode.Type */: { - throw new protocol_js_1.UnableToSetFileInputException(`Input element ${params.element.sharedId} is not a file type`); - } - case 3 /* ErrorCode.Disabled */: { - throw new protocol_js_1.UnableToSetFileInputException(`Input element ${params.element.sharedId} is disabled`); - } - case 4 /* ErrorCode.Multiple */: { - throw new protocol_js_1.UnableToSetFileInputException(`Cannot set multiple files on a non-multiple input element`); - } - } - } - /** - * The zero-length array is a special case, it seems that - * DOM.setFileInputFiles does not actually update the files in that case, so - * the solution is to eval the element value to a new FileList directly. - */ - if (params.files.length === 0) { - // XXX: These events should converted to trusted events. Perhaps do this - // in `DOM.setFileInputFiles`? - await hiddenSandboxRealm.callFunction(String(function dispatchEvent() { - if (this.files?.length === 0) { - this.dispatchEvent(new Event('cancel', { - bubbles: true, - })); - return; - } - this.files = new DataTransfer().files; - // Dispatch events for this case because it should behave akin to a user action. - this.dispatchEvent(new Event('input', { bubbles: true, composed: true })); - this.dispatchEvent(new Event('change', { bubbles: true })); - }), false, params.element); - return {}; - } - // Our goal here is to iterate over the input element files and get their - // file paths. - const paths = []; - for (let i = 0; i < params.files.length; ++i) { - const result = await hiddenSandboxRealm.callFunction(String(function getFiles(index) { - return this.files?.item(index); - }), false, params.element, [{ type: 'number', value: 0 }], "root" /* Script.ResultOwnership.Root */); - (0, assert_js_1.assert)(result.type === 'success'); - if (result.result.type !== 'object') { - break; - } - const { handle } = result.result; - (0, assert_js_1.assert)(handle !== undefined); - const { path } = await hiddenSandboxRealm.cdpClient.sendCommand('DOM.getFileInfo', { - objectId: handle, - }); - paths.push(path); - // Cleanup the handle. - void hiddenSandboxRealm.disown(handle).catch(undefined); - } - paths.sort(); - // We create a new array so we preserve the order of the original files. - const sortedFiles = [...params.files].sort(); - if (paths.length !== params.files.length || - sortedFiles.some((path, index) => { - return paths[index] !== path; - })) { - const { objectId } = await hiddenSandboxRealm.deserializeForCdp(params.element); - // This cannot throw since this was just used in `callFunction` above. - (0, assert_js_1.assert)(objectId !== undefined); - await hiddenSandboxRealm.cdpClient.sendCommand('DOM.setFileInputFiles', { - files: params.files, - objectId, - }); - } - else { - // XXX: We should dispatch a trusted event. - await hiddenSandboxRealm.callFunction(String(function dispatchEvent() { - this.dispatchEvent(new Event('cancel', { - bubbles: true, - })); - }), false, params.element); - } - return {}; - } - #getActionsByTick(params, inputState) { - const actionsByTick = []; - for (const action of params.actions) { - switch (action.type) { - case "pointer" /* SourceType.Pointer */: { - action.parameters ??= { pointerType: "mouse" /* Input.PointerType.Mouse */ }; - action.parameters.pointerType ??= "mouse" /* Input.PointerType.Mouse */; - const source = inputState.getOrCreate(action.id, "pointer" /* SourceType.Pointer */, action.parameters.pointerType); - if (source.subtype !== action.parameters.pointerType) { - throw new protocol_js_1.InvalidArgumentException(`Expected input source ${action.id} to be ${source.subtype}; got ${action.parameters.pointerType}.`); - } - // https://github.com/GoogleChromeLabs/chromium-bidi/issues/3043 - source.resetClickCount(); - break; - } - default: - inputState.getOrCreate(action.id, action.type); - } - const actions = action.actions.map((item) => ({ - id: action.id, - action: item, - })); - for (let i = 0; i < actions.length; i++) { - if (actionsByTick.length === i) { - actionsByTick.push([]); - } - actionsByTick[i].push(actions[i]); - } - } - return actionsByTick; - } -} -exports.InputProcessor = InputProcessor; -//# sourceMappingURL=InputProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js.map deleted file mode 100644 index 6645bd3..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InputProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/InputProcessor.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,+DAQuC;AACvC,wDAAgD;AAEhD,sEAA8D;AAI9D,wEAAgE;AAEhE,MAAa,cAAc;IAChB,uBAAuB,CAAyB;IAEhD,kBAAkB,GAAG,IAAI,wCAAiB,EAAE,CAAC;IAEtD,YAAY,sBAA8C;QACxD,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAAsC;QAEtC,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxE,MAAM,UAAU,GAAG,IA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AM,CAAC,UAAU,CAAC,WAAW,0CAA4B,CAAC;oBAE1D,MAAM,MAAM,GAAG,UAAU,CAAC,WAAW,CACnC,MAAM,CAAC,EAAE,sCAET,MAAM,CAAC,UAAU,CAAC,WAAW,CAC9B,CAAC;oBACF,IAAI,MAAM,CAAC,OAAO,KAAK,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;wBACrD,MAAM,IAAI,sCAAwB,CAChC,yBAAyB,MAAM,CAAC,EAAE,UAAU,MAAM,CAAC,OAAO,SAAS,MAAM,CAAC,UAAU,CAAC,WAAW,GAAG,CACpG,CAAC;oBACJ,CAAC;oBACD,gEAAgE;oBAChE,MAAM,CAAC,eAAe,EAAE,CAAC;oBACzB,MAAM;gBACR,CAAC;gBACD;oBACE,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,IAAkB,CAAC,CAAC;YACjE,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAC5C,EAAE,EAAE,MAAM,CAAC,EAAE;gBACb,MAAM,EAAE,IAAI;aACb,CAAC,CAAC,CAAC;YACJ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACxC,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC/B,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzB,CAAC;gBACD,aAAa,CAAC,CAAC,CAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAE,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;QACD,OAAO,aAAa,CAAC;IACvB,CAAC;CACF;AAlQD,wCAkQC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.d.ts deleted file mode 100644 index d1edf3e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Input } from '../../../protocol/protocol.js'; -export declare const enum SourceType { - Key = "key", - Pointer = "pointer", - Wheel = "wheel", - None = "none" -} -export declare class NoneSource { - type: SourceType.None; -} -export declare class KeySource { - #private; - type: SourceType.Key; - pressed: Set; - get modifiers(): number; - get alt(): boolean; - set alt(value: boolean); - get ctrl(): boolean; - set ctrl(value: boolean); - get meta(): boolean; - set meta(value: boolean); - get shift(): boolean; - set shift(value: boolean); -} -export declare class PointerSource { - #private; - type: SourceType.Pointer; - subtype: Input.PointerType; - pointerId: number; - pressed: Set; - x: number; - y: number; - radiusX?: number; - radiusY?: number; - force?: number; - constructor(id: number, subtype: Input.PointerType); - get buttons(): number; - static ClickContext: { - new (x: number, y: number, time: number): { - count: number; - "__#private@#x": number; - "__#private@#y": number; - "__#private@#time": number; - compare(context: /*elided*/ any): boolean; - }; - "__#private@#DOUBLE_CLICK_TIME_MS": number; - "__#private@#MAX_DOUBLE_CLICK_RADIUS": number; - }; - setClickCount(button: number, context: InstanceType): number; - getClickCount(button: number): number; - /** - * Resets click count. Resets consequent click counter. Prevents grouping clicks in - * different `performActions` calls, so that they are not grouped as double, triple etc - * clicks. Required for https://github.com/GoogleChromeLabs/chromium-bidi/issues/3043. - */ - resetClickCount(): void; -} -export declare class WheelSource { - type: SourceType.Wheel; -} -export type InputSource = NoneSource | KeySource | PointerSource | WheelSource; -export type InputSourceFor = Type extends SourceType.Key ? KeySource : Type extends SourceType.Pointer ? PointerSource : Type extends SourceType.Wheel ? WheelSource : NoneSource; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js deleted file mode 100644 index 39b0b13..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js +++ /dev/null @@ -1,161 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WheelSource = exports.PointerSource = exports.KeySource = exports.NoneSource = void 0; -class NoneSource { - type = "none" /* SourceType.None */; -} -exports.NoneSource = NoneSource; -class KeySource { - type = "key" /* SourceType.Key */; - pressed = new Set(); - // This is a bitfield that matches the modifiers parameter of - // https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchKeyEvent - #modifiers = 0; - get modifiers() { - return this.#modifiers; - } - get alt() { - return (this.#modifiers & 1) === 1; - } - set alt(value) { - this.#setModifier(value, 1); - } - get ctrl() { - return (this.#modifiers & 2) === 2; - } - set ctrl(value) { - this.#setModifier(value, 2); - } - get meta() { - return (this.#modifiers & 4) === 4; - } - set meta(value) { - this.#setModifier(value, 4); - } - get shift() { - return (this.#modifiers & 8) === 8; - } - set shift(value) { - this.#setModifier(value, 8); - } - #setModifier(value, bit) { - if (value) { - this.#modifiers |= bit; - } - else { - this.#modifiers &= ~bit; - } - } -} -exports.KeySource = KeySource; -class PointerSource { - type = "pointer" /* SourceType.Pointer */; - subtype; - pointerId; - pressed = new Set(); - x = 0; - y = 0; - radiusX; - radiusY; - force; - constructor(id, subtype) { - this.pointerId = id; - this.subtype = subtype; - } - // This is a bitfield that matches the buttons parameter of - // https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchMouseEvent - get buttons() { - let buttons = 0; - for (const button of this.pressed) { - switch (button) { - case 0: - buttons |= 1; - break; - case 1: - buttons |= 4; - break; - case 2: - buttons |= 2; - break; - case 3: - buttons |= 8; - break; - case 4: - buttons |= 16; - break; - } - } - return buttons; - } - // --- Platform-specific code starts here --- - // Input.dispatchMouseEvent doesn't know the concept of double click, so we - // need to create the logic, similar to how it's done for OSes: - // https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:ui/events/event.cc;l=479 - static ClickContext = class ClickContext { - static #DOUBLE_CLICK_TIME_MS = 500; - static #MAX_DOUBLE_CLICK_RADIUS = 2; - count = 0; - #x; - #y; - #time; - constructor(x, y, time) { - this.#x = x; - this.#y = y; - this.#time = time; - } - compare(context) { - return ( - // The click needs to be within a certain amount of ms. - context.#time - this.#time > ClickContext.#DOUBLE_CLICK_TIME_MS || - // The click needs to be within a certain square radius. - Math.abs(context.#x - this.#x) > - ClickContext.#MAX_DOUBLE_CLICK_RADIUS || - Math.abs(context.#y - this.#y) > ClickContext.#MAX_DOUBLE_CLICK_RADIUS); - } - }; - #clickContexts = new Map(); - setClickCount(button, context) { - let storedContext = this.#clickContexts.get(button); - if (!storedContext || storedContext.compare(context)) { - storedContext = context; - } - ++storedContext.count; - this.#clickContexts.set(button, storedContext); - return storedContext.count; - } - getClickCount(button) { - return this.#clickContexts.get(button)?.count ?? 0; - } - /** - * Resets click count. Resets consequent click counter. Prevents grouping clicks in - * different `performActions` calls, so that they are not grouped as double, triple etc - * clicks. Required for https://github.com/GoogleChromeLabs/chromium-bidi/issues/3043. - */ - resetClickCount() { - this.#clickContexts = new Map(); - } -} -exports.PointerSource = PointerSource; -_a = PointerSource; -class WheelSource { - type = "wheel" /* SourceType.Wheel */; -} -exports.WheelSource = WheelSource; -//# sourceMappingURL=InputSource.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js.map deleted file mode 100644 index 0c51e28..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InputSource.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/InputSource.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;AAWH,MAAa,UAAU;IACrB,IAAI,GAAG,4BAAwB,CAAC;CACjC;AAFD,gCAEC;AACD,MAAa,SAAS;IACpB,IAAI,GAAG,0BAAuB,CAAC;IAC/B,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAE5B,6DAA6D;IAC7D,wFAAwF;IACxF,UAAU,GAAG,CAAC,CAAC;IACf,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IACD,IAAI,GAAG;QACL,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IACD,IAAI,GAAG,CAAC,KAAc;QACpB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IACD,IAAI,IAAI;QACN,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IACD,IAAI,IAAI,CAAC,KAAc;QACrB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IACD,IAAI,IAAI;QACN,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IACrC,CA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a,IAAI,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACrD,aAAa,GAAG,OAAO,CAAC;QAC1B,CAAC;QACD,EAAE,aAAa,CAAC,KAAK,CAAC;QACtB,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;QAC/C,OAAO,aAAa,CAAC,KAAK,CAAC;IAC7B,CAAC;IAED,aAAa,CAAC,MAAc;QAC1B,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;IACrD,CAAC;IAED;;;;OAIG;IACH,eAAe;QACb,IAAI,CAAC,cAAc,GAAG,IAAI,GAAG,EAG1B,CAAC;IACN,CAAC;;AAzGH,sCA2GC;;AAED,MAAa,WAAW;IACtB,IAAI,GAAG,8BAAyB,CAAC;CAClC;AAFD,kCAEC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.d.ts deleted file mode 100644 index 13df972..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Input } from '../../../protocol/protocol.js'; -import { Mutex } from '../../../utils/Mutex.js'; -import type { ActionOption } from './ActionOption.js'; -import { KeySource, PointerSource, SourceType, type InputSource, type InputSourceFor } from './InputSource.js'; -export declare class InputState { - #private; - cancelList: ActionOption[]; - getOrCreate(id: string, type: SourceType.Pointer, subtype: Input.PointerType): PointerSource; - getOrCreate(id: string, type: Type): InputSourceFor; - get(id: string): InputSource; - getGlobalKeyState(): KeySource; - get queue(): Mutex; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js deleted file mode 100644 index 7186a7f..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InputState = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const Mutex_js_1 = require("../../../utils/Mutex.js"); -const InputSource_js_1 = require("./InputSource.js"); -class InputState { - cancelList = []; - #sources = new Map(); - #mutex = new Mutex_js_1.Mutex(); - getOrCreate(id, type, subtype) { - let source = this.#sources.get(id); - if (!source) { - switch (type) { - case "none" /* SourceType.None */: - source = new InputSource_js_1.NoneSource(); - break; - case "key" /* SourceType.Key */: - source = new InputSource_js_1.KeySource(); - break; - case "pointer" /* SourceType.Pointer */: { - let pointerId = subtype === "mouse" /* Input.PointerType.Mouse */ ? 0 : 2; - const pointerIds = new Set(); - for (const [, source] of this.#sources) { - if (source.type === "pointer" /* SourceType.Pointer */) { - pointerIds.add(source.pointerId); - } - } - while (pointerIds.has(pointerId)) { - ++pointerId; - } - source = new InputSource_js_1.PointerSource(pointerId, subtype); - break; - } - case "wheel" /* SourceType.Wheel */: - source = new InputSource_js_1.WheelSource(); - break; - default: - throw new protocol_js_1.InvalidArgumentException(`Expected "${"none" /* SourceType.None */}", "${"key" /* SourceType.Key */}", "${"pointer" /* SourceType.Pointer */}", or "${"wheel" /* SourceType.Wheel */}". Found unknown source type ${type}.`); - } - this.#sources.set(id, source); - return source; - } - if (source.type !== type) { - throw new protocol_js_1.InvalidArgumentException(`Input source type of ${id} is ${source.type}, but received ${type}.`); - } - return source; - } - get(id) { - const source = this.#sources.get(id); - if (!source) { - throw new protocol_js_1.UnknownErrorException(`Internal error.`); - } - return source; - } - getGlobalKeyState() { - const state = new InputSource_js_1.KeySource(); - for (const [, source] of this.#sources) { - if (source.type !== "key" /* SourceType.Key */) { - continue; - } - for (const pressed of source.pressed) { - state.pressed.add(pressed); - } - state.alt ||= source.alt; - state.ctrl ||= source.ctrl; - state.meta ||= source.meta; - state.shift ||= source.shift; - } - return state; - } - get queue() { - return this.#mutex; - } -} -exports.InputState = InputState; -//# sourceMappingURL=InputState.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js.map deleted file mode 100644 index 98f3802..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InputState.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/InputState.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAIuC;AACvC,sDAA8C;AAG9C,qDAQ0B;AAE1B,MAAa,UAAU;IACrB,UAAU,GAAmB,EAAE,CAAC;IAChC,QAAQ,GAAG,IAAI,GAAG,EAAuB,CAAC;IAC1C,MAAM,GAAG,IAAI,gBAAK,EAAE,CAAC;IAWrB,WAAW,CACT,EAAU,EACV,IAAU,EACV,OAA2B;QAE3B,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ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OAAO,MAAM,CAAC,IAAI,kBAAkB,IAAI,GAAG,CACtE,CAAC;QACJ,CAAC;QACD,OAAO,MAA8B,CAAC;IACxC,CAAC;IAED,GAAG,CAAC,EAAU;QACZ,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,mCAAqB,CAAC,iBAAiB,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,iBAAiB;QACf,MAAM,KAAK,GAAc,IAAI,0BAAS,EAAE,CAAC;QACzC,KAAK,MAAM,CAAC,EAAE,MAAM,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACvC,IAAI,MAAM,CAAC,IAAI,+BAAmB,EAAE,CAAC;gBACnC,SAAS;YACX,CAAC;YACD,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;gBACrC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC7B,CAAC;YACD,KAAK,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC;YACzB,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC;YAC3B,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC;YAC3B,KAAK,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC;QAC/B,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAzFD,gCAyFC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.d.ts deleted file mode 100644 index cc85660..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; -import { InputState } from './InputState.js'; -export declare class InputStateManager extends WeakMap { - get(context: BrowsingContextImpl): InputState; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js deleted file mode 100644 index 8fa3fb2..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InputStateManager = void 0; -const assert_js_1 = require("../../../utils/assert.js"); -const InputState_js_1 = require("./InputState.js"); -// We use a weak map here as specified here: -// https://www.w3.org/TR/webdriver/#dfn-browsing-context-input-state-map -class InputStateManager extends WeakMap { - get(context) { - (0, assert_js_1.assert)(context.isTopLevelContext()); - if (!this.has(context)) { - this.set(context, new InputState_js_1.InputState()); - } - return super.get(context); - } -} -exports.InputStateManager = InputStateManager; -//# sourceMappingURL=InputStateManager.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js.map deleted file mode 100644 index 451dbae..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InputStateManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/InputStateManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,wDAAgD;AAGhD,mDAA2C;AAE3C,4CAA4C;AAC5C,wEAAwE;AACxE,MAAa,iBAAkB,SAAQ,OAGtC;IACU,GAAG,CAAC,OAA4B;QACvC,IAAA,kBAAM,EAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;QAEpC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,0BAAU,EAAE,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,KAAK,CAAC,GAAG,CAAC,OAAO,CAAE,CAAC;IAC7B,CAAC;CACF;AAbD,8CAaC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.d.ts deleted file mode 100644 index 65077ad..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export declare const KeyToKeyCode: Record; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js deleted file mode 100644 index 9e89368..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js +++ /dev/null @@ -1,274 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.KeyToKeyCode = void 0; -// TODO: Remove this once https://crrev.com/c/4548290 is stably in Chromium. -// `Input.dispatchKeyboardEvent` will automatically handle these conversions. -exports.KeyToKeyCode = { - '0': 48, - '1': 49, - '2': 50, - '3': 51, - '4': 52, - '5': 53, - '6': 54, - '7': 55, - '8': 56, - '9': 57, - Abort: 3, - Help: 6, - Backspace: 8, - Tab: 9, - Numpad5: 12, - NumpadEnter: 13, - Enter: 13, - '\\r': 13, - '\\n': 13, - ShiftLeft: 16, - ShiftRight: 16, - ControlLeft: 17, - ControlRight: 17, - AltLeft: 18, - AltRight: 18, - Pause: 19, - CapsLock: 20, - Escape: 27, - Convert: 28, - NonConvert: 29, - Space: 32, - Numpad9: 33, - PageUp: 33, - Numpad3: 34, - PageDown: 34, - End: 35, - Numpad1: 35, - Home: 36, - Numpad7: 36, - ArrowLeft: 37, - Numpad4: 37, - Numpad8: 38, - ArrowUp: 38, - ArrowRight: 39, - Numpad6: 39, - Numpad2: 40, - ArrowDown: 40, - Select: 41, - Open: 43, - PrintScreen: 44, - Insert: 45, - Numpad0: 45, - Delete: 46, - NumpadDecimal: 46, - Digit0: 48, - Digit1: 49, - Digit2: 50, - Digit3: 51, - Digit4: 52, - Digit5: 53, - Digit6: 54, - Digit7: 55, - Digit8: 56, - Digit9: 57, - KeyA: 65, - KeyB: 66, - KeyC: 67, - KeyD: 68, - KeyE: 69, - KeyF: 70, - KeyG: 71, - KeyH: 72, - KeyI: 73, - KeyJ: 74, - KeyK: 75, - KeyL: 76, - KeyM: 77, - KeyN: 78, - KeyO: 79, - KeyP: 80, - KeyQ: 81, - KeyR: 82, - KeyS: 83, - KeyT: 84, - KeyU: 85, - KeyV: 86, - KeyW: 87, - KeyX: 88, - KeyY: 89, - KeyZ: 90, - MetaLeft: 91, - MetaRight: 92, - ContextMenu: 93, - NumpadMultiply: 106, - NumpadAdd: 107, - NumpadSubtract: 109, - NumpadDivide: 111, - F1: 112, - F2: 113, - F3: 114, - F4: 115, - F5: 116, - F6: 117, - F7: 118, - F8: 119, - F9: 120, - F10: 121, - F11: 122, - F12: 123, - F13: 124, - F14: 125, - F15: 126, - F16: 127, - F17: 128, - F18: 129, - F19: 130, - F20: 131, - F21: 132, - F22: 133, - F23: 134, - F24: 135, - NumLock: 144, - ScrollLock: 145, - AudioVolumeMute: 173, - AudioVolumeDown: 174, - AudioVolumeUp: 175, - MediaTrackNext: 176, - MediaTrackPrevious: 177, - MediaStop: 178, - MediaPlayPause: 179, - Semicolon: 186, - Equal: 187, - NumpadEqual: 187, - Comma: 188, - Minus: 189, - Period: 190, - Slash: 191, - Backquote: 192, - BracketLeft: 219, - Backslash: 220, - BracketRight: 221, - Quote: 222, - AltGraph: 225, - Props: 247, - Cancel: 3, - Clear: 12, - Shift: 16, - Control: 17, - Alt: 18, - Accept: 30, - ModeChange: 31, - ' ': 32, - Print: 42, - Execute: 43, - '\\u0000': 46, - a: 65, - b: 66, - c: 67, - d: 68, - e: 69, - f: 70, - g: 71, - h: 72, - i: 73, - j: 74, - k: 75, - l: 76, - m: 77, - n: 78, - o: 79, - p: 80, - q: 81, - r: 82, - s: 83, - t: 84, - u: 85, - v: 86, - w: 87, - x: 88, - y: 89, - z: 90, - Meta: 91, - '*': 106, - '+': 107, - '-': 109, - '/': 111, - ';': 186, - '=': 187, - ',': 188, - '.': 190, - '`': 192, - '[': 219, - '\\\\': 220, - ']': 221, - "'": 222, - Attn: 246, - CrSel: 247, - ExSel: 248, - EraseEof: 249, - Play: 250, - ZoomOut: 251, - ')': 48, - '!': 49, - '@': 50, - '#': 51, - $: 52, - '%': 53, - '^': 54, - '&': 55, - '(': 57, - A: 65, - B: 66, - C: 67, - D: 68, - E: 69, - F: 70, - G: 71, - H: 72, - I: 73, - J: 74, - K: 75, - L: 76, - M: 77, - N: 78, - O: 79, - P: 80, - Q: 81, - R: 82, - S: 83, - T: 84, - U: 85, - V: 86, - W: 87, - X: 88, - Y: 89, - Z: 90, - ':': 186, - '<': 188, - _: 189, - '>': 190, - '?': 191, - '~': 192, - '{': 219, - '|': 220, - '}': 221, - '"': 222, - Camera: 44, - EndCall: 95, - VolumeDown: 182, - VolumeUp: 183, -}; -//# sourceMappingURL=USKeyboardLayout.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js.map deleted file mode 100644 index 8137878..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"USKeyboardLayout.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/USKeyboardLayout.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,4EAA4E;AAC5E,6EAA6E;AAChE,QAAA,YAA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AAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,CAAC,EAAE,GAAG;IACN,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,GAAG;CACd,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.d.ts deleted file mode 100644 index 8ec4097..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Returns the normalized key value for a given key according to the table: - * https://w3c.github.io/webdriver/#dfn-normalized-key-value - */ -export declare function getNormalizedKey(value: string): string; -/** - * Returns the key code for a given key according to the table: - * https://w3c.github.io/webdriver/#dfn-shifted-character - */ -export declare function getKeyCode(key: string): string | undefined; -/** - * Returns the location of the key according to the table: - * https://w3c.github.io/webdriver/#dfn-key-location - */ -export declare function getKeyLocation(key: string): 0 | 1 | 2 | 3; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js deleted file mode 100644 index f6fd4db..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js +++ /dev/null @@ -1,497 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getNormalizedKey = getNormalizedKey; -exports.getKeyCode = getKeyCode; -exports.getKeyLocation = getKeyLocation; -/** - * Returns the normalized key value for a given key according to the table: - * https://w3c.github.io/webdriver/#dfn-normalized-key-value - */ -function getNormalizedKey(value) { - switch (value) { - case '\uE000': - return 'Unidentified'; - case '\uE001': - return 'Cancel'; - case '\uE002': - return 'Help'; - case '\uE003': - return 'Backspace'; - case '\uE004': - return 'Tab'; - case '\uE005': - return 'Clear'; - // Specification declares the '\uE006' to be `Return`, but it is not supported by - // Chrome, so fall back to `Enter`, which aligns with WPT. - case '\uE006': - case '\uE007': - return 'Enter'; - case '\uE008': - return 'Shift'; - case '\uE009': - return 'Control'; - case '\uE00A': - return 'Alt'; - case '\uE00B': - return 'Pause'; - case '\uE00C': - return 'Escape'; - case '\uE00D': - return ' '; - case '\uE00E': - return 'PageUp'; - case '\uE00F': - return 'PageDown'; - case '\uE010': - return 'End'; - case '\uE011': - return 'Home'; - case '\uE012': - return 'ArrowLeft'; - case '\uE013': - return 'ArrowUp'; - case '\uE014': - return 'ArrowRight'; - case '\uE015': - return 'ArrowDown'; - case '\uE016': - return 'Insert'; - case '\uE017': - return 'Delete'; - case '\uE018': - return ';'; - case '\uE019': - return '='; - case '\uE01A': - return '0'; - case '\uE01B': - return '1'; - case '\uE01C': - return '2'; - case '\uE01D': - return '3'; - case '\uE01E': - return '4'; - case '\uE01F': - return '5'; - case '\uE020': - return '6'; - case '\uE021': - return '7'; - case '\uE022': - return '8'; - case '\uE023': - return '9'; - case '\uE024': - return '*'; - case '\uE025': - return '+'; - case '\uE026': - return ','; - case '\uE027': - return '-'; - case '\uE028': - return '.'; - case '\uE029': - return '/'; - case '\uE031': - return 'F1'; - case '\uE032': - return 'F2'; - case '\uE033': - return 'F3'; - case '\uE034': - return 'F4'; - case '\uE035': - return 'F5'; - case '\uE036': - return 'F6'; - case '\uE037': - return 'F7'; - case '\uE038': - return 'F8'; - case '\uE039': - return 'F9'; - case '\uE03A': - return 'F10'; - case '\uE03B': - return 'F11'; - case '\uE03C': - return 'F12'; - case '\uE03D': - return 'Meta'; - case '\uE040': - return 'ZenkakuHankaku'; - case '\uE050': - return 'Shift'; - case '\uE051': - return 'Control'; - case '\uE052': - return 'Alt'; - case '\uE053': - return 'Meta'; - case '\uE054': - return 'PageUp'; - case '\uE055': - return 'PageDown'; - case '\uE056': - return 'End'; - case '\uE057': - return 'Home'; - case '\uE058': - return 'ArrowLeft'; - case '\uE059': - return 'ArrowUp'; - case '\uE05A': - return 'ArrowRight'; - case '\uE05B': - return 'ArrowDown'; - case '\uE05C': - return 'Insert'; - case '\uE05D': - return 'Delete'; - default: - return value; - } -} -/** - * Returns the key code for a given key according to the table: - * https://w3c.github.io/webdriver/#dfn-shifted-character - */ -function getKeyCode(key) { - switch (key) { - case '`': - case '~': - return 'Backquote'; - case '\\': - case '|': - return 'Backslash'; - case '\uE003': - return 'Backspace'; - case '[': - case '{': - return 'BracketLeft'; - case ']': - case '}': - return 'BracketRight'; - case ',': - case '<': - return 'Comma'; - case '0': - case ')': - return 'Digit0'; - case '1': - case '!': - return 'Digit1'; - case '2': - case '@': - return 'Digit2'; - case '3': - case '#': - return 'Digit3'; - case '4': - case '$': - return 'Digit4'; - case '5': - case '%': - return 'Digit5'; - case '6': - case '^': - return 'Digit6'; - case '7': - case '&': - return 'Digit7'; - case '8': - case '*': - return 'Digit8'; - case '9': - case '(': - return 'Digit9'; - case '=': - case '+': - return 'Equal'; - // The spec declares the '<' to be `IntlBackslash` as well, but it is already covered - // in the `Comma` above. - case '>': - return 'IntlBackslash'; - case 'a': - case 'A': - return 'KeyA'; - case 'b': - case 'B': - return 'KeyB'; - case 'c': - case 'C': - return 'KeyC'; - case 'd': - case 'D': - return 'KeyD'; - case 'e': - case 'E': - return 'KeyE'; - case 'f': - case 'F': - return 'KeyF'; - case 'g': - case 'G': - return 'KeyG'; - case 'h': - case 'H': - return 'KeyH'; - case 'i': - case 'I': - return 'KeyI'; - case 'j': - case 'J': - return 'KeyJ'; - case 'k': - case 'K': - return 'KeyK'; - case 'l': - case 'L': - return 'KeyL'; - case 'm': - case 'M': - return 'KeyM'; - case 'n': - case 'N': - return 'KeyN'; - case 'o': - case 'O': - return 'KeyO'; - case 'p': - case 'P': - return 'KeyP'; - case 'q': - case 'Q': - return 'KeyQ'; - case 'r': - case 'R': - return 'KeyR'; - case 's': - case 'S': - return 'KeyS'; - case 't': - case 'T': - return 'KeyT'; - case 'u': - case 'U': - return 'KeyU'; - case 'v': - case 'V': - return 'KeyV'; - case 'w': - case 'W': - return 'KeyW'; - case 'x': - case 'X': - return 'KeyX'; - case 'y': - case 'Y': - return 'KeyY'; - case 'z': - case 'Z': - return 'KeyZ'; - case '-': - case '_': - return 'Minus'; - case '.': - return 'Period'; - case "'": - case '"': - return 'Quote'; - case ';': - case ':': - return 'Semicolon'; - case '/': - case '?': - return 'Slash'; - case '\uE00A': - return 'AltLeft'; - case '\uE052': - return 'AltRight'; - case '\uE009': - return 'ControlLeft'; - case '\uE051': - return 'ControlRight'; - case '\uE006': - return 'Enter'; - case '\uE00B': - return 'Pause'; - case '\uE03D': - return 'MetaLeft'; - case '\uE053': - return 'MetaRight'; - case '\uE008': - return 'ShiftLeft'; - case '\uE050': - return 'ShiftRight'; - case ' ': - case '\uE00D': - return 'Space'; - case '\uE004': - return 'Tab'; - case '\uE017': - return 'Delete'; - case '\uE010': - return 'End'; - case '\uE002': - return 'Help'; - case '\uE011': - return 'Home'; - case '\uE016': - return 'Insert'; - case '\uE00F': - return 'PageDown'; - case '\uE00E': - return 'PageUp'; - case '\uE015': - return 'ArrowDown'; - case '\uE012': - return 'ArrowLeft'; - case '\uE014': - return 'ArrowRight'; - case '\uE013': - return 'ArrowUp'; - case '\uE00C': - return 'Escape'; - case '\uE031': - return 'F1'; - case '\uE032': - return 'F2'; - case '\uE033': - return 'F3'; - case '\uE034': - return 'F4'; - case '\uE035': - return 'F5'; - case '\uE036': - return 'F6'; - case '\uE037': - return 'F7'; - case '\uE038': - return 'F8'; - case '\uE039': - return 'F9'; - case '\uE03A': - return 'F10'; - case '\uE03B': - return 'F11'; - case '\uE03C': - return 'F12'; - case '\uE019': - return 'NumpadEqual'; - case '\uE01A': - case '\uE05C': - return 'Numpad0'; - case '\uE01B': - case '\uE056': - return 'Numpad1'; - case '\uE01C': - case '\uE05B': - return 'Numpad2'; - case '\uE01D': - case '\uE055': - return 'Numpad3'; - case '\uE01E': - case '\uE058': - return 'Numpad4'; - case '\uE01F': - return 'Numpad5'; - case '\uE020': - case '\uE05A': - return 'Numpad6'; - case '\uE021': - case '\uE057': - return 'Numpad7'; - case '\uE022': - case '\uE059': - return 'Numpad8'; - case '\uE023': - case '\uE054': - return 'Numpad9'; - case '\uE025': - return 'NumpadAdd'; - case '\uE026': - return 'NumpadComma'; - case '\uE028': - case '\uE05D': - return 'NumpadDecimal'; - case '\uE029': - return 'NumpadDivide'; - case '\uE007': - return 'NumpadEnter'; - case '\uE024': - return 'NumpadMultiply'; - case '\uE027': - return 'NumpadSubtract'; - default: - return; - } -} -/** - * Returns the location of the key according to the table: - * https://w3c.github.io/webdriver/#dfn-key-location - */ -function getKeyLocation(key) { - switch (key) { - case '\uE007': - case '\uE008': - case '\uE009': - case '\uE00A': - case '\uE03D': - return 1; - case '\uE019': - case '\uE01A': - case '\uE01B': - case '\uE01C': - case '\uE01D': - case '\uE01E': - case '\uE01F': - case '\uE020': - case '\uE021': - case '\uE022': - case '\uE023': - case '\uE024': - case '\uE025': - case '\uE026': - case '\uE027': - case '\uE028': - case '\uE029': - case '\uE054': - case '\uE055': - case '\uE056': - case '\uE057': - case '\uE058': - case '\uE059': - case '\uE05A': - case '\uE05B': - case '\uE05C': - case '\uE05D': - return 3; - case '\uE050': - case '\uE051': - case '\uE052': - case '\uE053': - return 2; - default: - return 0; - } -} -//# sourceMappingURL=keyUtils.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js.map deleted file mode 100644 index 43af8d6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keyUtils.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/keyUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAMH,4CAkJC;AAMD,gCA8QC;AAMD,wCA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No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.d.ts deleted file mode 100644 index 1043492..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { type LoggerFn } from '../../../utils/log.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -export declare class LogManager { - #private; - private constructor(); - static create(cdpTarget: CdpTarget, realmStorage: RealmStorage, eventManager: EventManager, logger?: LoggerFn): LogManager; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js deleted file mode 100644 index 4d90761..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js +++ /dev/null @@ -1,187 +0,0 @@ -"use strict"; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LogManager = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const log_js_1 = require("../../../utils/log.js"); -const logHelper_js_1 = require("./logHelper.js"); -/** Converts CDP StackTrace object to BiDi StackTrace object. */ -function getBidiStackTrace(cdpStackTrace) { - const stackFrames = cdpStackTrace?.callFrames.map((callFrame) => { - return { - columnNumber: callFrame.columnNumber, - functionName: callFrame.functionName, - lineNumber: callFrame.lineNumber, - url: callFrame.url, - }; - }); - return stackFrames ? { callFrames: stackFrames } : undefined; -} -function getLogLevel(consoleApiType) { - if (["error" /* Log.Level.Error */, 'assert'].includes(consoleApiType)) { - return "error" /* Log.Level.Error */; - } - if (["debug" /* Log.Level.Debug */, 'trace'].includes(consoleApiType)) { - return "debug" /* Log.Level.Debug */; - } - if (["warn" /* Log.Level.Warn */, 'warning'].includes(consoleApiType)) { - return "warn" /* Log.Level.Warn */; - } - return "info" /* Log.Level.Info */; -} -function getLogMethod(consoleApiType) { - switch (consoleApiType) { - case 'warning': - return 'warn'; - case 'startGroup': - return 'group'; - case 'startGroupCollapsed': - return 'groupCollapsed'; - case 'endGroup': - return 'groupEnd'; - } - return consoleApiType; -} -class LogManager { - #eventManager; - #realmStorage; - #cdpTarget; - #logger; - constructor(cdpTarget, realmStorage, eventManager, logger) { - this.#cdpTarget = cdpTarget; - this.#realmStorage = realmStorage; - this.#eventManager = eventManager; - this.#logger = logger; - } - static create(cdpTarget, realmStorage, eventManager, logger) { - const logManager = new _a(cdpTarget, realmStorage, eventManager, logger); - logManager.#initializeEntryAddedEventListener(); - return logManager; - } - /** - * Heuristic serialization of CDP remote object. If possible, return the BiDi value - * without deep serialization. - */ - async #heuristicSerializeArg(arg, realm) { - switch (arg.type) { - // TODO: Implement regexp, array, object, map and set heuristics base on - // preview. - case 'undefined': - return { type: 'undefined' }; - case 'boolean': - return { type: 'boolean', value: arg.value }; - case 'string': - return { type: 'string', value: arg.value }; - case 'number': - // The value can be either a number or a string like `Infinity` or `-0`. - return { type: 'number', value: arg.unserializableValue ?? arg.value }; - case 'bigint': - if (arg.unserializableValue !== undefined && - arg.unserializableValue[arg.unserializableValue.length - 1] === 'n') { - return { - type: arg.type, - value: arg.unserializableValue.slice(0, -1), - }; - } - // Unexpected bigint value, fall back to CDP deep serialization. - break; - case 'object': - if (arg.subtype === 'null') { - return { type: 'null' }; - } - // Fall back to CDP deep serialization. - break; - default: - // Fall back to CDP deep serialization. - break; - } - // Fall back to CDP deep serialization. - return await realm.serializeCdpObject(arg, "none" /* Script.ResultOwnership.None */); - } - #initializeEntryAddedEventListener() { - this.#cdpTarget.cdpClient.on('Runtime.consoleAPICalled', (params) => { - // Try to find realm by `cdpSessionId` and `executionContextId`, - // if provided. - const realm = this.#realmStorage.findRealm({ - cdpSessionId: this.#cdpTarget.cdpSessionId, - executionContextId: params.executionContextId, - }); - if (realm === undefined) { - // Ignore exceptions not attached to any realm. - this.#logger?.(log_js_1.LogType.cdp, params); - return; - } - const argsPromise = Promise.all(params.args.map((arg) => this.#heuristicSerializeArg(arg, realm))); - for (const browsingContext of realm.associatedBrowsingContexts) { - this.#eventManager.registerPromiseEvent(argsPromise.then((args) => ({ - kind: 'success', - value: { - type: 'event', - method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded, - params: { - level: getLogLevel(params.type), - source: realm.source, - text: (0, logHelper_js_1.getRemoteValuesText)(args, true), - timestamp: Math.round(params.timestamp), - stackTrace: getBidiStackTrace(params.stackTrace), - type: 'console', - method: getLogMethod(params.type), - args, - }, - }, - }), (error) => ({ - kind: 'error', - error, - })), browsingContext.id, protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded); - } - }); - this.#cdpTarget.cdpClient.on('Runtime.exceptionThrown', (params) => { - // Try to find realm by `cdpSessionId` and `executionContextId`, - // if provided. - const realm = this.#realmStorage.findRealm({ - cdpSessionId: this.#cdpTarget.cdpSessionId, - executionContextId: params.exceptionDetails.executionContextId, - }); - if (realm === undefined) { - // Ignore exceptions not attached to any realm. - this.#logger?.(log_js_1.LogType.cdp, params); - return; - } - for (const browsingContext of realm.associatedBrowsingContexts) { - this.#eventManager.registerPromiseEvent(_a.#getExceptionText(params, realm).then((text) => ({ - kind: 'success', - value: { - type: 'event', - method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded, - params: { - level: "error" /* Log.Level.Error */, - source: realm.source, - text, - timestamp: Math.round(params.timestamp), - stackTrace: getBidiStackTrace(params.exceptionDetails.stackTrace), - type: 'javascript', - }, - }, - }), (error) => ({ - kind: 'error', - error, - })), browsingContext.id, protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded); - } - }); - } - /** - * Try the best to get the exception text. - */ - static async #getExceptionText(params, realm) { - if (!params.exceptionDetails.exception) { - return params.exceptionDetails.text; - } - if (realm === undefined) { - return JSON.stringify(params.exceptionDetails.exception); - } - return await realm.stringifyObject(params.exceptionDetails.exception); - } -} -exports.LogManager = LogManager; -_a = LogManager; -//# sourceMappingURL=LogManager.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js.map deleted file mode 100644 index ca26247..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LogManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/log/LogManager.ts"],"names":[],"mappings":";;;;AAkBA,+DAAwE;AACxE,kDAA6D;AAM7D,iDAAmD;AAEnD,gEAAgE;AAChE,SAAS,iBAAiB,CACxB,aAAsD;IAEtD,MAAM,WAAW,GAAG,aAAa,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QAC9D,OAAO;YACL,YAAY,EAAE,SAAS,CAAC,YAAY;YACpC,YAAY,EAAE,SAAS,CAAC,YAAY;YACpC,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,GAAG,EAAE,SAAS,CAAC,GAAG;SACnB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC,CAAC,CAAC,EAAC,UAAU,EAAE,WAAW,EAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7D,CAAC;AAED,SAAS,WAAW,CAAC,cAAsB;IACzC,IAAI,gCAAkB,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;QACzD,qCAAuB;IACzB,CAAC;IACD,IAAI,gCAAkB,OAAO,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;QACxD,qCAAuB;IACzB,CAAC;IACD,IAAI,8BAAiB,SAAS,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;QACzD,mCAAsB;IACxB,CAAC;IACD,mCAAsB;AACxB,CAAC;AAED,SAAS,YAAY,CAAC,c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AAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAC5B,MAA6C,EAC7C,KAAa;QAEb,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC;QACtC,CAAC;QACD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,MAAM,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACxE,CAAC;CACF;AA/LD,gCA+LC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.d.ts deleted file mode 100644 index 61f9e4f..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Script } from '../../../protocol/protocol.js'; -/** - * @param args input remote values to be format printed - * @return parsed text of the remote values in specific format - */ -export declare function logMessageFormatter(args: Script.RemoteValue[]): string; -export declare function getRemoteValuesText(args: Script.RemoteValue[], formatText: boolean): string; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js deleted file mode 100644 index 2793733..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js +++ /dev/null @@ -1,172 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.logMessageFormatter = logMessageFormatter; -exports.getRemoteValuesText = getRemoteValuesText; -const assert_js_1 = require("../../../utils/assert.js"); -const specifiers = ['%s', '%d', '%i', '%f', '%o', '%O', '%c']; -function isFormatSpecifier(str) { - return specifiers.some((spec) => str.includes(spec)); -} -/** - * @param args input remote values to be format printed - * @return parsed text of the remote values in specific format - */ -function logMessageFormatter(args) { - let output = ''; - const argFormat = args[0].value.toString(); - const argValues = args.slice(1, undefined); - const tokens = argFormat.split(new RegExp(specifiers.map((spec) => `(${spec})`).join('|'), 'g')); - for (const token of tokens) { - if (token === undefined || token === '') { - continue; - } - if (isFormatSpecifier(token)) { - const arg = argValues.shift(); - // raise an exception when less value is provided - (0, assert_js_1.assert)(arg, `Less value is provided: "${getRemoteValuesText(args, false)}"`); - if (token === '%s') { - output += stringFromArg(arg); - } - else if (token === '%d' || token === '%i') { - if (arg.type === 'bigint' || - arg.type === 'number' || - arg.type === 'string') { - output += parseInt(arg.value.toString(), 10); - } - else { - output += 'NaN'; - } - } - else if (token === '%f') { - if (arg.type === 'bigint' || - arg.type === 'number' || - arg.type === 'string') { - output += parseFloat(arg.value.toString()); - } - else { - output += 'NaN'; - } - } - else { - // %o, %O, %c - output += toJson(arg); - } - } - else { - output += token; - } - } - // raise an exception when more value is provided - if (argValues.length > 0) { - throw new Error(`More value is provided: "${getRemoteValuesText(args, false)}"`); - } - return output; -} -/** - * @param arg input remote value to be parsed - * @return parsed text of the remote value - * - * input: {"type": "number", "value": 1} - * output: 1 - * - * input: {"type": "string", "value": "abc"} - * output: "abc" - * - * input: {"type": "object", "value": [["id", {"type": "number", "value": 1}]]} - * output: '{"id": 1}' - * - * input: {"type": "object", "value": [["font-size", {"type": "string", "value": "20px"}]]} - * output: '{"font-size": "20px"}' - */ -function toJson(arg) { - // arg type validation - if (arg.type !== 'array' && - arg.type !== 'bigint' && - arg.type !== 'date' && - arg.type !== 'number' && - arg.type !== 'object' && - arg.type !== 'string') { - return stringFromArg(arg); - } - if (arg.type === 'bigint') { - return `${arg.value.toString()}n`; - } - if (arg.type === 'number') { - return arg.value.toString(); - } - if (['date', 'string'].includes(arg.type)) { - return JSON.stringify(arg.value); - } - if (arg.type === 'object') { - return `{${arg.value - .map((pair) => { - return `${JSON.stringify(pair[0])}:${toJson(pair[1])}`; - }) - .join(',')}}`; - } - if (arg.type === 'array') { - return `[${arg.value?.map((val) => toJson(val)).join(',') ?? ''}]`; - } - throw Error(`Invalid value type: ${arg}`); -} -function stringFromArg(arg) { - if (!Object.hasOwn(arg, 'value')) { - return arg.type; - } - switch (arg.type) { - case 'string': - case 'number': - case 'boolean': - case 'bigint': - return String(arg.value); - case 'regexp': - return `/${arg.value.pattern}/${arg.value.flags ?? ''}`; - case 'date': - return new Date(arg.value).toString(); - case 'object': - return `Object(${arg.value?.length ?? ''})`; - case 'array': - return `Array(${arg.value?.length ?? ''})`; - case 'map': - return `Map(${arg.value?.length})`; - case 'set': - return `Set(${arg.value?.length})`; - default: - return arg.type; - } -} -function getRemoteValuesText(args, formatText) { - const arg = args[0]; - if (!arg) { - return ''; - } - // if args[0] is a format specifier, format the args as output - if (arg.type === 'string' && - isFormatSpecifier(arg.value.toString()) && - formatText) { - return logMessageFormatter(args); - } - // if args[0] is not a format specifier, just join the args with \u0020 (unicode 'SPACE') - return args - .map((arg) => { - return stringFromArg(arg); - }) - .join('\u0020'); -} -//# sourceMappingURL=logHelper.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js.map deleted file mode 100644 index 37b3cdd..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logHelper.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/log/logHelper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAeH,kDA0DC;AAuFD,kDAyBC;AAtLD,wDAAgD;AAEhD,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAE9D,SAAS,iBAAiB,CAAC,GAAW;IACpC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AACvD,CAAC;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,IAA0B;IAC5D,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,MAAM,SAAS,GAAI,IAAI,CAAC,CAAC,CAAmC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC9E,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAC5B,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CACjE,CAAC;IAEF,KAAK,MAA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AAI,EAAE,GAAG,CAAC;QAC7C,KAAK,KAAK;YACR,OAAO,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC;QACrC,KAAK,KAAK;YACR,OAAO,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC;QAErC;YACE,OAAO,GAAG,CAAC,IAAI,CAAC;IACpB,CAAC;AACH,CAAC;AAED,SAAgB,mBAAmB,CACjC,IAA0B,EAC1B,UAAmB;IAEnB,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAEpB,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,8DAA8D;IAC9D,IACE,GAAG,CAAC,IAAI,KAAK,QAAQ;QACrB,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACvC,UAAU,EACV,CAAC;QACD,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,yFAAyF;IACzF,OAAO,IAAI;SACR,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACX,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC,CAAC;SACD,IAAI,CAAC,QAAQ,CAAC,CAAC;AACpB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/CollectorsStorage.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/CollectorsStorage.d.ts deleted file mode 100644 index 588dd29..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/CollectorsStorage.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Browser, BrowsingContext } from '../../../protocol/generated/webdriver-bidi.js'; -import { Network } from '../../../protocol/generated/webdriver-bidi.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { NetworkRequest } from './NetworkRequest.js'; -export declare class CollectorsStorage { - #private; - constructor(maxEncodedDataSize: number, logger?: LoggerFn); - addDataCollector(params: Network.AddDataCollectorParameters): `${string}-${string}-${string}-${string}-${string}`; - isCollected(requestId: Network.Request, dataType?: Network.DataType, collectorId?: string): boolean; - disownData(requestId: Network.Request, dataType: Network.DataType, collectorId?: string): void; - collectIfNeeded(request: NetworkRequest, dataType: Network.DataType, topLevelBrowsingContext: BrowsingContext.BrowsingContext, userContext: Browser.UserContext): void; - removeDataCollector(collectorId: Network.Collector): Network.Request[]; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/CollectorsStorage.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/CollectorsStorage.js deleted file mode 100644 index b37a3ea..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/CollectorsStorage.js +++ /dev/null @@ -1,153 +0,0 @@ -"use strict"; -/* - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CollectorsStorage = void 0; -const ErrorResponse_js_1 = require("../../../protocol/ErrorResponse.js"); -const log_js_1 = require("../../../utils/log.js"); -const uuid_js_1 = require("../../../utils/uuid.js"); -class CollectorsStorage { - #collectors = new Map(); - #responseCollectors = new Map(); - #requestBodyCollectors = new Map(); - #maxEncodedDataSize; - #logger; - constructor(maxEncodedDataSize, logger) { - this.#maxEncodedDataSize = maxEncodedDataSize; - this.#logger = logger; - } - addDataCollector(params) { - if (params.maxEncodedDataSize < 1 || - params.maxEncodedDataSize > this.#maxEncodedDataSize) { - // 200 MB is the default limit in CDP: - // https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/inspector/inspector_network_agent.cc;drc=da1f749634c9a401cc756f36c2e6ce233e1c9b4d;l=133 - throw new ErrorResponse_js_1.InvalidArgumentException(`Max encoded data size should be between 1 and ${this.#maxEncodedDataSize}`); - } - const collectorId = (0, uuid_js_1.uuidv4)(); - this.#collectors.set(collectorId, params); - return collectorId; - } - isCollected(requestId, dataType, collectorId) { - if (collectorId !== undefined && !this.#collectors.has(collectorId)) { - throw new ErrorResponse_js_1.NoSuchNetworkCollectorException(`Unknown collector ${collectorId}`); - } - if (dataType === undefined) { - return (this.isCollected(requestId, "response" /* Network.DataType.Response */, collectorId) || - this.isCollected(requestId, "request" /* Network.DataType.Request */, collectorId)); - } - const requestToCollectorsMap = this.#getRequestToCollectorMap(dataType).get(requestId); - if (requestToCollectorsMap === undefined || - requestToCollectorsMap.size === 0) { - return false; - } - if (collectorId === undefined) { - // There is at least 1 collector for the data. - return true; - } - if (!requestToCollectorsMap.has(collectorId)) { - return false; - } - return true; - } - #getRequestToCollectorMap(dataType) { - switch (dataType) { - case "response" /* Network.DataType.Response */: - return this.#responseCollectors; - case "request" /* Network.DataType.Request */: - return this.#requestBodyCollectors; - default: - throw new ErrorResponse_js_1.UnsupportedOperationException(`Unsupported data type ${dataType}`); - } - } - disownData(requestId, dataType, collectorId) { - const requestToCollectorsMap = this.#getRequestToCollectorMap(dataType); - if (collectorId !== undefined) { - requestToCollectorsMap.get(requestId)?.delete(collectorId); - } - if (collectorId === undefined || - requestToCollectorsMap.get(requestId)?.size === 0) { - requestToCollectorsMap.delete(requestId); - } - } - #shouldCollectRequest(collectorId, request, dataType, topLevelBrowsingContext, userContext) { - const collector = this.#collectors.get(collectorId); - if (collector === undefined) { - throw new ErrorResponse_js_1.NoSuchNetworkCollectorException(`Unknown collector ${collectorId}`); - } - if (collector.userContexts && - !collector.userContexts.includes(userContext)) { - // Collector is aimed for a different user context. - return false; - } - if (collector.contexts && - !collector.contexts.includes(topLevelBrowsingContext)) { - // Collector is aimed for a different top-level browsing context. - return false; - } - if (!collector.dataTypes.includes(dataType)) { - // Collector is aimed for a different data type. - return false; - } - if (dataType === "request" /* Network.DataType.Request */ && - request.bodySize > collector.maxEncodedDataSize) { - this.#logger?.(log_js_1.LogType.debug, `Request's ${request.id} body size is too big for the collector ${collectorId}`); - return false; - } - if (dataType === "response" /* Network.DataType.Response */ && - request.encodedResponseBodySize > collector.maxEncodedDataSize) { - this.#logger?.(log_js_1.LogType.debug, `Request's ${request.id} response is too big for the collector ${collectorId}`); - return false; - } - this.#logger?.(log_js_1.LogType.debug, `Collector ${collectorId} collected ${dataType} of ${request.id}`); - return true; - } - collectIfNeeded(request, dataType, topLevelBrowsingContext, userContext) { - const collectorIds = [...this.#collectors.keys()].filter((collectorId) => this.#shouldCollectRequest(collectorId, request, dataType, topLevelBrowsingContext, userContext)); - if (collectorIds.length > 0) { - this.#getRequestToCollectorMap(dataType).set(request.id, new Set(collectorIds)); - } - } - removeDataCollector(collectorId) { - if (!this.#collectors.has(collectorId)) { - throw new ErrorResponse_js_1.NoSuchNetworkCollectorException(`Collector ${collectorId} does not exist`); - } - this.#collectors.delete(collectorId); - const affectedRequests = []; - // Clean up collected responses. - for (const [requestId, collectorIds] of this.#responseCollectors) { - if (collectorIds.has(collectorId)) { - collectorIds.delete(collectorId); - if (collectorIds.size === 0) { - this.#responseCollectors.delete(requestId); - affectedRequests.push(requestId); - } - } - } - for (const [requestId, collectorIds] of this.#requestBodyCollectors) { - if (collectorIds.has(collectorId)) { - collectorIds.delete(collectorId); - if (collectorIds.size === 0) { - this.#requestBodyCollectors.delete(requestId); - affectedRequests.push(requestId); - } - } - } - return affectedRequests; - } -} -exports.CollectorsStorage = CollectorsStorage; -//# sourceMappingURL=CollectorsStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/CollectorsStorage.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/CollectorsStorage.js.map deleted file mode 100644 index df15bd7..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/CollectorsStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CollectorsStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/network/CollectorsStorage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yEAI4C;AAM5C,kDAA6D;AAC7D,oDAA8C;AAM9C,MAAa,iBAAiB;IACnB,WAAW,GAAG,IAAI,GAAG,EAA4B,CAAC;IAClD,mBAAmB,GAAG,IAAI,GAAG,EAAgC,CAAC;IAC9D,sBAAsB,GAAG,IAAI,GAAG,EAAgC,CAAC;IACjE,mBAAmB,CAAS;IAC5B,OAAO,CAAY;IAE5B,YAAY,kBAA0B,EAAE,MAAiB;QACvD,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,gBAAgB,CAAC,MAA0C;QACzD,IACE,MAAM,CAAC,kBAAkB,GAAG,CAAC;YAC7B,MAAM,CAAC,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,EACpD,CAAC;YACD,sCAAsC;YACtC,mLAAmL;YACnL,MAAM,IAAI,2CAAwB,CAChC,iDAAiD,IAAI,CAAC,mBAAmB,EAAE,CAC5E,CAAC;QACJ,CAAC;QACD,MAAM,WAAW,GAAG,IAAA,gBAAM,GAAE,CAAC;QAC7B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAC1C,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,WAAW,CACT,SAA0B,EAC1B,QAA2B,EAC3B,WAAoB;QAEpB,IAAI,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YACpE,MAAM,IAAI,kDAA+B,CACvC,qBAAqB,WAAW,EAAE,CACnC,CAAC;QACJ,CA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,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;oBAC5B,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;oBAC3C,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACnC,CAAC;YACH,CAAC;QACH,CAAC;QACD,KAAK,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,IAAI,IAAI,CAAC,sBAAsB,EAAE,CAAC;YACpE,IAAI,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;gBAClC,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;gBACjC,IAAI,YAAY,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;oBAC5B,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;oBAC9C,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACnC,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF;AArND,8CAqNC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.d.ts deleted file mode 100644 index fbc29a4..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import { Network, type EmptyResult } from '../../../protocol/protocol.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { UserContextStorage } from '../browser/UserContextStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { NetworkStorage } from './NetworkStorage.js'; -import { type ParsedUrlPattern } from './NetworkUtils.js'; -/** Dispatches Network module commands. */ -export declare class NetworkProcessor { - #private; - constructor(browsingContextStorage: BrowsingContextStorage, networkStorage: NetworkStorage, userContextStorage: UserContextStorage, contextConfigStorage: ContextConfigStorage); - addIntercept(params: Network.AddInterceptParameters): Promise; - continueRequest(params: Network.ContinueRequestParameters): Promise; - continueResponse(params: Network.ContinueResponseParameters): Promise; - continueWithAuth(params: Network.ContinueWithAuthParameters): Promise; - failRequest({ request: networkId, }: Network.FailRequestParameters): Promise; - provideResponse(params: Network.ProvideResponseParameters): Promise; - removeIntercept(params: Network.RemoveInterceptParameters): Promise; - setCacheBehavior(params: Network.SetCacheBehaviorParameters): Promise; - /** - * Validate https://fetch.spec.whatwg.org/#header-value - */ - static validateHeaders(headers: Network.Header[]): void; - static isMethodValid(method: string): boolean; - /** - * Attempts to parse the given url. - * Throws an InvalidArgumentException if the url is invalid. - */ - static parseUrlString(url: string): URL; - static parseUrlPatterns(urlPatterns: Network.UrlPattern[]): ParsedUrlPattern[]; - static wrapInterceptionError(error: any): any; - addDataCollector(params: Network.AddDataCollectorParameters): Promise; - getData(params: Network.GetDataParameters): Promise; - removeDataCollector(params: Network.RemoveDataCollectorParameters): Promise; - disownData(params: Network.DisownDataParameters): EmptyResult; - setExtraHeaders(params: Network.SetExtraHeadersParameters): Promise; -} -export declare function parseBiDiHeaders(headers: Network.Header[]): Protocol.Network.Headers; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js deleted file mode 100644 index 751068b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js +++ /dev/null @@ -1,546 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NetworkProcessor = void 0; -exports.parseBiDiHeaders = parseBiDiHeaders; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const NetworkUtils_js_1 = require("./NetworkUtils.js"); -/** Dispatches Network module commands. */ -class NetworkProcessor { - #browsingContextStorage; - #networkStorage; - #userContextStorage; - #contextConfigStorage; - constructor(browsingContextStorage, networkStorage, userContextStorage, contextConfigStorage) { - this.#userContextStorage = userContextStorage; - this.#browsingContextStorage = browsingContextStorage; - this.#networkStorage = networkStorage; - this.#contextConfigStorage = contextConfigStorage; - } - async addIntercept(params) { - this.#browsingContextStorage.verifyTopLevelContextsList(params.contexts); - const urlPatterns = params.urlPatterns ?? []; - const parsedUrlPatterns = NetworkProcessor.parseUrlPatterns(urlPatterns); - const intercept = this.#networkStorage.addIntercept({ - urlPatterns: parsedUrlPatterns, - phases: params.phases, - contexts: params.contexts, - }); - // Adding interception may require enabling CDP Network domains. - await this.#toggleNetwork(); - return { - intercept, - }; - } - async continueRequest(params) { - if (params.url !== undefined) { - NetworkProcessor.parseUrlString(params.url); - } - if (params.method !== undefined) { - if (!NetworkProcessor.isMethodValid(params.method)) { - throw new protocol_js_1.InvalidArgumentException(`Method '${params.method}' is invalid.`); - } - } - if (params.headers) { - NetworkProcessor.validateHeaders(params.headers); - } - const request = this.#getBlockedRequestOrFail(params.request, [ - "beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */, - ]); - try { - await request.continueRequest(params); - } - catch (error) { - throw NetworkProcessor.wrapInterceptionError(error); - } - return {}; - } - async continueResponse(params) { - if (params.headers) { - NetworkProcessor.validateHeaders(params.headers); - } - const request = this.#getBlockedRequestOrFail(params.request, [ - "authRequired" /* Network.InterceptPhase.AuthRequired */, - "responseStarted" /* Network.InterceptPhase.ResponseStarted */, - ]); - try { - await request.continueResponse(params); - } - catch (error) { - throw NetworkProcessor.wrapInterceptionError(error); - } - return {}; - } - async continueWithAuth(params) { - const networkId = params.request; - const request = this.#getBlockedRequestOrFail(networkId, [ - "authRequired" /* Network.InterceptPhase.AuthRequired */, - ]); - await request.continueWithAuth(params); - return {}; - } - async failRequest({ request: networkId, }) { - const request = this.#getRequestOrFail(networkId); - if (request.interceptPhase === "authRequired" /* Network.InterceptPhase.AuthRequired */) { - throw new protocol_js_1.InvalidArgumentException(`Request '${networkId}' in 'authRequired' phase cannot be failed`); - } - if (!request.interceptPhase) { - throw new protocol_js_1.NoSuchRequestException(`No blocked request found for network id '${networkId}'`); - } - await request.failRequest('Failed'); - return {}; - } - async provideResponse(params) { - if (params.headers) { - NetworkProcessor.validateHeaders(params.headers); - } - const request = this.#getBlockedRequestOrFail(params.request, [ - "beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */, - "responseStarted" /* Network.InterceptPhase.ResponseStarted */, - "authRequired" /* Network.InterceptPhase.AuthRequired */, - ]); - try { - await request.provideResponse(params); - } - catch (error) { - throw NetworkProcessor.wrapInterceptionError(error); - } - return {}; - } - /** - * In some states CDP Network and Fetch domains are not required, but in some they have - * to be updated. Whenever potential change in these kinds of states is introduced, - * update the states of all the CDP targets. - */ - async #toggleNetwork() { - await Promise.all(this.#browsingContextStorage.getAllContexts().map((context) => { - return context.cdpTarget.toggleNetwork(); - })); - } - async removeIntercept(params) { - this.#networkStorage.removeIntercept(params.intercept); - // Removing interception may allow for disabling CDP Network domains. - await this.#toggleNetwork(); - return {}; - } - async setCacheBehavior(params) { - const contexts = this.#browsingContextStorage.verifyTopLevelContextsList(params.contexts); - // Change all targets - if (contexts.size === 0) { - this.#networkStorage.defaultCacheBehavior = params.cacheBehavior; - await Promise.all(this.#browsingContextStorage.getAllContexts().map((context) => { - return context.cdpTarget.toggleSetCacheDisabled(); - })); - return {}; - } - const cacheDisabled = params.cacheBehavior === 'bypass'; - await Promise.all([...contexts.values()].map((context) => { - return context.cdpTarget.toggleSetCacheDisabled(cacheDisabled); - })); - return {}; - } - #getRequestOrFail(id) { - const request = this.#networkStorage.getRequestById(id); - if (!request) { - throw new protocol_js_1.NoSuchRequestException(`Network request with ID '${id}' doesn't exist`); - } - return request; - } - #getBlockedRequestOrFail(id, phases) { - const request = this.#getRequestOrFail(id); - if (!request.interceptPhase) { - throw new protocol_js_1.NoSuchRequestException(`No blocked request found for network id '${id}'`); - } - if (request.interceptPhase && !phases.includes(request.interceptPhase)) { - throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${id}' is in '${request.interceptPhase}' phase`); - } - return request; - } - /** - * Validate https://fetch.spec.whatwg.org/#header-value - */ - static validateHeaders(headers) { - for (const header of headers) { - let headerValue; - if (header.value.type === 'string') { - headerValue = header.value.value; - } - else { - headerValue = atob(header.value.value); - } - if (headerValue !== headerValue.trim() || - headerValue.includes('\n') || - headerValue.includes('\0')) { - throw new protocol_js_1.InvalidArgumentException(`Header value '${headerValue}' is not acceptable value`); - } - } - } - static isMethodValid(method) { - // https://httpwg.org/specs/rfc9110.html#method.overview - return /^[!#$%&'*+\-.^_`|~a-zA-Z\d]+$/.test(method); - } - /** - * Attempts to parse the given url. - * Throws an InvalidArgumentException if the url is invalid. - */ - static parseUrlString(url) { - try { - return new URL(url); - } - catch (error) { - throw new protocol_js_1.InvalidArgumentException(`Invalid URL '${url}': ${error}`); - } - } - static parseUrlPatterns(urlPatterns) { - return urlPatterns.map((urlPattern) => { - let patternUrl = ''; - let hasProtocol = true; - let hasHostname = true; - let hasPort = true; - let hasPathname = true; - let hasSearch = true; - switch (urlPattern.type) { - case 'string': { - patternUrl = unescapeURLPattern(urlPattern.pattern); - break; - } - case 'pattern': { - if (urlPattern.protocol === undefined) { - hasProtocol = false; - patternUrl += 'http'; - } - else { - if (urlPattern.protocol === '') { - throw new protocol_js_1.InvalidArgumentException('URL pattern must specify a protocol'); - } - urlPattern.protocol = unescapeURLPattern(urlPattern.protocol); - if (!urlPattern.protocol.match(/^[a-zA-Z+-.]+$/)) { - throw new protocol_js_1.InvalidArgumentException('Forbidden characters'); - } - patternUrl += urlPattern.protocol; - } - const scheme = patternUrl.toLocaleLowerCase(); - patternUrl += ':'; - if ((0, NetworkUtils_js_1.isSpecialScheme)(scheme)) { - patternUrl += '//'; - } - if (urlPattern.hostname === undefined) { - if (scheme !== 'file') { - patternUrl += 'placeholder'; - } - hasHostname = false; - } - else { - if (urlPattern.hostname === '') { - throw new protocol_js_1.InvalidArgumentException('URL pattern must specify a hostname'); - } - if (urlPattern.protocol === 'file') { - throw new protocol_js_1.InvalidArgumentException(`URL pattern protocol cannot be 'file'`); - } - urlPattern.hostname = unescapeURLPattern(urlPattern.hostname); - let insideBrackets = false; - for (const c of urlPattern.hostname) { - if (c === '/' || c === '?' || c === '#') { - throw new protocol_js_1.InvalidArgumentException(`'/', '?', '#' are forbidden in hostname`); - } - if (!insideBrackets && c === ':') { - throw new protocol_js_1.InvalidArgumentException(`':' is only allowed inside brackets in hostname`); - } - if (c === '[') { - insideBrackets = true; - } - if (c === ']') { - insideBrackets = false; - } - } - patternUrl += urlPattern.hostname; - } - if (urlPattern.port === undefined) { - hasPort = false; - } - else { - if (urlPattern.port === '') { - throw new protocol_js_1.InvalidArgumentException(`URL pattern must specify a port`); - } - urlPattern.port = unescapeURLPattern(urlPattern.port); - patternUrl += ':'; - if (!urlPattern.port.match(/^\d+$/)) { - throw new protocol_js_1.InvalidArgumentException('Forbidden characters'); - } - patternUrl += urlPattern.port; - } - if (urlPattern.pathname === undefined) { - hasPathname = false; - } - else { - urlPattern.pathname = unescapeURLPattern(urlPattern.pathname); - if (urlPattern.pathname[0] !== '/') { - patternUrl += '/'; - } - if (urlPattern.pathname.includes('#') || - urlPattern.pathname.includes('?')) { - throw new protocol_js_1.InvalidArgumentException('Forbidden characters'); - } - patternUrl += urlPattern.pathname; - } - if (urlPattern.search === undefined) { - hasSearch = false; - } - else { - urlPattern.search = unescapeURLPattern(urlPattern.search); - if (urlPattern.search[0] !== '?') { - patternUrl += '?'; - } - if (urlPattern.search.includes('#')) { - throw new protocol_js_1.InvalidArgumentException('Forbidden characters'); - } - patternUrl += urlPattern.search; - } - break; - } - } - const serializePort = (url) => { - const defaultPorts = { - 'ftp:': 21, - 'file:': null, - 'http:': 80, - 'https:': 443, - 'ws:': 80, - 'wss:': 443, - }; - if ((0, NetworkUtils_js_1.isSpecialScheme)(url.protocol) && - defaultPorts[url.protocol] !== null && - (!url.port || String(defaultPorts[url.protocol]) === url.port)) { - return ''; - } - else if (url.port) { - return url.port; - } - return undefined; - }; - try { - const url = new URL(patternUrl); - return { - protocol: hasProtocol ? url.protocol.replace(/:$/, '') : undefined, - hostname: hasHostname ? url.hostname : undefined, - port: hasPort ? serializePort(url) : undefined, - pathname: hasPathname && url.pathname ? url.pathname : undefined, - search: hasSearch ? url.search : undefined, - }; - } - catch (err) { - throw new protocol_js_1.InvalidArgumentException(`${err.message} '${patternUrl}'`); - } - }); - } - static wrapInterceptionError(error) { - // https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/fetch_handler.cc;l=169 - if (error?.message.includes('Invalid header') || - error?.message.includes('Unsafe header')) { - return new protocol_js_1.InvalidArgumentException(error.message); - } - return error; - } - async addDataCollector(params) { - if (params.userContexts !== undefined && params.contexts !== undefined) { - throw new protocol_js_1.InvalidArgumentException("'contexts' and 'userContexts' are mutually exclusive"); - } - if (params.userContexts !== undefined) { - // Assert the user contexts exist. - await this.#userContextStorage.verifyUserContextIdList(params.userContexts); - } - if (params.contexts !== undefined) { - for (const browsingContextId of params.contexts) { - // Assert the browsing context exists and are top-level. - const browsingContext = this.#browsingContextStorage.getContext(browsingContextId); - if (!browsingContext.isTopLevelContext()) { - throw new protocol_js_1.InvalidArgumentException(`Data collectors are available only on top-level browsing contexts`); - } - } - } - const collectorId = this.#networkStorage.addDataCollector(params); - // Adding data collectors may require enabling CDP Network domains. - await this.#toggleNetwork(); - return { collector: collectorId }; - } - async getData(params) { - return await this.#networkStorage.getCollectedData(params); - } - async removeDataCollector(params) { - this.#networkStorage.removeDataCollector(params); - // Removing data collectors may allow disabling CDP Network domains. - await this.#toggleNetwork(); - return {}; - } - disownData(params) { - this.#networkStorage.disownData(params); - return {}; - } - async #getRelatedTopLevelBrowsingContexts(browsingContextIds, userContextIds) { - // Duplicated with EmulationProcessor logic. Consider moving to ConfigStorage. - if (browsingContextIds === undefined && userContextIds === undefined) { - return this.#browsingContextStorage.getTopLevelContexts(); - } - if (browsingContextIds !== undefined && userContextIds !== undefined) { - throw new protocol_js_1.InvalidArgumentException('User contexts and browsing contexts are mutually exclusive'); - } - const result = []; - if (userContextIds !== undefined) { - if (userContextIds.length === 0) { - throw new protocol_js_1.InvalidArgumentException('user context should be provided'); - } - // Verify that all user contexts exist. - await this.#userContextStorage.verifyUserContextIdList(userContextIds); - for (const userContextId of userContextIds) { - const topLevelBrowsingContexts = this.#browsingContextStorage - .getTopLevelContexts() - .filter((browsingContext) => browsingContext.userContext === userContextId); - result.push(...topLevelBrowsingContexts); - } - } - if (browsingContextIds !== undefined) { - if (browsingContextIds.length === 0) { - throw new protocol_js_1.InvalidArgumentException('browsing context should be provided'); - } - for (const browsingContextId of browsingContextIds) { - const browsingContext = this.#browsingContextStorage.getContext(browsingContextId); - if (!browsingContext.isTopLevelContext()) { - throw new protocol_js_1.InvalidArgumentException('The command is only supported on the top-level context'); - } - result.push(browsingContext); - } - } - // Remove duplicates. Compare `BrowsingContextImpl` by reference is correct here, as - // `browsingContextStorage` returns the same instance for the same id. - return [...new Set(result).values()]; - } - async setExtraHeaders(params) { - const affectedBrowsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - const cdpExtraHeaders = parseBiDiHeaders(params.headers); - if (params.userContexts === undefined && params.contexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - extraHeaders: cdpExtraHeaders, - }); - } - if (params.userContexts !== undefined) { - params.userContexts.forEach((userContext) => { - this.#contextConfigStorage.updateUserContextConfig(userContext, { - extraHeaders: cdpExtraHeaders, - }); - }); - } - if (params.contexts !== undefined) { - params.contexts.forEach((browsingContextId) => { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { extraHeaders: cdpExtraHeaders }); - }); - } - await Promise.all(affectedBrowsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing setting. - const extraHeaders = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext).extraHeaders ?? {}; - await context.setExtraHeaders(extraHeaders); - })); - return {}; - } -} -exports.NetworkProcessor = NetworkProcessor; -/** - * See https://w3c.github.io/webdriver-bidi/#unescape-url-pattern - */ -function unescapeURLPattern(pattern) { - const forbidden = new Set(['(', ')', '*', '{', '}']); - let result = ''; - let isEscaped = false; - for (const c of pattern) { - if (!isEscaped) { - if (forbidden.has(c)) { - throw new protocol_js_1.InvalidArgumentException('Forbidden characters'); - } - if (c === '\\') { - isEscaped = true; - continue; - } - } - result += c; - isEscaped = false; - } - return result; -} -// https://fetch.spec.whatwg.org/#header-name -const FORBIDDEN_HEADER_NAME_SYMBOLS = new Set([ - ' ', - '\t', - '\n', - '"', - '(', - ')', - ',', - '/', - ':', - ';', - '<', - '=', - '>', - '?', - '@', - '[', - '\\', - ']', - '{', - '}', -]); -// https://fetch.spec.whatwg.org/#header-value -const FORBIDDEN_HEADER_VALUE_SYMBOLS = new Set(['\0', '\n', '\r']); -function includesChar(str, chars) { - for (const char of str) { - if (chars.has(char)) { - return true; - } - } - return false; -} -// Export for testing. -function parseBiDiHeaders(headers) { - const parsedHeaders = {}; - for (const bidiHeader of headers) { - if (bidiHeader.value.type === 'string') { - const name = bidiHeader.name; - const value = bidiHeader.value.value; - if (name.length === 0) { - throw new protocol_js_1.InvalidArgumentException(`Empty header name is not allowed`); - } - if (includesChar(name, FORBIDDEN_HEADER_NAME_SYMBOLS)) { - throw new protocol_js_1.InvalidArgumentException(`Header name '${name}' contains forbidden symbols`); - } - if (includesChar(value, FORBIDDEN_HEADER_VALUE_SYMBOLS)) { - throw new protocol_js_1.InvalidArgumentException(`Header value '${value}' contains forbidden symbols`); - } - if (value.trim() !== value) { - throw new protocol_js_1.InvalidArgumentException(`Header value should not contain trailing or ending whitespaces`); - } - // BiDi spec does not combine but overrides the headers with the same names. - // https://www.w3.org/TR/webdriver-bidi/#update-headers - parsedHeaders[bidiHeader.name] = bidiHeader.value.value; - } - else { - throw new protocol_js_1.UnsupportedOperationException('Only string headers values are supported'); - } - } - return parsedHeaders; -} -//# sourceMappingURL=NetworkProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js.map deleted file mode 100644 index b4aa8ba..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/network/NetworkProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAyrBH,4CAyCC;AA9tBD,+DAMuC;AAQvC,uDAAyE;AAEzE,0CAA0C;AAC1C,MAAa,gBAAgB;IAClB,uBAAuB,CAAyB;IAChD,eAAe,CAAiB;IAChC,mBAAmB,CAAqB;IACxC,qBAAqB,CAAuB;IAErD,YACE,sBAA8C,EAC9C,cAA8B,EAC9B,kBAAsC,EACtC,oBAA0C;QAE1C,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QAC9C,IAAI,CAAC,uBAAuB,GA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CAAC;QAC1D,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,2CAA6B,CACrC,0CAA0C,CAC3C,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.d.ts deleted file mode 100644 index bb9fd46..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @fileoverview `NetworkRequest` represents a single network request and keeps - * track of all the related CDP events. - */ -import type { Protocol } from 'devtools-protocol'; -import { Network } from '../../../protocol/protocol.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { NetworkStorage } from './NetworkStorage.js'; -/** Abstracts one individual network request. */ -export declare class NetworkRequest { - #private; - static unknownParameter: string; - waitNextPhase: Deferred; - constructor(id: Network.Request, eventManager: EventManager, networkStorage: NetworkStorage, cdpTarget: CdpTarget, redirectCount?: number, logger?: LoggerFn); - get id(): string; - get fetchId(): string | undefined; - /** - * When blocked returns the phase for it - */ - get interceptPhase(): Network.InterceptPhase | undefined; - get url(): string; - get redirectCount(): number; - get cdpTarget(): CdpTarget; - /** CdpTarget can be changed when frame is moving out of process. */ - updateCdpTarget(cdpTarget: CdpTarget): void; - get cdpClient(): import("../../BidiMapper.js").CdpClient; - isRedirecting(): boolean; - get bodySize(): number; - handleRedirect(event: Protocol.Network.RequestWillBeSentEvent): void; - onRequestWillBeSentEvent(event: Protocol.Network.RequestWillBeSentEvent): void; - onRequestWillBeSentExtraInfoEvent(event: Protocol.Network.RequestWillBeSentExtraInfoEvent): void; - onResponseReceivedExtraInfoEvent(event: Protocol.Network.ResponseReceivedExtraInfoEvent): void; - onResponseReceivedEvent(event: Protocol.Network.ResponseReceivedEvent): void; - onServedFromCache(): void; - onLoadingFinishedEvent(event: Protocol.Network.LoadingFinishedEvent): void; - onDataReceivedEvent(event: Protocol.Network.DataReceivedEvent): void; - onLoadingFailedEvent(event: Protocol.Network.LoadingFailedEvent): void; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-failRequest */ - failRequest(errorReason: Protocol.Network.ErrorReason): Promise; - onRequestPaused(event: Protocol.Fetch.RequestPausedEvent): void; - onAuthRequired(event: Protocol.Fetch.AuthRequiredEvent): void; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueRequest */ - continueRequest(overrides?: Omit): Promise; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueResponse */ - continueResponse(overrides?: Omit): Promise; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueWithAuth */ - continueWithAuth(authChallenge: Omit): Promise; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-provideResponse */ - provideResponse(overrides: Omit): Promise; - dispose(): void; - get encodedResponseBodySize(): number; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js deleted file mode 100644 index 221cc88..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js +++ /dev/null @@ -1,894 +0,0 @@ -"use strict"; -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NetworkRequest = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const assert_js_1 = require("../../../utils/assert.js"); -const DefaultMap_js_1 = require("../../../utils/DefaultMap.js"); -const Deferred_js_1 = require("../../../utils/Deferred.js"); -const log_js_1 = require("../../../utils/log.js"); -const NetworkUtils_js_1 = require("./NetworkUtils.js"); -const REALM_REGEX = /(?<=realm=").*(?=")/; -/** Abstracts one individual network request. */ -class NetworkRequest { - static unknownParameter = 'UNKNOWN'; - /** - * Each network request has an associated request id, which is a string - * uniquely identifying that request. - * - * The identifier for a request resulting from a redirect matches that of the - * request that initiated it. - */ - #id; - #fetchId; - /** - * Indicates the network intercept phase, if the request is currently blocked. - * Undefined necessarily implies that the request is not blocked. - */ - #interceptPhase; - #servedFromCache = false; - #redirectCount; - #request = {}; - #requestOverrides; - #responseOverrides; - #response = { - decodedSize: 0, - encodedSize: 0, - }; - #eventManager; - #networkStorage; - #cdpTarget; - #logger; - #emittedEvents = { - [protocol_js_1.ChromiumBidi.Network.EventNames.AuthRequired]: false, - [protocol_js_1.ChromiumBidi.Network.EventNames.BeforeRequestSent]: false, - [protocol_js_1.ChromiumBidi.Network.EventNames.FetchError]: false, - [protocol_js_1.ChromiumBidi.Network.EventNames.ResponseCompleted]: false, - [protocol_js_1.ChromiumBidi.Network.EventNames.ResponseStarted]: false, - }; - waitNextPhase = new Deferred_js_1.Deferred(); - constructor(id, eventManager, networkStorage, cdpTarget, redirectCount = 0, logger) { - this.#id = id; - this.#eventManager = eventManager; - this.#networkStorage = networkStorage; - this.#cdpTarget = cdpTarget; - this.#redirectCount = redirectCount; - this.#logger = logger; - } - get id() { - return this.#id; - } - get fetchId() { - return this.#fetchId; - } - /** - * When blocked returns the phase for it - */ - get interceptPhase() { - return this.#interceptPhase; - } - get url() { - const fragment = this.#request.info?.request.urlFragment ?? - this.#request.paused?.request.urlFragment ?? - ''; - const url = this.#response.paused?.request.url ?? - this.#requestOverrides?.url ?? - this.#response.info?.url ?? - this.#request.auth?.request.url ?? - this.#request.info?.request.url ?? - this.#request.paused?.request.url ?? - _a.unknownParameter; - return `${url}${fragment}`; - } - get redirectCount() { - return this.#redirectCount; - } - get cdpTarget() { - return this.#cdpTarget; - } - /** CdpTarget can be changed when frame is moving out of process. */ - updateCdpTarget(cdpTarget) { - if (cdpTarget !== this.#cdpTarget) { - this.#logger?.(log_js_1.LogType.debugInfo, `Request ${this.id} was moved from ${this.#cdpTarget.id} to ${cdpTarget.id}`); - this.#cdpTarget = cdpTarget; - } - } - get cdpClient() { - return this.#cdpTarget.cdpClient; - } - isRedirecting() { - return Boolean(this.#request.info); - } - #isDataUrl() { - return this.url.startsWith('data:'); - } - #isNonInterceptable() { - return ( - // We can't intercept data urls from CDP - this.#isDataUrl() || - // Cached requests never hit the network - this.#servedFromCache); - } - get #method() { - return (this.#requestOverrides?.method ?? - this.#request.info?.request.method ?? - this.#request.paused?.request.method ?? - this.#request.auth?.request.method ?? - this.#response.paused?.request.method); - } - get #navigationId() { - // Heuristic to determine if this is a navigation request, and if not return null. - if (!this.#request.info || - !this.#request.info.loaderId || - // When we navigate all CDP network events have `loaderId` - // CDP's `loaderId` and `requestId` match when - // that request triggered the loading - this.#request.info.loaderId !== this.#request.info.requestId) { - return null; - } - // Get virtual navigation ID from the browsing context. - return this.#networkStorage.getNavigationId(this.#context ?? undefined); - } - get #cookies() { - let cookies = []; - if (this.#request.extraInfo) { - cookies = this.#request.extraInfo.associatedCookies - .filter(({ blockedReasons }) => { - return !Array.isArray(blockedReasons) || blockedReasons.length === 0; - }) - .map(({ cookie }) => (0, NetworkUtils_js_1.cdpToBiDiCookie)(cookie)); - } - return cookies; - } - #getBodySizeFromHeaders(headers) { - if (headers === undefined) { - return undefined; - } - if (headers['Content-Length'] !== undefined) { - const bodySize = Number.parseInt(headers['Content-Length']); - if (Number.isInteger(bodySize)) { - return bodySize; - } - this.#logger?.(log_js_1.LogType.debugError, "Unexpected non-integer 'Content-Length' header"); - } - // TODO: process `Transfer-Encoding: chunked` case properly. - return undefined; - } - get bodySize() { - if (typeof this.#requestOverrides?.bodySize === 'number') { - return this.#requestOverrides.bodySize; - } - if (this.#request.info?.request.postDataEntries !== undefined) { - return (0, NetworkUtils_js_1.bidiBodySizeFromCdpPostDataEntries)(this.#request.info?.request.postDataEntries); - } - // Try to guess the body size based on the `Content-Length` header. - return (this.#getBodySizeFromHeaders(this.#request.info?.request.headers) ?? - this.#getBodySizeFromHeaders(this.#request.extraInfo?.headers) ?? - 0); - } - get #context() { - const result = this.#response.paused?.frameId ?? - this.#request.info?.frameId ?? - this.#request.paused?.frameId ?? - this.#request.auth?.frameId; - if (result !== undefined) { - return result; - } - // Heuristic for associating a preflight request with context via it's initiator - // request. Useful for preflight requests. - // https://github.com/GoogleChromeLabs/chromium-bidi/issues/3570 - if (this.#request?.info?.initiator.type === 'preflight' && - this.#request?.info?.initiator.requestId !== undefined) { - const maybeInitiator = this.#networkStorage.getRequestById(this.#request?.info?.initiator.requestId); - if (maybeInitiator !== undefined) { - return maybeInitiator.#request.info?.frameId ?? null; - } - } - return null; - } - /** Returns the HTTP status code associated with this request if any. */ - get #statusCode() { - return (this.#responseOverrides?.statusCode ?? - this.#response.paused?.responseStatusCode ?? - this.#response.extraInfo?.statusCode ?? - this.#response.info?.status); - } - get #requestHeaders() { - let headers = []; - if (this.#requestOverrides?.headers) { - const headerMap = new DefaultMap_js_1.DefaultMap(() => []); - for (const header of this.#requestOverrides.headers) { - headerMap.get(header.name).push(header.value.value); - } - for (const [name, value] of headerMap.entries()) { - headers.push({ - name, - value: { - type: 'string', - value: value.join('\n').trimEnd(), - }, - }); - } - } - else { - headers = [ - ...(0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#request.info?.request.headers), - ...(0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#request.extraInfo?.headers), - ]; - } - return headers; - } - get #authChallenges() { - // TODO: get headers from Fetch.requestPaused - if (!this.#response.info) { - return; - } - if (!(this.#statusCode === 401 || this.#statusCode === 407)) { - return undefined; - } - const headerName = this.#statusCode === 401 ? 'WWW-Authenticate' : 'Proxy-Authenticate'; - const authChallenges = []; - for (const [header, value] of Object.entries(this.#response.info.headers)) { - // TODO: Do a proper match based on https://httpwg.org/specs/rfc9110.html#credentials - // Or verify this works - if (header.localeCompare(headerName, undefined, { sensitivity: 'base' }) === 0) { - authChallenges.push({ - scheme: value.split(' ').at(0) ?? '', - realm: value.match(REALM_REGEX)?.at(0) ?? '', - }); - } - } - return authChallenges; - } - get #timings() { - // The timing in the CDP events are provided relative to the event's baseline. - // However, the baseline can be different for different events, and the events have to - // be normalized throughout resource events. Normalize events timestamps by the - // request. - // TODO: Verify this is correct. - const responseTimeOffset = (0, NetworkUtils_js_1.getTiming)((0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.requestTime) - - (0, NetworkUtils_js_1.getTiming)(this.#request.info?.timestamp)); - return { - // TODO: Verify this is correct - timeOrigin: Math.round((0, NetworkUtils_js_1.getTiming)(this.#request.info?.wallTime) * 1000), - // Timing baseline. - // TODO: Verify this is correct. - requestTime: 0, - // TODO: set if redirect detected. - redirectStart: 0, - // TODO: set if redirect detected. - redirectEnd: 0, - // TODO: Verify this is correct - // https://source.chromium.org/chromium/chromium/src/+/main:net/base/load_timing_info.h;l=145 - fetchStart: (0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.workerFetchStart, responseTimeOffset), - // fetchStart: 0, - dnsStart: (0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.dnsStart, responseTimeOffset), - dnsEnd: (0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.dnsEnd, responseTimeOffset), - connectStart: (0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.connectStart, responseTimeOffset), - connectEnd: (0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.connectEnd, responseTimeOffset), - tlsStart: (0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.sslStart, responseTimeOffset), - requestStart: (0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.sendStart, responseTimeOffset), - // https://source.chromium.org/chromium/chromium/src/+/main:net/base/load_timing_info.h;l=196 - responseStart: (0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.receiveHeadersStart, responseTimeOffset), - responseEnd: (0, NetworkUtils_js_1.getTiming)(this.#response.info?.timing?.receiveHeadersEnd, responseTimeOffset), - }; - } - #phaseChanged() { - this.waitNextPhase.resolve(); - this.waitNextPhase = new Deferred_js_1.Deferred(); - } - #interceptsInPhase(phase) { - if (this.#isNonInterceptable() || - !this.#cdpTarget.isSubscribedTo(`network.${phase}`)) { - return new Set(); - } - return this.#networkStorage.getInterceptsForPhase(this, phase); - } - #isBlockedInPhase(phase) { - return this.#interceptsInPhase(phase).size > 0; - } - handleRedirect(event) { - // TODO: use event.redirectResponse; - // Temporary workaround to emit ResponseCompleted event for redirects - this.#response.hasExtraInfo = false; - this.#response.decodedSize = 0; - this.#response.encodedSize = 0; - this.#response.info = event.redirectResponse; - this.#emitEventsIfReady({ - wasRedirected: true, - }); - } - #emitEventsIfReady(options = {}) { - const requestExtraInfoCompleted = - // Flush redirects - options.wasRedirected || - Boolean(this.#response.loadingFailed) || - this.#isDataUrl() || - Boolean(this.#request.extraInfo) || - // If the request is intercepted during the `authRequired` phase, there - // will be no `Network.requestWillBeSentExtraInfo` CDP events. - this.#isBlockedInPhase("authRequired" /* Network.InterceptPhase.AuthRequired */) || - // Requests from cache don't have extra info - this.#servedFromCache || - // Sometimes there is no extra info and the response - // is the only place we can find out - Boolean(this.#response.info && !this.#response.hasExtraInfo); - const noInterceptionExpected = this.#isNonInterceptable(); - const requestInterceptionExpected = !noInterceptionExpected && - this.#isBlockedInPhase("beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */); - const requestInterceptionCompleted = !requestInterceptionExpected || - (requestInterceptionExpected && Boolean(this.#request.paused)); - if (Boolean(this.#request.info) && - (requestInterceptionExpected - ? requestInterceptionCompleted - : requestExtraInfoCompleted)) { - this.#emitEvent(this.#getBeforeRequestEvent.bind(this)); - } - const responseExtraInfoCompleted = Boolean(this.#response.extraInfo) || - // Response from cache don't have extra info - this.#servedFromCache || - // Don't expect extra info if the flag is false - Boolean(this.#response.info && !this.#response.hasExtraInfo); - const responseInterceptionExpected = !noInterceptionExpected && - this.#isBlockedInPhase("responseStarted" /* Network.InterceptPhase.ResponseStarted */); - if (this.#response.info || - (responseInterceptionExpected && Boolean(this.#response.paused))) { - this.#emitEvent(this.#getResponseStartedEvent.bind(this)); - } - const responseInterceptionCompleted = !responseInterceptionExpected || - (responseInterceptionExpected && Boolean(this.#response.paused)); - const loadingFinished = Boolean(this.#response.loadingFailed) || - Boolean(this.#response.loadingFinished); - if (Boolean(this.#response.info) && - responseExtraInfoCompleted && - responseInterceptionCompleted && - (loadingFinished || options.wasRedirected)) { - this.#emitEvent(this.#getResponseReceivedEvent.bind(this)); - this.#networkStorage.disposeRequest(this.id); - } - } - onRequestWillBeSentEvent(event) { - this.#request.info = event; - this.#networkStorage.collectIfNeeded(this, "request" /* Network.DataType.Request */); - this.#emitEventsIfReady(); - } - onRequestWillBeSentExtraInfoEvent(event) { - this.#request.extraInfo = event; - this.#emitEventsIfReady(); - } - onResponseReceivedExtraInfoEvent(event) { - if (event.statusCode >= 300 && - event.statusCode <= 399 && - this.#request.info && - event.headers['location'] === this.#request.info.request.url) { - // We received the Response Extra info for the redirect - // Too late so we need to skip it as it will - // fire wrongly for the last one - return; - } - this.#response.extraInfo = event; - this.#emitEventsIfReady(); - } - onResponseReceivedEvent(event) { - this.#response.hasExtraInfo = event.hasExtraInfo; - this.#response.info = event.response; - this.#networkStorage.collectIfNeeded(this, "response" /* Network.DataType.Response */); - this.#emitEventsIfReady(); - } - onServedFromCache() { - this.#servedFromCache = true; - this.#emitEventsIfReady(); - } - onLoadingFinishedEvent(event) { - this.#response.loadingFinished = event; - this.#emitEventsIfReady(); - } - onDataReceivedEvent(event) { - this.#response.decodedSize += event.dataLength; - this.#response.encodedSize += event.encodedDataLength; - } - onLoadingFailedEvent(event) { - this.#response.loadingFailed = event; - this.#emitEventsIfReady(); - this.#emitEvent(() => { - return { - method: protocol_js_1.ChromiumBidi.Network.EventNames.FetchError, - params: { - ...this.#getBaseEventParams(), - errorText: event.errorText, - }, - }; - }); - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-failRequest */ - async failRequest(errorReason) { - (0, assert_js_1.assert)(this.#fetchId, 'Network Interception not set-up.'); - await this.cdpClient.sendCommand('Fetch.failRequest', { - requestId: this.#fetchId, - errorReason, - }); - this.#interceptPhase = undefined; - } - onRequestPaused(event) { - this.#fetchId = event.requestId; - // CDP https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#event-requestPaused - if (event.responseStatusCode || event.responseErrorReason) { - this.#response.paused = event; - if (this.#isBlockedInPhase("responseStarted" /* Network.InterceptPhase.ResponseStarted */) && - // CDP may emit multiple events for a single request - !this.#emittedEvents[protocol_js_1.ChromiumBidi.Network.EventNames.ResponseStarted] && - // Continue all response that have not enabled Network domain - this.#fetchId !== this.id) { - this.#interceptPhase = "responseStarted" /* Network.InterceptPhase.ResponseStarted */; - } - else { - void this.#continueResponse(); - } - } - else { - this.#request.paused = event; - if (this.#isBlockedInPhase("beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */) && - // CDP may emit multiple events for a single request - !this.#emittedEvents[protocol_js_1.ChromiumBidi.Network.EventNames.BeforeRequestSent] && - // Continue all requests that have not enabled Network domain - this.#fetchId !== this.id) { - this.#interceptPhase = "beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */; - } - else { - void this.#continueRequest(); - } - } - this.#emitEventsIfReady(); - } - onAuthRequired(event) { - this.#fetchId = event.requestId; - this.#request.auth = event; - if (this.#isBlockedInPhase("authRequired" /* Network.InterceptPhase.AuthRequired */) && - // Continue all auth requests that have not enabled Network domain - this.#fetchId !== this.id) { - this.#interceptPhase = "authRequired" /* Network.InterceptPhase.AuthRequired */; - // Make sure the `network.beforeRequestSent` is emitted before - // `network.authRequired`. - this.#emitEventsIfReady(); - } - else { - void this.#continueWithAuth({ - response: 'Default', - }); - } - this.#emitEvent(() => { - return { - method: protocol_js_1.ChromiumBidi.Network.EventNames.AuthRequired, - params: { - ...this.#getBaseEventParams("authRequired" /* Network.InterceptPhase.AuthRequired */), - response: this.#getResponseEventParams(), - }, - }; - }); - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueRequest */ - async continueRequest(overrides = {}) { - const overrideHeaders = this.#getOverrideHeader(overrides.headers, overrides.cookies); - const headers = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(overrideHeaders); - const postData = getCdpBodyFromBiDiBytesValue(overrides.body); - await this.#continueRequest({ - url: overrides.url, - method: overrides.method, - headers, - postData, - }); - this.#requestOverrides = { - url: overrides.url, - method: overrides.method, - headers: overrides.headers, - cookies: overrides.cookies, - bodySize: getSizeFromBiDiBytesValue(overrides.body), - }; - } - async #continueRequest(overrides = {}) { - (0, assert_js_1.assert)(this.#fetchId, 'Network Interception not set-up.'); - await this.cdpClient.sendCommand('Fetch.continueRequest', { - requestId: this.#fetchId, - url: overrides.url, - method: overrides.method, - headers: overrides.headers, - postData: overrides.postData, - }); - this.#interceptPhase = undefined; - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueResponse */ - async continueResponse(overrides = {}) { - if (this.interceptPhase === "authRequired" /* Network.InterceptPhase.AuthRequired */) { - if (overrides.credentials) { - await Promise.all([ - this.waitNextPhase, - await this.#continueWithAuth({ - response: 'ProvideCredentials', - username: overrides.credentials.username, - password: overrides.credentials.password, - }), - ]); - } - else { - // We need to use `ProvideCredentials` - // As `Default` may cancel the request - return await this.#continueWithAuth({ - response: 'ProvideCredentials', - }); - } - } - if (this.#interceptPhase === "responseStarted" /* Network.InterceptPhase.ResponseStarted */) { - const overrideHeaders = this.#getOverrideHeader(overrides.headers, overrides.cookies); - const responseHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(overrideHeaders); - await this.#continueResponse({ - responseCode: overrides.statusCode ?? this.#response.paused?.responseStatusCode, - responsePhrase: overrides.reasonPhrase ?? this.#response.paused?.responseStatusText, - responseHeaders: responseHeaders ?? this.#response.paused?.responseHeaders, - }); - this.#responseOverrides = { - statusCode: overrides.statusCode, - headers: overrideHeaders, - }; - } - } - async #continueResponse({ responseCode, responsePhrase, responseHeaders, } = {}) { - (0, assert_js_1.assert)(this.#fetchId, 'Network Interception not set-up.'); - await this.cdpClient.sendCommand('Fetch.continueResponse', { - requestId: this.#fetchId, - responseCode, - responsePhrase, - responseHeaders, - }); - this.#interceptPhase = undefined; - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueWithAuth */ - async continueWithAuth(authChallenge) { - let username; - let password; - if (authChallenge.action === 'provideCredentials') { - const { credentials } = authChallenge; - username = credentials.username; - password = credentials.password; - } - const response = (0, NetworkUtils_js_1.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction)(authChallenge.action); - await this.#continueWithAuth({ - response, - username, - password, - }); - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-provideResponse */ - async provideResponse(overrides) { - (0, assert_js_1.assert)(this.#fetchId, 'Network Interception not set-up.'); - // We need to pass through if the request is already in - // AuthRequired phase - if (this.interceptPhase === "authRequired" /* Network.InterceptPhase.AuthRequired */) { - // We need to use `ProvideCredentials` - // As `Default` may cancel the request - return await this.#continueWithAuth({ - response: 'ProvideCredentials', - }); - } - // If we don't modify the response - // just continue the request - if (!overrides.body && !overrides.headers) { - return await this.#continueRequest(); - } - const overrideHeaders = this.#getOverrideHeader(overrides.headers, overrides.cookies); - const responseHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(overrideHeaders); - const responseCode = overrides.statusCode ?? this.#statusCode ?? 200; - await this.cdpClient.sendCommand('Fetch.fulfillRequest', { - requestId: this.#fetchId, - responseCode, - responsePhrase: overrides.reasonPhrase, - responseHeaders, - body: getCdpBodyFromBiDiBytesValue(overrides.body), - }); - this.#interceptPhase = undefined; - } - dispose() { - this.waitNextPhase.reject(new Error('waitNextPhase disposed')); - } - async #continueWithAuth(authChallengeResponse) { - (0, assert_js_1.assert)(this.#fetchId, 'Network Interception not set-up.'); - await this.cdpClient.sendCommand('Fetch.continueWithAuth', { - requestId: this.#fetchId, - authChallengeResponse, - }); - this.#interceptPhase = undefined; - } - #emitEvent(getEvent) { - let event; - try { - event = getEvent(); - } - catch (error) { - this.#logger?.(log_js_1.LogType.debugError, error); - return; - } - if (this.#isIgnoredEvent() || - (this.#emittedEvents[event.method] && - // Special case this event can be emitted multiple times - event.method !== protocol_js_1.ChromiumBidi.Network.EventNames.AuthRequired)) { - return; - } - this.#phaseChanged(); - this.#emittedEvents[event.method] = true; - if (this.#context) { - this.#eventManager.registerEvent(Object.assign(event, { - type: 'event', - }), this.#context); - } - else { - this.#eventManager.registerGlobalEvent(Object.assign(event, { - type: 'event', - })); - } - } - #getBaseEventParams(phase) { - const interceptProps = { - isBlocked: false, - }; - if (phase) { - const blockedBy = this.#interceptsInPhase(phase); - interceptProps.isBlocked = blockedBy.size > 0; - if (interceptProps.isBlocked) { - interceptProps.intercepts = [...blockedBy]; - } - } - return { - context: this.#context, - navigation: this.#navigationId, - redirectCount: this.#redirectCount, - request: this.#getRequestData(), - // Timestamp should be in milliseconds, while CDP provides it in seconds. - timestamp: Math.round((0, NetworkUtils_js_1.getTiming)(this.#request.info?.wallTime) * 1000), - // Contains isBlocked and intercepts - ...interceptProps, - }; - } - #getResponseEventParams() { - // Chromium sends wrong extraInfo events for responses served from cache. - // See https://github.com/puppeteer/puppeteer/issues/9965 and - // https://crbug.com/1340398. - if (this.#response.info?.fromDiskCache) { - this.#response.extraInfo = undefined; - } - // TODO: Also this.#response.paused?.responseHeaders have to be merged here. - const cdpHeaders = this.#response.info?.headers ?? {}; - const cdpRawHeaders = this.#response.extraInfo?.headers ?? {}; - for (const [key, value] of Object.entries(cdpRawHeaders)) { - cdpHeaders[key] = value; - } - const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpNetworkHeaders)(cdpHeaders); - const authChallenges = this.#authChallenges; - const response = { - url: this.url, - protocol: this.#response.info?.protocol ?? '', - status: this.#statusCode ?? -1, // TODO: Throw an exception or use some other status code? - statusText: this.#response.info?.statusText || - this.#response.paused?.responseStatusText || - '', - fromCache: this.#response.info?.fromDiskCache || - this.#response.info?.fromPrefetchCache || - this.#servedFromCache, - headers: this.#responseOverrides?.headers ?? headers, - mimeType: this.#response.info?.mimeType || '', - // TODO: this should be the size for the entire HTTP response. - bytesReceived: this.encodedResponseBodySize, - headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers), - bodySize: this.encodedResponseBodySize, - content: { - size: this.#response.decodedSize ?? 0, - }, - ...(authChallenges ? { authChallenges } : {}), - }; - return { - ...response, - 'goog:securityDetails': this.#response.info?.securityDetails, - }; - } - get encodedResponseBodySize() { - return (this.#response.loadingFinished?.encodedDataLength ?? - this.#response.info?.encodedDataLength ?? - this.#response.encodedSize ?? - 0); - } - #getRequestData() { - const headers = this.#requestHeaders; - const request = { - request: this.#id, - url: this.url, - method: this.#method ?? _a.unknownParameter, - headers, - cookies: this.#cookies, - headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers), - bodySize: this.bodySize, - // TODO: populate - destination: this.#getDestination(), - // TODO: populate - initiatorType: this.#getInitiatorType(), - timings: this.#timings, - }; - return { - ...request, - 'goog:postData': this.#request.info?.request?.postData, - 'goog:hasPostData': this.#request.info?.request?.hasPostData, - 'goog:resourceType': this.#request.info?.type, - 'goog:resourceInitiator': this.#request.info?.initiator, - }; - } - /** - * Heuristic trying to guess the destination. - * Specification: https://fetch.spec.whatwg.org/#concept-request-destination. - * Specified values: "audio", "audioworklet", "document", "embed", "font", "frame", - * "iframe", "image", "json", "manifest", "object", "paintworklet", "report", "script", - * "serviceworker", "sharedworker", "style", "track", "video", "webidentity", "worker", - * "xslt". - */ - #getDestination() { - switch (this.#request.info?.type) { - case 'Script': - return 'script'; - case 'Stylesheet': - return 'style'; - case 'Image': - return 'image'; - case 'Document': - // If request to document is initiated by parser, assume it is expected to - // arrive in an iframe. Otherwise, consider it is a navigation and the request - // result will end up in the document. - return this.#request.info?.initiator.type === 'parser' - ? 'iframe' - : 'document'; - default: - return ''; - } - } - /** - * Heuristic trying to guess the initiator type. - * Specification: https://fetch.spec.whatwg.org/#request-initiator-type. - * Specified values: "audio", "beacon", "body", "css", "early-hints", "embed", "fetch", - * "font", "frame", "iframe", "image", "img", "input", "link", "object", "ping", - * "script", "track", "video", "xmlhttprequest", "other". - */ - #getInitiatorType() { - if (this.#request.info?.initiator.type === 'parser') { - switch (this.#request.info?.type) { - case 'Document': - // The request to document is initiated by the parser. Assuming it's an iframe. - return 'iframe'; - case 'Font': - // If the document's url is not the parser's url, assume the resource is loaded - // from css. Otherwise, it's a `font` element. - return this.#request.info?.initiator?.url === - this.#request.info?.documentURL - ? 'font' - : 'css'; - case 'Image': - // If the document's url is not the parser's url, assume the resource is loaded - // from css. Otherwise, it's a `img` element. - return this.#request.info?.initiator?.url === - this.#request.info?.documentURL - ? 'img' - : 'css'; - case 'Script': - return 'script'; - case 'Stylesheet': - return 'link'; - default: - return null; - } - } - if (this.#request?.info?.type === 'Fetch') { - return 'fetch'; - } - return null; - } - #getBeforeRequestEvent() { - (0, assert_js_1.assert)(this.#request.info, 'RequestWillBeSentEvent is not set'); - return { - method: protocol_js_1.ChromiumBidi.Network.EventNames.BeforeRequestSent, - params: { - ...this.#getBaseEventParams("beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */), - initiator: { - type: _a.#getInitiator(this.#request.info.initiator.type), - columnNumber: this.#request.info.initiator.columnNumber, - lineNumber: this.#request.info.initiator.lineNumber, - stackTrace: this.#request.info.initiator.stack, - request: this.#request.info.initiator.requestId, - }, - }, - }; - } - #getResponseStartedEvent() { - return { - method: protocol_js_1.ChromiumBidi.Network.EventNames.ResponseStarted, - params: { - ...this.#getBaseEventParams("responseStarted" /* Network.InterceptPhase.ResponseStarted */), - response: this.#getResponseEventParams(), - }, - }; - } - #getResponseReceivedEvent() { - return { - method: protocol_js_1.ChromiumBidi.Network.EventNames.ResponseCompleted, - params: { - ...this.#getBaseEventParams(), - response: this.#getResponseEventParams(), - }, - }; - } - #isIgnoredEvent() { - const faviconUrl = '/favicon.ico'; - return (this.#request.paused?.request.url.endsWith(faviconUrl) ?? - this.#request.info?.request.url.endsWith(faviconUrl) ?? - false); - } - #getOverrideHeader(headers, cookies) { - if (!headers && !cookies) { - return undefined; - } - let overrideHeaders = headers; - const cookieHeader = (0, NetworkUtils_js_1.networkHeaderFromCookieHeaders)(cookies); - if (cookieHeader && !overrideHeaders) { - overrideHeaders = this.#requestHeaders; - } - if (cookieHeader && overrideHeaders) { - overrideHeaders.filter((header) => header.name.localeCompare('cookie', undefined, { - sensitivity: 'base', - }) !== 0); - overrideHeaders.push(cookieHeader); - } - return overrideHeaders; - } - static #getInitiator(initiatorType) { - switch (initiatorType) { - case 'parser': - case 'script': - case 'preflight': - return initiatorType; - default: - return 'other'; - } - } -} -exports.NetworkRequest = NetworkRequest; -_a = NetworkRequest; -function getCdpBodyFromBiDiBytesValue(body) { - let parsedBody; - if (body?.type === 'string') { - parsedBody = (0, NetworkUtils_js_1.stringToBase64)(body.value); - } - else if (body?.type === 'base64') { - parsedBody = body.value; - } - return parsedBody; -} -function getSizeFromBiDiBytesValue(body) { - if (body?.type === 'string') { - return body.value.length; - } - else if (body?.type === 'base64') { - return atob(body.value).length; - } - return 0; -} -//# sourceMappingURL=NetworkRequest.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js.map deleted file mode 100644 index de10a9d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkRequest.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/network/NetworkRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;AAQH,+DAKuC;AACvC,wDAAgD;AAChD,gEAAwD;AACxD,4DAAoD;AACpD,kDAA6D;AAK7D,uDAU2B;AAE3B,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAE1C,gDAAgD;AAChD,MAAa,cAAc;IACzB,MAAM,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAEpC;;;;;;OAMG;IACH,GAAG,CAAkB;IAErB,QAAQ,CAA4B;IAEpC;;;OAGG;IACH,eAAe,CAA0B;IAEzC,gBAAgB,GAAG,KAAK,CAAC;IAEzB,cAAc,CAAS;IAEvB,QAAQ,GAKJ,EAAE,CAAC;IAEP,iBAAiB,CAMf;IAEF,kBAAkB,CAIhB;IAEF,SAAS,GAWL;QACF,WAAW,EAAE,CAAC;QACd,WAAW,EAAE,CAAC;KACf,CAAC;IAEF,aAAa,CAAe;IAC5B,eAAe,CAAiB;IAChC,UAAU,CAAY;IACtB,OAAO,CAAY;IAEnB,cAAc,GAAqD;QACjE,CAAC,0BAAY,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,KAAK;QACrD,CAAC,0BAAY,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,KAAK;QAC1D,CAAC,0BAAY,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,KAAK;QACnD,CAAC,0BAAY,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,KAAK;QAC1D,CAAC,0BAAY,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,KAAK;KACzD,CAAC;IAEF,aAAa,GAAG,IAAI,sBAAQ,EAAQ,CAAC;IAErC,YACE,EAA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AI,EAAE,IAAI,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC;IACjC,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.d.ts deleted file mode 100644 index 41fa082..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { type BrowsingContext, Network } from '../../../protocol/protocol.js'; -import type { LoggerFn } from '../../../utils/log.js'; -import type { CdpClient } from '../../BidiMapper.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import { NetworkRequest } from './NetworkRequest.js'; -import { type ParsedUrlPattern } from './NetworkUtils.js'; -export declare const MAX_TOTAL_COLLECTED_SIZE = 200000000; -type NetworkInterception = Omit & { - urlPatterns: ParsedUrlPattern[]; -}; -/** Stores network and intercept maps. */ -export declare class NetworkStorage { - #private; - constructor(eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, browserClient: CdpClient, logger?: LoggerFn); - onCdpTargetCreated(cdpTarget: CdpTarget): void; - getCollectedData(params: Network.GetDataParameters): Promise; - collectIfNeeded(request: NetworkRequest, dataType: Network.DataType): void; - getInterceptionStages(browsingContextId: BrowsingContext.BrowsingContext): { - request: boolean; - response: boolean; - auth: boolean; - }; - getInterceptsForPhase(request: NetworkRequest, phase: Network.InterceptPhase): Set; - disposeRequestMap(sessionId: string): void; - /** - * Adds the given entry to the intercept map. - * URL patterns are assumed to be parsed. - * - * @return The intercept ID. - */ - addIntercept(value: NetworkInterception): Network.Intercept; - /** - * Removes the given intercept from the intercept map. - * Throws NoSuchInterceptException if the intercept does not exist. - */ - removeIntercept(intercept: Network.Intercept): void; - getRequestsByTarget(target: CdpTarget): NetworkRequest[]; - getRequestById(id: Network.Request): NetworkRequest | undefined; - getRequestByFetchId(fetchId: Network.Request): NetworkRequest | undefined; - addRequest(request: NetworkRequest): void; - /** - * Disposes the given request, if no collectors targeting it are left. - */ - disposeRequest(id: Network.Request): void; - /** - * Gets the virtual navigation ID for the given navigable ID. - */ - getNavigationId(contextId: string | undefined): string | null; - set defaultCacheBehavior(behavior: Network.SetCacheBehaviorParameters['cacheBehavior']); - get defaultCacheBehavior(): Network.SetCacheBehaviorParameters["cacheBehavior"]; - addDataCollector(params: Network.AddDataCollectorParameters): string; - removeDataCollector(params: Network.RemoveDataCollectorParameters): void; - disownData(params: Network.DisownDataParameters): void; -} -export {}; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js deleted file mode 100644 index a926724..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js +++ /dev/null @@ -1,353 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NetworkStorage = exports.MAX_TOTAL_COLLECTED_SIZE = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const uuid_js_1 = require("../../../utils/uuid.js"); -const CollectorsStorage_js_1 = require("./CollectorsStorage.js"); -const NetworkRequest_js_1 = require("./NetworkRequest.js"); -const NetworkUtils_js_1 = require("./NetworkUtils.js"); -// The default total data size limit in CDP. -// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/inspector/inspector_network_agent.cc;drc=da1f749634c9a401cc756f36c2e6ce233e1c9b4d;l=133 -exports.MAX_TOTAL_COLLECTED_SIZE = 200_000_000; -/** Stores network and intercept maps. */ -class NetworkStorage { - #browsingContextStorage; - #eventManager; - #collectorsStorage; - #logger; - /** - * A map from network request ID to Network Request objects. - * Needed as long as information about requests comes from different events. - */ - #requests = new Map(); - /** A map from intercept ID to track active network intercepts. */ - #intercepts = new Map(); - #defaultCacheBehavior = 'default'; - constructor(eventManager, browsingContextStorage, browserClient, logger) { - this.#browsingContextStorage = browsingContextStorage; - this.#eventManager = eventManager; - this.#collectorsStorage = new CollectorsStorage_js_1.CollectorsStorage(exports.MAX_TOTAL_COLLECTED_SIZE, logger); - browserClient.on('Target.detachedFromTarget', ({ sessionId }) => { - this.disposeRequestMap(sessionId); - }); - this.#logger = logger; - } - /** - * Gets the network request with the given ID, if any. - * Otherwise, creates a new network request with the given ID and cdp target. - */ - #getOrCreateNetworkRequest(id, cdpTarget, redirectCount) { - let request = this.getRequestById(id); - if (redirectCount === undefined && request) { - // Force re-creating requests for redirects. - return request; - } - request = new NetworkRequest_js_1.NetworkRequest(id, this.#eventManager, this, cdpTarget, redirectCount, this.#logger); - this.addRequest(request); - return request; - } - onCdpTargetCreated(cdpTarget) { - const cdpClient = cdpTarget.cdpClient; - // TODO: Wrap into object - const listeners = [ - [ - 'Network.requestWillBeSent', - (params) => { - const request = this.getRequestById(params.requestId); - request?.updateCdpTarget(cdpTarget); - if (request && request.isRedirecting()) { - request.handleRedirect(params); - this.disposeRequest(params.requestId); - this.#getOrCreateNetworkRequest(params.requestId, cdpTarget, request.redirectCount + 1).onRequestWillBeSentEvent(params); - } - else { - this.#getOrCreateNetworkRequest(params.requestId, cdpTarget).onRequestWillBeSentEvent(params); - } - }, - ], - [ - 'Network.requestWillBeSentExtraInfo', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onRequestWillBeSentExtraInfoEvent(params); - }, - ], - [ - 'Network.responseReceived', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onResponseReceivedEvent(params); - }, - ], - [ - 'Network.responseReceivedExtraInfo', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onResponseReceivedExtraInfoEvent(params); - }, - ], - [ - 'Network.requestServedFromCache', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onServedFromCache(); - }, - ], - [ - 'Fetch.requestPaused', - (event) => { - const request = this.#getOrCreateNetworkRequest( - // CDP quirk if the Network domain is not present this is undefined - event.networkId ?? event.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onRequestPaused(event); - }, - ], - [ - 'Fetch.authRequired', - (event) => { - let request = this.getRequestByFetchId(event.requestId); - if (!request) { - request = this.#getOrCreateNetworkRequest(event.requestId, cdpTarget); - } - request.updateCdpTarget(cdpTarget); - request.onAuthRequired(event); - }, - ], - [ - 'Network.dataReceived', - (params) => { - const request = this.getRequestById(params.requestId); - request?.updateCdpTarget(cdpTarget); - request?.onDataReceivedEvent(params); - }, - ], - [ - 'Network.loadingFailed', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onLoadingFailedEvent(params); - }, - ], - [ - 'Network.loadingFinished', - (params) => { - const request = this.getRequestById(params.requestId); - request?.updateCdpTarget(cdpTarget); - request?.onLoadingFinishedEvent(params); - }, - ], - ]; - for (const [event, listener] of listeners) { - cdpClient.on(event, listener); - } - } - async getCollectedData(params) { - if (!this.#collectorsStorage.isCollected(params.request, params.dataType, params.collector)) { - throw new protocol_js_1.NoSuchNetworkDataException(params.collector === undefined - ? `No collected ${params.dataType} data` - : `Collector ${params.collector} didn't collect ${params.dataType} data`); - } - if (params.disown && params.collector === undefined) { - throw new protocol_js_1.InvalidArgumentException('Cannot disown collected data without collector ID'); - } - const request = this.getRequestById(params.request); - if (request === undefined) { - throw new protocol_js_1.NoSuchNetworkDataException(`No data for ${params.request}`); - } - let result = undefined; - switch (params.dataType) { - case "response" /* Network.DataType.Response */: - result = await this.#getCollectedResponseData(request); - break; - case "request" /* Network.DataType.Request */: - result = await this.#getCollectedRequestData(request); - break; - default: - throw new protocol_js_1.UnsupportedOperationException(`Unsupported data type ${params.dataType}`); - } - if (params.disown && params.collector !== undefined) { - this.#collectorsStorage.disownData(request.id, params.dataType, params.collector); - // `disposeRequest` disposes request only if no other collectors for it are left. - this.disposeRequest(request.id); - } - return result; - } - async #getCollectedResponseData(request) { - try { - const responseBody = await request.cdpClient.sendCommand('Network.getResponseBody', { requestId: request.id }); - return { - bytes: { - type: responseBody.base64Encoded ? 'base64' : 'string', - value: responseBody.body, - }, - }; - } - catch (error) { - if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ && - error.message === 'No resource with given identifier found') { - // The data has be gone for whatever reason. - throw new protocol_js_1.NoSuchNetworkDataException(`Response data was disposed`); - } - if (error.code === -32001 /* CdpErrorConstants.CONNECTION_CLOSED */) { - // The request's CDP session is gone. http://b/450771615. - throw new protocol_js_1.NoSuchNetworkDataException(`Response data is disposed after the related page`); - } - throw error; - } - } - async #getCollectedRequestData(request) { - // TODO: handle CDP error in case of the renderer is gone. - const requestPostData = await request.cdpClient.sendCommand('Network.getRequestPostData', { requestId: request.id }); - return { - bytes: { - type: 'string', - value: requestPostData.postData, - }, - }; - } - collectIfNeeded(request, dataType) { - this.#collectorsStorage.collectIfNeeded(request, dataType, request.cdpTarget.topLevelId, request.cdpTarget.userContext); - } - getInterceptionStages(browsingContextId) { - const stages = { - request: false, - response: false, - auth: false, - }; - for (const intercept of this.#intercepts.values()) { - if (intercept.contexts && - !intercept.contexts.includes(browsingContextId)) { - continue; - } - stages.request ||= intercept.phases.includes("beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */); - stages.response ||= intercept.phases.includes("responseStarted" /* Network.InterceptPhase.ResponseStarted */); - stages.auth ||= intercept.phases.includes("authRequired" /* Network.InterceptPhase.AuthRequired */); - } - return stages; - } - getInterceptsForPhase(request, phase) { - if (request.url === NetworkRequest_js_1.NetworkRequest.unknownParameter) { - return new Set(); - } - const intercepts = new Set(); - for (const [interceptId, intercept] of this.#intercepts.entries()) { - if (!intercept.phases.includes(phase) || - (intercept.contexts && - !intercept.contexts.includes(request.cdpTarget.topLevelId))) { - continue; - } - if (intercept.urlPatterns.length === 0) { - intercepts.add(interceptId); - continue; - } - for (const pattern of intercept.urlPatterns) { - if ((0, NetworkUtils_js_1.matchUrlPattern)(pattern, request.url)) { - intercepts.add(interceptId); - break; - } - } - } - return intercepts; - } - disposeRequestMap(sessionId) { - for (const request of this.#requests.values()) { - if (request.cdpClient.sessionId === sessionId) { - this.#requests.delete(request.id); - request.dispose(); - } - } - } - /** - * Adds the given entry to the intercept map. - * URL patterns are assumed to be parsed. - * - * @return The intercept ID. - */ - addIntercept(value) { - const interceptId = (0, uuid_js_1.uuidv4)(); - this.#intercepts.set(interceptId, value); - return interceptId; - } - /** - * Removes the given intercept from the intercept map. - * Throws NoSuchInterceptException if the intercept does not exist. - */ - removeIntercept(intercept) { - if (!this.#intercepts.has(intercept)) { - throw new protocol_js_1.NoSuchInterceptException(`Intercept '${intercept}' does not exist.`); - } - this.#intercepts.delete(intercept); - } - getRequestsByTarget(target) { - const requests = []; - for (const request of this.#requests.values()) { - if (request.cdpTarget === target) { - requests.push(request); - } - } - return requests; - } - getRequestById(id) { - return this.#requests.get(id); - } - getRequestByFetchId(fetchId) { - for (const request of this.#requests.values()) { - if (request.fetchId === fetchId) { - return request; - } - } - return; - } - addRequest(request) { - this.#requests.set(request.id, request); - } - /** - * Disposes the given request, if no collectors targeting it are left. - */ - disposeRequest(id) { - if (this.#collectorsStorage.isCollected(id)) { - // Keep request, as it's data can be accessed later. - return; - } - // TODO: dispose Network data from Chromium once there is a CDP command for that. - this.#requests.delete(id); - } - /** - * Gets the virtual navigation ID for the given navigable ID. - */ - getNavigationId(contextId) { - if (contextId === undefined) { - return null; - } - return (this.#browsingContextStorage.findContext(contextId)?.navigationId ?? null); - } - set defaultCacheBehavior(behavior) { - this.#defaultCacheBehavior = behavior; - } - get defaultCacheBehavior() { - return this.#defaultCacheBehavior; - } - addDataCollector(params) { - return this.#collectorsStorage.addDataCollector(params); - } - removeDataCollector(params) { - const releasedRequests = this.#collectorsStorage.removeDataCollector(params.collector); - releasedRequests.map((request) => this.disposeRequest(request)); - } - disownData(params) { - if (!this.#collectorsStorage.isCollected(params.request, params.dataType, params.collector)) { - throw new protocol_js_1.NoSuchNetworkDataException(`Collector ${params.collector} didn't collect ${params.dataType} data`); - } - this.#collectorsStorage.disownData(params.request, params.dataType, params.collector); - // `disposeRequest` disposes request only if no other collectors for it are left. - this.disposeRequest(params.request); - } -} -exports.NetworkStorage = NetworkStorage; -//# sourceMappingURL=NetworkStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js.map deleted file mode 100644 index fef7bd6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/network/NetworkStorage.ts"],"names":[],"mappings":";;;AAkBA,+DAOuC;AAGvC,oDAA8C;AAM9C,iEAAyD;AACzD,2DAAmD;AACnD,uDAAyE;AAEzE,4CAA4C;AAC5C,mLAAmL;AACtK,QAAA,wBAAwB,GAAG,WAAW,CAAC;AASpD,yCAAyC;AACzC,MAAa,cAAc;IAChB,uBAAuB,CAAyB;IAChD,aAAa,CAAe;IAC5B,kBAAkB,CAAoB;IAEtC,OAAO,CAAY;IAE5B;;;OAGG;IACM,SAAS,GAAG,IAAI,GAAG,EAAmC,CAAC;IAEhE,kEAAkE;IACzD,WAAW,GAAG,IAAI,GAAG,EAA0C,CAAC;IAEzE,qBAAqB,GACnB,SAAS,CAAC;IAEZ,YACE,YAA0B,EAC1B,sBAA8C,EAC9C,aAAwB,EACxB,MAAiB;QAEjB,IAAI,CAAC,uBAAuB,G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IAAI,CAAC,kBAAkB,CAAC,WAAW,CAClC,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,QAAQ,EACf,MAAM,CAAC,SAAS,CACjB,EACD,CAAC;YACD,MAAM,IAAI,wCAA0B,CAClC,aAAa,MAAM,CAAC,SAAS,mBAAmB,MAAM,CAAC,QAAQ,OAAO,CACvE,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAChC,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,QAAQ,EACf,MAAM,CAAC,SAAS,CACjB,CAAC;QACF,iFAAiF;QACjF,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;CACF;AAvfD,wCAufC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.d.ts deleted file mode 100644 index b442727..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @fileoverview Utility functions for the Network module. - */ -import type { Protocol } from 'devtools-protocol'; -import { Network, type Storage } from '../../../protocol/protocol.js'; -export declare function computeHeadersSize(headers: Network.Header[]): number; -export declare function stringToBase64(str: string): string; -/** Converts from CDP Network domain headers to BiDi network headers. */ -export declare function bidiNetworkHeadersFromCdpNetworkHeaders(headers?: Protocol.Network.Headers): Network.Header[]; -/** Converts from CDP Fetch domain headers to BiDi network headers. */ -export declare function bidiNetworkHeadersFromCdpNetworkHeadersEntries(headers?: Protocol.Fetch.HeaderEntry[]): Network.Header[]; -/** Converts from Bidi network headers to CDP Network domain headers. */ -export declare function cdpNetworkHeadersFromBidiNetworkHeaders(headers?: Network.Header[]): Protocol.Network.Headers | undefined; -/** Converts from CDP Fetch domain header entries to Bidi network headers. */ -export declare function bidiNetworkHeadersFromCdpFetchHeaders(headers?: Protocol.Fetch.HeaderEntry[]): Network.Header[]; -/** Converts from Bidi network headers to CDP Fetch domain header entries. */ -export declare function cdpFetchHeadersFromBidiNetworkHeaders(headers?: Network.Header[]): Protocol.Fetch.HeaderEntry[] | undefined; -export declare function networkHeaderFromCookieHeaders(headers?: Network.CookieHeader[]): Network.Header | undefined; -/** Converts from Bidi auth action to CDP auth challenge response. */ -export declare function cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction(action: 'default' | 'cancel' | 'provideCredentials'): "Default" | "CancelAuth" | "ProvideCredentials"; -/** - * Converts from CDP Network domain cookie to BiDi network cookie. - * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie - * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie - */ -export declare function cdpToBiDiCookie(cookie: Protocol.Network.Cookie): Network.Cookie; -/** - * Decodes a byte value to a string. - * @param {Network.BytesValue} value - * @return {string} - */ -export declare function deserializeByteValue(value: Network.BytesValue): string; -/** - * Converts from BiDi set network cookie params to CDP Network domain cookie. - * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie - * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieParam - */ -export declare function bidiToCdpCookie(params: Storage.SetCookieParameters, partitionKey: Storage.PartitionKey): Protocol.Network.CookieParam; -export declare function sameSiteBiDiToCdp(sameSite: Network.SameSite): Protocol.Network.CookieSameSite; -/** - * Returns true if the given protocol is special. - * Special protocols are those that have a default port. - * - * Example inputs: 'http', 'http:' - * - * @see https://url.spec.whatwg.org/#special-scheme - */ -export declare function isSpecialScheme(protocol: string): boolean; -export interface ParsedUrlPattern { - protocol?: string; - hostname?: string; - port?: string; - pathname?: string; - search?: string; -} -/** Matches the given URLPattern against the given URL. */ -export declare function matchUrlPattern(pattern: ParsedUrlPattern, url: string): boolean; -export declare function bidiBodySizeFromCdpPostDataEntries(entries: Protocol.Network.PostDataEntry[]): number; -export declare function getTiming(timing: number | undefined, offset?: number): number; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js deleted file mode 100644 index 31f8cff..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js +++ /dev/null @@ -1,322 +0,0 @@ -"use strict"; -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.computeHeadersSize = computeHeadersSize; -exports.stringToBase64 = stringToBase64; -exports.bidiNetworkHeadersFromCdpNetworkHeaders = bidiNetworkHeadersFromCdpNetworkHeaders; -exports.bidiNetworkHeadersFromCdpNetworkHeadersEntries = bidiNetworkHeadersFromCdpNetworkHeadersEntries; -exports.cdpNetworkHeadersFromBidiNetworkHeaders = cdpNetworkHeadersFromBidiNetworkHeaders; -exports.bidiNetworkHeadersFromCdpFetchHeaders = bidiNetworkHeadersFromCdpFetchHeaders; -exports.cdpFetchHeadersFromBidiNetworkHeaders = cdpFetchHeadersFromBidiNetworkHeaders; -exports.networkHeaderFromCookieHeaders = networkHeaderFromCookieHeaders; -exports.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction = cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction; -exports.cdpToBiDiCookie = cdpToBiDiCookie; -exports.deserializeByteValue = deserializeByteValue; -exports.bidiToCdpCookie = bidiToCdpCookie; -exports.sameSiteBiDiToCdp = sameSiteBiDiToCdp; -exports.isSpecialScheme = isSpecialScheme; -exports.matchUrlPattern = matchUrlPattern; -exports.bidiBodySizeFromCdpPostDataEntries = bidiBodySizeFromCdpPostDataEntries; -exports.getTiming = getTiming; -const ErrorResponse_js_1 = require("../../../protocol/ErrorResponse.js"); -const base64_js_1 = require("../../../utils/base64.js"); -function computeHeadersSize(headers) { - const requestHeaders = headers.reduce((acc, header) => { - return `${acc}${header.name}: ${header.value.value}\r\n`; - }, ''); - return new TextEncoder().encode(requestHeaders).length; -} -function stringToBase64(str) { - return typedArrayToBase64(new TextEncoder().encode(str)); -} -function typedArrayToBase64(typedArray) { - // chunkSize should be less V8 limit on number of arguments! - // https://github.com/v8/v8/blob/d3de848bea727518aee94dd2fd42ba0b62037a27/src/objects/code.h#L444 - const chunkSize = 65534; - const chunks = []; - for (let i = 0; i < typedArray.length; i += chunkSize) { - const chunk = typedArray.subarray(i, i + chunkSize); - chunks.push(String.fromCodePoint.apply(null, chunk)); - } - const binaryString = chunks.join(''); - return btoa(binaryString); -} -/** Converts from CDP Network domain headers to BiDi network headers. */ -function bidiNetworkHeadersFromCdpNetworkHeaders(headers) { - if (!headers) { - return []; - } - return Object.entries(headers).map(([name, value]) => ({ - name, - value: { - type: 'string', - value, - }, - })); -} -/** Converts from CDP Fetch domain headers to BiDi network headers. */ -function bidiNetworkHeadersFromCdpNetworkHeadersEntries(headers) { - if (!headers) { - return []; - } - return headers.map(({ name, value }) => ({ - name, - value: { - type: 'string', - value, - }, - })); -} -/** Converts from Bidi network headers to CDP Network domain headers. */ -function cdpNetworkHeadersFromBidiNetworkHeaders(headers) { - if (headers === undefined) { - return undefined; - } - return headers.reduce((result, header) => { - // TODO: Distinguish between string and bytes? - result[header.name] = header.value.value; - return result; - }, {}); -} -/** Converts from CDP Fetch domain header entries to Bidi network headers. */ -function bidiNetworkHeadersFromCdpFetchHeaders(headers) { - if (!headers) { - return []; - } - return headers.map(({ name, value }) => ({ - name, - value: { - type: 'string', - value, - }, - })); -} -/** Converts from Bidi network headers to CDP Fetch domain header entries. */ -function cdpFetchHeadersFromBidiNetworkHeaders(headers) { - if (headers === undefined) { - return undefined; - } - return headers.map(({ name, value }) => ({ - name, - value: value.value, - })); -} -function networkHeaderFromCookieHeaders(headers) { - if (headers === undefined) { - return undefined; - } - const value = headers.reduce((acc, value, index) => { - if (index > 0) { - acc += ';'; - } - const cookieValue = value.value.type === 'base64' - ? btoa(value.value.value) - : value.value.value; - acc += `${value.name}=${cookieValue}`; - return acc; - }, ''); - return { - name: 'Cookie', - value: { - type: 'string', - value, - }, - }; -} -/** Converts from Bidi auth action to CDP auth challenge response. */ -function cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction(action) { - switch (action) { - case 'default': - return 'Default'; - case 'cancel': - return 'CancelAuth'; - case 'provideCredentials': - return 'ProvideCredentials'; - } -} -/** - * Converts from CDP Network domain cookie to BiDi network cookie. - * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie - * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie - */ -function cdpToBiDiCookie(cookie) { - const result = { - name: cookie.name, - value: { type: 'string', value: cookie.value }, - domain: cookie.domain, - path: cookie.path, - size: cookie.size, - httpOnly: cookie.httpOnly, - secure: cookie.secure, - sameSite: cookie.sameSite === undefined - ? "none" /* Network.SameSite.None */ - : sameSiteCdpToBiDi(cookie.sameSite), - ...(cookie.expires >= 0 ? { expiry: Math.round(cookie.expires) } : undefined), - }; - // Extending with CDP-specific properties with `goog:` prefix. - result[`goog:session`] = cookie.session; - result[`goog:priority`] = cookie.priority; - result[`goog:sourceScheme`] = cookie.sourceScheme; - result[`goog:sourcePort`] = cookie.sourcePort; - if (cookie.partitionKey !== undefined) { - result[`goog:partitionKey`] = cookie.partitionKey; - } - if (cookie.partitionKeyOpaque !== undefined) { - result[`goog:partitionKeyOpaque`] = cookie.partitionKeyOpaque; - } - return result; -} -/** - * Decodes a byte value to a string. - * @param {Network.BytesValue} value - * @return {string} - */ -function deserializeByteValue(value) { - if (value.type === 'base64') { - return (0, base64_js_1.base64ToString)(value.value); - } - return value.value; -} -/** - * Converts from BiDi set network cookie params to CDP Network domain cookie. - * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie - * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieParam - */ -function bidiToCdpCookie(params, partitionKey) { - const deserializedValue = deserializeByteValue(params.cookie.value); - const result = { - name: params.cookie.name, - value: deserializedValue, - domain: params.cookie.domain, - path: params.cookie.path ?? '/', - secure: params.cookie.secure ?? false, - httpOnly: params.cookie.httpOnly ?? false, - ...(partitionKey.sourceOrigin !== undefined && { - partitionKey: { - hasCrossSiteAncestor: false, - // CDP's `partitionKey.topLevelSite` is the BiDi's `partition.sourceOrigin`. - topLevelSite: partitionKey.sourceOrigin, - }, - }), - ...(params.cookie.expiry !== undefined && { - expires: params.cookie.expiry, - }), - ...(params.cookie.sameSite !== undefined && { - sameSite: sameSiteBiDiToCdp(params.cookie.sameSite), - }), - }; - // Extending with CDP-specific properties with `goog:` prefix. - if (params.cookie[`goog:url`] !== undefined) { - result.url = params.cookie[`goog:url`]; - } - if (params.cookie[`goog:priority`] !== undefined) { - result.priority = params.cookie[`goog:priority`]; - } - if (params.cookie[`goog:sourceScheme`] !== undefined) { - result.sourceScheme = params.cookie[`goog:sourceScheme`]; - } - if (params.cookie[`goog:sourcePort`] !== undefined) { - result.sourcePort = params.cookie[`goog:sourcePort`]; - } - return result; -} -function sameSiteCdpToBiDi(sameSite) { - switch (sameSite) { - case 'Strict': - return "strict" /* Network.SameSite.Strict */; - case 'None': - return "none" /* Network.SameSite.None */; - case 'Lax': - return "lax" /* Network.SameSite.Lax */; - default: - // Defaults to `Lax`: - // https://web.dev/articles/samesite-cookies-explained#samesitelax_by_default - return "lax" /* Network.SameSite.Lax */; - } -} -function sameSiteBiDiToCdp(sameSite) { - switch (sameSite) { - case "none" /* Network.SameSite.None */: - return 'None'; - case "strict" /* Network.SameSite.Strict */: - return 'Strict'; - // Defaults to `Lax`: - // https://web.dev/articles/samesite-cookies-explained#samesitelax_by_default - case "default" /* Network.SameSite.Default */: - case "lax" /* Network.SameSite.Lax */: - return 'Lax'; - } - throw new ErrorResponse_js_1.InvalidArgumentException(`Unknown 'sameSite' value ${sameSite}`); -} -/** - * Returns true if the given protocol is special. - * Special protocols are those that have a default port. - * - * Example inputs: 'http', 'http:' - * - * @see https://url.spec.whatwg.org/#special-scheme - */ -function isSpecialScheme(protocol) { - return ['ftp', 'file', 'http', 'https', 'ws', 'wss'].includes(protocol.replace(/:$/, '')); -} -function getScheme(url) { - return url.protocol.replace(/:$/, ''); -} -/** Matches the given URLPattern against the given URL. */ -function matchUrlPattern(pattern, url) { - // Roughly https://w3c.github.io/webdriver-bidi/#match-url-pattern - // plus some differences based on the URL parsing methods. - const parsedUrl = new URL(url); - if (pattern.protocol !== undefined && - pattern.protocol !== getScheme(parsedUrl)) { - return false; - } - if (pattern.hostname !== undefined && - pattern.hostname !== parsedUrl.hostname) { - return false; - } - if (pattern.port !== undefined && pattern.port !== parsedUrl.port) { - return false; - } - if (pattern.pathname !== undefined && - pattern.pathname !== parsedUrl.pathname) { - return false; - } - if (pattern.search !== undefined && pattern.search !== parsedUrl.search) { - return false; - } - return true; -} -function bidiBodySizeFromCdpPostDataEntries(entries) { - let size = 0; - for (const entry of entries) { - size += atob(entry.bytes ?? '').length; - } - return size; -} -function getTiming(timing, offset = 0) { - if (!timing) { - return 0; - } - if (timing <= 0 || timing + offset <= 0) { - return 0; - } - return timing + offset; -} -//# sourceMappingURL=NetworkUtils.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js.map deleted file mode 100644 index 4385c81..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkUtils.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/network/NetworkUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAWH,gDAMC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MAAM,KAAK,SAAS,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM,EAAE,CAAC;QACxE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,kCAAkC,CAChD,OAAyC;IAEzC,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IACzC,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,SAAS,CACvB,MAA0B,EAC1B,SAAiB,CAAC;IAElB,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,CAAC,CAAC;IACX,CAAC;IACD,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC;QACxC,OAAO,CAAC,CAAC;IACX,CAAC;IAED,OAAO,MAAM,GAAG,MAAM,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.d.ts deleted file mode 100644 index 32ccca8..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { type EmptyResult, type Permissions } from '../../../protocol/protocol.js'; -export declare class PermissionsProcessor { - #private; - constructor(browserCdpClient: CdpClient); - setPermissions(params: Permissions.SetPermissionParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js deleted file mode 100644 index b61abcf..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PermissionsProcessor = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -class PermissionsProcessor { - #browserCdpClient; - constructor(browserCdpClient) { - this.#browserCdpClient = browserCdpClient; - } - async setPermissions(params) { - try { - const userContextId = params['goog:userContext'] || - params.userContext; - await this.#browserCdpClient.sendCommand('Browser.setPermission', { - origin: params.origin, - embeddedOrigin: params.embeddedOrigin, - browserContextId: userContextId && userContextId !== 'default' - ? userContextId - : undefined, - permission: { - name: params.descriptor.name, - }, - setting: params.state, - }); - } - catch (err) { - if (err.message === - `Permission can't be granted to opaque origins.`) { - // Return success if the origin is not valid (does not match any - // existing origins). - return {}; - } - throw new protocol_js_1.InvalidArgumentException(err.message); - } - return {}; - } -} -exports.PermissionsProcessor = PermissionsProcessor; -//# sourceMappingURL=PermissionsProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js.map deleted file mode 100644 index 768e887..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PermissionsProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/permissions/PermissionsProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,+DAIuC;AAEvC,MAAa,oBAAoB;IAC/B,iBAAiB,CAAY;IAE7B,YAAY,gBAA2B;QACrC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAA2C;QAE3C,IAAI,CAAC;YACH,MAAM,aAAa,GAChB,MAAwC,CAAC,kBAAkB,CAAC;gBAC7D,MAAM,CAAC,WAAW,CAAC;YACrB,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,uBAAuB,EAAE;gBAChE,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,cAAc,EAAE,MAAM,CAAC,cAAc;gBACrC,gBAAgB,EACd,aAAa,IAAI,aAAa,KAAK,SAAS;oBAC1C,CAAC,CAAC,aAAa;oBACf,CAAC,CAAC,SAAS;gBACf,UAAU,EAAE;oBACV,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI;iBAC7B;gBACD,OAAO,EAAE,MAAM,CAAC,KAAK;aACtB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IACG,GAAa,CAAC,OAAO;gBACtB,gDAAgD,EAChD,CAAC;gBACD,gEAAgE;gBAChE,qBAAqB;gBACrB,OAAO,EAAE,CAAC;YACZ,CAAC;YACD,MAAM,IAAI,sCAAwB,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAvCD,oDAuCC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.d.ts deleted file mode 100644 index 2c58300..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Script } from '../../../protocol/protocol.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { Realm } from './Realm.js'; -/** - * Used to send messages from realm to BiDi user. - */ -export declare class ChannelProxy { - #private; - constructor(channel: Script.ChannelProperties, logger?: LoggerFn); - /** - * Creates a channel proxy in the given realm, initialises listener and - * returns a handle to `sendMessage` delegate. - */ - init(realm: Realm, eventManager: EventManager): Promise; - /** Gets a ChannelProxy from window and returns its handle. */ - startListenerFromWindow(realm: Realm, eventManager: EventManager): Promise; - /** - * String to be evaluated to create a ProxyChannel and put it to window. - * Returns the delegate `sendMessage`. Used to provide an argument for preload - * script. Does the following: - * 1. Creates a ChannelProxy. - * 2. Puts the ChannelProxy to window['${this.#id}'] or resolves the promise - * by calling delegate stored in window['${this.#id}']. - * This is needed because `#getHandleFromWindow` can be called before or - * after this method. - * 3. Returns the delegate `sendMessage` of the created ChannelProxy. - */ - getEvalInWindowStr(): string; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js deleted file mode 100644 index 5cc7d30..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js +++ /dev/null @@ -1,235 +0,0 @@ -"use strict"; -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChannelProxy = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const log_js_1 = require("../../../utils/log.js"); -const uuid_js_1 = require("../../../utils/uuid.js"); -/** - * Used to send messages from realm to BiDi user. - */ -class ChannelProxy { - #properties; - #id = (0, uuid_js_1.uuidv4)(); - #logger; - constructor(channel, logger) { - this.#properties = channel; - this.#logger = logger; - } - /** - * Creates a channel proxy in the given realm, initialises listener and - * returns a handle to `sendMessage` delegate. - */ - async init(realm, eventManager) { - const channelHandle = await ChannelProxy.#createAndGetHandleInRealm(realm); - const sendMessageHandle = await ChannelProxy.#createSendMessageHandle(realm, channelHandle); - void this.#startListener(realm, channelHandle, eventManager); - return sendMessageHandle; - } - /** Gets a ChannelProxy from window and returns its handle. */ - async startListenerFromWindow(realm, eventManager) { - try { - const channelHandle = await this.#getHandleFromWindow(realm); - void this.#startListener(realm, channelHandle, eventManager); - } - catch (error) { - this.#logger?.(log_js_1.LogType.debugError, error); - } - } - /** - * Evaluation string which creates a ChannelProxy object on the client side. - */ - static #createChannelProxyEvalStr() { - const functionStr = String(() => { - const queue = []; - let queueNonEmptyResolver = null; - return { - /** - * Gets a promise, which is resolved as soon as a message occurs - * in the queue. - */ - async getMessage() { - const onMessage = queue.length > 0 - ? Promise.resolve() - : new Promise((resolve) => { - queueNonEmptyResolver = resolve; - }); - await onMessage; - return queue.shift(); - }, - /** - * Adds a message to the queue. - * Resolves the pending promise if needed. - */ - sendMessage(message) { - queue.push(message); - if (queueNonEmptyResolver !== null) { - queueNonEmptyResolver(); - queueNonEmptyResolver = null; - } - }, - }; - }); - return `(${functionStr})()`; - } - /** Creates a ChannelProxy in the given realm. */ - static async #createAndGetHandleInRealm(realm) { - const createChannelHandleResult = await realm.cdpClient.sendCommand('Runtime.evaluate', { - expression: this.#createChannelProxyEvalStr(), - contextId: realm.executionContextId, - serializationOptions: { - serialization: "idOnly" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */, - }, - }); - if (createChannelHandleResult.exceptionDetails || - createChannelHandleResult.result.objectId === undefined) { - throw new Error(`Cannot create channel`); - } - return createChannelHandleResult.result.objectId; - } - /** Gets a handle to `sendMessage` delegate from the ChannelProxy handle. */ - static async #createSendMessageHandle(realm, channelHandle) { - const sendMessageArgResult = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((channelHandle) => { - return channelHandle.sendMessage; - }), - arguments: [{ objectId: channelHandle }], - executionContextId: realm.executionContextId, - serializationOptions: { - serialization: "idOnly" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */, - }, - }); - // TODO: check for exceptionDetails. - return sendMessageArgResult.result.objectId; - } - /** Starts listening for the channel events of the provided ChannelProxy. */ - async #startListener(realm, channelHandle, eventManager) { - // noinspection InfiniteLoopJS - for (;;) { - try { - const message = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String(async (channelHandle) => await channelHandle.getMessage()), - arguments: [ - { - objectId: channelHandle, - }, - ], - awaitPromise: true, - executionContextId: realm.executionContextId, - serializationOptions: { - serialization: "deep" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */, - maxDepth: this.#properties.serializationOptions?.maxObjectDepth ?? - undefined, - }, - }); - if (message.exceptionDetails) { - throw new Error('Runtime.callFunctionOn in ChannelProxy', { - cause: message.exceptionDetails, - }); - } - for (const browsingContext of realm.associatedBrowsingContexts) { - eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.Script.EventNames.Message, - params: { - channel: this.#properties.channel, - data: realm.cdpToBidiValue(message, this.#properties.ownership ?? "none" /* Script.ResultOwnership.None */), - source: realm.source, - }, - }, browsingContext.id); - } - } - catch (error) { - // If an error is thrown, then the channel is permanently broken, so we - // exit the loop. - this.#logger?.(log_js_1.LogType.debugError, error); - break; - } - } - } - /** - * Returns a handle of ChannelProxy from window's property which was set there - * by `getEvalInWindowStr`. If window property is not set yet, sets a promise - * resolver to the window property, so that `getEvalInWindowStr` can resolve - * the promise later on with the channel. - * This is needed because `getEvalInWindowStr` can be called before or - * after this method. - */ - async #getHandleFromWindow(realm) { - const channelHandleResult = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((id) => { - const w = window; - if (w[id] === undefined) { - // The channelProxy is not created yet. Create a promise, put the - // resolver to window property and return the promise. - // `getEvalInWindowStr` will resolve the promise later. - return new Promise((resolve) => (w[id] = resolve)); - } - // The channelProxy is already created by `getEvalInWindowStr` and - // is set into window property. Return it. - const channelProxy = w[id]; - delete w[id]; - return channelProxy; - }), - arguments: [{ value: this.#id }], - executionContextId: realm.executionContextId, - awaitPromise: true, - serializationOptions: { - serialization: "idOnly" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */, - }, - }); - if (channelHandleResult.exceptionDetails !== undefined || - channelHandleResult.result.objectId === undefined) { - throw new Error(`ChannelHandle not found in window["${this.#id}"]`); - } - return channelHandleResult.result.objectId; - } - /** - * String to be evaluated to create a ProxyChannel and put it to window. - * Returns the delegate `sendMessage`. Used to provide an argument for preload - * script. Does the following: - * 1. Creates a ChannelProxy. - * 2. Puts the ChannelProxy to window['${this.#id}'] or resolves the promise - * by calling delegate stored in window['${this.#id}']. - * This is needed because `#getHandleFromWindow` can be called before or - * after this method. - * 3. Returns the delegate `sendMessage` of the created ChannelProxy. - */ - getEvalInWindowStr() { - const delegate = String((id, channelProxy) => { - const w = window; - if (w[id] === undefined) { - // `#getHandleFromWindow` is not initialized yet, and will get the - // channelProxy later. - w[id] = channelProxy; - } - else { - // `#getHandleFromWindow` is already set a delegate to window property - // and is waiting for it to be called with the channelProxy. - w[id](channelProxy); - delete w[id]; - } - return channelProxy.sendMessage; - }); - const channelProxyEval = ChannelProxy.#createChannelProxyEvalStr(); - return `(${delegate})('${this.#id}',${channelProxyEval})`; - } -} -exports.ChannelProxy = ChannelProxy; -//# sourceMappingURL=ChannelProxy.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js.map deleted file mode 100644 index 87f8646..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChannelProxy.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/ChannelProxy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAIH,+DAAmE;AACnE,kDAA6D;AAC7D,oDAA8C;AAK9C;;GAEG;AACH,MAAa,YAAY;IACd,WAAW,CAA2B;IAEtC,GAAG,GAAG,IAAA,gBAAM,GAAE,CAAC;IACf,OAAO,CAAY;IAE5B,YAAY,OAAiC,EAAE,MAAiB;QAC9D,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,CAAC,KAAY,EAAE,YAA0B;QACjD,MAAM,aAAa,GAAG,MAAM,YAAY,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;QAC3E,MAAM,iBAAiB,GAAG,MAAM,YAAY,CAAC,wBAAwB,CACnE,KAAK,EACL,aAAa,CACd,CAAC;QAEF,KAAK,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;QAC7D,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,8DAA8D;IAC9D,KAAK,CAAC,uBAAuB,CAAC,KAAY,EAAE,YAA0B;QACpE,IAAI,CAAC;YACH,MAAM,aAAa,GAAG,MAAM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vB,CAAC;iBAAM,CAAC;gBACN,sEAAsE;gBACtE,4DAA4D;gBAC3D,CAAC,CAAC,EAAE,CAA0B,CAAC,YAAY,CAAC,CAAC;gBAC9C,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;YACf,CAAC;YACD,OAAO,YAAY,CAAC,WAAW,CAAC;QAClC,CAAC,CACF,CAAC;QACF,MAAM,gBAAgB,GAAG,YAAY,CAAC,0BAA0B,EAAE,CAAC;QACnE,OAAO,IAAI,QAAQ,MAAM,IAAI,CAAC,GAAG,KAAK,gBAAgB,GAAG,CAAC;IAC5D,CAAC;CACF;AA9QD,oCA8QC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.d.ts deleted file mode 100644 index 30d0444..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { Protocol } from 'devtools-protocol'; -import type { Browser, BrowsingContext, Script } from '../../../protocol/protocol.js'; -import type { LoggerFn } from '../../../utils/log.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import { ChannelProxy } from './ChannelProxy.js'; -/** - * BiDi IDs are generated by the server and are unique within contexts. - * - * CDP preload script IDs are generated by the client and are unique - * within sessions. - * - * The mapping between BiDi and CDP preload script IDs is 1:many. - * BiDi IDs are needed by the mapper to keep track of potential multiple CDP IDs - * in the client. - */ -export declare class PreloadScript { - #private; - get id(): string; - get targetIds(): Set; - constructor(params: Script.AddPreloadScriptParameters, logger?: LoggerFn); - /** Channels of the preload script. */ - get channels(): ChannelProxy[]; - /** Contexts of the preload script, if any */ - get contexts(): BrowsingContext.BrowsingContext[] | undefined; - /** UserContexts of the preload script, if any */ - get userContexts(): Browser.UserContext[] | undefined; - /** - * Adds the script to the given CDP targets by calling the - * `Page.addScriptToEvaluateOnNewDocument` command. - */ - initInTargets(cdpTargets: Iterable, runImmediately: boolean): Promise; - /** - * Adds the script to the given CDP target by calling the - * `Page.addScriptToEvaluateOnNewDocument` command. - */ - initInTarget(cdpTarget: CdpTarget, runImmediately: boolean): Promise; - /** - * Removes this script from all CDP targets. - */ - remove(): Promise; - /** Removes the provided cdp target from the list of cdp preload scripts. */ - dispose(cdpTargetId: Protocol.Target.TargetID): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js deleted file mode 100644 index 5356404..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js +++ /dev/null @@ -1,133 +0,0 @@ -"use strict"; -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PreloadScript = void 0; -const uuid_js_1 = require("../../../utils/uuid.js"); -const ChannelProxy_js_1 = require("./ChannelProxy.js"); -/** - * BiDi IDs are generated by the server and are unique within contexts. - * - * CDP preload script IDs are generated by the client and are unique - * within sessions. - * - * The mapping between BiDi and CDP preload script IDs is 1:many. - * BiDi IDs are needed by the mapper to keep track of potential multiple CDP IDs - * in the client. - */ -class PreloadScript { - /** BiDi ID, an automatically generated UUID. */ - #id = (0, uuid_js_1.uuidv4)(); - /** CDP preload scripts. */ - #cdpPreloadScripts = []; - /** The script itself, in a format expected by the spec i.e. a function. */ - #functionDeclaration; - /** Targets, in which the preload script is initialized. */ - #targetIds = new Set(); - /** Channels to be added as arguments to functionDeclaration. */ - #channels; - /** The script sandbox / world name. */ - #sandbox; - /** The browsing contexts to execute the preload scripts in, if any. */ - #contexts; - /** The browsing contexts to execute the preload scripts in, if any. */ - #userContexts; - get id() { - return this.#id; - } - get targetIds() { - return this.#targetIds; - } - constructor(params, logger) { - this.#channels = - params.arguments?.map((a) => new ChannelProxy_js_1.ChannelProxy(a.value, logger)) ?? []; - this.#functionDeclaration = params.functionDeclaration; - this.#sandbox = params.sandbox; - this.#contexts = params.contexts; - this.#userContexts = params.userContexts; - } - /** Channels of the preload script. */ - get channels() { - return this.#channels; - } - /** Contexts of the preload script, if any */ - get contexts() { - return this.#contexts; - } - /** UserContexts of the preload script, if any */ - get userContexts() { - return this.#userContexts; - } - /** - * String to be evaluated. Wraps user-provided function so that the following - * steps are run: - * 1. Create channels. - * 2. Store the created channels in window. - * 3. Call the user-provided function with channels as arguments. - */ - #getEvaluateString() { - const channelsArgStr = `[${this.channels - .map((c) => c.getEvalInWindowStr()) - .join(', ')}]`; - return `(()=>{(${this.#functionDeclaration})(...${channelsArgStr})})()`; - } - /** - * Adds the script to the given CDP targets by calling the - * `Page.addScriptToEvaluateOnNewDocument` command. - */ - async initInTargets(cdpTargets, runImmediately) { - await Promise.all(Array.from(cdpTargets).map((cdpTarget) => this.initInTarget(cdpTarget, runImmediately))); - } - /** - * Adds the script to the given CDP target by calling the - * `Page.addScriptToEvaluateOnNewDocument` command. - */ - async initInTarget(cdpTarget, runImmediately) { - const addCdpPreloadScriptResult = await cdpTarget.cdpClient.sendCommand('Page.addScriptToEvaluateOnNewDocument', { - source: this.#getEvaluateString(), - worldName: this.#sandbox, - runImmediately, - }); - this.#cdpPreloadScripts.push({ - target: cdpTarget, - preloadScriptId: addCdpPreloadScriptResult.identifier, - }); - this.#targetIds.add(cdpTarget.id); - } - /** - * Removes this script from all CDP targets. - */ - async remove() { - await Promise.all([ - this.#cdpPreloadScripts.map(async (cdpPreloadScript) => { - const cdpTarget = cdpPreloadScript.target; - const cdpPreloadScriptId = cdpPreloadScript.preloadScriptId; - return await cdpTarget.cdpClient.sendCommand('Page.removeScriptToEvaluateOnNewDocument', { - identifier: cdpPreloadScriptId, - }); - }), - ]); - } - /** Removes the provided cdp target from the list of cdp preload scripts. */ - dispose(cdpTargetId) { - this.#cdpPreloadScripts = this.#cdpPreloadScripts.filter((cdpPreloadScript) => cdpPreloadScript.target?.id !== cdpTargetId); - this.#targetIds.delete(cdpTargetId); - } -} -exports.PreloadScript = PreloadScript; -//# sourceMappingURL=PreloadScript.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js.map deleted file mode 100644 index 8acafb5..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PreloadScript.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/PreloadScript.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAUH,oDAA8C;AAG9C,uDAA+C;AAS/C;;;;;;;;;GASG;AACH,MAAa,aAAa;IACxB,gDAAgD;IACvC,GAAG,GAAW,IAAA,gBAAM,GAAE,CAAC;IAChC,2BAA2B;IAC3B,kBAAkB,GAAuB,EAAE,CAAC;IAC5C,2EAA2E;IAClE,oBAAoB,CAAS;IACtC,2DAA2D;IAClD,UAAU,GAAG,IAAI,GAAG,EAA4B,CAAC;IAC1D,gEAAgE;IACvD,SAAS,CAAiB;IACnC,uCAAuC;IAC9B,QAAQ,CAAU;IAC3B,uEAAuE;IAC9D,SAAS,CAAqC;IACvD,uEAAuE;IAC9D,aAAa,CAAyB;IAE/C,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,YAAY,MAAyC,EAAE,MAA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AY,CAAC,SAAoB,EAAE,cAAuB;QAC9D,MAAM,yBAAyB,GAAG,MAAM,SAAS,CAAC,SAAS,CAAC,WAAW,CACrE,uCAAuC,EACvC;YACE,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE;YACjC,SAAS,EAAE,IAAI,CAAC,QAAQ;YACxB,cAAc;SACf,CACF,CAAC;QAEF,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;YAC3B,MAAM,EAAE,SAAS;YACjB,eAAe,EAAE,yBAAyB,CAAC,UAAU;SACtD,CAAC,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM;QACV,MAAM,OAAO,CAAC,GAAG,CAAC;YAChB,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAAE;gBACrD,MAAM,SAAS,GAAG,gBAAgB,CAAC,MAAM,CAAC;gBAC1C,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,eAAe,CAAC;gBAC5D,OAAO,MAAM,SAAS,CAAC,SAAS,CAAC,WAAW,CAC1C,0CAA0C,EAC1C;oBACE,UAAU,EAAE,kBAAkB;iBAC/B,CACF,CAAC;YACJ,CAAC,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED,4EAA4E;IAC5E,OAAO,CAAC,WAAqC;QAC3C,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CACtD,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,EAAE,KAAK,WAAW,CAClE,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;CACF;AA9HD,sCA8HC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.d.ts deleted file mode 100644 index eca6c93..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { Browser } from '../../../protocol/protocol.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { PreloadScript } from './PreloadScript.js'; -/** PreloadScripts can be filtered by BiDi ID or target ID. */ -export interface PreloadScriptFilter { - targetId: CdpTarget['id']; -} -/** - * Container class for preload scripts. - */ -export declare class PreloadScriptStorage { - #private; - /** - * Finds all entries that match the given filter (OR logic). - */ - find(filter?: PreloadScriptFilter): PreloadScript[]; - add(preloadScript: PreloadScript): void; - /** Deletes all BiDi preload script entries that match the given filter. */ - remove(id: string): void; - /** Gets the preload script with the given ID, if any, otherwise throws. */ - getPreloadScript(id: string): PreloadScript; - onCdpTargetCreated(targetId: string, userContext: Browser.UserContext): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js deleted file mode 100644 index f72bd60..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PreloadScriptStorage = void 0; -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -const ErrorResponse_js_1 = require("../../../protocol/ErrorResponse.js"); -/** - * Container class for preload scripts. - */ -class PreloadScriptStorage { - /** Tracks all BiDi preload scripts. */ - #scripts = new Set(); - /** - * Finds all entries that match the given filter (OR logic). - */ - find(filter) { - if (!filter) { - return [...this.#scripts]; - } - return [...this.#scripts].filter((script) => { - // Global scripts have no contexts or userContext - if (script.contexts === undefined && script.userContexts === undefined) { - return true; - } - if (filter.targetId !== undefined && - script.targetIds.has(filter.targetId)) { - return true; - } - return false; - }); - } - add(preloadScript) { - this.#scripts.add(preloadScript); - } - /** Deletes all BiDi preload script entries that match the given filter. */ - remove(id) { - const script = [...this.#scripts].find((script) => script.id === id); - if (script === undefined) { - throw new ErrorResponse_js_1.NoSuchScriptException(`No preload script with id '${id}'`); - } - this.#scripts.delete(script); - } - /** Gets the preload script with the given ID, if any, otherwise throws. */ - getPreloadScript(id) { - const script = [...this.#scripts].find((script) => script.id === id); - if (script === undefined) { - throw new ErrorResponse_js_1.NoSuchScriptException(`No preload script with id '${id}'`); - } - return script; - } - onCdpTargetCreated(targetId, userContext) { - const scriptInUserContext = [...this.#scripts].filter((script) => { - // Global scripts - if (!script.userContexts && !script.contexts) { - return true; - } - return script.userContexts?.includes(userContext); - }); - for (const script of scriptInUserContext) { - script.targetIds.add(targetId); - } - } -} -exports.PreloadScriptStorage = PreloadScriptStorage; -//# sourceMappingURL=PreloadScriptStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js.map deleted file mode 100644 index 0f60ef7..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PreloadScriptStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/PreloadScriptStorage.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,yEAAyE;AAWzE;;GAEG;AACH,MAAa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QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACrE,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,MAAM,IAAI,wCAAqB,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAC;QACvE,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,kBAAkB,CAAC,QAAgB,EAAE,WAAgC;QACnE,MAAM,mBAAmB,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;YAC/D,iBAAiB;YACjB,IAAI,CAAC,MAAM,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;gBAC7C,OAAO,IAAI,CAAC;YACd,CAAC;YACD,OAAO,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;QACH,KAAK,MAAM,MAAM,IAAI,mBAAmB,EAAE,CAAC;YACzC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;CACF;AA/DD,oDA+DC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.d.ts deleted file mode 100644 index c393692..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Protocol } from 'devtools-protocol'; -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { Script } from '../../../protocol/protocol.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { RealmStorage } from './RealmStorage.js'; -export declare abstract class Realm { - #private; - protected realmStorage: RealmStorage; - constructor(cdpClient: CdpClient, eventManager: EventManager, executionContextId: Protocol.Runtime.ExecutionContextId, logger: LoggerFn | undefined, origin: string, realmId: Script.Realm, realmStorage: RealmStorage); - cdpToBidiValue(cdpValue: Protocol.Runtime.CallFunctionOnResponse | Protocol.Runtime.EvaluateResponse, resultOwnership: Script.ResultOwnership): Script.RemoteValue; - isHidden(): boolean; - /** - * Relies on the CDP to implement proper BiDi serialization, except: - * * CDP integer property `backendNodeId` is replaced with `sharedId` of - * `{documentId}_element_{backendNodeId}`; - * * CDP integer property `weakLocalObjectReference` is replaced with UUID `internalId` - * using unique-per serialization `internalIdMap`. - * * CDP type `platformobject` is replaced with `object`. - * @param deepSerializedValue - CDP value to be converted to BiDi. - * @param internalIdMap - Map from CDP integer `weakLocalObjectReference` to BiDi UUID - * `internalId`. - */ - protected serializeForBiDi(deepSerializedValue: Protocol.Runtime.DeepSerializedValue, internalIdMap: Map): Script.RemoteValue; - get realmId(): Script.Realm; - get executionContextId(): Protocol.Runtime.ExecutionContextId; - get origin(): string; - get source(): Script.Source; - get cdpClient(): CdpClient; - abstract get associatedBrowsingContexts(): BrowsingContextImpl[]; - abstract get realmType(): Script.RealmType; - protected get baseInfo(): Script.BaseRealmInfo; - abstract get realmInfo(): Script.RealmInfo; - evaluate(expression: string, awaitPromise: boolean, resultOwnership?: Script.ResultOwnership, serializationOptions?: Script.SerializationOptions, userActivation?: boolean, includeCommandLineApi?: boolean): Promise; - protected initialize(): void; - /** - * Serializes a given CDP object into BiDi, keeping references in the - * target's `globalThis`. - */ - serializeCdpObject(cdpRemoteObject: Protocol.Runtime.RemoteObject, resultOwnership: Script.ResultOwnership): Promise; - /** - * Gets the string representation of an object. This is equivalent to - * calling `toString()` on the object value. - */ - stringifyObject(cdpRemoteObject: Protocol.Runtime.RemoteObject): Promise; - callFunction(functionDeclaration: string, awaitPromise: boolean, thisLocalValue?: Script.LocalValue, argumentsLocalValues?: Script.LocalValue[], resultOwnership?: Script.ResultOwnership, serializationOptions?: Script.SerializationOptions, userActivation?: boolean): Promise; - deserializeForCdp(localValue: Script.LocalValue): Promise; - disown(handle: Script.Handle): Promise; - dispose(): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js deleted file mode 100644 index 07dcb66..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js +++ /dev/null @@ -1,485 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Realm = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const log_js_1 = require("../../../utils/log.js"); -const uuid_js_1 = require("../../../utils/uuid.js"); -const ChannelProxy_js_1 = require("./ChannelProxy.js"); -class Realm { - #cdpClient; - #eventManager; - #executionContextId; - #logger; - #origin; - #realmId; - realmStorage; - constructor(cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage) { - this.#cdpClient = cdpClient; - this.#eventManager = eventManager; - this.#executionContextId = executionContextId; - this.#logger = logger; - this.#origin = origin; - this.#realmId = realmId; - this.realmStorage = realmStorage; - this.realmStorage.addRealm(this); - } - cdpToBidiValue(cdpValue, resultOwnership) { - const bidiValue = this.serializeForBiDi(cdpValue.result.deepSerializedValue, new Map()); - if (cdpValue.result.objectId) { - const objectId = cdpValue.result.objectId; - if (resultOwnership === "root" /* Script.ResultOwnership.Root */) { - // Extend BiDi value with `handle` based on required `resultOwnership` - // and CDP response but not on the actual BiDi type. - bidiValue.handle = objectId; - // Remember all the handles sent to client. - this.realmStorage.knownHandlesToRealmMap.set(objectId, this.realmId); - } - else { - // No need to await for the object to be released. - void this.#releaseObject(objectId).catch((error) => this.#logger?.(log_js_1.LogType.debugError, error)); - } - } - return bidiValue; - } - isHidden() { - return false; - } - /** - * Relies on the CDP to implement proper BiDi serialization, except: - * * CDP integer property `backendNodeId` is replaced with `sharedId` of - * `{documentId}_element_{backendNodeId}`; - * * CDP integer property `weakLocalObjectReference` is replaced with UUID `internalId` - * using unique-per serialization `internalIdMap`. - * * CDP type `platformobject` is replaced with `object`. - * @param deepSerializedValue - CDP value to be converted to BiDi. - * @param internalIdMap - Map from CDP integer `weakLocalObjectReference` to BiDi UUID - * `internalId`. - */ - serializeForBiDi(deepSerializedValue, internalIdMap) { - if (Object.hasOwn(deepSerializedValue, 'weakLocalObjectReference')) { - const weakLocalObjectReference = deepSerializedValue.weakLocalObjectReference; - if (!internalIdMap.has(weakLocalObjectReference)) { - internalIdMap.set(weakLocalObjectReference, (0, uuid_js_1.uuidv4)()); - } - deepSerializedValue.internalId = internalIdMap.get(weakLocalObjectReference); - delete deepSerializedValue['weakLocalObjectReference']; - } - if (deepSerializedValue.type === 'node' && - deepSerializedValue.value && - Object.hasOwn(deepSerializedValue.value, 'frameId')) { - // `frameId` is not needed in BiDi as it is not yet specified. - delete deepSerializedValue.value['frameId']; - } - // Platform object is a special case. It should have only `{type: object}` - // without `value` field. - if (deepSerializedValue.type === 'platformobject') { - return { type: 'object' }; - } - const bidiValue = deepSerializedValue.value; - if (bidiValue === undefined) { - return deepSerializedValue; - } - // Recursively update the nested values. - if (['array', 'set', 'htmlcollection', 'nodelist'].includes(deepSerializedValue.type)) { - for (const i in bidiValue) { - bidiValue[i] = this.serializeForBiDi(bidiValue[i], internalIdMap); - } - } - if (['object', 'map'].includes(deepSerializedValue.type)) { - for (const i in bidiValue) { - bidiValue[i] = [ - this.serializeForBiDi(bidiValue[i][0], internalIdMap), - this.serializeForBiDi(bidiValue[i][1], internalIdMap), - ]; - } - } - return deepSerializedValue; - } - get realmId() { - return this.#realmId; - } - get executionContextId() { - return this.#executionContextId; - } - get origin() { - return this.#origin; - } - get source() { - return { - realm: this.realmId, - }; - } - get cdpClient() { - return this.#cdpClient; - } - get baseInfo() { - return { - realm: this.realmId, - origin: this.origin, - }; - } - async evaluate(expression, awaitPromise, resultOwnership = "none" /* Script.ResultOwnership.None */, serializationOptions = {}, userActivation = false, includeCommandLineApi = false) { - const cdpEvaluateResult = await this.cdpClient.sendCommand('Runtime.evaluate', { - contextId: this.executionContextId, - expression, - awaitPromise, - serializationOptions: Realm.#getSerializationOptions("deep" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */, serializationOptions), - userGesture: userActivation, - includeCommandLineAPI: includeCommandLineApi, - }); - if (cdpEvaluateResult.exceptionDetails) { - return await this.#getExceptionResult(cdpEvaluateResult.exceptionDetails, 0, resultOwnership); - } - return { - realm: this.realmId, - result: this.cdpToBidiValue(cdpEvaluateResult, resultOwnership), - type: 'success', - }; - } - #registerEvent(event) { - if (this.associatedBrowsingContexts.length === 0) { - this.#eventManager.registerGlobalEvent(event); - } - else { - for (const browsingContext of this.associatedBrowsingContexts) { - this.#eventManager.registerEvent(event, browsingContext.id); - } - } - } - initialize() { - if (!this.isHidden()) { - // Report only not-hidden realms. - this.#registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmCreated, - params: this.realmInfo, - }); - } - } - /** - * Serializes a given CDP object into BiDi, keeping references in the - * target's `globalThis`. - */ - async serializeCdpObject(cdpRemoteObject, resultOwnership) { - // TODO: if the object is a primitive, return it directly without CDP roundtrip. - const argument = Realm.#cdpRemoteObjectToCallArgument(cdpRemoteObject); - const cdpValue = await this.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((remoteObject) => remoteObject), - awaitPromise: false, - arguments: [argument], - serializationOptions: { - serialization: "deep" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */, - }, - executionContextId: this.executionContextId, - }); - return this.cdpToBidiValue(cdpValue, resultOwnership); - } - static #cdpRemoteObjectToCallArgument(cdpRemoteObject) { - if (cdpRemoteObject.objectId !== undefined) { - return { objectId: cdpRemoteObject.objectId }; - } - if (cdpRemoteObject.unserializableValue !== undefined) { - return { unserializableValue: cdpRemoteObject.unserializableValue }; - } - return { value: cdpRemoteObject.value }; - } - /** - * Gets the string representation of an object. This is equivalent to - * calling `toString()` on the object value. - */ - async stringifyObject(cdpRemoteObject) { - const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((remoteObject) => String(remoteObject)), - awaitPromise: false, - arguments: [cdpRemoteObject], - returnByValue: true, - executionContextId: this.executionContextId, - }); - return result.value; - } - async #flattenKeyValuePairs(mappingLocalValue) { - const keyValueArray = await Promise.all(mappingLocalValue.map(async ([key, value]) => { - let keyArg; - if (typeof key === 'string') { - // Key is a string. - keyArg = { value: key }; - } - else { - // Key is a serialized value. - keyArg = await this.deserializeForCdp(key); - } - const valueArg = await this.deserializeForCdp(value); - return [keyArg, valueArg]; - })); - return keyValueArray.flat(); - } - async #flattenValueList(listLocalValue) { - return await Promise.all(listLocalValue.map((localValue) => this.deserializeForCdp(localValue))); - } - async #serializeCdpExceptionDetails(cdpExceptionDetails, lineOffset, resultOwnership) { - const callFrames = cdpExceptionDetails.stackTrace?.callFrames.map((frame) => ({ - url: frame.url, - functionName: frame.functionName, - lineNumber: frame.lineNumber - lineOffset, - columnNumber: frame.columnNumber, - })) ?? []; - // Exception should always be there. - const exception = cdpExceptionDetails.exception; - return { - exception: await this.serializeCdpObject(exception, resultOwnership), - columnNumber: cdpExceptionDetails.columnNumber, - lineNumber: cdpExceptionDetails.lineNumber - lineOffset, - stackTrace: { - callFrames, - }, - text: (await this.stringifyObject(exception)) || cdpExceptionDetails.text, - }; - } - async callFunction(functionDeclaration, awaitPromise, thisLocalValue = { - type: 'undefined', - }, argumentsLocalValues = [], resultOwnership = "none" /* Script.ResultOwnership.None */, serializationOptions = {}, userActivation = false) { - const callFunctionAndSerializeScript = `(...args) => { - function callFunction(f, args) { - const deserializedThis = args.shift(); - const deserializedArgs = args; - return f.apply(deserializedThis, deserializedArgs); - } - return callFunction(( - ${functionDeclaration} - ), args); - }`; - const thisAndArgumentsList = [ - await this.deserializeForCdp(thisLocalValue), - ...(await Promise.all(argumentsLocalValues.map(async (argumentLocalValue) => await this.deserializeForCdp(argumentLocalValue)))), - ]; - let cdpCallFunctionResult; - try { - cdpCallFunctionResult = await this.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: callFunctionAndSerializeScript, - awaitPromise, - arguments: thisAndArgumentsList, - serializationOptions: Realm.#getSerializationOptions("deep" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */, serializationOptions), - executionContextId: this.executionContextId, - userGesture: userActivation, - }); - } - catch (error) { - // Heuristic to determine if the problem is in the argument. - // The check can be done on the `deserialization` step, but this approach - // helps to save round-trips. - if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ && - [ - 'Could not find object with given id', - 'Argument should belong to the same JavaScript world as target object', - 'Invalid remote object id', - ].includes(error.message)) { - throw new protocol_js_1.NoSuchHandleException('Handle was not found.'); - } - throw error; - } - if (cdpCallFunctionResult.exceptionDetails) { - return await this.#getExceptionResult(cdpCallFunctionResult.exceptionDetails, 1, resultOwnership); - } - return { - type: 'success', - result: this.cdpToBidiValue(cdpCallFunctionResult, resultOwnership), - realm: this.realmId, - }; - } - async deserializeForCdp(localValue) { - if ('handle' in localValue && localValue.handle) { - return { objectId: localValue.handle }; - // We tried to find a handle value but failed - // This allows us to have exhaustive switch on `localValue.type` - } - else if ('handle' in localValue || 'sharedId' in localValue) { - throw new protocol_js_1.NoSuchHandleException('Handle was not found.'); - } - switch (localValue.type) { - case 'undefined': - return { unserializableValue: 'undefined' }; - case 'null': - return { unserializableValue: 'null' }; - case 'string': - return { value: localValue.value }; - case 'number': - if (localValue.value === 'NaN') { - return { unserializableValue: 'NaN' }; - } - else if (localValue.value === '-0') { - return { unserializableValue: '-0' }; - } - else if (localValue.value === 'Infinity') { - return { unserializableValue: 'Infinity' }; - } - else if (localValue.value === '-Infinity') { - return { unserializableValue: '-Infinity' }; - } - return { - value: localValue.value, - }; - case 'boolean': - return { value: Boolean(localValue.value) }; - case 'bigint': - return { - unserializableValue: `BigInt(${JSON.stringify(localValue.value)})`, - }; - case 'date': - return { - unserializableValue: `new Date(Date.parse(${JSON.stringify(localValue.value)}))`, - }; - case 'regexp': - return { - unserializableValue: `new RegExp(${JSON.stringify(localValue.value.pattern)}, ${JSON.stringify(localValue.value.flags)})`, - }; - case 'map': { - // TODO: If none of the nested keys and values has a remote - // reference, serialize to `unserializableValue` without CDP roundtrip. - const keyValueArray = await this.#flattenKeyValuePairs(localValue.value); - const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((...args) => { - const result = new Map(); - for (let i = 0; i < args.length; i += 2) { - result.set(args[i], args[i + 1]); - } - return result; - }), - awaitPromise: false, - arguments: keyValueArray, - returnByValue: false, - executionContextId: this.executionContextId, - }); - // TODO(#375): Release `result.objectId` after using. - return { objectId: result.objectId }; - } - case 'object': { - // TODO: If none of the nested keys and values has a remote - // reference, serialize to `unserializableValue` without CDP roundtrip. - const keyValueArray = await this.#flattenKeyValuePairs(localValue.value); - const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((...args) => { - const result = {}; - for (let i = 0; i < args.length; i += 2) { - // Key should be either `string`, `number`, or `symbol`. - const key = args[i]; - result[key] = args[i + 1]; - } - return result; - }), - awaitPromise: false, - arguments: keyValueArray, - returnByValue: false, - executionContextId: this.executionContextId, - }); - // TODO(#375): Release `result.objectId` after using. - return { objectId: result.objectId }; - } - case 'array': { - // TODO: If none of the nested items has a remote reference, - // serialize to `unserializableValue` without CDP roundtrip. - const args = await this.#flattenValueList(localValue.value); - const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((...args) => args), - awaitPromise: false, - arguments: args, - returnByValue: false, - executionContextId: this.executionContextId, - }); - // TODO(#375): Release `result.objectId` after using. - return { objectId: result.objectId }; - } - case 'set': { - // TODO: if none of the nested items has a remote reference, - // serialize to `unserializableValue` without CDP roundtrip. - const args = await this.#flattenValueList(localValue.value); - const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((...args) => new Set(args)), - awaitPromise: false, - arguments: args, - returnByValue: false, - executionContextId: this.executionContextId, - }); - // TODO(#375): Release `result.objectId` after using. - return { objectId: result.objectId }; - } - case 'channel': { - const channelProxy = new ChannelProxy_js_1.ChannelProxy(localValue.value, this.#logger); - const channelProxySendMessageHandle = await channelProxy.init(this, this.#eventManager); - return { objectId: channelProxySendMessageHandle }; - } - // TODO(#375): Dispose of nested objects. - } - // Intentionally outside to handle unknown types - throw new Error(`Value ${JSON.stringify(localValue)} is not deserializable.`); - } - async #getExceptionResult(exceptionDetails, lineOffset, resultOwnership) { - return { - exceptionDetails: await this.#serializeCdpExceptionDetails(exceptionDetails, lineOffset, resultOwnership), - realm: this.realmId, - type: 'exception', - }; - } - static #getSerializationOptions(serialization, serializationOptions) { - return { - serialization, - additionalParameters: Realm.#getAdditionalSerializationParameters(serializationOptions), - ...Realm.#getMaxObjectDepth(serializationOptions), - }; - } - static #getAdditionalSerializationParameters(serializationOptions) { - const additionalParameters = {}; - if (serializationOptions.maxDomDepth !== undefined) { - additionalParameters['maxNodeDepth'] = - serializationOptions.maxDomDepth === null - ? 1000 - : serializationOptions.maxDomDepth; - } - if (serializationOptions.includeShadowTree !== undefined) { - additionalParameters['includeShadowTree'] = - serializationOptions.includeShadowTree; - } - return additionalParameters; - } - static #getMaxObjectDepth(serializationOptions) { - return serializationOptions.maxObjectDepth === undefined || - serializationOptions.maxObjectDepth === null - ? {} - : { maxDepth: serializationOptions.maxObjectDepth }; - } - async #releaseObject(handle) { - try { - await this.cdpClient.sendCommand('Runtime.releaseObject', { - objectId: handle, - }); - } - catch (error) { - // Heuristic to determine if the problem is in the unknown handler. - // Ignore the error if so. - if (!(error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ && - error.message === 'Invalid remote object id')) { - throw error; - } - } - } - async disown(handle) { - // Disowning an object from different realm does nothing. - if (this.realmStorage.knownHandlesToRealmMap.get(handle) !== this.realmId) { - return; - } - await this.#releaseObject(handle); - this.realmStorage.knownHandlesToRealmMap.delete(handle); - } - dispose() { - if (!this.isHidden()) { - this.#registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmDestroyed, - params: { - realm: this.realmId, - }, - }); - } - } -} -exports.Realm = Realm; -//# sourceMappingURL=Realm.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js.map deleted file mode 100644 index ce8b30e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Realm.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/Realm.ts"],"names":[],"mappings":";;;AAmBA,+DAIuC;AAEvC,kDAA6D;AAC7D,oDAA8C;AAI9C,uDAA+C;AAG/C,MAAsB,KAAK;IAChB,UAAU,CAAY;IACtB,aAAa,CAAe;IAC5B,mBAAmB,CAAsC;IACzD,OAAO,CAAY;IACnB,OAAO,CAAS;IAChB,QAAQ,CAAe;IACtB,YAAY,CAAe;IAErC,YACE,SAAoB,EACpB,YAA0B,EAC1B,kBAAuD,EACvD,MAA4B,EAC5B,MAAc,EACd,OAAqB,EACrB,YAA0B;QAE1B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,I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M,CAAC,CAAC;QAElC,IAAI,CAAC,YAAY,CAAC,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC;IAED,OAAO;QACL,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;YACrB,IAAI,CAAC,cAAc,CAAC;gBAClB,IAAI,EAAE,OAAO;gBACb,MAAM,EAAE,0BAAY,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc;gBACrD,MAAM,EAAE;oBACN,KAAK,EAAE,IAAI,CAAC,OAAO;iBACpB;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AA1rBD,sBA0rBC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.d.ts deleted file mode 100644 index f397fc6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import { type BrowsingContext, type Script } from '../../../protocol/protocol.js'; -import type { Realm } from './Realm.js'; -interface RealmFilter { - realmId?: Script.Realm; - browsingContextId?: BrowsingContext.BrowsingContext; - executionContextId?: Protocol.Runtime.ExecutionContextId; - origin?: string; - type?: Script.RealmType; - sandbox?: string | null; - cdpSessionId?: Protocol.Target.SessionID; - isHidden?: boolean; -} -/** Container class for browsing realms. */ -export declare class RealmStorage { - #private; - /** List of the internal sandboxed realms which should not be reported to the user. */ - readonly hiddenSandboxes: Set; - get knownHandlesToRealmMap(): Map; - addRealm(realm: Realm): void; - /** Finds all realms that match the given filter. */ - findRealms(filter: RealmFilter): Realm[]; - findRealm(filter: RealmFilter): Realm | undefined; - /** Gets the only realm that matches the given filter, if any, otherwise throws. */ - getRealm(filter: RealmFilter): Realm; - /** Deletes all realms that match the given filter. */ - deleteRealms(filter: RealmFilter): void; -} -export {}; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js deleted file mode 100644 index 3078f2e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RealmStorage = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const WindowRealm_js_1 = require("./WindowRealm.js"); -/** Container class for browsing realms. */ -class RealmStorage { - /** Tracks handles and their realms sent to the client. */ - #knownHandlesToRealmMap = new Map(); - /** Map from realm ID to Realm. */ - #realmMap = new Map(); - /** List of the internal sandboxed realms which should not be reported to the user. */ - hiddenSandboxes = new Set(); - get knownHandlesToRealmMap() { - return this.#knownHandlesToRealmMap; - } - addRealm(realm) { - this.#realmMap.set(realm.realmId, realm); - } - /** Finds all realms that match the given filter. */ - findRealms(filter) { - const sandboxFilterValue = filter.sandbox === null ? undefined : filter.sandbox; - return Array.from(this.#realmMap.values()).filter((realm) => { - if (filter.realmId !== undefined && filter.realmId !== realm.realmId) { - return false; - } - if (filter.browsingContextId !== undefined && - !realm.associatedBrowsingContexts - .map((browsingContext) => browsingContext.id) - .includes(filter.browsingContextId)) { - return false; - } - if (filter.sandbox !== undefined && - (!(realm instanceof WindowRealm_js_1.WindowRealm) || - sandboxFilterValue !== realm.sandbox)) { - return false; - } - if (filter.executionContextId !== undefined && - filter.executionContextId !== realm.executionContextId) { - return false; - } - if (filter.origin !== undefined && filter.origin !== realm.origin) { - return false; - } - if (filter.type !== undefined && filter.type !== realm.realmType) { - return false; - } - if (filter.cdpSessionId !== undefined && - filter.cdpSessionId !== realm.cdpClient.sessionId) { - return false; - } - if (filter.isHidden !== undefined && - filter.isHidden !== realm.isHidden()) { - return false; - } - return true; - }); - } - findRealm(filter) { - return this.findRealms(filter)[0]; - } - /** Gets the only realm that matches the given filter, if any, otherwise throws. */ - getRealm(filter) { - const maybeRealm = this.findRealm(filter); - if (maybeRealm === undefined) { - throw new protocol_js_1.NoSuchFrameException(`Realm ${JSON.stringify(filter)} not found`); - } - return maybeRealm; - } - /** Deletes all realms that match the given filter. */ - deleteRealms(filter) { - this.findRealms(filter).map((realm) => { - realm.dispose(); - this.#realmMap.delete(realm.realmId); - Array.from(this.knownHandlesToRealmMap.entries()) - .filter(([, r]) => r === realm.realmId) - .map(([handle]) => this.knownHandlesToRealmMap.delete(handle)); - }); - } -} -exports.RealmStorage = RealmStorage; -//# sourceMappingURL=RealmStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js.map deleted file mode 100644 index 5041556..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RealmStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/RealmStorage.ts"],"names":[],"mappings":";;;AAkBA,+DAIuC;AAGvC,qDAA6C;AAc7C,2CAA2C;AAC3C,MAAa,YAAY;IACvB,0DAA0D;IACjD,uBAAuB,GAAG,IAAI,GAAG,EAGvC,CAAC;IAEJ,kCAAkC;IACzB,SAAS,GAAG,IAAI,GAAG,EAAuB,CAAC;IACpD,sFAAsF;IAC7E,eAAe,GAAG,IAAI,GAAG,EAAsB,CAAC;IAEzD,IAAI,sBAA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AAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,CAAC;iBAC9C,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC;iBACtC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAhGD,oCAgGC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.d.ts deleted file mode 100644 index 167a210..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type EmptyResult, type Script } from '../../../protocol/protocol.js'; -import type { LoggerFn } from '../../../utils/log.js'; -import type { UserContextStorage } from '../browser/UserContextStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { PreloadScriptStorage } from './PreloadScriptStorage.js'; -import type { RealmStorage } from './RealmStorage.js'; -export declare class ScriptProcessor { - #private; - constructor(eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, preloadScriptStorage: PreloadScriptStorage, userContextStorage: UserContextStorage, logger?: LoggerFn); - addPreloadScript(params: Script.AddPreloadScriptParameters): Promise; - removePreloadScript(params: Script.RemovePreloadScriptParameters): Promise; - callFunction(params: Script.CallFunctionParameters): Promise; - evaluate(params: Script.EvaluateParameters): Promise; - disown(params: Script.DisownParameters): Promise; - getRealms(params: Script.GetRealmsParameters): Script.GetRealmsResult; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js deleted file mode 100644 index 439a641..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js +++ /dev/null @@ -1,136 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScriptProcessor = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const PreloadScript_js_1 = require("./PreloadScript.js"); -class ScriptProcessor { - #eventManager; - #browsingContextStorage; - #realmStorage; - #preloadScriptStorage; - #userContextStorage; - #logger; - constructor(eventManager, browsingContextStorage, realmStorage, preloadScriptStorage, userContextStorage, logger) { - this.#browsingContextStorage = browsingContextStorage; - this.#realmStorage = realmStorage; - this.#preloadScriptStorage = preloadScriptStorage; - this.#userContextStorage = userContextStorage; - this.#logger = logger; - this.#eventManager = eventManager; - this.#eventManager.addSubscribeHook(protocol_js_1.ChromiumBidi.Script.EventNames.RealmCreated, this.#onRealmCreatedSubscribeHook.bind(this)); - } - #onRealmCreatedSubscribeHook(contextId) { - const context = this.#browsingContextStorage.getContext(contextId); - const contextsToReport = [ - context, - ...this.#browsingContextStorage.getContext(contextId).allChildren, - ]; - const realms = new Set(); - for (const reportContext of contextsToReport) { - const realmsForContext = this.#realmStorage.findRealms({ - browsingContextId: reportContext.id, - }); - for (const realm of realmsForContext) { - realms.add(realm); - } - } - for (const realm of realms) { - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmCreated, - params: realm.realmInfo, - }, context.id); - } - return Promise.resolve(); - } - async addPreloadScript(params) { - if (params.userContexts?.length && params.contexts?.length) { - throw new protocol_js_1.InvalidArgumentException('Both userContexts and contexts cannot be specified.'); - } - const userContexts = await this.#userContextStorage.verifyUserContextIdList(params.userContexts ?? []); - const browsingContexts = this.#browsingContextStorage.verifyTopLevelContextsList(params.contexts); - const preloadScript = new PreloadScript_js_1.PreloadScript(params, this.#logger); - this.#preloadScriptStorage.add(preloadScript); - let contextsToRunIn = []; - if (userContexts.size) { - contextsToRunIn = this.#browsingContextStorage - .getTopLevelContexts() - .filter((context) => { - return userContexts.has(context.userContext); - }); - } - else if (browsingContexts.size) { - contextsToRunIn = [...browsingContexts.values()]; - } - else { - contextsToRunIn = this.#browsingContextStorage.getTopLevelContexts(); - } - const cdpTargets = new Set(contextsToRunIn.map((context) => context.cdpTarget)); - await preloadScript.initInTargets(cdpTargets, false); - return { - script: preloadScript.id, - }; - } - async removePreloadScript(params) { - const { script: id } = params; - const script = this.#preloadScriptStorage.getPreloadScript(id); - await script.remove(); - this.#preloadScriptStorage.remove(id); - return {}; - } - async callFunction(params) { - const realm = await this.#getRealm(params.target); - return await realm.callFunction(params.functionDeclaration, params.awaitPromise, params.this, params.arguments, params.resultOwnership, params.serializationOptions, params.userActivation); - } - async evaluate(params) { - const realm = await this.#getRealm(params.target); - return await realm.evaluate(params.expression, params.awaitPromise, params.resultOwnership, params.serializationOptions, params.userActivation); - } - async disown(params) { - const realm = await this.#getRealm(params.target); - await Promise.all(params.handles.map(async (handle) => await realm.disown(handle))); - return {}; - } - getRealms(params) { - if (params.context !== undefined) { - // Make sure the context is known. - this.#browsingContextStorage.getContext(params.context); - } - const realms = this.#realmStorage - .findRealms({ - browsingContextId: params.context, - type: params.type, - isHidden: false, - }) - .map((realm) => realm.realmInfo); - return { realms }; - } - async #getRealm(target) { - if ('context' in target) { - const context = this.#browsingContextStorage.getContext(target.context); - return await context.getOrCreateUserSandbox(target.sandbox); - } - return this.#realmStorage.getRealm({ - realmId: target.realm, - isHidden: false, - }); - } -} -exports.ScriptProcessor = ScriptProcessor; -//# sourceMappingURL=ScriptProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js.map deleted file mode 100644 index 4255244..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScriptProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/ScriptProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAMuC;AAOvC,yDAAiD;AAKjD,MAAa,eAAe;IACjB,aAAa,CAAe;IAC5B,uBAAuB,CAAyB;IAChD,aAAa,CAAe;IAC5B,qBAAqB,CAAC;IACtB,mBAAmB,CAAqB;IACxC,OAAO,CAAY;IAE5B,YACE,YAA0B,EAC1B,sBAA8C,EAC9C,YAA0B,EAC1B,oBAA0C,EAC1C,kBAAsC,EACtC,MAAiB;QAEjB,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;QAClD,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,IAAI,CAAC,aAAa,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F,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,SAAS,CAAC,MAAkC;QAC1C,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjC,kCAAkC;YAClC,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa;aAC9B,UAAU,CAAC;YACV,iBAAiB,EAAE,MAAM,CAAC,OAAO;YACjC,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ,EAAE,KAAK;SAChB,CAAC;aACD,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,EAAC,MAAM,EAAC,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,MAAqB;QACnC,IAAI,SAAS,IAAI,MAAM,EAAE,CAAC;YACxB,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACxE,OAAO,MAAM,OAAO,CAAC,sBAAsB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;YACjC,OAAO,EAAE,MAAM,CAAC,KAAK;YACrB,QAAQ,EAAE,KAAK;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AAlLD,0CAkLC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.d.ts deleted file mode 100644 index bcd9be0..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare function getSharedId(frameId: string, documentId: string, backendNodeId: number): string; -export declare function parseSharedId(sharedId: string): { - frameId: string | undefined; - documentId: string; - backendNodeId: number; -} | null; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js deleted file mode 100644 index af10a29..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSharedId = getSharedId; -exports.parseSharedId = parseSharedId; -const SHARED_ID_DIVIDER = '_element_'; -function getSharedId(frameId, documentId, backendNodeId) { - return `f.${frameId}.d.${documentId}.e.${backendNodeId}`; -} -function parseLegacySharedId(sharedId) { - const match = sharedId.match(new RegExp(`(.*)${SHARED_ID_DIVIDER}(.*)`)); - if (!match) { - // SharedId is incorrectly formatted. - return null; - } - const documentId = match[1]; - const elementId = match[2]; - if (documentId === undefined || elementId === undefined) { - return null; - } - const backendNodeId = parseInt(elementId ?? ''); - if (isNaN(backendNodeId)) { - return null; - } - return { - documentId, - backendNodeId, - }; -} -function parseSharedId(sharedId) { - // TODO: remove legacy check once ChromeDriver provides sharedId in the new format. - const legacyFormattedSharedId = parseLegacySharedId(sharedId); - if (legacyFormattedSharedId !== null) { - return { ...legacyFormattedSharedId, frameId: undefined }; - } - const match = sharedId.match(/f\.(.*)\.d\.(.*)\.e\.([0-9]*)/); - if (!match) { - // SharedId is incorrectly formatted. - return null; - } - const frameId = match[1]; - const documentId = match[2]; - const elementId = match[3]; - if (frameId === undefined || - documentId === undefined || - elementId === undefined) { - return null; - } - const backendNodeId = parseInt(elementId ?? ''); - if (isNaN(backendNodeId)) { - return null; - } - return { - frameId, - documentId, - backendNodeId, - }; -} -//# sourceMappingURL=SharedId.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js.map deleted file mode 100644 index bd47fd0..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SharedId.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/SharedId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAIH,kCAMC;AA4BD,sCAwCC;AA5ED,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAEtC,SAAgB,WAAW,CACzB,OAAe,EACf,UAAkB,EAClB,aAAqB;IAErB,OAAO,KAAK,OAAO,MAAM,UAAU,MAAM,aAAa,EAAE,CAAC;AAC3D,CAAC;AAED,SAAS,mBAAmB,CAAC,QAAgB;IAI3C,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,iBAAiB,MAAM,CAAC,CAAC,CAAC;IACzE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,qCAAqC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5B,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAE3B,IAAI,UAAU,KAAK,SAAS,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QACxD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,aAAa,GAAG,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IAChD,IAAI,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,UAAU;QACV,aAAa;KACd,CAAC;AACJ,CAAC;AAED,SAAgB,aAAa,CAAC,QAAgB;IAQ5C,mFAAmF;IACnF,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC9D,IAAI,uBAAuB,KAAK,IAAI,EAAE,CAAC;QACrC,OAAO,EAAC,GAAG,uBAAuB,EAAE,OAAO,EAAE,SAAS,EAAC,CAAC;IAC1D,CAAC;IAED,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAC9D,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,qCAAqC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACzB,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5B,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAE3B,IACE,OAAO,KAAK,SAAS;QACrB,UAAU,KAAK,SAAS;QACxB,SAAS,KAAK,SAAS,EACvB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,aAAa,GAAG,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IAChD,IAAI,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,OAAO;QACP,UAAU;QACV,aAAa;KACd,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.d.ts deleted file mode 100644 index 7533a9a..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { type BrowsingContext, type Script } from '../../../protocol/protocol.js'; -import type { LoggerFn } from '../../../utils/log.js'; -import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import { Realm } from './Realm.js'; -import type { RealmStorage } from './RealmStorage.js'; -export declare class WindowRealm extends Realm { - #private; - readonly sandbox: string | undefined; - constructor(browsingContextId: BrowsingContext.BrowsingContext, browsingContextStorage: BrowsingContextStorage, cdpClient: CdpClient, eventManager: EventManager, executionContextId: Protocol.Runtime.ExecutionContextId, logger: LoggerFn | undefined, origin: string, realmId: Script.Realm, realmStorage: RealmStorage, sandbox: string | undefined); - get browsingContext(): BrowsingContextImpl; - /** - * Do not expose to user hidden realms. - */ - isHidden(): boolean; - get associatedBrowsingContexts(): [BrowsingContextImpl]; - get realmType(): 'window'; - get realmInfo(): Script.WindowRealmInfo; - get source(): Script.Source; - serializeForBiDi(deepSerializedValue: Protocol.Runtime.DeepSerializedValue, internalIdMap: Map): Script.RemoteValue; - deserializeForCdp(localValue: Script.LocalValue): Promise; - evaluate(expression: string, awaitPromise: boolean, resultOwnership: Script.ResultOwnership, serializationOptions: Script.SerializationOptions, userActivation?: boolean, includeCommandLineApi?: boolean): Promise; - callFunction(functionDeclaration: string, awaitPromise: boolean, thisLocalValue: Script.LocalValue, argumentsLocalValues: Script.LocalValue[], resultOwnership: Script.ResultOwnership, serializationOptions: Script.SerializationOptions, userActivation?: boolean): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js deleted file mode 100644 index aa4ce4e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js +++ /dev/null @@ -1,146 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WindowRealm = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const Realm_js_1 = require("./Realm.js"); -const SharedId_js_1 = require("./SharedId.js"); -class WindowRealm extends Realm_js_1.Realm { - #browsingContextId; - #browsingContextStorage; - sandbox; - constructor(browsingContextId, browsingContextStorage, cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage, sandbox) { - super(cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage); - this.#browsingContextId = browsingContextId; - this.#browsingContextStorage = browsingContextStorage; - this.sandbox = sandbox; - this.initialize(); - } - #getBrowsingContextId(navigableId) { - const maybeBrowsingContext = this.#browsingContextStorage - .getAllContexts() - .find((context) => context.navigableId === navigableId); - return maybeBrowsingContext?.id ?? 'UNKNOWN'; - } - get browsingContext() { - return this.#browsingContextStorage.getContext(this.#browsingContextId); - } - /** - * Do not expose to user hidden realms. - */ - isHidden() { - return this.realmStorage.hiddenSandboxes.has(this.sandbox); - } - get associatedBrowsingContexts() { - return [this.browsingContext]; - } - get realmType() { - return 'window'; - } - get realmInfo() { - return { - ...this.baseInfo, - type: this.realmType, - context: this.#browsingContextId, - sandbox: this.sandbox, - }; - } - get source() { - return { - realm: this.realmId, - context: this.browsingContext.id, - }; - } - serializeForBiDi(deepSerializedValue, internalIdMap) { - const bidiValue = deepSerializedValue.value; - if (deepSerializedValue.type === 'node' && bidiValue !== undefined) { - if (Object.hasOwn(bidiValue, 'backendNodeId')) { - let navigableId = this.browsingContext.navigableId ?? 'UNKNOWN'; - if (Object.hasOwn(bidiValue, 'loaderId')) { - // `loaderId` should be always there after ~2024-03-05, when - // https://crrev.com/c/5116240 reaches stable. - // TODO: remove the check after the date. - navigableId = bidiValue.loaderId; - delete bidiValue['loaderId']; - } - deepSerializedValue.sharedId = - (0, SharedId_js_1.getSharedId)(this.#getBrowsingContextId(navigableId), navigableId, bidiValue.backendNodeId); - delete bidiValue['backendNodeId']; - } - if (Object.hasOwn(bidiValue, 'children')) { - for (const i in bidiValue.children) { - bidiValue.children[i] = this.serializeForBiDi(bidiValue.children[i], internalIdMap); - } - } - if (Object.hasOwn(bidiValue, 'shadowRoot') && - bidiValue.shadowRoot !== null) { - bidiValue.shadowRoot = this.serializeForBiDi(bidiValue.shadowRoot, internalIdMap); - } - // `namespaceURI` can be is either `null` or non-empty string. - if (bidiValue.namespaceURI === '') { - bidiValue.namespaceURI = null; - } - } - return super.serializeForBiDi(deepSerializedValue, internalIdMap); - } - async deserializeForCdp(localValue) { - if ('sharedId' in localValue && localValue.sharedId) { - const parsedSharedId = (0, SharedId_js_1.parseSharedId)(localValue.sharedId); - if (parsedSharedId === null) { - throw new protocol_js_1.NoSuchNodeException(`SharedId "${localValue.sharedId}" was not found.`); - } - const { documentId, backendNodeId } = parsedSharedId; - // TODO: add proper validation if the element is accessible from the current realm. - if (this.browsingContext.navigableId !== documentId) { - throw new protocol_js_1.NoSuchNodeException(`SharedId "${localValue.sharedId}" belongs to different document. Current document is ${this.browsingContext.navigableId}.`); - } - try { - const { object } = await this.cdpClient.sendCommand('DOM.resolveNode', { - backendNodeId, - executionContextId: this.executionContextId, - }); - // TODO(#375): Release `obj.object.objectId` after using. - return { objectId: object.objectId }; - } - catch (error) { - // Heuristic to detect "no such node" exception. Based on the specific - // CDP implementation. - if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ && - error.message === 'No node with given id found') { - throw new protocol_js_1.NoSuchNodeException(`SharedId "${localValue.sharedId}" was not found.`); - } - throw new protocol_js_1.UnknownErrorException(error.message, error.stack); - } - } - return await super.deserializeForCdp(localValue); - } - async evaluate(expression, awaitPromise, resultOwnership, serializationOptions, userActivation, includeCommandLineApi) { - await this.#browsingContextStorage - .getContext(this.#browsingContextId) - .targetUnblockedOrThrow(); - return await super.evaluate(expression, awaitPromise, resultOwnership, serializationOptions, userActivation, includeCommandLineApi); - } - async callFunction(functionDeclaration, awaitPromise, thisLocalValue, argumentsLocalValues, resultOwnership, serializationOptions, userActivation) { - await this.#browsingContextStorage - .getContext(this.#browsingContextId) - .targetUnblockedOrThrow(); - return await super.callFunction(functionDeclaration, awaitPromise, thisLocalValue, argumentsLocalValues, resultOwnership, serializationOptions, userActivation); - } -} -exports.WindowRealm = WindowRealm; -//# sourceMappingURL=WindowRealm.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js.map deleted file mode 100644 index cc5c55a..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WindowRealm.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/WindowRealm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,+DAKuC;AAOvC,yCAAiC;AAEjC,+CAAyD;AAEzD,MAAa,WAAY,SAAQ,gBAAK;IAC3B,kBAAkB,CAAkC;IACpD,uBAAuB,CAAyB;IAChD,OAAO,CAAqB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romium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.d.ts deleted file mode 100644 index 1102291..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import type { Script } from '../../../protocol/protocol.js'; -import type { LoggerFn } from '../../../utils/log.js'; -import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; -import type { EventManager } from '../session/EventManager.js'; -import { Realm } from './Realm.js'; -import type { RealmStorage } from './RealmStorage.js'; -export type WorkerRealmType = Pick['type']; -export declare class WorkerRealm extends Realm { - #private; - constructor(cdpClient: CdpClient, eventManager: EventManager, executionContextId: Protocol.Runtime.ExecutionContextId, logger: LoggerFn | undefined, origin: string, ownerRealms: Realm[], realmId: Script.Realm, realmStorage: RealmStorage, realmType: WorkerRealmType); - get associatedBrowsingContexts(): BrowsingContextImpl[]; - get realmType(): WorkerRealmType; - get source(): Script.Source; - get realmInfo(): Script.RealmInfo; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js deleted file mode 100644 index 8e036e4..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WorkerRealm = void 0; -const Realm_js_1 = require("./Realm.js"); -class WorkerRealm extends Realm_js_1.Realm { - #realmType; - #ownerRealms; - constructor(cdpClient, eventManager, executionContextId, logger, origin, ownerRealms, realmId, realmStorage, realmType) { - super(cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage); - this.#ownerRealms = ownerRealms; - this.#realmType = realmType; - this.initialize(); - } - get associatedBrowsingContexts() { - return this.#ownerRealms.flatMap((realm) => realm.associatedBrowsingContexts); - } - get realmType() { - return this.#realmType; - } - get source() { - return { - realm: this.realmId, - // This is a hack to make Puppeteer able to track workers. - // TODO: remove after Puppeteer tracks workers by owners and use the base version. - context: this.associatedBrowsingContexts[0]?.id, - }; - } - get realmInfo() { - const owners = this.#ownerRealms.map((realm) => realm.realmId); - const { realmType } = this; - switch (realmType) { - case 'dedicated-worker': { - const owner = owners[0]; - if (owner === undefined || owners.length !== 1) { - throw new Error('Dedicated worker must have exactly one owner'); - } - return { - ...this.baseInfo, - type: realmType, - owners: [owner], - }; - } - case 'service-worker': - case 'shared-worker': { - return { - ...this.baseInfo, - type: realmType, - }; - } - } - } -} -exports.WorkerRealm = WorkerRealm; -//# sourceMappingURL=WorkerRealm.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js.map deleted file mode 100644 index 06c5f18..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WorkerRealm.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/WorkerRealm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAUH,yCAAiC;AAUjC,MAAa,WAAY,SAAQ,gBAAK;IAC3B,UAAU,CAAkB;IAC5B,YAAY,CAAU;IAE/B,YACE,SAAoB,EACpB,YAA0B,EAC1B,kBAAuD,EACvD,MAA4B,EAC5B,MAAc,EACd,WAAoB,EACpB,OAAqB,EACrB,YAA0B,EAC1B,SAA0B;QAE1B,KAAK,CACH,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,MAAM,EACN,OAAO,EACP,YAAY,CACb,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAE5B,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC;IAED,IAAa,0BAA0B;QACrC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAC9B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,0BAA0B,CAC5C,CAAC;IACJ,CAAC;IAED,IAAa,SAAS;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAa,MAAM;QACjB,OAAO;YACL,KAAK,EAAE,IAAI,CAAC,OAAO;YACnB,0DAA0D;YAC1D,kFAAkF;YAClF,OAAO,EAAE,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,EAAE;SAChD,CAAC;IACJ,CAAC;IAED,IAAa,SAAS;QACpB,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC/D,MAAM,EAAC,SAAS,EAAC,GAAG,IAAI,CAAC;QACzB,QAAQ,SAAS,EAAE,CAAC;YAClB,KAAK,kBAAkB,CAAC,CAAC,CAAC;gBACxB,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;gBACxB,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC/C,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;gBAClE,CAAC;gBACD,OAAO;oBACL,GAAG,IAAI,CAAC,QAAQ;oBAChB,IAAI,EAAE,SAAS;oBACf,MAAM,EAAE,CAAC,KAAK,CAAC;iBAChB,CAAC;YACJ,CAAC;YACD,KAAK,gBAAgB,CAAC;YACtB,KAAK,eAAe,CAAC,CAAC,CAAC;gBACrB,OAAO;oBACL,GAAG,IAAI,CAAC,QAAQ;oBAChB,IAAI,EAAE,SAAS;iBAChB,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF;AA1ED,kCA0EC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.d.ts deleted file mode 100644 index 81b2a87..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { GoogChannel } from '../../../protocol/chromium-bidi.js'; -import { type Browser, ChromiumBidi, type BrowsingContext } from '../../../protocol/protocol.js'; -import { EventEmitter } from '../../../utils/EventEmitter.js'; -import type { Result } from '../../../utils/result.js'; -import { OutgoingMessage } from '../../OutgoingMessage.js'; -import type { UserContextStorage } from '../browser/UserContextStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import { SubscriptionManager } from './SubscriptionManager.js'; -export declare const enum EventManagerEvents { - Event = "event" -} -interface EventManagerEventsMap extends Record { - [EventManagerEvents.Event]: { - message: Promise>; - event: string; - }; -} -/** - * Subscription item is a pair of event name and context id. - */ -export interface SubscriptionItem { - contextId: BrowsingContext.BrowsingContext; - event: ChromiumBidi.EventNames; -} -export declare class EventManager extends EventEmitter { - #private; - constructor(browsingContextStorage: BrowsingContextStorage, userContextStorage: UserContextStorage); - get subscriptionManager(): SubscriptionManager; - addSubscribeHook(event: ChromiumBidi.EventNames, hook: (contextId: BrowsingContext.BrowsingContext) => Promise): void; - registerEvent(event: ChromiumBidi.Event, contextId: BrowsingContext.BrowsingContext): void; - registerGlobalEvent(event: ChromiumBidi.Event): void; - registerPromiseEvent(event: Promise>, contextId: BrowsingContext.BrowsingContext, eventName: ChromiumBidi.EventNames): void; - registerGlobalPromiseEvent(event: Promise>, eventName: ChromiumBidi.EventNames): void; - subscribe(eventNames: ChromiumBidi.EventNames[], contextIds: BrowsingContext.BrowsingContext[], userContextIds: Browser.UserContext[], googChannel: GoogChannel): Promise; - unsubscribe(eventNames: ChromiumBidi.EventNames[], googChannel: GoogChannel): Promise; - unsubscribeByIds(subscriptionIds: string[]): Promise; - toggleModulesIfNeeded(): Promise; - clearBufferedEvents(contextId: string): void; -} -export {}; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js deleted file mode 100644 index 32f0a77..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js +++ /dev/null @@ -1,269 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventManager = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const Buffer_js_1 = require("../../../utils/Buffer.js"); -const DefaultMap_js_1 = require("../../../utils/DefaultMap.js"); -const EventEmitter_js_1 = require("../../../utils/EventEmitter.js"); -const IdWrapper_js_1 = require("../../../utils/IdWrapper.js"); -const OutgoingMessage_js_1 = require("../../OutgoingMessage.js"); -const events_js_1 = require("./events.js"); -const SubscriptionManager_js_1 = require("./SubscriptionManager.js"); -class EventWrapper { - #idWrapper = new IdWrapper_js_1.IdWrapper(); - #contextId; - #event; - constructor(event, contextId) { - this.#event = event; - this.#contextId = contextId; - } - get id() { - return this.#idWrapper.id; - } - get contextId() { - return this.#contextId; - } - get event() { - return this.#event; - } -} -/** - * Maps event name to a desired buffer length. - */ -const eventBufferLength = new Map([[protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded, 100]]); -class EventManager extends EventEmitter_js_1.EventEmitter { - /** - * Maps event name to a set of contexts where this event already happened. - * Needed for getting buffered events from all the contexts in case of - * subscripting to all contexts. - */ - #eventToContextsMap = new DefaultMap_js_1.DefaultMap(() => new Set()); - /** - * Maps `eventName` + `browsingContext` to buffer. Used to get buffered events - * during subscription. Channel-agnostic. - */ - #eventBuffers = new Map(); - /** - * Maps `eventName` + `browsingContext` to Map of goog:channel to last id. - * Used to avoid sending duplicated events when user - * subscribes -> unsubscribes -> subscribes. - */ - #lastMessageSent = new Map(); - #subscriptionManager; - #browsingContextStorage; - /** - * Map of event name to hooks to be called when client is subscribed to the event. - */ - #subscribeHooks; - #userContextStorage; - constructor(browsingContextStorage, userContextStorage) { - super(); - this.#browsingContextStorage = browsingContextStorage; - this.#userContextStorage = userContextStorage; - this.#subscriptionManager = new SubscriptionManager_js_1.SubscriptionManager(browsingContextStorage); - this.#subscribeHooks = new DefaultMap_js_1.DefaultMap(() => []); - } - get subscriptionManager() { - return this.#subscriptionManager; - } - /** - * Returns consistent key to be used to access value maps. - */ - static #getMapKey(eventName, browsingContext) { - return JSON.stringify({ eventName, browsingContext }); - } - addSubscribeHook(event, hook) { - this.#subscribeHooks.get(event).push(hook); - } - registerEvent(event, contextId) { - this.registerPromiseEvent(Promise.resolve({ - kind: 'success', - value: event, - }), contextId, event.method); - } - registerGlobalEvent(event) { - this.registerGlobalPromiseEvent(Promise.resolve({ - kind: 'success', - value: event, - }), event.method); - } - registerPromiseEvent(event, contextId, eventName) { - const eventWrapper = new EventWrapper(event, contextId); - const sortedGoogChannels = this.#subscriptionManager.getGoogChannelsSubscribedToEvent(eventName, contextId); - this.#bufferEvent(eventWrapper, eventName); - // Send events to channels in the subscription priority. - for (const googChannel of sortedGoogChannels) { - this.emit("event" /* EventManagerEvents.Event */, { - message: OutgoingMessage_js_1.OutgoingMessage.createFromPromise(event, googChannel), - event: eventName, - }); - this.#markEventSent(eventWrapper, googChannel, eventName); - } - } - registerGlobalPromiseEvent(event, eventName) { - const eventWrapper = new EventWrapper(event, null); - const sortedGoogChannels = this.#subscriptionManager.getGoogChannelsSubscribedToEventGlobally(eventName); - this.#bufferEvent(eventWrapper, eventName); - // Send events to goog:channels in the subscription priority. - for (const googChannel of sortedGoogChannels) { - this.emit("event" /* EventManagerEvents.Event */, { - message: OutgoingMessage_js_1.OutgoingMessage.createFromPromise(event, googChannel), - event: eventName, - }); - this.#markEventSent(eventWrapper, googChannel, eventName); - } - } - async subscribe(eventNames, contextIds, userContextIds, googChannel) { - for (const name of eventNames) { - (0, events_js_1.assertSupportedEvent)(name); - } - if (userContextIds.length && contextIds.length) { - throw new protocol_js_1.InvalidArgumentException('Both userContexts and contexts cannot be specified.'); - } - // First check if all the contexts are known. - this.#browsingContextStorage.verifyContextsList(contextIds); - // Validate user contexts. - await this.#userContextStorage.verifyUserContextIdList(userContextIds); - const unrolledEventNames = new Set((0, SubscriptionManager_js_1.unrollEvents)(eventNames)); - const subscribeStepEvents = new Map(); - const subscriptionNavigableIds = new Set(contextIds.length - ? contextIds.map((contextId) => { - const id = this.#browsingContextStorage.findTopLevelContextId(contextId); - if (!id) { - throw new protocol_js_1.InvalidArgumentException('Invalid context id'); - } - return id; - }) - : this.#browsingContextStorage.getTopLevelContexts().map((c) => c.id)); - for (const eventName of unrolledEventNames) { - const subscribedNavigableIds = new Set(this.#browsingContextStorage - .getTopLevelContexts() - .map((c) => c.id) - .filter((id) => { - return this.#subscriptionManager.isSubscribedTo(eventName, id); - })); - subscribeStepEvents.set(eventName, (0, SubscriptionManager_js_1.difference)(subscriptionNavigableIds, subscribedNavigableIds)); - } - const subscription = this.#subscriptionManager.subscribe(eventNames, contextIds, userContextIds, googChannel); - for (const eventName of subscription.eventNames) { - for (const contextId of subscriptionNavigableIds) { - for (const eventWrapper of this.#getBufferedEvents(eventName, contextId, googChannel)) { - // The order of the events is important. - this.emit("event" /* EventManagerEvents.Event */, { - message: OutgoingMessage_js_1.OutgoingMessage.createFromPromise(eventWrapper.event, googChannel), - event: eventName, - }); - this.#markEventSent(eventWrapper, googChannel, eventName); - } - } - } - for (const [eventName, contextIds] of subscribeStepEvents) { - for (const contextId of contextIds) { - this.#subscribeHooks.get(eventName).forEach((hook) => hook(contextId)); - } - } - await this.toggleModulesIfNeeded(); - return subscription.id; - } - async unsubscribe(eventNames, googChannel) { - for (const name of eventNames) { - (0, events_js_1.assertSupportedEvent)(name); - } - this.#subscriptionManager.unsubscribe(eventNames, googChannel); - await this.toggleModulesIfNeeded(); - } - async unsubscribeByIds(subscriptionIds) { - this.#subscriptionManager.unsubscribeById(subscriptionIds); - await this.toggleModulesIfNeeded(); - } - async toggleModulesIfNeeded() { - // TODO(1): Only update changed subscribers - // TODO(2): Enable for Worker Targets - await Promise.all(this.#browsingContextStorage.getAllContexts().map(async (context) => { - return await context.toggleModulesIfNeeded(); - })); - } - clearBufferedEvents(contextId) { - for (const eventName of eventBufferLength.keys()) { - const bufferMapKey = _a.#getMapKey(eventName, contextId); - this.#eventBuffers.delete(bufferMapKey); - } - } - /** - * If the event is buffer-able, put it in the buffer. - */ - #bufferEvent(eventWrapper, eventName) { - if (!eventBufferLength.has(eventName)) { - // Do nothing if the event is no buffer-able. - return; - } - const bufferMapKey = _a.#getMapKey(eventName, eventWrapper.contextId); - if (!this.#eventBuffers.has(bufferMapKey)) { - this.#eventBuffers.set(bufferMapKey, new Buffer_js_1.Buffer(eventBufferLength.get(eventName))); - } - this.#eventBuffers.get(bufferMapKey).add(eventWrapper); - // Add the context to the list of contexts having `eventName` events. - this.#eventToContextsMap.get(eventName).add(eventWrapper.contextId); - } - /** - * If the event is buffer-able, mark it as sent to the given contextId and goog:channel. - */ - #markEventSent(eventWrapper, googChannel, eventName) { - if (!eventBufferLength.has(eventName)) { - // Do nothing if the event is no buffer-able. - return; - } - const lastSentMapKey = _a.#getMapKey(eventName, eventWrapper.contextId); - const lastId = Math.max(this.#lastMessageSent.get(lastSentMapKey)?.get(googChannel) ?? 0, eventWrapper.id); - const googChannelMap = this.#lastMessageSent.get(lastSentMapKey); - if (googChannelMap) { - googChannelMap.set(googChannel, lastId); - } - else { - this.#lastMessageSent.set(lastSentMapKey, new Map([[googChannel, lastId]])); - } - } - /** - * Returns events which are buffered and not yet sent to the given goog:channel events. - */ - #getBufferedEvents(eventName, contextId, googChannel) { - const bufferMapKey = _a.#getMapKey(eventName, contextId); - const lastSentMessageId = this.#lastMessageSent.get(bufferMapKey)?.get(googChannel) ?? -Infinity; - const result = this.#eventBuffers - .get(bufferMapKey) - ?.get() - .filter((wrapper) => wrapper.id > lastSentMessageId) ?? []; - if (contextId === null) { - // For global subscriptions, events buffered in each context should be sent back. - Array.from(this.#eventToContextsMap.get(eventName).keys()) - .filter((_contextId) => - // Events without context are already in the result. - _contextId !== null && - // Events from deleted contexts should not be sent. - this.#browsingContextStorage.hasContext(_contextId)) - .map((_contextId) => this.#getBufferedEvents(eventName, _contextId, googChannel)) - .forEach((events) => result.push(...events)); - } - return result.sort((e1, e2) => e1.id - e2.id); - } -} -exports.EventManager = EventManager; -_a = EventManager; -//# sourceMappingURL=EventManager.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js.map deleted file mode 100644 index f616792..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/session/EventManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;AAGH,+DAKuC;AACvC,wDAAgD;AAChD,gEAAwD;AACxD,oEAA4D;AAC5D,8DAAsD;AAEtD,iEAAyD;AAIzD,2CAAiD;AACjD,qEAIkC;AAElC,MAAM,YAAY;IACP,UAAU,GAAG,IAAI,wBAAS,EAAE,CAAC;IAC7B,UAAU,CAAyC;IACnD,MAAM,CAAsC;IAErD,YACE,KAA0C,EAC1C,SAAiD;QAEjD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;IAC5B,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAYD;;GAEG;AACH,MAAM,iBAAiB,GAAiD,IAAI,GAAG,CAC7E,CAAC,CAAC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AC,CAC5D;iBACA,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IAChD,CAAC;CACF;AA3VD,oCA2VC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.d.ts deleted file mode 100644 index f206c19..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import type { GoogChannel } from '../../../protocol/chromium-bidi.js'; -import { type EmptyResult, Session } from '../../../protocol/protocol.js'; -import type { MapperOptions } from '../../MapperOptions.js'; -import type { EventManager } from './EventManager.js'; -export declare class SessionProcessor { - #private; - constructor(eventManager: EventManager, browserCdpClient: CdpClient, initConnection: (opts: MapperOptions) => Promise); - status(): Session.StatusResult; - new(params: Session.NewParameters): Promise; - subscribe(params: Session.SubscribeParameters, googChannel?: GoogChannel): Promise; - unsubscribe(params: Session.UnsubscribeParameters, googChannel?: GoogChannel): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js deleted file mode 100644 index 4e990bf..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SessionProcessor = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -class SessionProcessor { - #eventManager; - #browserCdpClient; - #initConnection; - #created = false; - constructor(eventManager, browserCdpClient, initConnection) { - this.#eventManager = eventManager; - this.#browserCdpClient = browserCdpClient; - this.#initConnection = initConnection; - } - status() { - return { ready: false, message: 'already connected' }; - } - #mergeCapabilities(capabilitiesRequest) { - // Roughly following https://www.w3.org/TR/webdriver2/#dfn-capabilities-processing. - // Validations should already be done by the parser. - const mergedCapabilities = []; - for (const first of capabilitiesRequest.firstMatch ?? [{}]) { - const result = { - ...capabilitiesRequest.alwaysMatch, - }; - for (const key of Object.keys(first)) { - if (result[key] !== undefined) { - throw new protocol_js_1.InvalidArgumentException(`Capability ${key} in firstMatch is already defined in alwaysMatch`); - } - result[key] = first[key]; - } - mergedCapabilities.push(result); - } - const match = mergedCapabilities.find((c) => c.browserName === 'chrome') ?? - mergedCapabilities[0] ?? - {}; - match.unhandledPromptBehavior = this.#getUnhandledPromptBehavior(match.unhandledPromptBehavior); - return match; - } - #getUnhandledPromptBehavior(capabilityValue) { - if (capabilityValue === undefined) { - return undefined; - } - if (typeof capabilityValue === 'object') { - // Do not validate capabilities. Incorrect ones will be ignored by Mapper. - return capabilityValue; - } - if (typeof capabilityValue !== 'string') { - throw new protocol_js_1.InvalidArgumentException(`Unexpected 'unhandledPromptBehavior' type: ${typeof capabilityValue}`); - } - switch (capabilityValue) { - // `beforeUnload: accept` has higher priority over string capability, as the latest - // one is set to "fallbackDefault". - // https://w3c.github.io/webdriver/#dfn-deserialize-as-an-unhandled-prompt-behavior - // https://w3c.github.io/webdriver/#dfn-get-the-prompt-handler - case 'accept': - case 'accept and notify': - return { - default: "accept" /* Session.UserPromptHandlerType.Accept */, - beforeUnload: "accept" /* Session.UserPromptHandlerType.Accept */, - }; - case 'dismiss': - case 'dismiss and notify': - return { - default: "dismiss" /* Session.UserPromptHandlerType.Dismiss */, - beforeUnload: "accept" /* Session.UserPromptHandlerType.Accept */, - }; - case 'ignore': - return { - default: "ignore" /* Session.UserPromptHandlerType.Ignore */, - beforeUnload: "accept" /* Session.UserPromptHandlerType.Accept */, - }; - default: - throw new protocol_js_1.InvalidArgumentException(`Unexpected 'unhandledPromptBehavior' value: ${capabilityValue}`); - } - } - async new(params) { - if (this.#created) { - throw new Error('Session has been already created.'); - } - this.#created = true; - const matchedCapabitlites = this.#mergeCapabilities(params.capabilities); - await this.#initConnection(matchedCapabitlites); - const version = await this.#browserCdpClient.sendCommand('Browser.getVersion'); - return { - sessionId: 'unknown', - capabilities: { - ...matchedCapabitlites, - acceptInsecureCerts: matchedCapabitlites.acceptInsecureCerts ?? false, - browserName: version.product, - browserVersion: version.revision, - platformName: '', - setWindowRect: false, - webSocketUrl: '', - userAgent: version.userAgent, - }, - }; - } - async subscribe(params, googChannel = null) { - const subscription = await this.#eventManager.subscribe(params.events, params.contexts ?? [], params.userContexts ?? [], googChannel); - return { - subscription, - }; - } - async unsubscribe(params, googChannel = null) { - if ('subscriptions' in params) { - await this.#eventManager.unsubscribeByIds(params.subscriptions); - return {}; - } - await this.#eventManager.unsubscribe(params.events, googChannel); - return {}; - } -} -exports.SessionProcessor = SessionProcessor; -//# sourceMappingURL=SessionProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js.map deleted file mode 100644 index 8b409e9..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SessionProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/session/SessionProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAIH,+DAKuC;AAKvC,MAAa,gBAAgB;IAC3B,aAAa,CAAe;IAC5B,iBAAiB,CAAY;IAC7B,eAAe,CAAyC;IACxD,QAAQ,GAAG,KAAK,CAAC;IAEjB,YACE,YAA0B,EAC1B,gBAA2B,EAC3B,cAAsD;QAEtD,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;QAC1C,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IACxC,CAAC;IAED,MAAM;QACJ,OAAO,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAC,CAAC;IACtD,CAAC;IAED,kBAAkB,CAChB,mBAAgD;QAEhD,mFAAmF;QACnF,oDAAoD;QAEpD,MAAM,kBAAkB,GAAG,EAAE,CAAC;QAE9B,KAAK,MAAM,KAAK,IAAI,mBAAmB,CAAC,UAAU,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YAC3D,MAAM,MAAM,GAAG;gBACb,GAAG,mBAAmB,CAAC,WAAW;aACnC,CAAC;YACF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBACrC,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;oBAC9B,MAAM,IAAI,sC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EAAE,CAAC;YAC9B,MAAM,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;YAChE,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,CAClC,MAAM,CAAC,MAAmC,EAC1C,WAAW,CACZ,CAAC;QACF,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AA7JD,4CA6JC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.d.ts deleted file mode 100644 index 22fc560..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { GoogChannel } from '../../../protocol/chromium-bidi.js'; -import { type Browser, type BrowsingContext, ChromiumBidi } from '../../../protocol/protocol.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -/** - * Returns the cartesian product of the given arrays. - * - * Example: - * cartesian([1, 2], ['a', 'b']); => [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] - */ -export declare function cartesianProduct(...a: any[][]): any[]; -/** Expands "AllEvents" events into atomic events. */ -export declare function unrollEvents(events: ChromiumBidi.EventNames[]): Iterable; -export interface Subscription { - id: string; - topLevelTraversableIds: Set; - userContextIds: Set; - eventNames: Set; - googChannel: GoogChannel; -} -export declare class SubscriptionManager { - #private; - constructor(browsingContextStorage: BrowsingContextStorage); - getGoogChannelsSubscribedToEvent(eventName: ChromiumBidi.EventNames, contextId: BrowsingContext.BrowsingContext): GoogChannel[]; - getGoogChannelsSubscribedToEventGlobally(eventName: ChromiumBidi.EventNames): GoogChannel[]; - isSubscribedTo(moduleOrEvent: ChromiumBidi.EventNames, contextId: BrowsingContext.BrowsingContext): boolean; - /** - * Subscribes to event in the given context and goog:channel. - * @return {SubscriptionItem[]} List of - * subscriptions. If the event is a whole module, it will return all the specific - * events. If the contextId is null, it will return all the top-level contexts which were - * not subscribed before the command. - */ - subscribe(eventNames: ChromiumBidi.EventNames[], contextIds: BrowsingContext.BrowsingContext[], userContextIds: Browser.UserContext[], googChannel: GoogChannel): Subscription; - /** - * Unsubscribes atomically from all events in the given contexts and channel. - * - * This is a legacy spec branch to unsubscribe by attributes. - */ - unsubscribe(inputEventNames: ChromiumBidi.EventNames[], googChannel: GoogChannel): void; - /** - * Unsubscribes by subscriptionId. - */ - unsubscribeById(subscriptionIds: string[]): void; -} -/** - * Replace with Set.prototype.difference once Node 20 is dropped. - */ -export declare function difference(setA: Set, setB: Set): Set; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js deleted file mode 100644 index f0e1f13..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js +++ /dev/null @@ -1,273 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SubscriptionManager = void 0; -exports.cartesianProduct = cartesianProduct; -exports.unrollEvents = unrollEvents; -exports.difference = difference; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const uuid_js_1 = require("../../../utils/uuid.js"); -/** - * Returns the cartesian product of the given arrays. - * - * Example: - * cartesian([1, 2], ['a', 'b']); => [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] - */ -function cartesianProduct(...a) { - return a.reduce((a, b) => a.flatMap((d) => b.map((e) => [d, e].flat()))); -} -/** Expands "AllEvents" events into atomic events. */ -function unrollEvents(events) { - const allEvents = new Set(); - function addEvents(events) { - for (const event of events) { - allEvents.add(event); - } - } - for (const event of events) { - switch (event) { - case protocol_js_1.ChromiumBidi.BiDiModule.Bluetooth: - addEvents(Object.values(protocol_js_1.ChromiumBidi.Bluetooth.EventNames)); - break; - case protocol_js_1.ChromiumBidi.BiDiModule.BrowsingContext: - addEvents(Object.values(protocol_js_1.ChromiumBidi.BrowsingContext.EventNames)); - break; - case protocol_js_1.ChromiumBidi.BiDiModule.Input: - addEvents(Object.values(protocol_js_1.ChromiumBidi.Input.EventNames)); - break; - case protocol_js_1.ChromiumBidi.BiDiModule.Log: - addEvents(Object.values(protocol_js_1.ChromiumBidi.Log.EventNames)); - break; - case protocol_js_1.ChromiumBidi.BiDiModule.Network: - addEvents(Object.values(protocol_js_1.ChromiumBidi.Network.EventNames)); - break; - case protocol_js_1.ChromiumBidi.BiDiModule.Script: - addEvents(Object.values(protocol_js_1.ChromiumBidi.Script.EventNames)); - break; - case protocol_js_1.ChromiumBidi.BiDiModule.Speculation: - addEvents(Object.values(protocol_js_1.ChromiumBidi.Speculation.EventNames)); - break; - default: - allEvents.add(event); - } - } - return allEvents.values(); -} -class SubscriptionManager { - #subscriptions = []; - #knownSubscriptionIds = new Set(); - #browsingContextStorage; - constructor(browsingContextStorage) { - this.#browsingContextStorage = browsingContextStorage; - } - getGoogChannelsSubscribedToEvent(eventName, contextId) { - const googChannels = new Set(); - for (const subscription of this.#subscriptions) { - if (this.#isSubscribedTo(subscription, eventName, contextId)) { - googChannels.add(subscription.googChannel); - } - } - return Array.from(googChannels); - } - getGoogChannelsSubscribedToEventGlobally(eventName) { - const googChannels = new Set(); - for (const subscription of this.#subscriptions) { - if (this.#isSubscribedTo(subscription, eventName)) { - googChannels.add(subscription.googChannel); - } - } - return Array.from(googChannels); - } - #isSubscribedTo(subscription, moduleOrEvent, browsingContextId) { - let includesEvent = false; - for (const eventName of subscription.eventNames) { - // This also covers the `goog:cdp` case where - // we don't unroll the event names - if ( - // Event explicitly subscribed - eventName === moduleOrEvent || - // Event subscribed via module - eventName === moduleOrEvent.split('.').at(0) || - // Event explicitly subscribed compared to module - eventName.split('.').at(0) === moduleOrEvent) { - includesEvent = true; - break; - } - } - if (!includesEvent) { - return false; - } - // user context subscription. - if (subscription.userContextIds.size !== 0) { - if (!browsingContextId) { - return false; - } - const context = this.#browsingContextStorage.findContext(browsingContextId); - if (!context) { - return false; - } - return subscription.userContextIds.has(context.userContext); - } - // context subscription. - if (subscription.topLevelTraversableIds.size !== 0) { - if (!browsingContextId) { - return false; - } - const topLevelContext = this.#browsingContextStorage.findTopLevelContextId(browsingContextId); - return (topLevelContext !== null && - subscription.topLevelTraversableIds.has(topLevelContext)); - } - // global subscription. - return true; - } - isSubscribedTo(moduleOrEvent, contextId) { - for (const subscription of this.#subscriptions) { - if (this.#isSubscribedTo(subscription, moduleOrEvent, contextId)) { - return true; - } - } - return false; - } - /** - * Subscribes to event in the given context and goog:channel. - * @return {SubscriptionItem[]} List of - * subscriptions. If the event is a whole module, it will return all the specific - * events. If the contextId is null, it will return all the top-level contexts which were - * not subscribed before the command. - */ - subscribe(eventNames, contextIds, userContextIds, googChannel) { - // All the subscriptions are handled on the top-level contexts. - const subscription = { - id: (0, uuid_js_1.uuidv4)(), - eventNames: new Set(unrollEvents(eventNames)), - topLevelTraversableIds: new Set(contextIds.map((contextId) => { - const topLevelContext = this.#browsingContextStorage.findTopLevelContextId(contextId); - if (!topLevelContext) { - throw new protocol_js_1.NoSuchFrameException(`Top-level navigable not found for context id ${contextId}`); - } - return topLevelContext; - })), - userContextIds: new Set(userContextIds), - googChannel, - }; - this.#subscriptions.push(subscription); - this.#knownSubscriptionIds.add(subscription.id); - return subscription; - } - /** - * Unsubscribes atomically from all events in the given contexts and channel. - * - * This is a legacy spec branch to unsubscribe by attributes. - */ - unsubscribe(inputEventNames, googChannel) { - const eventNames = new Set(unrollEvents(inputEventNames)); - const newSubscriptions = []; - const eventsMatched = new Set(); - for (const subscription of this.#subscriptions) { - if (subscription.googChannel !== googChannel) { - newSubscriptions.push(subscription); - continue; - } - // Skip user context subscriptions. - if (subscription.userContextIds.size !== 0) { - newSubscriptions.push(subscription); - continue; - } - // Skip subscriptions when none of the event names match. - if (intersection(subscription.eventNames, eventNames).size === 0) { - newSubscriptions.push(subscription); - continue; - } - // Skip non-global subscriptions. - if (subscription.topLevelTraversableIds.size !== 0) { - newSubscriptions.push(subscription); - continue; - } - const subscriptionEventNames = new Set(subscription.eventNames); - for (const eventName of eventNames) { - if (subscriptionEventNames.has(eventName)) { - eventsMatched.add(eventName); - subscriptionEventNames.delete(eventName); - } - } - if (subscriptionEventNames.size !== 0) { - newSubscriptions.push({ - ...subscription, - eventNames: subscriptionEventNames, - }); - } - } - // If some events did not match, it is an invalid request. - if (!equal(eventsMatched, eventNames)) { - throw new protocol_js_1.InvalidArgumentException('No subscription found'); - } - // Committing the new subscriptions. - this.#subscriptions = newSubscriptions; - } - /** - * Unsubscribes by subscriptionId. - */ - unsubscribeById(subscriptionIds) { - const subscriptionIdsSet = new Set(subscriptionIds); - const unknownIds = difference(subscriptionIdsSet, this.#knownSubscriptionIds); - if (unknownIds.size !== 0) { - throw new protocol_js_1.InvalidArgumentException('No subscription found'); - } - this.#subscriptions = this.#subscriptions.filter((subscription) => { - return !subscriptionIdsSet.has(subscription.id); - }); - this.#knownSubscriptionIds = difference(this.#knownSubscriptionIds, subscriptionIdsSet); - } -} -exports.SubscriptionManager = SubscriptionManager; -/** - * Replace with Set.prototype.intersection once Node 20 is dropped. - */ -function intersection(setA, setB) { - const result = new Set(); - for (const a of setA) { - if (setB.has(a)) { - result.add(a); - } - } - return result; -} -/** - * Replace with Set.prototype.difference once Node 20 is dropped. - */ -function difference(setA, setB) { - const result = new Set(); - for (const a of setA) { - if (!setB.has(a)) { - result.add(a); - } - } - return result; -} -function equal(setA, setB) { - if (setA.size !== setB.size) { - return false; - } - for (const a of setA) { - if (!setB.has(a)) { - return false; - } - } - return true; -} -//# sourceMappingURL=SubscriptionManager.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js.map deleted file mode 100644 index afd867d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/session/SubscriptionManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAmBH,4CAIC;AAGD,oCAwCC;AA6PD,gCAQC;AApUD,+DAMuC;AACvC,oDAA8C;AAG9C;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,GAAG,CAAU;IAC5C,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAY,EAAE,CAAY,EAAE,EAAE,CAC7C,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAC9C,CAAC;AACJ,CAAC;AAED,qDAAqD;AACrD,SAAgB,YAAY,CAC1B,MAAiC;IAEjC,MAAM,SAAS,GAAG,IAAI,GAAG,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AgB,UAAU,CAAI,IAAY,EAAE,IAAY;IACtD,MAAM,MAAM,GAAG,IAAI,GAAG,EAAK,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YACjB,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,KAAK,CAAI,IAAY,EAAE,IAAY;IAC1C,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YACjB,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.d.ts deleted file mode 100644 index 159eef8..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { ChromiumBidi } from '../../../protocol/protocol.js'; -/** - * Returns true if the given event is a CDP event. - * @see https://chromedevtools.github.io/devtools-protocol/ - */ -export declare function isCdpEvent(name: string): boolean; -/** - * Asserts that the given event is known to BiDi or BiDi+, or throws otherwise. - */ -export declare function assertSupportedEvent(name: string): asserts name is ChromiumBidi.EventNames; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js deleted file mode 100644 index 6e95f73..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isCdpEvent = isCdpEvent; -exports.assertSupportedEvent = assertSupportedEvent; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -const protocol_js_1 = require("../../../protocol/protocol.js"); -/** - * Returns true if the given event is a CDP event. - * @see https://chromedevtools.github.io/devtools-protocol/ - */ -function isCdpEvent(name) { - return (name.split('.').at(0)?.startsWith(protocol_js_1.ChromiumBidi.BiDiModule.Cdp) ?? false); -} -/** - * Asserts that the given event is known to BiDi or BiDi+, or throws otherwise. - */ -function assertSupportedEvent(name) { - if (!protocol_js_1.ChromiumBidi.EVENT_NAMES.has(name) && !isCdpEvent(name)) { - throw new protocol_js_1.InvalidArgumentException(`Unknown event: ${name}`); - } -} -//# sourceMappingURL=events.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js.map deleted file mode 100644 index f4375b9..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/session/events.ts"],"names":[],"mappings":";;AAyBA,gCAIC;AAKD,oDAMC;AAxCD;;;;;;;;;;;;;;;GAeG;AACH,+DAGuC;AAEvC;;;GAGG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,OAAO,CACL,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,0BAAY,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CACxE,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,oBAAoB,CAClC,IAAY;IAEZ,IAAI,CAAC,0BAAY,CAAC,WAAW,CAAC,GAAG,CAAC,IAAa,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACtE,MAAM,IAAI,sCAAwB,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/speculation/SpeculationProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/speculation/SpeculationProcessor.d.ts deleted file mode 100644 index fe954a7..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/speculation/SpeculationProcessor.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { LoggerFn } from '../../../utils/log.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { EventManager } from '../session/EventManager.js'; -export declare class SpeculationProcessor { - #private; - constructor(eventManager: EventManager, logger: LoggerFn | undefined); - onCdpTargetCreated(cdpTarget: CdpTarget): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/speculation/SpeculationProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/speculation/SpeculationProcessor.js deleted file mode 100644 index 95a6196..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/speculation/SpeculationProcessor.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SpeculationProcessor = void 0; -const log_js_1 = require("../../../utils/log.js"); -class SpeculationProcessor { - #eventManager; - #logger; - constructor(eventManager, logger) { - this.#eventManager = eventManager; - this.#logger = logger; - } - onCdpTargetCreated(cdpTarget) { - cdpTarget.cdpClient.on('Preload.prefetchStatusUpdated', (event) => { - let prefetchStatus; - switch (event.status) { - case 'Running': - prefetchStatus = "pending" /* Speculation.PreloadingStatus.Pending */; - break; - case 'Ready': - prefetchStatus = "ready" /* Speculation.PreloadingStatus.Ready */; - break; - case 'Success': - prefetchStatus = "success" /* Speculation.PreloadingStatus.Success */; - break; - case 'Failure': - prefetchStatus = "failure" /* Speculation.PreloadingStatus.Failure */; - break; - default: - // If status is not recognized, skip the event - this.#logger?.(log_js_1.LogType.debugWarn, `Unknown prefetch status: ${event.status}`); - return; - } - this.#eventManager.registerEvent({ - type: 'event', - method: 'speculation.prefetchStatusUpdated', - params: { - context: event.initiatingFrameId, - url: event.prefetchUrl, - status: prefetchStatus, - }, - }, cdpTarget.id); - }); - } -} -exports.SpeculationProcessor = SpeculationProcessor; -//# sourceMappingURL=SpeculationProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/speculation/SpeculationProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/speculation/SpeculationProcessor.js.map deleted file mode 100644 index 568977f..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/speculation/SpeculationProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SpeculationProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/speculation/SpeculationProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAIH,kDAA8C;AAI9C,MAAa,oBAAoB;IAC/B,aAAa,CAAe;IACnB,OAAO,CAAuB;IAEvC,YAAY,YAA0B,EAAE,MAA4B;QAClE,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,kBAAkB,CAAC,SAAoB;QACrC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,+BAA+B,EAAE,CAAC,KAAK,EAAE,EAAE;YAChE,IAAI,cAA4C,CAAC;YACjD,QAAQ,KAAK,CAAC,MAAM,EAAE,CAAC;gBACrB,KAAK,SAAS;oBACZ,cAAc,uDAAuC,CAAC;oBACtD,MAAM;gBACR,KAAK,OAAO;oBACV,cAAc,mDAAqC,CAAC;oBACpD,MAAM;gBACR,KAAK,SAAS;oBACZ,cAAc,uDAAuC,CAAC;oBACtD,MAAM;gBACR,KAAK,SAAS;oBACZ,cAAc,uDAAuC,CAAC;oBACtD,MAAM;gBACR;oBACE,8CAA8C;oBAC9C,IAAI,CAAC,OAAO,EAAE,CACZ,gBAAO,CAAC,SAAS,EACjB,4BAA4B,KAAK,CAAC,MAAM,EAAE,CAC3C,CAAC;oBACF,OAAO;YACX,CAAC;YACD,IAAI,CAAC,aAAa,CAAC,aAAa,CAC9B;gBACE,IAAI,EAAE,OAAO;gBACb,MAAM,EAAE,mCAAmC;gBAC3C,MAAM,EAAE;oBACN,OAAO,EAAE,KAAK,CAAC,iBAAiB;oBAChC,GAAG,EAAE,KAAK,CAAC,WAAW;oBACtB,MAAM,EAAE,cAAc;iBACvB;aACF,EACD,SAAS,CAAC,EAAE,CACb,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA/CD,oDA+CC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.d.ts deleted file mode 100644 index cd42a67..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import type { Storage } from '../../../protocol/protocol.js'; -import type { LoggerFn } from '../../../utils/log.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -/** - * Responsible for handling the `storage` module. - */ -export declare class StorageProcessor { - #private; - constructor(browserCdpClient: CdpClient, browsingContextStorage: BrowsingContextStorage, logger: LoggerFn | undefined); - deleteCookies(params: Storage.DeleteCookiesParameters): Promise; - getCookies(params: Storage.GetCookiesParameters): Promise; - setCookie(params: Storage.SetCookieParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js deleted file mode 100644 index 5626d67..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js +++ /dev/null @@ -1,195 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StorageProcessor = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -const assert_js_1 = require("../../../utils/assert.js"); -const log_js_1 = require("../../../utils/log.js"); -const NetworkProcessor_js_1 = require("../network/NetworkProcessor.js"); -const NetworkUtils_js_1 = require("../network/NetworkUtils.js"); -/** - * Responsible for handling the `storage` module. - */ -class StorageProcessor { - #browserCdpClient; - #browsingContextStorage; - #logger; - constructor(browserCdpClient, browsingContextStorage, logger) { - this.#browsingContextStorage = browsingContextStorage; - this.#browserCdpClient = browserCdpClient; - this.#logger = logger; - } - async deleteCookies(params) { - const partitionKey = this.#expandStoragePartitionSpec(params.partition); - let cdpResponse; - try { - cdpResponse = await this.#browserCdpClient.sendCommand('Storage.getCookies', { - browserContextId: this.#getCdpBrowserContextId(partitionKey), - }); - } - catch (err) { - if (this.#isNoSuchUserContextError(err)) { - // If the user context is not found, special error is thrown. - throw new protocol_js_1.NoSuchUserContextException(err.message); - } - throw err; - } - const cdpCookiesToDelete = cdpResponse.cookies - .filter( - // CDP's partition key is the source origin. If the request specifies the - // `sourceOrigin` partition key, only cookies with the requested source origin - // are returned. - (c) => partitionKey.sourceOrigin === undefined || - c.partitionKey?.topLevelSite === partitionKey.sourceOrigin) - .filter((cdpCookie) => { - const bidiCookie = (0, NetworkUtils_js_1.cdpToBiDiCookie)(cdpCookie); - return this.#matchCookie(bidiCookie, params.filter); - }) - .map((cookie) => ({ - ...cookie, - // Set expiry to pass date to delete the cookie. - expires: 1, - })); - await this.#browserCdpClient.sendCommand('Storage.setCookies', { - cookies: cdpCookiesToDelete, - browserContextId: this.#getCdpBrowserContextId(partitionKey), - }); - return { - partitionKey, - }; - } - async getCookies(params) { - const partitionKey = this.#expandStoragePartitionSpec(params.partition); - let cdpResponse; - try { - cdpResponse = await this.#browserCdpClient.sendCommand('Storage.getCookies', { - browserContextId: this.#getCdpBrowserContextId(partitionKey), - }); - } - catch (err) { - if (this.#isNoSuchUserContextError(err)) { - // If the user context is not found, special error is thrown. - throw new protocol_js_1.NoSuchUserContextException(err.message); - } - throw err; - } - const filteredBiDiCookies = cdpResponse.cookies - .filter( - // CDP's partition key is the source origin. If the request specifies the - // `sourceOrigin` partition key, only cookies with the requested source origin - // are returned. - (c) => partitionKey.sourceOrigin === undefined || - c.partitionKey?.topLevelSite === partitionKey.sourceOrigin) - .map((c) => (0, NetworkUtils_js_1.cdpToBiDiCookie)(c)) - .filter((c) => this.#matchCookie(c, params.filter)); - return { - cookies: filteredBiDiCookies, - partitionKey, - }; - } - async setCookie(params) { - const partitionKey = this.#expandStoragePartitionSpec(params.partition); - const cdpCookie = (0, NetworkUtils_js_1.bidiToCdpCookie)(params, partitionKey); - try { - await this.#browserCdpClient.sendCommand('Storage.setCookies', { - cookies: [cdpCookie], - browserContextId: this.#getCdpBrowserContextId(partitionKey), - }); - } - catch (err) { - if (this.#isNoSuchUserContextError(err)) { - // If the user context is not found, special error is thrown. - throw new protocol_js_1.NoSuchUserContextException(err.message); - } - this.#logger?.(log_js_1.LogType.debugError, err); - throw new protocol_js_1.UnableToSetCookieException(err.toString()); - } - return { - partitionKey, - }; - } - #isNoSuchUserContextError(err) { - // Heuristic to detect if the user context is not found. - // See https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/browser_handler.cc;drc=a56154dd81e4679712422ac6eed2c9581cb51ab0;l=314 - return err.message?.startsWith('Failed to find browser context for id'); - } - #getCdpBrowserContextId(partitionKey) { - return partitionKey.userContext === 'default' - ? undefined - : partitionKey.userContext; - } - #expandStoragePartitionSpecByBrowsingContext(descriptor) { - const browsingContextId = descriptor.context; - const browsingContext = this.#browsingContextStorage.getContext(browsingContextId); - // https://w3c.github.io/webdriver-bidi/#associated-storage-partition. - // Each browsing context also has an associated storage partition, which is the - // storage partition it uses to persist data. In Chromium it's a `BrowserContext` - // which maps to BiDi `UserContext`. - return { - userContext: browsingContext.userContext, - }; - } - #expandStoragePartitionSpecByStorageKey(descriptor) { - const unsupportedPartitionKeys = new Map(); - let sourceOrigin = descriptor.sourceOrigin; - if (sourceOrigin !== undefined) { - const url = NetworkProcessor_js_1.NetworkProcessor.parseUrlString(sourceOrigin); - if (url.origin === 'null') { - // Origin `null` is a special case for local pages. - sourceOrigin = url.origin; - } - else { - // Port is not supported in CDP Cookie's `partitionKey`, so it should be stripped - // from the requested source origin. - sourceOrigin = `${url.protocol}//${url.hostname}`; - } - } - for (const [key, value] of Object.entries(descriptor)) { - if (key !== undefined && - value !== undefined && - !['type', 'sourceOrigin', 'userContext'].includes(key)) { - unsupportedPartitionKeys.set(key, value); - } - } - if (unsupportedPartitionKeys.size > 0) { - this.#logger?.(log_js_1.LogType.debugInfo, `Unsupported partition keys: ${JSON.stringify(Object.fromEntries(unsupportedPartitionKeys))}`); - } - // Set `userContext` to `default` if not provided, as it's required in Chromium. - const userContext = descriptor.userContext ?? 'default'; - return { - userContext, - ...(sourceOrigin === undefined ? {} : { sourceOrigin }), - }; - } - #expandStoragePartitionSpec(partitionSpec) { - if (partitionSpec === undefined) { - // `userContext` is required in Chromium. - return { userContext: 'default' }; - } - if (partitionSpec.type === 'context') { - return this.#expandStoragePartitionSpecByBrowsingContext(partitionSpec); - } - (0, assert_js_1.assert)(partitionSpec.type === 'storageKey', 'Unknown partition type'); - // Partition spec is a storage partition. - // Let partition key be partition spec. - return this.#expandStoragePartitionSpecByStorageKey(partitionSpec); - } - #matchCookie(cookie, filter) { - if (filter === undefined) { - return true; - } - return ((filter.domain === undefined || filter.domain === cookie.domain) && - (filter.name === undefined || filter.name === cookie.name) && - // `value` contains fields `type` and `value`. - (filter.value === undefined || - (0, NetworkUtils_js_1.deserializeByteValue)(filter.value) === - (0, NetworkUtils_js_1.deserializeByteValue)(cookie.value)) && - (filter.path === undefined || filter.path === cookie.path) && - (filter.size === undefined || filter.size === cookie.size) && - (filter.httpOnly === undefined || filter.httpOnly === cookie.httpOnly) && - (filter.secure === undefined || filter.secure === cookie.secure) && - (filter.sameSite === undefined || filter.sameSite === cookie.sameSite) && - (filter.expiry === undefined || filter.expiry === cookie.expiry)); - } -} -exports.StorageProcessor = StorageProcessor; -//# sourceMappingURL=StorageProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js.map deleted file mode 100644 index 403899d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StorageProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/storage/StorageProcessor.ts"],"names":[],"mappings":";;;AAiBA,+DAGuC;AAEvC,wDAAgD;AAEhD,kDAA8C;AAE9C,wEAAgE;AAChE,gEAIoC;AAEpC;;GAEG;AACH,MAAa,gBAAgB;IAClB,iBAAiB,CAAY;IAC7B,uBAAuB,CAAyB;IAChD,OAAO,CAAuB;IAEvC,YACE,gBAA2B,EAC3B,sBAA8C,EAC9C,MAA4B;QAE5B,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,MAAuC;QAEvC,MAAM,YAAY,GAAG,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAExE,IAAI,WAAW,CAAC;QAChB,IAAI,CAAC;YACH,WAAW,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CACpD,oBAAoB,EACpB;gBACE,gBAAgB,EAAE,IAAI,CAAC,uBAAuB,CAAC,YAAY,CAAC;aAC7D,CACF,CAAC;QACJ,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,IAAI,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,EAAE,CAAC;gBACxC,6DA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;IACJ,CAAC;CACF;AA7OD,4CA6OC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/webExtension/WebExtensionProcessor.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/webExtension/WebExtensionProcessor.d.ts deleted file mode 100644 index f2297f8..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/webExtension/WebExtensionProcessor.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { type WebExtension, type EmptyResult } from '../../../protocol/protocol.js'; -/** - * Responsible for handling the `webModule` module. - */ -export declare class WebExtensionProcessor { - #private; - constructor(browserCdpClient: CdpClient); - install(params: WebExtension.InstallParameters): Promise; - uninstall(params: WebExtension.UninstallParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/webExtension/WebExtensionProcessor.js b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/webExtension/WebExtensionProcessor.js deleted file mode 100644 index 5d0230e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/webExtension/WebExtensionProcessor.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebExtensionProcessor = void 0; -const protocol_js_1 = require("../../../protocol/protocol.js"); -/** - * Responsible for handling the `webModule` module. - */ -class WebExtensionProcessor { - #browserCdpClient; - constructor(browserCdpClient) { - this.#browserCdpClient = browserCdpClient; - } - async install(params) { - switch (params.extensionData.type) { - case 'archivePath': - case 'base64': - throw new protocol_js_1.UnsupportedOperationException('Archived and Base64 extensions are not supported'); - case 'path': - break; - } - try { - const response = await this.#browserCdpClient.sendCommand('Extensions.loadUnpacked', { - path: params.extensionData.path, - }); - return { - extension: response.id, - }; - } - catch (err) { - if (err.message.startsWith('invalid web extension')) { - throw new protocol_js_1.InvalidWebExtensionException(err.message); - } - throw err; - } - } - async uninstall(params) { - try { - await this.#browserCdpClient.sendCommand('Extensions.uninstall', { - id: params.extension, - }); - return {}; - } - catch (err) { - if (err.message === - 'Uninstall failed. Reason: could not find extension.') { - throw new protocol_js_1.NoSuchWebExtensionException('no such web extension'); - } - throw err; - } - } -} -exports.WebExtensionProcessor = WebExtensionProcessor; -//# sourceMappingURL=WebExtensionProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/webExtension/WebExtensionProcessor.js.map b/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/webExtension/WebExtensionProcessor.js.map deleted file mode 100644 index c6b9c0e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/webExtension/WebExtensionProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WebExtensionProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/webExtension/WebExtensionProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,+DAMuC;AAEvC;;GAEG;AACH,MAAa,qBAAqB;IACvB,iBA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ules/chromium-bidi/lib/cjs/bidiTab/BidiParser.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.d.ts deleted file mode 100644 index 3f6f263..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { BidiCommandParameterParser } from '../bidiMapper/BidiMapper.js'; -import type { Bluetooth, Browser, BrowsingContext, Cdp, Emulation, Input, Network, Permissions, Script, Session, Storage, WebExtension, UAClientHints } from '../protocol/protocol.js'; -export declare class BidiParser implements BidiCommandParameterParser { - parseDisableSimulationParameters(params: unknown): Bluetooth.DisableSimulationParameters; - parseHandleRequestDevicePromptParams(params: unknown): Bluetooth.HandleRequestDevicePromptParameters; - parseSimulateAdapterParameters(params: unknown): Bluetooth.SimulateAdapterParameters; - parseSimulateAdvertisementParameters(params: unknown): Bluetooth.SimulateAdvertisementParameters; - parseSimulateCharacteristicParameters(params: unknown): Bluetooth.SimulateCharacteristicParameters; - parseSimulateCharacteristicResponseParameters(params: unknown): Bluetooth.SimulateCharacteristicResponseParameters; - parseSimulateDescriptorParameters(params: unknown): Bluetooth.SimulateDescriptorParameters; - parseSimulateDescriptorResponseParameters(params: unknown): Bluetooth.SimulateDescriptorResponseParameters; - parseSimulateGattConnectionResponseParameters(params: unknown): Bluetooth.SimulateGattConnectionResponseParameters; - parseSimulateGattDisconnectionParameters(params: unknown): Bluetooth.SimulateGattDisconnectionParameters; - parseSimulatePreconnectedPeripheralParameters(params: unknown): Bluetooth.SimulatePreconnectedPeripheralParameters; - parseSimulateServiceParameters(params: unknown): Bluetooth.SimulateServiceParameters; - parseCreateUserContextParameters(params: unknown): Browser.CreateUserContextParameters; - parseRemoveUserContextParameters(params: unknown): Browser.RemoveUserContextParameters; - parseSetClientWindowStateParameters(params: unknown): Browser.SetClientWindowStateParameters; - parseSetDownloadBehaviorParameters(params: unknown): Browser.SetDownloadBehaviorParameters; - parseActivateParams(params: unknown): BrowsingContext.ActivateParameters; - parseCaptureScreenshotParams(params: unknown): BrowsingContext.CaptureScreenshotParameters; - parseCloseParams(params: unknown): BrowsingContext.CloseParameters; - parseCreateParams(params: unknown): BrowsingContext.CreateParameters; - parseGetTreeParams(params: unknown): BrowsingContext.GetTreeParameters; - parseHandleUserPromptParams(params: unknown): BrowsingContext.HandleUserPromptParameters; - parseLocateNodesParams(params: unknown): BrowsingContext.LocateNodesParameters; - parseNavigateParams(params: unknown): BrowsingContext.NavigateParameters; - parsePrintParams(params: unknown): BrowsingContext.PrintParameters; - parseReloadParams(params: unknown): BrowsingContext.ReloadParameters; - parseSetViewportParams(params: unknown): BrowsingContext.SetViewportParameters; - parseTraverseHistoryParams(params: unknown): BrowsingContext.TraverseHistoryParameters; - parseGetSessionParams(params: unknown): Cdp.GetSessionParameters; - parseResolveRealmParams(params: unknown): Cdp.ResolveRealmParameters; - parseSendCommandParams(params: unknown): Cdp.SendCommandParameters; - parseSetClientHintsOverrideParams(params: unknown): UAClientHints.UserAgentClientHints.SetClientHintsOverrideCommand['params']; - parseSetForcedColorsModeThemeOverrideParams(params: unknown): Emulation.SetForcedColorsModeThemeOverrideParameters; - parseSetGeolocationOverrideParams(params: unknown): Emulation.SetGeolocationOverrideParameters; - parseSetLocaleOverrideParams(params: unknown): Emulation.SetLocaleOverrideParameters; - parseSetNetworkConditionsParams(params: unknown): Emulation.SetNetworkConditionsParameters; - parseSetScreenOrientationOverrideParams(params: unknown): Emulation.SetScreenOrientationOverrideParameters; - parseSetScreenSettingsOverrideParams(params: unknown): Emulation.SetScreenSettingsOverrideParameters; - parseSetScriptingEnabledParams(params: unknown): Emulation.SetScriptingEnabledParameters; - parseSetTimezoneOverrideParams(params: unknown): Emulation.SetTimezoneOverrideParameters; - parseSetTouchOverrideParams(params: unknown): Emulation.SetTouchOverrideParameters; - parseSetUserAgentOverrideParams(params: unknown): Emulation.SetUserAgentOverrideParameters; - parsePerformActionsParams(params: unknown): Input.PerformActionsParameters; - parseReleaseActionsParams(params: unknown): Input.ReleaseActionsParameters; - parseSetFilesParams(params: unknown): Input.SetFilesParameters; - parseAddDataCollectorParams(params: unknown): Network.AddDataCollectorParameters; - parseAddInterceptParams(params: unknown): Network.AddInterceptParameters; - parseContinueRequestParams(params: unknown): Network.ContinueRequestParameters; - parseContinueResponseParams(params: unknown): Network.ContinueResponseParameters; - parseContinueWithAuthParams(params: unknown): Network.ContinueWithAuthParameters; - parseDisownDataParams(params: unknown): Network.DisownDataParameters; - parseFailRequestParams(params: unknown): Network.FailRequestParameters; - parseGetDataParams(params: unknown): Network.GetDataParameters; - parseProvideResponseParams(params: unknown): Network.ProvideResponseParameters; - parseRemoveDataCollectorParams(params: unknown): Network.RemoveDataCollectorParameters; - parseRemoveInterceptParams(params: unknown): Network.RemoveInterceptParameters; - parseSetCacheBehaviorParams(params: unknown): Network.SetCacheBehaviorParameters; - parseSetExtraHeadersParams(params: unknown): Network.SetExtraHeadersParameters; - parseSetPermissionsParams(params: unknown): Permissions.SetPermissionParameters; - parseAddPreloadScriptParams(params: unknown): Script.AddPreloadScriptParameters; - parseCallFunctionParams(params: unknown): Script.CallFunctionParameters; - parseDisownParams(params: unknown): Script.DisownParameters; - parseEvaluateParams(params: unknown): Script.EvaluateParameters; - parseGetRealmsParams(params: unknown): Script.GetRealmsParameters; - parseRemovePreloadScriptParams(params: unknown): Script.RemovePreloadScriptParameters; - parseSubscribeParams(params: unknown): Session.SubscribeParameters; - parseUnsubscribeParams(params: unknown): Session.UnsubscribeParameters; - parseDeleteCookiesParams(params: unknown): Storage.DeleteCookiesParameters; - parseGetCookiesParams(params: unknown): Storage.GetCookiesParameters; - parseSetCookieParams(params: unknown): Storage.SetCookieParameters; - parseInstallParams(params: unknown): WebExtension.InstallParameters; - parseUninstallParams(params: unknown): WebExtension.UninstallParameters; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js b/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js deleted file mode 100644 index dbfdfb8..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js +++ /dev/null @@ -1,294 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BidiParser = void 0; -const Parser = __importStar(require("../protocol-parser/protocol-parser.js")); -class BidiParser { - // Bluetooth module - // keep-sorted start block=yes - parseDisableSimulationParameters(params) { - return Parser.Bluetooth.parseDisableSimulationParameters(params); - } - parseHandleRequestDevicePromptParams(params) { - return Parser.Bluetooth.parseHandleRequestDevicePromptParams(params); - } - parseSimulateAdapterParameters(params) { - return Parser.Bluetooth.parseSimulateAdapterParams(params); - } - parseSimulateAdvertisementParameters(params) { - return Parser.Bluetooth.parseSimulateAdvertisementParams(params); - } - parseSimulateCharacteristicParameters(params) { - return Parser.Bluetooth.parseSimulateCharacteristicParams(params); - } - parseSimulateCharacteristicResponseParameters(params) { - return Parser.Bluetooth.parseSimulateCharacteristicResponseParams(params); - } - parseSimulateDescriptorParameters(params) { - return Parser.Bluetooth.parseSimulateDescriptorParams(params); - } - parseSimulateDescriptorResponseParameters(params) { - return Parser.Bluetooth.parseSimulateDescriptorResponseParams(params); - } - parseSimulateGattConnectionResponseParameters(params) { - return Parser.Bluetooth.parseSimulateGattConnectionResponseParams(params); - } - parseSimulateGattDisconnectionParameters(params) { - return Parser.Bluetooth.parseSimulateGattDisconnectionParams(params); - } - parseSimulatePreconnectedPeripheralParameters(params) { - return Parser.Bluetooth.parseSimulatePreconnectedPeripheralParams(params); - } - parseSimulateServiceParameters(params) { - return Parser.Bluetooth.parseSimulateServiceParams(params); - } - // keep-sorted end - // Browser module - // keep-sorted start block=yes - parseCreateUserContextParameters(params) { - // Validate the params, but return the original one, as there can be `goog:` options. - Parser.Browser.parseCreateUserContextParameters(params); - return params; - } - parseRemoveUserContextParameters(params) { - return Parser.Browser.parseRemoveUserContextParameters(params); - } - parseSetClientWindowStateParameters(params) { - return Parser.Browser.parseSetClientWindowStateParameters(params); - } - parseSetDownloadBehaviorParameters(params) { - return Parser.Browser.parseSetDownloadBehaviorParameters(params); - } - // keep-sorted end - // Browsing Context module - // keep-sorted start block=yes - parseActivateParams(params) { - return Parser.BrowsingContext.parseActivateParams(params); - } - parseCaptureScreenshotParams(params) { - return Parser.BrowsingContext.parseCaptureScreenshotParams(params); - } - parseCloseParams(params) { - return Parser.BrowsingContext.parseCloseParams(params); - } - parseCreateParams(params) { - return Parser.BrowsingContext.parseCreateParams(params); - } - parseGetTreeParams(params) { - return Parser.BrowsingContext.parseGetTreeParams(params); - } - parseHandleUserPromptParams(params) { - return Parser.BrowsingContext.parseHandleUserPromptParameters(params); - } - parseLocateNodesParams(params) { - return Parser.BrowsingContext.parseLocateNodesParams(params); - } - parseNavigateParams(params) { - return Parser.BrowsingContext.parseNavigateParams(params); - } - parsePrintParams(params) { - return Parser.BrowsingContext.parsePrintParams(params); - } - parseReloadParams(params) { - return Parser.BrowsingContext.parseReloadParams(params); - } - parseSetViewportParams(params) { - return Parser.BrowsingContext.parseSetViewportParams(params); - } - parseTraverseHistoryParams(params) { - return Parser.BrowsingContext.parseTraverseHistoryParams(params); - } - // keep-sorted end - // CDP module - // keep-sorted start block=yes - parseGetSessionParams(params) { - return Parser.Cdp.parseGetSessionRequest(params); - } - parseResolveRealmParams(params) { - return Parser.Cdp.parseResolveRealmRequest(params); - } - parseSendCommandParams(params) { - return Parser.Cdp.parseSendCommandRequest(params); - } - // keep-sorted end - // Emulation module - // keep-sorted start block=yes - parseSetClientHintsOverrideParams(params) { - return Parser.Emulation.parseSetClientHintsOverrideParams(params); - } - parseSetForcedColorsModeThemeOverrideParams(params) { - return Parser.Emulation.parseSetForcedColorsModeThemeOverrideParams(params); - } - parseSetGeolocationOverrideParams(params) { - return Parser.Emulation.parseSetGeolocationOverrideParams(params); - } - parseSetLocaleOverrideParams(params) { - return Parser.Emulation.parseSetLocaleOverrideParams(params); - } - parseSetNetworkConditionsParams(params) { - return Parser.Emulation.parseSetNetworkConditionsParams(params); - } - parseSetScreenOrientationOverrideParams(params) { - return Parser.Emulation.parseSetScreenOrientationOverrideParams(params); - } - parseSetScreenSettingsOverrideParams(params) { - return Parser.Emulation.parseSetScreenSettingsOverrideParams(params); - } - parseSetScriptingEnabledParams(params) { - return Parser.Emulation.parseSetScriptingEnabledParams(params); - } - parseSetTimezoneOverrideParams(params) { - return Parser.Emulation.parseSetTimezoneOverrideParams(params); - } - parseSetTouchOverrideParams(params) { - return Parser.Emulation.parseSetTouchOverrideParams(params); - } - parseSetUserAgentOverrideParams(params) { - return Parser.Emulation.parseSetUserAgentOverrideParams(params); - } - // keep-sorted end - // Input module - // keep-sorted start block=yes - parsePerformActionsParams(params) { - return Parser.Input.parsePerformActionsParams(params); - } - parseReleaseActionsParams(params) { - return Parser.Input.parseReleaseActionsParams(params); - } - parseSetFilesParams(params) { - return Parser.Input.parseSetFilesParams(params); - } - // keep-sorted end - // Network module - // keep-sorted start block=yes - parseAddDataCollectorParams(params) { - return Parser.Network.parseAddDataCollectorParameters(params); - } - parseAddInterceptParams(params) { - return Parser.Network.parseAddInterceptParameters(params); - } - parseContinueRequestParams(params) { - return Parser.Network.parseContinueRequestParameters(params); - } - parseContinueResponseParams(params) { - return Parser.Network.parseContinueResponseParameters(params); - } - parseContinueWithAuthParams(params) { - return Parser.Network.parseContinueWithAuthParameters(params); - } - parseDisownDataParams(params) { - return Parser.Network.parseDisownDataParameters(params); - } - parseFailRequestParams(params) { - return Parser.Network.parseFailRequestParameters(params); - } - parseGetDataParams(params) { - return Parser.Network.parseGetDataParameters(params); - } - parseProvideResponseParams(params) { - return Parser.Network.parseProvideResponseParameters(params); - } - parseRemoveDataCollectorParams(params) { - return Parser.Network.parseRemoveDataCollectorParameters(params); - } - parseRemoveInterceptParams(params) { - return Parser.Network.parseRemoveInterceptParameters(params); - } - parseSetCacheBehaviorParams(params) { - return Parser.Network.parseSetCacheBehaviorParameters(params); - } - parseSetExtraHeadersParams(params) { - return Parser.Network.parseSetExtraHeadersParameters(params); - } - // keep-sorted end - // Permissions module - // keep-sorted start block=yes - parseSetPermissionsParams(params) { - return Parser.Permissions.parseSetPermissionsParams(params); - } - // keep-sorted end - // Script module - // keep-sorted start block=yes - parseAddPreloadScriptParams(params) { - return Parser.Script.parseAddPreloadScriptParams(params); - } - parseCallFunctionParams(params) { - return Parser.Script.parseCallFunctionParams(params); - } - parseDisownParams(params) { - return Parser.Script.parseDisownParams(params); - } - parseEvaluateParams(params) { - return Parser.Script.parseEvaluateParams(params); - } - parseGetRealmsParams(params) { - return Parser.Script.parseGetRealmsParams(params); - } - parseRemovePreloadScriptParams(params) { - return Parser.Script.parseRemovePreloadScriptParams(params); - } - // keep-sorted end - // Session module - // keep-sorted start block=yes - parseSubscribeParams(params) { - return Parser.Session.parseSubscribeParams(params); - } - parseUnsubscribeParams(params) { - return Parser.Session.parseUnsubscribeParams(params); - } - // keep-sorted end - // Storage module - // keep-sorted start block=yes - parseDeleteCookiesParams(params) { - return Parser.Storage.parseDeleteCookiesParams(params); - } - parseGetCookiesParams(params) { - return Parser.Storage.parseGetCookiesParams(params); - } - parseSetCookieParams(params) { - return Parser.Storage.parseSetCookieParams(params); - } - // keep-sorted end - // WebExtenstion module - // keep-sorted start block=yes - parseInstallParams(params) { - return Parser.WebModule.parseInstallParams(params); - } - parseUninstallParams(params) { - return Parser.WebModule.parseUninstallParams(params); - } -} -exports.BidiParser = BidiParser; -//# sourceMappingURL=BidiParser.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js.map b/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js.map deleted file mode 100644 index 60725ba..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiParser.js","sourceRoot":"","sources":["../../../src/bidiTab/BidiParser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,8EAAgE;AAEhE,MAAa,UAAU;IACrB,mBAAmB;IACnB,8BAA8B;IAC9B,gCAAgC,CAC9B,MAAe;QAEf,OAAO,MAAM,CAAC,SAAS,CAAC,gCAAgC,CAAC,MAAM,CAAC,CAAC;IACnE,CAAC;IACD,oCAAoC,CAClC,MAAe;QAEf,OAAO,MAAM,CAAC,SAAS,CAAC,oCAAoC,CAAC,MAAM,CAAC,CAAC;IACvE,CAAC;IACD,8BAA8B,CAC5B,MAAe;QAEf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wB,CAAC,MAAe;QACtC,OAAO,MAAM,CAAC,OAAO,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;IACzD,CAAC;IACD,qBAAqB,CAAC,MAAe;QACnC,OAAO,MAAM,CAAC,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;IACD,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAAM,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;IACD,kBAAkB;IAElB,uBAAuB;IACvB,8BAA8B;IAC9B,kBAAkB,CAAC,MAAe;QAChC,OAAO,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;IACD,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;CAEF;AAlWD,gCAkWC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.d.ts deleted file mode 100644 index 23f74b9..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. * - */ -import type { BidiTransport } from '../bidiMapper/BidiMapper.js'; -import { type ChromiumBidi } from '../protocol/protocol.js'; -import { LogType } from '../utils/log.js'; -import type { Transport } from '../utils/transport.js'; -export declare class WindowBidiTransport implements BidiTransport { - #private; - static readonly LOGGER_PREFIX_RECV: "bidi:RECV ◂"; - static readonly LOGGER_PREFIX_SEND: "bidi:SEND ▸"; - static readonly LOGGER_PREFIX_WARN = LogType.debugWarn; - constructor(); - setOnMessage(onMessage: Parameters[0]): void; - sendMessage(message: ChromiumBidi.Message): void; - close(): void; -} -export declare class WindowCdpTransport implements Transport { - #private; - constructor(); - setOnMessage(onMessage: Parameters[0]): void; - sendMessage(message: string): void; - close(): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js b/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js deleted file mode 100644 index d94d00c..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js +++ /dev/null @@ -1,150 +0,0 @@ -"use strict"; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WindowCdpTransport = exports.WindowBidiTransport = void 0; -const log_js_1 = require("../utils/log.js"); -const mapperTabPage_js_1 = require("./mapperTabPage.js"); -class WindowBidiTransport { - static LOGGER_PREFIX_RECV = `${log_js_1.LogType.bidi}:RECV ◂`; - static LOGGER_PREFIX_SEND = `${log_js_1.LogType.bidi}:SEND ▸`; - static LOGGER_PREFIX_WARN = log_js_1.LogType.debugWarn; - #onMessage = null; - constructor() { - window.onBidiMessage = (message) => { - (0, mapperTabPage_js_1.log)(_a.LOGGER_PREFIX_RECV, message); - try { - const command = _a.#parseBidiMessage(message); - this.#onMessage?.call(null, command); - } - catch (e) { - const error = e instanceof Error ? e : new Error(e); - // Transport-level error does not provide goog:channel. - this.#respondWithError(message, "invalid argument" /* ErrorCode.InvalidArgument */, error, null); - } - }; - } - setOnMessage(onMessage) { - this.#onMessage = onMessage; - } - sendMessage(message) { - (0, mapperTabPage_js_1.log)(_a.LOGGER_PREFIX_SEND, message); - const json = JSON.stringify(message); - window.sendBidiResponse(json); - } - close() { - this.#onMessage = null; - window.onBidiMessage = null; - } - #respondWithError(plainCommandData, errorCode, error, googChannel) { - const errorResponse = _a.#getErrorResponse(plainCommandData, errorCode, error); - if (googChannel) { - this.sendMessage({ - ...errorResponse, - 'goog:channel': googChannel, - }); - } - else { - this.sendMessage(errorResponse); - } - } - static #getJsonType(value) { - if (value === null) { - return 'null'; - } - if (Array.isArray(value)) { - return 'array'; - } - return typeof value; - } - static #getErrorResponse(message, errorCode, error) { - // XXX: this is bizarre per spec. We reparse the payload and - // extract the ID, regardless of what kind of value it was. - let messageId; - try { - const command = JSON.parse(message); - if (_a.#getJsonType(command) === 'object' && - 'id' in command) { - messageId = command.id; - } - } - catch { } - return { - type: 'error', - id: messageId, - error: errorCode, - message: error.message, - }; - } - static #parseBidiMessage(message) { - let command; - try { - command = JSON.parse(message); - } - catch { - throw new Error('Cannot parse data as JSON'); - } - const type = _a.#getJsonType(command); - if (type !== 'object') { - throw new Error(`Expected JSON object but got ${type}`); - } - // Extract and validate id, method and params. - const { id, method, params } = command; - const idType = _a.#getJsonType(id); - if (idType !== 'number' || !Number.isInteger(id) || id < 0) { - // TODO: should uint64_t be the upper limit? - // https://tools.ietf.org/html/rfc7049#section-2.1 - throw new Error(`Expected unsigned integer but got ${idType}`); - } - const methodType = _a.#getJsonType(method); - if (methodType !== 'string') { - throw new Error(`Expected string method but got ${methodType}`); - } - const paramsType = _a.#getJsonType(params); - if (paramsType !== 'object') { - throw new Error(`Expected object params but got ${paramsType}`); - } - let googChannel = command['goog:channel']; - if (googChannel !== undefined) { - const googChannelType = _a.#getJsonType(googChannel); - if (googChannelType !== 'string') { - throw new Error(`Expected string channel but got ${googChannelType}`); - } - // Empty string goog:channel is considered as no goog:channel provided. - if (googChannel === '') { - googChannel = undefined; - } - } - return { - id, - method, - params, - 'goog:channel': googChannel, - }; - } -} -exports.WindowBidiTransport = WindowBidiTransport; -_a = WindowBidiTransport; -class WindowCdpTransport { - #onMessage = null; - #cdpSend; - constructor() { - this.#cdpSend = window.cdp.send; - // @ts-expect-error removing cdp - window.cdp.send = undefined; - window.cdp.onmessage = (message) => { - this.#onMessage?.call(null, message); - }; - } - setOnMessage(onMessage) { - this.#onMessage = onMessage; - } - sendMessage(message) { - this.#cdpSend(message); - } - close() { - this.#onMessage = null; - window.cdp.onmessage = null; - } -} -exports.WindowCdpTransport = WindowCdpTransport; -//# sourceMappingURL=Transport.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js.map b/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js.map deleted file mode 100644 index a2c9ba2..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Transport.js","sourceRoot":"","sources":["../../../src/bidiTab/Transport.ts"],"names":[],"mappings":";;;;AAuBA,4CAAwC;AAGxC,yDAAuC;AAEvC,MAAa,mBAAmB;IAC9B,MAAM,CAAU,kBAAkB,GAAG,GAAG,gBAAO,CAAC,IAAI,SAAkB,CAAC;IACvE,MAAM,CAAU,kBAAkB,GAAG,GAAG,gBAAO,CAAC,IAAI,SAAkB,CAAC;IACvE,MAAM,CAAU,kBAAkB,GAAG,gBAAO,CAAC,SAAS,CAAC;IAEvD,UAAU,GAAqD,IAAI,CAAC;IAEpE;QACE,MAAM,CAAC,aAAa,GAAG,CAAC,OAAe,EAAE,EAAE;YACzC,IAAA,sBAAG,EAAC,EAAmB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;YACrD,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,EAAmB,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBAC/D,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YACvC,CAAC;YAAC,OAAO,CAAU,EAAE,CAAC;gBACpB,MAAM,KAAK,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAW,CAAC,CAAC;gBAC9D,uDAAuD;gBACvD,IAAI,CAAC,iBAAiB,CAAC,OAAO,s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AC;IAED,YAAY,CAAC,SAAmD;QAC9D,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,WAAW,CAAC,OAAe;QACzB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,MAAM,CAAC,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC;IAC9B,CAAC;CACF;AAzBD,gDAyBC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.d.ts deleted file mode 100644 index 1e49223..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * @license - */ -declare global { - interface Window { - runMapperInstance: ((...args: any) => Promise) | null; - cdp: { - send: (message: string) => void; - onmessage: ((message: string) => void) | null; - }; - sendBidiResponse: (response: string) => void; - onBidiMessage: ((message: string) => void) | null; - sendDebugMessage?: ((message: string) => void) | null; - onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null; - } -} -export {}; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js b/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js deleted file mode 100644 index b5ccdcf..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * @license - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const BidiMapper_js_1 = require("../bidiMapper/BidiMapper.js"); -const CdpConnection_js_1 = require("../cdp/CdpConnection.js"); -const log_js_1 = require("../utils/log.js"); -const BidiParser_js_1 = require("./BidiParser.js"); -const mapperTabPage_js_1 = require("./mapperTabPage.js"); -const Transport_js_1 = require("./Transport.js"); -(0, mapperTabPage_js_1.generatePage)(); -const mapperTabToServerTransport = new Transport_js_1.WindowBidiTransport(); -const cdpTransport = new Transport_js_1.WindowCdpTransport(); -/** - * A CdpTransport implementation that uses the window.cdp bindings - * injected by Target.exposeDevToolsProtocol. - */ -const cdpConnection = new CdpConnection_js_1.MapperCdpConnection(cdpTransport, mapperTabPage_js_1.log); -/** - * Launches the BiDi mapper instance. - * @param {string} selfTargetId - * @param options Mapper options. E.g. `acceptInsecureCerts`. - */ -async function runMapperInstance(selfTargetId) { - // eslint-disable-next-line no-console - console.log('Launching Mapper instance with selfTargetId:', selfTargetId); - const bidiServer = await BidiMapper_js_1.BidiServer.createAndStart(mapperTabToServerTransport, cdpConnection, - /** - * Create a Browser CDP Session per Mapper instance. - */ - await cdpConnection.createBrowserSession(), selfTargetId, new BidiParser_js_1.BidiParser(), mapperTabPage_js_1.log); - (0, mapperTabPage_js_1.log)(log_js_1.LogType.debugInfo, 'Mapper instance has been launched'); - return bidiServer; -} -/** - * Set `window.runMapper` to a function which launches the BiDi mapper instance. - * @param selfTargetId Needed to filter out info related to BiDi target. - */ -window.runMapperInstance = async (selfTargetId) => { - await runMapperInstance(selfTargetId); -}; -//# sourceMappingURL=bidiTab.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js.map b/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js.map deleted file mode 100644 index 89a480a..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bidiTab.js","sourceRoot":"","sources":["../../../src/bidiTab/bidiTab.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAEH,+DAAuD;AACvD,8DAA4D;AAC5D,4CAAwC;AAExC,mDAA2C;AAC3C,yDAAqD;AACrD,iDAAuE;AAgCvE,IAAA,+BAAY,GAAE,CAAC;AACf,MAAM,0BAA0B,GAAG,IAAI,kCAAmB,EAAE,CAAC;AAC7D,MAAM,YAAY,GAAG,IAAI,iCAAkB,EAAE,CAAC;AAC9C;;;GAGG;AACH,MAAM,aAAa,GAAG,IAAI,sCAAmB,CAAC,YAAY,EAAE,sBAAG,CAAC,CAAC;AAEjE;;;;GAIG;AACH,KAAK,UAAU,iBAAiB,CAAC,YAAoB;IACnD,sCAAsC;IACtC,OAAO,CAAC,GAAG,CAAC,8CAA8C,EAAE,YAAY,CAAC,CAAC;IAE1E,MAAM,UAAU,GAAG,MAAM,0BAAU,CAAC,cAAc,CAChD,0BAA0B,EAC1B,aAAa;IACb;;OAEG;IACH,MAAM,aAAa,CAAC,oBAAoB,EAAE,EAC1C,YAAY,EACZ,IAAI,0BAAU,EAAE,EAChB,sBAAG,CACJ,CAAC;IAEF,IAAA,sBAAG,EAAC,gBAAO,CAAC,SAAS,EAAE,mCAAmC,CAAC,CAAC;IAE5D,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,iBAAiB,GAAG,KAAK,EAAE,YAAY,EAAE,EAAE;IAChD,MAAM,iBAAiB,CAAC,YAAY,CAAC,CAAC;AACxC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.d.ts b/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.d.ts deleted file mode 100644 index fd1c6f6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type LogPrefix } from '../utils/log.js'; -export declare function generatePage(): void; -export declare function log(logPrefix: LogPrefix, ...messages: unknown[]): void; diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.js b/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.js deleted file mode 100644 index 270fdc4..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.generatePage = generatePage; -exports.log = log; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -const log_js_1 = require("../utils/log.js"); -/** HTML source code for the user-facing Mapper tab. */ -const mapperPageSource = 'BiDi-CDP Mapper'; -function generatePage() { - // If run not in browser (e.g. unit test), do nothing. - if (!globalThis.document.documentElement) { - return; - } - globalThis.document.documentElement.innerHTML = mapperPageSource; - // Show a confirmation dialog when the user tries to leave the Mapper tab. - globalThis.window.onbeforeunload = () => 'Closing or reloading this tab will stop the BiDi process. Are you sure you want to leave?'; -} -function stringify(message) { - if (typeof message === 'object') { - return JSON.stringify(message, null, 2); - } - return message; -} -function log(logPrefix, ...messages) { - // If run not in browser (e.g. unit test), do nothing. - if (!globalThis.document.documentElement) { - return; - } - // Skip sending BiDi logs as they are logged once by `bidi:server:*` - if (!logPrefix.startsWith(log_js_1.LogType.bidi)) { - // If `sendDebugMessage` is defined, send the log message there. - globalThis.window?.sendDebugMessage?.(JSON.stringify({ logType: logPrefix, messages }, null, 2)); - } - const debugContainer = document.getElementById('logs'); - if (!debugContainer) { - return; - } - // This piece of HTML should be added: - //
...log message...
- const lineElement = document.createElement('div'); - lineElement.className = 'pre'; - lineElement.textContent = [logPrefix, ...messages].map(stringify).join(' '); - debugContainer.appendChild(lineElement); - if (debugContainer.childNodes.length > 400) { - debugContainer.removeChild(debugContainer.childNodes[0]); - } -} -//# sourceMappingURL=mapperTabPage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.js.map b/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.js.map deleted file mode 100644 index 7db25bd..0000000 --- a/node_modules/chromium-bidi/lib/cjs/bidiTab/mapperTabPage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapperTabPage.js","sourceRoot":"","sources":["../../../src/bidiTab/mapperTabPage.ts"],"names":[],"mappings":";;AAsBA,oCAUC;AASD,kBA6BC;AAtED;;;;;;;;;;;;;;;GAeG;AACH,4CAAwD;AAExD,uDAAuD;AACvD,MAAM,gBAAgB,GACpB,u3BAAu3B,CAAC;AAE13B,SAAgB,YAAY;IAC1B,sDAAsD;IACtD,IAAI,CAAC,UAAU,CAA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IAAI,CAAC,GAAG,CAAC,CAAC;IAC5E,cAAc,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACxC,IAAI,cAAc,CAAC,UAAU,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;QAC3C,cAAc,CAAC,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAE,CAAC,CAAC;IAC5D,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.d.ts b/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.d.ts deleted file mode 100644 index 356370a..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js'; -import { EventEmitter } from '../utils/EventEmitter.js'; -import type { MapperCdpConnection } from './CdpConnection.js'; -export type CdpEvents = { - [Property in keyof ProtocolMapping.Events]: ProtocolMapping.Events[Property][0]; -}; -/** An error that will be thrown if/when the connection is closed. */ -export declare class CloseError extends Error { -} -export interface CdpClient extends EventEmitter { - /** Unique session identifier. */ - sessionId: Protocol.Target.SessionID | undefined; - /** - * Provides an unique way to detect if an error was caused by the closure of a - * Target or Session. - * - * @example During the creation of a subframe we navigate the main frame. - * The subframe Target is closed while initialized commands are in-flight. - * In this case we want to swallow the thrown error. - */ - isCloseError(error: unknown): boolean; - /** - * Returns a command promise, which will be resolved with the command result - * after receiving the result from CDP. - * @param method Name of the CDP command to call. - * @param params Parameters to pass to the CDP command. - */ - sendCommand(method: CdpMethod, params?: ProtocolMapping.Commands[CdpMethod]['paramsType'][0]): Promise; -} -/** Represents a high-level CDP connection to the browser. */ -export declare class MapperCdpClient extends EventEmitter implements CdpClient { - #private; - constructor(cdpConnection: MapperCdpConnection, sessionId?: Protocol.Target.SessionID); - get sessionId(): Protocol.Target.SessionID | undefined; - sendCommand(method: CdpMethod, ...params: ProtocolMapping.Commands[CdpMethod]['paramsType']): Promise; - isCloseError(error: unknown): boolean; -} diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js b/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js deleted file mode 100644 index b0d674b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MapperCdpClient = exports.CloseError = void 0; -const EventEmitter_js_1 = require("../utils/EventEmitter.js"); -/** An error that will be thrown if/when the connection is closed. */ -class CloseError extends Error { -} -exports.CloseError = CloseError; -/** Represents a high-level CDP connection to the browser. */ -class MapperCdpClient extends EventEmitter_js_1.EventEmitter { - #cdpConnection; - #sessionId; - constructor(cdpConnection, sessionId) { - super(); - this.#cdpConnection = cdpConnection; - this.#sessionId = sessionId; - } - get sessionId() { - return this.#sessionId; - } - sendCommand(method, ...params) { - return this.#cdpConnection.sendCommand(method, params[0], this.#sessionId); - } - isCloseError(error) { - return error instanceof CloseError; - } -} -exports.MapperCdpClient = MapperCdpClient; -//# sourceMappingURL=CdpClient.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js.map b/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js.map deleted file mode 100644 index 461047c..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CdpClient.js","sourceRoot":"","sources":["../../../src/cdp/CdpClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,8DAAsD;AAQtD,qEAAqE;AACrE,MAAa,UAAW,SAAQ,KAAK;CAAG;AAAxC,gCAAwC;AA4BxC,6DAA6D;AAC7D,MAAa,eACX,SAAQ,8BAAuB;IAG/B,cAAc,CAAsB;IACpC,UAAU,CAA6B;IAEvC,YACE,aAAkC,EAClC,SAAqC;QAErC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,WAAW,CACT,MAAiB,EACjB,GAAG,MAAyD;QAE5D,OAAO,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7E,CAAC;IAED,YAAY,CAAC,KAAc;QACzB,OAAO,KAAK,YAAY,UAAU,CAAC;IACrC,CAAC;CACF;AA9BD,0CA8BC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.d.ts b/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.d.ts deleted file mode 100644 index cb10de8..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js'; -import type { LoggerFn } from '../utils/log.js'; -import type { Transport } from '../utils/transport.js'; -import { MapperCdpClient, type CdpClient } from './CdpClient.js'; -export interface CdpConnection { - getCdpClient(sessionId: Protocol.Target.SessionID): CdpClient; -} -/** - * Represents a high-level CDP connection to the browser backend. - * - * Manages all CdpClients (each backed by a Session ID) instance for each active - * CDP session. - */ -export declare class MapperCdpConnection implements CdpConnection { - #private; - static readonly LOGGER_PREFIX_RECV: "cdp:RECV ◂"; - static readonly LOGGER_PREFIX_SEND: "cdp:SEND ▸"; - constructor(transport: Transport, logger?: LoggerFn); - /** Closes the connection to the browser. */ - close(): void; - createBrowserSession(): Promise; - /** - * Gets a CdpClient instance attached to the given session ID, - * or null if the session is not attached. - */ - getCdpClient(sessionId: Protocol.Target.SessionID): MapperCdpClient; - sendCommand(method: CdpMethod, params?: ProtocolMapping.Commands[CdpMethod]['paramsType'][0], sessionId?: Protocol.Target.SessionID): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js b/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js deleted file mode 100644 index c390d91..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js +++ /dev/null @@ -1,134 +0,0 @@ -"use strict"; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MapperCdpConnection = void 0; -const log_js_1 = require("../utils/log.js"); -const CdpClient_js_1 = require("./CdpClient.js"); -/** - * Represents a high-level CDP connection to the browser backend. - * - * Manages all CdpClients (each backed by a Session ID) instance for each active - * CDP session. - */ -class MapperCdpConnection { - static LOGGER_PREFIX_RECV = `${log_js_1.LogType.cdp}:RECV ◂`; - static LOGGER_PREFIX_SEND = `${log_js_1.LogType.cdp}:SEND ▸`; - #mainBrowserCdpClient; - #transport; - /** Map from session ID to CdpClient. - * `undefined` points to the main browser session. */ - #sessionCdpClients = new Map(); - #commandCallbacks = new Map(); - #logger; - #nextId = 0; - constructor(transport, logger) { - this.#transport = transport; - this.#logger = logger; - this.#transport.setOnMessage(this.#onMessage); - // Create default Browser CDP Session. - this.#mainBrowserCdpClient = this.#createCdpClient(undefined); - } - /** Closes the connection to the browser. */ - close() { - this.#transport.close(); - for (const [, { reject, error }] of this.#commandCallbacks) { - reject(error); - } - this.#commandCallbacks.clear(); - this.#sessionCdpClients.clear(); - } - async createBrowserSession() { - const { sessionId } = await this.#mainBrowserCdpClient.sendCommand('Target.attachToBrowserTarget'); - return this.#createCdpClient(sessionId); - } - /** - * Gets a CdpClient instance attached to the given session ID, - * or null if the session is not attached. - */ - getCdpClient(sessionId) { - const cdpClient = this.#sessionCdpClients.get(sessionId); - if (!cdpClient) { - throw new Error(`Unknown CDP session ID: ${sessionId}`); - } - return cdpClient; - } - sendCommand(method, params, sessionId) { - return new Promise((resolve, reject) => { - const id = this.#nextId++; - this.#commandCallbacks.set(id, { - sessionId, - resolve, - reject, - error: new CdpClient_js_1.CloseError(`${method} ${JSON.stringify(params)} ${sessionId ?? ''} call rejected because the connection has been closed.`), - }); - const cdpMessage = { id, method, params }; - if (sessionId) { - cdpMessage.sessionId = sessionId; - } - void this.#transport - .sendMessage(JSON.stringify(cdpMessage)) - ?.catch((error) => { - this.#logger?.(log_js_1.LogType.debugError, error); - this.#transport.close(); - }); - this.#logger?.(_a.LOGGER_PREFIX_SEND, cdpMessage); - }); - } - #onMessage = (json) => { - const message = JSON.parse(json); - this.#logger?.(_a.LOGGER_PREFIX_RECV, message); - // Update client map if a session is attached - // Listen for these events on every session. - if (message.method === 'Target.attachedToTarget') { - const { sessionId } = message.params; - this.#createCdpClient(sessionId); - } - if (message.id !== undefined) { - // Handle command response. - const callbacks = this.#commandCallbacks.get(message.id); - this.#commandCallbacks.delete(message.id); - if (callbacks) { - if (message.result) { - callbacks.resolve(message.result); - } - else if (message.error) { - callbacks.reject(message.error); - } - } - } - else if (message.method) { - const client = this.#sessionCdpClients.get(message.sessionId ?? undefined); - client?.emit(message.method, message.params || {}); - // Update client map if a session is detached - // But emit on that session - if (message.method === 'Target.detachedFromTarget') { - const { sessionId } = message.params; - const client = this.#sessionCdpClients.get(sessionId); - if (client) { - this.#sessionCdpClients.delete(sessionId); - client.removeAllListeners(); - } - // Reject all the pending commands for the detached session. - for (const callback of this.#commandCallbacks.values()) { - if (callback.sessionId === sessionId) { - callback.reject(callback.error); - } - } - } - } - }; - /** - * Creates a new CdpClient instance for the given session ID. - * @param sessionId either a string, or undefined for the main browser session. - * The main browser session is used only to create new browser sessions. - * @private - */ - #createCdpClient(sessionId) { - const cdpClient = new CdpClient_js_1.MapperCdpClient(this, sessionId); - this.#sessionCdpClients.set(sessionId, cdpClient); - return cdpClient; - } -} -exports.MapperCdpConnection = MapperCdpConnection; -_a = MapperCdpConnection; -//# sourceMappingURL=CdpConnection.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js.map b/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js.map deleted file mode 100644 index 6e9aac2..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CdpConnection.js","sourceRoot":"","sources":["../../../src/cdp/CdpConnection.ts"],"names":[],"mappings":";;;;AAmBA,4CAAwC;AAIxC,iDAA2E;AAc3E;;;;;GAKG;AACH,MAAa,mBAAmB;IAC9B,MAAM,CAAU,kBAAkB,GAAG,GAAG,gBAAO,CAAC,GAAG,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AAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;gBACtD,IAAI,MAAM,EAAE,CAAC;oBACX,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;oBAC1C,MAAM,CAAC,kBAAkB,EAAE,CAAC;gBAC9B,CAAC;gBACD,4DAA4D;gBAC5D,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,EAAE,CAAC;oBACvD,IAAI,QAAQ,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;wBACrC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;oBAClC,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC;IAEF;;;;;OAKG;IACH,gBAAgB,CACd,SAAgD;QAEhD,MAAM,SAAS,GAAG,IAAI,8BAAe,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACvD,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAClD,OAAO,SAAS,CAAC;IACnB,CAAC;;AAlJH,kDAmJC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/cdp.d.ts b/node_modules/chromium-bidi/lib/cjs/cdp/cdp.d.ts deleted file mode 100644 index 895c0bc..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/cdp.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export * from './CdpClient.js'; -export * from './CdpConnection.js'; -export * from './cdpMessage.js'; diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/cdp.js b/node_modules/chromium-bidi/lib/cjs/cdp/cdp.js deleted file mode 100644 index f5f8b51..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/cdp.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./CdpClient.js"), exports); -__exportStar(require("./CdpConnection.js"), exports); -__exportStar(require("./cdpMessage.js"), exports); -//# sourceMappingURL=cdp.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/cdp.js.map b/node_modules/chromium-bidi/lib/cjs/cdp/cdp.js.map deleted file mode 100644 index 4df8a83..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/cdp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cdp.js","sourceRoot":"","sources":["../../../src/cdp/cdp.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAC/B,qDAAmC;AACnC,kDAAgC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.d.ts b/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.d.ts deleted file mode 100644 index de28b1b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js'; -export interface CdpError { - code: number; - message: string; -} -export interface CdpMessage { - sessionId?: Protocol.Target.SessionID; - id?: number; - error?: CdpError; - method?: CdpMethod; - params?: ProtocolMapping.Commands[CdpMethod]['paramsType'][0]; - result?: ProtocolMapping.Commands[CdpMethod]['returnType']; -} diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.js b/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.js deleted file mode 100644 index 1b77783..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=cdpMessage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.js.map b/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.js.map deleted file mode 100644 index 1c20c67..0000000 --- a/node_modules/chromium-bidi/lib/cjs/cdp/cdpMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cdpMessage.js","sourceRoot":"","sources":["../../../src/cdp/cdpMessage.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/index.d.ts b/node_modules/chromium-bidi/lib/cjs/index.d.ts deleted file mode 100644 index a59acd1..0000000 --- a/node_modules/chromium-bidi/lib/cjs/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export * as BidiMapper from './bidiMapper/BidiMapper.js'; -export * as Protocol from './protocol/protocol.js'; diff --git a/node_modules/chromium-bidi/lib/cjs/index.js b/node_modules/chromium-bidi/lib/cjs/index.js deleted file mode 100644 index 605ec1d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/index.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Protocol = exports.BidiMapper = void 0; -exports.BidiMapper = __importStar(require("./bidiMapper/BidiMapper.js")); -exports.Protocol = __importStar(require("./protocol/protocol.js")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/index.js.map b/node_modules/chromium-bidi/lib/cjs/index.js.map deleted file mode 100644 index 3ce3d60..0000000 --- a/node_modules/chromium-bidi/lib/cjs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yEAAyD;AACzD,mEAAmD"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-bluetooth.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-bluetooth.d.ts deleted file mode 100644 index bd84a88..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-bluetooth.d.ts +++ /dev/null @@ -1,2216 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -import z from 'zod'; -export declare namespace Bluetooth { - const BluetoothUuidSchema: z.ZodLazy; -} -export declare namespace Bluetooth { - const BluetoothManufacturerDataSchema: z.ZodLazy>; -} -export declare namespace Bluetooth { - const CharacteristicPropertiesSchema: z.ZodLazy; - read: z.ZodOptional; - writeWithoutResponse: z.ZodOptional; - write: z.ZodOptional; - notify: z.ZodOptional; - indicate: z.ZodOptional; - authenticatedSignedWrites: z.ZodOptional; - extendedProperties: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - }, { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - }>>; -} -export declare namespace Bluetooth { - const RequestDeviceSchema: z.ZodLazy; -} -export declare namespace Bluetooth { - const RequestDeviceInfoSchema: z.ZodLazy; - name: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - name: string | null; - id: string; - }, { - name: string | null; - id: string; - }>>; -} -export declare namespace Bluetooth { - const RequestDevicePromptSchema: z.ZodLazy; -} -export declare namespace Bluetooth { - const ScanRecordSchema: z.ZodLazy; - uuids: z.ZodOptional, "many">>; - appearance: z.ZodOptional; - manufacturerData: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }>>; -} -export declare const BluetoothCommandSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - prompt: string; - context: string; - }, { - prompt: string; - context: string; - }>, z.ZodUnion<[z.ZodLazy; - device: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - accept: true; - device: string; - }, { - accept: true; - device: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - accept: false; - }, { - accept: false; - }>>]>>>; -}, "strip", z.ZodTypeAny, { - params: { - prompt: string; - context: string; - } & ({ - accept: true; - device: string; - } | { - accept: false; - }); - method: "bluetooth.handleRequestDevicePrompt"; -}, { - params: { - prompt: string; - context: string; - } & ({ - accept: true; - device: string; - } | { - accept: false; - }); - method: "bluetooth.handleRequestDevicePrompt"; -}>>, z.ZodLazy; - params: z.ZodLazy; - state: z.ZodEnum<["absent", "powered-off", "powered-on"]>; - }, "strip", z.ZodTypeAny, { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }, { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }; - method: "bluetooth.simulateAdapter"; -}, { - params: { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }; - method: "bluetooth.simulateAdapter"; -}>>, z.ZodLazy; - params: z.ZodLazy>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "bluetooth.disableSimulation"; -}, { - params: { - context: string; - }; - method: "bluetooth.disableSimulation"; -}>>, z.ZodLazy; - params: z.ZodLazy>, "many">; - knownServiceUuids: z.ZodArray, "many">; - }, "strip", z.ZodTypeAny, { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }, { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }; - method: "bluetooth.simulatePreconnectedPeripheral"; -}, { - params: { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }; - method: "bluetooth.simulatePreconnectedPeripheral"; -}>>, z.ZodLazy; - params: z.ZodLazy; - uuids: z.ZodOptional, "many">>; - appearance: z.ZodOptional; - manufacturerData: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }, { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }>>; - }, "strip", z.ZodTypeAny, { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }, { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }; - method: "bluetooth.simulateAdvertisement"; -}, { - params: { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }; - method: "bluetooth.simulateAdvertisement"; -}>>, z.ZodLazy; - params: z.ZodLazy>; -}, "strip", z.ZodTypeAny, { - params: { - code: number; - context: string; - address: string; - }; - method: "bluetooth.simulateGattConnectionResponse"; -}, { - params: { - code: number; - context: string; - address: string; - }; - method: "bluetooth.simulateGattConnectionResponse"; -}>>, z.ZodLazy; - params: z.ZodLazy>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - address: string; - }; - method: "bluetooth.simulateGattDisconnection"; -}, { - params: { - context: string; - address: string; - }; - method: "bluetooth.simulateGattDisconnection"; -}>>, z.ZodLazy; - params: z.ZodLazy; - type: z.ZodEnum<["add", "remove"]>; - }, "strip", z.ZodTypeAny, { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }, { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }; - method: "bluetooth.simulateService"; -}, { - params: { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }; - method: "bluetooth.simulateService"; -}>>, z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - characteristicProperties: z.ZodOptional; - read: z.ZodOptional; - writeWithoutResponse: z.ZodOptional; - write: z.ZodOptional; - notify: z.ZodOptional; - indicate: z.ZodOptional; - authenticatedSignedWrites: z.ZodOptional; - extendedProperties: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - }, { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - }>>>; - type: z.ZodEnum<["add", "remove"]>; - }, "strip", z.ZodTypeAny, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }; - method: "bluetooth.simulateCharacteristic"; -}, { - params: { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }; - method: "bluetooth.simulateCharacteristic"; -}>>, z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write", "subscribe-to-notifications", "unsubscribe-from-notifications"]>; - code: z.ZodNumber; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }, { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.simulateCharacteristicResponse"; -}, { - params: { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.simulateCharacteristicResponse"; -}>>, z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - descriptorUuid: z.ZodLazy; - type: z.ZodEnum<["add", "remove"]>; - }, "strip", z.ZodTypeAny, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }; - method: "bluetooth.simulateDescriptor"; -}, { - params: { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }; - method: "bluetooth.simulateDescriptor"; -}>>, z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - descriptorUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write"]>; - code: z.ZodNumber; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }, { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.simulateDescriptorResponse"; -}, { - params: { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.simulateDescriptorResponse"; -}>>]>>; -export declare namespace Bluetooth { - const HandleRequestDevicePromptSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - prompt: string; - context: string; - }, { - prompt: string; - context: string; - }>, z.ZodUnion<[z.ZodLazy; - device: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - accept: true; - device: string; - }, { - accept: true; - device: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - accept: false; - }, { - accept: false; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - params: { - prompt: string; - context: string; - } & ({ - accept: true; - device: string; - } | { - accept: false; - }); - method: "bluetooth.handleRequestDevicePrompt"; - }, { - params: { - prompt: string; - context: string; - } & ({ - accept: true; - device: string; - } | { - accept: false; - }); - method: "bluetooth.handleRequestDevicePrompt"; - }>>; -} -export declare namespace Bluetooth { - const HandleRequestDevicePromptParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - prompt: string; - context: string; - }, { - prompt: string; - context: string; - }>, z.ZodUnion<[z.ZodLazy; - device: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - accept: true; - device: string; - }, { - accept: true; - device: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - accept: false; - }, { - accept: false; - }>>]>>>; -} -export declare namespace Bluetooth { - const HandleRequestDevicePromptAcceptParametersSchema: z.ZodLazy; - device: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - accept: true; - device: string; - }, { - accept: true; - device: string; - }>>; -} -export declare namespace Bluetooth { - const HandleRequestDevicePromptCancelParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - accept: false; - }, { - accept: false; - }>>; -} -export declare namespace Bluetooth { - const SimulateAdapterSchema: z.ZodLazy; - params: z.ZodLazy; - state: z.ZodEnum<["absent", "powered-off", "powered-on"]>; - }, "strip", z.ZodTypeAny, { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }, { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }; - method: "bluetooth.simulateAdapter"; - }, { - params: { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }; - method: "bluetooth.simulateAdapter"; - }>>; -} -export declare namespace Bluetooth { - const SimulateAdapterParametersSchema: z.ZodLazy; - state: z.ZodEnum<["absent", "powered-off", "powered-on"]>; - }, "strip", z.ZodTypeAny, { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }, { - context: string; - state: "absent" | "powered-off" | "powered-on"; - leSupported?: boolean | undefined; - }>>; -} -export declare namespace Bluetooth { - const DisableSimulationSchema: z.ZodLazy; - params: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "bluetooth.disableSimulation"; - }, { - params: { - context: string; - }; - method: "bluetooth.disableSimulation"; - }>>; -} -export declare namespace Bluetooth { - const DisableSimulationParametersSchema: z.ZodLazy>; -} -export declare namespace Bluetooth { - const SimulatePreconnectedPeripheralSchema: z.ZodLazy; - params: z.ZodLazy>, "many">; - knownServiceUuids: z.ZodArray, "many">; - }, "strip", z.ZodTypeAny, { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }, { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }; - method: "bluetooth.simulatePreconnectedPeripheral"; - }, { - params: { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }; - method: "bluetooth.simulatePreconnectedPeripheral"; - }>>; -} -export declare namespace Bluetooth { - const SimulatePreconnectedPeripheralParametersSchema: z.ZodLazy>, "many">; - knownServiceUuids: z.ZodArray, "many">; - }, "strip", z.ZodTypeAny, { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }, { - context: string; - name: string; - manufacturerData: { - key: number; - data: string; - }[]; - address: string; - knownServiceUuids: string[]; - }>>; -} -export declare namespace Bluetooth { - const SimulateAdvertisementSchema: z.ZodLazy; - params: z.ZodLazy; - uuids: z.ZodOptional, "many">>; - appearance: z.ZodOptional; - manufacturerData: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }, { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }>>; - }, "strip", z.ZodTypeAny, { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }, { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }; - method: "bluetooth.simulateAdvertisement"; - }, { - params: { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }; - method: "bluetooth.simulateAdvertisement"; - }>>; -} -export declare namespace Bluetooth { - const SimulateAdvertisementParametersSchema: z.ZodLazy; - uuids: z.ZodOptional, "many">>; - appearance: z.ZodOptional; - manufacturerData: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }, { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }>>; - }, "strip", z.ZodTypeAny, { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }, { - context: string; - scanEntry: { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }; - }>>; -} -export declare namespace Bluetooth { - const SimulateAdvertisementScanEntryParametersSchema: z.ZodLazy; - uuids: z.ZodOptional, "many">>; - appearance: z.ZodOptional; - manufacturerData: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }, { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }, { - deviceAddress: string; - rssi: number; - scanRecord: { - name?: string | undefined; - uuids?: string[] | undefined; - appearance?: number | undefined; - manufacturerData?: { - key: number; - data: string; - }[] | undefined; - }; - }>>; -} -export declare namespace Bluetooth { - const SimulateGattConnectionResponseSchema: z.ZodLazy; - params: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - params: { - code: number; - context: string; - address: string; - }; - method: "bluetooth.simulateGattConnectionResponse"; - }, { - params: { - code: number; - context: string; - address: string; - }; - method: "bluetooth.simulateGattConnectionResponse"; - }>>; -} -export declare namespace Bluetooth { - const SimulateGattConnectionResponseParametersSchema: z.ZodLazy>; -} -export declare namespace Bluetooth { - const SimulateGattDisconnectionSchema: z.ZodLazy; - params: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - address: string; - }; - method: "bluetooth.simulateGattDisconnection"; - }, { - params: { - context: string; - address: string; - }; - method: "bluetooth.simulateGattDisconnection"; - }>>; -} -export declare namespace Bluetooth { - const SimulateGattDisconnectionParametersSchema: z.ZodLazy>; -} -export declare namespace Bluetooth { - const SimulateServiceSchema: z.ZodLazy; - params: z.ZodLazy; - type: z.ZodEnum<["add", "remove"]>; - }, "strip", z.ZodTypeAny, { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }, { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }; - method: "bluetooth.simulateService"; - }, { - params: { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }; - method: "bluetooth.simulateService"; - }>>; -} -export declare namespace Bluetooth { - const SimulateServiceParametersSchema: z.ZodLazy; - type: z.ZodEnum<["add", "remove"]>; - }, "strip", z.ZodTypeAny, { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }, { - uuid: string; - type: "remove" | "add"; - context: string; - address: string; - }>>; -} -export declare namespace Bluetooth { - const SimulateCharacteristicSchema: z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - characteristicProperties: z.ZodOptional; - read: z.ZodOptional; - writeWithoutResponse: z.ZodOptional; - write: z.ZodOptional; - notify: z.ZodOptional; - indicate: z.ZodOptional; - authenticatedSignedWrites: z.ZodOptional; - extendedProperties: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - }, { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - }>>>; - type: z.ZodEnum<["add", "remove"]>; - }, "strip", z.ZodTypeAny, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }; - method: "bluetooth.simulateCharacteristic"; - }, { - params: { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }; - method: "bluetooth.simulateCharacteristic"; - }>>; -} -export declare namespace Bluetooth { - const SimulateCharacteristicParametersSchema: z.ZodLazy; - characteristicUuid: z.ZodLazy; - characteristicProperties: z.ZodOptional; - read: z.ZodOptional; - writeWithoutResponse: z.ZodOptional; - write: z.ZodOptional; - notify: z.ZodOptional; - indicate: z.ZodOptional; - authenticatedSignedWrites: z.ZodOptional; - extendedProperties: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - }, { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - }>>>; - type: z.ZodEnum<["add", "remove"]>; - }, "strip", z.ZodTypeAny, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - characteristicProperties?: { - read?: boolean | undefined; - write?: boolean | undefined; - broadcast?: boolean | undefined; - writeWithoutResponse?: boolean | undefined; - notify?: boolean | undefined; - indicate?: boolean | undefined; - authenticatedSignedWrites?: boolean | undefined; - extendedProperties?: boolean | undefined; - } | undefined; - }>>; -} -export declare namespace Bluetooth { - const SimulateCharacteristicResponseSchema: z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write", "subscribe-to-notifications", "unsubscribe-from-notifications"]>; - code: z.ZodNumber; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }, { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.simulateCharacteristicResponse"; - }, { - params: { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.simulateCharacteristicResponse"; - }>>; -} -export declare namespace Bluetooth { - const SimulateCharacteristicResponseParametersSchema: z.ZodLazy; - characteristicUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write", "subscribe-to-notifications", "unsubscribe-from-notifications"]>; - code: z.ZodNumber; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }, { - code: number; - type: "read" | "write" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }>>; -} -export declare namespace Bluetooth { - const SimulateDescriptorSchema: z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - descriptorUuid: z.ZodLazy; - type: z.ZodEnum<["add", "remove"]>; - }, "strip", z.ZodTypeAny, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }; - method: "bluetooth.simulateDescriptor"; - }, { - params: { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }; - method: "bluetooth.simulateDescriptor"; - }>>; -} -export declare namespace Bluetooth { - const SimulateDescriptorParametersSchema: z.ZodLazy; - characteristicUuid: z.ZodLazy; - descriptorUuid: z.ZodLazy; - type: z.ZodEnum<["add", "remove"]>; - }, "strip", z.ZodTypeAny, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }, { - type: "remove" | "add"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - }>>; -} -export declare namespace Bluetooth { - const SimulateDescriptorResponseSchema: z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - descriptorUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write"]>; - code: z.ZodNumber; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }, { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.simulateDescriptorResponse"; - }, { - params: { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.simulateDescriptorResponse"; - }>>; -} -export declare namespace Bluetooth { - const SimulateDescriptorResponseParametersSchema: z.ZodLazy; - characteristicUuid: z.ZodLazy; - descriptorUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write"]>; - code: z.ZodNumber; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }, { - code: number; - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }>>; -} -export declare const BluetoothEventSchema: z.ZodLazy; - params: z.ZodLazy; - devices: z.ZodArray; - name: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - name: string | null; - id: string; - }, { - name: string | null; - id: string; - }>>, "many">; - }, "strip", z.ZodTypeAny, { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }, { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }; - method: "bluetooth.requestDevicePromptUpdated"; -}, { - params: { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }; - method: "bluetooth.requestDevicePromptUpdated"; -}>>, z.ZodLazy; - params: z.ZodLazy>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - address: string; - }; - method: "bluetooth.gattConnectionAttempted"; -}, { - params: { - context: string; - address: string; - }; - method: "bluetooth.gattConnectionAttempted"; -}>>]>>; -export declare namespace Bluetooth { - const RequestDevicePromptUpdatedSchema: z.ZodLazy; - params: z.ZodLazy; - devices: z.ZodArray; - name: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - name: string | null; - id: string; - }, { - name: string | null; - id: string; - }>>, "many">; - }, "strip", z.ZodTypeAny, { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }, { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }; - method: "bluetooth.requestDevicePromptUpdated"; - }, { - params: { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }; - method: "bluetooth.requestDevicePromptUpdated"; - }>>; -} -export declare namespace Bluetooth { - const RequestDevicePromptUpdatedParametersSchema: z.ZodLazy; - devices: z.ZodArray; - name: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - name: string | null; - id: string; - }, { - name: string | null; - id: string; - }>>, "many">; - }, "strip", z.ZodTypeAny, { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }, { - prompt: string; - context: string; - devices: { - name: string | null; - id: string; - }[]; - }>>; -} -export declare namespace Bluetooth { - const GattConnectionAttemptedSchema: z.ZodLazy; - params: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - address: string; - }; - method: "bluetooth.gattConnectionAttempted"; - }, { - params: { - context: string; - address: string; - }; - method: "bluetooth.gattConnectionAttempted"; - }>>; -} -export declare namespace Bluetooth { - const GattConnectionAttemptedParametersSchema: z.ZodLazy>; -} -export declare namespace Bluetooth { - const CharacteristicEventGeneratedSchema: z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write-with-response", "write-without-response", "subscribe-to-notifications", "unsubscribe-from-notifications"]>; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "write-with-response" | "write-without-response" | "read" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }, { - type: "write-with-response" | "write-without-response" | "read" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - type: "write-with-response" | "write-without-response" | "read" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.characteristicEventGenerated"; - }, { - params: { - type: "write-with-response" | "write-without-response" | "read" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.characteristicEventGenerated"; - }>>; -} -export declare namespace Bluetooth { - const CharacteristicEventGeneratedParametersSchema: z.ZodLazy; - characteristicUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write-with-response", "write-without-response", "subscribe-to-notifications", "unsubscribe-from-notifications"]>; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "write-with-response" | "write-without-response" | "read" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }, { - type: "write-with-response" | "write-without-response" | "read" | "subscribe-to-notifications" | "unsubscribe-from-notifications"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - data?: number[] | undefined; - }>>; -} -export declare namespace Bluetooth { - const DescriptorEventGeneratedSchema: z.ZodLazy; - params: z.ZodLazy; - characteristicUuid: z.ZodLazy; - descriptorUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write"]>; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }, { - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.descriptorEventGenerated"; - }, { - params: { - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }; - method: "bluetooth.descriptorEventGenerated"; - }>>; -} -export declare namespace Bluetooth { - const DescriptorEventGeneratedParametersSchema: z.ZodLazy; - characteristicUuid: z.ZodLazy; - descriptorUuid: z.ZodLazy; - type: z.ZodEnum<["read", "write"]>; - data: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }, { - type: "read" | "write"; - context: string; - address: string; - serviceUuid: string; - characteristicUuid: string; - descriptorUuid: string; - data?: number[] | undefined; - }>>; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-bluetooth.js b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-bluetooth.js deleted file mode 100644 index 888efc8..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-bluetooth.js +++ /dev/null @@ -1,354 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BluetoothEventSchema = exports.BluetoothCommandSchema = exports.Bluetooth = void 0; -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-nocheck Some types may be circular. -const zod_1 = __importDefault(require("zod")); -var Bluetooth; -(function (Bluetooth) { - Bluetooth.BluetoothUuidSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.BluetoothManufacturerDataSchema = zod_1.default.lazy(() => zod_1.default.object({ - key: zod_1.default.number().int().nonnegative(), - data: zod_1.default.string(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.CharacteristicPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({ - broadcast: zod_1.default.boolean().optional(), - read: zod_1.default.boolean().optional(), - writeWithoutResponse: zod_1.default.boolean().optional(), - write: zod_1.default.boolean().optional(), - notify: zod_1.default.boolean().optional(), - indicate: zod_1.default.boolean().optional(), - authenticatedSignedWrites: zod_1.default.boolean().optional(), - extendedProperties: zod_1.default.boolean().optional(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.RequestDeviceSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.RequestDeviceInfoSchema = zod_1.default.lazy(() => zod_1.default.object({ - id: Bluetooth.RequestDeviceSchema, - name: zod_1.default.union([zod_1.default.string(), zod_1.default.null()]), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.RequestDevicePromptSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.ScanRecordSchema = zod_1.default.lazy(() => zod_1.default.object({ - name: zod_1.default.string().optional(), - uuids: zod_1.default.array(Bluetooth.BluetoothUuidSchema).optional(), - appearance: zod_1.default.number().optional(), - manufacturerData: zod_1.default - .array(Bluetooth.BluetoothManufacturerDataSchema) - .optional(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -exports.BluetoothCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ - Bluetooth.HandleRequestDevicePromptSchema, - Bluetooth.SimulateAdapterSchema, - Bluetooth.DisableSimulationSchema, - Bluetooth.SimulatePreconnectedPeripheralSchema, - Bluetooth.SimulateAdvertisementSchema, - Bluetooth.SimulateGattConnectionResponseSchema, - Bluetooth.SimulateGattDisconnectionSchema, - Bluetooth.SimulateServiceSchema, - Bluetooth.SimulateCharacteristicSchema, - Bluetooth.SimulateCharacteristicResponseSchema, - Bluetooth.SimulateDescriptorSchema, - Bluetooth.SimulateDescriptorResponseSchema, -])); -(function (Bluetooth) { - Bluetooth.HandleRequestDevicePromptSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.handleRequestDevicePrompt'), - params: Bluetooth.HandleRequestDevicePromptParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.HandleRequestDevicePromptParametersSchema = zod_1.default.lazy(() => zod_1.default - .object({ - context: zod_1.default.string(), - prompt: Bluetooth.RequestDevicePromptSchema, - }) - .and(zod_1.default.union([ - Bluetooth.HandleRequestDevicePromptAcceptParametersSchema, - Bluetooth.HandleRequestDevicePromptCancelParametersSchema, - ]))); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.HandleRequestDevicePromptAcceptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - accept: zod_1.default.literal(true), - device: Bluetooth.RequestDeviceSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.HandleRequestDevicePromptCancelParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - accept: zod_1.default.literal(false), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateAdapterSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulateAdapter'), - params: Bluetooth.SimulateAdapterParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateAdapterParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - leSupported: zod_1.default.boolean().optional(), - state: zod_1.default.enum(['absent', 'powered-off', 'powered-on']), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.DisableSimulationSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.disableSimulation'), - params: Bluetooth.DisableSimulationParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.DisableSimulationParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulatePreconnectedPeripheralSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulatePreconnectedPeripheral'), - params: Bluetooth.SimulatePreconnectedPeripheralParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulatePreconnectedPeripheralParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - name: zod_1.default.string(), - manufacturerData: zod_1.default.array(Bluetooth.BluetoothManufacturerDataSchema), - knownServiceUuids: zod_1.default.array(Bluetooth.BluetoothUuidSchema), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateAdvertisementSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulateAdvertisement'), - params: Bluetooth.SimulateAdvertisementParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateAdvertisementParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - scanEntry: Bluetooth.SimulateAdvertisementScanEntryParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateAdvertisementScanEntryParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - deviceAddress: zod_1.default.string(), - rssi: zod_1.default.number(), - scanRecord: Bluetooth.ScanRecordSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateGattConnectionResponseSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulateGattConnectionResponse'), - params: Bluetooth.SimulateGattConnectionResponseParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateGattConnectionResponseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - code: zod_1.default.number().int().nonnegative(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateGattDisconnectionSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulateGattDisconnection'), - params: Bluetooth.SimulateGattDisconnectionParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateGattDisconnectionParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateServiceSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulateService'), - params: Bluetooth.SimulateServiceParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateServiceParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - uuid: Bluetooth.BluetoothUuidSchema, - type: zod_1.default.enum(['add', 'remove']), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateCharacteristicSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulateCharacteristic'), - params: Bluetooth.SimulateCharacteristicParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateCharacteristicParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - serviceUuid: Bluetooth.BluetoothUuidSchema, - characteristicUuid: Bluetooth.BluetoothUuidSchema, - characteristicProperties: Bluetooth.CharacteristicPropertiesSchema.optional(), - type: zod_1.default.enum(['add', 'remove']), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateCharacteristicResponseSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulateCharacteristicResponse'), - params: Bluetooth.SimulateCharacteristicResponseParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateCharacteristicResponseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - serviceUuid: Bluetooth.BluetoothUuidSchema, - characteristicUuid: Bluetooth.BluetoothUuidSchema, - type: zod_1.default.enum([ - 'read', - 'write', - 'subscribe-to-notifications', - 'unsubscribe-from-notifications', - ]), - code: zod_1.default.number().int().nonnegative(), - data: zod_1.default.array(zod_1.default.number().int().nonnegative()).optional(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateDescriptorSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulateDescriptor'), - params: Bluetooth.SimulateDescriptorParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateDescriptorParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - serviceUuid: Bluetooth.BluetoothUuidSchema, - characteristicUuid: Bluetooth.BluetoothUuidSchema, - descriptorUuid: Bluetooth.BluetoothUuidSchema, - type: zod_1.default.enum(['add', 'remove']), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateDescriptorResponseSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.simulateDescriptorResponse'), - params: Bluetooth.SimulateDescriptorResponseParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.SimulateDescriptorResponseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - serviceUuid: Bluetooth.BluetoothUuidSchema, - characteristicUuid: Bluetooth.BluetoothUuidSchema, - descriptorUuid: Bluetooth.BluetoothUuidSchema, - type: zod_1.default.enum(['read', 'write']), - code: zod_1.default.number().int().nonnegative(), - data: zod_1.default.array(zod_1.default.number().int().nonnegative()).optional(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -exports.BluetoothEventSchema = zod_1.default.lazy(() => zod_1.default.union([ - Bluetooth.RequestDevicePromptUpdatedSchema, - Bluetooth.GattConnectionAttemptedSchema, -])); -(function (Bluetooth) { - Bluetooth.RequestDevicePromptUpdatedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.requestDevicePromptUpdated'), - params: Bluetooth.RequestDevicePromptUpdatedParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.RequestDevicePromptUpdatedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - prompt: Bluetooth.RequestDevicePromptSchema, - devices: zod_1.default.array(Bluetooth.RequestDeviceInfoSchema), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.GattConnectionAttemptedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.gattConnectionAttempted'), - params: Bluetooth.GattConnectionAttemptedParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.GattConnectionAttemptedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.CharacteristicEventGeneratedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.characteristicEventGenerated'), - params: Bluetooth.CharacteristicEventGeneratedParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.CharacteristicEventGeneratedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - serviceUuid: Bluetooth.BluetoothUuidSchema, - characteristicUuid: Bluetooth.BluetoothUuidSchema, - type: zod_1.default.enum([ - 'read', - 'write-with-response', - 'write-without-response', - 'subscribe-to-notifications', - 'unsubscribe-from-notifications', - ]), - data: zod_1.default.array(zod_1.default.number().int().nonnegative()).optional(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.DescriptorEventGeneratedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('bluetooth.descriptorEventGenerated'), - params: Bluetooth.DescriptorEventGeneratedParametersSchema, - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -(function (Bluetooth) { - Bluetooth.DescriptorEventGeneratedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - address: zod_1.default.string(), - serviceUuid: Bluetooth.BluetoothUuidSchema, - characteristicUuid: Bluetooth.BluetoothUuidSchema, - descriptorUuid: Bluetooth.BluetoothUuidSchema, - type: zod_1.default.enum(['read', 'write']), - data: zod_1.default.array(zod_1.default.number().int().nonnegative()).optional(), - })); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -//# sourceMappingURL=webdriver-bidi-bluetooth.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-bluetooth.js.map b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-bluetooth.js.map deleted file mode 100644 index edb969c..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-bluetooth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi-bluetooth.js","sourceRoot":"","sources":["../../../../src/protocol-parser/generated/webdriver-bidi-bluetooth.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;AAEH;;;;GAIG;AAEH,6DAA6D;AAC7D,0CAA0C;AAE1C,8CAAoB;AAEpB,IAAiB,SAAS,CAEzB;AAFD,WAAiB,SAAS;IACX,6BAAmB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAC,CAAC,MAAM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SAAS;IACX,wCAA8B,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACxD,aAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,oCAAoC,CAAC;QACvD,MAAM,EAAE,SAAS,CAAC,wCAAwC;KAC3D,CAAC,CACH,CAAC;AACJ,CAAC,EAPgB,SAAS,yBAAT,SAAS,QAOzB;AACD,WAAiB,SAAS;IACX,kDAAwC,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAClE,aAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;QACnB,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,SAAS,CAAC,mBAAmB;QAC1C,kBAAkB,EAAE,SAAS,CAAC,mBAAmB;QACjD,cAAc,EAAE,SAAS,CAAC,mBAAmB;QAC7C,IAAI,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC/B,IAAI,EAAE,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;KACzD,CAAC,CACH,CAAC;AACJ,CAAC,EAZgB,SAAS,yBAAT,SAAS,QAYzB"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-nav-speculation.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-nav-speculation.d.ts deleted file mode 100644 index 7998b09..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-nav-speculation.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -import z from 'zod'; -export declare namespace Speculation { - const PreloadingStatusSchema: z.ZodLazy>; -} -export declare const SpeculationEventSchema: z.ZodLazy; - params: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }, { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }; - method: "speculation.prefetchStatusUpdated"; -}, { - params: { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }; - method: "speculation.prefetchStatusUpdated"; -}>>>; -export declare namespace Speculation { - const PrefetchStatusUpdatedSchema: z.ZodLazy; - params: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }, { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }; - method: "speculation.prefetchStatusUpdated"; - }, { - params: { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }; - method: "speculation.prefetchStatusUpdated"; - }>>; -} -export declare namespace Speculation { - const PrefetchStatusUpdatedParametersSchema: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }, { - url: string; - status: "success" | "pending" | "ready" | "failure"; - context: string; - }>>; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-nav-speculation.js b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-nav-speculation.js deleted file mode 100644 index 99a2c6f..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-nav-speculation.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SpeculationEventSchema = exports.Speculation = void 0; -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-nocheck Some types may be circular. -const zod_1 = __importDefault(require("zod")); -var Speculation; -(function (Speculation) { - Speculation.PreloadingStatusSchema = zod_1.default.lazy(() => zod_1.default.enum(['pending', 'ready', 'success', 'failure'])); -})(Speculation || (exports.Speculation = Speculation = {})); -exports.SpeculationEventSchema = zod_1.default.lazy(() => Speculation.PrefetchStatusUpdatedSchema); -(function (Speculation) { - Speculation.PrefetchStatusUpdatedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('speculation.prefetchStatusUpdated'), - params: Speculation.PrefetchStatusUpdatedParametersSchema, - })); -})(Speculation || (exports.Speculation = Speculation = {})); -(function (Speculation) { - Speculation.PrefetchStatusUpdatedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.string(), - url: zod_1.default.string(), - status: Speculation.PreloadingStatusSchema, - })); -})(Speculation || (exports.Speculation = Speculation = {})); -//# sourceMappingURL=webdriver-bidi-nav-speculation.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-nav-speculation.js.map b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-nav-speculation.js.map deleted file mode 100644 index d0d3271..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-nav-speculation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi-nav-speculation.js","sourceRoot":"","sources":["../../../../src/protocol-parser/generated/webdriver-bidi-nav-speculation.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;AAEH;;;;GAIG;AAEH,6DAA6D;AAC7D,0CAA0C;AAE1C,8CAAoB;AAEpB,IAAiB,WAAW,CAI3B;AAJD,WAAiB,WAAW;IACb,kCAAsB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAChD,aAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CACnD,CAAC;AACJ,CAAC,EAJgB,WAAW,2BAAX,WAAW,QAI3B;AACY,QAAA,sBAAsB,GAAG,aAAC,CAAC,IAAI,CAC1C,GAAG,EAAE,CAAC,WAAW,CAAC,2BAA2B,CAC9C,CAAC;AACF,WAAiB,WAAW;IACb,uCAA2B,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACrD,aAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,mCAAmC,CAAC;QACtD,MAAM,EAAE,WAAW,CAAC,qCAAqC;KAC1D,CAAC,CACH,CAAC;AACJ,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AACD,WAAiB,WAAW;IACb,iDAAqC,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC/D,aAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;QACnB,GAAG,EAAE,aAAC,CAAC,MAAM,EAAE;QACf,MAAM,EAAE,WAAW,CAAC,sBAAsB;KAC3C,CAAC,CACH,CAAC;AACJ,CAAC,EARgB,WAAW,2BAAX,WAAW,QAQ3B"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.d.ts deleted file mode 100644 index be6fead..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.d.ts +++ /dev/null @@ -1,175 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -import z from 'zod'; -export declare const PermissionsCommandSchema: z.ZodLazy; - params: z.ZodLazy>; - state: z.ZodLazy>; - origin: z.ZodString; - embeddedOrigin: z.ZodOptional; - userContext: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }, { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }; - method: "permissions.setPermission"; -}, { - params: { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }; - method: "permissions.setPermission"; -}>>>; -export declare namespace Permissions { - const PermissionDescriptorSchema: z.ZodLazy>; -} -export declare namespace Permissions { - const PermissionStateSchema: z.ZodLazy>; -} -export declare namespace Permissions { - const SetPermissionSchema: z.ZodLazy; - params: z.ZodLazy>; - state: z.ZodLazy>; - origin: z.ZodString; - embeddedOrigin: z.ZodOptional; - userContext: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }, { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }; - method: "permissions.setPermission"; - }, { - params: { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }; - method: "permissions.setPermission"; - }>>; -} -export declare namespace Permissions { - const SetPermissionParametersSchema: z.ZodLazy>; - state: z.ZodLazy>; - origin: z.ZodString; - embeddedOrigin: z.ZodOptional; - userContext: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }, { - origin: string; - state: "granted" | "denied" | "prompt"; - descriptor: { - name: string; - }; - userContext?: string | undefined; - embeddedOrigin?: string | undefined; - }>>; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js deleted file mode 100644 index 2db9059..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Permissions = exports.PermissionsCommandSchema = void 0; -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-nocheck Some types may be circular. -const zod_1 = __importDefault(require("zod")); -exports.PermissionsCommandSchema = zod_1.default.lazy(() => Permissions.SetPermissionSchema); -var Permissions; -(function (Permissions) { - Permissions.PermissionDescriptorSchema = zod_1.default.lazy(() => zod_1.default.object({ - name: zod_1.default.string(), - })); -})(Permissions || (exports.Permissions = Permissions = {})); -(function (Permissions) { - Permissions.PermissionStateSchema = zod_1.default.lazy(() => zod_1.default.enum(['granted', 'denied', 'prompt'])); -})(Permissions || (exports.Permissions = Permissions = {})); -(function (Permissions) { - Permissions.SetPermissionSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('permissions.setPermission'), - params: Permissions.SetPermissionParametersSchema, - })); -})(Permissions || (exports.Permissions = Permissions = {})); -(function (Permissions) { - Permissions.SetPermissionParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - descriptor: Permissions.PermissionDescriptorSchema, - state: Permissions.PermissionStateSchema, - origin: zod_1.default.string(), - embeddedOrigin: zod_1.default.string().optional(), - userContext: zod_1.default.string().optional(), - })); -})(Permissions || (exports.Permissions = Permissions = {})); -//# sourceMappingURL=webdriver-bidi-permissions.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js.map b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js.map deleted file mode 100644 index 74a2d57..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi-permissions.js","sourceRoot":"","sources":["../../../../src/protocol-parser/generated/webdriver-bidi-permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;AAEH;;;;GAIG;AAEH,6DAA6D;AAC7D,0CAA0C;AAE1C,8CAAoB;AAEP,QAAA,wBAAwB,GAAG,aAAC,CAAC,IAAI,CAC5C,GAAG,EAAE,CAAC,WAAW,CAAC,mBAAmB,CACtC,CAAC;AACF,IAAiB,WAAW,CAM3B;AAND,WAAiB,WAAW;IACb,sCAA0B,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACpD,aAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;KACjB,CAAC,CACH,CAAC;AACJ,CAAC,EANgB,WAAW,2BAAX,WAAW,QAM3B;AACD,WAAiB,WAAW;IACb,iCAAqB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC/C,aAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CACxC,CAAC;AACJ,CAAC,EAJgB,WAAW,2BAAX,WAAW,QAI3B;AACD,WAAiB,WAAW;IACb,+BAAmB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC7C,aAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;QAC9C,MAAM,EAAE,WAAW,CAAC,6BAA6B;KAClD,CAAC,CACH,CAAC;AACJ,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AACD,WAAiB,WAAW;IACb,yCAA6B,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACvD,aAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,WAAW,CAAC,0BAA0B;QAClD,KAAK,EAAE,WAAW,CAAC,qBAAqB;QACxC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;QAClB,cAAc,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACrC,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CACH,CAAC;AACJ,CAAC,EAVgB,WAAW,2BAAX,WAAW,QAU3B"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-ua-client-hints.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-ua-client-hints.d.ts deleted file mode 100644 index 74abe34..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-ua-client-hints.d.ts +++ /dev/null @@ -1,427 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -import z from 'zod'; -export declare const UserAgentClientHintsCommandSchema: z.ZodLazy; - params: z.ZodObject<{ - clientHints: z.ZodUnion<[z.ZodLazy>, "many">>; - fullVersionList: z.ZodOptional>, "many">>; - platform: z.ZodOptional; - platformVersion: z.ZodOptional; - architecture: z.ZodOptional; - model: z.ZodOptional; - mobile: z.ZodOptional; - bitness: z.ZodOptional; - wow64: z.ZodOptional; - formFactors: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - }, { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - }>>, z.ZodNull]>; - contexts: z.ZodOptional>; - userContexts: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - clientHints: { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - clientHints: { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>; -}, "strip", z.ZodTypeAny, { - params: { - clientHints: { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "userAgentClientHints.setClientHintsOverride"; -}, { - params: { - clientHints: { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "userAgentClientHints.setClientHintsOverride"; -}>>>; -export declare namespace UserAgentClientHints { - const SetClientHintsOverrideCommandSchema: z.ZodLazy; - params: z.ZodObject<{ - clientHints: z.ZodUnion<[z.ZodLazy>, "many">>; - fullVersionList: z.ZodOptional>, "many">>; - platform: z.ZodOptional; - platformVersion: z.ZodOptional; - architecture: z.ZodOptional; - model: z.ZodOptional; - mobile: z.ZodOptional; - bitness: z.ZodOptional; - wow64: z.ZodOptional; - formFactors: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - }, { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - }>>, z.ZodNull]>; - contexts: z.ZodOptional>; - userContexts: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - clientHints: { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - clientHints: { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>; - }, "strip", z.ZodTypeAny, { - params: { - clientHints: { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "userAgentClientHints.setClientHintsOverride"; - }, { - params: { - clientHints: { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "userAgentClientHints.setClientHintsOverride"; - }>>; -} -export declare namespace UserAgentClientHints { - const ClientHintsMetadataSchema: z.ZodLazy>, "many">>; - fullVersionList: z.ZodOptional>, "many">>; - platform: z.ZodOptional; - platformVersion: z.ZodOptional; - architecture: z.ZodOptional; - model: z.ZodOptional; - mobile: z.ZodOptional; - bitness: z.ZodOptional; - wow64: z.ZodOptional; - formFactors: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - }, { - mobile?: boolean | undefined; - brands?: { - brand: string; - version: string; - }[] | undefined; - fullVersionList?: { - brand: string; - version: string; - }[] | undefined; - platform?: string | undefined; - platformVersion?: string | undefined; - architecture?: string | undefined; - model?: string | undefined; - bitness?: string | undefined; - wow64?: boolean | undefined; - formFactors?: string[] | undefined; - }>>; -} -export declare namespace UserAgentClientHints { - const BrandVersionSchema: z.ZodLazy>; -} -export declare namespace UserAgentClientHints { - const SetClientHintsOverrideResultSchema: z.ZodLazy>; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-ua-client-hints.js b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-ua-client-hints.js deleted file mode 100644 index 86aeba0..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-ua-client-hints.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UserAgentClientHints = exports.UserAgentClientHintsCommandSchema = void 0; -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-nocheck Some types may be circular. -const zod_1 = __importDefault(require("zod")); -exports.UserAgentClientHintsCommandSchema = zod_1.default.lazy(() => UserAgentClientHints.SetClientHintsOverrideCommandSchema); -var UserAgentClientHints; -(function (UserAgentClientHints) { - UserAgentClientHints.SetClientHintsOverrideCommandSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('userAgentClientHints.setClientHintsOverride'), - params: zod_1.default.object({ - clientHints: zod_1.default.union([ - UserAgentClientHints.ClientHintsMetadataSchema, - zod_1.default.null(), - ]), - contexts: zod_1.default.array(zod_1.default.string()).min(1).optional(), - userContexts: zod_1.default.array(zod_1.default.string()).min(1).optional(), - }), - })); -})(UserAgentClientHints || (exports.UserAgentClientHints = UserAgentClientHints = {})); -(function (UserAgentClientHints) { - UserAgentClientHints.ClientHintsMetadataSchema = zod_1.default.lazy(() => zod_1.default.object({ - brands: zod_1.default.array(UserAgentClientHints.BrandVersionSchema).optional(), - fullVersionList: zod_1.default - .array(UserAgentClientHints.BrandVersionSchema) - .optional(), - platform: zod_1.default.string().optional(), - platformVersion: zod_1.default.string().optional(), - architecture: zod_1.default.string().optional(), - model: zod_1.default.string().optional(), - mobile: zod_1.default.boolean().optional(), - bitness: zod_1.default.string().optional(), - wow64: zod_1.default.boolean().optional(), - formFactors: zod_1.default.array(zod_1.default.string()).optional(), - })); -})(UserAgentClientHints || (exports.UserAgentClientHints = UserAgentClientHints = {})); -(function (UserAgentClientHints) { - UserAgentClientHints.BrandVersionSchema = zod_1.default.lazy(() => zod_1.default.object({ - brand: zod_1.default.string(), - version: zod_1.default.string(), - })); -})(UserAgentClientHints || (exports.UserAgentClientHints = UserAgentClientHints = {})); -(function (UserAgentClientHints) { - UserAgentClientHints.SetClientHintsOverrideResultSchema = zod_1.default.lazy(() => zod_1.default.object({})); -})(UserAgentClientHints || (exports.UserAgentClientHints = UserAgentClientHints = {})); -//# sourceMappingURL=webdriver-bidi-ua-client-hints.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-ua-client-hints.js.map b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-ua-client-hints.js.map deleted file mode 100644 index 0f69f46..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-ua-client-hints.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi-ua-client-hints.js","sourceRoot":"","sources":["../../../../src/protocol-parser/generated/webdriver-bidi-ua-client-hints.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;AAEH;;;;GAIG;AAEH,6DAA6D;AAC7D,0CAA0C;AAE1C,8CAAoB;AAEP,QAAA,iCAAiC,GAAG,aAAC,CAAC,IAAI,CACrD,GAAG,EAAE,CAAC,oBAAoB,CAAC,mCAAmC,CAC/D,CAAC;AACF,IAAiB,oBAAoB,CAcpC;AAdD,WAAiB,oBAAoB;IACtB,wDAAmC,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC7D,aAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,aAAC,CAA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E;QAC7B,WAAW,EAAE,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC5C,CAAC,CACH,CAAC;AACJ,CAAC,EAjBgB,oBAAoB,oCAApB,oBAAoB,QAiBpC;AACD,WAAiB,oBAAoB;IACtB,uCAAkB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC5C,aAAC,CAAC,MAAM,CAAC;QACP,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH,CAAC;AACJ,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AACD,WAAiB,oBAAoB;IACtB,uDAAkC,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC,EAFgB,oBAAoB,oCAApB,oBAAoB,QAEpC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.d.ts deleted file mode 100644 index 928d209..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.d.ts +++ /dev/null @@ -1,64861 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -import z from 'zod'; -export declare const CommandSchema: z.ZodLazy, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.close"; -}, { - params: Record; - method: "browser.close"; -}>>, z.ZodLazy; - params: z.ZodLazy; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }; - method: "browser.createUserContext"; -}, { - params: { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }; - method: "browser.createUserContext"; -}>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.getClientWindows"; -}, { - params: Record; - method: "browser.getClientWindows"; -}>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.getUserContexts"; -}, { - params: Record; - method: "browser.getUserContexts"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - userContext: string; - }; - method: "browser.removeUserContext"; -}, { - params: { - userContext: string; - }; - method: "browser.removeUserContext"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - clientWindow: string; - }, { - clientWindow: string; - }>, z.ZodUnion<[z.ZodLazy; - }, "strip", z.ZodTypeAny, { - state: "minimized" | "maximized" | "fullscreen"; - }, { - state: "minimized" | "maximized" | "fullscreen"; - }>>, z.ZodLazy; - width: z.ZodOptional; - height: z.ZodOptional; - x: z.ZodOptional; - y: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }>>]>>>; -}, "strip", z.ZodTypeAny, { - params: { - clientWindow: string; - } & ({ - state: "minimized" | "maximized" | "fullscreen"; - } | { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }); - method: "browser.setClientWindowState"; -}, { - params: { - clientWindow: string; - } & ({ - state: "minimized" | "maximized" | "fullscreen"; - } | { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }); - method: "browser.setClientWindowState"; -}>>, z.ZodLazy; - params: z.ZodLazy; - destinationFolder: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "allowed"; - destinationFolder: string; - }, { - type: "allowed"; - destinationFolder: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "denied"; - }, { - type: "denied"; - }>>]>>, z.ZodNull]>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }; - method: "browser.setDownloadBehavior"; -}, { - params: { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }; - method: "browser.setDownloadBehavior"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "browsingContext.activate"; -}, { - params: { - context: string; - }; - method: "browsingContext.activate"; -}>>, z.ZodLazy; - params: z.ZodLazy; - origin: z.ZodOptional>>; - format: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: string; - quality?: number | undefined; - }, { - type: string; - quality?: number | undefined; - }>>>; - clip: z.ZodOptional; - x: z.ZodNumber; - y: z.ZodNumber; - width: z.ZodNumber; - height: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }>>, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }; - method: "browsingContext.captureScreenshot"; -}, { - params: { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }; - method: "browsingContext.captureScreenshot"; -}>>, z.ZodLazy; - params: z.ZodLazy; - promptUnload: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - promptUnload?: boolean | undefined; - }, { - context: string; - promptUnload?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - promptUnload?: boolean | undefined; - }; - method: "browsingContext.close"; -}, { - params: { - context: string; - promptUnload?: boolean | undefined; - }; - method: "browsingContext.close"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - referenceContext: z.ZodOptional>; - background: z.ZodOptional>; - userContext: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }; - method: "browsingContext.create"; -}, { - params: { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }; - method: "browsingContext.create"; -}>>, z.ZodLazy; - params: z.ZodLazy; - root: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - root?: string | undefined; - maxDepth?: number | undefined; - }, { - root?: string | undefined; - maxDepth?: number | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - root?: string | undefined; - maxDepth?: number | undefined; - }; - method: "browsingContext.getTree"; -}, { - params: { - root?: string | undefined; - maxDepth?: number | undefined; - }; - method: "browsingContext.getTree"; -}>>, z.ZodLazy; - params: z.ZodLazy; - accept: z.ZodOptional; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }; - method: "browsingContext.handleUserPrompt"; -}, { - params: { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }; - method: "browsingContext.handleUserPrompt"; -}>>, z.ZodLazy; - params: z.ZodLazy; - locator: z.ZodLazy; - value: z.ZodObject<{ - name: z.ZodOptional; - role: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - role?: string | undefined; - name?: string | undefined; - }, { - role?: string | undefined; - name?: string | undefined; - }>; - }, "strip", z.ZodTypeAny, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "css"; - value: string; - }, { - type: "css"; - value: string; - }>>, z.ZodLazy; - value: z.ZodObject<{ - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>; - }, "strip", z.ZodTypeAny, { - type: "context"; - value: { - context: string; - }; - }, { - type: "context"; - value: { - context: string; - }; - }>>, z.ZodLazy; - value: z.ZodString; - ignoreCase: z.ZodOptional; - matchType: z.ZodOptional>; - maxDepth: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "xpath"; - value: string; - }, { - type: "xpath"; - value: string; - }>>]>>; - maxNodeCount: z.ZodOptional; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - startNodes: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }; - method: "browsingContext.locateNodes"; -}, { - params: { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }; - method: "browsingContext.locateNodes"; -}>>, z.ZodLazy; - params: z.ZodLazy; - url: z.ZodString; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }; - method: "browsingContext.navigate"; -}, { - params: { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }; - method: "browsingContext.navigate"; -}>>, z.ZodLazy; - params: z.ZodLazy; - background: z.ZodOptional>; - margin: z.ZodOptional>; - left: z.ZodOptional>; - right: z.ZodOptional>; - top: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }>>>; - orientation: z.ZodOptional>>; - page: z.ZodOptional>; - width: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - }>>>; - pageRanges: z.ZodOptional, "many">>; - scale: z.ZodOptional>; - shrinkToFit: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }; - method: "browsingContext.print"; -}, { - params: { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }; - method: "browsingContext.print"; -}>>, z.ZodLazy; - params: z.ZodLazy; - ignoreCache: z.ZodOptional; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }; - method: "browsingContext.reload"; -}, { - params: { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }; - method: "browsingContext.reload"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - viewport: z.ZodOptional>, z.ZodNull]>>; - devicePixelRatio: z.ZodOptional>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }; - method: "browsingContext.setViewport"; -}, { - params: { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }; - method: "browsingContext.setViewport"; -}>>, z.ZodLazy; - params: z.ZodLazy; - delta: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - context: string; - delta: number; - }, { - context: string; - delta: number; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - delta: number; - }; - method: "browsingContext.traverseHistory"; -}, { - params: { - context: string; - delta: number; - }; - method: "browsingContext.traverseHistory"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setForcedColorsModeThemeOverride"; -}, { - params: { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setForcedColorsModeThemeOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - altitude: z.ZodOptional]>>; - altitudeAccuracy: z.ZodOptional]>>; - heading: z.ZodOptional]>>; - speed: z.ZodOptional]>>; - }, "strip", z.ZodTypeAny, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }>>, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }>, z.ZodObject<{ - error: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "positionUnavailable"; - }, { - type: "positionUnavailable"; - }>>; - }, "strip", z.ZodTypeAny, { - error: { - type: "positionUnavailable"; - }; - }, { - error: { - type: "positionUnavailable"; - }; - }>]>, z.ZodObject<{ - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>>; -}, "strip", z.ZodTypeAny, { - params: ({ - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - } | { - error: { - type: "positionUnavailable"; - }; - }) & { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setGeolocationOverride"; -}, { - params: ({ - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - } | { - error: { - type: "positionUnavailable"; - }; - }) & { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setGeolocationOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setLocaleOverride"; -}, { - params: { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setLocaleOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "offline"; - }, { - type: "offline"; - }>>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setNetworkConditions"; -}, { - params: { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setNetworkConditions"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - type: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenOrientationOverride"; -}, { - params: { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenOrientationOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenSettingsOverride"; -}, { - params: { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenSettingsOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScriptingEnabled"; -}, { - params: { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScriptingEnabled"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTimezoneOverride"; -}, { - params: { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTimezoneOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTouchOverride"; -}, { - params: { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTouchOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setUserAgentOverride"; -}, { - params: { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setUserAgentOverride"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - actions: z.ZodArray; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyDown"; - value: string; - }, { - type: "keyDown"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyUp"; - value: string; - }, { - type: "keyUp"; - value: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - parameters: z.ZodOptional>>>; - }, "strip", z.ZodTypeAny, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }>>>; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerDown"; - button: number; - }, { - type: "pointerDown"; - button: number; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerUp"; - button: number; - }, { - type: "pointerUp"; - button: number; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - deltaX: z.ZodNumber; - deltaY: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>>; - }, "strip", z.ZodTypeAny, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }; - method: "input.performActions"; -}, { - params: { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }; - method: "input.performActions"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "input.releaseActions"; -}, { - params: { - context: string; - }; - method: "input.releaseActions"; -}>>, z.ZodLazy; - params: z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - files: z.ZodArray; - }, "strip", z.ZodTypeAny, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }; - method: "input.setFiles"; -}, { - params: { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }; - method: "input.setFiles"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy>, "many">; - maxEncodedDataSize: z.ZodNumber; - collectorType: z.ZodOptional>>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }; - method: "network.addDataCollector"; -}, { - params: { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }; - method: "network.addDataCollector"; -}>>, z.ZodLazy; - params: z.ZodLazy>, "many">; - contexts: z.ZodOptional, "many">>; - urlPatterns: z.ZodOptional; - protocol: z.ZodOptional; - hostname: z.ZodOptional; - port: z.ZodOptional; - pathname: z.ZodOptional; - search: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }>>, z.ZodLazy; - pattern: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - pattern: string; - }, { - type: "string"; - pattern: string; - }>>]>>, "many">>; - }, "strip", z.ZodTypeAny, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }; - method: "network.addIntercept"; -}, { - params: { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }; - method: "network.addIntercept"; -}>>, z.ZodLazy; - params: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - method: z.ZodOptional; - url: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }; - method: "network.continueRequest"; -}, { - params: { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }; - method: "network.continueRequest"; -}>>, z.ZodLazy; - params: z.ZodLazy; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - credentials: z.ZodOptional; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.continueResponse"; -}, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.continueResponse"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>, z.ZodUnion<[z.ZodLazy; - credentials: z.ZodLazy; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>; - }, "strip", z.ZodTypeAny, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - action: "default" | "cancel"; - }, { - action: "default" | "cancel"; - }>>]>>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - } & ({ - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - } | { - action: "default" | "cancel"; - }); - method: "network.continueWithAuth"; -}, { - params: { - request: string; - } & ({ - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - } | { - action: "default" | "cancel"; - }); - method: "network.continueWithAuth"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - collector: z.ZodLazy; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector: string; - }, { - request: string; - dataType: "request" | "response"; - collector: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - dataType: "request" | "response"; - collector: string; - }; - method: "network.disownData"; -}, { - params: { - request: string; - dataType: "request" | "response"; - collector: string; - }; - method: "network.disownData"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - }; - method: "network.failRequest"; -}, { - params: { - request: string; - }; - method: "network.failRequest"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - collector: z.ZodOptional>; - disown: z.ZodOptional>; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }; - method: "network.getData"; -}, { - params: { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }; - method: "network.getData"; -}>>, z.ZodLazy; - params: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.provideResponse"; -}, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.provideResponse"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - collector: string; - }, { - collector: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - collector: string; - }; - method: "network.removeDataCollector"; -}, { - params: { - collector: string; - }; - method: "network.removeDataCollector"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - intercept: string; - }, { - intercept: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - intercept: string; - }; - method: "network.removeIntercept"; -}, { - params: { - intercept: string; - }; - method: "network.removeIntercept"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }; - method: "network.setCacheBehavior"; -}, { - params: { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }; - method: "network.setCacheBehavior"; -}>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "network.setExtraHeaders"; -}, { - params: { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "network.setExtraHeaders"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodLazy; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - ownership: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }>>, "many">>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }; - method: "script.addPreloadScript"; -}, { - params: { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }; - method: "script.addPreloadScript"; -}>>, z.ZodLazy; - params: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - arguments: z.ZodOptional, "many">>; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - this: any; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }; - method: "script.callFunction"; -}, { - params: { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }; - method: "script.callFunction"; -}>>, z.ZodLazy; - params: z.ZodLazy, "many">; - target: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }; - method: "script.disown"; -}, { - params: { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }; - method: "script.disown"; -}>>, z.ZodLazy; - params: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - awaitPromise: z.ZodBoolean; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }; - method: "script.evaluate"; -}, { - params: { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }; - method: "script.evaluate"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - type: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }; - method: "script.getRealms"; -}, { - params: { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }; - method: "script.getRealms"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - script: string; - }, { - script: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - script: string; - }; - method: "script.removePreloadScript"; -}, { - params: { - script: string; - }; - method: "script.removePreloadScript"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "session.end"; -}, { - params: Record; - method: "session.end"; -}>>, z.ZodLazy; - params: z.ZodLazy; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>>; - firstMatch: z.ZodOptional; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }; - method: "session.new"; -}, { - params: { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }; - method: "session.new"; -}>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "session.status"; -}, { - params: Record; - method: "session.status"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "session.subscribe"; -}, { - params: { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "session.subscribe"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - events: string[]; - }, { - events: string[]; - }>>, z.ZodLazy, "many">; - }, "strip", z.ZodTypeAny, { - subscriptions: string[]; - }, { - subscriptions: string[]; - }>>]>>; -}, "strip", z.ZodTypeAny, { - params: { - subscriptions: string[]; - } | { - events: string[]; - }; - method: "session.unsubscribe"; -}, { - params: { - subscriptions: string[]; - } | { - events: string[]; - }; - method: "session.unsubscribe"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.deleteCookies"; -}, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.deleteCookies"; -}>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.getCookies"; -}, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.getCookies"; -}>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.setCookie"; -}, { - params: { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.setCookie"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "archivePath"; - }, { - path: string; - type: "archivePath"; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>, z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "path"; - }, { - path: string; - type: "path"; - }>>]>>; - }, "strip", z.ZodTypeAny, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }; - method: "webExtension.install"; -}, { - params: { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }; - method: "webExtension.install"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - extension: string; - }, { - extension: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - extension: string; - }; - method: "webExtension.uninstall"; -}, { - params: { - extension: string; - }; - method: "webExtension.uninstall"; -}>>]>>]>>>, z.ZodLazy>>>; -export declare const CommandDataSchema: z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.close"; -}, { - params: Record; - method: "browser.close"; -}>>, z.ZodLazy; - params: z.ZodLazy; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }; - method: "browser.createUserContext"; -}, { - params: { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }; - method: "browser.createUserContext"; -}>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.getClientWindows"; -}, { - params: Record; - method: "browser.getClientWindows"; -}>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.getUserContexts"; -}, { - params: Record; - method: "browser.getUserContexts"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - userContext: string; - }; - method: "browser.removeUserContext"; -}, { - params: { - userContext: string; - }; - method: "browser.removeUserContext"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - clientWindow: string; - }, { - clientWindow: string; - }>, z.ZodUnion<[z.ZodLazy; - }, "strip", z.ZodTypeAny, { - state: "minimized" | "maximized" | "fullscreen"; - }, { - state: "minimized" | "maximized" | "fullscreen"; - }>>, z.ZodLazy; - width: z.ZodOptional; - height: z.ZodOptional; - x: z.ZodOptional; - y: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }>>]>>>; -}, "strip", z.ZodTypeAny, { - params: { - clientWindow: string; - } & ({ - state: "minimized" | "maximized" | "fullscreen"; - } | { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }); - method: "browser.setClientWindowState"; -}, { - params: { - clientWindow: string; - } & ({ - state: "minimized" | "maximized" | "fullscreen"; - } | { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }); - method: "browser.setClientWindowState"; -}>>, z.ZodLazy; - params: z.ZodLazy; - destinationFolder: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "allowed"; - destinationFolder: string; - }, { - type: "allowed"; - destinationFolder: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "denied"; - }, { - type: "denied"; - }>>]>>, z.ZodNull]>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }; - method: "browser.setDownloadBehavior"; -}, { - params: { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }; - method: "browser.setDownloadBehavior"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "browsingContext.activate"; -}, { - params: { - context: string; - }; - method: "browsingContext.activate"; -}>>, z.ZodLazy; - params: z.ZodLazy; - origin: z.ZodOptional>>; - format: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: string; - quality?: number | undefined; - }, { - type: string; - quality?: number | undefined; - }>>>; - clip: z.ZodOptional; - x: z.ZodNumber; - y: z.ZodNumber; - width: z.ZodNumber; - height: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }>>, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }; - method: "browsingContext.captureScreenshot"; -}, { - params: { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }; - method: "browsingContext.captureScreenshot"; -}>>, z.ZodLazy; - params: z.ZodLazy; - promptUnload: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - promptUnload?: boolean | undefined; - }, { - context: string; - promptUnload?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - promptUnload?: boolean | undefined; - }; - method: "browsingContext.close"; -}, { - params: { - context: string; - promptUnload?: boolean | undefined; - }; - method: "browsingContext.close"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - referenceContext: z.ZodOptional>; - background: z.ZodOptional>; - userContext: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }; - method: "browsingContext.create"; -}, { - params: { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }; - method: "browsingContext.create"; -}>>, z.ZodLazy; - params: z.ZodLazy; - root: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - root?: string | undefined; - maxDepth?: number | undefined; - }, { - root?: string | undefined; - maxDepth?: number | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - root?: string | undefined; - maxDepth?: number | undefined; - }; - method: "browsingContext.getTree"; -}, { - params: { - root?: string | undefined; - maxDepth?: number | undefined; - }; - method: "browsingContext.getTree"; -}>>, z.ZodLazy; - params: z.ZodLazy; - accept: z.ZodOptional; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }; - method: "browsingContext.handleUserPrompt"; -}, { - params: { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }; - method: "browsingContext.handleUserPrompt"; -}>>, z.ZodLazy; - params: z.ZodLazy; - locator: z.ZodLazy; - value: z.ZodObject<{ - name: z.ZodOptional; - role: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - role?: string | undefined; - name?: string | undefined; - }, { - role?: string | undefined; - name?: string | undefined; - }>; - }, "strip", z.ZodTypeAny, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "css"; - value: string; - }, { - type: "css"; - value: string; - }>>, z.ZodLazy; - value: z.ZodObject<{ - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>; - }, "strip", z.ZodTypeAny, { - type: "context"; - value: { - context: string; - }; - }, { - type: "context"; - value: { - context: string; - }; - }>>, z.ZodLazy; - value: z.ZodString; - ignoreCase: z.ZodOptional; - matchType: z.ZodOptional>; - maxDepth: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "xpath"; - value: string; - }, { - type: "xpath"; - value: string; - }>>]>>; - maxNodeCount: z.ZodOptional; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - startNodes: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }; - method: "browsingContext.locateNodes"; -}, { - params: { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }; - method: "browsingContext.locateNodes"; -}>>, z.ZodLazy; - params: z.ZodLazy; - url: z.ZodString; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }; - method: "browsingContext.navigate"; -}, { - params: { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }; - method: "browsingContext.navigate"; -}>>, z.ZodLazy; - params: z.ZodLazy; - background: z.ZodOptional>; - margin: z.ZodOptional>; - left: z.ZodOptional>; - right: z.ZodOptional>; - top: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }>>>; - orientation: z.ZodOptional>>; - page: z.ZodOptional>; - width: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - }>>>; - pageRanges: z.ZodOptional, "many">>; - scale: z.ZodOptional>; - shrinkToFit: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }; - method: "browsingContext.print"; -}, { - params: { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }; - method: "browsingContext.print"; -}>>, z.ZodLazy; - params: z.ZodLazy; - ignoreCache: z.ZodOptional; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }; - method: "browsingContext.reload"; -}, { - params: { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }; - method: "browsingContext.reload"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - viewport: z.ZodOptional>, z.ZodNull]>>; - devicePixelRatio: z.ZodOptional>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }; - method: "browsingContext.setViewport"; -}, { - params: { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }; - method: "browsingContext.setViewport"; -}>>, z.ZodLazy; - params: z.ZodLazy; - delta: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - context: string; - delta: number; - }, { - context: string; - delta: number; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - delta: number; - }; - method: "browsingContext.traverseHistory"; -}, { - params: { - context: string; - delta: number; - }; - method: "browsingContext.traverseHistory"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setForcedColorsModeThemeOverride"; -}, { - params: { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setForcedColorsModeThemeOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - altitude: z.ZodOptional]>>; - altitudeAccuracy: z.ZodOptional]>>; - heading: z.ZodOptional]>>; - speed: z.ZodOptional]>>; - }, "strip", z.ZodTypeAny, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }>>, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }>, z.ZodObject<{ - error: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "positionUnavailable"; - }, { - type: "positionUnavailable"; - }>>; - }, "strip", z.ZodTypeAny, { - error: { - type: "positionUnavailable"; - }; - }, { - error: { - type: "positionUnavailable"; - }; - }>]>, z.ZodObject<{ - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>>; -}, "strip", z.ZodTypeAny, { - params: ({ - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - } | { - error: { - type: "positionUnavailable"; - }; - }) & { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setGeolocationOverride"; -}, { - params: ({ - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - } | { - error: { - type: "positionUnavailable"; - }; - }) & { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setGeolocationOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setLocaleOverride"; -}, { - params: { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setLocaleOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "offline"; - }, { - type: "offline"; - }>>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setNetworkConditions"; -}, { - params: { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setNetworkConditions"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - type: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenOrientationOverride"; -}, { - params: { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenOrientationOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenSettingsOverride"; -}, { - params: { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenSettingsOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScriptingEnabled"; -}, { - params: { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScriptingEnabled"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTimezoneOverride"; -}, { - params: { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTimezoneOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTouchOverride"; -}, { - params: { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTouchOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setUserAgentOverride"; -}, { - params: { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setUserAgentOverride"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - actions: z.ZodArray; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyDown"; - value: string; - }, { - type: "keyDown"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyUp"; - value: string; - }, { - type: "keyUp"; - value: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - parameters: z.ZodOptional>>>; - }, "strip", z.ZodTypeAny, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }>>>; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerDown"; - button: number; - }, { - type: "pointerDown"; - button: number; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerUp"; - button: number; - }, { - type: "pointerUp"; - button: number; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - deltaX: z.ZodNumber; - deltaY: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>>; - }, "strip", z.ZodTypeAny, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }; - method: "input.performActions"; -}, { - params: { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }; - method: "input.performActions"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "input.releaseActions"; -}, { - params: { - context: string; - }; - method: "input.releaseActions"; -}>>, z.ZodLazy; - params: z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - files: z.ZodArray; - }, "strip", z.ZodTypeAny, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }; - method: "input.setFiles"; -}, { - params: { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }; - method: "input.setFiles"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy>, "many">; - maxEncodedDataSize: z.ZodNumber; - collectorType: z.ZodOptional>>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }; - method: "network.addDataCollector"; -}, { - params: { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }; - method: "network.addDataCollector"; -}>>, z.ZodLazy; - params: z.ZodLazy>, "many">; - contexts: z.ZodOptional, "many">>; - urlPatterns: z.ZodOptional; - protocol: z.ZodOptional; - hostname: z.ZodOptional; - port: z.ZodOptional; - pathname: z.ZodOptional; - search: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }>>, z.ZodLazy; - pattern: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - pattern: string; - }, { - type: "string"; - pattern: string; - }>>]>>, "many">>; - }, "strip", z.ZodTypeAny, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }; - method: "network.addIntercept"; -}, { - params: { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }; - method: "network.addIntercept"; -}>>, z.ZodLazy; - params: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - method: z.ZodOptional; - url: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }; - method: "network.continueRequest"; -}, { - params: { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }; - method: "network.continueRequest"; -}>>, z.ZodLazy; - params: z.ZodLazy; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - credentials: z.ZodOptional; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.continueResponse"; -}, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.continueResponse"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>, z.ZodUnion<[z.ZodLazy; - credentials: z.ZodLazy; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>; - }, "strip", z.ZodTypeAny, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - action: "default" | "cancel"; - }, { - action: "default" | "cancel"; - }>>]>>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - } & ({ - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - } | { - action: "default" | "cancel"; - }); - method: "network.continueWithAuth"; -}, { - params: { - request: string; - } & ({ - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - } | { - action: "default" | "cancel"; - }); - method: "network.continueWithAuth"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - collector: z.ZodLazy; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector: string; - }, { - request: string; - dataType: "request" | "response"; - collector: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - dataType: "request" | "response"; - collector: string; - }; - method: "network.disownData"; -}, { - params: { - request: string; - dataType: "request" | "response"; - collector: string; - }; - method: "network.disownData"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - }; - method: "network.failRequest"; -}, { - params: { - request: string; - }; - method: "network.failRequest"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - collector: z.ZodOptional>; - disown: z.ZodOptional>; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }; - method: "network.getData"; -}, { - params: { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }; - method: "network.getData"; -}>>, z.ZodLazy; - params: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.provideResponse"; -}, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.provideResponse"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - collector: string; - }, { - collector: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - collector: string; - }; - method: "network.removeDataCollector"; -}, { - params: { - collector: string; - }; - method: "network.removeDataCollector"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - intercept: string; - }, { - intercept: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - intercept: string; - }; - method: "network.removeIntercept"; -}, { - params: { - intercept: string; - }; - method: "network.removeIntercept"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }; - method: "network.setCacheBehavior"; -}, { - params: { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }; - method: "network.setCacheBehavior"; -}>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "network.setExtraHeaders"; -}, { - params: { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "network.setExtraHeaders"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodLazy; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - ownership: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }>>, "many">>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }; - method: "script.addPreloadScript"; -}, { - params: { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }; - method: "script.addPreloadScript"; -}>>, z.ZodLazy; - params: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - arguments: z.ZodOptional, "many">>; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - this: any; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }; - method: "script.callFunction"; -}, { - params: { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }; - method: "script.callFunction"; -}>>, z.ZodLazy; - params: z.ZodLazy, "many">; - target: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }; - method: "script.disown"; -}, { - params: { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }; - method: "script.disown"; -}>>, z.ZodLazy; - params: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - awaitPromise: z.ZodBoolean; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }; - method: "script.evaluate"; -}, { - params: { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }; - method: "script.evaluate"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - type: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }; - method: "script.getRealms"; -}, { - params: { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }; - method: "script.getRealms"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - script: string; - }, { - script: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - script: string; - }; - method: "script.removePreloadScript"; -}, { - params: { - script: string; - }; - method: "script.removePreloadScript"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "session.end"; -}, { - params: Record; - method: "session.end"; -}>>, z.ZodLazy; - params: z.ZodLazy; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>>; - firstMatch: z.ZodOptional; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }; - method: "session.new"; -}, { - params: { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }; - method: "session.new"; -}>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "session.status"; -}, { - params: Record; - method: "session.status"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "session.subscribe"; -}, { - params: { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "session.subscribe"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - events: string[]; - }, { - events: string[]; - }>>, z.ZodLazy, "many">; - }, "strip", z.ZodTypeAny, { - subscriptions: string[]; - }, { - subscriptions: string[]; - }>>]>>; -}, "strip", z.ZodTypeAny, { - params: { - subscriptions: string[]; - } | { - events: string[]; - }; - method: "session.unsubscribe"; -}, { - params: { - subscriptions: string[]; - } | { - events: string[]; - }; - method: "session.unsubscribe"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.deleteCookies"; -}, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.deleteCookies"; -}>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.getCookies"; -}, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.getCookies"; -}>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.setCookie"; -}, { - params: { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.setCookie"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "archivePath"; - }, { - path: string; - type: "archivePath"; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>, z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "path"; - }, { - path: string; - type: "path"; - }>>]>>; - }, "strip", z.ZodTypeAny, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }; - method: "webExtension.install"; -}, { - params: { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }; - method: "webExtension.install"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - extension: string; - }, { - extension: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - extension: string; - }; - method: "webExtension.uninstall"; -}, { - params: { - extension: string; - }; - method: "webExtension.uninstall"; -}>>]>>]>>; -export declare const EmptyParamsSchema: z.ZodLazy>>; -export declare const MessageSchema: z.ZodLazy; - id: z.ZodNumber; - result: z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>>, z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }>>, "many">; - }, "strip", z.ZodTypeAny, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - }, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>, "many">; - }, "strip", z.ZodTypeAny, { - userContexts: { - userContext: string; - }[]; - }, { - userContexts: { - userContext: string; - }[]; - }>>, z.ZodLazy>>>, z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }>>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - contexts?: any; - }, { - contexts?: any; - }>>, z.ZodLazy>>>, z.ZodLazy, "many">; - }, "strip", z.ZodTypeAny, { - nodes: any[]; - }, { - nodes: any[]; - }>>, z.ZodLazy, z.ZodNull]>; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - }, { - url: string; - navigation: string | null; - }>>, z.ZodLazy>, z.ZodLazy, z.ZodNull]>; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - }, { - url: string; - navigation: string | null; - }>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - collector: string; - }, { - collector: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - intercept: string; - }, { - intercept: string; - }>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - }, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - }>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - script: string; - }, { - script: string; - }>>, z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; - }, { - type: "success"; - realm: string; - result?: any; - }>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }>>]>>>, z.ZodLazy>>>, z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; - }, { - type: "success"; - realm: string; - result?: any; - }>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }>>]>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - }, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - }>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - webSocketUrl: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }>, z.ZodLazy>>; - }, "strip", z.ZodTypeAny, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - }, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - }>>, z.ZodLazy>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - subscription: string; - }, { - subscription: string; - }>>, z.ZodLazy>>>]>>, z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - partitionKey: z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }>>, z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }>>]>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - extension: string; - }, { - extension: string; - }>>, z.ZodLazy>>>]>>]>>; -}, "strip", z.ZodTypeAny, { - type: "success"; - id: number; - result: Record | { - userContext: string; - } | { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - } | { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - } | { - userContexts: { - userContext: string; - }[]; - } | { - data: string; - } | { - context: string; - } | { - contexts?: any; - } | { - nodes: any[]; - } | { - url: string; - navigation: string | null; - } | { - data: string; - } | { - collector: string; - } | { - intercept: string; - } | { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - } | { - script: string; - } | { - type: "success"; - realm: string; - result?: any; - } | { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - } | { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - } | { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - } | { - message: string; - ready: boolean; - } | { - subscription: string; - } | { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - extension: string; - }; -}, { - type: "success"; - id: number; - result: Record | { - userContext: string; - } | { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - } | { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - } | { - userContexts: { - userContext: string; - }[]; - } | { - data: string; - } | { - context: string; - } | { - contexts?: any; - } | { - nodes: any[]; - } | { - url: string; - navigation: string | null; - } | { - data: string; - } | { - collector: string; - } | { - intercept: string; - } | { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - } | { - script: string; - } | { - type: "success"; - realm: string; - result?: any; - } | { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - } | { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - } | { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - } | { - message: string; - ready: boolean; - } | { - subscription: string; - } | { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - extension: string; - }; -}>, z.ZodLazy>>>, z.ZodLazy; - id: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - error: z.ZodLazy>; - message: z.ZodString; - stacktrace: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - message: string; - type: "error"; - error: "invalid argument" | "invalid selector" | "invalid session id" | "invalid web extension" | "move target out of bounds" | "no such alert" | "no such network collector" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such network data" | "no such node" | "no such request" | "no such script" | "no such storage partition" | "no such user context" | "no such web extension" | "session not created" | "unable to capture screen" | "unable to close browser" | "unable to set cookie" | "unable to set file input" | "unavailable network data" | "underspecified storage partition" | "unknown command" | "unknown error" | "unsupported operation"; - id: number | null; - stacktrace?: string | undefined; -}, { - message: string; - type: "error"; - error: "invalid argument" | "invalid selector" | "invalid session id" | "invalid web extension" | "move target out of bounds" | "no such alert" | "no such network collector" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such network data" | "no such node" | "no such request" | "no such script" | "no such storage partition" | "no such user context" | "no such web extension" | "session not created" | "unable to capture screen" | "unable to close browser" | "unable to set cookie" | "unable to set file input" | "unavailable network data" | "underspecified storage partition" | "unknown command" | "unknown error" | "unsupported operation"; - id: number | null; - stacktrace?: string | undefined; -}>, z.ZodLazy>>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "event"; -}, { - type: "event"; -}>, z.ZodLazy; - params: any; -}, "strip", z.ZodTypeAny, { - method: "browsingContext.contextCreated"; - params?: any; -}, { - method: "browsingContext.contextCreated"; - params?: any; -}>>, z.ZodLazy; - params: any; -}, "strip", z.ZodTypeAny, { - method: "browsingContext.contextDestroyed"; - params?: any; -}, { - method: "browsingContext.contextDestroyed"; - params?: any; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - status: "canceled"; - }, { - status: "canceled"; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>, z.ZodLazy; - filepath: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - status: "complete"; - filepath: string | null; - }, { - status: "complete"; - filepath: string | null; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; -}, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>; -}, "strip", z.ZodTypeAny, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; -}, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - timestamp: number; - }, { - url: string; - context: string; - timestamp: number; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; -}, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - accepted: z.ZodBoolean; - type: z.ZodLazy>; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; -}, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; -}>>, z.ZodLazy; - params: z.ZodLazy; - handler: z.ZodLazy>; - message: z.ZodString; - type: z.ZodLazy>; - defaultValue: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; -}, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - element: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>>; - multiple: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; -}, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; -}>>>, z.ZodLazy; - params: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: string; - }, { - type: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"console">; - method: z.ZodString; - args: z.ZodArray; - }, "strip", z.ZodTypeAny, { - type: "console"; - args: any[]; - method: string; - }, { - type: "console"; - args: any[]; - method: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"javascript">; - }, "strip", z.ZodTypeAny, { - type: "javascript"; - }, { - type: "javascript"; - }>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; -}, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; -}>>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - initiator: z.ZodOptional; - lineNumber: z.ZodOptional; - request: z.ZodOptional>; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - type: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - errorText: z.ZodString; - }, "strip", z.ZodTypeAny, { - errorText: string; - }, { - errorText: string; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - data: any; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; -}, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; -}>>, z.ZodLazy; - params: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; -}, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; -}, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; -}>>]>>]>>>, z.ZodLazy>>>]>>; -export declare const CommandResponseSchema: z.ZodLazy; - id: z.ZodNumber; - result: z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>>, z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }>>, "many">; - }, "strip", z.ZodTypeAny, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - }, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>, "many">; - }, "strip", z.ZodTypeAny, { - userContexts: { - userContext: string; - }[]; - }, { - userContexts: { - userContext: string; - }[]; - }>>, z.ZodLazy>>>, z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }>>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - contexts?: any; - }, { - contexts?: any; - }>>, z.ZodLazy>>>, z.ZodLazy, "many">; - }, "strip", z.ZodTypeAny, { - nodes: any[]; - }, { - nodes: any[]; - }>>, z.ZodLazy, z.ZodNull]>; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - }, { - url: string; - navigation: string | null; - }>>, z.ZodLazy>, z.ZodLazy, z.ZodNull]>; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - }, { - url: string; - navigation: string | null; - }>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - collector: string; - }, { - collector: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - intercept: string; - }, { - intercept: string; - }>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - }, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - }>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - script: string; - }, { - script: string; - }>>, z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; - }, { - type: "success"; - realm: string; - result?: any; - }>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }>>]>>>, z.ZodLazy>>>, z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; - }, { - type: "success"; - realm: string; - result?: any; - }>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }>>]>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - }, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - }>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - webSocketUrl: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }>, z.ZodLazy>>; - }, "strip", z.ZodTypeAny, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - }, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - }>>, z.ZodLazy>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - subscription: string; - }, { - subscription: string; - }>>, z.ZodLazy>>>]>>, z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - partitionKey: z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }>>, z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }>>]>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - extension: string; - }, { - extension: string; - }>>, z.ZodLazy>>>]>>]>>; -}, "strip", z.ZodTypeAny, { - type: "success"; - id: number; - result: Record | { - userContext: string; - } | { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - } | { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - } | { - userContexts: { - userContext: string; - }[]; - } | { - data: string; - } | { - context: string; - } | { - contexts?: any; - } | { - nodes: any[]; - } | { - url: string; - navigation: string | null; - } | { - data: string; - } | { - collector: string; - } | { - intercept: string; - } | { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - } | { - script: string; - } | { - type: "success"; - realm: string; - result?: any; - } | { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - } | { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - } | { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - } | { - message: string; - ready: boolean; - } | { - subscription: string; - } | { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - extension: string; - }; -}, { - type: "success"; - id: number; - result: Record | { - userContext: string; - } | { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - } | { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - } | { - userContexts: { - userContext: string; - }[]; - } | { - data: string; - } | { - context: string; - } | { - contexts?: any; - } | { - nodes: any[]; - } | { - url: string; - navigation: string | null; - } | { - data: string; - } | { - collector: string; - } | { - intercept: string; - } | { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - } | { - script: string; - } | { - type: "success"; - realm: string; - result?: any; - } | { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - } | { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - } | { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - } | { - message: string; - ready: boolean; - } | { - subscription: string; - } | { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - } | { - extension: string; - }; -}>, z.ZodLazy>>>; -export declare const ErrorResponseSchema: z.ZodLazy; - id: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - error: z.ZodLazy>; - message: z.ZodString; - stacktrace: z.ZodOptional; -}, "strip", z.ZodTypeAny, { - message: string; - type: "error"; - error: "invalid argument" | "invalid selector" | "invalid session id" | "invalid web extension" | "move target out of bounds" | "no such alert" | "no such network collector" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such network data" | "no such node" | "no such request" | "no such script" | "no such storage partition" | "no such user context" | "no such web extension" | "session not created" | "unable to capture screen" | "unable to close browser" | "unable to set cookie" | "unable to set file input" | "unavailable network data" | "underspecified storage partition" | "unknown command" | "unknown error" | "unsupported operation"; - id: number | null; - stacktrace?: string | undefined; -}, { - message: string; - type: "error"; - error: "invalid argument" | "invalid selector" | "invalid session id" | "invalid web extension" | "move target out of bounds" | "no such alert" | "no such network collector" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such network data" | "no such node" | "no such request" | "no such script" | "no such storage partition" | "no such user context" | "no such web extension" | "session not created" | "unable to capture screen" | "unable to close browser" | "unable to set cookie" | "unable to set file input" | "unavailable network data" | "underspecified storage partition" | "unknown command" | "unknown error" | "unsupported operation"; - id: number | null; - stacktrace?: string | undefined; -}>, z.ZodLazy>>>; -export declare const ResultDataSchema: z.ZodLazy>>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - userContext: string; -}, { - userContext: string; -}>>>, z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }>>, "many">; -}, "strip", z.ZodTypeAny, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; -}, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; -}>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>, "many">; -}, "strip", z.ZodTypeAny, { - userContexts: { - userContext: string; - }[]; -}, { - userContexts: { - userContext: string; - }[]; -}>>, z.ZodLazy>>>, z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; -}, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; -}>>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy>, z.ZodLazy>>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - context: string; -}, { - context: string; -}>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - contexts?: any; -}, { - contexts?: any; -}>>, z.ZodLazy>>>, z.ZodLazy, "many">; -}, "strip", z.ZodTypeAny, { - nodes: any[]; -}, { - nodes: any[]; -}>>, z.ZodLazy, z.ZodNull]>; - url: z.ZodString; -}, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; -}, { - url: string; - navigation: string | null; -}>>, z.ZodLazy>, z.ZodLazy, z.ZodNull]>; - url: z.ZodString; -}, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; -}, { - url: string; - navigation: string | null; -}>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - collector: string; -}, { - collector: string; -}>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - intercept: string; -}, { - intercept: string; -}>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; -}, "strip", z.ZodTypeAny, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; -}, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; -}>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - script: string; -}, { - script: string; -}>>, z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; -}, { - type: "success"; - realm: string; - result?: any; -}>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; -}, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; -}>>]>>>, z.ZodLazy>>>, z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; -}, { - type: "success"; - realm: string; - result?: any; -}>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; -}, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; -}>>]>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>, "many">; -}, "strip", z.ZodTypeAny, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; -}, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; -}>>, z.ZodLazy>>>]>>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - webSocketUrl: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }>, z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; -}, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; -}>>, z.ZodLazy>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - subscription: string; -}, { - subscription: string; -}>>, z.ZodLazy>>>]>>, z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; -}, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - partitionKey: z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; -}, "strip", z.ZodTypeAny, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}>>, z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; -}, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}>>]>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - extension: string; -}, { - extension: string; -}>>, z.ZodLazy>>>]>>]>>; -export declare const EmptyResultSchema: z.ZodLazy>>; -export declare const EventSchema: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "event"; -}, { - type: "event"; -}>, z.ZodLazy; - params: any; -}, "strip", z.ZodTypeAny, { - method: "browsingContext.contextCreated"; - params?: any; -}, { - method: "browsingContext.contextCreated"; - params?: any; -}>>, z.ZodLazy; - params: any; -}, "strip", z.ZodTypeAny, { - method: "browsingContext.contextDestroyed"; - params?: any; -}, { - method: "browsingContext.contextDestroyed"; - params?: any; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - status: "canceled"; - }, { - status: "canceled"; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>, z.ZodLazy; - filepath: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - status: "complete"; - filepath: string | null; - }, { - status: "complete"; - filepath: string | null; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; -}, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>; -}, "strip", z.ZodTypeAny, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; -}, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - timestamp: number; - }, { - url: string; - context: string; - timestamp: number; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; -}, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - accepted: z.ZodBoolean; - type: z.ZodLazy>; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; -}, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; -}>>, z.ZodLazy; - params: z.ZodLazy; - handler: z.ZodLazy>; - message: z.ZodString; - type: z.ZodLazy>; - defaultValue: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; -}, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - element: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>>; - multiple: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; -}, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; -}>>>, z.ZodLazy; - params: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: string; - }, { - type: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"console">; - method: z.ZodString; - args: z.ZodArray; - }, "strip", z.ZodTypeAny, { - type: "console"; - args: any[]; - method: string; - }, { - type: "console"; - args: any[]; - method: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"javascript">; - }, "strip", z.ZodTypeAny, { - type: "javascript"; - }, { - type: "javascript"; - }>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; -}, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; -}>>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - initiator: z.ZodOptional; - lineNumber: z.ZodOptional; - request: z.ZodOptional>; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - type: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - errorText: z.ZodString; - }, "strip", z.ZodTypeAny, { - errorText: string; - }, { - errorText: string; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - data: any; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; -}, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; -}>>, z.ZodLazy; - params: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; -}, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; -}, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; -}>>]>>]>>>, z.ZodLazy>>>; -export declare const EventDataSchema: z.ZodLazy; - params: any; -}, "strip", z.ZodTypeAny, { - method: "browsingContext.contextCreated"; - params?: any; -}, { - method: "browsingContext.contextCreated"; - params?: any; -}>>, z.ZodLazy; - params: any; -}, "strip", z.ZodTypeAny, { - method: "browsingContext.contextDestroyed"; - params?: any; -}, { - method: "browsingContext.contextDestroyed"; - params?: any; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - status: "canceled"; - }, { - status: "canceled"; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>, z.ZodLazy; - filepath: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - status: "complete"; - filepath: string | null; - }, { - status: "complete"; - filepath: string | null; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; -}, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>; -}, "strip", z.ZodTypeAny, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; -}, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - timestamp: number; - }, { - url: string; - context: string; - timestamp: number; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; -}, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - accepted: z.ZodBoolean; - type: z.ZodLazy>; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; -}, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; -}>>, z.ZodLazy; - params: z.ZodLazy; - handler: z.ZodLazy>; - message: z.ZodString; - type: z.ZodLazy>; - defaultValue: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; -}, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - element: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>>; - multiple: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; -}, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; -}>>>, z.ZodLazy; - params: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: string; - }, { - type: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"console">; - method: z.ZodString; - args: z.ZodArray; - }, "strip", z.ZodTypeAny, { - type: "console"; - args: any[]; - method: string; - }, { - type: "console"; - args: any[]; - method: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"javascript">; - }, "strip", z.ZodTypeAny, { - type: "javascript"; - }, { - type: "javascript"; - }>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; -}, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; -}>>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - initiator: z.ZodOptional; - lineNumber: z.ZodOptional; - request: z.ZodOptional>; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - type: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - errorText: z.ZodString; - }, "strip", z.ZodTypeAny, { - errorText: string; - }, { - errorText: string; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; -}>>]>>, z.ZodLazy; - params: z.ZodLazy; - data: any; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; -}, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; -}>>, z.ZodLazy; - params: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; -}, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; -}, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; -}>>]>>]>>; -export declare const ExtensibleSchema: z.ZodLazy>; -export declare const JsIntSchema: z.ZodNumber; -export declare const JsUintSchema: z.ZodNumber; -export declare const ErrorCodeSchema: z.ZodLazy>; -export declare const SessionCommandSchema: z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "session.end"; -}, { - params: Record; - method: "session.end"; -}>>, z.ZodLazy; - params: z.ZodLazy; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>>; - firstMatch: z.ZodOptional; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }; - method: "session.new"; -}, { - params: { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }; - method: "session.new"; -}>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "session.status"; -}, { - params: Record; - method: "session.status"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "session.subscribe"; -}, { - params: { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "session.subscribe"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - events: string[]; - }, { - events: string[]; - }>>, z.ZodLazy, "many">; - }, "strip", z.ZodTypeAny, { - subscriptions: string[]; - }, { - subscriptions: string[]; - }>>]>>; -}, "strip", z.ZodTypeAny, { - params: { - subscriptions: string[]; - } | { - events: string[]; - }; - method: "session.unsubscribe"; -}, { - params: { - subscriptions: string[]; - } | { - events: string[]; - }; - method: "session.unsubscribe"; -}>>]>>; -export declare const SessionResultSchema: z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - webSocketUrl: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }>, z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; -}, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; -}>>, z.ZodLazy>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - subscription: string; -}, { - subscription: string; -}>>, z.ZodLazy>>>]>>; -export declare namespace Session { - const CapabilitiesRequestSchema: z.ZodLazy; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>>; - firstMatch: z.ZodOptional; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }>>; -} -export declare namespace Session { - const CapabilityRequestSchema: z.ZodLazy; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>; -} -export declare namespace Session { - const ProxyConfigurationSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>; -} -export declare namespace Session { - const AutodetectProxyConfigurationSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>; -} -export declare namespace Session { - const DirectProxyConfigurationSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>; -} -export declare namespace Session { - const ManualProxyConfigurationSchema: z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>; -} -export declare namespace Session { - const SocksProxyConfigurationSchema: z.ZodLazy>; -} -export declare namespace Session { - const PacProxyConfigurationSchema: z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>; -} -export declare namespace Session { - const SystemProxyConfigurationSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>; -} -export declare namespace Session { - const UserPromptHandlerSchema: z.ZodLazy>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>; -} -export declare namespace Session { - const UserPromptHandlerTypeSchema: z.ZodLazy>; -} -export declare namespace Session { - const SubscriptionSchema: z.ZodLazy; -} -export declare namespace Session { - const SubscribeParametersSchema: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Session { - const UnsubscribeByIdRequestSchema: z.ZodLazy, "many">; - }, "strip", z.ZodTypeAny, { - subscriptions: string[]; - }, { - subscriptions: string[]; - }>>; -} -export declare namespace Session { - const UnsubscribeByAttributesRequestSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - events: string[]; - }, { - events: string[]; - }>>; -} -export declare namespace Session { - const StatusSchema: z.ZodLazy; - params: z.ZodLazy>>; - }, "strip", z.ZodTypeAny, { - params: Record; - method: "session.status"; - }, { - params: Record; - method: "session.status"; - }>>; -} -export declare namespace Session { - const StatusResultSchema: z.ZodLazy>; -} -export declare namespace Session { - const NewSchema: z.ZodLazy; - params: z.ZodLazy; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>>; - firstMatch: z.ZodOptional; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }; - method: "session.new"; - }, { - params: { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }; - method: "session.new"; - }>>; -} -export declare namespace Session { - const NewParametersSchema: z.ZodLazy; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>>; - firstMatch: z.ZodOptional; - browserName: z.ZodOptional; - browserVersion: z.ZodOptional; - platformName: z.ZodOptional; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }, { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }, { - capabilities: { - alwaysMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record) | undefined; - firstMatch?: ({ - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - browserName?: string | undefined; - browserVersion?: string | undefined; - platformName?: string | undefined; - } & Record)[] | undefined; - }; - }>>; -} -export declare namespace Session { - const NewResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - webSocketUrl: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }, { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - }>, z.ZodLazy>>; - }, "strip", z.ZodTypeAny, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - }, { - capabilities: { - acceptInsecureCerts: boolean; - userAgent: string; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - webSocketUrl?: string | undefined; - } & Record; - sessionId: string; - }>>; -} -export declare namespace Session { - const EndSchema: z.ZodLazy; - params: z.ZodLazy>>; - }, "strip", z.ZodTypeAny, { - params: Record; - method: "session.end"; - }, { - params: Record; - method: "session.end"; - }>>; -} -export declare namespace Session { - const EndResultSchema: z.ZodLazy>>>; -} -export declare namespace Session { - const SubscribeSchema: z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "session.subscribe"; - }, { - params: { - events: string[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "session.subscribe"; - }>>; -} -export declare namespace Session { - const SubscribeResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - subscription: string; - }, { - subscription: string; - }>>; -} -export declare namespace Session { - const UnsubscribeSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - events: string[]; - }, { - events: string[]; - }>>, z.ZodLazy, "many">; - }, "strip", z.ZodTypeAny, { - subscriptions: string[]; - }, { - subscriptions: string[]; - }>>]>>; - }, "strip", z.ZodTypeAny, { - params: { - subscriptions: string[]; - } | { - events: string[]; - }; - method: "session.unsubscribe"; - }, { - params: { - subscriptions: string[]; - } | { - events: string[]; - }; - method: "session.unsubscribe"; - }>>; -} -export declare namespace Session { - const UnsubscribeParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - events: string[]; - }, { - events: string[]; - }>>, z.ZodLazy, "many">; - }, "strip", z.ZodTypeAny, { - subscriptions: string[]; - }, { - subscriptions: string[]; - }>>]>>; -} -export declare namespace Session { - const UnsubscribeResultSchema: z.ZodLazy>>>; -} -export declare const BrowserCommandSchema: z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.close"; -}, { - params: Record; - method: "browser.close"; -}>>, z.ZodLazy; - params: z.ZodLazy; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }; - method: "browser.createUserContext"; -}, { - params: { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }; - method: "browser.createUserContext"; -}>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.getClientWindows"; -}, { - params: Record; - method: "browser.getClientWindows"; -}>>, z.ZodLazy; - params: z.ZodLazy>>; -}, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.getUserContexts"; -}, { - params: Record; - method: "browser.getUserContexts"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - userContext: string; - }; - method: "browser.removeUserContext"; -}, { - params: { - userContext: string; - }; - method: "browser.removeUserContext"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - clientWindow: string; - }, { - clientWindow: string; - }>, z.ZodUnion<[z.ZodLazy; - }, "strip", z.ZodTypeAny, { - state: "minimized" | "maximized" | "fullscreen"; - }, { - state: "minimized" | "maximized" | "fullscreen"; - }>>, z.ZodLazy; - width: z.ZodOptional; - height: z.ZodOptional; - x: z.ZodOptional; - y: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }>>]>>>; -}, "strip", z.ZodTypeAny, { - params: { - clientWindow: string; - } & ({ - state: "minimized" | "maximized" | "fullscreen"; - } | { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }); - method: "browser.setClientWindowState"; -}, { - params: { - clientWindow: string; - } & ({ - state: "minimized" | "maximized" | "fullscreen"; - } | { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }); - method: "browser.setClientWindowState"; -}>>, z.ZodLazy; - params: z.ZodLazy; - destinationFolder: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "allowed"; - destinationFolder: string; - }, { - type: "allowed"; - destinationFolder: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "denied"; - }, { - type: "denied"; - }>>]>>, z.ZodNull]>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }; - method: "browser.setDownloadBehavior"; -}, { - params: { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }; - method: "browser.setDownloadBehavior"; -}>>]>>; -export declare const BrowserResultSchema: z.ZodLazy>>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - userContext: string; -}, { - userContext: string; -}>>>, z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }>>, "many">; -}, "strip", z.ZodTypeAny, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; -}, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; -}>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>, "many">; -}, "strip", z.ZodTypeAny, { - userContexts: { - userContext: string; - }[]; -}, { - userContexts: { - userContext: string; - }[]; -}>>, z.ZodLazy>>>, z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; -}, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; -}, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; -}>>>, z.ZodLazy>>>]>>; -export declare namespace Browser { - const ClientWindowSchema: z.ZodLazy; -} -export declare namespace Browser { - const ClientWindowInfoSchema: z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }>>; -} -export declare namespace Browser { - const UserContextSchema: z.ZodLazy; -} -export declare namespace Browser { - const UserContextInfoSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>; -} -export declare namespace Browser { - const CloseSchema: z.ZodLazy; - params: z.ZodLazy>>; - }, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.close"; - }, { - params: Record; - method: "browser.close"; - }>>; -} -export declare namespace Browser { - const CloseResultSchema: z.ZodLazy>>>; -} -export declare namespace Browser { - const CreateUserContextSchema: z.ZodLazy; - params: z.ZodLazy; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }; - method: "browser.createUserContext"; - }, { - params: { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }; - method: "browser.createUserContext"; - }>>; -} -export declare namespace Browser { - const CreateUserContextParametersSchema: z.ZodLazy; - proxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "autodetect"; - }, { - proxyType: "autodetect"; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "direct"; - }, { - proxyType: "direct"; - }>, z.ZodLazy>>>, z.ZodLazy; - httpProxy: z.ZodOptional; - sslProxy: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }, { - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - }>, z.ZodUnion<[z.ZodLazy>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>, z.ZodObject<{ - noProxy: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - noProxy?: string[] | undefined; - }, { - noProxy?: string[] | undefined; - }>>, z.ZodLazy>>>, z.ZodLazy; - proxyAutoconfigUrl: z.ZodString; - }, "strip", z.ZodTypeAny, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }, { - proxyType: "pac"; - proxyAutoconfigUrl: string; - }>, z.ZodLazy>>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - proxyType: "system"; - }, { - proxyType: "system"; - }>, z.ZodLazy>>>]>>>; - unhandledPromptBehavior: z.ZodOptional>>; - beforeUnload: z.ZodOptional>>; - confirm: z.ZodOptional>>; - default: z.ZodOptional>>; - file: z.ZodOptional>>; - prompt: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }, { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }, { - proxy?: ({ - proxyType: "autodetect"; - } & Record) | ({ - proxyType: "direct"; - } & Record) | ((({ - proxyType: "manual"; - httpProxy?: string | undefined; - sslProxy?: string | undefined; - } & ({ - socksProxy: string; - socksVersion: number; - } | {})) & { - noProxy?: string[] | undefined; - }) & Record) | ({ - proxyType: "pac"; - proxyAutoconfigUrl: string; - } & Record) | ({ - proxyType: "system"; - } & Record) | undefined; - acceptInsecureCerts?: boolean | undefined; - unhandledPromptBehavior?: { - default?: "accept" | "dismiss" | "ignore" | undefined; - prompt?: "accept" | "dismiss" | "ignore" | undefined; - alert?: "accept" | "dismiss" | "ignore" | undefined; - confirm?: "accept" | "dismiss" | "ignore" | undefined; - beforeUnload?: "accept" | "dismiss" | "ignore" | undefined; - file?: "accept" | "dismiss" | "ignore" | undefined; - } | undefined; - }>>; -} -export declare namespace Browser { - const CreateUserContextResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>>; -} -export declare namespace Browser { - const GetClientWindowsSchema: z.ZodLazy; - params: z.ZodLazy>>; - }, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.getClientWindows"; - }, { - params: Record; - method: "browser.getClientWindows"; - }>>; -} -export declare namespace Browser { - const GetClientWindowsResultSchema: z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }>>, "many">; - }, "strip", z.ZodTypeAny, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - }, { - clientWindows: { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }[]; - }>>; -} -export declare namespace Browser { - const GetUserContextsSchema: z.ZodLazy; - params: z.ZodLazy>>; - }, "strip", z.ZodTypeAny, { - params: Record; - method: "browser.getUserContexts"; - }, { - params: Record; - method: "browser.getUserContexts"; - }>>; -} -export declare namespace Browser { - const GetUserContextsResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>, "many">; - }, "strip", z.ZodTypeAny, { - userContexts: { - userContext: string; - }[]; - }, { - userContexts: { - userContext: string; - }[]; - }>>; -} -export declare namespace Browser { - const RemoveUserContextSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - userContext: string; - }; - method: "browser.removeUserContext"; - }, { - params: { - userContext: string; - }; - method: "browser.removeUserContext"; - }>>; -} -export declare namespace Browser { - const RemoveUserContextParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - userContext: string; - }, { - userContext: string; - }>>; -} -export declare namespace Browser { - const RemoveUserContextResultSchema: z.ZodLazy>>>; -} -export declare namespace Browser { - const SetClientWindowStateSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - clientWindow: string; - }, { - clientWindow: string; - }>, z.ZodUnion<[z.ZodLazy; - }, "strip", z.ZodTypeAny, { - state: "minimized" | "maximized" | "fullscreen"; - }, { - state: "minimized" | "maximized" | "fullscreen"; - }>>, z.ZodLazy; - width: z.ZodOptional; - height: z.ZodOptional; - x: z.ZodOptional; - y: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - params: { - clientWindow: string; - } & ({ - state: "minimized" | "maximized" | "fullscreen"; - } | { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }); - method: "browser.setClientWindowState"; - }, { - params: { - clientWindow: string; - } & ({ - state: "minimized" | "maximized" | "fullscreen"; - } | { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }); - method: "browser.setClientWindowState"; - }>>; -} -export declare namespace Browser { - const SetClientWindowStateParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - clientWindow: string; - }, { - clientWindow: string; - }>, z.ZodUnion<[z.ZodLazy; - }, "strip", z.ZodTypeAny, { - state: "minimized" | "maximized" | "fullscreen"; - }, { - state: "minimized" | "maximized" | "fullscreen"; - }>>, z.ZodLazy; - width: z.ZodOptional; - height: z.ZodOptional; - x: z.ZodOptional; - y: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }>>]>>>; -} -export declare namespace Browser { - const ClientWindowNamedStateSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - state: "minimized" | "maximized" | "fullscreen"; - }, { - state: "minimized" | "maximized" | "fullscreen"; - }>>; -} -export declare namespace Browser { - const ClientWindowRectStateSchema: z.ZodLazy; - width: z.ZodOptional; - height: z.ZodOptional; - x: z.ZodOptional; - y: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }, { - state: "normal"; - width?: number | undefined; - height?: number | undefined; - x?: number | undefined; - y?: number | undefined; - }>>; -} -export declare namespace Browser { - const SetClientWindowStateResultSchema: z.ZodLazy; - height: z.ZodNumber; - state: z.ZodEnum<["fullscreen", "maximized", "minimized", "normal"]>; - width: z.ZodNumber; - x: z.ZodNumber; - y: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }, { - active: boolean; - clientWindow: string; - state: "normal" | "minimized" | "maximized" | "fullscreen"; - width: number; - height: number; - x: number; - y: number; - }>>>; -} -export declare namespace Browser { - const SetDownloadBehaviorSchema: z.ZodLazy; - params: z.ZodLazy; - destinationFolder: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "allowed"; - destinationFolder: string; - }, { - type: "allowed"; - destinationFolder: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "denied"; - }, { - type: "denied"; - }>>]>>, z.ZodNull]>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }; - method: "browser.setDownloadBehavior"; - }, { - params: { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }; - method: "browser.setDownloadBehavior"; - }>>; -} -export declare namespace Browser { - const SetDownloadBehaviorParametersSchema: z.ZodLazy; - destinationFolder: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "allowed"; - destinationFolder: string; - }, { - type: "allowed"; - destinationFolder: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "denied"; - }, { - type: "denied"; - }>>]>>, z.ZodNull]>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }, { - downloadBehavior: { - type: "allowed"; - destinationFolder: string; - } | { - type: "denied"; - } | null; - userContexts?: string[] | undefined; - }>>; -} -export declare namespace Browser { - const DownloadBehaviorSchema: z.ZodLazy; - destinationFolder: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "allowed"; - destinationFolder: string; - }, { - type: "allowed"; - destinationFolder: string; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "denied"; - }, { - type: "denied"; - }>>]>>; -} -export declare namespace Browser { - const DownloadBehaviorAllowedSchema: z.ZodLazy; - destinationFolder: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "allowed"; - destinationFolder: string; - }, { - type: "allowed"; - destinationFolder: string; - }>>; -} -export declare namespace Browser { - const DownloadBehaviorDeniedSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "denied"; - }, { - type: "denied"; - }>>; -} -export declare namespace Browser { - const SetDownloadBehaviorResultSchema: z.ZodLazy>>>; -} -export declare const BrowsingContextCommandSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "browsingContext.activate"; -}, { - params: { - context: string; - }; - method: "browsingContext.activate"; -}>>, z.ZodLazy; - params: z.ZodLazy; - origin: z.ZodOptional>>; - format: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: string; - quality?: number | undefined; - }, { - type: string; - quality?: number | undefined; - }>>>; - clip: z.ZodOptional; - x: z.ZodNumber; - y: z.ZodNumber; - width: z.ZodNumber; - height: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }>>, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }; - method: "browsingContext.captureScreenshot"; -}, { - params: { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }; - method: "browsingContext.captureScreenshot"; -}>>, z.ZodLazy; - params: z.ZodLazy; - promptUnload: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - promptUnload?: boolean | undefined; - }, { - context: string; - promptUnload?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - promptUnload?: boolean | undefined; - }; - method: "browsingContext.close"; -}, { - params: { - context: string; - promptUnload?: boolean | undefined; - }; - method: "browsingContext.close"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - referenceContext: z.ZodOptional>; - background: z.ZodOptional>; - userContext: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }; - method: "browsingContext.create"; -}, { - params: { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }; - method: "browsingContext.create"; -}>>, z.ZodLazy; - params: z.ZodLazy; - root: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - root?: string | undefined; - maxDepth?: number | undefined; - }, { - root?: string | undefined; - maxDepth?: number | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - root?: string | undefined; - maxDepth?: number | undefined; - }; - method: "browsingContext.getTree"; -}, { - params: { - root?: string | undefined; - maxDepth?: number | undefined; - }; - method: "browsingContext.getTree"; -}>>, z.ZodLazy; - params: z.ZodLazy; - accept: z.ZodOptional; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }; - method: "browsingContext.handleUserPrompt"; -}, { - params: { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }; - method: "browsingContext.handleUserPrompt"; -}>>, z.ZodLazy; - params: z.ZodLazy; - locator: z.ZodLazy; - value: z.ZodObject<{ - name: z.ZodOptional; - role: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - role?: string | undefined; - name?: string | undefined; - }, { - role?: string | undefined; - name?: string | undefined; - }>; - }, "strip", z.ZodTypeAny, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "css"; - value: string; - }, { - type: "css"; - value: string; - }>>, z.ZodLazy; - value: z.ZodObject<{ - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>; - }, "strip", z.ZodTypeAny, { - type: "context"; - value: { - context: string; - }; - }, { - type: "context"; - value: { - context: string; - }; - }>>, z.ZodLazy; - value: z.ZodString; - ignoreCase: z.ZodOptional; - matchType: z.ZodOptional>; - maxDepth: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "xpath"; - value: string; - }, { - type: "xpath"; - value: string; - }>>]>>; - maxNodeCount: z.ZodOptional; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - startNodes: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }; - method: "browsingContext.locateNodes"; -}, { - params: { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }; - method: "browsingContext.locateNodes"; -}>>, z.ZodLazy; - params: z.ZodLazy; - url: z.ZodString; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }; - method: "browsingContext.navigate"; -}, { - params: { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }; - method: "browsingContext.navigate"; -}>>, z.ZodLazy; - params: z.ZodLazy; - background: z.ZodOptional>; - margin: z.ZodOptional>; - left: z.ZodOptional>; - right: z.ZodOptional>; - top: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }>>>; - orientation: z.ZodOptional>>; - page: z.ZodOptional>; - width: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - }>>>; - pageRanges: z.ZodOptional, "many">>; - scale: z.ZodOptional>; - shrinkToFit: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }; - method: "browsingContext.print"; -}, { - params: { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }; - method: "browsingContext.print"; -}>>, z.ZodLazy; - params: z.ZodLazy; - ignoreCache: z.ZodOptional; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }; - method: "browsingContext.reload"; -}, { - params: { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }; - method: "browsingContext.reload"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - viewport: z.ZodOptional>, z.ZodNull]>>; - devicePixelRatio: z.ZodOptional>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }; - method: "browsingContext.setViewport"; -}, { - params: { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }; - method: "browsingContext.setViewport"; -}>>, z.ZodLazy; - params: z.ZodLazy; - delta: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - context: string; - delta: number; - }, { - context: string; - delta: number; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - delta: number; - }; - method: "browsingContext.traverseHistory"; -}, { - params: { - context: string; - delta: number; - }; - method: "browsingContext.traverseHistory"; -}>>]>>; -export declare const BrowsingContextResultSchema: z.ZodLazy>>>, z.ZodLazy>, z.ZodLazy>>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - context: string; -}, { - context: string; -}>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - contexts?: any; -}, { - contexts?: any; -}>>, z.ZodLazy>>>, z.ZodLazy, "many">; -}, "strip", z.ZodTypeAny, { - nodes: any[]; -}, { - nodes: any[]; -}>>, z.ZodLazy, z.ZodNull]>; - url: z.ZodString; -}, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; -}, { - url: string; - navigation: string | null; -}>>, z.ZodLazy>, z.ZodLazy, z.ZodNull]>; - url: z.ZodString; -}, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; -}, { - url: string; - navigation: string | null; -}>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>; -export declare const BrowsingContextEventSchema: z.ZodLazy; - params: any; -}, "strip", z.ZodTypeAny, { - method: "browsingContext.contextCreated"; - params?: any; -}, { - method: "browsingContext.contextCreated"; - params?: any; -}>>, z.ZodLazy; - params: any; -}, "strip", z.ZodTypeAny, { - method: "browsingContext.contextDestroyed"; - params?: any; -}, { - method: "browsingContext.contextDestroyed"; - params?: any; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - status: "canceled"; - }, { - status: "canceled"; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>, z.ZodLazy; - filepath: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - status: "complete"; - filepath: string | null; - }, { - status: "complete"; - filepath: string | null; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; -}, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>; -}, "strip", z.ZodTypeAny, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; -}, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - timestamp: number; - }, { - url: string; - context: string; - timestamp: number; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; -}, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; -}>>, z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; -}, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; -}>>, z.ZodLazy; - params: z.ZodLazy; - accepted: z.ZodBoolean; - type: z.ZodLazy>; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; -}, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; -}>>, z.ZodLazy; - params: z.ZodLazy; - handler: z.ZodLazy>; - message: z.ZodString; - type: z.ZodLazy>; - defaultValue: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; -}, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; -}>>]>>; -export declare namespace BrowsingContext { - const BrowsingContextSchema: z.ZodLazy; -} -export declare namespace BrowsingContext { - const InfoListSchema: any; -} -export declare namespace BrowsingContext { - const InfoSchema: any; -} -export declare namespace BrowsingContext { - const LocatorSchema: z.ZodLazy; - value: z.ZodObject<{ - name: z.ZodOptional; - role: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - role?: string | undefined; - name?: string | undefined; - }, { - role?: string | undefined; - name?: string | undefined; - }>; - }, "strip", z.ZodTypeAny, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "css"; - value: string; - }, { - type: "css"; - value: string; - }>>, z.ZodLazy; - value: z.ZodObject<{ - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>; - }, "strip", z.ZodTypeAny, { - type: "context"; - value: { - context: string; - }; - }, { - type: "context"; - value: { - context: string; - }; - }>>, z.ZodLazy; - value: z.ZodString; - ignoreCase: z.ZodOptional; - matchType: z.ZodOptional>; - maxDepth: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "xpath"; - value: string; - }, { - type: "xpath"; - value: string; - }>>]>>; -} -export declare namespace BrowsingContext { - const AccessibilityLocatorSchema: z.ZodLazy; - value: z.ZodObject<{ - name: z.ZodOptional; - role: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - role?: string | undefined; - name?: string | undefined; - }, { - role?: string | undefined; - name?: string | undefined; - }>; - }, "strip", z.ZodTypeAny, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }>>; -} -export declare namespace BrowsingContext { - const CssLocatorSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "css"; - value: string; - }, { - type: "css"; - value: string; - }>>; -} -export declare namespace BrowsingContext { - const ContextLocatorSchema: z.ZodLazy; - value: z.ZodObject<{ - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>; - }, "strip", z.ZodTypeAny, { - type: "context"; - value: { - context: string; - }; - }, { - type: "context"; - value: { - context: string; - }; - }>>; -} -export declare namespace BrowsingContext { - const InnerTextLocatorSchema: z.ZodLazy; - value: z.ZodString; - ignoreCase: z.ZodOptional; - matchType: z.ZodOptional>; - maxDepth: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }>>; -} -export declare namespace BrowsingContext { - const XPathLocatorSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "xpath"; - value: string; - }, { - type: "xpath"; - value: string; - }>>; -} -export declare namespace BrowsingContext { - const NavigationSchema: z.ZodLazy; -} -export declare namespace BrowsingContext { - const BaseNavigationInfoSchema: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>; -} -export declare namespace BrowsingContext { - const NavigationInfoSchema: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; -} -export declare namespace BrowsingContext { - const ReadinessStateSchema: z.ZodLazy>; -} -export declare namespace BrowsingContext { - const UserPromptTypeSchema: z.ZodLazy>; -} -export declare namespace BrowsingContext { - const ActivateSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "browsingContext.activate"; - }, { - params: { - context: string; - }; - method: "browsingContext.activate"; - }>>; -} -export declare namespace BrowsingContext { - const ActivateParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -} -export declare namespace BrowsingContext { - const ActivateResultSchema: z.ZodLazy>>>; -} -export declare namespace BrowsingContext { - const CaptureScreenshotSchema: z.ZodLazy; - params: z.ZodLazy; - origin: z.ZodOptional>>; - format: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: string; - quality?: number | undefined; - }, { - type: string; - quality?: number | undefined; - }>>>; - clip: z.ZodOptional; - x: z.ZodNumber; - y: z.ZodNumber; - width: z.ZodNumber; - height: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }>>, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }; - method: "browsingContext.captureScreenshot"; - }, { - params: { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }; - method: "browsingContext.captureScreenshot"; - }>>; -} -export declare namespace BrowsingContext { - const CaptureScreenshotParametersSchema: z.ZodLazy; - origin: z.ZodOptional>>; - format: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: string; - quality?: number | undefined; - }, { - type: string; - quality?: number | undefined; - }>>>; - clip: z.ZodOptional; - x: z.ZodNumber; - y: z.ZodNumber; - width: z.ZodNumber; - height: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }>>, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - context: string; - origin?: "viewport" | "document" | undefined; - format?: { - type: string; - quality?: number | undefined; - } | undefined; - clip?: { - type: "box"; - width: number; - height: number; - x: number; - y: number; - } | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>; -} -export declare namespace BrowsingContext { - const ImageFormatSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: string; - quality?: number | undefined; - }, { - type: string; - quality?: number | undefined; - }>>; -} -export declare namespace BrowsingContext { - const ClipRectangleSchema: z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - width: z.ZodNumber; - height: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }>>, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>; -} -export declare namespace BrowsingContext { - const ElementClipRectangleSchema: z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>; -} -export declare namespace BrowsingContext { - const BoxClipRectangleSchema: z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - width: z.ZodNumber; - height: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }, { - type: "box"; - width: number; - height: number; - x: number; - y: number; - }>>; -} -export declare namespace BrowsingContext { - const CaptureScreenshotResultSchema: z.ZodLazy>; -} -export declare namespace BrowsingContext { - const CloseSchema: z.ZodLazy; - params: z.ZodLazy; - promptUnload: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - promptUnload?: boolean | undefined; - }, { - context: string; - promptUnload?: boolean | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - promptUnload?: boolean | undefined; - }; - method: "browsingContext.close"; - }, { - params: { - context: string; - promptUnload?: boolean | undefined; - }; - method: "browsingContext.close"; - }>>; -} -export declare namespace BrowsingContext { - const CloseParametersSchema: z.ZodLazy; - promptUnload: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - promptUnload?: boolean | undefined; - }, { - context: string; - promptUnload?: boolean | undefined; - }>>; -} -export declare namespace BrowsingContext { - const CloseResultSchema: z.ZodLazy>>>; -} -export declare namespace BrowsingContext { - const CreateSchema: z.ZodLazy; - params: z.ZodLazy>; - referenceContext: z.ZodOptional>; - background: z.ZodOptional>; - userContext: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }; - method: "browsingContext.create"; - }, { - params: { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }; - method: "browsingContext.create"; - }>>; -} -export declare namespace BrowsingContext { - const CreateTypeSchema: z.ZodLazy>; -} -export declare namespace BrowsingContext { - const CreateParametersSchema: z.ZodLazy>; - referenceContext: z.ZodOptional>; - background: z.ZodOptional>; - userContext: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }, { - type: "window" | "tab"; - background?: boolean | undefined; - userContext?: string | undefined; - referenceContext?: string | undefined; - }>>; -} -export declare namespace BrowsingContext { - const CreateResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -} -export declare namespace BrowsingContext { - const GetTreeSchema: z.ZodLazy; - params: z.ZodLazy; - root: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - root?: string | undefined; - maxDepth?: number | undefined; - }, { - root?: string | undefined; - maxDepth?: number | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - root?: string | undefined; - maxDepth?: number | undefined; - }; - method: "browsingContext.getTree"; - }, { - params: { - root?: string | undefined; - maxDepth?: number | undefined; - }; - method: "browsingContext.getTree"; - }>>; -} -export declare namespace BrowsingContext { - const GetTreeParametersSchema: z.ZodLazy; - root: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - root?: string | undefined; - maxDepth?: number | undefined; - }, { - root?: string | undefined; - maxDepth?: number | undefined; - }>>; -} -export declare namespace BrowsingContext { - const GetTreeResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - contexts?: any; - }, { - contexts?: any; - }>>; -} -export declare namespace BrowsingContext { - const HandleUserPromptSchema: z.ZodLazy; - params: z.ZodLazy; - accept: z.ZodOptional; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }; - method: "browsingContext.handleUserPrompt"; - }, { - params: { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }; - method: "browsingContext.handleUserPrompt"; - }>>; -} -export declare namespace BrowsingContext { - const HandleUserPromptParametersSchema: z.ZodLazy; - accept: z.ZodOptional; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }, { - context: string; - accept?: boolean | undefined; - userText?: string | undefined; - }>>; -} -export declare namespace BrowsingContext { - const HandleUserPromptResultSchema: z.ZodLazy>>>; -} -export declare namespace BrowsingContext { - const LocateNodesSchema: z.ZodLazy; - params: z.ZodLazy; - locator: z.ZodLazy; - value: z.ZodObject<{ - name: z.ZodOptional; - role: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - role?: string | undefined; - name?: string | undefined; - }, { - role?: string | undefined; - name?: string | undefined; - }>; - }, "strip", z.ZodTypeAny, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "css"; - value: string; - }, { - type: "css"; - value: string; - }>>, z.ZodLazy; - value: z.ZodObject<{ - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>; - }, "strip", z.ZodTypeAny, { - type: "context"; - value: { - context: string; - }; - }, { - type: "context"; - value: { - context: string; - }; - }>>, z.ZodLazy; - value: z.ZodString; - ignoreCase: z.ZodOptional; - matchType: z.ZodOptional>; - maxDepth: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "xpath"; - value: string; - }, { - type: "xpath"; - value: string; - }>>]>>; - maxNodeCount: z.ZodOptional; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - startNodes: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }; - method: "browsingContext.locateNodes"; - }, { - params: { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }; - method: "browsingContext.locateNodes"; - }>>; -} -export declare namespace BrowsingContext { - const LocateNodesParametersSchema: z.ZodLazy; - locator: z.ZodLazy; - value: z.ZodObject<{ - name: z.ZodOptional; - role: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - role?: string | undefined; - name?: string | undefined; - }, { - role?: string | undefined; - name?: string | undefined; - }>; - }, "strip", z.ZodTypeAny, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }, { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "css"; - value: string; - }, { - type: "css"; - value: string; - }>>, z.ZodLazy; - value: z.ZodObject<{ - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>; - }, "strip", z.ZodTypeAny, { - type: "context"; - value: { - context: string; - }; - }, { - type: "context"; - value: { - context: string; - }; - }>>, z.ZodLazy; - value: z.ZodString; - ignoreCase: z.ZodOptional; - matchType: z.ZodOptional>; - maxDepth: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }, { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "xpath"; - value: string; - }, { - type: "xpath"; - value: string; - }>>]>>; - maxNodeCount: z.ZodOptional; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - startNodes: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>, "many">>; - }, "strip", z.ZodTypeAny, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }, { - context: string; - locator: { - type: "accessibility"; - value: { - role?: string | undefined; - name?: string | undefined; - }; - } | { - type: "css"; - value: string; - } | { - type: "context"; - value: { - context: string; - }; - } | { - type: "innerText"; - value: string; - maxDepth?: number | undefined; - ignoreCase?: boolean | undefined; - matchType?: "partial" | "full" | undefined; - } | { - type: "xpath"; - value: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - maxNodeCount?: number | undefined; - startNodes?: ({ - sharedId: string; - handle?: string | undefined; - } & Record)[] | undefined; - }>>; -} -export declare namespace BrowsingContext { - const LocateNodesResultSchema: z.ZodLazy, "many">; - }, "strip", z.ZodTypeAny, { - nodes: any[]; - }, { - nodes: any[]; - }>>; -} -export declare namespace BrowsingContext { - const NavigateSchema: z.ZodLazy; - params: z.ZodLazy; - url: z.ZodString; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }; - method: "browsingContext.navigate"; - }, { - params: { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }; - method: "browsingContext.navigate"; - }>>; -} -export declare namespace BrowsingContext { - const NavigateParametersSchema: z.ZodLazy; - url: z.ZodString; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }, { - url: string; - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - }>>; -} -export declare namespace BrowsingContext { - const NavigateResultSchema: z.ZodLazy, z.ZodNull]>; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - }, { - url: string; - navigation: string | null; - }>>; -} -export declare namespace BrowsingContext { - const PrintSchema: z.ZodLazy; - params: z.ZodLazy; - background: z.ZodOptional>; - margin: z.ZodOptional>; - left: z.ZodOptional>; - right: z.ZodOptional>; - top: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }>>>; - orientation: z.ZodOptional>>; - page: z.ZodOptional>; - width: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - }>>>; - pageRanges: z.ZodOptional, "many">>; - scale: z.ZodOptional>; - shrinkToFit: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }; - method: "browsingContext.print"; - }, { - params: { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }; - method: "browsingContext.print"; - }>>; -} -export declare namespace BrowsingContext { - const PrintParametersSchema: z.ZodLazy; - background: z.ZodOptional>; - margin: z.ZodOptional>; - left: z.ZodOptional>; - right: z.ZodOptional>; - top: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }>>>; - orientation: z.ZodOptional>>; - page: z.ZodOptional>; - width: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - }>>>; - pageRanges: z.ZodOptional, "many">>; - scale: z.ZodOptional>; - shrinkToFit: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }, { - context: string; - orientation?: "portrait" | "landscape" | undefined; - background?: boolean | undefined; - margin?: { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - } | undefined; - page?: { - width?: number | undefined; - height?: number | undefined; - } | undefined; - pageRanges?: (string | number)[] | undefined; - scale?: number | undefined; - shrinkToFit?: boolean | undefined; - }>>; -} -export declare namespace BrowsingContext { - const PrintMarginParametersSchema: z.ZodLazy>; - left: z.ZodOptional>; - right: z.ZodOptional>; - top: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }, { - left?: number | undefined; - right?: number | undefined; - bottom?: number | undefined; - top?: number | undefined; - }>>; -} -export declare namespace BrowsingContext { - const PrintPageParametersSchema: z.ZodLazy>; - width: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - }>>; -} -export declare namespace BrowsingContext { - const PrintResultSchema: z.ZodLazy>; -} -export declare namespace BrowsingContext { - const ReloadSchema: z.ZodLazy; - params: z.ZodLazy; - ignoreCache: z.ZodOptional; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }; - method: "browsingContext.reload"; - }, { - params: { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }; - method: "browsingContext.reload"; - }>>; -} -export declare namespace BrowsingContext { - const ReloadParametersSchema: z.ZodLazy; - ignoreCache: z.ZodOptional; - wait: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }, { - context: string; - wait?: "none" | "interactive" | "complete" | undefined; - ignoreCache?: boolean | undefined; - }>>; -} -export declare namespace BrowsingContext { - const ReloadResultSchema: z.ZodLazy, z.ZodNull]>; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - }, { - url: string; - navigation: string | null; - }>>>; -} -export declare namespace BrowsingContext { - const SetViewportSchema: z.ZodLazy; - params: z.ZodLazy>; - viewport: z.ZodOptional>, z.ZodNull]>>; - devicePixelRatio: z.ZodOptional>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }; - method: "browsingContext.setViewport"; - }, { - params: { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }; - method: "browsingContext.setViewport"; - }>>; -} -export declare namespace BrowsingContext { - const SetViewportParametersSchema: z.ZodLazy>; - viewport: z.ZodOptional>, z.ZodNull]>>; - devicePixelRatio: z.ZodOptional>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }, { - context?: string | undefined; - viewport?: { - width: number; - height: number; - } | null | undefined; - userContexts?: string[] | undefined; - devicePixelRatio?: number | null | undefined; - }>>; -} -export declare namespace BrowsingContext { - const ViewportSchema: z.ZodLazy>; -} -export declare namespace BrowsingContext { - const SetViewportResultSchema: z.ZodLazy>>>; -} -export declare namespace BrowsingContext { - const TraverseHistorySchema: z.ZodLazy; - params: z.ZodLazy; - delta: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - context: string; - delta: number; - }, { - context: string; - delta: number; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - delta: number; - }; - method: "browsingContext.traverseHistory"; - }, { - params: { - context: string; - delta: number; - }; - method: "browsingContext.traverseHistory"; - }>>; -} -export declare namespace BrowsingContext { - const TraverseHistoryParametersSchema: z.ZodLazy; - delta: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - context: string; - delta: number; - }, { - context: string; - delta: number; - }>>; -} -export declare namespace BrowsingContext { - const TraverseHistoryResultSchema: z.ZodLazy>>>; -} -export declare namespace BrowsingContext { - const ContextCreatedSchema: z.ZodLazy; - params: any; - }, "strip", z.ZodTypeAny, { - method: "browsingContext.contextCreated"; - params?: any; - }, { - method: "browsingContext.contextCreated"; - params?: any; - }>>; -} -export declare namespace BrowsingContext { - const ContextDestroyedSchema: z.ZodLazy; - params: any; - }, "strip", z.ZodTypeAny, { - method: "browsingContext.contextDestroyed"; - params?: any; - }, { - method: "browsingContext.contextDestroyed"; - params?: any; - }>>; -} -export declare namespace BrowsingContext { - const NavigationStartedSchema: z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; - }, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationStarted"; - }>>; -} -export declare namespace BrowsingContext { - const FragmentNavigatedSchema: z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; - }, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.fragmentNavigated"; - }>>; -} -export declare namespace BrowsingContext { - const HistoryUpdatedSchema: z.ZodLazy; - params: z.ZodLazy; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - timestamp: number; - }, { - url: string; - context: string; - timestamp: number; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; - }, { - params: { - url: string; - context: string; - timestamp: number; - }; - method: "browsingContext.historyUpdated"; - }>>; -} -export declare namespace BrowsingContext { - const HistoryUpdatedParametersSchema: z.ZodLazy; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - context: string; - timestamp: number; - }, { - url: string; - context: string; - timestamp: number; - }>>; -} -export declare namespace BrowsingContext { - const DomContentLoadedSchema: z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; - }, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.domContentLoaded"; - }>>; -} -export declare namespace BrowsingContext { - const LoadSchema: z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; - }, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.load"; - }>>; -} -export declare namespace BrowsingContext { - const DownloadWillBeginSchema: z.ZodLazy; - params: z.ZodLazy, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>; - }, "strip", z.ZodTypeAny, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; - }, { - params: { - suggestedFilename: string; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.downloadWillBegin"; - }>>; -} -export declare namespace BrowsingContext { - const DownloadWillBeginParamsSchema: z.ZodLazy, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>; -} -export declare namespace BrowsingContext { - const DownloadEndSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - status: "canceled"; - }, { - status: "canceled"; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>, z.ZodLazy; - filepath: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - status: "complete"; - filepath: string | null; - }, { - status: "complete"; - filepath: string | null; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>]>>; - }, "strip", z.ZodTypeAny, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; - }, { - params: ({ - status: "canceled"; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }) | ({ - status: "complete"; - filepath: string | null; - } & { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }); - method: "browsingContext.downloadEnd"; - }>>; -} -export declare namespace BrowsingContext { - const DownloadEndParamsSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - status: "canceled"; - }, { - status: "canceled"; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>, z.ZodLazy; - filepath: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - status: "complete"; - filepath: string | null; - }, { - status: "complete"; - filepath: string | null; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>]>>; -} -export declare namespace BrowsingContext { - const DownloadCanceledParamsSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - status: "canceled"; - }, { - status: "canceled"; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>; -} -export declare namespace BrowsingContext { - const DownloadCompleteParamsSchema: z.ZodLazy; - filepath: z.ZodUnion<[z.ZodString, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - status: "complete"; - filepath: string | null; - }, { - status: "complete"; - filepath: string | null; - }>, z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>>; -} -export declare namespace BrowsingContext { - const NavigationAbortedSchema: z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; - }, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationAborted"; - }>>; -} -export declare namespace BrowsingContext { - const NavigationCommittedSchema: z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; - }, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationCommitted"; - }>>; -} -export declare namespace BrowsingContext { - const NavigationFailedSchema: z.ZodLazy; - params: z.ZodLazy; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - timestamp: z.ZodNumber; - url: z.ZodString; - }, "strip", z.ZodTypeAny, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }, { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; - }, { - params: { - url: string; - navigation: string | null; - context: string; - timestamp: number; - }; - method: "browsingContext.navigationFailed"; - }>>; -} -export declare namespace BrowsingContext { - const UserPromptClosedSchema: z.ZodLazy; - params: z.ZodLazy; - accepted: z.ZodBoolean; - type: z.ZodLazy>; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; - }, { - params: { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }; - method: "browsingContext.userPromptClosed"; - }>>; -} -export declare namespace BrowsingContext { - const UserPromptClosedParametersSchema: z.ZodLazy; - accepted: z.ZodBoolean; - type: z.ZodLazy>; - userText: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }, { - type: "prompt" | "alert" | "confirm" | "beforeunload"; - context: string; - accepted: boolean; - userText?: string | undefined; - }>>; -} -export declare namespace BrowsingContext { - const UserPromptOpenedSchema: z.ZodLazy; - params: z.ZodLazy; - handler: z.ZodLazy>; - message: z.ZodString; - type: z.ZodLazy>; - defaultValue: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; - }, { - params: { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }; - method: "browsingContext.userPromptOpened"; - }>>; -} -export declare namespace BrowsingContext { - const UserPromptOpenedParametersSchema: z.ZodLazy; - handler: z.ZodLazy>; - message: z.ZodString; - type: z.ZodLazy>; - defaultValue: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }, { - message: string; - type: "prompt" | "alert" | "confirm" | "beforeunload"; - handler: "accept" | "dismiss" | "ignore"; - context: string; - defaultValue?: string | undefined; - }>>; -} -export declare const EmulationCommandSchema: z.ZodLazy; - params: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setForcedColorsModeThemeOverride"; -}, { - params: { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setForcedColorsModeThemeOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - altitude: z.ZodOptional]>>; - altitudeAccuracy: z.ZodOptional]>>; - heading: z.ZodOptional]>>; - speed: z.ZodOptional]>>; - }, "strip", z.ZodTypeAny, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }>>, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }>, z.ZodObject<{ - error: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "positionUnavailable"; - }, { - type: "positionUnavailable"; - }>>; - }, "strip", z.ZodTypeAny, { - error: { - type: "positionUnavailable"; - }; - }, { - error: { - type: "positionUnavailable"; - }; - }>]>, z.ZodObject<{ - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>>; -}, "strip", z.ZodTypeAny, { - params: ({ - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - } | { - error: { - type: "positionUnavailable"; - }; - }) & { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setGeolocationOverride"; -}, { - params: ({ - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - } | { - error: { - type: "positionUnavailable"; - }; - }) & { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setGeolocationOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setLocaleOverride"; -}, { - params: { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setLocaleOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "offline"; - }, { - type: "offline"; - }>>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setNetworkConditions"; -}, { - params: { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setNetworkConditions"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - type: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenOrientationOverride"; -}, { - params: { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenOrientationOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenSettingsOverride"; -}, { - params: { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenSettingsOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScriptingEnabled"; -}, { - params: { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScriptingEnabled"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTimezoneOverride"; -}, { - params: { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTimezoneOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTouchOverride"; -}, { - params: { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTouchOverride"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setUserAgentOverride"; -}, { - params: { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setUserAgentOverride"; -}>>]>>; -export declare const EmulationResultSchema: z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>; -export declare namespace Emulation { - const SetForcedColorsModeThemeOverrideSchema: z.ZodLazy; - params: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setForcedColorsModeThemeOverride"; - }, { - params: { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setForcedColorsModeThemeOverride"; - }>>; -} -export declare namespace Emulation { - const SetForcedColorsModeThemeOverrideParametersSchema: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - theme: "light" | "dark" | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Emulation { - const ForcedColorsModeThemeSchema: z.ZodLazy>; -} -export declare namespace Emulation { - const SetForcedColorsModeThemeOverrideResultSchema: z.ZodLazy>>>; -} -export declare namespace Emulation { - const SetGeolocationOverrideSchema: z.ZodLazy; - params: z.ZodLazy>; - altitude: z.ZodOptional]>>; - altitudeAccuracy: z.ZodOptional]>>; - heading: z.ZodOptional]>>; - speed: z.ZodOptional]>>; - }, "strip", z.ZodTypeAny, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }>>, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }>, z.ZodObject<{ - error: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "positionUnavailable"; - }, { - type: "positionUnavailable"; - }>>; - }, "strip", z.ZodTypeAny, { - error: { - type: "positionUnavailable"; - }; - }, { - error: { - type: "positionUnavailable"; - }; - }>]>, z.ZodObject<{ - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - params: ({ - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - } | { - error: { - type: "positionUnavailable"; - }; - }) & { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setGeolocationOverride"; - }, { - params: ({ - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - } | { - error: { - type: "positionUnavailable"; - }; - }) & { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setGeolocationOverride"; - }>>; -} -export declare namespace Emulation { - const SetGeolocationOverrideParametersSchema: z.ZodLazy>; - altitude: z.ZodOptional]>>; - altitudeAccuracy: z.ZodOptional]>>; - heading: z.ZodOptional]>>; - speed: z.ZodOptional]>>; - }, "strip", z.ZodTypeAny, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }>>, z.ZodNull]>; - }, "strip", z.ZodTypeAny, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }, { - coordinates: { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - } | null; - }>, z.ZodObject<{ - error: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "positionUnavailable"; - }, { - type: "positionUnavailable"; - }>>; - }, "strip", z.ZodTypeAny, { - error: { - type: "positionUnavailable"; - }; - }, { - error: { - type: "positionUnavailable"; - }; - }>]>, z.ZodObject<{ - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>>; -} -export declare namespace Emulation { - const GeolocationCoordinatesSchema: z.ZodLazy>; - altitude: z.ZodOptional]>>; - altitudeAccuracy: z.ZodOptional]>>; - heading: z.ZodOptional]>>; - speed: z.ZodOptional]>>; - }, "strip", z.ZodTypeAny, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }, { - latitude: number; - longitude: number; - accuracy?: number | undefined; - altitude?: number | null | undefined; - altitudeAccuracy?: number | null | undefined; - heading?: number | null | undefined; - speed?: number | null | undefined; - }>>; -} -export declare namespace Emulation { - const GeolocationPositionErrorSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "positionUnavailable"; - }, { - type: "positionUnavailable"; - }>>; -} -export declare namespace Emulation { - const SetGeolocationOverrideResultSchema: z.ZodLazy>>>; -} -export declare namespace Emulation { - const SetLocaleOverrideSchema: z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setLocaleOverride"; - }, { - params: { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setLocaleOverride"; - }>>; -} -export declare namespace Emulation { - const SetLocaleOverrideParametersSchema: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - locale: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Emulation { - const SetLocaleOverrideResultSchema: z.ZodLazy>>>; -} -export declare namespace Emulation { - const SetNetworkConditionsSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "offline"; - }, { - type: "offline"; - }>>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setNetworkConditions"; - }, { - params: { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setNetworkConditions"; - }>>; -} -export declare namespace Emulation { - const SetNetworkConditionsParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "offline"; - }, { - type: "offline"; - }>>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - networkConditions: { - type: "offline"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Emulation { - const NetworkConditionsSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "offline"; - }, { - type: "offline"; - }>>>; -} -export declare namespace Emulation { - const NetworkConditionsOfflineSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "offline"; - }, { - type: "offline"; - }>>; -} -export declare namespace Emulation { - const SetNetworkConditionsResultSchema: z.ZodLazy>>>; -} -export declare namespace Emulation { - const SetScreenSettingsOverrideSchema: z.ZodLazy; - params: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenSettingsOverride"; - }, { - params: { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenSettingsOverride"; - }>>; -} -export declare namespace Emulation { - const ScreenAreaSchema: z.ZodLazy>; -} -export declare namespace Emulation { - const SetScreenSettingsOverrideParametersSchema: z.ZodLazy>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenArea: { - width: number; - height: number; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Emulation { - const SetScreenSettingsOverrideResultSchema: z.ZodLazy>>>; -} -export declare namespace Emulation { - const SetScreenOrientationOverrideSchema: z.ZodLazy; - params: z.ZodLazy>; - type: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenOrientationOverride"; - }, { - params: { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScreenOrientationOverride"; - }>>; -} -export declare namespace Emulation { - const ScreenOrientationNaturalSchema: z.ZodLazy>; -} -export declare namespace Emulation { - const ScreenOrientationTypeSchema: z.ZodLazy>; -} -export declare namespace Emulation { - const ScreenOrientationSchema: z.ZodLazy>; - type: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }>>; -} -export declare namespace Emulation { - const SetScreenOrientationOverrideParametersSchema: z.ZodLazy>; - type: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }, { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - }>>, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - screenOrientation: { - type: "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; - natural: "portrait" | "landscape"; - } | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Emulation { - const SetScreenOrientationOverrideResultSchema: z.ZodLazy>>>; -} -export declare namespace Emulation { - const SetUserAgentOverrideSchema: z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setUserAgentOverride"; - }, { - params: { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setUserAgentOverride"; - }>>; -} -export declare namespace Emulation { - const SetUserAgentOverrideParametersSchema: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - userAgent: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Emulation { - const SetUserAgentOverrideResultSchema: z.ZodLazy>>>; -} -export declare namespace Emulation { - const SetScriptingEnabledSchema: z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScriptingEnabled"; - }, { - params: { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setScriptingEnabled"; - }>>; -} -export declare namespace Emulation { - const SetScriptingEnabledParametersSchema: z.ZodLazy, z.ZodNull]>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - enabled: false | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Emulation { - const SetScriptingEnabledResultSchema: z.ZodLazy>>>; -} -export declare namespace Emulation { - const SetTimezoneOverrideSchema: z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTimezoneOverride"; - }, { - params: { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTimezoneOverride"; - }>>; -} -export declare namespace Emulation { - const SetTimezoneOverrideParametersSchema: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - timezone: string | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Emulation { - const SetTimezoneOverrideResultSchema: z.ZodLazy>>>; -} -export declare namespace Emulation { - const SetTouchOverrideSchema: z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTouchOverride"; - }, { - params: { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "emulation.setTouchOverride"; - }>>; -} -export declare namespace Emulation { - const SetTouchOverrideParametersSchema: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - maxTouchPoints: number | null; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Emulation { - const SetTouchOverrideResultSchema: z.ZodLazy>>>; -} -export declare const NetworkCommandSchema: z.ZodLazy; - params: z.ZodLazy>, "many">; - maxEncodedDataSize: z.ZodNumber; - collectorType: z.ZodOptional>>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }; - method: "network.addDataCollector"; -}, { - params: { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }; - method: "network.addDataCollector"; -}>>, z.ZodLazy; - params: z.ZodLazy>, "many">; - contexts: z.ZodOptional, "many">>; - urlPatterns: z.ZodOptional; - protocol: z.ZodOptional; - hostname: z.ZodOptional; - port: z.ZodOptional; - pathname: z.ZodOptional; - search: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }>>, z.ZodLazy; - pattern: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - pattern: string; - }, { - type: "string"; - pattern: string; - }>>]>>, "many">>; - }, "strip", z.ZodTypeAny, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }; - method: "network.addIntercept"; -}, { - params: { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }; - method: "network.addIntercept"; -}>>, z.ZodLazy; - params: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - method: z.ZodOptional; - url: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }; - method: "network.continueRequest"; -}, { - params: { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }; - method: "network.continueRequest"; -}>>, z.ZodLazy; - params: z.ZodLazy; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - credentials: z.ZodOptional; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.continueResponse"; -}, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.continueResponse"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>, z.ZodUnion<[z.ZodLazy; - credentials: z.ZodLazy; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>; - }, "strip", z.ZodTypeAny, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - action: "default" | "cancel"; - }, { - action: "default" | "cancel"; - }>>]>>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - } & ({ - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - } | { - action: "default" | "cancel"; - }); - method: "network.continueWithAuth"; -}, { - params: { - request: string; - } & ({ - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - } | { - action: "default" | "cancel"; - }); - method: "network.continueWithAuth"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - collector: z.ZodLazy; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector: string; - }, { - request: string; - dataType: "request" | "response"; - collector: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - dataType: "request" | "response"; - collector: string; - }; - method: "network.disownData"; -}, { - params: { - request: string; - dataType: "request" | "response"; - collector: string; - }; - method: "network.disownData"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - }; - method: "network.failRequest"; -}, { - params: { - request: string; - }; - method: "network.failRequest"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - collector: z.ZodOptional>; - disown: z.ZodOptional>; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }; - method: "network.getData"; -}, { - params: { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }; - method: "network.getData"; -}>>, z.ZodLazy; - params: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.provideResponse"; -}, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.provideResponse"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - collector: string; - }, { - collector: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - collector: string; - }; - method: "network.removeDataCollector"; -}, { - params: { - collector: string; - }; - method: "network.removeDataCollector"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - intercept: string; - }, { - intercept: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - intercept: string; - }; - method: "network.removeIntercept"; -}, { - params: { - intercept: string; - }; - method: "network.removeIntercept"; -}>>, z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }; - method: "network.setCacheBehavior"; -}, { - params: { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }; - method: "network.setCacheBehavior"; -}>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "network.setExtraHeaders"; -}, { - params: { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "network.setExtraHeaders"; -}>>]>>; -export declare const NetworkResultSchema: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - collector: string; -}, { - collector: string; -}>>, z.ZodLazy; -}, "strip", z.ZodTypeAny, { - intercept: string; -}, { - intercept: string; -}>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; -}, "strip", z.ZodTypeAny, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; -}, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; -}>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>; -export declare const NetworkEventSchema: z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - initiator: z.ZodOptional; - lineNumber: z.ZodOptional; - request: z.ZodOptional>; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - type: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - errorText: z.ZodString; - }, "strip", z.ZodTypeAny, { - errorText: string; - }, { - errorText: string; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; -}>>, z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -}, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; -}, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; -}>>]>>; -export declare namespace Network { - const AuthChallengeSchema: z.ZodLazy>; -} -export declare namespace Network { - const AuthCredentialsSchema: z.ZodLazy; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>; -} -export declare namespace Network { - const BaseParametersSchema: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>; -} -export declare namespace Network { - const BytesValueSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; -} -export declare namespace Network { - const StringValueSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>; -} -export declare namespace Network { - const Base64ValueSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>; -} -export declare namespace Network { - const CollectorSchema: z.ZodLazy; -} -export declare namespace Network { - const CollectorTypeSchema: z.ZodLiteral<"blob">; -} -export declare namespace Network { - const SameSiteSchema: z.ZodLazy>; -} -export declare namespace Network { - const CookieSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>; -} -export declare namespace Network { - const CookieHeaderSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>; -} -export declare namespace Network { - const DataTypeSchema: z.ZodLazy>; -} -export declare namespace Network { - const FetchTimingInfoSchema: z.ZodLazy>; -} -export declare namespace Network { - const HeaderSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>; -} -export declare namespace Network { - const InitiatorSchema: z.ZodLazy; - lineNumber: z.ZodOptional; - request: z.ZodOptional>; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - type: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>; -} -export declare namespace Network { - const InterceptSchema: z.ZodLazy; -} -export declare namespace Network { - const RequestSchema: z.ZodLazy; -} -export declare namespace Network { - const RequestDataSchema: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; -} -export declare namespace Network { - const ResponseContentSchema: z.ZodLazy>; -} -export declare namespace Network { - const ResponseDataSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; -} -export declare namespace Network { - const SetCookieHeaderSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>; -} -export declare namespace Network { - const UrlPatternSchema: z.ZodLazy; - protocol: z.ZodOptional; - hostname: z.ZodOptional; - port: z.ZodOptional; - pathname: z.ZodOptional; - search: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }>>, z.ZodLazy; - pattern: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - pattern: string; - }, { - type: "string"; - pattern: string; - }>>]>>; -} -export declare namespace Network { - const UrlPatternPatternSchema: z.ZodLazy; - protocol: z.ZodOptional; - hostname: z.ZodOptional; - port: z.ZodOptional; - pathname: z.ZodOptional; - search: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }>>; -} -export declare namespace Network { - const UrlPatternStringSchema: z.ZodLazy; - pattern: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - pattern: string; - }, { - type: "string"; - pattern: string; - }>>; -} -export declare namespace Network { - const AddDataCollectorSchema: z.ZodLazy; - params: z.ZodLazy>, "many">; - maxEncodedDataSize: z.ZodNumber; - collectorType: z.ZodOptional>>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }; - method: "network.addDataCollector"; - }, { - params: { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }; - method: "network.addDataCollector"; - }>>; -} -export declare namespace Network { - const AddDataCollectorParametersSchema: z.ZodLazy>, "many">; - maxEncodedDataSize: z.ZodNumber; - collectorType: z.ZodOptional>>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }, { - dataTypes: ("request" | "response")[]; - maxEncodedDataSize: number; - userContexts?: string[] | undefined; - collectorType?: "blob" | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Network { - const AddDataCollectorResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - collector: string; - }, { - collector: string; - }>>; -} -export declare namespace Network { - const AddInterceptSchema: z.ZodLazy; - params: z.ZodLazy>, "many">; - contexts: z.ZodOptional, "many">>; - urlPatterns: z.ZodOptional; - protocol: z.ZodOptional; - hostname: z.ZodOptional; - port: z.ZodOptional; - pathname: z.ZodOptional; - search: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }>>, z.ZodLazy; - pattern: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - pattern: string; - }, { - type: "string"; - pattern: string; - }>>]>>, "many">>; - }, "strip", z.ZodTypeAny, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }; - method: "network.addIntercept"; - }, { - params: { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }; - method: "network.addIntercept"; - }>>; -} -export declare namespace Network { - const AddInterceptParametersSchema: z.ZodLazy>, "many">; - contexts: z.ZodOptional, "many">>; - urlPatterns: z.ZodOptional; - protocol: z.ZodOptional; - hostname: z.ZodOptional; - port: z.ZodOptional; - pathname: z.ZodOptional; - search: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }, { - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - }>>, z.ZodLazy; - pattern: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - pattern: string; - }, { - type: "string"; - pattern: string; - }>>]>>, "many">>; - }, "strip", z.ZodTypeAny, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }, { - phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[]; - contexts?: string[] | undefined; - urlPatterns?: ({ - type: "pattern"; - search?: string | undefined; - protocol?: string | undefined; - hostname?: string | undefined; - port?: string | undefined; - pathname?: string | undefined; - } | { - type: "string"; - pattern: string; - })[] | undefined; - }>>; -} -export declare namespace Network { - const InterceptPhaseSchema: z.ZodLazy>; -} -export declare namespace Network { - const AddInterceptResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - intercept: string; - }, { - intercept: string; - }>>; -} -export declare namespace Network { - const ContinueRequestSchema: z.ZodLazy; - params: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - method: z.ZodOptional; - url: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }; - method: "network.continueRequest"; - }, { - params: { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }; - method: "network.continueRequest"; - }>>; -} -export declare namespace Network { - const ContinueRequestParametersSchema: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - method: z.ZodOptional; - url: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }, { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }>>; -} -export declare namespace Network { - const ContinueRequestResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const ContinueResponseSchema: z.ZodLazy; - params: z.ZodLazy; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - credentials: z.ZodOptional; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.continueResponse"; - }, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.continueResponse"; - }>>; -} -export declare namespace Network { - const ContinueResponseParametersSchema: z.ZodLazy; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - credentials: z.ZodOptional; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; -} -export declare namespace Network { - const ContinueResponseResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const ContinueWithAuthSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>, z.ZodUnion<[z.ZodLazy; - credentials: z.ZodLazy; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>; - }, "strip", z.ZodTypeAny, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - action: "default" | "cancel"; - }, { - action: "default" | "cancel"; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - params: { - request: string; - } & ({ - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - } | { - action: "default" | "cancel"; - }); - method: "network.continueWithAuth"; - }, { - params: { - request: string; - } & ({ - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - } | { - action: "default" | "cancel"; - }); - method: "network.continueWithAuth"; - }>>; -} -export declare namespace Network { - const ContinueWithAuthParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>, z.ZodUnion<[z.ZodLazy; - credentials: z.ZodLazy; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>; - }, "strip", z.ZodTypeAny, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - action: "default" | "cancel"; - }, { - action: "default" | "cancel"; - }>>]>>>; -} -export declare namespace Network { - const ContinueWithAuthCredentialsSchema: z.ZodLazy; - credentials: z.ZodLazy; - username: z.ZodString; - password: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "password"; - password: string; - username: string; - }, { - type: "password"; - password: string; - username: string; - }>>; - }, "strip", z.ZodTypeAny, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }, { - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - }>>; -} -export declare namespace Network { - const ContinueWithAuthNoCredentialsSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - action: "default" | "cancel"; - }, { - action: "default" | "cancel"; - }>>; -} -export declare namespace Network { - const ContinueWithAuthResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const DisownDataSchema: z.ZodLazy; - params: z.ZodLazy>; - collector: z.ZodLazy; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector: string; - }, { - request: string; - dataType: "request" | "response"; - collector: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - request: string; - dataType: "request" | "response"; - collector: string; - }; - method: "network.disownData"; - }, { - params: { - request: string; - dataType: "request" | "response"; - collector: string; - }; - method: "network.disownData"; - }>>; -} -export declare namespace Network { - const DisownDataParametersSchema: z.ZodLazy>; - collector: z.ZodLazy; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector: string; - }, { - request: string; - dataType: "request" | "response"; - collector: string; - }>>; -} -export declare namespace Network { - const DisownDataResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const FailRequestSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - request: string; - }; - method: "network.failRequest"; - }, { - params: { - request: string; - }; - method: "network.failRequest"; - }>>; -} -export declare namespace Network { - const FailRequestParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - }, { - request: string; - }>>; -} -export declare namespace Network { - const FailRequestResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const GetDataSchema: z.ZodLazy; - params: z.ZodLazy>; - collector: z.ZodOptional>; - disown: z.ZodOptional>; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }; - method: "network.getData"; - }, { - params: { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }; - method: "network.getData"; - }>>; -} -export declare namespace Network { - const GetDataParametersSchema: z.ZodLazy>; - collector: z.ZodOptional>; - disown: z.ZodOptional>; - request: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }, { - request: string; - dataType: "request" | "response"; - collector?: string | undefined; - disown?: boolean | undefined; - }>>; -} -export declare namespace Network { - const GetDataResultSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - }, { - bytes: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - }>>; -} -export declare namespace Network { - const ProvideResponseSchema: z.ZodLazy; - params: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.provideResponse"; - }, { - params: { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; - method: "network.provideResponse"; - }>>; -} -export declare namespace Network { - const ProvideResponseParametersSchema: z.ZodLazy; - body: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - cookies: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodOptional; - httpOnly: z.ZodOptional; - expiry: z.ZodOptional; - maxAge: z.ZodOptional; - path: z.ZodOptional; - sameSite: z.ZodOptional>>; - secure: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>>, "many">>; - headers: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">>; - reasonPhrase: z.ZodOptional; - statusCode: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }, { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - path?: string | undefined; - secure?: boolean | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }[] | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }>>; -} -export declare namespace Network { - const ProvideResponseResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const RemoveDataCollectorSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - collector: string; - }, { - collector: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - collector: string; - }; - method: "network.removeDataCollector"; - }, { - params: { - collector: string; - }; - method: "network.removeDataCollector"; - }>>; -} -export declare namespace Network { - const RemoveDataCollectorParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - collector: string; - }, { - collector: string; - }>>; -} -export declare namespace Network { - const RemoveDataCollectorResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const RemoveInterceptSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - intercept: string; - }, { - intercept: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - intercept: string; - }; - method: "network.removeIntercept"; - }, { - params: { - intercept: string; - }; - method: "network.removeIntercept"; - }>>; -} -export declare namespace Network { - const RemoveInterceptParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - intercept: string; - }, { - intercept: string; - }>>; -} -export declare namespace Network { - const RemoveInterceptResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const SetCacheBehaviorSchema: z.ZodLazy; - params: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }; - method: "network.setCacheBehavior"; - }, { - params: { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }; - method: "network.setCacheBehavior"; - }>>; -} -export declare namespace Network { - const SetCacheBehaviorParametersSchema: z.ZodLazy; - contexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }, { - cacheBehavior: "default" | "bypass"; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Network { - const SetCacheBehaviorResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const SetExtraHeadersSchema: z.ZodLazy; - params: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "network.setExtraHeaders"; - }, { - params: { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }; - method: "network.setExtraHeaders"; - }>>; -} -export declare namespace Network { - const SetExtraHeadersParametersSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }, { - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - }>>; -} -export declare namespace Network { - const SetExtraHeadersResultSchema: z.ZodLazy>>>; -} -export declare namespace Network { - const AuthRequiredSchema: z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; - }, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.authRequired"; - }>>; -} -export declare namespace Network { - const AuthRequiredParametersSchema: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -} -export declare namespace Network { - const BeforeRequestSentSchema: z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - initiator: z.ZodOptional; - lineNumber: z.ZodOptional; - request: z.ZodOptional>; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - type: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; - }, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }; - method: "network.beforeRequestSent"; - }>>; -} -export declare namespace Network { - const BeforeRequestSentParametersSchema: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - initiator: z.ZodOptional; - lineNumber: z.ZodOptional; - request: z.ZodOptional>; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - type: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>>; - }, "strip", z.ZodTypeAny, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }, { - initiator?: { - type?: "other" | "script" | "parser" | "preflight" | undefined; - request?: string | undefined; - columnNumber?: number | undefined; - lineNumber?: number | undefined; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } | undefined; - }>>>; -} -export declare namespace Network { - const FetchErrorSchema: z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - errorText: z.ZodString; - }, "strip", z.ZodTypeAny, { - errorText: string; - }, { - errorText: string; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; - }, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - errorText: string; - }; - method: "network.fetchError"; - }>>; -} -export declare namespace Network { - const FetchErrorParametersSchema: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - errorText: z.ZodString; - }, "strip", z.ZodTypeAny, { - errorText: string; - }, { - errorText: string; - }>>>; -} -export declare namespace Network { - const ResponseCompletedSchema: z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; - }, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseCompleted"; - }>>; -} -export declare namespace Network { - const ResponseCompletedParametersSchema: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -} -export declare namespace Network { - const ResponseStartedSchema: z.ZodLazy; - params: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; - }, "strip", z.ZodTypeAny, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; - }, { - params: { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - } & { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }; - method: "network.responseStarted"; - }>>; -} -export declare namespace Network { - const ResponseStartedParametersSchema: z.ZodLazy, z.ZodNull]>; - isBlocked: z.ZodBoolean; - navigation: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - redirectCount: z.ZodNumber; - request: z.ZodLazy; - url: z.ZodString; - method: z.ZodString; - headers: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - cookies: z.ZodArray; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - headersSize: z.ZodNumber; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - destination: z.ZodString; - initiatorType: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timings: z.ZodLazy>; - }, "strip", z.ZodTypeAny, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }, { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }>>; - timestamp: z.ZodNumber; - intercepts: z.ZodOptional, "many">>; - }, "strip", z.ZodTypeAny, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }, { - navigation: string | null; - context: string | null; - request: { - url: string; - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - request: string; - method: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - headersSize: number; - bodySize: number | null; - destination: string; - initiatorType: string | null; - timings: { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; - }; - timestamp: number; - isBlocked: boolean; - redirectCount: number; - intercepts?: string[] | undefined; - }>>, z.ZodObject<{ - response: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }>>, "many">; - mimeType: z.ZodString; - bytesReceived: z.ZodNumber; - headersSize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - bodySize: z.ZodUnion<[z.ZodNumber, z.ZodNull]>; - content: z.ZodLazy>; - authChallenges: z.ZodOptional>, "many">>; - }, "strip", z.ZodTypeAny, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }, { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }, { - response: { - url: string; - status: number; - protocol: string; - headers: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[]; - content: { - size: number; - }; - headersSize: number | null; - bodySize: number | null; - statusText: string; - fromCache: boolean; - mimeType: string; - bytesReceived: number; - authChallenges?: { - realm: string; - scheme: string; - }[] | undefined; - }; - }>>>; -} -export declare const ScriptCommandSchema: z.ZodLazy; - params: z.ZodLazy; - value: z.ZodLazy; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - ownership: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }>>, "many">>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }; - method: "script.addPreloadScript"; -}, { - params: { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }; - method: "script.addPreloadScript"; -}>>, z.ZodLazy; - params: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - arguments: z.ZodOptional, "many">>; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - this: any; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }; - method: "script.callFunction"; -}, { - params: { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }; - method: "script.callFunction"; -}>>, z.ZodLazy; - params: z.ZodLazy, "many">; - target: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }; - method: "script.disown"; -}, { - params: { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }; - method: "script.disown"; -}>>, z.ZodLazy; - params: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - awaitPromise: z.ZodBoolean; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }; - method: "script.evaluate"; -}, { - params: { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }; - method: "script.evaluate"; -}>>, z.ZodLazy; - params: z.ZodLazy>; - type: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }; - method: "script.getRealms"; -}, { - params: { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }; - method: "script.getRealms"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - script: string; - }, { - script: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - script: string; - }; - method: "script.removePreloadScript"; -}, { - params: { - script: string; - }; - method: "script.removePreloadScript"; -}>>]>>; -export declare const ScriptResultSchema: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - script: string; -}, { - script: string; -}>>, z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; -}, { - type: "success"; - realm: string; - result?: any; -}>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; -}, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; -}>>]>>>, z.ZodLazy>>>, z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; -}, { - type: "success"; - realm: string; - result?: any; -}>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; -}, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; -}>>]>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>, "many">; -}, "strip", z.ZodTypeAny, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; -}, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; -}>>, z.ZodLazy>>>]>>; -export declare const ScriptEventSchema: z.ZodLazy; - params: z.ZodLazy; - data: any; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; -}, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; -}>>, z.ZodLazy; - params: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; -}, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; -}, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; -}>>]>>; -export declare namespace Script { - const ChannelSchema: z.ZodLazy; -} -export declare namespace Script { - const ChannelValueSchema: z.ZodLazy; - value: z.ZodLazy; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - ownership: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }>>; -} -export declare namespace Script { - const ChannelPropertiesSchema: z.ZodLazy; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - ownership: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }>>; -} -export declare namespace Script { - const EvaluateResultSchema: z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; - }, { - type: "success"; - realm: string; - result?: any; - }>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }>>]>>; -} -export declare namespace Script { - const EvaluateResultSuccessSchema: z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; - }, { - type: "success"; - realm: string; - result?: any; - }>>; -} -export declare namespace Script { - const EvaluateResultExceptionSchema: z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }>>; -} -export declare namespace Script { - const ExceptionDetailsSchema: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; -} -export declare namespace Script { - const HandleSchema: z.ZodLazy; -} -export declare namespace Script { - const InternalIdSchema: z.ZodLazy; -} -export declare namespace Script { - const LocalValueSchema: any; -} -export declare namespace Script { - const ListLocalValueSchema: any; -} -export declare namespace Script { - const ArrayLocalValueSchema: any; -} -export declare namespace Script { - const DateLocalValueSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "date"; - value: string; - }, { - type: "date"; - value: string; - }>>; -} -export declare namespace Script { - const MappingLocalValueSchema: z.ZodLazy, any], null>, "many">>; -} -export declare namespace Script { - const MapLocalValueSchema: z.ZodLazy; - value: z.ZodLazy, any], null>, "many">>; - }, "strip", z.ZodTypeAny, { - type: "map"; - value: [any, any][]; - }, { - type: "map"; - value: [any, any][]; - }>>; -} -export declare namespace Script { - const ObjectLocalValueSchema: z.ZodLazy; - value: z.ZodLazy, any], null>, "many">>; - }, "strip", z.ZodTypeAny, { - type: "object"; - value: [any, any][]; - }, { - type: "object"; - value: [any, any][]; - }>>; -} -export declare namespace Script { - const RegExpValueSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - pattern: string; - flags?: string | undefined; - }, { - pattern: string; - flags?: string | undefined; - }>>; -} -export declare namespace Script { - const RegExpLocalValueSchema: z.ZodLazy; - value: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - pattern: string; - flags?: string | undefined; - }, { - pattern: string; - flags?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - type: "regexp"; - value: { - pattern: string; - flags?: string | undefined; - }; - }, { - type: "regexp"; - value: { - pattern: string; - flags?: string | undefined; - }; - }>>; -} -export declare namespace Script { - const SetLocalValueSchema: z.ZodLazy; - value: any; - }, "strip", z.ZodTypeAny, { - type: "set"; - value?: any; - }, { - type: "set"; - value?: any; - }>>; -} -export declare namespace Script { - const PreloadScriptSchema: z.ZodLazy; -} -export declare namespace Script { - const RealmSchema: z.ZodLazy; -} -export declare namespace Script { - const PrimitiveProtocolValueSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "undefined"; - }, { - type: "undefined"; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "null"; - }, { - type: "null"; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodUnion<[z.ZodNumber, z.ZodLazy>]>; - }, "strip", z.ZodTypeAny, { - type: "number"; - value: number | "NaN" | "-0" | "Infinity" | "-Infinity"; - }, { - type: "number"; - value: number | "NaN" | "-0" | "Infinity" | "-Infinity"; - }>>, z.ZodLazy; - value: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - type: "boolean"; - value: boolean; - }, { - type: "boolean"; - value: boolean; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "bigint"; - value: string; - }, { - type: "bigint"; - value: string; - }>>]>>; -} -export declare namespace Script { - const UndefinedValueSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "undefined"; - }, { - type: "undefined"; - }>>; -} -export declare namespace Script { - const NullValueSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "null"; - }, { - type: "null"; - }>>; -} -export declare namespace Script { - const StringValueSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>; -} -export declare namespace Script { - const SpecialNumberSchema: z.ZodLazy>; -} -export declare namespace Script { - const NumberValueSchema: z.ZodLazy; - value: z.ZodUnion<[z.ZodNumber, z.ZodLazy>]>; - }, "strip", z.ZodTypeAny, { - type: "number"; - value: number | "NaN" | "-0" | "Infinity" | "-Infinity"; - }, { - type: "number"; - value: number | "NaN" | "-0" | "Infinity" | "-Infinity"; - }>>; -} -export declare namespace Script { - const BooleanValueSchema: z.ZodLazy; - value: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - type: "boolean"; - value: boolean; - }, { - type: "boolean"; - value: boolean; - }>>; -} -export declare namespace Script { - const BigIntValueSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "bigint"; - value: string; - }, { - type: "bigint"; - value: string; - }>>; -} -export declare namespace Script { - const RealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>; -} -export declare namespace Script { - const BaseRealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>; -} -export declare namespace Script { - const WindowRealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>; -} -export declare namespace Script { - const DedicatedWorkerRealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>; -} -export declare namespace Script { - const SharedWorkerRealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>; -} -export declare namespace Script { - const ServiceWorkerRealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>; -} -export declare namespace Script { - const WorkerRealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>; -} -export declare namespace Script { - const PaintWorkletRealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>; -} -export declare namespace Script { - const AudioWorkletRealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>; -} -export declare namespace Script { - const WorkletRealmInfoSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>; -} -export declare namespace Script { - const RealmTypeSchema: z.ZodLazy>; -} -export declare namespace Script { - const RemoteReferenceSchema: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>, z.ZodLazy; - sharedId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - handle: string; - sharedId?: string | undefined; - }, { - handle: string; - sharedId?: string | undefined; - }>, z.ZodLazy>>>]>>; -} -export declare namespace Script { - const SharedReferenceSchema: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; -} -export declare namespace Script { - const RemoteObjectReferenceSchema: z.ZodLazy; - sharedId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - handle: string; - sharedId?: string | undefined; - }, { - handle: string; - sharedId?: string | undefined; - }>, z.ZodLazy>>>; -} -export declare namespace Script { - const RemoteValueSchema: any; -} -export declare namespace Script { - const ListRemoteValueSchema: any; -} -export declare namespace Script { - const MappingRemoteValueSchema: z.ZodLazy, any], null>, "many">>; -} -export declare namespace Script { - const SymbolRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "symbol"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "symbol"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const ArrayRemoteValueSchema: any; -} -export declare namespace Script { - const ObjectRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - value: z.ZodOptional, any], null>, "many">>>; - }, "strip", z.ZodTypeAny, { - type: "object"; - value?: [any, any][] | undefined; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "object"; - value?: [any, any][] | undefined; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const FunctionRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "function"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "function"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const RegExpRemoteValueSchema: z.ZodLazy; - value: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - pattern: string; - flags?: string | undefined; - }, { - pattern: string; - flags?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - type: "regexp"; - value: { - pattern: string; - flags?: string | undefined; - }; - }, { - type: "regexp"; - value: { - pattern: string; - flags?: string | undefined; - }; - }>>, z.ZodObject<{ - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - handle?: string | undefined; - internalId?: string | undefined; - }, { - handle?: string | undefined; - internalId?: string | undefined; - }>>>; -} -export declare namespace Script { - const DateRemoteValueSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "date"; - value: string; - }, { - type: "date"; - value: string; - }>>, z.ZodObject<{ - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - handle?: string | undefined; - internalId?: string | undefined; - }, { - handle?: string | undefined; - internalId?: string | undefined; - }>>>; -} -export declare namespace Script { - const MapRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - value: z.ZodOptional, any], null>, "many">>>; - }, "strip", z.ZodTypeAny, { - type: "map"; - value?: [any, any][] | undefined; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "map"; - value?: [any, any][] | undefined; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const SetRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - value: any; - }, "strip", z.ZodTypeAny, { - type: "set"; - value?: any; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "set"; - value?: any; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const WeakMapRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "weakmap"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "weakmap"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const WeakSetRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "weakset"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "weakset"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const GeneratorRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "generator"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "generator"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const ErrorRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "error"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "error"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const ProxyRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "proxy"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "proxy"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const PromiseRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "promise"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "promise"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const TypedArrayRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "typedarray"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "typedarray"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const ArrayBufferRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "arraybuffer"; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "arraybuffer"; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const NodeListRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - value: any; - }, "strip", z.ZodTypeAny, { - type: "nodelist"; - value?: any; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "nodelist"; - value?: any; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const HtmlCollectionRemoteValueSchema: z.ZodLazy; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - value: any; - }, "strip", z.ZodTypeAny, { - type: "htmlcollection"; - value?: any; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "htmlcollection"; - value?: any; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const NodeRemoteValueSchema: any; -} -export declare namespace Script { - const NodePropertiesSchema: any; -} -export declare namespace Script { - const WindowProxyRemoteValueSchema: z.ZodLazy; - value: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; - handle: z.ZodOptional>; - internalId: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - type: "window"; - value: { - context: string; - }; - handle?: string | undefined; - internalId?: string | undefined; - }, { - type: "window"; - value: { - context: string; - }; - handle?: string | undefined; - internalId?: string | undefined; - }>>; -} -export declare namespace Script { - const WindowProxyPropertiesSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -} -export declare namespace Script { - const ResultOwnershipSchema: z.ZodLazy>; -} -export declare namespace Script { - const SerializationOptionsSchema: z.ZodLazy>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>; -} -export declare namespace Script { - const SharedIdSchema: z.ZodLazy; -} -export declare namespace Script { - const StackFrameSchema: z.ZodLazy>; -} -export declare namespace Script { - const StackTraceSchema: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; -} -export declare namespace Script { - const SourceSchema: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; -} -export declare namespace Script { - const RealmTargetSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>; -} -export declare namespace Script { - const ContextTargetSchema: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>; -} -export declare namespace Script { - const TargetSchema: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; -} -export declare namespace Script { - const AddPreloadScriptSchema: z.ZodLazy; - params: z.ZodLazy; - value: z.ZodLazy; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - ownership: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }>>, "many">>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }; - method: "script.addPreloadScript"; - }, { - params: { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }; - method: "script.addPreloadScript"; - }>>; -} -export declare namespace Script { - const AddPreloadScriptParametersSchema: z.ZodLazy; - value: z.ZodLazy; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - ownership: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }, { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }, { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }>>, "many">>; - contexts: z.ZodOptional, "many">>; - userContexts: z.ZodOptional, "many">>; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }, { - functionDeclaration: string; - userContexts?: string[] | undefined; - contexts?: string[] | undefined; - arguments?: { - type: "channel"; - value: { - channel: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - ownership?: "none" | "root" | undefined; - }; - }[] | undefined; - sandbox?: string | undefined; - }>>; -} -export declare namespace Script { - const AddPreloadScriptResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - script: string; - }, { - script: string; - }>>; -} -export declare namespace Script { - const DisownSchema: z.ZodLazy; - params: z.ZodLazy, "many">; - target: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }; - method: "script.disown"; - }, { - params: { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }; - method: "script.disown"; - }>>; -} -export declare namespace Script { - const DisownParametersSchema: z.ZodLazy, "many">; - target: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - }, "strip", z.ZodTypeAny, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }, { - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - handles: string[]; - }>>; -} -export declare namespace Script { - const DisownResultSchema: z.ZodLazy>>>; -} -export declare namespace Script { - const CallFunctionSchema: z.ZodLazy; - params: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - arguments: z.ZodOptional, "many">>; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - this: any; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }; - method: "script.callFunction"; - }, { - params: { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }; - method: "script.callFunction"; - }>>; -} -export declare namespace Script { - const CallFunctionParametersSchema: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - arguments: z.ZodOptional, "many">>; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - this: any; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }, { - functionDeclaration: string; - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - arguments?: any[] | undefined; - resultOwnership?: "none" | "root" | undefined; - this?: any; - userActivation?: boolean | undefined; - }>>; -} -export declare namespace Script { - const CallFunctionResultSchema: z.ZodLazy; - result: z.ZodLazy; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "success"; - realm: string; - result?: any; - }, { - type: "success"; - realm: string; - result?: any; - }>>, z.ZodLazy; - exceptionDetails: z.ZodLazy>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>; - text: z.ZodString; - }, "strip", z.ZodTypeAny, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }, { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }>>; - realm: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }, { - type: "exception"; - realm: string; - exceptionDetails: { - columnNumber: number; - lineNumber: number; - text: string; - stackTrace: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }; - exception?: any; - }; - }>>]>>>; -} -export declare namespace Script { - const EvaluateSchema: z.ZodLazy; - params: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - awaitPromise: z.ZodBoolean; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }; - method: "script.evaluate"; - }, { - params: { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }; - method: "script.evaluate"; - }>>; -} -export declare namespace Script { - const EvaluateParametersSchema: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - context: string; - sandbox?: string | undefined; - }, { - context: string; - sandbox?: string | undefined; - }>>, z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>]>>; - awaitPromise: z.ZodBoolean; - resultOwnership: z.ZodOptional>>; - serializationOptions: z.ZodOptional>>; - maxObjectDepth: z.ZodOptional>>; - includeShadowTree: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }, { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - }>>>; - userActivation: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }, { - awaitPromise: boolean; - target: { - context: string; - sandbox?: string | undefined; - } | { - realm: string; - }; - expression: string; - serializationOptions?: { - maxDomDepth?: number | null | undefined; - maxObjectDepth?: number | null | undefined; - includeShadowTree?: "none" | "all" | "open" | undefined; - } | undefined; - resultOwnership?: "none" | "root" | undefined; - userActivation?: boolean | undefined; - }>>; -} -export declare namespace Script { - const GetRealmsSchema: z.ZodLazy; - params: z.ZodLazy>; - type: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }; - method: "script.getRealms"; - }, { - params: { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }; - method: "script.getRealms"; - }>>; -} -export declare namespace Script { - const GetRealmsParametersSchema: z.ZodLazy>; - type: z.ZodOptional>>; - }, "strip", z.ZodTypeAny, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }, { - type?: "worker" | "window" | "dedicated-worker" | "shared-worker" | "service-worker" | "paint-worklet" | "audio-worklet" | "worklet" | undefined; - context?: string | undefined; - }>>; -} -export declare namespace Script { - const GetRealmsResultSchema: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - }, { - realms: (({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }))[]; - }>>; -} -export declare namespace Script { - const RemovePreloadScriptSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - script: string; - }, { - script: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - script: string; - }; - method: "script.removePreloadScript"; - }, { - params: { - script: string; - }; - method: "script.removePreloadScript"; - }>>; -} -export declare namespace Script { - const RemovePreloadScriptParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - script: string; - }, { - script: string; - }>>; -} -export declare namespace Script { - const RemovePreloadScriptResultSchema: z.ZodLazy>>>; -} -export declare namespace Script { - const MessageSchema: z.ZodLazy; - params: z.ZodLazy; - data: any; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; - }, { - params: { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }; - method: "script.message"; - }>>; -} -export declare namespace Script { - const MessageParametersSchema: z.ZodLazy; - data: any; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }, { - channel: string; - source: { - realm: string; - context?: string | undefined; - }; - data?: any; - }>>; -} -export declare namespace Script { - const RealmCreatedSchema: z.ZodLazy; - params: z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"window">; - context: z.ZodLazy; - sandbox: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "window"; - context: string; - sandbox?: string | undefined; - }, { - type: "window"; - context: string; - sandbox?: string | undefined; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"dedicated-worker">; - owners: z.ZodTuple<[z.ZodLazy], null>; - }, "strip", z.ZodTypeAny, { - type: "dedicated-worker"; - owners: [string]; - }, { - type: "dedicated-worker"; - owners: [string]; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"shared-worker">; - }, "strip", z.ZodTypeAny, { - type: "shared-worker"; - }, { - type: "shared-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"service-worker">; - }, "strip", z.ZodTypeAny, { - type: "service-worker"; - }, { - type: "service-worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worker">; - }, "strip", z.ZodTypeAny, { - type: "worker"; - }, { - type: "worker"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"paint-worklet">; - }, "strip", z.ZodTypeAny, { - type: "paint-worklet"; - }, { - type: "paint-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"audio-worklet">; - }, "strip", z.ZodTypeAny, { - type: "audio-worklet"; - }, { - type: "audio-worklet"; - }>>>, z.ZodLazy; - origin: z.ZodString; - }, "strip", z.ZodTypeAny, { - origin: string; - realm: string; - }, { - origin: string; - realm: string; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"worklet">; - }, "strip", z.ZodTypeAny, { - type: "worklet"; - }, { - type: "worklet"; - }>>>]>>; - }, "strip", z.ZodTypeAny, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; - }, { - params: ({ - origin: string; - realm: string; - } & { - type: "window"; - context: string; - sandbox?: string | undefined; - }) | ({ - origin: string; - realm: string; - } & { - type: "dedicated-worker"; - owners: [string]; - }) | ({ - origin: string; - realm: string; - } & { - type: "shared-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "service-worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worker"; - }) | ({ - origin: string; - realm: string; - } & { - type: "paint-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "audio-worklet"; - }) | ({ - origin: string; - realm: string; - } & { - type: "worklet"; - }); - method: "script.realmCreated"; - }>>; -} -export declare namespace Script { - const RealmDestroyedSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; - }, { - params: { - realm: string; - }; - method: "script.realmDestroyed"; - }>>; -} -export declare namespace Script { - const RealmDestroyedParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - realm: string; - }, { - realm: string; - }>>; -} -export declare const StorageCommandSchema: z.ZodLazy; - params: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.deleteCookies"; -}, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.deleteCookies"; -}>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.getCookies"; -}, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.getCookies"; -}>>, z.ZodLazy; - params: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.setCookie"; -}, { - params: { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.setCookie"; -}>>]>>; -export declare const StorageResultSchema: z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; -}, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - partitionKey: z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; -}, "strip", z.ZodTypeAny, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}>>, z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; -}, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; -}>>]>>; -export declare namespace Storage { - const PartitionKeySchema: z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; -} -export declare namespace Storage { - const GetCookiesSchema: z.ZodLazy; - params: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.getCookies"; - }, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.getCookies"; - }>>; -} -export declare namespace Storage { - const CookieFilterSchema: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>; -} -export declare namespace Storage { - const BrowsingContextPartitionDescriptorSchema: z.ZodLazy; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>; -} -export declare namespace Storage { - const StorageKeyPartitionDescriptorSchema: z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; -} -export declare namespace Storage { - const PartitionDescriptorSchema: z.ZodLazy; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>; -} -export declare namespace Storage { - const GetCookiesParametersSchema: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -} -export declare namespace Storage { - const GetCookiesResultSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodString; - size: z.ZodNumber; - httpOnly: z.ZodBoolean; - secure: z.ZodBoolean; - sameSite: z.ZodLazy>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }, { - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - }>, z.ZodLazy>>>, "many">; - partitionKey: z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }, { - cookies: ({ - path: string; - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - size: number; - secure: boolean; - name: string; - domain: string; - httpOnly: boolean; - sameSite: "strict" | "default" | "none" | "lax"; - expiry?: number | undefined; - } & Record)[]; - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }>>; -} -export declare namespace Storage { - const SetCookieSchema: z.ZodLazy; - params: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.setCookie"; - }, { - params: { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.setCookie"; - }>>; -} -export declare namespace Storage { - const PartialCookieSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>; -} -export declare namespace Storage { - const SetCookieParametersSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>; - domain: z.ZodString; - path: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - cookie: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain: string; - path?: string | undefined; - secure?: boolean | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -} -export declare namespace Storage { - const SetCookieResultSchema: z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }>>; -} -export declare namespace Storage { - const DeleteCookiesSchema: z.ZodLazy; - params: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.deleteCookies"; - }, { - params: { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }; - method: "storage.deleteCookies"; - }>>; -} -export declare namespace Storage { - const DeleteCookiesParametersSchema: z.ZodLazy; - value: z.ZodOptional; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "string"; - value: string; - }, { - type: "string"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>]>>>; - domain: z.ZodOptional; - path: z.ZodOptional; - size: z.ZodOptional; - httpOnly: z.ZodOptional; - secure: z.ZodOptional; - sameSite: z.ZodOptional>>; - expiry: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }, { - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - }>, z.ZodLazy>>>>; - partition: z.ZodOptional; - context: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - type: "context"; - context: string; - }, { - type: "context"; - context: string; - }>>, z.ZodLazy; - userContext: z.ZodOptional; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>]>>>; - }, "strip", z.ZodTypeAny, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }, { - filter?: ({ - path?: string | undefined; - value?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - size?: number | undefined; - secure?: boolean | undefined; - name?: string | undefined; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: number | undefined; - sameSite?: "strict" | "default" | "none" | "lax" | undefined; - } & Record) | undefined; - partition?: { - type: "context"; - context: string; - } | ({ - type: "storageKey"; - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record) | undefined; - }>>; -} -export declare namespace Storage { - const DeleteCookiesResultSchema: z.ZodLazy; - sourceOrigin: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }, { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }, { - partitionKey: { - userContext?: string | undefined; - sourceOrigin?: string | undefined; - } & Record; - }>>; -} -export declare const LogEventSchema: z.ZodLazy; - params: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: string; - }, { - type: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"console">; - method: z.ZodString; - args: z.ZodArray; - }, "strip", z.ZodTypeAny, { - type: "console"; - args: any[]; - method: string; - }, { - type: "console"; - args: any[]; - method: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"javascript">; - }, "strip", z.ZodTypeAny, { - type: "javascript"; - }, { - type: "javascript"; - }>>>]>>; -}, "strip", z.ZodTypeAny, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; -}, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; -}>>>; -export declare namespace Log { - const LevelSchema: z.ZodLazy>; -} -export declare namespace Log { - const EntrySchema: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: string; - }, { - type: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"console">; - method: z.ZodString; - args: z.ZodArray; - }, "strip", z.ZodTypeAny, { - type: "console"; - args: any[]; - method: string; - }, { - type: "console"; - args: any[]; - method: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"javascript">; - }, "strip", z.ZodTypeAny, { - type: "javascript"; - }, { - type: "javascript"; - }>>>]>>; -} -export declare namespace Log { - const BaseLogEntrySchema: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>; -} -export declare namespace Log { - const GenericLogEntrySchema: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: string; - }, { - type: string; - }>>>; -} -export declare namespace Log { - const ConsoleLogEntrySchema: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"console">; - method: z.ZodString; - args: z.ZodArray; - }, "strip", z.ZodTypeAny, { - type: "console"; - args: any[]; - method: string; - }, { - type: "console"; - args: any[]; - method: string; - }>>>; -} -export declare namespace Log { - const JavascriptLogEntrySchema: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"javascript">; - }, "strip", z.ZodTypeAny, { - type: "javascript"; - }, { - type: "javascript"; - }>>>; -} -export declare namespace Log { - const EntryAddedSchema: z.ZodLazy; - params: z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: string; - }, { - type: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"console">; - method: z.ZodString; - args: z.ZodArray; - }, "strip", z.ZodTypeAny, { - type: "console"; - args: any[]; - method: string; - }, { - type: "console"; - args: any[]; - method: string; - }>>>, z.ZodLazy>; - source: z.ZodLazy; - context: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - realm: string; - context?: string | undefined; - }, { - realm: string; - context?: string | undefined; - }>>; - text: z.ZodUnion<[z.ZodString, z.ZodNull]>; - timestamp: z.ZodNumber; - stackTrace: z.ZodOptional>, "many">; - }, "strip", z.ZodTypeAny, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }, { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - }>>>; - }, "strip", z.ZodTypeAny, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }, { - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - }>>, z.ZodObject<{ - type: z.ZodLiteral<"javascript">; - }, "strip", z.ZodTypeAny, { - type: "javascript"; - }, { - type: "javascript"; - }>>>]>>; - }, "strip", z.ZodTypeAny, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; - }, { - params: ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "console"; - args: any[]; - method: string; - }) | ({ - level: "error" | "debug" | "info" | "warn"; - source: { - realm: string; - context?: string | undefined; - }; - timestamp: number; - text: string | null; - stackTrace?: { - callFrames: { - url: string; - columnNumber: number; - lineNumber: number; - functionName: string; - }[]; - } | undefined; - } & { - type: "javascript"; - }); - method: "log.entryAdded"; - }>>; -} -export declare const InputCommandSchema: z.ZodLazy; - params: z.ZodLazy; - actions: z.ZodArray; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyDown"; - value: string; - }, { - type: "keyDown"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyUp"; - value: string; - }, { - type: "keyUp"; - value: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - parameters: z.ZodOptional>>>; - }, "strip", z.ZodTypeAny, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }>>>; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerDown"; - button: number; - }, { - type: "pointerDown"; - button: number; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerUp"; - button: number; - }, { - type: "pointerUp"; - button: number; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - deltaX: z.ZodNumber; - deltaY: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>>; - }, "strip", z.ZodTypeAny, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }; - method: "input.performActions"; -}, { - params: { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }; - method: "input.performActions"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "input.releaseActions"; -}, { - params: { - context: string; - }; - method: "input.releaseActions"; -}>>, z.ZodLazy; - params: z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - files: z.ZodArray; - }, "strip", z.ZodTypeAny, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }; - method: "input.setFiles"; -}, { - params: { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }; - method: "input.setFiles"; -}>>]>>; -export declare const InputResultSchema: z.ZodLazy>>>, z.ZodLazy>>>, z.ZodLazy>>>]>>; -export declare const InputEventSchema: z.ZodLazy; - params: z.ZodLazy; - element: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>>; - multiple: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; -}, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; -}>>>; -export declare namespace Input { - const ElementOriginSchema: z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>; -} -export declare namespace Input { - const PerformActionsSchema: z.ZodLazy; - params: z.ZodLazy; - actions: z.ZodArray; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyDown"; - value: string; - }, { - type: "keyDown"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyUp"; - value: string; - }, { - type: "keyUp"; - value: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - parameters: z.ZodOptional>>>; - }, "strip", z.ZodTypeAny, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }>>>; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerDown"; - button: number; - }, { - type: "pointerDown"; - button: number; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerUp"; - button: number; - }, { - type: "pointerUp"; - button: number; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - deltaX: z.ZodNumber; - deltaY: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>>; - }, "strip", z.ZodTypeAny, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }; - method: "input.performActions"; - }, { - params: { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }; - method: "input.performActions"; - }>>; -} -export declare namespace Input { - const PerformActionsParametersSchema: z.ZodLazy; - actions: z.ZodArray; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyDown"; - value: string; - }, { - type: "keyDown"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyUp"; - value: string; - }, { - type: "keyUp"; - value: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - parameters: z.ZodOptional>>>; - }, "strip", z.ZodTypeAny, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }>>>; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerDown"; - button: number; - }, { - type: "pointerDown"; - button: number; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerUp"; - button: number; - }, { - type: "pointerUp"; - button: number; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - deltaX: z.ZodNumber; - deltaY: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>>; - }, "strip", z.ZodTypeAny, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }, { - actions: ({ - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - } | { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - } | { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - } | { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - })[]; - context: string; - }>>; -} -export declare namespace Input { - const SourceActionsSchema: z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyDown"; - value: string; - }, { - type: "keyDown"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyUp"; - value: string; - }, { - type: "keyUp"; - value: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }>>, z.ZodLazy; - id: z.ZodString; - parameters: z.ZodOptional>>>; - }, "strip", z.ZodTypeAny, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }>>>; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerDown"; - button: number; - }, { - type: "pointerDown"; - button: number; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerUp"; - button: number; - }, { - type: "pointerUp"; - button: number; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }>>, z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - deltaX: z.ZodNumber; - deltaY: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>>; - }, "strip", z.ZodTypeAny, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }>>]>>; -} -export declare namespace Input { - const NoneSourceActionsSchema: z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }, { - type: "none"; - actions: { - type: "pause"; - duration?: number | undefined; - }[]; - id: string; - }>>; -} -export declare namespace Input { - const NoneSourceActionSchema: z.ZodLazy; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>>; -} -export declare namespace Input { - const KeySourceActionsSchema: z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyDown"; - value: string; - }, { - type: "keyDown"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyUp"; - value: string; - }, { - type: "keyUp"; - value: string; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }, { - type: "key"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "keyDown"; - value: string; - } | { - type: "keyUp"; - value: string; - })[]; - id: string; - }>>; -} -export declare namespace Input { - const KeySourceActionSchema: z.ZodLazy; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyDown"; - value: string; - }, { - type: "keyDown"; - value: string; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyUp"; - value: string; - }, { - type: "keyUp"; - value: string; - }>>]>>; -} -export declare namespace Input { - const PointerSourceActionsSchema: z.ZodLazy; - id: z.ZodString; - parameters: z.ZodOptional>>>; - }, "strip", z.ZodTypeAny, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }>>>; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerDown"; - button: number; - }, { - type: "pointerDown"; - button: number; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerUp"; - button: number; - }, { - type: "pointerUp"; - button: number; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }, { - type: "pointer"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | ({ - type: "pointerDown"; - button: number; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }) | { - type: "pointerUp"; - button: number; - } | ({ - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - } & { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }))[]; - id: string; - parameters?: { - pointerType?: "touch" | "mouse" | "pen" | undefined; - } | undefined; - }>>; -} -export declare namespace Input { - const PointerTypeSchema: z.ZodLazy>; -} -export declare namespace Input { - const PointerParametersSchema: z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }, { - pointerType?: "touch" | "mouse" | "pen" | undefined; - }>>; -} -export declare namespace Input { - const PointerSourceActionSchema: z.ZodLazy; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerDown"; - button: number; - }, { - type: "pointerDown"; - button: number; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>, z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerUp"; - button: number; - }, { - type: "pointerUp"; - button: number; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>]>>; -} -export declare namespace Input { - const WheelSourceActionsSchema: z.ZodLazy; - id: z.ZodString; - actions: z.ZodArray; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - deltaX: z.ZodNumber; - deltaY: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>>; - }, "strip", z.ZodTypeAny, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>]>>, "many">; - }, "strip", z.ZodTypeAny, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }, { - type: "wheel"; - actions: ({ - type: "pause"; - duration?: number | undefined; - } | { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - })[]; - id: string; - }>>; -} -export declare namespace Input { - const WheelSourceActionSchema: z.ZodLazy; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>, z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - deltaX: z.ZodNumber; - deltaY: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>>; - }, "strip", z.ZodTypeAny, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>]>>; -} -export declare namespace Input { - const PauseActionSchema: z.ZodLazy; - duration: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - type: "pause"; - duration?: number | undefined; - }, { - type: "pause"; - duration?: number | undefined; - }>>; -} -export declare namespace Input { - const KeyDownActionSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyDown"; - value: string; - }, { - type: "keyDown"; - value: string; - }>>; -} -export declare namespace Input { - const KeyUpActionSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "keyUp"; - value: string; - }, { - type: "keyUp"; - value: string; - }>>; -} -export declare namespace Input { - const PointerUpActionSchema: z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerUp"; - button: number; - }, { - type: "pointerUp"; - button: number; - }>>; -} -export declare namespace Input { - const PointerDownActionSchema: z.ZodLazy; - button: z.ZodNumber; - }, "strip", z.ZodTypeAny, { - type: "pointerDown"; - button: number; - }, { - type: "pointerDown"; - button: number; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>; -} -export declare namespace Input { - const PointerMoveActionSchema: z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>; - }, "strip", z.ZodTypeAny, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "pointerMove"; - x: number; - y: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>, z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>>>; -} -export declare namespace Input { - const WheelScrollActionSchema: z.ZodLazy; - x: z.ZodNumber; - y: z.ZodNumber; - deltaX: z.ZodNumber; - deltaY: z.ZodNumber; - duration: z.ZodOptional; - origin: z.ZodOptional, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>>>; - }, "strip", z.ZodTypeAny, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }, { - type: "scroll"; - x: number; - y: number; - deltaX: number; - deltaY: number; - duration?: number | undefined; - origin?: "viewport" | "pointer" | { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - } | undefined; - }>>; -} -export declare namespace Input { - const PointerCommonPropertiesSchema: z.ZodLazy>; - height: z.ZodOptional>; - pressure: z.ZodOptional>; - tangentialPressure: z.ZodOptional>; - twist: z.ZodOptional>; - altitudeAngle: z.ZodOptional>; - azimuthAngle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }, { - width?: number | undefined; - height?: number | undefined; - pressure?: number | undefined; - tangentialPressure?: number | undefined; - twist?: number | undefined; - altitudeAngle?: number | undefined; - azimuthAngle?: number | undefined; - }>>; -} -export declare namespace Input { - const OriginSchema: z.ZodLazy, z.ZodLiteral<"pointer">, z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - }, "strip", z.ZodTypeAny, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }, { - type: "element"; - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - }>>]>>; -} -export declare namespace Input { - const PerformActionsResultSchema: z.ZodLazy>>>; -} -export declare namespace Input { - const ReleaseActionsSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - }; - method: "input.releaseActions"; - }, { - params: { - context: string; - }; - method: "input.releaseActions"; - }>>; -} -export declare namespace Input { - const ReleaseActionsParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - context: string; - }, { - context: string; - }>>; -} -export declare namespace Input { - const ReleaseActionsResultSchema: z.ZodLazy>>>; -} -export declare namespace Input { - const SetFilesSchema: z.ZodLazy; - params: z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - files: z.ZodArray; - }, "strip", z.ZodTypeAny, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }; - method: "input.setFiles"; - }, { - params: { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }; - method: "input.setFiles"; - }>>; -} -export declare namespace Input { - const SetFilesParametersSchema: z.ZodLazy; - element: z.ZodLazy; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>; - files: z.ZodArray; - }, "strip", z.ZodTypeAny, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }, { - element: { - sharedId: string; - handle?: string | undefined; - } & Record; - context: string; - files: string[]; - }>>; -} -export declare namespace Input { - const SetFilesResultSchema: z.ZodLazy>>>; -} -export declare namespace Input { - const FileDialogOpenedSchema: z.ZodLazy; - params: z.ZodLazy; - element: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>>; - multiple: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; - }, { - params: { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }; - method: "input.fileDialogOpened"; - }>>; -} -export declare namespace Input { - const FileDialogInfoSchema: z.ZodLazy; - element: z.ZodOptional; - handle: z.ZodOptional>; - }, "strip", z.ZodTypeAny, { - sharedId: string; - handle?: string | undefined; - }, { - sharedId: string; - handle?: string | undefined; - }>, z.ZodLazy>>>>; - multiple: z.ZodBoolean; - }, "strip", z.ZodTypeAny, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }, { - context: string; - multiple: boolean; - element?: ({ - sharedId: string; - handle?: string | undefined; - } & Record) | undefined; - }>>; -} -export declare const WebExtensionCommandSchema: z.ZodLazy; - params: z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "archivePath"; - }, { - path: string; - type: "archivePath"; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>, z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "path"; - }, { - path: string; - type: "path"; - }>>]>>; - }, "strip", z.ZodTypeAny, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }; - method: "webExtension.install"; -}, { - params: { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }; - method: "webExtension.install"; -}>>, z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - extension: string; - }, { - extension: string; - }>>; -}, "strip", z.ZodTypeAny, { - params: { - extension: string; - }; - method: "webExtension.uninstall"; -}, { - params: { - extension: string; - }; - method: "webExtension.uninstall"; -}>>]>>; -export declare const WebExtensionResultSchema: z.ZodLazy; -}, "strip", z.ZodTypeAny, { - extension: string; -}, { - extension: string; -}>>, z.ZodLazy>>>]>>; -export declare namespace WebExtension { - const ExtensionSchema: z.ZodLazy; -} -export declare namespace WebExtension { - const InstallSchema: z.ZodLazy; - params: z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "archivePath"; - }, { - path: string; - type: "archivePath"; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>, z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "path"; - }, { - path: string; - type: "path"; - }>>]>>; - }, "strip", z.ZodTypeAny, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }; - method: "webExtension.install"; - }, { - params: { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }; - method: "webExtension.install"; - }>>; -} -export declare namespace WebExtension { - const InstallParametersSchema: z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "archivePath"; - }, { - path: string; - type: "archivePath"; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>, z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "path"; - }, { - path: string; - type: "path"; - }>>]>>; - }, "strip", z.ZodTypeAny, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }, { - extensionData: { - path: string; - type: "archivePath"; - } | { - type: "base64"; - value: string; - } | { - path: string; - type: "path"; - }; - }>>; -} -export declare namespace WebExtension { - const ExtensionDataSchema: z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "archivePath"; - }, { - path: string; - type: "archivePath"; - }>>, z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>, z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "path"; - }, { - path: string; - type: "path"; - }>>]>>; -} -export declare namespace WebExtension { - const ExtensionPathSchema: z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "path"; - }, { - path: string; - type: "path"; - }>>; -} -export declare namespace WebExtension { - const ExtensionArchivePathSchema: z.ZodLazy; - path: z.ZodString; - }, "strip", z.ZodTypeAny, { - path: string; - type: "archivePath"; - }, { - path: string; - type: "archivePath"; - }>>; -} -export declare namespace WebExtension { - const ExtensionBase64EncodedSchema: z.ZodLazy; - value: z.ZodString; - }, "strip", z.ZodTypeAny, { - type: "base64"; - value: string; - }, { - type: "base64"; - value: string; - }>>; -} -export declare namespace WebExtension { - const InstallResultSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - extension: string; - }, { - extension: string; - }>>; -} -export declare namespace WebExtension { - const UninstallSchema: z.ZodLazy; - params: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - extension: string; - }, { - extension: string; - }>>; - }, "strip", z.ZodTypeAny, { - params: { - extension: string; - }; - method: "webExtension.uninstall"; - }, { - params: { - extension: string; - }; - method: "webExtension.uninstall"; - }>>; -} -export declare namespace WebExtension { - const UninstallParametersSchema: z.ZodLazy; - }, "strip", z.ZodTypeAny, { - extension: string; - }, { - extension: string; - }>>; -} -export declare namespace WebExtension { - const UninstallResultSchema: z.ZodLazy>>>; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js deleted file mode 100644 index 49189e2..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js +++ /dev/null @@ -1,2961 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebExtension = exports.WebExtensionResultSchema = exports.WebExtensionCommandSchema = exports.Input = exports.InputEventSchema = exports.InputResultSchema = exports.InputCommandSchema = exports.Log = exports.LogEventSchema = exports.Storage = exports.StorageResultSchema = exports.StorageCommandSchema = exports.Script = exports.ScriptEventSchema = exports.ScriptResultSchema = exports.ScriptCommandSchema = exports.Network = exports.NetworkEventSchema = exports.NetworkResultSchema = exports.NetworkCommandSchema = exports.Emulation = exports.EmulationResultSchema = exports.EmulationCommandSchema = exports.BrowsingContext = exports.BrowsingContextEventSchema = exports.BrowsingContextResultSchema = exports.BrowsingContextCommandSchema = exports.Browser = exports.BrowserResultSchema = exports.BrowserCommandSchema = exports.Session = exports.SessionResultSchema = exports.SessionCommandSchema = exports.ErrorCodeSchema = exports.JsUintSchema = exports.JsIntSchema = exports.ExtensibleSchema = exports.EventDataSchema = exports.EventSchema = exports.EmptyResultSchema = exports.ResultDataSchema = exports.ErrorResponseSchema = exports.CommandResponseSchema = exports.MessageSchema = exports.EmptyParamsSchema = exports.CommandDataSchema = exports.CommandSchema = void 0; -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-nocheck Some types may be circular. -const zod_1 = __importDefault(require("zod")); -exports.CommandSchema = zod_1.default.lazy(() => zod_1.default - .object({ - id: exports.JsUintSchema, -}) - .and(exports.CommandDataSchema) - .and(exports.ExtensibleSchema)); -exports.CommandDataSchema = zod_1.default.lazy(() => zod_1.default.union([ - exports.BrowserCommandSchema, - exports.BrowsingContextCommandSchema, - exports.EmulationCommandSchema, - exports.InputCommandSchema, - exports.NetworkCommandSchema, - exports.ScriptCommandSchema, - exports.SessionCommandSchema, - exports.StorageCommandSchema, - exports.WebExtensionCommandSchema, -])); -exports.EmptyParamsSchema = zod_1.default.lazy(() => exports.ExtensibleSchema); -exports.MessageSchema = zod_1.default.lazy(() => zod_1.default.union([exports.CommandResponseSchema, exports.ErrorResponseSchema, exports.EventSchema])); -exports.CommandResponseSchema = zod_1.default.lazy(() => zod_1.default - .object({ - type: zod_1.default.literal('success'), - id: exports.JsUintSchema, - result: exports.ResultDataSchema, -}) - .and(exports.ExtensibleSchema)); -exports.ErrorResponseSchema = zod_1.default.lazy(() => zod_1.default - .object({ - type: zod_1.default.literal('error'), - id: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]), - error: exports.ErrorCodeSchema, - message: zod_1.default.string(), - stacktrace: zod_1.default.string().optional(), -}) - .and(exports.ExtensibleSchema)); -exports.ResultDataSchema = zod_1.default.lazy(() => zod_1.default.union([ - exports.BrowserResultSchema, - exports.BrowsingContextResultSchema, - exports.EmulationResultSchema, - exports.InputResultSchema, - exports.NetworkResultSchema, - exports.ScriptResultSchema, - exports.SessionResultSchema, - exports.StorageResultSchema, - exports.WebExtensionResultSchema, -])); -exports.EmptyResultSchema = zod_1.default.lazy(() => exports.ExtensibleSchema); -exports.EventSchema = zod_1.default.lazy(() => zod_1.default - .object({ - type: zod_1.default.literal('event'), -}) - .and(exports.EventDataSchema) - .and(exports.ExtensibleSchema)); -exports.EventDataSchema = zod_1.default.lazy(() => zod_1.default.union([ - exports.BrowsingContextEventSchema, - exports.InputEventSchema, - exports.LogEventSchema, - exports.NetworkEventSchema, - exports.ScriptEventSchema, -])); -exports.ExtensibleSchema = zod_1.default.lazy(() => zod_1.default.record(zod_1.default.string(), zod_1.default.any())); -exports.JsIntSchema = zod_1.default - .number() - .int() - .gte(-9007199254740991) - .lte(9007199254740991); -exports.JsUintSchema = zod_1.default - .number() - .int() - .nonnegative() - .gte(0) - .lte(9007199254740991); -exports.ErrorCodeSchema = zod_1.default.lazy(() => zod_1.default.enum([ - 'invalid argument', - 'invalid selector', - 'invalid session id', - 'invalid web extension', - 'move target out of bounds', - 'no such alert', - 'no such network collector', - 'no such element', - 'no such frame', - 'no such handle', - 'no such history entry', - 'no such intercept', - 'no such network data', - 'no such node', - 'no such request', - 'no such script', - 'no such storage partition', - 'no such user context', - 'no such web extension', - 'session not created', - 'unable to capture screen', - 'unable to close browser', - 'unable to set cookie', - 'unable to set file input', - 'unavailable network data', - 'underspecified storage partition', - 'unknown command', - 'unknown error', - 'unsupported operation', -])); -exports.SessionCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ - Session.EndSchema, - Session.NewSchema, - Session.StatusSchema, - Session.SubscribeSchema, - Session.UnsubscribeSchema, -])); -exports.SessionResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - Session.EndResultSchema, - Session.NewResultSchema, - Session.StatusResultSchema, - Session.SubscribeResultSchema, - Session.UnsubscribeResultSchema, -])); -var Session; -(function (Session) { - Session.CapabilitiesRequestSchema = zod_1.default.lazy(() => zod_1.default.object({ - alwaysMatch: Session.CapabilityRequestSchema.optional(), - firstMatch: zod_1.default.array(Session.CapabilityRequestSchema).optional(), - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.CapabilityRequestSchema = zod_1.default.lazy(() => zod_1.default - .object({ - acceptInsecureCerts: zod_1.default.boolean().optional(), - browserName: zod_1.default.string().optional(), - browserVersion: zod_1.default.string().optional(), - platformName: zod_1.default.string().optional(), - proxy: Session.ProxyConfigurationSchema.optional(), - unhandledPromptBehavior: Session.UserPromptHandlerSchema.optional(), - }) - .and(exports.ExtensibleSchema)); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.ProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default.union([ - Session.AutodetectProxyConfigurationSchema, - Session.DirectProxyConfigurationSchema, - Session.ManualProxyConfigurationSchema, - Session.PacProxyConfigurationSchema, - Session.SystemProxyConfigurationSchema, - ])); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.AutodetectProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default - .object({ - proxyType: zod_1.default.literal('autodetect'), - }) - .and(exports.ExtensibleSchema)); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.DirectProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default - .object({ - proxyType: zod_1.default.literal('direct'), - }) - .and(exports.ExtensibleSchema)); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.ManualProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default - .object({ - proxyType: zod_1.default.literal('manual'), - httpProxy: zod_1.default.string().optional(), - sslProxy: zod_1.default.string().optional(), - }) - .and(Session.SocksProxyConfigurationSchema.or(zod_1.default.object({}))) - .and(zod_1.default.object({ - noProxy: zod_1.default.array(zod_1.default.string()).optional(), - })) - .and(exports.ExtensibleSchema)); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.SocksProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default.object({ - socksProxy: zod_1.default.string(), - socksVersion: zod_1.default.number().int().nonnegative().gte(0).lte(255), - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.PacProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default - .object({ - proxyType: zod_1.default.literal('pac'), - proxyAutoconfigUrl: zod_1.default.string(), - }) - .and(exports.ExtensibleSchema)); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.SystemProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default - .object({ - proxyType: zod_1.default.literal('system'), - }) - .and(exports.ExtensibleSchema)); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.UserPromptHandlerSchema = zod_1.default.lazy(() => zod_1.default.object({ - alert: Session.UserPromptHandlerTypeSchema.optional(), - beforeUnload: Session.UserPromptHandlerTypeSchema.optional(), - confirm: Session.UserPromptHandlerTypeSchema.optional(), - default: Session.UserPromptHandlerTypeSchema.optional(), - file: Session.UserPromptHandlerTypeSchema.optional(), - prompt: Session.UserPromptHandlerTypeSchema.optional(), - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.UserPromptHandlerTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['accept', 'dismiss', 'ignore'])); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.SubscriptionSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.SubscribeParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - events: zod_1.default.array(zod_1.default.string()).min(1), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.UnsubscribeByIdRequestSchema = zod_1.default.lazy(() => zod_1.default.object({ - subscriptions: zod_1.default.array(Session.SubscriptionSchema).min(1), - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.UnsubscribeByAttributesRequestSchema = zod_1.default.lazy(() => zod_1.default.object({ - events: zod_1.default.array(zod_1.default.string()).min(1), - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.StatusSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('session.status'), - params: exports.EmptyParamsSchema, - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.StatusResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - ready: zod_1.default.boolean(), - message: zod_1.default.string(), - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.NewSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('session.new'), - params: Session.NewParametersSchema, - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.NewParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - capabilities: Session.CapabilitiesRequestSchema, - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.NewResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - sessionId: zod_1.default.string(), - capabilities: zod_1.default - .object({ - acceptInsecureCerts: zod_1.default.boolean(), - browserName: zod_1.default.string(), - browserVersion: zod_1.default.string(), - platformName: zod_1.default.string(), - setWindowRect: zod_1.default.boolean(), - userAgent: zod_1.default.string(), - proxy: Session.ProxyConfigurationSchema.optional(), - unhandledPromptBehavior: Session.UserPromptHandlerSchema.optional(), - webSocketUrl: zod_1.default.string().optional(), - }) - .and(exports.ExtensibleSchema), - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.EndSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('session.end'), - params: exports.EmptyParamsSchema, - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.EndResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.SubscribeSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('session.subscribe'), - params: Session.SubscribeParametersSchema, - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.SubscribeResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - subscription: Session.SubscriptionSchema, - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.UnsubscribeSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('session.unsubscribe'), - params: Session.UnsubscribeParametersSchema, - })); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.UnsubscribeParametersSchema = zod_1.default.lazy(() => zod_1.default.union([ - Session.UnsubscribeByAttributesRequestSchema, - Session.UnsubscribeByIdRequestSchema, - ])); -})(Session || (exports.Session = Session = {})); -(function (Session) { - Session.UnsubscribeResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Session || (exports.Session = Session = {})); -exports.BrowserCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ - Browser.CloseSchema, - Browser.CreateUserContextSchema, - Browser.GetClientWindowsSchema, - Browser.GetUserContextsSchema, - Browser.RemoveUserContextSchema, - Browser.SetClientWindowStateSchema, - Browser.SetDownloadBehaviorSchema, -])); -exports.BrowserResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - Browser.CloseResultSchema, - Browser.CreateUserContextResultSchema, - Browser.GetClientWindowsResultSchema, - Browser.GetUserContextsResultSchema, - Browser.RemoveUserContextResultSchema, - Browser.SetClientWindowStateResultSchema, - Browser.SetDownloadBehaviorResultSchema, -])); -var Browser; -(function (Browser) { - Browser.ClientWindowSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.ClientWindowInfoSchema = zod_1.default.lazy(() => zod_1.default.object({ - active: zod_1.default.boolean(), - clientWindow: Browser.ClientWindowSchema, - height: exports.JsUintSchema, - state: zod_1.default.enum(['fullscreen', 'maximized', 'minimized', 'normal']), - width: exports.JsUintSchema, - x: exports.JsIntSchema, - y: exports.JsIntSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.UserContextSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.UserContextInfoSchema = zod_1.default.lazy(() => zod_1.default.object({ - userContext: Browser.UserContextSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.CloseSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browser.close'), - params: exports.EmptyParamsSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.CloseResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.CreateUserContextSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browser.createUserContext'), - params: Browser.CreateUserContextParametersSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.CreateUserContextParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - acceptInsecureCerts: zod_1.default.boolean().optional(), - proxy: Session.ProxyConfigurationSchema.optional(), - unhandledPromptBehavior: Session.UserPromptHandlerSchema.optional(), - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.CreateUserContextResultSchema = zod_1.default.lazy(() => Browser.UserContextInfoSchema); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.GetClientWindowsSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browser.getClientWindows'), - params: exports.EmptyParamsSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.GetClientWindowsResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - clientWindows: zod_1.default.array(Browser.ClientWindowInfoSchema), - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.GetUserContextsSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browser.getUserContexts'), - params: exports.EmptyParamsSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.GetUserContextsResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - userContexts: zod_1.default.array(Browser.UserContextInfoSchema).min(1), - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.RemoveUserContextSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browser.removeUserContext'), - params: Browser.RemoveUserContextParametersSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.RemoveUserContextParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - userContext: Browser.UserContextSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.RemoveUserContextResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.SetClientWindowStateSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browser.setClientWindowState'), - params: Browser.SetClientWindowStateParametersSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.SetClientWindowStateParametersSchema = zod_1.default.lazy(() => zod_1.default - .object({ - clientWindow: Browser.ClientWindowSchema, - }) - .and(zod_1.default.union([ - Browser.ClientWindowNamedStateSchema, - Browser.ClientWindowRectStateSchema, - ]))); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.ClientWindowNamedStateSchema = zod_1.default.lazy(() => zod_1.default.object({ - state: zod_1.default.enum(['fullscreen', 'maximized', 'minimized']), - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.ClientWindowRectStateSchema = zod_1.default.lazy(() => zod_1.default.object({ - state: zod_1.default.literal('normal'), - width: exports.JsUintSchema.optional(), - height: exports.JsUintSchema.optional(), - x: exports.JsIntSchema.optional(), - y: exports.JsIntSchema.optional(), - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.SetClientWindowStateResultSchema = zod_1.default.lazy(() => Browser.ClientWindowInfoSchema); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.SetDownloadBehaviorSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browser.setDownloadBehavior'), - params: Browser.SetDownloadBehaviorParametersSchema, - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.SetDownloadBehaviorParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - downloadBehavior: zod_1.default.union([Browser.DownloadBehaviorSchema, zod_1.default.null()]), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.DownloadBehaviorSchema = zod_1.default.lazy(() => zod_1.default.union([ - Browser.DownloadBehaviorAllowedSchema, - Browser.DownloadBehaviorDeniedSchema, - ])); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.DownloadBehaviorAllowedSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('allowed'), - destinationFolder: zod_1.default.string(), - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.DownloadBehaviorDeniedSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('denied'), - })); -})(Browser || (exports.Browser = Browser = {})); -(function (Browser) { - Browser.SetDownloadBehaviorResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Browser || (exports.Browser = Browser = {})); -exports.BrowsingContextCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ - BrowsingContext.ActivateSchema, - BrowsingContext.CaptureScreenshotSchema, - BrowsingContext.CloseSchema, - BrowsingContext.CreateSchema, - BrowsingContext.GetTreeSchema, - BrowsingContext.HandleUserPromptSchema, - BrowsingContext.LocateNodesSchema, - BrowsingContext.NavigateSchema, - BrowsingContext.PrintSchema, - BrowsingContext.ReloadSchema, - BrowsingContext.SetViewportSchema, - BrowsingContext.TraverseHistorySchema, -])); -exports.BrowsingContextResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - BrowsingContext.ActivateResultSchema, - BrowsingContext.CaptureScreenshotResultSchema, - BrowsingContext.CloseResultSchema, - BrowsingContext.CreateResultSchema, - BrowsingContext.GetTreeResultSchema, - BrowsingContext.HandleUserPromptResultSchema, - BrowsingContext.LocateNodesResultSchema, - BrowsingContext.NavigateResultSchema, - BrowsingContext.PrintResultSchema, - BrowsingContext.ReloadResultSchema, - BrowsingContext.SetViewportResultSchema, - BrowsingContext.TraverseHistoryResultSchema, -])); -exports.BrowsingContextEventSchema = zod_1.default.lazy(() => zod_1.default.union([ - BrowsingContext.ContextCreatedSchema, - BrowsingContext.ContextDestroyedSchema, - BrowsingContext.DomContentLoadedSchema, - BrowsingContext.DownloadEndSchema, - BrowsingContext.DownloadWillBeginSchema, - BrowsingContext.FragmentNavigatedSchema, - BrowsingContext.HistoryUpdatedSchema, - BrowsingContext.LoadSchema, - BrowsingContext.NavigationAbortedSchema, - BrowsingContext.NavigationCommittedSchema, - BrowsingContext.NavigationFailedSchema, - BrowsingContext.NavigationStartedSchema, - BrowsingContext.UserPromptClosedSchema, - BrowsingContext.UserPromptOpenedSchema, -])); -var BrowsingContext; -(function (BrowsingContext) { - BrowsingContext.BrowsingContextSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.InfoListSchema = zod_1.default.lazy(() => zod_1.default.array(BrowsingContext.InfoSchema)); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.InfoSchema = zod_1.default.lazy(() => zod_1.default.object({ - children: zod_1.default.union([BrowsingContext.InfoListSchema, zod_1.default.null()]), - clientWindow: Browser.ClientWindowSchema, - context: BrowsingContext.BrowsingContextSchema, - originalOpener: zod_1.default.union([ - BrowsingContext.BrowsingContextSchema, - zod_1.default.null(), - ]), - url: zod_1.default.string(), - userContext: Browser.UserContextSchema, - parent: zod_1.default - .union([BrowsingContext.BrowsingContextSchema, zod_1.default.null()]) - .optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.LocatorSchema = zod_1.default.lazy(() => zod_1.default.union([ - BrowsingContext.AccessibilityLocatorSchema, - BrowsingContext.CssLocatorSchema, - BrowsingContext.ContextLocatorSchema, - BrowsingContext.InnerTextLocatorSchema, - BrowsingContext.XPathLocatorSchema, - ])); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.AccessibilityLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('accessibility'), - value: zod_1.default.object({ - name: zod_1.default.string().optional(), - role: zod_1.default.string().optional(), - }), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CssLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('css'), - value: zod_1.default.string(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ContextLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('context'), - value: zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - }), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.InnerTextLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('innerText'), - value: zod_1.default.string(), - ignoreCase: zod_1.default.boolean().optional(), - matchType: zod_1.default.enum(['full', 'partial']).optional(), - maxDepth: exports.JsUintSchema.optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.XPathLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('xpath'), - value: zod_1.default.string(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.NavigationSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.BaseNavigationInfoSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - navigation: zod_1.default.union([BrowsingContext.NavigationSchema, zod_1.default.null()]), - timestamp: exports.JsUintSchema, - url: zod_1.default.string(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.NavigationInfoSchema = zod_1.default.lazy(() => BrowsingContext.BaseNavigationInfoSchema); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ReadinessStateSchema = zod_1.default.lazy(() => zod_1.default.enum(['none', 'interactive', 'complete'])); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.UserPromptTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['alert', 'beforeunload', 'confirm', 'prompt'])); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ActivateSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.activate'), - params: BrowsingContext.ActivateParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ActivateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ActivateResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CaptureScreenshotSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.captureScreenshot'), - params: BrowsingContext.CaptureScreenshotParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CaptureScreenshotParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - origin: zod_1.default.enum(['viewport', 'document']).default('viewport').optional(), - format: BrowsingContext.ImageFormatSchema.optional(), - clip: BrowsingContext.ClipRectangleSchema.optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ImageFormatSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.string(), - quality: zod_1.default.number().gte(0).lte(1).optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.union([ - BrowsingContext.BoxClipRectangleSchema, - BrowsingContext.ElementClipRectangleSchema, - ])); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ElementClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('element'), - element: Script.SharedReferenceSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.BoxClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('box'), - x: zod_1.default.number(), - y: zod_1.default.number(), - width: zod_1.default.number(), - height: zod_1.default.number(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CaptureScreenshotResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - data: zod_1.default.string(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CloseSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.close'), - params: BrowsingContext.CloseParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CloseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - promptUnload: zod_1.default.boolean().default(false).optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CloseResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CreateSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.create'), - params: BrowsingContext.CreateParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CreateTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['tab', 'window'])); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CreateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: BrowsingContext.CreateTypeSchema, - referenceContext: BrowsingContext.BrowsingContextSchema.optional(), - background: zod_1.default.boolean().default(false).optional(), - userContext: Browser.UserContextSchema.optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.CreateResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.GetTreeSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.getTree'), - params: BrowsingContext.GetTreeParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.GetTreeParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - maxDepth: exports.JsUintSchema.optional(), - root: BrowsingContext.BrowsingContextSchema.optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.GetTreeResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - contexts: BrowsingContext.InfoListSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.HandleUserPromptSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.handleUserPrompt'), - params: BrowsingContext.HandleUserPromptParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.HandleUserPromptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - accept: zod_1.default.boolean().optional(), - userText: zod_1.default.string().optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.HandleUserPromptResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.LocateNodesSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.locateNodes'), - params: BrowsingContext.LocateNodesParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.LocateNodesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - locator: BrowsingContext.LocatorSchema, - maxNodeCount: exports.JsUintSchema.gte(1).optional(), - serializationOptions: Script.SerializationOptionsSchema.optional(), - startNodes: zod_1.default.array(Script.SharedReferenceSchema).min(1).optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.LocateNodesResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - nodes: zod_1.default.array(Script.NodeRemoteValueSchema), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.NavigateSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.navigate'), - params: BrowsingContext.NavigateParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.NavigateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - url: zod_1.default.string(), - wait: BrowsingContext.ReadinessStateSchema.optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.NavigateResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - navigation: zod_1.default.union([BrowsingContext.NavigationSchema, zod_1.default.null()]), - url: zod_1.default.string(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.PrintSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.print'), - params: BrowsingContext.PrintParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.PrintParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - background: zod_1.default.boolean().default(false).optional(), - margin: BrowsingContext.PrintMarginParametersSchema.optional(), - orientation: zod_1.default - .enum(['portrait', 'landscape']) - .default('portrait') - .optional(), - page: BrowsingContext.PrintPageParametersSchema.optional(), - pageRanges: zod_1.default.array(zod_1.default.union([exports.JsUintSchema, zod_1.default.string()])).optional(), - scale: zod_1.default.number().gte(0.1).lte(2).default(1).optional(), - shrinkToFit: zod_1.default.boolean().default(true).optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.PrintMarginParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - bottom: zod_1.default.number().gte(0).default(1).optional(), - left: zod_1.default.number().gte(0).default(1).optional(), - right: zod_1.default.number().gte(0).default(1).optional(), - top: zod_1.default.number().gte(0).default(1).optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.PrintPageParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - height: zod_1.default.number().gte(0.0352).default(27.94).optional(), - width: zod_1.default.number().gte(0.0352).default(21.59).optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.PrintResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - data: zod_1.default.string(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ReloadSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.reload'), - params: BrowsingContext.ReloadParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ReloadParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - ignoreCache: zod_1.default.boolean().optional(), - wait: BrowsingContext.ReadinessStateSchema.optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ReloadResultSchema = zod_1.default.lazy(() => BrowsingContext.NavigateResultSchema); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.SetViewportSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.setViewport'), - params: BrowsingContext.SetViewportParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.SetViewportParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema.optional(), - viewport: zod_1.default.union([BrowsingContext.ViewportSchema, zod_1.default.null()]).optional(), - devicePixelRatio: zod_1.default.union([zod_1.default.number().gt(0), zod_1.default.null()]).optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ViewportSchema = zod_1.default.lazy(() => zod_1.default.object({ - width: exports.JsUintSchema, - height: exports.JsUintSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.SetViewportResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.TraverseHistorySchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.traverseHistory'), - params: BrowsingContext.TraverseHistoryParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.TraverseHistoryParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - delta: exports.JsIntSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.TraverseHistoryResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ContextCreatedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.contextCreated'), - params: BrowsingContext.InfoSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.ContextDestroyedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.contextDestroyed'), - params: BrowsingContext.InfoSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.NavigationStartedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.navigationStarted'), - params: BrowsingContext.NavigationInfoSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.FragmentNavigatedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.fragmentNavigated'), - params: BrowsingContext.NavigationInfoSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.HistoryUpdatedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.historyUpdated'), - params: BrowsingContext.HistoryUpdatedParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.HistoryUpdatedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - timestamp: exports.JsUintSchema, - url: zod_1.default.string(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.DomContentLoadedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.domContentLoaded'), - params: BrowsingContext.NavigationInfoSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.LoadSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.load'), - params: BrowsingContext.NavigationInfoSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.DownloadWillBeginSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.downloadWillBegin'), - params: BrowsingContext.DownloadWillBeginParamsSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.DownloadWillBeginParamsSchema = zod_1.default.lazy(() => zod_1.default - .object({ - suggestedFilename: zod_1.default.string(), - }) - .and(BrowsingContext.BaseNavigationInfoSchema)); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.DownloadEndSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.downloadEnd'), - params: BrowsingContext.DownloadEndParamsSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.DownloadEndParamsSchema = zod_1.default.lazy(() => zod_1.default.union([ - BrowsingContext.DownloadCanceledParamsSchema, - BrowsingContext.DownloadCompleteParamsSchema, - ])); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.DownloadCanceledParamsSchema = zod_1.default.lazy(() => zod_1.default - .object({ - status: zod_1.default.literal('canceled'), - }) - .and(BrowsingContext.BaseNavigationInfoSchema)); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.DownloadCompleteParamsSchema = zod_1.default.lazy(() => zod_1.default - .object({ - status: zod_1.default.literal('complete'), - filepath: zod_1.default.union([zod_1.default.string(), zod_1.default.null()]), - }) - .and(BrowsingContext.BaseNavigationInfoSchema)); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.NavigationAbortedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.navigationAborted'), - params: BrowsingContext.NavigationInfoSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.NavigationCommittedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.navigationCommitted'), - params: BrowsingContext.NavigationInfoSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.NavigationFailedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.navigationFailed'), - params: BrowsingContext.NavigationInfoSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.UserPromptClosedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.userPromptClosed'), - params: BrowsingContext.UserPromptClosedParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.UserPromptClosedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - accepted: zod_1.default.boolean(), - type: BrowsingContext.UserPromptTypeSchema, - userText: zod_1.default.string().optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.UserPromptOpenedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('browsingContext.userPromptOpened'), - params: BrowsingContext.UserPromptOpenedParametersSchema, - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -(function (BrowsingContext) { - BrowsingContext.UserPromptOpenedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - handler: Session.UserPromptHandlerTypeSchema, - message: zod_1.default.string(), - type: BrowsingContext.UserPromptTypeSchema, - defaultValue: zod_1.default.string().optional(), - })); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -exports.EmulationCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ - Emulation.SetForcedColorsModeThemeOverrideSchema, - Emulation.SetGeolocationOverrideSchema, - Emulation.SetLocaleOverrideSchema, - Emulation.SetNetworkConditionsSchema, - Emulation.SetScreenOrientationOverrideSchema, - Emulation.SetScreenSettingsOverrideSchema, - Emulation.SetScriptingEnabledSchema, - Emulation.SetTimezoneOverrideSchema, - Emulation.SetTouchOverrideSchema, - Emulation.SetUserAgentOverrideSchema, -])); -exports.EmulationResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - Emulation.SetForcedColorsModeThemeOverrideResultSchema, - Emulation.SetGeolocationOverrideResultSchema, - Emulation.SetLocaleOverrideResultSchema, - Emulation.SetScreenOrientationOverrideResultSchema, - Emulation.SetScriptingEnabledResultSchema, - Emulation.SetTimezoneOverrideResultSchema, - Emulation.SetTouchOverrideResultSchema, - Emulation.SetUserAgentOverrideResultSchema, -])); -var Emulation; -(function (Emulation) { - Emulation.SetForcedColorsModeThemeOverrideSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setForcedColorsModeThemeOverride'), - params: Emulation.SetForcedColorsModeThemeOverrideParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetForcedColorsModeThemeOverrideParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - theme: zod_1.default.union([Emulation.ForcedColorsModeThemeSchema, zod_1.default.null()]), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.ForcedColorsModeThemeSchema = zod_1.default.lazy(() => zod_1.default.enum(['light', 'dark'])); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetForcedColorsModeThemeOverrideResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetGeolocationOverrideSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setGeolocationOverride'), - params: Emulation.SetGeolocationOverrideParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetGeolocationOverrideParametersSchema = zod_1.default.lazy(() => zod_1.default - .union([ - zod_1.default.object({ - coordinates: zod_1.default.union([ - Emulation.GeolocationCoordinatesSchema, - zod_1.default.null(), - ]), - }), - zod_1.default.object({ - error: Emulation.GeolocationPositionErrorSchema, - }), - ]) - .and(zod_1.default.object({ - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - }))); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.GeolocationCoordinatesSchema = zod_1.default.lazy(() => zod_1.default.object({ - latitude: zod_1.default.number().gte(-90).lte(90), - longitude: zod_1.default.number().gte(-180).lte(180), - accuracy: zod_1.default.number().gte(0).default(1).optional(), - altitude: zod_1.default.union([zod_1.default.number(), zod_1.default.null().default(null)]).optional(), - altitudeAccuracy: zod_1.default - .union([zod_1.default.number().gte(0), zod_1.default.null().default(null)]) - .optional(), - heading: zod_1.default - .union([zod_1.default.number().gt(0).lt(360), zod_1.default.null().default(null)]) - .optional(), - speed: zod_1.default.union([zod_1.default.number().gte(0), zod_1.default.null().default(null)]).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.GeolocationPositionErrorSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('positionUnavailable'), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetGeolocationOverrideResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetLocaleOverrideSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setLocaleOverride'), - params: Emulation.SetLocaleOverrideParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetLocaleOverrideParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - locale: zod_1.default.union([zod_1.default.string(), zod_1.default.null()]), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetLocaleOverrideResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetNetworkConditionsSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setNetworkConditions'), - params: Emulation.SetNetworkConditionsParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetNetworkConditionsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - networkConditions: zod_1.default.union([Emulation.NetworkConditionsSchema, zod_1.default.null()]), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.NetworkConditionsSchema = zod_1.default.lazy(() => Emulation.NetworkConditionsOfflineSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.NetworkConditionsOfflineSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('offline'), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetNetworkConditionsResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetScreenSettingsOverrideSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setScreenSettingsOverride'), - params: Emulation.SetScreenSettingsOverrideParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.ScreenAreaSchema = zod_1.default.lazy(() => zod_1.default.object({ - width: exports.JsUintSchema, - height: exports.JsUintSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetScreenSettingsOverrideParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - screenArea: zod_1.default.union([Emulation.ScreenAreaSchema, zod_1.default.null()]), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetScreenSettingsOverrideResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetScreenOrientationOverrideSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setScreenOrientationOverride'), - params: Emulation.SetScreenOrientationOverrideParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.ScreenOrientationNaturalSchema = zod_1.default.lazy(() => zod_1.default.enum(['portrait', 'landscape'])); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.ScreenOrientationTypeSchema = zod_1.default.lazy(() => zod_1.default.enum([ - 'portrait-primary', - 'portrait-secondary', - 'landscape-primary', - 'landscape-secondary', - ])); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.ScreenOrientationSchema = zod_1.default.lazy(() => zod_1.default.object({ - natural: Emulation.ScreenOrientationNaturalSchema, - type: Emulation.ScreenOrientationTypeSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetScreenOrientationOverrideParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - screenOrientation: zod_1.default.union([Emulation.ScreenOrientationSchema, zod_1.default.null()]), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetScreenOrientationOverrideResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetUserAgentOverrideSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setUserAgentOverride'), - params: Emulation.SetUserAgentOverrideParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetUserAgentOverrideParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - userAgent: zod_1.default.union([zod_1.default.string(), zod_1.default.null()]), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetUserAgentOverrideResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetScriptingEnabledSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setScriptingEnabled'), - params: Emulation.SetScriptingEnabledParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetScriptingEnabledParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - enabled: zod_1.default.union([zod_1.default.literal(false), zod_1.default.null()]), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetScriptingEnabledResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetTimezoneOverrideSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setTimezoneOverride'), - params: Emulation.SetTimezoneOverrideParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetTimezoneOverrideParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - timezone: zod_1.default.union([zod_1.default.string(), zod_1.default.null()]), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetTimezoneOverrideResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetTouchOverrideSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('emulation.setTouchOverride'), - params: Emulation.SetTouchOverrideParametersSchema, - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetTouchOverrideParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - maxTouchPoints: zod_1.default.union([exports.JsUintSchema.gte(1), zod_1.default.null()]), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Emulation || (exports.Emulation = Emulation = {})); -(function (Emulation) { - Emulation.SetTouchOverrideResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Emulation || (exports.Emulation = Emulation = {})); -exports.NetworkCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ - Network.AddDataCollectorSchema, - Network.AddInterceptSchema, - Network.ContinueRequestSchema, - Network.ContinueResponseSchema, - Network.ContinueWithAuthSchema, - Network.DisownDataSchema, - Network.FailRequestSchema, - Network.GetDataSchema, - Network.ProvideResponseSchema, - Network.RemoveDataCollectorSchema, - Network.RemoveInterceptSchema, - Network.SetCacheBehaviorSchema, - Network.SetExtraHeadersSchema, -])); -exports.NetworkResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - Network.AddDataCollectorResultSchema, - Network.AddInterceptResultSchema, - Network.ContinueRequestResultSchema, - Network.ContinueResponseResultSchema, - Network.ContinueWithAuthResultSchema, - Network.DisownDataResultSchema, - Network.FailRequestResultSchema, - Network.GetDataResultSchema, - Network.ProvideResponseResultSchema, - Network.RemoveDataCollectorResultSchema, - Network.RemoveInterceptResultSchema, - Network.SetCacheBehaviorResultSchema, - Network.SetExtraHeadersResultSchema, -])); -exports.NetworkEventSchema = zod_1.default.lazy(() => zod_1.default.union([ - Network.AuthRequiredSchema, - Network.BeforeRequestSentSchema, - Network.FetchErrorSchema, - Network.ResponseCompletedSchema, - Network.ResponseStartedSchema, -])); -var Network; -(function (Network) { - Network.AuthChallengeSchema = zod_1.default.lazy(() => zod_1.default.object({ - scheme: zod_1.default.string(), - realm: zod_1.default.string(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.AuthCredentialsSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('password'), - username: zod_1.default.string(), - password: zod_1.default.string(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.BaseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: zod_1.default.union([BrowsingContext.BrowsingContextSchema, zod_1.default.null()]), - isBlocked: zod_1.default.boolean(), - navigation: zod_1.default.union([BrowsingContext.NavigationSchema, zod_1.default.null()]), - redirectCount: exports.JsUintSchema, - request: Network.RequestDataSchema, - timestamp: exports.JsUintSchema, - intercepts: zod_1.default.array(Network.InterceptSchema).min(1).optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.BytesValueSchema = zod_1.default.lazy(() => zod_1.default.union([Network.StringValueSchema, Network.Base64ValueSchema])); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.StringValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('string'), - value: zod_1.default.string(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.Base64ValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('base64'), - value: zod_1.default.string(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.CollectorSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.CollectorTypeSchema = zod_1.default.literal('blob'); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.SameSiteSchema = zod_1.default.lazy(() => zod_1.default.enum(['strict', 'lax', 'none', 'default'])); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.CookieSchema = zod_1.default.lazy(() => zod_1.default - .object({ - name: zod_1.default.string(), - value: Network.BytesValueSchema, - domain: zod_1.default.string(), - path: zod_1.default.string(), - size: exports.JsUintSchema, - httpOnly: zod_1.default.boolean(), - secure: zod_1.default.boolean(), - sameSite: Network.SameSiteSchema, - expiry: exports.JsUintSchema.optional(), - }) - .and(exports.ExtensibleSchema)); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.CookieHeaderSchema = zod_1.default.lazy(() => zod_1.default.object({ - name: zod_1.default.string(), - value: Network.BytesValueSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.DataTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['request', 'response'])); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.FetchTimingInfoSchema = zod_1.default.lazy(() => zod_1.default.object({ - timeOrigin: zod_1.default.number(), - requestTime: zod_1.default.number(), - redirectStart: zod_1.default.number(), - redirectEnd: zod_1.default.number(), - fetchStart: zod_1.default.number(), - dnsStart: zod_1.default.number(), - dnsEnd: zod_1.default.number(), - connectStart: zod_1.default.number(), - connectEnd: zod_1.default.number(), - tlsStart: zod_1.default.number(), - requestStart: zod_1.default.number(), - responseStart: zod_1.default.number(), - responseEnd: zod_1.default.number(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.HeaderSchema = zod_1.default.lazy(() => zod_1.default.object({ - name: zod_1.default.string(), - value: Network.BytesValueSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.InitiatorSchema = zod_1.default.lazy(() => zod_1.default.object({ - columnNumber: exports.JsUintSchema.optional(), - lineNumber: exports.JsUintSchema.optional(), - request: Network.RequestSchema.optional(), - stackTrace: Script.StackTraceSchema.optional(), - type: zod_1.default.enum(['parser', 'script', 'preflight', 'other']).optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.InterceptSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.RequestSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.RequestDataSchema = zod_1.default.lazy(() => zod_1.default.object({ - request: Network.RequestSchema, - url: zod_1.default.string(), - method: zod_1.default.string(), - headers: zod_1.default.array(Network.HeaderSchema), - cookies: zod_1.default.array(Network.CookieSchema), - headersSize: exports.JsUintSchema, - bodySize: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]), - destination: zod_1.default.string(), - initiatorType: zod_1.default.union([zod_1.default.string(), zod_1.default.null()]), - timings: Network.FetchTimingInfoSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ResponseContentSchema = zod_1.default.lazy(() => zod_1.default.object({ - size: exports.JsUintSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ResponseDataSchema = zod_1.default.lazy(() => zod_1.default.object({ - url: zod_1.default.string(), - protocol: zod_1.default.string(), - status: exports.JsUintSchema, - statusText: zod_1.default.string(), - fromCache: zod_1.default.boolean(), - headers: zod_1.default.array(Network.HeaderSchema), - mimeType: zod_1.default.string(), - bytesReceived: exports.JsUintSchema, - headersSize: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]), - bodySize: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]), - content: Network.ResponseContentSchema, - authChallenges: zod_1.default.array(Network.AuthChallengeSchema).optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.SetCookieHeaderSchema = zod_1.default.lazy(() => zod_1.default.object({ - name: zod_1.default.string(), - value: Network.BytesValueSchema, - domain: zod_1.default.string().optional(), - httpOnly: zod_1.default.boolean().optional(), - expiry: zod_1.default.string().optional(), - maxAge: exports.JsIntSchema.optional(), - path: zod_1.default.string().optional(), - sameSite: Network.SameSiteSchema.optional(), - secure: zod_1.default.boolean().optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.UrlPatternSchema = zod_1.default.lazy(() => zod_1.default.union([Network.UrlPatternPatternSchema, Network.UrlPatternStringSchema])); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.UrlPatternPatternSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('pattern'), - protocol: zod_1.default.string().optional(), - hostname: zod_1.default.string().optional(), - port: zod_1.default.string().optional(), - pathname: zod_1.default.string().optional(), - search: zod_1.default.string().optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.UrlPatternStringSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('string'), - pattern: zod_1.default.string(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.AddDataCollectorSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.addDataCollector'), - params: Network.AddDataCollectorParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.AddDataCollectorParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - dataTypes: zod_1.default.array(Network.DataTypeSchema).min(1), - maxEncodedDataSize: exports.JsUintSchema, - collectorType: Network.CollectorTypeSchema.default('blob').optional(), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.AddDataCollectorResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - collector: Network.CollectorSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.AddInterceptSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.addIntercept'), - params: Network.AddInterceptParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.AddInterceptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - phases: zod_1.default.array(Network.InterceptPhaseSchema).min(1), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - urlPatterns: zod_1.default.array(Network.UrlPatternSchema).optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.InterceptPhaseSchema = zod_1.default.lazy(() => zod_1.default.enum(['beforeRequestSent', 'responseStarted', 'authRequired'])); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.AddInterceptResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - intercept: Network.InterceptSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueRequestSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.continueRequest'), - params: Network.ContinueRequestParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueRequestParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - request: Network.RequestSchema, - body: Network.BytesValueSchema.optional(), - cookies: zod_1.default.array(Network.CookieHeaderSchema).optional(), - headers: zod_1.default.array(Network.HeaderSchema).optional(), - method: zod_1.default.string().optional(), - url: zod_1.default.string().optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueRequestResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueResponseSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.continueResponse'), - params: Network.ContinueResponseParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueResponseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - request: Network.RequestSchema, - cookies: zod_1.default.array(Network.SetCookieHeaderSchema).optional(), - credentials: Network.AuthCredentialsSchema.optional(), - headers: zod_1.default.array(Network.HeaderSchema).optional(), - reasonPhrase: zod_1.default.string().optional(), - statusCode: exports.JsUintSchema.optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueResponseResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueWithAuthSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.continueWithAuth'), - params: Network.ContinueWithAuthParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueWithAuthParametersSchema = zod_1.default.lazy(() => zod_1.default - .object({ - request: Network.RequestSchema, - }) - .and(zod_1.default.union([ - Network.ContinueWithAuthCredentialsSchema, - Network.ContinueWithAuthNoCredentialsSchema, - ]))); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueWithAuthCredentialsSchema = zod_1.default.lazy(() => zod_1.default.object({ - action: zod_1.default.literal('provideCredentials'), - credentials: Network.AuthCredentialsSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueWithAuthNoCredentialsSchema = zod_1.default.lazy(() => zod_1.default.object({ - action: zod_1.default.enum(['default', 'cancel']), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ContinueWithAuthResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.DisownDataSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.disownData'), - params: Network.DisownDataParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.DisownDataParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - dataType: Network.DataTypeSchema, - collector: Network.CollectorSchema, - request: Network.RequestSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.DisownDataResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.FailRequestSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.failRequest'), - params: Network.FailRequestParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.FailRequestParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - request: Network.RequestSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.FailRequestResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.GetDataSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.getData'), - params: Network.GetDataParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.GetDataParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - dataType: Network.DataTypeSchema, - collector: Network.CollectorSchema.optional(), - disown: zod_1.default.boolean().default(false).optional(), - request: Network.RequestSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.GetDataResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - bytes: Network.BytesValueSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ProvideResponseSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.provideResponse'), - params: Network.ProvideResponseParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ProvideResponseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - request: Network.RequestSchema, - body: Network.BytesValueSchema.optional(), - cookies: zod_1.default.array(Network.SetCookieHeaderSchema).optional(), - headers: zod_1.default.array(Network.HeaderSchema).optional(), - reasonPhrase: zod_1.default.string().optional(), - statusCode: exports.JsUintSchema.optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ProvideResponseResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.RemoveDataCollectorSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.removeDataCollector'), - params: Network.RemoveDataCollectorParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.RemoveDataCollectorParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - collector: Network.CollectorSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.RemoveDataCollectorResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.RemoveInterceptSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.removeIntercept'), - params: Network.RemoveInterceptParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.RemoveInterceptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - intercept: Network.InterceptSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.RemoveInterceptResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.SetCacheBehaviorSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.setCacheBehavior'), - params: Network.SetCacheBehaviorParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.SetCacheBehaviorParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - cacheBehavior: zod_1.default.enum(['default', 'bypass']), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.SetCacheBehaviorResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.SetExtraHeadersSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.setExtraHeaders'), - params: Network.SetExtraHeadersParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.SetExtraHeadersParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - headers: zod_1.default.array(Network.HeaderSchema), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.SetExtraHeadersResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.AuthRequiredSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.authRequired'), - params: Network.AuthRequiredParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.AuthRequiredParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({ - response: Network.ResponseDataSchema, - }))); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.BeforeRequestSentSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.beforeRequestSent'), - params: Network.BeforeRequestSentParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.BeforeRequestSentParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({ - initiator: Network.InitiatorSchema.optional(), - }))); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.FetchErrorSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.fetchError'), - params: Network.FetchErrorParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.FetchErrorParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({ - errorText: zod_1.default.string(), - }))); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ResponseCompletedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.responseCompleted'), - params: Network.ResponseCompletedParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ResponseCompletedParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({ - response: Network.ResponseDataSchema, - }))); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ResponseStartedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('network.responseStarted'), - params: Network.ResponseStartedParametersSchema, - })); -})(Network || (exports.Network = Network = {})); -(function (Network) { - Network.ResponseStartedParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({ - response: Network.ResponseDataSchema, - }))); -})(Network || (exports.Network = Network = {})); -exports.ScriptCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ - Script.AddPreloadScriptSchema, - Script.CallFunctionSchema, - Script.DisownSchema, - Script.EvaluateSchema, - Script.GetRealmsSchema, - Script.RemovePreloadScriptSchema, -])); -exports.ScriptResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - Script.AddPreloadScriptResultSchema, - Script.CallFunctionResultSchema, - Script.DisownResultSchema, - Script.EvaluateResultSchema, - Script.GetRealmsResultSchema, - Script.RemovePreloadScriptResultSchema, -])); -exports.ScriptEventSchema = zod_1.default.lazy(() => zod_1.default.union([ - Script.MessageSchema, - Script.RealmCreatedSchema, - Script.RealmDestroyedSchema, -])); -var Script; -(function (Script) { - Script.ChannelSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ChannelValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('channel'), - value: Script.ChannelPropertiesSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ChannelPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({ - channel: Script.ChannelSchema, - serializationOptions: Script.SerializationOptionsSchema.optional(), - ownership: Script.ResultOwnershipSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.EvaluateResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - Script.EvaluateResultSuccessSchema, - Script.EvaluateResultExceptionSchema, - ])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.EvaluateResultSuccessSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('success'), - result: Script.RemoteValueSchema, - realm: Script.RealmSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.EvaluateResultExceptionSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('exception'), - exceptionDetails: Script.ExceptionDetailsSchema, - realm: Script.RealmSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ExceptionDetailsSchema = zod_1.default.lazy(() => zod_1.default.object({ - columnNumber: exports.JsUintSchema, - exception: Script.RemoteValueSchema, - lineNumber: exports.JsUintSchema, - stackTrace: Script.StackTraceSchema, - text: zod_1.default.string(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.HandleSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.InternalIdSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.LocalValueSchema = zod_1.default.lazy(() => zod_1.default.union([ - Script.RemoteReferenceSchema, - Script.PrimitiveProtocolValueSchema, - Script.ChannelValueSchema, - Script.ArrayLocalValueSchema, - Script.DateLocalValueSchema, - Script.MapLocalValueSchema, - Script.ObjectLocalValueSchema, - Script.RegExpLocalValueSchema, - Script.SetLocalValueSchema, - ])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ListLocalValueSchema = zod_1.default.lazy(() => zod_1.default.array(Script.LocalValueSchema)); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ArrayLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('array'), - value: Script.ListLocalValueSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.DateLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('date'), - value: zod_1.default.string(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.MappingLocalValueSchema = zod_1.default.lazy(() => zod_1.default.array(zod_1.default.tuple([ - zod_1.default.union([Script.LocalValueSchema, zod_1.default.string()]), - Script.LocalValueSchema, - ]))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.MapLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('map'), - value: Script.MappingLocalValueSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ObjectLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('object'), - value: Script.MappingLocalValueSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RegExpValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - pattern: zod_1.default.string(), - flags: zod_1.default.string().optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RegExpLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('regexp'), - value: Script.RegExpValueSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.SetLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('set'), - value: Script.ListLocalValueSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.PreloadScriptSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RealmSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.PrimitiveProtocolValueSchema = zod_1.default.lazy(() => zod_1.default.union([ - Script.UndefinedValueSchema, - Script.NullValueSchema, - Script.StringValueSchema, - Script.NumberValueSchema, - Script.BooleanValueSchema, - Script.BigIntValueSchema, - ])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.UndefinedValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('undefined'), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.NullValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('null'), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.StringValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('string'), - value: zod_1.default.string(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.SpecialNumberSchema = zod_1.default.lazy(() => zod_1.default.enum(['NaN', '-0', 'Infinity', '-Infinity'])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.NumberValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('number'), - value: zod_1.default.union([zod_1.default.number(), Script.SpecialNumberSchema]), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.BooleanValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('boolean'), - value: zod_1.default.boolean(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.BigIntValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('bigint'), - value: zod_1.default.string(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RealmInfoSchema = zod_1.default.lazy(() => zod_1.default.union([ - Script.WindowRealmInfoSchema, - Script.DedicatedWorkerRealmInfoSchema, - Script.SharedWorkerRealmInfoSchema, - Script.ServiceWorkerRealmInfoSchema, - Script.WorkerRealmInfoSchema, - Script.PaintWorkletRealmInfoSchema, - Script.AudioWorkletRealmInfoSchema, - Script.WorkletRealmInfoSchema, - ])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.BaseRealmInfoSchema = zod_1.default.lazy(() => zod_1.default.object({ - realm: Script.RealmSchema, - origin: zod_1.default.string(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.WindowRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ - type: zod_1.default.literal('window'), - context: BrowsingContext.BrowsingContextSchema, - sandbox: zod_1.default.string().optional(), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.DedicatedWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ - type: zod_1.default.literal('dedicated-worker'), - owners: zod_1.default.tuple([Script.RealmSchema]), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.SharedWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ - type: zod_1.default.literal('shared-worker'), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ServiceWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ - type: zod_1.default.literal('service-worker'), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.WorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ - type: zod_1.default.literal('worker'), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.PaintWorkletRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ - type: zod_1.default.literal('paint-worklet'), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.AudioWorkletRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ - type: zod_1.default.literal('audio-worklet'), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.WorkletRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ - type: zod_1.default.literal('worklet'), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RealmTypeSchema = zod_1.default.lazy(() => zod_1.default.enum([ - 'window', - 'dedicated-worker', - 'shared-worker', - 'service-worker', - 'worker', - 'paint-worklet', - 'audio-worklet', - 'worklet', - ])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RemoteReferenceSchema = zod_1.default.lazy(() => zod_1.default.union([Script.SharedReferenceSchema, Script.RemoteObjectReferenceSchema])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.SharedReferenceSchema = zod_1.default.lazy(() => zod_1.default - .object({ - sharedId: Script.SharedIdSchema, - handle: Script.HandleSchema.optional(), - }) - .and(exports.ExtensibleSchema)); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RemoteObjectReferenceSchema = zod_1.default.lazy(() => zod_1.default - .object({ - handle: Script.HandleSchema, - sharedId: Script.SharedIdSchema.optional(), - }) - .and(exports.ExtensibleSchema)); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RemoteValueSchema = zod_1.default.lazy(() => zod_1.default.union([ - Script.PrimitiveProtocolValueSchema, - Script.SymbolRemoteValueSchema, - Script.ArrayRemoteValueSchema, - Script.ObjectRemoteValueSchema, - Script.FunctionRemoteValueSchema, - Script.RegExpRemoteValueSchema, - Script.DateRemoteValueSchema, - Script.MapRemoteValueSchema, - Script.SetRemoteValueSchema, - Script.WeakMapRemoteValueSchema, - Script.WeakSetRemoteValueSchema, - Script.GeneratorRemoteValueSchema, - Script.ErrorRemoteValueSchema, - Script.ProxyRemoteValueSchema, - Script.PromiseRemoteValueSchema, - Script.TypedArrayRemoteValueSchema, - Script.ArrayBufferRemoteValueSchema, - Script.NodeListRemoteValueSchema, - Script.HtmlCollectionRemoteValueSchema, - Script.NodeRemoteValueSchema, - Script.WindowProxyRemoteValueSchema, - ])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ListRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.array(Script.RemoteValueSchema)); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.MappingRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.array(zod_1.default.tuple([ - zod_1.default.union([Script.RemoteValueSchema, zod_1.default.string()]), - Script.RemoteValueSchema, - ]))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.SymbolRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('symbol'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ArrayRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('array'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - value: Script.ListRemoteValueSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ObjectRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('object'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - value: Script.MappingRemoteValueSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.FunctionRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('function'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RegExpRemoteValueSchema = zod_1.default.lazy(() => Script.RegExpLocalValueSchema.and(zod_1.default.object({ - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.DateRemoteValueSchema = zod_1.default.lazy(() => Script.DateLocalValueSchema.and(zod_1.default.object({ - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - }))); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.MapRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('map'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - value: Script.MappingRemoteValueSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.SetRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('set'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - value: Script.ListRemoteValueSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.WeakMapRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('weakmap'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.WeakSetRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('weakset'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.GeneratorRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('generator'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ErrorRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('error'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ProxyRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('proxy'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.PromiseRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('promise'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.TypedArrayRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('typedarray'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ArrayBufferRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('arraybuffer'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.NodeListRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('nodelist'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - value: Script.ListRemoteValueSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.HtmlCollectionRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('htmlcollection'), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - value: Script.ListRemoteValueSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.NodeRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('node'), - sharedId: Script.SharedIdSchema.optional(), - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - value: Script.NodePropertiesSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.NodePropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({ - nodeType: exports.JsUintSchema, - childNodeCount: exports.JsUintSchema, - attributes: zod_1.default.record(zod_1.default.string(), zod_1.default.string()).optional(), - children: zod_1.default.array(Script.NodeRemoteValueSchema).optional(), - localName: zod_1.default.string().optional(), - mode: zod_1.default.enum(['open', 'closed']).optional(), - namespaceURI: zod_1.default.string().optional(), - nodeValue: zod_1.default.string().optional(), - shadowRoot: zod_1.default.union([Script.NodeRemoteValueSchema, zod_1.default.null()]).optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.WindowProxyRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('window'), - value: Script.WindowProxyPropertiesSchema, - handle: Script.HandleSchema.optional(), - internalId: Script.InternalIdSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.WindowProxyPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ResultOwnershipSchema = zod_1.default.lazy(() => zod_1.default.enum(['root', 'none'])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.SerializationOptionsSchema = zod_1.default.lazy(() => zod_1.default.object({ - maxDomDepth: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]).default(0).optional(), - maxObjectDepth: zod_1.default - .union([exports.JsUintSchema, zod_1.default.null()]) - .default(null) - .optional(), - includeShadowTree: zod_1.default - .enum(['none', 'open', 'all']) - .default('none') - .optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.SharedIdSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.StackFrameSchema = zod_1.default.lazy(() => zod_1.default.object({ - columnNumber: exports.JsUintSchema, - functionName: zod_1.default.string(), - lineNumber: exports.JsUintSchema, - url: zod_1.default.string(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.StackTraceSchema = zod_1.default.lazy(() => zod_1.default.object({ - callFrames: zod_1.default.array(Script.StackFrameSchema), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.SourceSchema = zod_1.default.lazy(() => zod_1.default.object({ - realm: Script.RealmSchema, - context: BrowsingContext.BrowsingContextSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RealmTargetSchema = zod_1.default.lazy(() => zod_1.default.object({ - realm: Script.RealmSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.ContextTargetSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - sandbox: zod_1.default.string().optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.TargetSchema = zod_1.default.lazy(() => zod_1.default.union([Script.ContextTargetSchema, Script.RealmTargetSchema])); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.AddPreloadScriptSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('script.addPreloadScript'), - params: Script.AddPreloadScriptParametersSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.AddPreloadScriptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - functionDeclaration: zod_1.default.string(), - arguments: zod_1.default.array(Script.ChannelValueSchema).optional(), - contexts: zod_1.default - .array(BrowsingContext.BrowsingContextSchema) - .min(1) - .optional(), - userContexts: zod_1.default.array(Browser.UserContextSchema).min(1).optional(), - sandbox: zod_1.default.string().optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.AddPreloadScriptResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - script: Script.PreloadScriptSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.DisownSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('script.disown'), - params: Script.DisownParametersSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.DisownParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - handles: zod_1.default.array(Script.HandleSchema), - target: Script.TargetSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.DisownResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.CallFunctionSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('script.callFunction'), - params: Script.CallFunctionParametersSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.CallFunctionParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - functionDeclaration: zod_1.default.string(), - awaitPromise: zod_1.default.boolean(), - target: Script.TargetSchema, - arguments: zod_1.default.array(Script.LocalValueSchema).optional(), - resultOwnership: Script.ResultOwnershipSchema.optional(), - serializationOptions: Script.SerializationOptionsSchema.optional(), - this: Script.LocalValueSchema.optional(), - userActivation: zod_1.default.boolean().default(false).optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.CallFunctionResultSchema = zod_1.default.lazy(() => Script.EvaluateResultSchema); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.EvaluateSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('script.evaluate'), - params: Script.EvaluateParametersSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.EvaluateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - expression: zod_1.default.string(), - target: Script.TargetSchema, - awaitPromise: zod_1.default.boolean(), - resultOwnership: Script.ResultOwnershipSchema.optional(), - serializationOptions: Script.SerializationOptionsSchema.optional(), - userActivation: zod_1.default.boolean().default(false).optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.GetRealmsSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('script.getRealms'), - params: Script.GetRealmsParametersSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.GetRealmsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema.optional(), - type: Script.RealmTypeSchema.optional(), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.GetRealmsResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - realms: zod_1.default.array(Script.RealmInfoSchema), - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RemovePreloadScriptSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('script.removePreloadScript'), - params: Script.RemovePreloadScriptParametersSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RemovePreloadScriptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - script: Script.PreloadScriptSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RemovePreloadScriptResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.MessageSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('script.message'), - params: Script.MessageParametersSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.MessageParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - channel: Script.ChannelSchema, - data: Script.RemoteValueSchema, - source: Script.SourceSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RealmCreatedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('script.realmCreated'), - params: Script.RealmInfoSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RealmDestroyedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('script.realmDestroyed'), - params: Script.RealmDestroyedParametersSchema, - })); -})(Script || (exports.Script = Script = {})); -(function (Script) { - Script.RealmDestroyedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - realm: Script.RealmSchema, - })); -})(Script || (exports.Script = Script = {})); -exports.StorageCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ - Storage.DeleteCookiesSchema, - Storage.GetCookiesSchema, - Storage.SetCookieSchema, -])); -exports.StorageResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - Storage.DeleteCookiesResultSchema, - Storage.GetCookiesResultSchema, - Storage.SetCookieResultSchema, -])); -var Storage; -(function (Storage) { - Storage.PartitionKeySchema = zod_1.default.lazy(() => zod_1.default - .object({ - userContext: zod_1.default.string().optional(), - sourceOrigin: zod_1.default.string().optional(), - }) - .and(exports.ExtensibleSchema)); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.GetCookiesSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('storage.getCookies'), - params: Storage.GetCookiesParametersSchema, - })); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.CookieFilterSchema = zod_1.default.lazy(() => zod_1.default - .object({ - name: zod_1.default.string().optional(), - value: Network.BytesValueSchema.optional(), - domain: zod_1.default.string().optional(), - path: zod_1.default.string().optional(), - size: exports.JsUintSchema.optional(), - httpOnly: zod_1.default.boolean().optional(), - secure: zod_1.default.boolean().optional(), - sameSite: Network.SameSiteSchema.optional(), - expiry: exports.JsUintSchema.optional(), - }) - .and(exports.ExtensibleSchema)); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.BrowsingContextPartitionDescriptorSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('context'), - context: BrowsingContext.BrowsingContextSchema, - })); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.StorageKeyPartitionDescriptorSchema = zod_1.default.lazy(() => zod_1.default - .object({ - type: zod_1.default.literal('storageKey'), - userContext: zod_1.default.string().optional(), - sourceOrigin: zod_1.default.string().optional(), - }) - .and(exports.ExtensibleSchema)); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.PartitionDescriptorSchema = zod_1.default.lazy(() => zod_1.default.union([ - Storage.BrowsingContextPartitionDescriptorSchema, - Storage.StorageKeyPartitionDescriptorSchema, - ])); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.GetCookiesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - filter: Storage.CookieFilterSchema.optional(), - partition: Storage.PartitionDescriptorSchema.optional(), - })); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.GetCookiesResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - cookies: zod_1.default.array(Network.CookieSchema), - partitionKey: Storage.PartitionKeySchema, - })); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.SetCookieSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('storage.setCookie'), - params: Storage.SetCookieParametersSchema, - })); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.PartialCookieSchema = zod_1.default.lazy(() => zod_1.default - .object({ - name: zod_1.default.string(), - value: Network.BytesValueSchema, - domain: zod_1.default.string(), - path: zod_1.default.string().optional(), - httpOnly: zod_1.default.boolean().optional(), - secure: zod_1.default.boolean().optional(), - sameSite: Network.SameSiteSchema.optional(), - expiry: exports.JsUintSchema.optional(), - }) - .and(exports.ExtensibleSchema)); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.SetCookieParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - cookie: Storage.PartialCookieSchema, - partition: Storage.PartitionDescriptorSchema.optional(), - })); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.SetCookieResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - partitionKey: Storage.PartitionKeySchema, - })); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.DeleteCookiesSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('storage.deleteCookies'), - params: Storage.DeleteCookiesParametersSchema, - })); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.DeleteCookiesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - filter: Storage.CookieFilterSchema.optional(), - partition: Storage.PartitionDescriptorSchema.optional(), - })); -})(Storage || (exports.Storage = Storage = {})); -(function (Storage) { - Storage.DeleteCookiesResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - partitionKey: Storage.PartitionKeySchema, - })); -})(Storage || (exports.Storage = Storage = {})); -exports.LogEventSchema = zod_1.default.lazy(() => Log.EntryAddedSchema); -var Log; -(function (Log) { - Log.LevelSchema = zod_1.default.lazy(() => zod_1.default.enum(['debug', 'info', 'warn', 'error'])); -})(Log || (exports.Log = Log = {})); -(function (Log) { - Log.EntrySchema = zod_1.default.lazy(() => zod_1.default.union([ - Log.GenericLogEntrySchema, - Log.ConsoleLogEntrySchema, - Log.JavascriptLogEntrySchema, - ])); -})(Log || (exports.Log = Log = {})); -(function (Log) { - Log.BaseLogEntrySchema = zod_1.default.lazy(() => zod_1.default.object({ - level: Log.LevelSchema, - source: Script.SourceSchema, - text: zod_1.default.union([zod_1.default.string(), zod_1.default.null()]), - timestamp: exports.JsUintSchema, - stackTrace: Script.StackTraceSchema.optional(), - })); -})(Log || (exports.Log = Log = {})); -(function (Log) { - Log.GenericLogEntrySchema = zod_1.default.lazy(() => Log.BaseLogEntrySchema.and(zod_1.default.object({ - type: zod_1.default.string(), - }))); -})(Log || (exports.Log = Log = {})); -(function (Log) { - Log.ConsoleLogEntrySchema = zod_1.default.lazy(() => Log.BaseLogEntrySchema.and(zod_1.default.object({ - type: zod_1.default.literal('console'), - method: zod_1.default.string(), - args: zod_1.default.array(Script.RemoteValueSchema), - }))); -})(Log || (exports.Log = Log = {})); -(function (Log) { - Log.JavascriptLogEntrySchema = zod_1.default.lazy(() => Log.BaseLogEntrySchema.and(zod_1.default.object({ - type: zod_1.default.literal('javascript'), - }))); -})(Log || (exports.Log = Log = {})); -(function (Log) { - Log.EntryAddedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('log.entryAdded'), - params: Log.EntrySchema, - })); -})(Log || (exports.Log = Log = {})); -exports.InputCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ - Input.PerformActionsSchema, - Input.ReleaseActionsSchema, - Input.SetFilesSchema, -])); -exports.InputResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - Input.PerformActionsResultSchema, - Input.ReleaseActionsResultSchema, - Input.SetFilesResultSchema, -])); -exports.InputEventSchema = zod_1.default.lazy(() => Input.FileDialogOpenedSchema); -var Input; -(function (Input) { - Input.ElementOriginSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('element'), - element: Script.SharedReferenceSchema, - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PerformActionsSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('input.performActions'), - params: Input.PerformActionsParametersSchema, - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PerformActionsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - actions: zod_1.default.array(Input.SourceActionsSchema), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.SourceActionsSchema = zod_1.default.lazy(() => zod_1.default.union([ - Input.NoneSourceActionsSchema, - Input.KeySourceActionsSchema, - Input.PointerSourceActionsSchema, - Input.WheelSourceActionsSchema, - ])); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.NoneSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('none'), - id: zod_1.default.string(), - actions: zod_1.default.array(Input.NoneSourceActionSchema), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.NoneSourceActionSchema = zod_1.default.lazy(() => Input.PauseActionSchema); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.KeySourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('key'), - id: zod_1.default.string(), - actions: zod_1.default.array(Input.KeySourceActionSchema), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.KeySourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([ - Input.PauseActionSchema, - Input.KeyDownActionSchema, - Input.KeyUpActionSchema, - ])); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PointerSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('pointer'), - id: zod_1.default.string(), - parameters: Input.PointerParametersSchema.optional(), - actions: zod_1.default.array(Input.PointerSourceActionSchema), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PointerTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['mouse', 'pen', 'touch'])); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PointerParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - pointerType: Input.PointerTypeSchema.default('mouse').optional(), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PointerSourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([ - Input.PauseActionSchema, - Input.PointerDownActionSchema, - Input.PointerUpActionSchema, - Input.PointerMoveActionSchema, - ])); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.WheelSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('wheel'), - id: zod_1.default.string(), - actions: zod_1.default.array(Input.WheelSourceActionSchema), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.WheelSourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([Input.PauseActionSchema, Input.WheelScrollActionSchema])); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PauseActionSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('pause'), - duration: exports.JsUintSchema.optional(), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.KeyDownActionSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('keyDown'), - value: zod_1.default.string(), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.KeyUpActionSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('keyUp'), - value: zod_1.default.string(), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PointerUpActionSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('pointerUp'), - button: exports.JsUintSchema, - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PointerDownActionSchema = zod_1.default.lazy(() => zod_1.default - .object({ - type: zod_1.default.literal('pointerDown'), - button: exports.JsUintSchema, - }) - .and(Input.PointerCommonPropertiesSchema)); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PointerMoveActionSchema = zod_1.default.lazy(() => zod_1.default - .object({ - type: zod_1.default.literal('pointerMove'), - x: zod_1.default.number(), - y: zod_1.default.number(), - duration: exports.JsUintSchema.optional(), - origin: Input.OriginSchema.optional(), - }) - .and(Input.PointerCommonPropertiesSchema)); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.WheelScrollActionSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('scroll'), - x: exports.JsIntSchema, - y: exports.JsIntSchema, - deltaX: exports.JsIntSchema, - deltaY: exports.JsIntSchema, - duration: exports.JsUintSchema.optional(), - origin: Input.OriginSchema.default('viewport').optional(), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PointerCommonPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({ - width: exports.JsUintSchema.default(1).optional(), - height: exports.JsUintSchema.default(1).optional(), - pressure: zod_1.default.number().default(0).optional(), - tangentialPressure: zod_1.default.number().default(0).optional(), - twist: zod_1.default - .number() - .int() - .nonnegative() - .gte(0) - .lte(359) - .default(0) - .optional(), - altitudeAngle: zod_1.default - .number() - .gte(0) - .lte(1.5707963267948966) - .default(0) - .optional(), - azimuthAngle: zod_1.default - .number() - .gte(0) - .lte(6.283185307179586) - .default(0) - .optional(), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.OriginSchema = zod_1.default.lazy(() => zod_1.default.union([ - zod_1.default.literal('viewport'), - zod_1.default.literal('pointer'), - Input.ElementOriginSchema, - ])); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.PerformActionsResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.ReleaseActionsSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('input.releaseActions'), - params: Input.ReleaseActionsParametersSchema, - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.ReleaseActionsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.ReleaseActionsResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.SetFilesSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('input.setFiles'), - params: Input.SetFilesParametersSchema, - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.SetFilesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - element: Script.SharedReferenceSchema, - files: zod_1.default.array(zod_1.default.string()), - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.SetFilesResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.FileDialogOpenedSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('input.fileDialogOpened'), - params: Input.FileDialogInfoSchema, - })); -})(Input || (exports.Input = Input = {})); -(function (Input) { - Input.FileDialogInfoSchema = zod_1.default.lazy(() => zod_1.default.object({ - context: BrowsingContext.BrowsingContextSchema, - element: Script.SharedReferenceSchema.optional(), - multiple: zod_1.default.boolean(), - })); -})(Input || (exports.Input = Input = {})); -exports.WebExtensionCommandSchema = zod_1.default.lazy(() => zod_1.default.union([WebExtension.InstallSchema, WebExtension.UninstallSchema])); -exports.WebExtensionResultSchema = zod_1.default.lazy(() => zod_1.default.union([ - WebExtension.InstallResultSchema, - WebExtension.UninstallResultSchema, -])); -var WebExtension; -(function (WebExtension) { - WebExtension.ExtensionSchema = zod_1.default.lazy(() => zod_1.default.string()); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.InstallSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('webExtension.install'), - params: WebExtension.InstallParametersSchema, - })); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.InstallParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - extensionData: WebExtension.ExtensionDataSchema, - })); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.ExtensionDataSchema = zod_1.default.lazy(() => zod_1.default.union([ - WebExtension.ExtensionArchivePathSchema, - WebExtension.ExtensionBase64EncodedSchema, - WebExtension.ExtensionPathSchema, - ])); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.ExtensionPathSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('path'), - path: zod_1.default.string(), - })); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.ExtensionArchivePathSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('archivePath'), - path: zod_1.default.string(), - })); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.ExtensionBase64EncodedSchema = zod_1.default.lazy(() => zod_1.default.object({ - type: zod_1.default.literal('base64'), - value: zod_1.default.string(), - })); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.InstallResultSchema = zod_1.default.lazy(() => zod_1.default.object({ - extension: WebExtension.ExtensionSchema, - })); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.UninstallSchema = zod_1.default.lazy(() => zod_1.default.object({ - method: zod_1.default.literal('webExtension.uninstall'), - params: WebExtension.UninstallParametersSchema, - })); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.UninstallParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - extension: WebExtension.ExtensionSchema, - })); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -(function (WebExtension) { - WebExtension.UninstallResultSchema = zod_1.default.lazy(() => exports.EmptyResultSchema); -})(WebExtension || (exports.WebExtension = WebExtension = {})); -//# sourceMappingURL=webdriver-bidi.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js.map b/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js.map deleted file mode 100644 index ac06650..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi.js","sourceRoot":"","sources":["../../../../src/protocol-parser/generated/webdriver-bidi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;AAEH;;;;GAIG;AAEH,6DAA6D;AAC7D,0CAA0C;AAE1C,8CAAoB;AAEP,QAAA,aAAa,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACvC,aAAC;KACE,MAAM,CAAC;IACN,EAAE,EAAE,oBAAY;CACjB,CAAC;KACD,GAAG,CAAC,yBAAiB,CAAC;KACtB,GAAG,CAAC,wBAAgB,CAAC,CACzB,CAAC;AACW,QAAA,iBAAiB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC3C,aAAC,CAAC,KAAK,CAAC;IACN,4BAAoB;IACpB,oCAA4B;IAC5B,8BAAsB;IACtB,0BAAkB;IAClB,4BAAoB;IACpB,2BAAmB;IACnB,4BAAoB;IACpB,4BAAoB;IACpB,iCAAyB;CAC1B,CAAC,CACH,CAAC;AACW,QAAA,iBAAiB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC,CAAC;AACnD,QAAA,aAAa,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACvC,aAAC,CAAC,KAAK,CAAC,CAAC,6BAAqB,EAAE,2BAAmB,EAAE,mBAAW,CAAC,CAAC,CACnE,CAAC;AACW,QAAA,qBAAqB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC/C,aA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.ts b/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.d.ts deleted file mode 100644 index 16c490b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.d.ts +++ /dev/null @@ -1,175 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * @fileoverview Provides parsing and validator for WebDriver BiDi protocol. - * Parser types should match the `../protocol` types. - */ -import { z, type ZodType } from 'zod'; -import type * as Protocol from '../protocol/protocol.js'; -export declare function parseObject(obj: unknown, schema: T): z.infer; -/** @see https://w3c.github.io/webdriver-bidi/#module-browser */ -export declare namespace Browser { - function parseCreateUserContextParameters(params: unknown): Protocol.Browser.CreateUserContextParameters; - function parseRemoveUserContextParameters(params: unknown): Protocol.Browser.RemoveUserContextParameters; - function parseSetClientWindowStateParameters(params: unknown): Protocol.Browser.SetClientWindowStateParameters; - function parseSetDownloadBehaviorParameters(params: unknown): Protocol.Browser.SetDownloadBehaviorParameters; -} -/** @see https://w3c.github.io/webdriver-bidi/#module-network */ -export declare namespace Network { - function parseAddDataCollectorParameters(params: unknown): Protocol.Network.AddDataCollectorParameters; - function parseAddInterceptParameters(params: unknown): Protocol.Network.AddInterceptParameters; - function parseContinueRequestParameters(params: unknown): { - request: string; - url?: string | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - method?: string | undefined; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - }; - function parseContinueResponseParameters(params: unknown): Protocol.Network.ContinueResponseParameters; - function parseContinueWithAuthParameters(params: unknown): { - request: string; - } & ({ - credentials: { - type: "password"; - password: string; - username: string; - }; - action: "provideCredentials"; - } | { - action: "default" | "cancel"; - }); - function parseDisownDataParameters(params: unknown): Protocol.Network.DisownDataParameters; - function parseFailRequestParameters(params: unknown): { - request: string; - }; - function parseGetDataParameters(params: unknown): Protocol.Network.GetDataParameters; - function parseProvideResponseParameters(params: unknown): Protocol.Network.ProvideResponseParameters; - function parseRemoveDataCollectorParameters(params: unknown): Protocol.Network.RemoveDataCollectorParameters; - function parseRemoveInterceptParameters(params: unknown): { - intercept: string; - }; - function parseSetCacheBehaviorParameters(params: unknown): Protocol.Network.SetCacheBehaviorParameters; - function parseSetExtraHeadersParameters(params: unknown): Protocol.Network.SetExtraHeadersParameters; -} -/** @see https://w3c.github.io/webdriver-bidi/#module-script */ -export declare namespace Script { - function parseAddPreloadScriptParams(params: unknown): Protocol.Script.AddPreloadScriptParameters; - function parseCallFunctionParams(params: unknown): Protocol.Script.CallFunctionParameters; - function parseDisownParams(params: unknown): Protocol.Script.DisownParameters; - function parseEvaluateParams(params: unknown): Protocol.Script.EvaluateParameters; - function parseGetRealmsParams(params: unknown): Protocol.Script.GetRealmsParameters; - function parseRemovePreloadScriptParams(params: unknown): { - script: string; - }; -} -/** @see https://w3c.github.io/webdriver-bidi/#module-browsingContext */ -export declare namespace BrowsingContext { - function parseActivateParams(params: unknown): { - context: string; - }; - function parseCaptureScreenshotParams(params: unknown): Protocol.BrowsingContext.CaptureScreenshotParameters; - function parseCloseParams(params: unknown): Protocol.BrowsingContext.CloseParameters; - function parseCreateParams(params: unknown): Protocol.BrowsingContext.CreateParameters; - function parseGetTreeParams(params: unknown): Protocol.BrowsingContext.GetTreeParameters; - function parseHandleUserPromptParameters(params: unknown): Protocol.BrowsingContext.HandleUserPromptParameters; - function parseLocateNodesParams(params: unknown): Protocol.BrowsingContext.LocateNodesParameters; - function parseNavigateParams(params: unknown): Protocol.BrowsingContext.NavigateParameters; - function parsePrintParams(params: unknown): Protocol.BrowsingContext.PrintParameters; - function parseReloadParams(params: unknown): Protocol.BrowsingContext.ReloadParameters; - function parseSetViewportParams(params: unknown): Protocol.BrowsingContext.SetViewportParameters; - function parseTraverseHistoryParams(params: unknown): Protocol.BrowsingContext.TraverseHistoryParameters; -} -/** @see https://w3c.github.io/webdriver-bidi/#module-session */ -export declare namespace Session { - function parseSubscribeParams(params: unknown): Protocol.Session.SubscribeParameters; - function parseUnsubscribeParams(params: unknown): Protocol.Session.UnsubscribeParameters; -} -export declare namespace Emulation { - function parseSetClientHintsOverrideParams(params: unknown): Protocol.UAClientHints.UserAgentClientHints.SetClientHintsOverrideCommand["params"]; - function parseSetForcedColorsModeThemeOverrideParams(params: unknown): Protocol.Emulation.SetForcedColorsModeThemeOverrideParameters; - function parseSetGeolocationOverrideParams(params: unknown): Protocol.Emulation.SetGeolocationOverrideParameters; - function parseSetLocaleOverrideParams(params: unknown): Protocol.Emulation.SetLocaleOverrideParameters; - function parseSetNetworkConditionsParams(params: unknown): Protocol.Emulation.SetNetworkConditionsParameters; - function parseSetScreenOrientationOverrideParams(params: unknown): Protocol.Emulation.SetScreenOrientationOverrideParameters; - function parseSetScreenSettingsOverrideParams(params: unknown): Protocol.Emulation.SetScreenSettingsOverrideParameters; - function parseSetScriptingEnabledParams(params: unknown): Protocol.Emulation.SetScriptingEnabledParameters; - function parseSetTimezoneOverrideParams(params: unknown): Protocol.Emulation.SetTimezoneOverrideParameters; - function parseSetTouchOverrideParams(params: unknown): Protocol.Emulation.SetTouchOverrideParameters; - function parseSetUserAgentOverrideParams(params: unknown): Protocol.Emulation.SetUserAgentOverrideParameters; -} -export declare namespace Input { - function parsePerformActionsParams(params: unknown): Protocol.Input.PerformActionsParameters; - function parseReleaseActionsParams(params: unknown): Protocol.Input.ReleaseActionsParameters; - function parseSetFilesParams(params: unknown): Protocol.Input.SetFilesParameters; -} -export declare namespace Storage { - function parseDeleteCookiesParams(params: unknown): Protocol.Storage.DeleteCookiesParameters; - function parseGetCookiesParams(params: unknown): Protocol.Storage.GetCookiesParameters; - function parseSetCookieParams(params: unknown): Protocol.Storage.SetCookieParameters; -} -export declare namespace Cdp { - function parseGetSessionRequest(params: unknown): Protocol.Cdp.GetSessionParameters; - function parseResolveRealmRequest(params: unknown): Protocol.Cdp.ResolveRealmParameters; - function parseSendCommandRequest(params: unknown): Protocol.Cdp.SendCommandParameters; -} -export declare namespace Permissions { - function parseSetPermissionsParams(params: unknown): Protocol.Permissions.SetPermissionParameters; -} -export declare namespace Bluetooth { - function parseDisableSimulationParameters(params: unknown): Protocol.Bluetooth.DisableSimulationParameters; - function parseHandleRequestDevicePromptParams(params: unknown): Protocol.Bluetooth.HandleRequestDevicePromptParameters; - function parseSimulateAdapterParams(params: unknown): Protocol.Bluetooth.SimulateAdapterParameters; - function parseSimulateAdvertisementParams(params: unknown): Protocol.Bluetooth.SimulateAdvertisementParameters; - function parseSimulateCharacteristicParams(params: unknown): Protocol.Bluetooth.SimulateCharacteristicParameters; - function parseSimulateCharacteristicResponseParams(params: unknown): Protocol.Bluetooth.SimulateCharacteristicResponseParameters; - function parseSimulateDescriptorParams(params: unknown): Protocol.Bluetooth.SimulateDescriptorParameters; - function parseSimulateDescriptorResponseParams(params: unknown): Protocol.Bluetooth.SimulateDescriptorResponseParameters; - function parseSimulateGattConnectionResponseParams(params: unknown): Protocol.Bluetooth.SimulateGattConnectionResponseParameters; - function parseSimulateGattDisconnectionParams(params: unknown): Protocol.Bluetooth.SimulateGattDisconnectionParameters; - function parseSimulatePreconnectedPeripheralParams(params: unknown): Protocol.Bluetooth.SimulatePreconnectedPeripheralParameters; - function parseSimulateServiceParams(params: unknown): Protocol.Bluetooth.SimulateServiceParameters; -} -/** @see https://w3c.github.io/webdriver-bidi/#module-webExtension */ -export declare namespace WebModule { - function parseInstallParams(params: unknown): Protocol.WebExtension.InstallParameters; - function parseUninstallParams(params: unknown): Protocol.WebExtension.UninstallParameters; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js b/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js deleted file mode 100644 index 9b726b1..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js +++ /dev/null @@ -1,494 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebModule = exports.Bluetooth = exports.Permissions = exports.Cdp = exports.Storage = exports.Input = exports.Emulation = exports.Session = exports.BrowsingContext = exports.Script = exports.Network = exports.Browser = void 0; -exports.parseObject = parseObject; -/** - * @fileoverview Provides parsing and validator for WebDriver BiDi protocol. - * Parser types should match the `../protocol` types. - */ -const zod_1 = require("zod"); -const protocol_js_1 = require("../protocol/protocol.js"); -const WebDriverBidiBluetooth = __importStar(require("./generated/webdriver-bidi-bluetooth.js")); -const WebDriverBidiPermissions = __importStar(require("./generated/webdriver-bidi-permissions.js")); -const WebDriverBidiUAClientHints = __importStar(require("./generated/webdriver-bidi-ua-client-hints.js")); -const WebDriverBidi = __importStar(require("./generated/webdriver-bidi.js")); -function parseObject(obj, schema) { - const parseResult = schema.safeParse(obj); - if (parseResult.success) { - return parseResult.data; - } - const errorMessage = parseResult.error.errors - .map((e) => `${e.message} in ` + - `${e.path.map((p) => JSON.stringify(p)).join('/')}.`) - .join(' '); - throw new protocol_js_1.InvalidArgumentException(errorMessage); -} -/** @see https://w3c.github.io/webdriver-bidi/#module-browser */ -var Browser; -(function (Browser) { - // keep-sorted start block=yes - function parseCreateUserContextParameters(params) { - // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. - return parseObject(params, WebDriverBidi.Browser.CreateUserContextParametersSchema); - } - Browser.parseCreateUserContextParameters = parseCreateUserContextParameters; - function parseRemoveUserContextParameters(params) { - return parseObject(params, WebDriverBidi.Browser.RemoveUserContextParametersSchema); - } - Browser.parseRemoveUserContextParameters = parseRemoveUserContextParameters; - function parseSetClientWindowStateParameters(params) { - return parseObject(params, WebDriverBidi.Browser.SetClientWindowStateParametersSchema); - } - Browser.parseSetClientWindowStateParameters = parseSetClientWindowStateParameters; - function parseSetDownloadBehaviorParameters(params) { - return parseObject(params, WebDriverBidi.Browser.SetDownloadBehaviorParametersSchema); - } - Browser.parseSetDownloadBehaviorParameters = parseSetDownloadBehaviorParameters; - // keep-sorted end -})(Browser || (exports.Browser = Browser = {})); -/** @see https://w3c.github.io/webdriver-bidi/#module-network */ -var Network; -(function (Network) { - // keep-sorted start block=yes - function parseAddDataCollectorParameters(params) { - // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. - return parseObject(params, WebDriverBidi.Network.AddDataCollectorParametersSchema); - } - Network.parseAddDataCollectorParameters = parseAddDataCollectorParameters; - function parseAddInterceptParameters(params) { - // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. - return parseObject(params, WebDriverBidi.Network.AddInterceptParametersSchema); - } - Network.parseAddInterceptParameters = parseAddInterceptParameters; - function parseContinueRequestParameters(params) { - return parseObject(params, WebDriverBidi.Network.ContinueRequestParametersSchema); - } - Network.parseContinueRequestParameters = parseContinueRequestParameters; - function parseContinueResponseParameters(params) { - // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. - return parseObject(params, WebDriverBidi.Network.ContinueResponseParametersSchema); - } - Network.parseContinueResponseParameters = parseContinueResponseParameters; - function parseContinueWithAuthParameters(params) { - return parseObject(params, WebDriverBidi.Network.ContinueWithAuthParametersSchema); - } - Network.parseContinueWithAuthParameters = parseContinueWithAuthParameters; - function parseDisownDataParameters(params) { - return parseObject(params, WebDriverBidi.Network.DisownDataParametersSchema); - } - Network.parseDisownDataParameters = parseDisownDataParameters; - function parseFailRequestParameters(params) { - return parseObject(params, WebDriverBidi.Network.FailRequestParametersSchema); - } - Network.parseFailRequestParameters = parseFailRequestParameters; - function parseGetDataParameters(params) { - // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. - return parseObject(params, WebDriverBidi.Network.GetDataParametersSchema); - } - Network.parseGetDataParameters = parseGetDataParameters; - function parseProvideResponseParameters(params) { - // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. - return parseObject(params, WebDriverBidi.Network.ProvideResponseParametersSchema); - } - Network.parseProvideResponseParameters = parseProvideResponseParameters; - function parseRemoveDataCollectorParameters(params) { - // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. - return parseObject(params, WebDriverBidi.Network.RemoveDataCollectorParametersSchema); - } - Network.parseRemoveDataCollectorParameters = parseRemoveDataCollectorParameters; - function parseRemoveInterceptParameters(params) { - return parseObject(params, WebDriverBidi.Network.RemoveInterceptParametersSchema); - } - Network.parseRemoveInterceptParameters = parseRemoveInterceptParameters; - function parseSetCacheBehaviorParameters(params) { - return parseObject(params, WebDriverBidi.Network.SetCacheBehaviorParametersSchema); - } - Network.parseSetCacheBehaviorParameters = parseSetCacheBehaviorParameters; - function parseSetExtraHeadersParameters(params) { - return parseObject(params, WebDriverBidi.Network.SetExtraHeadersParametersSchema); - } - Network.parseSetExtraHeadersParameters = parseSetExtraHeadersParameters; - // keep-sorted end -})(Network || (exports.Network = Network = {})); -/** @see https://w3c.github.io/webdriver-bidi/#module-script */ -var Script; -(function (Script) { - // keep-sorted start block=yes - function parseAddPreloadScriptParams(params) { - return parseObject(params, WebDriverBidi.Script.AddPreloadScriptParametersSchema); - } - Script.parseAddPreloadScriptParams = parseAddPreloadScriptParams; - function parseCallFunctionParams(params) { - return parseObject(params, WebDriverBidi.Script.CallFunctionParametersSchema); - } - Script.parseCallFunctionParams = parseCallFunctionParams; - function parseDisownParams(params) { - return parseObject(params, WebDriverBidi.Script.DisownParametersSchema); - } - Script.parseDisownParams = parseDisownParams; - function parseEvaluateParams(params) { - return parseObject(params, WebDriverBidi.Script.EvaluateParametersSchema); - } - Script.parseEvaluateParams = parseEvaluateParams; - function parseGetRealmsParams(params) { - return parseObject(params, WebDriverBidi.Script.GetRealmsParametersSchema); - } - Script.parseGetRealmsParams = parseGetRealmsParams; - function parseRemovePreloadScriptParams(params) { - return parseObject(params, WebDriverBidi.Script.RemovePreloadScriptParametersSchema); - } - Script.parseRemovePreloadScriptParams = parseRemovePreloadScriptParams; - // keep-sorted end -})(Script || (exports.Script = Script = {})); -/** @see https://w3c.github.io/webdriver-bidi/#module-browsingContext */ -var BrowsingContext; -(function (BrowsingContext) { - // keep-sorted start block=yes - function parseActivateParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.ActivateParametersSchema); - } - BrowsingContext.parseActivateParams = parseActivateParams; - function parseCaptureScreenshotParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.CaptureScreenshotParametersSchema); - } - BrowsingContext.parseCaptureScreenshotParams = parseCaptureScreenshotParams; - function parseCloseParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.CloseParametersSchema); - } - BrowsingContext.parseCloseParams = parseCloseParams; - function parseCreateParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.CreateParametersSchema); - } - BrowsingContext.parseCreateParams = parseCreateParams; - function parseGetTreeParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.GetTreeParametersSchema); - } - BrowsingContext.parseGetTreeParams = parseGetTreeParams; - function parseHandleUserPromptParameters(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.HandleUserPromptParametersSchema); - } - BrowsingContext.parseHandleUserPromptParameters = parseHandleUserPromptParameters; - function parseLocateNodesParams(params) { - // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. - return parseObject(params, WebDriverBidi.BrowsingContext.LocateNodesParametersSchema); - } - BrowsingContext.parseLocateNodesParams = parseLocateNodesParams; - function parseNavigateParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.NavigateParametersSchema); - } - BrowsingContext.parseNavigateParams = parseNavigateParams; - function parsePrintParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.PrintParametersSchema); - } - BrowsingContext.parsePrintParams = parsePrintParams; - function parseReloadParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.ReloadParametersSchema); - } - BrowsingContext.parseReloadParams = parseReloadParams; - function parseSetViewportParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.SetViewportParametersSchema); - } - BrowsingContext.parseSetViewportParams = parseSetViewportParams; - function parseTraverseHistoryParams(params) { - return parseObject(params, WebDriverBidi.BrowsingContext.TraverseHistoryParametersSchema); - } - BrowsingContext.parseTraverseHistoryParams = parseTraverseHistoryParams; - // keep-sorted end -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -/** @see https://w3c.github.io/webdriver-bidi/#module-session */ -var Session; -(function (Session) { - // keep-sorted start block=yes - function parseSubscribeParams(params) { - return parseObject(params, WebDriverBidi.Session.SubscribeParametersSchema); - } - Session.parseSubscribeParams = parseSubscribeParams; - function parseUnsubscribeParams(params) { - if (params && typeof params === 'object' && 'subscriptions' in params) { - return parseObject(params, WebDriverBidi.Session.UnsubscribeByIdRequestSchema); - } - return parseObject(params, WebDriverBidi.Session.UnsubscribeParametersSchema); - } - Session.parseUnsubscribeParams = parseUnsubscribeParams; - // keep-sorted end -})(Session || (exports.Session = Session = {})); -var Emulation; -(function (Emulation) { - // keep-sorted start block=yes - function parseSetClientHintsOverrideParams(params) { - const SetClientHintsOverrideParametersSchema = zod_1.z.object({ - clientHints: zod_1.z.union([ - WebDriverBidiUAClientHints.UserAgentClientHints - .ClientHintsMetadataSchema, - zod_1.z.null(), - ]), - contexts: zod_1.z.array(zod_1.z.string()).min(1).optional(), - userContexts: zod_1.z.array(zod_1.z.string()).min(1).optional(), - }); - return parseObject(params, SetClientHintsOverrideParametersSchema); - } - Emulation.parseSetClientHintsOverrideParams = parseSetClientHintsOverrideParams; - function parseSetForcedColorsModeThemeOverrideParams(params) { - return parseObject(params, WebDriverBidi.Emulation.SetForcedColorsModeThemeOverrideParametersSchema); - } - Emulation.parseSetForcedColorsModeThemeOverrideParams = parseSetForcedColorsModeThemeOverrideParams; - function parseSetGeolocationOverrideParams(params) { - if ('coordinates' in params && 'error' in params) { - // Zod picks the first matching parameter omitting the other. In this case, the - // `parseObject` will remove `error` from the params. However, specification - // requires to throw an exception. - throw new protocol_js_1.InvalidArgumentException('Coordinates and error cannot be set at the same time'); - } - return parseObject(params, WebDriverBidi.Emulation.SetGeolocationOverrideParametersSchema); - } - Emulation.parseSetGeolocationOverrideParams = parseSetGeolocationOverrideParams; - function parseSetLocaleOverrideParams(params) { - return parseObject(params, WebDriverBidi.Emulation.SetLocaleOverrideParametersSchema); - } - Emulation.parseSetLocaleOverrideParams = parseSetLocaleOverrideParams; - function parseSetNetworkConditionsParams(params) { - return parseObject(params, WebDriverBidi.Emulation.SetNetworkConditionsParametersSchema); - } - Emulation.parseSetNetworkConditionsParams = parseSetNetworkConditionsParams; - function parseSetScreenOrientationOverrideParams(params) { - return parseObject(params, WebDriverBidi.Emulation.SetScreenOrientationOverrideParametersSchema); - } - Emulation.parseSetScreenOrientationOverrideParams = parseSetScreenOrientationOverrideParams; - function parseSetScreenSettingsOverrideParams(params) { - return parseObject(params, WebDriverBidi.Emulation.SetScreenSettingsOverrideParametersSchema); - } - Emulation.parseSetScreenSettingsOverrideParams = parseSetScreenSettingsOverrideParams; - function parseSetScriptingEnabledParams(params) { - return parseObject(params, WebDriverBidi.Emulation.SetScriptingEnabledParametersSchema); - } - Emulation.parseSetScriptingEnabledParams = parseSetScriptingEnabledParams; - function parseSetTimezoneOverrideParams(params) { - return parseObject(params, WebDriverBidi.Emulation.SetTimezoneOverrideParametersSchema); - } - Emulation.parseSetTimezoneOverrideParams = parseSetTimezoneOverrideParams; - function parseSetTouchOverrideParams(params) { - return parseObject(params, WebDriverBidi.Emulation.SetTouchOverrideParametersSchema); - } - Emulation.parseSetTouchOverrideParams = parseSetTouchOverrideParams; - function parseSetUserAgentOverrideParams(params) { - return parseObject(params, WebDriverBidi.Emulation.SetUserAgentOverrideParametersSchema); - } - Emulation.parseSetUserAgentOverrideParams = parseSetUserAgentOverrideParams; - // keep-sorted end -})(Emulation || (exports.Emulation = Emulation = {})); -var Input; -(function (Input) { - // keep-sorted start block=yes - function parsePerformActionsParams(params) { - return parseObject(params, WebDriverBidi.Input.PerformActionsParametersSchema); - } - Input.parsePerformActionsParams = parsePerformActionsParams; - function parseReleaseActionsParams(params) { - return parseObject(params, WebDriverBidi.Input.ReleaseActionsParametersSchema); - } - Input.parseReleaseActionsParams = parseReleaseActionsParams; - function parseSetFilesParams(params) { - return parseObject(params, WebDriverBidi.Input.SetFilesParametersSchema); - } - Input.parseSetFilesParams = parseSetFilesParams; - // keep-sorted end -})(Input || (exports.Input = Input = {})); -var Storage; -(function (Storage) { - // keep-sorted start block=yes - function parseDeleteCookiesParams(params) { - // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. - // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is - // of type `"none" | "strict" | "lax"` which is not assignable to generated enum - // `SameSite` in `src/protocol/webdriver-bidi.ts`. - // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. - return parseObject(params, WebDriverBidi.Storage.DeleteCookiesParametersSchema); - } - Storage.parseDeleteCookiesParams = parseDeleteCookiesParams; - function parseGetCookiesParams(params) { - // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. - // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is - // of type `"none" | "strict" | "lax"` which is not assignable to generated enum - // `SameSite` in `src/protocol/webdriver-bidi.ts`. - // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. - return parseObject(params, WebDriverBidi.Storage.GetCookiesParametersSchema); - } - Storage.parseGetCookiesParams = parseGetCookiesParams; - function parseSetCookieParams(params) { - // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. - // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is - // of type `"none" | "strict" | "lax"` which is not assignable to generated enum - // `SameSite` in `src/protocol/webdriver-bidi.ts`. - // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. - return parseObject(params, WebDriverBidi.Storage.SetCookieParametersSchema); - } - Storage.parseSetCookieParams = parseSetCookieParams; - // keep-sorted end -})(Storage || (exports.Storage = Storage = {})); -var Cdp; -(function (Cdp) { - // keep-sorted start block=yes - const GetSessionRequestSchema = zod_1.z.object({ - context: WebDriverBidi.BrowsingContext.BrowsingContextSchema, - }); - const ResolveRealmRequestSchema = zod_1.z.object({ - realm: WebDriverBidi.Script.RealmSchema, - }); - const SendCommandRequestSchema = zod_1.z.object({ - // Allowing any cdpMethod, and casting to proper type later on. - method: zod_1.z.string(), - // `passthrough` allows object to have any fields. - // https://github.com/colinhacks/zod#passthrough - params: zod_1.z.object({}).passthrough().optional(), - session: zod_1.z.string().optional(), - }); - function parseGetSessionRequest(params) { - return parseObject(params, GetSessionRequestSchema); - } - Cdp.parseGetSessionRequest = parseGetSessionRequest; - function parseResolveRealmRequest(params) { - return parseObject(params, ResolveRealmRequestSchema); - } - Cdp.parseResolveRealmRequest = parseResolveRealmRequest; - function parseSendCommandRequest(params) { - return parseObject(params, SendCommandRequestSchema); - } - Cdp.parseSendCommandRequest = parseSendCommandRequest; - // keep-sorted end -})(Cdp || (exports.Cdp = Cdp = {})); -var Permissions; -(function (Permissions) { - // keep-sorted start block=yes - function parseSetPermissionsParams(params) { - return { - // TODO: remove once "goog:" attributes are not needed. - ...params, - ...parseObject(params, WebDriverBidiPermissions.Permissions.SetPermissionParametersSchema), - }; - } - Permissions.parseSetPermissionsParams = parseSetPermissionsParams; - // keep-sorted end -})(Permissions || (exports.Permissions = Permissions = {})); -var Bluetooth; -(function (Bluetooth) { - // keep-sorted start block=yes - function parseDisableSimulationParameters(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth.DisableSimulationParametersSchema); - } - Bluetooth.parseDisableSimulationParameters = parseDisableSimulationParameters; - function parseHandleRequestDevicePromptParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth - .HandleRequestDevicePromptParametersSchema); - } - Bluetooth.parseHandleRequestDevicePromptParams = parseHandleRequestDevicePromptParams; - function parseSimulateAdapterParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth.SimulateAdapterParametersSchema); - } - Bluetooth.parseSimulateAdapterParams = parseSimulateAdapterParams; - function parseSimulateAdvertisementParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth.SimulateAdvertisementParametersSchema); - } - Bluetooth.parseSimulateAdvertisementParams = parseSimulateAdvertisementParams; - function parseSimulateCharacteristicParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth.SimulateCharacteristicParametersSchema); - } - Bluetooth.parseSimulateCharacteristicParams = parseSimulateCharacteristicParams; - function parseSimulateCharacteristicResponseParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth - .SimulateCharacteristicResponseParametersSchema); - } - Bluetooth.parseSimulateCharacteristicResponseParams = parseSimulateCharacteristicResponseParams; - function parseSimulateDescriptorParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth.SimulateDescriptorParametersSchema); - } - Bluetooth.parseSimulateDescriptorParams = parseSimulateDescriptorParams; - function parseSimulateDescriptorResponseParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth - .SimulateDescriptorResponseParametersSchema); - } - Bluetooth.parseSimulateDescriptorResponseParams = parseSimulateDescriptorResponseParams; - function parseSimulateGattConnectionResponseParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth - .SimulateGattConnectionResponseParametersSchema); - } - Bluetooth.parseSimulateGattConnectionResponseParams = parseSimulateGattConnectionResponseParams; - function parseSimulateGattDisconnectionParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth - .SimulateGattDisconnectionParametersSchema); - } - Bluetooth.parseSimulateGattDisconnectionParams = parseSimulateGattDisconnectionParams; - function parseSimulatePreconnectedPeripheralParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth - .SimulatePreconnectedPeripheralParametersSchema); - } - Bluetooth.parseSimulatePreconnectedPeripheralParams = parseSimulatePreconnectedPeripheralParams; - function parseSimulateServiceParams(params) { - return parseObject(params, WebDriverBidiBluetooth.Bluetooth.SimulateServiceParametersSchema); - } - Bluetooth.parseSimulateServiceParams = parseSimulateServiceParams; - // keep-sorted end -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -/** @see https://w3c.github.io/webdriver-bidi/#module-webExtension */ -var WebModule; -(function (WebModule) { - // keep-sorted start block=yes - function parseInstallParams(params) { - return parseObject(params, WebDriverBidi.WebExtension.InstallParametersSchema); - } - WebModule.parseInstallParams = parseInstallParams; - function parseUninstallParams(params) { - return parseObject(params, WebDriverBidi.WebExtension.UninstallParametersSchema); - } - WebModule.parseUninstallParams = parseUninstallParams; - // keep-sorted end -})(WebModule || (exports.WebModule = WebModule = {})); -//# sourceMappingURL=protocol-parser.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js.map b/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js.map deleted file mode 100644 index 4df4228..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"protocol-parser.js","sourceRoot":"","sources":["../../../src/protocol-parser/protocol-parser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBH,kCAiBC;AA/BD;;;GAGG;AACH,6BAAoC;AAGpC,yDAAiE;AAEjE,gGAAkF;AAClF,oGAAsF;AACtF,0GAA4F;AAC5F,6EAA+D;AAE/D,SAAgB,WAAW,CACzB,GAAY,EACZ,MAAS;IAET,MAAM,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC1C,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;QACxB,OAAO,WAAW,CAAC,IAAI,CAAC;IAC1B,CAAC;IACD,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,CAAC,MAAM;SAC1C,GAAG,CACF,CAAC,CAAC,EAAE,EAAE,CACJ,GAAG,CAAC,CAAC,OAAO,MAAM;QAClB,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAU,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAChE;SACA,IAAI,CAAC,GAAG,CAAC,CAAC;IA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AAC,SAAS;aAC7B,8CAA8C,CACa,CAAC;IACnE,CAAC;IARe,mDAAyC,4CAQxD,CAAA;IACD,SAAgB,0BAA0B,CACxC,MAAe;QAEf,OAAO,WAAW,CAChB,MAAM,EACN,sBAAsB,CAAC,SAAS,CAAC,+BAA+B,CACjB,CAAC;IACpD,CAAC;IAPe,oCAA0B,6BAOzC,CAAA;IACD,kBAAkB;AACpB,CAAC,EA1GgB,SAAS,yBAAT,SAAS,QA0GzB;AAED,qEAAqE;AACrE,IAAiB,SAAS,CAoBzB;AApBD,WAAiB,SAAS;IACxB,8BAA8B;IAE9B,SAAgB,kBAAkB,CAChC,MAAe;QAEf,OAAO,WAAW,CAChB,MAAM,EACN,aAAa,CAAC,YAAY,CAAC,uBAAuB,CACnD,CAAC;IACJ,CAAC;IAPe,4BAAkB,qBAOjC,CAAA;IACD,SAAgB,oBAAoB,CAClC,MAAe;QAEf,OAAO,WAAW,CAChB,MAAM,EACN,aAAa,CAAC,YAAY,CAAC,yBAAyB,CACrD,CAAC;IACJ,CAAC;IAPe,8BAAoB,uBAOnC,CAAA;IACD,kBAAkB;AACpB,CAAC,EApBgB,SAAS,yBAAT,SAAS,QAoBzB"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.d.ts deleted file mode 100644 index e58c83e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.d.ts +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { ErrorResponse } from './generated/webdriver-bidi.js'; -import { ErrorCode } from './generated/webdriver-bidi.js'; -export declare class Exception extends Error { - error: ErrorCode; - message: string; - stacktrace?: string | undefined; - constructor(error: ErrorCode, message: string, stacktrace?: string | undefined); - toErrorResponse(commandId: number): ErrorResponse; -} -export declare class InvalidArgumentException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class InvalidSelectorException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class InvalidSessionIdException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class MoveTargetOutOfBoundsException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchAlertException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchElementException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchFrameException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchHandleException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchHistoryEntryException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchInterceptException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchNodeException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchRequestException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchScriptException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchUserContextException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class SessionNotCreatedException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class UnknownCommandException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class UnknownErrorException extends Exception { - constructor(message: string, stacktrace?: string | undefined); -} -export declare class UnableToCaptureScreenException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class UnableToCloseBrowserException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class UnsupportedOperationException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchStoragePartitionException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class UnableToSetCookieException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class UnableToSetFileInputException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class UnderspecifiedStoragePartitionException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class InvalidWebExtensionException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchWebExtensionException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchNetworkCollectorException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class NoSuchNetworkDataException extends Exception { - constructor(message: string, stacktrace?: string); -} -export declare class UnavailableNetworkDataException extends Exception { - constructor(message: string, stacktrace?: string); -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js b/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js deleted file mode 100644 index 583f500..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js +++ /dev/null @@ -1,199 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnavailableNetworkDataException = exports.NoSuchNetworkDataException = exports.NoSuchNetworkCollectorException = exports.NoSuchWebExtensionException = exports.InvalidWebExtensionException = exports.UnderspecifiedStoragePartitionException = exports.UnableToSetFileInputException = exports.UnableToSetCookieException = exports.NoSuchStoragePartitionException = exports.UnsupportedOperationException = exports.UnableToCloseBrowserException = exports.UnableToCaptureScreenException = exports.UnknownErrorException = exports.UnknownCommandException = exports.SessionNotCreatedException = exports.NoSuchUserContextException = exports.NoSuchScriptException = exports.NoSuchRequestException = exports.NoSuchNodeException = exports.NoSuchInterceptException = exports.NoSuchHistoryEntryException = exports.NoSuchHandleException = exports.NoSuchFrameException = exports.NoSuchElementException = exports.NoSuchAlertException = exports.MoveTargetOutOfBoundsException = exports.InvalidSessionIdException = exports.InvalidSelectorException = exports.InvalidArgumentException = exports.Exception = void 0; -class Exception extends Error { - error; - message; - stacktrace; - constructor(error, message, stacktrace) { - super(); - this.error = error; - this.message = message; - this.stacktrace = stacktrace; - } - toErrorResponse(commandId) { - return { - type: 'error', - id: commandId, - error: this.error, - message: this.message, - stacktrace: this.stacktrace, - }; - } -} -exports.Exception = Exception; -class InvalidArgumentException extends Exception { - constructor(message, stacktrace) { - super("invalid argument" /* ErrorCode.InvalidArgument */, message, stacktrace); - } -} -exports.InvalidArgumentException = InvalidArgumentException; -class InvalidSelectorException extends Exception { - constructor(message, stacktrace) { - super("invalid selector" /* ErrorCode.InvalidSelector */, message, stacktrace); - } -} -exports.InvalidSelectorException = InvalidSelectorException; -class InvalidSessionIdException extends Exception { - constructor(message, stacktrace) { - super("invalid session id" /* ErrorCode.InvalidSessionId */, message, stacktrace); - } -} -exports.InvalidSessionIdException = InvalidSessionIdException; -class MoveTargetOutOfBoundsException extends Exception { - constructor(message, stacktrace) { - super("move target out of bounds" /* ErrorCode.MoveTargetOutOfBounds */, message, stacktrace); - } -} -exports.MoveTargetOutOfBoundsException = MoveTargetOutOfBoundsException; -class NoSuchAlertException extends Exception { - constructor(message, stacktrace) { - super("no such alert" /* ErrorCode.NoSuchAlert */, message, stacktrace); - } -} -exports.NoSuchAlertException = NoSuchAlertException; -class NoSuchElementException extends Exception { - constructor(message, stacktrace) { - super("no such element" /* ErrorCode.NoSuchElement */, message, stacktrace); - } -} -exports.NoSuchElementException = NoSuchElementException; -class NoSuchFrameException extends Exception { - constructor(message, stacktrace) { - super("no such frame" /* ErrorCode.NoSuchFrame */, message, stacktrace); - } -} -exports.NoSuchFrameException = NoSuchFrameException; -class NoSuchHandleException extends Exception { - constructor(message, stacktrace) { - super("no such handle" /* ErrorCode.NoSuchHandle */, message, stacktrace); - } -} -exports.NoSuchHandleException = NoSuchHandleException; -class NoSuchHistoryEntryException extends Exception { - constructor(message, stacktrace) { - super("no such history entry" /* ErrorCode.NoSuchHistoryEntry */, message, stacktrace); - } -} -exports.NoSuchHistoryEntryException = NoSuchHistoryEntryException; -class NoSuchInterceptException extends Exception { - constructor(message, stacktrace) { - super("no such intercept" /* ErrorCode.NoSuchIntercept */, message, stacktrace); - } -} -exports.NoSuchInterceptException = NoSuchInterceptException; -class NoSuchNodeException extends Exception { - constructor(message, stacktrace) { - super("no such node" /* ErrorCode.NoSuchNode */, message, stacktrace); - } -} -exports.NoSuchNodeException = NoSuchNodeException; -class NoSuchRequestException extends Exception { - constructor(message, stacktrace) { - super("no such request" /* ErrorCode.NoSuchRequest */, message, stacktrace); - } -} -exports.NoSuchRequestException = NoSuchRequestException; -class NoSuchScriptException extends Exception { - constructor(message, stacktrace) { - super("no such script" /* ErrorCode.NoSuchScript */, message, stacktrace); - } -} -exports.NoSuchScriptException = NoSuchScriptException; -class NoSuchUserContextException extends Exception { - constructor(message, stacktrace) { - super("no such user context" /* ErrorCode.NoSuchUserContext */, message, stacktrace); - } -} -exports.NoSuchUserContextException = NoSuchUserContextException; -class SessionNotCreatedException extends Exception { - constructor(message, stacktrace) { - super("session not created" /* ErrorCode.SessionNotCreated */, message, stacktrace); - } -} -exports.SessionNotCreatedException = SessionNotCreatedException; -class UnknownCommandException extends Exception { - constructor(message, stacktrace) { - super("unknown command" /* ErrorCode.UnknownCommand */, message, stacktrace); - } -} -exports.UnknownCommandException = UnknownCommandException; -class UnknownErrorException extends Exception { - constructor(message, stacktrace = new Error().stack) { - super("unknown error" /* ErrorCode.UnknownError */, message, stacktrace); - } -} -exports.UnknownErrorException = UnknownErrorException; -class UnableToCaptureScreenException extends Exception { - constructor(message, stacktrace) { - super("unable to capture screen" /* ErrorCode.UnableToCaptureScreen */, message, stacktrace); - } -} -exports.UnableToCaptureScreenException = UnableToCaptureScreenException; -class UnableToCloseBrowserException extends Exception { - constructor(message, stacktrace) { - super("unable to close browser" /* ErrorCode.UnableToCloseBrowser */, message, stacktrace); - } -} -exports.UnableToCloseBrowserException = UnableToCloseBrowserException; -class UnsupportedOperationException extends Exception { - constructor(message, stacktrace) { - super("unsupported operation" /* ErrorCode.UnsupportedOperation */, message, stacktrace); - } -} -exports.UnsupportedOperationException = UnsupportedOperationException; -class NoSuchStoragePartitionException extends Exception { - constructor(message, stacktrace) { - super("no such storage partition" /* ErrorCode.NoSuchStoragePartition */, message, stacktrace); - } -} -exports.NoSuchStoragePartitionException = NoSuchStoragePartitionException; -class UnableToSetCookieException extends Exception { - constructor(message, stacktrace) { - super("unable to set cookie" /* ErrorCode.UnableToSetCookie */, message, stacktrace); - } -} -exports.UnableToSetCookieException = UnableToSetCookieException; -class UnableToSetFileInputException extends Exception { - constructor(message, stacktrace) { - super("unable to set file input" /* ErrorCode.UnableToSetFileInput */, message, stacktrace); - } -} -exports.UnableToSetFileInputException = UnableToSetFileInputException; -class UnderspecifiedStoragePartitionException extends Exception { - constructor(message, stacktrace) { - super("underspecified storage partition" /* ErrorCode.UnderspecifiedStoragePartition */, message, stacktrace); - } -} -exports.UnderspecifiedStoragePartitionException = UnderspecifiedStoragePartitionException; -class InvalidWebExtensionException extends Exception { - constructor(message, stacktrace) { - super("invalid web extension" /* ErrorCode.InvalidWebExtension */, message, stacktrace); - } -} -exports.InvalidWebExtensionException = InvalidWebExtensionException; -class NoSuchWebExtensionException extends Exception { - constructor(message, stacktrace) { - super("no such web extension" /* ErrorCode.NoSuchWebExtension */, message, stacktrace); - } -} -exports.NoSuchWebExtensionException = NoSuchWebExtensionException; -class NoSuchNetworkCollectorException extends Exception { - constructor(message, stacktrace) { - super("no such network collector" /* ErrorCode.NoSuchNetworkCollector */, message, stacktrace); - } -} -exports.NoSuchNetworkCollectorException = NoSuchNetworkCollectorException; -class NoSuchNetworkDataException extends Exception { - constructor(message, stacktrace) { - super("no such network data" /* ErrorCode.NoSuchNetworkData */, message, stacktrace); - } -} -exports.NoSuchNetworkDataException = NoSuchNetworkDataException; -class UnavailableNetworkDataException extends Exception { - constructor(message, stacktrace) { - super("unavailable network data" /* ErrorCode.UnavailableNetworkData */, message, stacktrace); - } -} -exports.UnavailableNetworkDataException = UnavailableNetworkDataException; -//# sourceMappingURL=ErrorResponse.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js.map b/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js.map deleted file mode 100644 index afe6e8c..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorResponse.js","sourceRoot":"","sources":["../../../src/protocol/ErrorResponse.ts"],"names":[],"mappings":";;;AAmBA,MAAa,SAAU,SAAQ,KAAK;IAEzB;IACS;IACT;IAHT,YACS,KAAgB,EACP,OAAe,EACxB,UAAmB;QAE1B,KAAK,EAAE,CAAC;QAJD,UAAK,GAAL,KAAK,CAAW;QACP,YAAO,GAAP,OAAO,CAAQ;QACxB,eAAU,GAAV,UAAU,CAAS;IAG5B,CAAC;IAED,eAAe,CAAC,SAAiB;QAC/B,OAAO;YACL,IAAI,EAAE,OAAO;YACb,EAAE,EAAE,SAAS;YACb,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC;IACJ,CAAC;CACF;AAlBD,8BAkBC;AAED,MAAa,wBAAyB,SAAQ,SAAS;IACrD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,qDAA4B,OAAO,EAAE,UAAU,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,4DAIC;AAED,MAAa,wBAAyB,SAAQ,SAAS;IACrD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,qDAA4B,OAAO,EAAE,UAAU,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,4DAIC;AAED,MAAa,yBAA0B,SAAQ,SAAS;IACtD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,wDAA6B,OAAO,EAAE,UAAU,CAAC,CAAC;IACzD,CAAC;CACF;AAJD,8DAIC;AAED,MAAa,8BAA+B,SAAQ,SAAS;IAC3D,YAAY,OAAe,EAAE,UAAmB;QAC9C,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C,KAAK,oEAAmC,OAAO,EAAE,UAAU,CAAC,CAAC;IAC/D,CAAC;CACF;AAJD,0EAIC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/cdp.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol/cdp.d.ts deleted file mode 100644 index 2a8b8f5..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/cdp.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js'; -import type { BrowsingContext, JsUint, Script } from './generated/webdriver-bidi.js'; -export type EventNames = Event['method']; -export type Message = CommandResponse | Event; -export type Command = { - id: JsUint; -} & CommandData; -export type CommandData = SendCommandCommand | GetSessionCommand | ResolveRealmCommand; -export interface CommandResponse { - type: 'success'; - id: JsUint; - result: ResultData; -} -export type ResultData = SendCommandResult | GetSessionResult | ResolveRealmResult; -export interface SendCommandCommand { - method: 'goog:cdp.sendCommand'; - params: SendCommandParameters; -} -export interface SendCommandParameters { - method: Command; - params?: ProtocolMapping.Commands[Command]['paramsType'][0]; - session?: Protocol.Target.SessionID; -} -export interface SendCommandResult { - result: ProtocolMapping.Commands[keyof ProtocolMapping.Commands]['returnType']; - session?: Protocol.Target.SessionID; -} -export interface GetSessionCommand { - method: 'goog:cdp.getSession'; - params: GetSessionParameters; -} -export interface GetSessionParameters { - context: BrowsingContext.BrowsingContext; -} -export interface GetSessionResult { - session?: Protocol.Target.SessionID; -} -export interface ResolveRealmCommand { - method: 'goog:cdp.resolveRealm'; - params: ResolveRealmParameters; -} -export interface ResolveRealmParameters { - realm: Script.Realm; -} -export interface ResolveRealmResult { - executionContextId: Protocol.Runtime.ExecutionContextId; -} -export type Event = { - type: 'event'; -} & EventData; -export type EventData = EventDataFor; -export interface EventDataFor { - method: `goog:cdp.${EventName}`; - params: EventParametersFor; -} -export interface EventParametersFor { - event: EventName; - params: ProtocolMapping.Events[EventName][0]; - session: Protocol.Target.SessionID; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js b/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js deleted file mode 100644 index 6d0d17c..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=cdp.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js.map b/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js.map deleted file mode 100644 index 8a311df..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cdp.js","sourceRoot":"","sources":["../../../src/protocol/cdp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.d.ts deleted file mode 100644 index 64c3ff5..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.d.ts +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type * as Cdp from './cdp.js'; -import type * as WebDriverBidiBluetooth from './generated/webdriver-bidi-bluetooth.js'; -import type * as WebDriverBidiSpeculation from './generated/webdriver-bidi-nav-speculation.ts'; -import type * as WebDriverBidiPermissions from './generated/webdriver-bidi-permissions.js'; -import type * as WebDriverBidiUAClientHints from './generated/webdriver-bidi-ua-client-hints.js'; -import type * as WebDriverBidi from './generated/webdriver-bidi.js'; -export type EventNames = Cdp.EventNames | `${BiDiModule}` | `${Bluetooth.EventNames}` | `${BrowsingContext.EventNames}` | `${Input.EventNames}` | `${Log.EventNames}` | `${Network.EventNames}` | `${Script.EventNames}` | `${Speculation.EventNames}`; -export declare enum BiDiModule { - Bluetooth = "bluetooth", - Browser = "browser", - BrowsingContext = "browsingContext", - Cdp = "goog:cdp", - Input = "input", - Log = "log", - Network = "network", - Script = "script", - Session = "session", - Speculation = "speculation" -} -export declare namespace Script { - enum EventNames { - Message = "script.message", - RealmCreated = "script.realmCreated", - RealmDestroyed = "script.realmDestroyed" - } -} -export declare namespace Log { - enum EventNames { - LogEntryAdded = "log.entryAdded" - } -} -export declare namespace BrowsingContext { - enum EventNames { - ContextCreated = "browsingContext.contextCreated", - ContextDestroyed = "browsingContext.contextDestroyed", - DomContentLoaded = "browsingContext.domContentLoaded", - DownloadEnd = "browsingContext.downloadEnd", - DownloadWillBegin = "browsingContext.downloadWillBegin", - FragmentNavigated = "browsingContext.fragmentNavigated", - HistoryUpdated = "browsingContext.historyUpdated", - Load = "browsingContext.load", - NavigationAborted = "browsingContext.navigationAborted", - NavigationCommitted = "browsingContext.navigationCommitted", - NavigationFailed = "browsingContext.navigationFailed", - NavigationStarted = "browsingContext.navigationStarted", - UserPromptClosed = "browsingContext.userPromptClosed", - UserPromptOpened = "browsingContext.userPromptOpened" - } -} -export declare namespace Input { - enum EventNames { - FileDialogOpened = "input.fileDialogOpened" - } -} -export declare namespace Network { - enum EventNames { - AuthRequired = "network.authRequired", - BeforeRequestSent = "network.beforeRequestSent", - FetchError = "network.fetchError", - ResponseCompleted = "network.responseCompleted", - ResponseStarted = "network.responseStarted" - } -} -export declare namespace Bluetooth { - enum EventNames { - RequestDevicePromptUpdated = "bluetooth.requestDevicePromptUpdated", - GattConnectionAttempted = "bluetooth.gattConnectionAttempted", - CharacteristicEventGenerated = "bluetooth.characteristicEventGenerated", - DescriptorEventGenerated = "bluetooth.descriptorEventGenerated" - } -} -export declare namespace Speculation { - enum EventNames { - PrefetchStatusUpdated = "speculation.prefetchStatusUpdated" - } -} -type ExternalSpecCommand = { - id: WebDriverBidi.JsUint; -} & T; -type ExternalSpecEvent = { - type: 'event'; -} & T & WebDriverBidi.Extensible; -export type Command = (WebDriverBidi.Command | Cdp.Command | ExternalSpecCommand | ExternalSpecCommand | ExternalSpecCommand) & { - 'goog:channel'?: GoogChannel; -}; -export type CommandResponse = WebDriverBidi.CommandResponse | Cdp.CommandResponse; -export type BluetoothEvent = ExternalSpecEvent | ExternalSpecEvent | ExternalSpecEvent | ExternalSpecEvent; -export type SpeculationEvent = ExternalSpecEvent; -export type Event = WebDriverBidi.Event | Cdp.Event | BluetoothEvent | SpeculationEvent; -export declare const EVENT_NAMES: Set; -export type ResultData = WebDriverBidi.ResultData | Cdp.ResultData; -export type GoogChannel = string | null; -export type Message = (WebDriverBidi.Message | Cdp.Message | BluetoothEvent | SpeculationEvent) & { - 'goog:channel'?: GoogChannel; -}; -export {}; diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js b/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js deleted file mode 100644 index d405c75..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EVENT_NAMES = exports.Speculation = exports.Bluetooth = exports.Network = exports.Input = exports.BrowsingContext = exports.Log = exports.Script = exports.BiDiModule = void 0; -// keep-sorted end -var BiDiModule; -(function (BiDiModule) { - // keep-sorted start - BiDiModule["Bluetooth"] = "bluetooth"; - BiDiModule["Browser"] = "browser"; - BiDiModule["BrowsingContext"] = "browsingContext"; - BiDiModule["Cdp"] = "goog:cdp"; - BiDiModule["Input"] = "input"; - BiDiModule["Log"] = "log"; - BiDiModule["Network"] = "network"; - BiDiModule["Script"] = "script"; - BiDiModule["Session"] = "session"; - BiDiModule["Speculation"] = "speculation"; - // keep-sorted end -})(BiDiModule || (exports.BiDiModule = BiDiModule = {})); -var Script; -(function (Script) { - let EventNames; - (function (EventNames) { - // keep-sorted start - EventNames["Message"] = "script.message"; - EventNames["RealmCreated"] = "script.realmCreated"; - EventNames["RealmDestroyed"] = "script.realmDestroyed"; - // keep-sorted end - })(EventNames = Script.EventNames || (Script.EventNames = {})); -})(Script || (exports.Script = Script = {})); -var Log; -(function (Log) { - let EventNames; - (function (EventNames) { - EventNames["LogEntryAdded"] = "log.entryAdded"; - })(EventNames = Log.EventNames || (Log.EventNames = {})); -})(Log || (exports.Log = Log = {})); -var BrowsingContext; -(function (BrowsingContext) { - let EventNames; - (function (EventNames) { - // keep-sorted start - EventNames["ContextCreated"] = "browsingContext.contextCreated"; - EventNames["ContextDestroyed"] = "browsingContext.contextDestroyed"; - EventNames["DomContentLoaded"] = "browsingContext.domContentLoaded"; - EventNames["DownloadEnd"] = "browsingContext.downloadEnd"; - EventNames["DownloadWillBegin"] = "browsingContext.downloadWillBegin"; - EventNames["FragmentNavigated"] = "browsingContext.fragmentNavigated"; - EventNames["HistoryUpdated"] = "browsingContext.historyUpdated"; - EventNames["Load"] = "browsingContext.load"; - EventNames["NavigationAborted"] = "browsingContext.navigationAborted"; - EventNames["NavigationCommitted"] = "browsingContext.navigationCommitted"; - EventNames["NavigationFailed"] = "browsingContext.navigationFailed"; - EventNames["NavigationStarted"] = "browsingContext.navigationStarted"; - EventNames["UserPromptClosed"] = "browsingContext.userPromptClosed"; - EventNames["UserPromptOpened"] = "browsingContext.userPromptOpened"; - // keep-sorted end - })(EventNames = BrowsingContext.EventNames || (BrowsingContext.EventNames = {})); -})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); -var Input; -(function (Input) { - let EventNames; - (function (EventNames) { - // keep-sorted start - EventNames["FileDialogOpened"] = "input.fileDialogOpened"; - // keep-sorted end - })(EventNames = Input.EventNames || (Input.EventNames = {})); -})(Input || (exports.Input = Input = {})); -var Network; -(function (Network) { - let EventNames; - (function (EventNames) { - // keep-sorted start - EventNames["AuthRequired"] = "network.authRequired"; - EventNames["BeforeRequestSent"] = "network.beforeRequestSent"; - EventNames["FetchError"] = "network.fetchError"; - EventNames["ResponseCompleted"] = "network.responseCompleted"; - EventNames["ResponseStarted"] = "network.responseStarted"; - // keep-sorted end - })(EventNames = Network.EventNames || (Network.EventNames = {})); -})(Network || (exports.Network = Network = {})); -var Bluetooth; -(function (Bluetooth) { - let EventNames; - (function (EventNames) { - EventNames["RequestDevicePromptUpdated"] = "bluetooth.requestDevicePromptUpdated"; - EventNames["GattConnectionAttempted"] = "bluetooth.gattConnectionAttempted"; - EventNames["CharacteristicEventGenerated"] = "bluetooth.characteristicEventGenerated"; - EventNames["DescriptorEventGenerated"] = "bluetooth.descriptorEventGenerated"; - })(EventNames = Bluetooth.EventNames || (Bluetooth.EventNames = {})); -})(Bluetooth || (exports.Bluetooth = Bluetooth = {})); -var Speculation; -(function (Speculation) { - let EventNames; - (function (EventNames) { - EventNames["PrefetchStatusUpdated"] = "speculation.prefetchStatusUpdated"; - })(EventNames = Speculation.EventNames || (Speculation.EventNames = {})); -})(Speculation || (exports.Speculation = Speculation = {})); -exports.EVENT_NAMES = new Set([ - // keep-sorted start - ...Object.values(BiDiModule), - ...Object.values(Bluetooth.EventNames), - ...Object.values(BrowsingContext.EventNames), - ...Object.values(Input.EventNames), - ...Object.values(Log.EventNames), - ...Object.values(Network.EventNames), - ...Object.values(Script.EventNames), - ...Object.values(Speculation.EventNames), - // keep-sorted end -]); -//# sourceMappingURL=chromium-bidi.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js.map b/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js.map deleted file mode 100644 index df65d94..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chromium-bidi.js","sourceRoot":"","sources":["../../../src/protocol/chromium-bidi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAoBH,kBAAkB;AAElB,IAAY,UAaX;AAbD,WAAY,UAAU;IACpB,oBAAoB;IACpB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;IACnB,iDAAmC,CAAA;IACnC,8BAAgB,CAAA;IAChB,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,yCAA2B,CAAA;IAC3B,kBAAkB;AACpB,CAAC,EAbW,UAAU,0BAAV,UAAU,QAarB;AAED,IAAiB,MAAM,CAQtB;AARD,WAAiB,MAAM;IACrB,IAAY,UAMX;IAND,WAAY,UAAU;QACpB,oBAAoB;QACpB,wCAA0B,CAAA;QAC1B,kDAAoC,CAAA;QACpC,sDAAwC,CAAA;QACxC,kBAAkB;IACpB,CAAC,EANW,UAAU,GAAV,iBAAU,KAAV,iBAAU,QAMrB;AACH,CAAC,EARgB,MAAM,sBAAN,MAAM,Q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gB,OAAO,uBAAP,OAAO,QAUvB;AAED,IAAiB,SAAS,CAOzB;AAPD,WAAiB,SAAS;IACxB,IAAY,UAKX;IALD,WAAY,UAAU;QACpB,iFAAmE,CAAA;QACnE,2EAA6D,CAAA;QAC7D,qFAAuE,CAAA;QACvE,6EAA+D,CAAA;IACjE,CAAC,EALW,UAAU,GAAV,oBAAU,KAAV,oBAAU,QAKrB;AACH,CAAC,EAPgB,SAAS,yBAAT,SAAS,QAOzB;AAED,IAAiB,WAAW,CAI3B;AAJD,WAAiB,WAAW;IAC1B,IAAY,UAEX;IAFD,WAAY,UAAU;QACpB,yEAA2D,CAAA;IAC7D,CAAC,EAFW,UAAU,GAAV,sBAAU,KAAV,sBAAU,QAErB;AACH,CAAC,EAJgB,WAAW,2BAAX,WAAW,QAI3B;AA0CY,QAAA,WAAW,GAAG,IAAI,GAAG,CAAC;IACjC,oBAAoB;IACpB,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IAC5B,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC;IACtC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC;IAC5C,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC;IAClC,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;IAChC,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;IACpC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IACnC,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC;IACxC,kBAAkB;CACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.d.ts deleted file mode 100644 index 4e53259..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.d.ts +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -export declare namespace Bluetooth { - type BluetoothUuid = string; -} -export declare namespace Bluetooth { - type BluetoothManufacturerData = { - key: number; - data: string; - }; -} -export declare namespace Bluetooth { - type CharacteristicProperties = { - broadcast?: boolean; - read?: boolean; - writeWithoutResponse?: boolean; - write?: boolean; - notify?: boolean; - indicate?: boolean; - authenticatedSignedWrites?: boolean; - extendedProperties?: boolean; - }; -} -export declare namespace Bluetooth { - type RequestDevice = string; -} -export declare namespace Bluetooth { - type RequestDeviceInfo = { - id: Bluetooth.RequestDevice; - name: string | null; - }; -} -export declare namespace Bluetooth { - type RequestDevicePrompt = string; -} -export declare namespace Bluetooth { - type ScanRecord = { - name?: string; - uuids?: [...Bluetooth.BluetoothUuid[]]; - appearance?: number; - manufacturerData?: [...Bluetooth.BluetoothManufacturerData[]]; - }; -} -export type BluetoothCommand = Bluetooth.HandleRequestDevicePrompt | Bluetooth.SimulateAdapter | Bluetooth.DisableSimulation | Bluetooth.SimulatePreconnectedPeripheral | Bluetooth.SimulateAdvertisement | Bluetooth.SimulateGattConnectionResponse | Bluetooth.SimulateGattDisconnection | Bluetooth.SimulateService | Bluetooth.SimulateCharacteristic | Bluetooth.SimulateCharacteristicResponse | Bluetooth.SimulateDescriptor | Bluetooth.SimulateDescriptorResponse; -export declare namespace Bluetooth { - type HandleRequestDevicePrompt = { - method: 'bluetooth.handleRequestDevicePrompt'; - params: Bluetooth.HandleRequestDevicePromptParameters; - }; -} -export declare namespace Bluetooth { - type HandleRequestDevicePromptParameters = { - context: string; - prompt: Bluetooth.RequestDevicePrompt; - } & (Bluetooth.HandleRequestDevicePromptAcceptParameters | Bluetooth.HandleRequestDevicePromptCancelParameters); -} -export declare namespace Bluetooth { - type HandleRequestDevicePromptAcceptParameters = { - accept: true; - device: Bluetooth.RequestDevice; - }; -} -export declare namespace Bluetooth { - type HandleRequestDevicePromptCancelParameters = { - accept: false; - }; -} -export declare namespace Bluetooth { - type SimulateAdapter = { - method: 'bluetooth.simulateAdapter'; - params: Bluetooth.SimulateAdapterParameters; - }; -} -export declare namespace Bluetooth { - type SimulateAdapterParameters = { - context: string; - leSupported?: boolean; - state: 'absent' | 'powered-off' | 'powered-on'; - }; -} -export declare namespace Bluetooth { - type DisableSimulation = { - method: 'bluetooth.disableSimulation'; - params: Bluetooth.DisableSimulationParameters; - }; -} -export declare namespace Bluetooth { - type DisableSimulationParameters = { - context: string; - }; -} -export declare namespace Bluetooth { - type SimulatePreconnectedPeripheral = { - method: 'bluetooth.simulatePreconnectedPeripheral'; - params: Bluetooth.SimulatePreconnectedPeripheralParameters; - }; -} -export declare namespace Bluetooth { - type SimulatePreconnectedPeripheralParameters = { - context: string; - address: string; - name: string; - manufacturerData: [...Bluetooth.BluetoothManufacturerData[]]; - knownServiceUuids: [...Bluetooth.BluetoothUuid[]]; - }; -} -export declare namespace Bluetooth { - type SimulateAdvertisement = { - method: 'bluetooth.simulateAdvertisement'; - params: Bluetooth.SimulateAdvertisementParameters; - }; -} -export declare namespace Bluetooth { - type SimulateAdvertisementParameters = { - context: string; - scanEntry: Bluetooth.SimulateAdvertisementScanEntryParameters; - }; -} -export declare namespace Bluetooth { - type SimulateAdvertisementScanEntryParameters = { - deviceAddress: string; - rssi: number; - scanRecord: Bluetooth.ScanRecord; - }; -} -export declare namespace Bluetooth { - type SimulateGattConnectionResponse = { - method: 'bluetooth.simulateGattConnectionResponse'; - params: Bluetooth.SimulateGattConnectionResponseParameters; - }; -} -export declare namespace Bluetooth { - type SimulateGattConnectionResponseParameters = { - context: string; - address: string; - code: number; - }; -} -export declare namespace Bluetooth { - type SimulateGattDisconnection = { - method: 'bluetooth.simulateGattDisconnection'; - params: Bluetooth.SimulateGattDisconnectionParameters; - }; -} -export declare namespace Bluetooth { - type SimulateGattDisconnectionParameters = { - context: string; - address: string; - }; -} -export declare namespace Bluetooth { - type SimulateService = { - method: 'bluetooth.simulateService'; - params: Bluetooth.SimulateServiceParameters; - }; -} -export declare namespace Bluetooth { - type SimulateServiceParameters = { - context: string; - address: string; - uuid: Bluetooth.BluetoothUuid; - type: 'add' | 'remove'; - }; -} -export declare namespace Bluetooth { - type SimulateCharacteristic = { - method: 'bluetooth.simulateCharacteristic'; - params: Bluetooth.SimulateCharacteristicParameters; - }; -} -export declare namespace Bluetooth { - type SimulateCharacteristicParameters = { - context: string; - address: string; - serviceUuid: Bluetooth.BluetoothUuid; - characteristicUuid: Bluetooth.BluetoothUuid; - characteristicProperties?: Bluetooth.CharacteristicProperties; - type: 'add' | 'remove'; - }; -} -export declare namespace Bluetooth { - type SimulateCharacteristicResponse = { - method: 'bluetooth.simulateCharacteristicResponse'; - params: Bluetooth.SimulateCharacteristicResponseParameters; - }; -} -export declare namespace Bluetooth { - type SimulateCharacteristicResponseParameters = { - context: string; - address: string; - serviceUuid: Bluetooth.BluetoothUuid; - characteristicUuid: Bluetooth.BluetoothUuid; - type: 'read' | 'write' | 'subscribe-to-notifications' | 'unsubscribe-from-notifications'; - code: number; - data?: [...number[]]; - }; -} -export declare namespace Bluetooth { - type SimulateDescriptor = { - method: 'bluetooth.simulateDescriptor'; - params: Bluetooth.SimulateDescriptorParameters; - }; -} -export declare namespace Bluetooth { - type SimulateDescriptorParameters = { - context: string; - address: string; - serviceUuid: Bluetooth.BluetoothUuid; - characteristicUuid: Bluetooth.BluetoothUuid; - descriptorUuid: Bluetooth.BluetoothUuid; - type: 'add' | 'remove'; - }; -} -export declare namespace Bluetooth { - type SimulateDescriptorResponse = { - method: 'bluetooth.simulateDescriptorResponse'; - params: Bluetooth.SimulateDescriptorResponseParameters; - }; -} -export declare namespace Bluetooth { - type SimulateDescriptorResponseParameters = { - context: string; - address: string; - serviceUuid: Bluetooth.BluetoothUuid; - characteristicUuid: Bluetooth.BluetoothUuid; - descriptorUuid: Bluetooth.BluetoothUuid; - type: 'read' | 'write'; - code: number; - data?: [...number[]]; - }; -} -export type BluetoothEvent = Bluetooth.RequestDevicePromptUpdated | Bluetooth.GattConnectionAttempted; -export declare namespace Bluetooth { - type RequestDevicePromptUpdated = { - method: 'bluetooth.requestDevicePromptUpdated'; - params: Bluetooth.RequestDevicePromptUpdatedParameters; - }; -} -export declare namespace Bluetooth { - type RequestDevicePromptUpdatedParameters = { - context: string; - prompt: Bluetooth.RequestDevicePrompt; - devices: [...Bluetooth.RequestDeviceInfo[]]; - }; -} -export declare namespace Bluetooth { - type GattConnectionAttempted = { - method: 'bluetooth.gattConnectionAttempted'; - params: Bluetooth.GattConnectionAttemptedParameters; - }; -} -export declare namespace Bluetooth { - type GattConnectionAttemptedParameters = { - context: string; - address: string; - }; -} -export declare namespace Bluetooth { - type CharacteristicEventGenerated = { - method: 'bluetooth.characteristicEventGenerated'; - params: Bluetooth.CharacteristicEventGeneratedParameters; - }; -} -export declare namespace Bluetooth { - type CharacteristicEventGeneratedParameters = { - context: string; - address: string; - serviceUuid: Bluetooth.BluetoothUuid; - characteristicUuid: Bluetooth.BluetoothUuid; - type: 'read' | 'write-with-response' | 'write-without-response' | 'subscribe-to-notifications' | 'unsubscribe-from-notifications'; - data?: [...number[]]; - }; -} -export declare namespace Bluetooth { - type DescriptorEventGenerated = { - method: 'bluetooth.descriptorEventGenerated'; - params: Bluetooth.DescriptorEventGeneratedParameters; - }; -} -export declare namespace Bluetooth { - type DescriptorEventGeneratedParameters = { - context: string; - address: string; - serviceUuid: Bluetooth.BluetoothUuid; - characteristicUuid: Bluetooth.BluetoothUuid; - descriptorUuid: Bluetooth.BluetoothUuid; - type: 'read' | 'write'; - data?: [...number[]]; - }; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js deleted file mode 100644 index c6ecefe..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=webdriver-bidi-bluetooth.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js.map b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js.map deleted file mode 100644 index 5d633f6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi-bluetooth.js","sourceRoot":"","sources":["../../../../src/protocol/generated/webdriver-bidi-bluetooth.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-nav-speculation.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-nav-speculation.d.ts deleted file mode 100644 index a8e9db0..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-nav-speculation.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -export declare namespace Speculation { - const enum PreloadingStatus { - Pending = "pending", - Ready = "ready", - Success = "success", - Failure = "failure" - } -} -export type SpeculationEvent = Speculation.PrefetchStatusUpdated; -export declare namespace Speculation { - type PrefetchStatusUpdated = { - method: 'speculation.prefetchStatusUpdated'; - params: Speculation.PrefetchStatusUpdatedParameters; - }; -} -export declare namespace Speculation { - type PrefetchStatusUpdatedParameters = { - context: string; - url: string; - status: Speculation.PreloadingStatus; - }; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-nav-speculation.js b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-nav-speculation.js deleted file mode 100644 index 7166db7..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-nav-speculation.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=webdriver-bidi-nav-speculation.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-nav-speculation.js.map b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-nav-speculation.js.map deleted file mode 100644 index e9e83bf..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-nav-speculation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi-nav-speculation.js","sourceRoot":"","sources":["../../../../src/protocol/generated/webdriver-bidi-nav-speculation.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.d.ts deleted file mode 100644 index 5722d15..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -export type PermissionsCommand = Permissions.SetPermission; -export declare namespace Permissions { - type PermissionDescriptor = { - name: string; - }; -} -export declare namespace Permissions { - const enum PermissionState { - Granted = "granted", - Denied = "denied", - Prompt = "prompt" - } -} -export declare namespace Permissions { - type SetPermission = { - method: 'permissions.setPermission'; - params: Permissions.SetPermissionParameters; - }; -} -export declare namespace Permissions { - type SetPermissionParameters = { - descriptor: Permissions.PermissionDescriptor; - state: Permissions.PermissionState; - origin: string; - embeddedOrigin?: string; - userContext?: string; - }; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js deleted file mode 100644 index 8d94e63..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=webdriver-bidi-permissions.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js.map b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js.map deleted file mode 100644 index 57382d5..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi-permissions.js","sourceRoot":"","sources":["../../../../src/protocol/generated/webdriver-bidi-permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-ua-client-hints.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-ua-client-hints.d.ts deleted file mode 100644 index aa727d9..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-ua-client-hints.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -export type UserAgentClientHintsCommand = UserAgentClientHints.SetClientHintsOverrideCommand; -export declare namespace UserAgentClientHints { - type SetClientHintsOverrideCommand = { - method: 'userAgentClientHints.setClientHintsOverride'; - params: { - clientHints: UserAgentClientHints.ClientHintsMetadata | null; - contexts?: [string, ...string[]]; - userContexts?: [string, ...string[]]; - }; - }; -} -export declare namespace UserAgentClientHints { - type ClientHintsMetadata = { - brands?: [...UserAgentClientHints.BrandVersion[]]; - fullVersionList?: [...UserAgentClientHints.BrandVersion[]]; - platform?: string; - platformVersion?: string; - architecture?: string; - model?: string; - mobile?: boolean; - bitness?: string; - wow64?: boolean; - formFactors?: [...string[]]; - }; -} -export declare namespace UserAgentClientHints { - type BrandVersion = { - brand: string; - version: string; - }; -} -export declare namespace UserAgentClientHints { - type SetClientHintsOverrideResult = Record; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-ua-client-hints.js b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-ua-client-hints.js deleted file mode 100644 index 37d828d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-ua-client-hints.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=webdriver-bidi-ua-client-hints.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-ua-client-hints.js.map b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-ua-client-hints.js.map deleted file mode 100644 index fcb2c8e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-ua-client-hints.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi-ua-client-hints.js","sourceRoot":"","sources":["../../../../src/protocol/generated/webdriver-bidi-ua-client-hints.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts deleted file mode 100644 index 0d00f1e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts +++ /dev/null @@ -1,2732 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * THIS FILE IS AUTOGENERATED by cddlconv 0.1.7. - * Run `node tools/generate-bidi-types.mjs` to regenerate. - * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs - */ -export type Command = { - id: JsUint; -} & CommandData & Extensible; -export type CommandData = BrowserCommand | BrowsingContextCommand | EmulationCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand | StorageCommand | WebExtensionCommand; -export type EmptyParams = Extensible; -export type Message = CommandResponse | ErrorResponse | Event; -export type CommandResponse = { - type: 'success'; - id: JsUint; - result: ResultData; -} & Extensible; -export type ErrorResponse = { - type: 'error'; - id: JsUint | null; - error: ErrorCode; - message: string; - stacktrace?: string; -} & Extensible; -export type ResultData = BrowserResult | BrowsingContextResult | EmulationResult | InputResult | NetworkResult | ScriptResult | SessionResult | StorageResult | WebExtensionResult; -export type EmptyResult = Extensible; -export type Event = { - type: 'event'; -} & EventData & Extensible; -export type EventData = BrowsingContextEvent | InputEvent | LogEvent | NetworkEvent | ScriptEvent; -export type Extensible = { - [key: string]: any; -}; -/** - * Must be between `-9007199254740991` and `9007199254740991`, inclusive. - */ -export type JsInt = number; -/** - * Must be between `0` and `9007199254740991`, inclusive. - */ -export type JsUint = number; -export declare const enum ErrorCode { - InvalidArgument = "invalid argument", - InvalidSelector = "invalid selector", - InvalidSessionId = "invalid session id", - InvalidWebExtension = "invalid web extension", - MoveTargetOutOfBounds = "move target out of bounds", - NoSuchAlert = "no such alert", - NoSuchNetworkCollector = "no such network collector", - NoSuchElement = "no such element", - NoSuchFrame = "no such frame", - NoSuchHandle = "no such handle", - NoSuchHistoryEntry = "no such history entry", - NoSuchIntercept = "no such intercept", - NoSuchNetworkData = "no such network data", - NoSuchNode = "no such node", - NoSuchRequest = "no such request", - NoSuchScript = "no such script", - NoSuchStoragePartition = "no such storage partition", - NoSuchUserContext = "no such user context", - NoSuchWebExtension = "no such web extension", - SessionNotCreated = "session not created", - UnableToCaptureScreen = "unable to capture screen", - UnableToCloseBrowser = "unable to close browser", - UnableToSetCookie = "unable to set cookie", - UnableToSetFileInput = "unable to set file input", - UnavailableNetworkData = "unavailable network data", - UnderspecifiedStoragePartition = "underspecified storage partition", - UnknownCommand = "unknown command", - UnknownError = "unknown error", - UnsupportedOperation = "unsupported operation" -} -export type SessionCommand = Session.End | Session.New | Session.Status | Session.Subscribe | Session.Unsubscribe; -export type SessionResult = Session.EndResult | Session.NewResult | Session.StatusResult | Session.SubscribeResult | Session.UnsubscribeResult; -export declare namespace Session { - type CapabilitiesRequest = { - alwaysMatch?: Session.CapabilityRequest; - firstMatch?: [...Session.CapabilityRequest[]]; - }; -} -export declare namespace Session { - type CapabilityRequest = { - acceptInsecureCerts?: boolean; - browserName?: string; - browserVersion?: string; - platformName?: string; - proxy?: Session.ProxyConfiguration; - unhandledPromptBehavior?: Session.UserPromptHandler; - } & Extensible; -} -export declare namespace Session { - type ProxyConfiguration = Session.AutodetectProxyConfiguration | Session.DirectProxyConfiguration | Session.ManualProxyConfiguration | Session.PacProxyConfiguration | Session.SystemProxyConfiguration; -} -export declare namespace Session { - type AutodetectProxyConfiguration = { - proxyType: 'autodetect'; - } & Extensible; -} -export declare namespace Session { - type DirectProxyConfiguration = { - proxyType: 'direct'; - } & Extensible; -} -export declare namespace Session { - type ManualProxyConfiguration = { - proxyType: 'manual'; - httpProxy?: string; - sslProxy?: string; - } & ({} | Session.SocksProxyConfiguration) & { - noProxy?: [...string[]]; - } & Extensible; -} -export declare namespace Session { - type SocksProxyConfiguration = { - socksProxy: string; - /** - * Must be between `0` and `255`, inclusive. - */ - socksVersion: number; - }; -} -export declare namespace Session { - type PacProxyConfiguration = { - proxyType: 'pac'; - proxyAutoconfigUrl: string; - } & Extensible; -} -export declare namespace Session { - type SystemProxyConfiguration = { - proxyType: 'system'; - } & Extensible; -} -export declare namespace Session { - type UserPromptHandler = { - alert?: Session.UserPromptHandlerType; - beforeUnload?: Session.UserPromptHandlerType; - confirm?: Session.UserPromptHandlerType; - default?: Session.UserPromptHandlerType; - file?: Session.UserPromptHandlerType; - prompt?: Session.UserPromptHandlerType; - }; -} -export declare namespace Session { - const enum UserPromptHandlerType { - Accept = "accept", - Dismiss = "dismiss", - Ignore = "ignore" - } -} -export declare namespace Session { - type Subscription = string; -} -export declare namespace Session { - type SubscribeParameters = { - events: [string, ...string[]]; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Session { - type UnsubscribeByIdRequest = { - subscriptions: [Session.Subscription, ...Session.Subscription[]]; - }; -} -export declare namespace Session { - type UnsubscribeByAttributesRequest = { - events: [string, ...string[]]; - }; -} -export declare namespace Session { - type Status = { - method: 'session.status'; - params: EmptyParams; - }; -} -export declare namespace Session { - type StatusResult = { - ready: boolean; - message: string; - }; -} -export declare namespace Session { - type New = { - method: 'session.new'; - params: Session.NewParameters; - }; -} -export declare namespace Session { - type NewParameters = { - capabilities: Session.CapabilitiesRequest; - }; -} -export declare namespace Session { - type NewResult = { - sessionId: string; - capabilities: { - acceptInsecureCerts: boolean; - browserName: string; - browserVersion: string; - platformName: string; - setWindowRect: boolean; - userAgent: string; - proxy?: Session.ProxyConfiguration; - unhandledPromptBehavior?: Session.UserPromptHandler; - webSocketUrl?: string; - } & Extensible; - }; -} -export declare namespace Session { - type End = { - method: 'session.end'; - params: EmptyParams; - }; -} -export declare namespace Session { - type EndResult = EmptyResult; -} -export declare namespace Session { - type Subscribe = { - method: 'session.subscribe'; - params: Session.SubscribeParameters; - }; -} -export declare namespace Session { - type SubscribeResult = { - subscription: Session.Subscription; - }; -} -export declare namespace Session { - type Unsubscribe = { - method: 'session.unsubscribe'; - params: Session.UnsubscribeParameters; - }; -} -export declare namespace Session { - type UnsubscribeParameters = Session.UnsubscribeByAttributesRequest | Session.UnsubscribeByIdRequest; -} -export declare namespace Session { - type UnsubscribeResult = EmptyResult; -} -export type BrowserCommand = Browser.Close | Browser.CreateUserContext | Browser.GetClientWindows | Browser.GetUserContexts | Browser.RemoveUserContext | Browser.SetClientWindowState | Browser.SetDownloadBehavior; -export type BrowserResult = Browser.CloseResult | Browser.CreateUserContextResult | Browser.GetClientWindowsResult | Browser.GetUserContextsResult | Browser.RemoveUserContextResult | Browser.SetClientWindowStateResult | Browser.SetDownloadBehaviorResult; -export declare namespace Browser { - type ClientWindow = string; -} -export declare namespace Browser { - type ClientWindowInfo = { - active: boolean; - clientWindow: Browser.ClientWindow; - height: JsUint; - state: 'fullscreen' | 'maximized' | 'minimized' | 'normal'; - width: JsUint; - x: JsInt; - y: JsInt; - }; -} -export declare namespace Browser { - type UserContext = string; -} -export declare namespace Browser { - type UserContextInfo = { - userContext: Browser.UserContext; - }; -} -export declare namespace Browser { - type Close = { - method: 'browser.close'; - params: EmptyParams; - }; -} -export declare namespace Browser { - type CloseResult = EmptyResult; -} -export declare namespace Browser { - type CreateUserContext = { - method: 'browser.createUserContext'; - params: Browser.CreateUserContextParameters; - }; -} -export declare namespace Browser { - type CreateUserContextParameters = { - acceptInsecureCerts?: boolean; - proxy?: Session.ProxyConfiguration; - unhandledPromptBehavior?: Session.UserPromptHandler; - }; -} -export declare namespace Browser { - type CreateUserContextResult = Browser.UserContextInfo; -} -export declare namespace Browser { - type GetClientWindows = { - method: 'browser.getClientWindows'; - params: EmptyParams; - }; -} -export declare namespace Browser { - type GetClientWindowsResult = { - clientWindows: [...Browser.ClientWindowInfo[]]; - }; -} -export declare namespace Browser { - type GetUserContexts = { - method: 'browser.getUserContexts'; - params: EmptyParams; - }; -} -export declare namespace Browser { - type GetUserContextsResult = { - userContexts: [Browser.UserContextInfo, ...Browser.UserContextInfo[]]; - }; -} -export declare namespace Browser { - type RemoveUserContext = { - method: 'browser.removeUserContext'; - params: Browser.RemoveUserContextParameters; - }; -} -export declare namespace Browser { - type RemoveUserContextParameters = { - userContext: Browser.UserContext; - }; -} -export declare namespace Browser { - type RemoveUserContextResult = EmptyResult; -} -export declare namespace Browser { - type SetClientWindowState = { - method: 'browser.setClientWindowState'; - params: Browser.SetClientWindowStateParameters; - }; -} -export declare namespace Browser { - type SetClientWindowStateParameters = { - clientWindow: Browser.ClientWindow; - } & (Browser.ClientWindowNamedState | Browser.ClientWindowRectState); -} -export declare namespace Browser { - type ClientWindowNamedState = { - state: 'fullscreen' | 'maximized' | 'minimized'; - }; -} -export declare namespace Browser { - type ClientWindowRectState = { - state: 'normal'; - width?: JsUint; - height?: JsUint; - x?: JsInt; - y?: JsInt; - }; -} -export declare namespace Browser { - type SetClientWindowStateResult = Browser.ClientWindowInfo; -} -export declare namespace Browser { - type SetDownloadBehavior = { - method: 'browser.setDownloadBehavior'; - params: Browser.SetDownloadBehaviorParameters; - }; -} -export declare namespace Browser { - type SetDownloadBehaviorParameters = { - downloadBehavior: Browser.DownloadBehavior | null; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Browser { - type DownloadBehavior = Browser.DownloadBehaviorAllowed | Browser.DownloadBehaviorDenied; -} -export declare namespace Browser { - type DownloadBehaviorAllowed = { - type: 'allowed'; - destinationFolder: string; - }; -} -export declare namespace Browser { - type DownloadBehaviorDenied = { - type: 'denied'; - }; -} -export declare namespace Browser { - type SetDownloadBehaviorResult = EmptyResult; -} -export type BrowsingContextCommand = BrowsingContext.Activate | BrowsingContext.CaptureScreenshot | BrowsingContext.Close | BrowsingContext.Create | BrowsingContext.GetTree | BrowsingContext.HandleUserPrompt | BrowsingContext.LocateNodes | BrowsingContext.Navigate | BrowsingContext.Print | BrowsingContext.Reload | BrowsingContext.SetViewport | BrowsingContext.TraverseHistory; -export type BrowsingContextResult = BrowsingContext.ActivateResult | BrowsingContext.CaptureScreenshotResult | BrowsingContext.CloseResult | BrowsingContext.CreateResult | BrowsingContext.GetTreeResult | BrowsingContext.HandleUserPromptResult | BrowsingContext.LocateNodesResult | BrowsingContext.NavigateResult | BrowsingContext.PrintResult | BrowsingContext.ReloadResult | BrowsingContext.SetViewportResult | BrowsingContext.TraverseHistoryResult; -export type BrowsingContextEvent = BrowsingContext.ContextCreated | BrowsingContext.ContextDestroyed | BrowsingContext.DomContentLoaded | BrowsingContext.DownloadEnd | BrowsingContext.DownloadWillBegin | BrowsingContext.FragmentNavigated | BrowsingContext.HistoryUpdated | BrowsingContext.Load | BrowsingContext.NavigationAborted | BrowsingContext.NavigationCommitted | BrowsingContext.NavigationFailed | BrowsingContext.NavigationStarted | BrowsingContext.UserPromptClosed | BrowsingContext.UserPromptOpened; -export declare namespace BrowsingContext { - type BrowsingContext = string; -} -export declare namespace BrowsingContext { - type InfoList = [...BrowsingContext.Info[]]; -} -export declare namespace BrowsingContext { - type Info = { - children: BrowsingContext.InfoList | null; - clientWindow: Browser.ClientWindow; - context: BrowsingContext.BrowsingContext; - originalOpener: BrowsingContext.BrowsingContext | null; - url: string; - userContext: Browser.UserContext; - parent?: BrowsingContext.BrowsingContext | null; - }; -} -export declare namespace BrowsingContext { - type Locator = BrowsingContext.AccessibilityLocator | BrowsingContext.CssLocator | BrowsingContext.ContextLocator | BrowsingContext.InnerTextLocator | BrowsingContext.XPathLocator; -} -export declare namespace BrowsingContext { - type AccessibilityLocator = { - type: 'accessibility'; - value: { - name?: string; - role?: string; - }; - }; -} -export declare namespace BrowsingContext { - type CssLocator = { - type: 'css'; - value: string; - }; -} -export declare namespace BrowsingContext { - type ContextLocator = { - type: 'context'; - value: { - context: BrowsingContext.BrowsingContext; - }; - }; -} -export declare namespace BrowsingContext { - type InnerTextLocator = { - type: 'innerText'; - value: string; - ignoreCase?: boolean; - matchType?: 'full' | 'partial'; - maxDepth?: JsUint; - }; -} -export declare namespace BrowsingContext { - type XPathLocator = { - type: 'xpath'; - value: string; - }; -} -export declare namespace BrowsingContext { - type Navigation = string; -} -export declare namespace BrowsingContext { - type BaseNavigationInfo = { - context: BrowsingContext.BrowsingContext; - navigation: BrowsingContext.Navigation | null; - timestamp: JsUint; - url: string; - }; -} -export declare namespace BrowsingContext { - type NavigationInfo = BrowsingContext.BaseNavigationInfo; -} -export declare namespace BrowsingContext { - const enum ReadinessState { - None = "none", - Interactive = "interactive", - Complete = "complete" - } -} -export declare namespace BrowsingContext { - const enum UserPromptType { - Alert = "alert", - Beforeunload = "beforeunload", - Confirm = "confirm", - Prompt = "prompt" - } -} -export declare namespace BrowsingContext { - type Activate = { - method: 'browsingContext.activate'; - params: BrowsingContext.ActivateParameters; - }; -} -export declare namespace BrowsingContext { - type ActivateParameters = { - context: BrowsingContext.BrowsingContext; - }; -} -export declare namespace BrowsingContext { - type ActivateResult = EmptyResult; -} -export declare namespace BrowsingContext { - type CaptureScreenshot = { - method: 'browsingContext.captureScreenshot'; - params: BrowsingContext.CaptureScreenshotParameters; - }; -} -export declare namespace BrowsingContext { - type CaptureScreenshotParameters = { - context: BrowsingContext.BrowsingContext; - /** - * @defaultValue `"viewport"` - */ - origin?: 'viewport' | 'document'; - format?: BrowsingContext.ImageFormat; - clip?: BrowsingContext.ClipRectangle; - }; -} -export declare namespace BrowsingContext { - type ImageFormat = { - type: string; - /** - * Must be between `0` and `1`, inclusive. - */ - quality?: number; - }; -} -export declare namespace BrowsingContext { - type ClipRectangle = BrowsingContext.BoxClipRectangle | BrowsingContext.ElementClipRectangle; -} -export declare namespace BrowsingContext { - type ElementClipRectangle = { - type: 'element'; - element: Script.SharedReference; - }; -} -export declare namespace BrowsingContext { - type BoxClipRectangle = { - type: 'box'; - x: number; - y: number; - width: number; - height: number; - }; -} -export declare namespace BrowsingContext { - type CaptureScreenshotResult = { - data: string; - }; -} -export declare namespace BrowsingContext { - type Close = { - method: 'browsingContext.close'; - params: BrowsingContext.CloseParameters; - }; -} -export declare namespace BrowsingContext { - type CloseParameters = { - context: BrowsingContext.BrowsingContext; - /** - * @defaultValue `false` - */ - promptUnload?: boolean; - }; -} -export declare namespace BrowsingContext { - type CloseResult = EmptyResult; -} -export declare namespace BrowsingContext { - type Create = { - method: 'browsingContext.create'; - params: BrowsingContext.CreateParameters; - }; -} -export declare namespace BrowsingContext { - const enum CreateType { - Tab = "tab", - Window = "window" - } -} -export declare namespace BrowsingContext { - type CreateParameters = { - type: BrowsingContext.CreateType; - referenceContext?: BrowsingContext.BrowsingContext; - /** - * @defaultValue `false` - */ - background?: boolean; - userContext?: Browser.UserContext; - }; -} -export declare namespace BrowsingContext { - type CreateResult = { - context: BrowsingContext.BrowsingContext; - }; -} -export declare namespace BrowsingContext { - type GetTree = { - method: 'browsingContext.getTree'; - params: BrowsingContext.GetTreeParameters; - }; -} -export declare namespace BrowsingContext { - type GetTreeParameters = { - maxDepth?: JsUint; - root?: BrowsingContext.BrowsingContext; - }; -} -export declare namespace BrowsingContext { - type GetTreeResult = { - contexts: BrowsingContext.InfoList; - }; -} -export declare namespace BrowsingContext { - type HandleUserPrompt = { - method: 'browsingContext.handleUserPrompt'; - params: BrowsingContext.HandleUserPromptParameters; - }; -} -export declare namespace BrowsingContext { - type HandleUserPromptParameters = { - context: BrowsingContext.BrowsingContext; - accept?: boolean; - userText?: string; - }; -} -export declare namespace BrowsingContext { - type HandleUserPromptResult = EmptyResult; -} -export declare namespace BrowsingContext { - type LocateNodes = { - method: 'browsingContext.locateNodes'; - params: BrowsingContext.LocateNodesParameters; - }; -} -export declare namespace BrowsingContext { - type LocateNodesParameters = { - context: BrowsingContext.BrowsingContext; - locator: BrowsingContext.Locator; - /** - * Must be greater than or equal to `1`. - */ - maxNodeCount?: JsUint; - serializationOptions?: Script.SerializationOptions; - startNodes?: [Script.SharedReference, ...Script.SharedReference[]]; - }; -} -export declare namespace BrowsingContext { - type LocateNodesResult = { - nodes: [...Script.NodeRemoteValue[]]; - }; -} -export declare namespace BrowsingContext { - type Navigate = { - method: 'browsingContext.navigate'; - params: BrowsingContext.NavigateParameters; - }; -} -export declare namespace BrowsingContext { - type NavigateParameters = { - context: BrowsingContext.BrowsingContext; - url: string; - wait?: BrowsingContext.ReadinessState; - }; -} -export declare namespace BrowsingContext { - type NavigateResult = { - navigation: BrowsingContext.Navigation | null; - url: string; - }; -} -export declare namespace BrowsingContext { - type Print = { - method: 'browsingContext.print'; - params: BrowsingContext.PrintParameters; - }; -} -export declare namespace BrowsingContext { - type PrintParameters = { - context: BrowsingContext.BrowsingContext; - /** - * @defaultValue `false` - */ - background?: boolean; - margin?: BrowsingContext.PrintMarginParameters; - /** - * @defaultValue `"portrait"` - */ - orientation?: 'portrait' | 'landscape'; - page?: BrowsingContext.PrintPageParameters; - pageRanges?: [...(JsUint | string)[]]; - /** - * Must be between `0.1` and `2`, inclusive. - * - * @defaultValue `1` - */ - scale?: number; - /** - * @defaultValue `true` - */ - shrinkToFit?: boolean; - }; -} -export declare namespace BrowsingContext { - type PrintMarginParameters = { - /** - * Must be greater than or equal to `0`. - * - * @defaultValue `1` - */ - bottom?: number; - /** - * Must be greater than or equal to `0`. - * - * @defaultValue `1` - */ - left?: number; - /** - * Must be greater than or equal to `0`. - * - * @defaultValue `1` - */ - right?: number; - /** - * Must be greater than or equal to `0`. - * - * @defaultValue `1` - */ - top?: number; - }; -} -export declare namespace BrowsingContext { - type PrintPageParameters = { - /** - * Must be greater than or equal to `0.0352`. - * - * @defaultValue `27.94` - */ - height?: number; - /** - * Must be greater than or equal to `0.0352`. - * - * @defaultValue `21.59` - */ - width?: number; - }; -} -export declare namespace BrowsingContext { - type PrintResult = { - data: string; - }; -} -export declare namespace BrowsingContext { - type Reload = { - method: 'browsingContext.reload'; - params: BrowsingContext.ReloadParameters; - }; -} -export declare namespace BrowsingContext { - type ReloadParameters = { - context: BrowsingContext.BrowsingContext; - ignoreCache?: boolean; - wait?: BrowsingContext.ReadinessState; - }; -} -export declare namespace BrowsingContext { - type ReloadResult = BrowsingContext.NavigateResult; -} -export declare namespace BrowsingContext { - type SetViewport = { - method: 'browsingContext.setViewport'; - params: BrowsingContext.SetViewportParameters; - }; -} -export declare namespace BrowsingContext { - type SetViewportParameters = { - context?: BrowsingContext.BrowsingContext; - viewport?: BrowsingContext.Viewport | null; - /** - * Must be greater than `0`. - */ - devicePixelRatio?: number | null; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace BrowsingContext { - type Viewport = { - width: JsUint; - height: JsUint; - }; -} -export declare namespace BrowsingContext { - type SetViewportResult = EmptyResult; -} -export declare namespace BrowsingContext { - type TraverseHistory = { - method: 'browsingContext.traverseHistory'; - params: BrowsingContext.TraverseHistoryParameters; - }; -} -export declare namespace BrowsingContext { - type TraverseHistoryParameters = { - context: BrowsingContext.BrowsingContext; - delta: JsInt; - }; -} -export declare namespace BrowsingContext { - type TraverseHistoryResult = EmptyResult; -} -export declare namespace BrowsingContext { - type ContextCreated = { - method: 'browsingContext.contextCreated'; - params: BrowsingContext.Info; - }; -} -export declare namespace BrowsingContext { - type ContextDestroyed = { - method: 'browsingContext.contextDestroyed'; - params: BrowsingContext.Info; - }; -} -export declare namespace BrowsingContext { - type NavigationStarted = { - method: 'browsingContext.navigationStarted'; - params: BrowsingContext.NavigationInfo; - }; -} -export declare namespace BrowsingContext { - type FragmentNavigated = { - method: 'browsingContext.fragmentNavigated'; - params: BrowsingContext.NavigationInfo; - }; -} -export declare namespace BrowsingContext { - type HistoryUpdated = { - method: 'browsingContext.historyUpdated'; - params: BrowsingContext.HistoryUpdatedParameters; - }; -} -export declare namespace BrowsingContext { - type HistoryUpdatedParameters = { - context: BrowsingContext.BrowsingContext; - timestamp: JsUint; - url: string; - }; -} -export declare namespace BrowsingContext { - type DomContentLoaded = { - method: 'browsingContext.domContentLoaded'; - params: BrowsingContext.NavigationInfo; - }; -} -export declare namespace BrowsingContext { - type Load = { - method: 'browsingContext.load'; - params: BrowsingContext.NavigationInfo; - }; -} -export declare namespace BrowsingContext { - type DownloadWillBegin = { - method: 'browsingContext.downloadWillBegin'; - params: BrowsingContext.DownloadWillBeginParams; - }; -} -export declare namespace BrowsingContext { - type DownloadWillBeginParams = { - suggestedFilename: string; - } & BrowsingContext.BaseNavigationInfo; -} -export declare namespace BrowsingContext { - type DownloadEnd = { - method: 'browsingContext.downloadEnd'; - params: BrowsingContext.DownloadEndParams; - }; -} -export declare namespace BrowsingContext { - type DownloadEndParams = BrowsingContext.DownloadCanceledParams | BrowsingContext.DownloadCompleteParams; -} -export declare namespace BrowsingContext { - type DownloadCanceledParams = { - status: 'canceled'; - } & BrowsingContext.BaseNavigationInfo; -} -export declare namespace BrowsingContext { - type DownloadCompleteParams = { - status: 'complete'; - filepath: string | null; - } & BrowsingContext.BaseNavigationInfo; -} -export declare namespace BrowsingContext { - type NavigationAborted = { - method: 'browsingContext.navigationAborted'; - params: BrowsingContext.NavigationInfo; - }; -} -export declare namespace BrowsingContext { - type NavigationCommitted = { - method: 'browsingContext.navigationCommitted'; - params: BrowsingContext.NavigationInfo; - }; -} -export declare namespace BrowsingContext { - type NavigationFailed = { - method: 'browsingContext.navigationFailed'; - params: BrowsingContext.NavigationInfo; - }; -} -export declare namespace BrowsingContext { - type UserPromptClosed = { - method: 'browsingContext.userPromptClosed'; - params: BrowsingContext.UserPromptClosedParameters; - }; -} -export declare namespace BrowsingContext { - type UserPromptClosedParameters = { - context: BrowsingContext.BrowsingContext; - accepted: boolean; - type: BrowsingContext.UserPromptType; - userText?: string; - }; -} -export declare namespace BrowsingContext { - type UserPromptOpened = { - method: 'browsingContext.userPromptOpened'; - params: BrowsingContext.UserPromptOpenedParameters; - }; -} -export declare namespace BrowsingContext { - type UserPromptOpenedParameters = { - context: BrowsingContext.BrowsingContext; - handler: Session.UserPromptHandlerType; - message: string; - type: BrowsingContext.UserPromptType; - defaultValue?: string; - }; -} -export type EmulationCommand = Emulation.SetForcedColorsModeThemeOverride | Emulation.SetGeolocationOverride | Emulation.SetLocaleOverride | Emulation.SetNetworkConditions | Emulation.SetScreenOrientationOverride | Emulation.SetScreenSettingsOverride | Emulation.SetScriptingEnabled | Emulation.SetTimezoneOverride | Emulation.SetTouchOverride | Emulation.SetUserAgentOverride; -export type EmulationResult = Emulation.SetForcedColorsModeThemeOverrideResult | Emulation.SetGeolocationOverrideResult | Emulation.SetLocaleOverrideResult | Emulation.SetScreenOrientationOverrideResult | Emulation.SetScriptingEnabledResult | Emulation.SetTimezoneOverrideResult | Emulation.SetTouchOverrideResult | Emulation.SetUserAgentOverrideResult; -export declare namespace Emulation { - type SetForcedColorsModeThemeOverride = { - method: 'emulation.setForcedColorsModeThemeOverride'; - params: Emulation.SetForcedColorsModeThemeOverrideParameters; - }; -} -export declare namespace Emulation { - type SetForcedColorsModeThemeOverrideParameters = { - theme: Emulation.ForcedColorsModeTheme | null; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - const enum ForcedColorsModeTheme { - Light = "light", - Dark = "dark" - } -} -export declare namespace Emulation { - type SetForcedColorsModeThemeOverrideResult = EmptyResult; -} -export declare namespace Emulation { - type SetGeolocationOverride = { - method: 'emulation.setGeolocationOverride'; - params: Emulation.SetGeolocationOverrideParameters; - }; -} -export declare namespace Emulation { - type SetGeolocationOverrideParameters = ({ - coordinates: Emulation.GeolocationCoordinates | null; - } | { - error: Emulation.GeolocationPositionError; - }) & { - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - type GeolocationCoordinates = { - /** - * Must be between `-90` and `90`, inclusive. - */ - latitude: number; - /** - * Must be between `-180` and `180`, inclusive. - */ - longitude: number; - /** - * Must be greater than or equal to `0`. - * - * @defaultValue `1` - */ - accuracy?: number; - /** - * @defaultValue `null` - */ - altitude?: number | null; - /** - * Must be greater than or equal to `0`. - * - * @defaultValue `null` - */ - altitudeAccuracy?: number | null; - /** - * Must be between `0` and `360`. - * - * @defaultValue `null` - */ - heading?: number | null; - /** - * Must be greater than or equal to `0`. - * - * @defaultValue `null` - */ - speed?: number | null; - }; -} -export declare namespace Emulation { - type GeolocationPositionError = { - type: 'positionUnavailable'; - }; -} -export declare namespace Emulation { - type SetGeolocationOverrideResult = EmptyResult; -} -export declare namespace Emulation { - type SetLocaleOverride = { - method: 'emulation.setLocaleOverride'; - params: Emulation.SetLocaleOverrideParameters; - }; -} -export declare namespace Emulation { - type SetLocaleOverrideParameters = { - locale: string | null; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - type SetLocaleOverrideResult = EmptyResult; -} -export declare namespace Emulation { - type SetNetworkConditions = { - method: 'emulation.setNetworkConditions'; - params: Emulation.SetNetworkConditionsParameters; - }; -} -export declare namespace Emulation { - type SetNetworkConditionsParameters = { - networkConditions: Emulation.NetworkConditions | null; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - type NetworkConditions = Emulation.NetworkConditionsOffline; -} -export declare namespace Emulation { - type NetworkConditionsOffline = { - type: 'offline'; - }; -} -export declare namespace Emulation { - type SetNetworkConditionsResult = EmptyResult; -} -export declare namespace Emulation { - type SetScreenSettingsOverride = { - method: 'emulation.setScreenSettingsOverride'; - params: Emulation.SetScreenSettingsOverrideParameters; - }; -} -export declare namespace Emulation { - type ScreenArea = { - width: JsUint; - height: JsUint; - }; -} -export declare namespace Emulation { - type SetScreenSettingsOverrideParameters = { - screenArea: Emulation.ScreenArea | null; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - type SetScreenSettingsOverrideResult = EmptyResult; -} -export declare namespace Emulation { - type SetScreenOrientationOverride = { - method: 'emulation.setScreenOrientationOverride'; - params: Emulation.SetScreenOrientationOverrideParameters; - }; -} -export declare namespace Emulation { - const enum ScreenOrientationNatural { - Portrait = "portrait", - Landscape = "landscape" - } -} -export declare namespace Emulation { - type ScreenOrientationType = 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary'; -} -export declare namespace Emulation { - type ScreenOrientation = { - natural: Emulation.ScreenOrientationNatural; - type: Emulation.ScreenOrientationType; - }; -} -export declare namespace Emulation { - type SetScreenOrientationOverrideParameters = { - screenOrientation: Emulation.ScreenOrientation | null; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - type SetScreenOrientationOverrideResult = EmptyResult; -} -export declare namespace Emulation { - type SetUserAgentOverride = { - method: 'emulation.setUserAgentOverride'; - params: Emulation.SetUserAgentOverrideParameters; - }; -} -export declare namespace Emulation { - type SetUserAgentOverrideParameters = { - userAgent: string | null; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - type SetUserAgentOverrideResult = EmptyResult; -} -export declare namespace Emulation { - type SetScriptingEnabled = { - method: 'emulation.setScriptingEnabled'; - params: Emulation.SetScriptingEnabledParameters; - }; -} -export declare namespace Emulation { - type SetScriptingEnabledParameters = { - enabled: false | null; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - type SetScriptingEnabledResult = EmptyResult; -} -export declare namespace Emulation { - type SetTimezoneOverride = { - method: 'emulation.setTimezoneOverride'; - params: Emulation.SetTimezoneOverrideParameters; - }; -} -export declare namespace Emulation { - type SetTimezoneOverrideParameters = { - timezone: string | null; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - type SetTimezoneOverrideResult = EmptyResult; -} -export declare namespace Emulation { - type SetTouchOverride = { - method: 'emulation.setTouchOverride'; - params: Emulation.SetTouchOverrideParameters; - }; -} -export declare namespace Emulation { - type SetTouchOverrideParameters = { - /** - * Must be greater than or equal to `1`. - */ - maxTouchPoints: JsUint | null; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Emulation { - type SetTouchOverrideResult = EmptyResult; -} -export type NetworkCommand = Network.AddDataCollector | Network.AddIntercept | Network.ContinueRequest | Network.ContinueResponse | Network.ContinueWithAuth | Network.DisownData | Network.FailRequest | Network.GetData | Network.ProvideResponse | Network.RemoveDataCollector | Network.RemoveIntercept | Network.SetCacheBehavior | Network.SetExtraHeaders; -export type NetworkResult = Network.AddDataCollectorResult | Network.AddInterceptResult | Network.ContinueRequestResult | Network.ContinueResponseResult | Network.ContinueWithAuthResult | Network.DisownDataResult | Network.FailRequestResult | Network.GetDataResult | Network.ProvideResponseResult | Network.RemoveDataCollectorResult | Network.RemoveInterceptResult | Network.SetCacheBehaviorResult | Network.SetExtraHeadersResult; -export type NetworkEvent = Network.AuthRequired | Network.BeforeRequestSent | Network.FetchError | Network.ResponseCompleted | Network.ResponseStarted; -export declare namespace Network { - type AuthChallenge = { - scheme: string; - realm: string; - }; -} -export declare namespace Network { - type AuthCredentials = { - type: 'password'; - username: string; - password: string; - }; -} -export declare namespace Network { - type BaseParameters = { - context: BrowsingContext.BrowsingContext | null; - isBlocked: boolean; - navigation: BrowsingContext.Navigation | null; - redirectCount: JsUint; - request: Network.RequestData; - timestamp: JsUint; - intercepts?: [Network.Intercept, ...Network.Intercept[]]; - }; -} -export declare namespace Network { - type BytesValue = Network.StringValue | Network.Base64Value; -} -export declare namespace Network { - type StringValue = { - type: 'string'; - value: string; - }; -} -export declare namespace Network { - type Base64Value = { - type: 'base64'; - value: string; - }; -} -export declare namespace Network { - type Collector = string; -} -export declare namespace Network { - const enum CollectorType { - Blob = "blob" - } -} -export declare namespace Network { - const enum SameSite { - Strict = "strict", - Lax = "lax", - None = "none", - Default = "default" - } -} -export declare namespace Network { - type Cookie = { - name: string; - value: Network.BytesValue; - domain: string; - path: string; - size: JsUint; - httpOnly: boolean; - secure: boolean; - sameSite: Network.SameSite; - expiry?: JsUint; - } & Extensible; -} -export declare namespace Network { - type CookieHeader = { - name: string; - value: Network.BytesValue; - }; -} -export declare namespace Network { - const enum DataType { - Request = "request", - Response = "response" - } -} -export declare namespace Network { - type FetchTimingInfo = { - timeOrigin: number; - requestTime: number; - redirectStart: number; - redirectEnd: number; - fetchStart: number; - dnsStart: number; - dnsEnd: number; - connectStart: number; - connectEnd: number; - tlsStart: number; - requestStart: number; - responseStart: number; - responseEnd: number; - }; -} -export declare namespace Network { - type Header = { - name: string; - value: Network.BytesValue; - }; -} -export declare namespace Network { - type Initiator = { - columnNumber?: JsUint; - lineNumber?: JsUint; - request?: Network.Request; - stackTrace?: Script.StackTrace; - type?: 'parser' | 'script' | 'preflight' | 'other'; - }; -} -export declare namespace Network { - type Intercept = string; -} -export declare namespace Network { - type Request = string; -} -export declare namespace Network { - type RequestData = { - request: Network.Request; - url: string; - method: string; - headers: [...Network.Header[]]; - cookies: [...Network.Cookie[]]; - headersSize: JsUint; - bodySize: JsUint | null; - destination: string; - initiatorType: string | null; - timings: Network.FetchTimingInfo; - }; -} -export declare namespace Network { - type ResponseContent = { - size: JsUint; - }; -} -export declare namespace Network { - type ResponseData = { - url: string; - protocol: string; - status: JsUint; - statusText: string; - fromCache: boolean; - headers: [...Network.Header[]]; - mimeType: string; - bytesReceived: JsUint; - headersSize: JsUint | null; - bodySize: JsUint | null; - content: Network.ResponseContent; - authChallenges?: [...Network.AuthChallenge[]]; - }; -} -export declare namespace Network { - type SetCookieHeader = { - name: string; - value: Network.BytesValue; - domain?: string; - httpOnly?: boolean; - expiry?: string; - maxAge?: JsInt; - path?: string; - sameSite?: Network.SameSite; - secure?: boolean; - }; -} -export declare namespace Network { - type UrlPattern = Network.UrlPatternPattern | Network.UrlPatternString; -} -export declare namespace Network { - type UrlPatternPattern = { - type: 'pattern'; - protocol?: string; - hostname?: string; - port?: string; - pathname?: string; - search?: string; - }; -} -export declare namespace Network { - type UrlPatternString = { - type: 'string'; - pattern: string; - }; -} -export declare namespace Network { - type AddDataCollector = { - method: 'network.addDataCollector'; - params: Network.AddDataCollectorParameters; - }; -} -export declare namespace Network { - type AddDataCollectorParameters = { - dataTypes: [Network.DataType, ...Network.DataType[]]; - maxEncodedDataSize: JsUint; - /** - * @defaultValue `"blob"` - */ - collectorType?: Network.CollectorType; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Network { - type AddDataCollectorResult = { - collector: Network.Collector; - }; -} -export declare namespace Network { - type AddIntercept = { - method: 'network.addIntercept'; - params: Network.AddInterceptParameters; - }; -} -export declare namespace Network { - type AddInterceptParameters = { - phases: [Network.InterceptPhase, ...Network.InterceptPhase[]]; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - urlPatterns?: [...Network.UrlPattern[]]; - }; -} -export declare namespace Network { - const enum InterceptPhase { - BeforeRequestSent = "beforeRequestSent", - ResponseStarted = "responseStarted", - AuthRequired = "authRequired" - } -} -export declare namespace Network { - type AddInterceptResult = { - intercept: Network.Intercept; - }; -} -export declare namespace Network { - type ContinueRequest = { - method: 'network.continueRequest'; - params: Network.ContinueRequestParameters; - }; -} -export declare namespace Network { - type ContinueRequestParameters = { - request: Network.Request; - body?: Network.BytesValue; - cookies?: [...Network.CookieHeader[]]; - headers?: [...Network.Header[]]; - method?: string; - url?: string; - }; -} -export declare namespace Network { - type ContinueRequestResult = EmptyResult; -} -export declare namespace Network { - type ContinueResponse = { - method: 'network.continueResponse'; - params: Network.ContinueResponseParameters; - }; -} -export declare namespace Network { - type ContinueResponseParameters = { - request: Network.Request; - cookies?: [...Network.SetCookieHeader[]]; - credentials?: Network.AuthCredentials; - headers?: [...Network.Header[]]; - reasonPhrase?: string; - statusCode?: JsUint; - }; -} -export declare namespace Network { - type ContinueResponseResult = EmptyResult; -} -export declare namespace Network { - type ContinueWithAuth = { - method: 'network.continueWithAuth'; - params: Network.ContinueWithAuthParameters; - }; -} -export declare namespace Network { - type ContinueWithAuthParameters = { - request: Network.Request; - } & (Network.ContinueWithAuthCredentials | Network.ContinueWithAuthNoCredentials); -} -export declare namespace Network { - type ContinueWithAuthCredentials = { - action: 'provideCredentials'; - credentials: Network.AuthCredentials; - }; -} -export declare namespace Network { - type ContinueWithAuthNoCredentials = { - action: 'default' | 'cancel'; - }; -} -export declare namespace Network { - type ContinueWithAuthResult = EmptyResult; -} -export declare namespace Network { - type DisownData = { - method: 'network.disownData'; - params: Network.DisownDataParameters; - }; -} -export declare namespace Network { - type DisownDataParameters = { - dataType: Network.DataType; - collector: Network.Collector; - request: Network.Request; - }; -} -export declare namespace Network { - type DisownDataResult = EmptyResult; -} -export declare namespace Network { - type FailRequest = { - method: 'network.failRequest'; - params: Network.FailRequestParameters; - }; -} -export declare namespace Network { - type FailRequestParameters = { - request: Network.Request; - }; -} -export declare namespace Network { - type FailRequestResult = EmptyResult; -} -export declare namespace Network { - type GetData = { - method: 'network.getData'; - params: Network.GetDataParameters; - }; -} -export declare namespace Network { - type GetDataParameters = { - dataType: Network.DataType; - collector?: Network.Collector; - /** - * @defaultValue `false` - */ - disown?: boolean; - request: Network.Request; - }; -} -export declare namespace Network { - type GetDataResult = { - bytes: Network.BytesValue; - }; -} -export declare namespace Network { - type ProvideResponse = { - method: 'network.provideResponse'; - params: Network.ProvideResponseParameters; - }; -} -export declare namespace Network { - type ProvideResponseParameters = { - request: Network.Request; - body?: Network.BytesValue; - cookies?: [...Network.SetCookieHeader[]]; - headers?: [...Network.Header[]]; - reasonPhrase?: string; - statusCode?: JsUint; - }; -} -export declare namespace Network { - type ProvideResponseResult = EmptyResult; -} -export declare namespace Network { - type RemoveDataCollector = { - method: 'network.removeDataCollector'; - params: Network.RemoveDataCollectorParameters; - }; -} -export declare namespace Network { - type RemoveDataCollectorParameters = { - collector: Network.Collector; - }; -} -export declare namespace Network { - type RemoveDataCollectorResult = EmptyResult; -} -export declare namespace Network { - type RemoveIntercept = { - method: 'network.removeIntercept'; - params: Network.RemoveInterceptParameters; - }; -} -export declare namespace Network { - type RemoveInterceptParameters = { - intercept: Network.Intercept; - }; -} -export declare namespace Network { - type RemoveInterceptResult = EmptyResult; -} -export declare namespace Network { - type SetCacheBehavior = { - method: 'network.setCacheBehavior'; - params: Network.SetCacheBehaviorParameters; - }; -} -export declare namespace Network { - type SetCacheBehaviorParameters = { - cacheBehavior: 'default' | 'bypass'; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - }; -} -export declare namespace Network { - type SetCacheBehaviorResult = EmptyResult; -} -export declare namespace Network { - type SetExtraHeaders = { - method: 'network.setExtraHeaders'; - params: Network.SetExtraHeadersParameters; - }; -} -export declare namespace Network { - type SetExtraHeadersParameters = { - headers: [...Network.Header[]]; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - }; -} -export declare namespace Network { - type SetExtraHeadersResult = EmptyResult; -} -export declare namespace Network { - type AuthRequired = { - method: 'network.authRequired'; - params: Network.AuthRequiredParameters; - }; -} -export declare namespace Network { - type AuthRequiredParameters = Network.BaseParameters & { - response: Network.ResponseData; - }; -} -export declare namespace Network { - type BeforeRequestSent = { - method: 'network.beforeRequestSent'; - params: Network.BeforeRequestSentParameters; - }; -} -export declare namespace Network { - type BeforeRequestSentParameters = Network.BaseParameters & { - initiator?: Network.Initiator; - }; -} -export declare namespace Network { - type FetchError = { - method: 'network.fetchError'; - params: Network.FetchErrorParameters; - }; -} -export declare namespace Network { - type FetchErrorParameters = Network.BaseParameters & { - errorText: string; - }; -} -export declare namespace Network { - type ResponseCompleted = { - method: 'network.responseCompleted'; - params: Network.ResponseCompletedParameters; - }; -} -export declare namespace Network { - type ResponseCompletedParameters = Network.BaseParameters & { - response: Network.ResponseData; - }; -} -export declare namespace Network { - type ResponseStarted = { - method: 'network.responseStarted'; - params: Network.ResponseStartedParameters; - }; -} -export declare namespace Network { - type ResponseStartedParameters = Network.BaseParameters & { - response: Network.ResponseData; - }; -} -export type ScriptCommand = Script.AddPreloadScript | Script.CallFunction | Script.Disown | Script.Evaluate | Script.GetRealms | Script.RemovePreloadScript; -export type ScriptResult = Script.AddPreloadScriptResult | Script.CallFunctionResult | Script.DisownResult | Script.EvaluateResult | Script.GetRealmsResult | Script.RemovePreloadScriptResult; -export type ScriptEvent = Script.Message | Script.RealmCreated | Script.RealmDestroyed; -export declare namespace Script { - type Channel = string; -} -export declare namespace Script { - type ChannelValue = { - type: 'channel'; - value: Script.ChannelProperties; - }; -} -export declare namespace Script { - type ChannelProperties = { - channel: Script.Channel; - serializationOptions?: Script.SerializationOptions; - ownership?: Script.ResultOwnership; - }; -} -export declare namespace Script { - type EvaluateResult = Script.EvaluateResultSuccess | Script.EvaluateResultException; -} -export declare namespace Script { - type EvaluateResultSuccess = { - type: 'success'; - result: Script.RemoteValue; - realm: Script.Realm; - }; -} -export declare namespace Script { - type EvaluateResultException = { - type: 'exception'; - exceptionDetails: Script.ExceptionDetails; - realm: Script.Realm; - }; -} -export declare namespace Script { - type ExceptionDetails = { - columnNumber: JsUint; - exception: Script.RemoteValue; - lineNumber: JsUint; - stackTrace: Script.StackTrace; - text: string; - }; -} -export declare namespace Script { - type Handle = string; -} -export declare namespace Script { - type InternalId = string; -} -export declare namespace Script { - type LocalValue = Script.RemoteReference | Script.PrimitiveProtocolValue | Script.ChannelValue | Script.ArrayLocalValue | Script.DateLocalValue | Script.MapLocalValue | Script.ObjectLocalValue | Script.RegExpLocalValue | Script.SetLocalValue; -} -export declare namespace Script { - type ListLocalValue = [...Script.LocalValue[]]; -} -export declare namespace Script { - type ArrayLocalValue = { - type: 'array'; - value: Script.ListLocalValue; - }; -} -export declare namespace Script { - type DateLocalValue = { - type: 'date'; - value: string; - }; -} -export declare namespace Script { - type MappingLocalValue = [ - ...[Script.LocalValue | string, Script.LocalValue][] - ]; -} -export declare namespace Script { - type MapLocalValue = { - type: 'map'; - value: Script.MappingLocalValue; - }; -} -export declare namespace Script { - type ObjectLocalValue = { - type: 'object'; - value: Script.MappingLocalValue; - }; -} -export declare namespace Script { - type RegExpValue = { - pattern: string; - flags?: string; - }; -} -export declare namespace Script { - type RegExpLocalValue = { - type: 'regexp'; - value: Script.RegExpValue; - }; -} -export declare namespace Script { - type SetLocalValue = { - type: 'set'; - value: Script.ListLocalValue; - }; -} -export declare namespace Script { - type PreloadScript = string; -} -export declare namespace Script { - type Realm = string; -} -export declare namespace Script { - type PrimitiveProtocolValue = Script.UndefinedValue | Script.NullValue | Script.StringValue | Script.NumberValue | Script.BooleanValue | Script.BigIntValue; -} -export declare namespace Script { - type UndefinedValue = { - type: 'undefined'; - }; -} -export declare namespace Script { - type NullValue = { - type: 'null'; - }; -} -export declare namespace Script { - type StringValue = { - type: 'string'; - value: string; - }; -} -export declare namespace Script { - type SpecialNumber = 'NaN' | '-0' | 'Infinity' | '-Infinity'; -} -export declare namespace Script { - type NumberValue = { - type: 'number'; - value: number | Script.SpecialNumber; - }; -} -export declare namespace Script { - type BooleanValue = { - type: 'boolean'; - value: boolean; - }; -} -export declare namespace Script { - type BigIntValue = { - type: 'bigint'; - value: string; - }; -} -export declare namespace Script { - type RealmInfo = Script.WindowRealmInfo | Script.DedicatedWorkerRealmInfo | Script.SharedWorkerRealmInfo | Script.ServiceWorkerRealmInfo | Script.WorkerRealmInfo | Script.PaintWorkletRealmInfo | Script.AudioWorkletRealmInfo | Script.WorkletRealmInfo; -} -export declare namespace Script { - type BaseRealmInfo = { - realm: Script.Realm; - origin: string; - }; -} -export declare namespace Script { - type WindowRealmInfo = Script.BaseRealmInfo & { - type: 'window'; - context: BrowsingContext.BrowsingContext; - sandbox?: string; - }; -} -export declare namespace Script { - type DedicatedWorkerRealmInfo = Script.BaseRealmInfo & { - type: 'dedicated-worker'; - owners: [Script.Realm]; - }; -} -export declare namespace Script { - type SharedWorkerRealmInfo = Script.BaseRealmInfo & { - type: 'shared-worker'; - }; -} -export declare namespace Script { - type ServiceWorkerRealmInfo = Script.BaseRealmInfo & { - type: 'service-worker'; - }; -} -export declare namespace Script { - type WorkerRealmInfo = Script.BaseRealmInfo & { - type: 'worker'; - }; -} -export declare namespace Script { - type PaintWorkletRealmInfo = Script.BaseRealmInfo & { - type: 'paint-worklet'; - }; -} -export declare namespace Script { - type AudioWorkletRealmInfo = Script.BaseRealmInfo & { - type: 'audio-worklet'; - }; -} -export declare namespace Script { - type WorkletRealmInfo = Script.BaseRealmInfo & { - type: 'worklet'; - }; -} -export declare namespace Script { - type RealmType = 'window' | 'dedicated-worker' | 'shared-worker' | 'service-worker' | 'worker' | 'paint-worklet' | 'audio-worklet' | 'worklet'; -} -export declare namespace Script { - type RemoteReference = Script.SharedReference | Script.RemoteObjectReference; -} -export declare namespace Script { - type SharedReference = { - sharedId: Script.SharedId; - handle?: Script.Handle; - } & Extensible; -} -export declare namespace Script { - type RemoteObjectReference = { - handle: Script.Handle; - sharedId?: Script.SharedId; - } & Extensible; -} -export declare namespace Script { - type RemoteValue = Script.PrimitiveProtocolValue | Script.SymbolRemoteValue | Script.ArrayRemoteValue | Script.ObjectRemoteValue | Script.FunctionRemoteValue | Script.RegExpRemoteValue | Script.DateRemoteValue | Script.MapRemoteValue | Script.SetRemoteValue | Script.WeakMapRemoteValue | Script.WeakSetRemoteValue | Script.GeneratorRemoteValue | Script.ErrorRemoteValue | Script.ProxyRemoteValue | Script.PromiseRemoteValue | Script.TypedArrayRemoteValue | Script.ArrayBufferRemoteValue | Script.NodeListRemoteValue | Script.HtmlCollectionRemoteValue | Script.NodeRemoteValue | Script.WindowProxyRemoteValue; -} -export declare namespace Script { - type ListRemoteValue = [...Script.RemoteValue[]]; -} -export declare namespace Script { - type MappingRemoteValue = [ - ...[Script.RemoteValue | string, Script.RemoteValue][] - ]; -} -export declare namespace Script { - type SymbolRemoteValue = { - type: 'symbol'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type ArrayRemoteValue = { - type: 'array'; - handle?: Script.Handle; - internalId?: Script.InternalId; - value?: Script.ListRemoteValue; - }; -} -export declare namespace Script { - type ObjectRemoteValue = { - type: 'object'; - handle?: Script.Handle; - internalId?: Script.InternalId; - value?: Script.MappingRemoteValue; - }; -} -export declare namespace Script { - type FunctionRemoteValue = { - type: 'function'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type RegExpRemoteValue = Script.RegExpLocalValue & { - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type DateRemoteValue = Script.DateLocalValue & { - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type MapRemoteValue = { - type: 'map'; - handle?: Script.Handle; - internalId?: Script.InternalId; - value?: Script.MappingRemoteValue; - }; -} -export declare namespace Script { - type SetRemoteValue = { - type: 'set'; - handle?: Script.Handle; - internalId?: Script.InternalId; - value?: Script.ListRemoteValue; - }; -} -export declare namespace Script { - type WeakMapRemoteValue = { - type: 'weakmap'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type WeakSetRemoteValue = { - type: 'weakset'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type GeneratorRemoteValue = { - type: 'generator'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type ErrorRemoteValue = { - type: 'error'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type ProxyRemoteValue = { - type: 'proxy'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type PromiseRemoteValue = { - type: 'promise'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type TypedArrayRemoteValue = { - type: 'typedarray'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type ArrayBufferRemoteValue = { - type: 'arraybuffer'; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type NodeListRemoteValue = { - type: 'nodelist'; - handle?: Script.Handle; - internalId?: Script.InternalId; - value?: Script.ListRemoteValue; - }; -} -export declare namespace Script { - type HtmlCollectionRemoteValue = { - type: 'htmlcollection'; - handle?: Script.Handle; - internalId?: Script.InternalId; - value?: Script.ListRemoteValue; - }; -} -export declare namespace Script { - type NodeRemoteValue = { - type: 'node'; - sharedId?: Script.SharedId; - handle?: Script.Handle; - internalId?: Script.InternalId; - value?: Script.NodeProperties; - }; -} -export declare namespace Script { - type NodeProperties = { - nodeType: JsUint; - childNodeCount: JsUint; - attributes?: { - [key: string]: string; - }; - children?: [...Script.NodeRemoteValue[]]; - localName?: string; - mode?: 'open' | 'closed'; - namespaceURI?: string; - nodeValue?: string; - shadowRoot?: Script.NodeRemoteValue | null; - }; -} -export declare namespace Script { - type WindowProxyRemoteValue = { - type: 'window'; - value: Script.WindowProxyProperties; - handle?: Script.Handle; - internalId?: Script.InternalId; - }; -} -export declare namespace Script { - type WindowProxyProperties = { - context: BrowsingContext.BrowsingContext; - }; -} -export declare namespace Script { - const enum ResultOwnership { - Root = "root", - None = "none" - } -} -export declare namespace Script { - type SerializationOptions = { - /** - * @defaultValue `0` - */ - maxDomDepth?: JsUint | null; - /** - * @defaultValue `null` - */ - maxObjectDepth?: JsUint | null; - /** - * @defaultValue `"none"` - */ - includeShadowTree?: 'none' | 'open' | 'all'; - }; -} -export declare namespace Script { - type SharedId = string; -} -export declare namespace Script { - type StackFrame = { - columnNumber: JsUint; - functionName: string; - lineNumber: JsUint; - url: string; - }; -} -export declare namespace Script { - type StackTrace = { - callFrames: [...Script.StackFrame[]]; - }; -} -export declare namespace Script { - type Source = { - realm: Script.Realm; - context?: BrowsingContext.BrowsingContext; - }; -} -export declare namespace Script { - type RealmTarget = { - realm: Script.Realm; - }; -} -export declare namespace Script { - type ContextTarget = { - context: BrowsingContext.BrowsingContext; - sandbox?: string; - }; -} -export declare namespace Script { - type Target = Script.ContextTarget | Script.RealmTarget; -} -export declare namespace Script { - type AddPreloadScript = { - method: 'script.addPreloadScript'; - params: Script.AddPreloadScriptParameters; - }; -} -export declare namespace Script { - type AddPreloadScriptParameters = { - functionDeclaration: string; - arguments?: [...Script.ChannelValue[]]; - contexts?: [ - BrowsingContext.BrowsingContext, - ...BrowsingContext.BrowsingContext[] - ]; - userContexts?: [Browser.UserContext, ...Browser.UserContext[]]; - sandbox?: string; - }; -} -export declare namespace Script { - type AddPreloadScriptResult = { - script: Script.PreloadScript; - }; -} -export declare namespace Script { - type Disown = { - method: 'script.disown'; - params: Script.DisownParameters; - }; -} -export declare namespace Script { - type DisownParameters = { - handles: [...Script.Handle[]]; - target: Script.Target; - }; -} -export declare namespace Script { - type DisownResult = EmptyResult; -} -export declare namespace Script { - type CallFunction = { - method: 'script.callFunction'; - params: Script.CallFunctionParameters; - }; -} -export declare namespace Script { - type CallFunctionParameters = { - functionDeclaration: string; - awaitPromise: boolean; - target: Script.Target; - arguments?: [...Script.LocalValue[]]; - resultOwnership?: Script.ResultOwnership; - serializationOptions?: Script.SerializationOptions; - this?: Script.LocalValue; - /** - * @defaultValue `false` - */ - userActivation?: boolean; - }; -} -export declare namespace Script { - type CallFunctionResult = Script.EvaluateResult; -} -export declare namespace Script { - type Evaluate = { - method: 'script.evaluate'; - params: Script.EvaluateParameters; - }; -} -export declare namespace Script { - type EvaluateParameters = { - expression: string; - target: Script.Target; - awaitPromise: boolean; - resultOwnership?: Script.ResultOwnership; - serializationOptions?: Script.SerializationOptions; - /** - * @defaultValue `false` - */ - userActivation?: boolean; - }; -} -export declare namespace Script { - type GetRealms = { - method: 'script.getRealms'; - params: Script.GetRealmsParameters; - }; -} -export declare namespace Script { - type GetRealmsParameters = { - context?: BrowsingContext.BrowsingContext; - type?: Script.RealmType; - }; -} -export declare namespace Script { - type GetRealmsResult = { - realms: [...Script.RealmInfo[]]; - }; -} -export declare namespace Script { - type RemovePreloadScript = { - method: 'script.removePreloadScript'; - params: Script.RemovePreloadScriptParameters; - }; -} -export declare namespace Script { - type RemovePreloadScriptParameters = { - script: Script.PreloadScript; - }; -} -export declare namespace Script { - type RemovePreloadScriptResult = EmptyResult; -} -export declare namespace Script { - type Message = { - method: 'script.message'; - params: Script.MessageParameters; - }; -} -export declare namespace Script { - type MessageParameters = { - channel: Script.Channel; - data: Script.RemoteValue; - source: Script.Source; - }; -} -export declare namespace Script { - type RealmCreated = { - method: 'script.realmCreated'; - params: Script.RealmInfo; - }; -} -export declare namespace Script { - type RealmDestroyed = { - method: 'script.realmDestroyed'; - params: Script.RealmDestroyedParameters; - }; -} -export declare namespace Script { - type RealmDestroyedParameters = { - realm: Script.Realm; - }; -} -export type StorageCommand = Storage.DeleteCookies | Storage.GetCookies | Storage.SetCookie; -export type StorageResult = Storage.DeleteCookiesResult | Storage.GetCookiesResult | Storage.SetCookieResult; -export declare namespace Storage { - type PartitionKey = { - userContext?: string; - sourceOrigin?: string; - } & Extensible; -} -export declare namespace Storage { - type GetCookies = { - method: 'storage.getCookies'; - params: Storage.GetCookiesParameters; - }; -} -export declare namespace Storage { - type CookieFilter = { - name?: string; - value?: Network.BytesValue; - domain?: string; - path?: string; - size?: JsUint; - httpOnly?: boolean; - secure?: boolean; - sameSite?: Network.SameSite; - expiry?: JsUint; - } & Extensible; -} -export declare namespace Storage { - type BrowsingContextPartitionDescriptor = { - type: 'context'; - context: BrowsingContext.BrowsingContext; - }; -} -export declare namespace Storage { - type StorageKeyPartitionDescriptor = { - type: 'storageKey'; - userContext?: string; - sourceOrigin?: string; - } & Extensible; -} -export declare namespace Storage { - type PartitionDescriptor = Storage.BrowsingContextPartitionDescriptor | Storage.StorageKeyPartitionDescriptor; -} -export declare namespace Storage { - type GetCookiesParameters = { - filter?: Storage.CookieFilter; - partition?: Storage.PartitionDescriptor; - }; -} -export declare namespace Storage { - type GetCookiesResult = { - cookies: [...Network.Cookie[]]; - partitionKey: Storage.PartitionKey; - }; -} -export declare namespace Storage { - type SetCookie = { - method: 'storage.setCookie'; - params: Storage.SetCookieParameters; - }; -} -export declare namespace Storage { - type PartialCookie = { - name: string; - value: Network.BytesValue; - domain: string; - path?: string; - httpOnly?: boolean; - secure?: boolean; - sameSite?: Network.SameSite; - expiry?: JsUint; - } & Extensible; -} -export declare namespace Storage { - type SetCookieParameters = { - cookie: Storage.PartialCookie; - partition?: Storage.PartitionDescriptor; - }; -} -export declare namespace Storage { - type SetCookieResult = { - partitionKey: Storage.PartitionKey; - }; -} -export declare namespace Storage { - type DeleteCookies = { - method: 'storage.deleteCookies'; - params: Storage.DeleteCookiesParameters; - }; -} -export declare namespace Storage { - type DeleteCookiesParameters = { - filter?: Storage.CookieFilter; - partition?: Storage.PartitionDescriptor; - }; -} -export declare namespace Storage { - type DeleteCookiesResult = { - partitionKey: Storage.PartitionKey; - }; -} -export type LogEvent = Log.EntryAdded; -export declare namespace Log { - const enum Level { - Debug = "debug", - Info = "info", - Warn = "warn", - Error = "error" - } -} -export declare namespace Log { - type Entry = Log.GenericLogEntry | Log.ConsoleLogEntry | Log.JavascriptLogEntry; -} -export declare namespace Log { - type BaseLogEntry = { - level: Log.Level; - source: Script.Source; - text: string | null; - timestamp: JsUint; - stackTrace?: Script.StackTrace; - }; -} -export declare namespace Log { - type GenericLogEntry = Log.BaseLogEntry & { - type: string; - }; -} -export declare namespace Log { - type ConsoleLogEntry = Log.BaseLogEntry & { - type: 'console'; - method: string; - args: [...Script.RemoteValue[]]; - }; -} -export declare namespace Log { - type JavascriptLogEntry = Log.BaseLogEntry & { - type: 'javascript'; - }; -} -export declare namespace Log { - type EntryAdded = { - method: 'log.entryAdded'; - params: Log.Entry; - }; -} -export type InputCommand = Input.PerformActions | Input.ReleaseActions | Input.SetFiles; -export type InputResult = Input.PerformActionsResult | Input.ReleaseActionsResult | Input.SetFilesResult; -export type InputEvent = Input.FileDialogOpened; -export declare namespace Input { - type ElementOrigin = { - type: 'element'; - element: Script.SharedReference; - }; -} -export declare namespace Input { - type PerformActions = { - method: 'input.performActions'; - params: Input.PerformActionsParameters; - }; -} -export declare namespace Input { - type PerformActionsParameters = { - context: BrowsingContext.BrowsingContext; - actions: [...Input.SourceActions[]]; - }; -} -export declare namespace Input { - type SourceActions = Input.NoneSourceActions | Input.KeySourceActions | Input.PointerSourceActions | Input.WheelSourceActions; -} -export declare namespace Input { - type NoneSourceActions = { - type: 'none'; - id: string; - actions: [...Input.NoneSourceAction[]]; - }; -} -export declare namespace Input { - type NoneSourceAction = Input.PauseAction; -} -export declare namespace Input { - type KeySourceActions = { - type: 'key'; - id: string; - actions: [...Input.KeySourceAction[]]; - }; -} -export declare namespace Input { - type KeySourceAction = Input.PauseAction | Input.KeyDownAction | Input.KeyUpAction; -} -export declare namespace Input { - type PointerSourceActions = { - type: 'pointer'; - id: string; - parameters?: Input.PointerParameters; - actions: [...Input.PointerSourceAction[]]; - }; -} -export declare namespace Input { - const enum PointerType { - Mouse = "mouse", - Pen = "pen", - Touch = "touch" - } -} -export declare namespace Input { - type PointerParameters = { - /** - * @defaultValue `"mouse"` - */ - pointerType?: Input.PointerType; - }; -} -export declare namespace Input { - type PointerSourceAction = Input.PauseAction | Input.PointerDownAction | Input.PointerUpAction | Input.PointerMoveAction; -} -export declare namespace Input { - type WheelSourceActions = { - type: 'wheel'; - id: string; - actions: [...Input.WheelSourceAction[]]; - }; -} -export declare namespace Input { - type WheelSourceAction = Input.PauseAction | Input.WheelScrollAction; -} -export declare namespace Input { - type PauseAction = { - type: 'pause'; - duration?: JsUint; - }; -} -export declare namespace Input { - type KeyDownAction = { - type: 'keyDown'; - value: string; - }; -} -export declare namespace Input { - type KeyUpAction = { - type: 'keyUp'; - value: string; - }; -} -export declare namespace Input { - type PointerUpAction = { - type: 'pointerUp'; - button: JsUint; - }; -} -export declare namespace Input { - type PointerDownAction = { - type: 'pointerDown'; - button: JsUint; - } & Input.PointerCommonProperties; -} -export declare namespace Input { - type PointerMoveAction = { - type: 'pointerMove'; - x: number; - y: number; - duration?: JsUint; - origin?: Input.Origin; - } & Input.PointerCommonProperties; -} -export declare namespace Input { - type WheelScrollAction = { - type: 'scroll'; - x: JsInt; - y: JsInt; - deltaX: JsInt; - deltaY: JsInt; - duration?: JsUint; - /** - * @defaultValue `"viewport"` - */ - origin?: Input.Origin; - }; -} -export declare namespace Input { - type PointerCommonProperties = { - /** - * @defaultValue `1` - */ - width?: JsUint; - /** - * @defaultValue `1` - */ - height?: JsUint; - /** - * @defaultValue `0` - */ - pressure?: number; - /** - * @defaultValue `0` - */ - tangentialPressure?: number; - /** - * Must be between `0` and `359`, inclusive. - * - * @defaultValue `0` - */ - twist?: number; - /** - * Must be between `0` and `1.5707963267948966`, inclusive. - * - * @defaultValue `0` - */ - altitudeAngle?: number; - /** - * Must be between `0` and `6.283185307179586`, inclusive. - * - * @defaultValue `0` - */ - azimuthAngle?: number; - }; -} -export declare namespace Input { - type Origin = 'viewport' | 'pointer' | Input.ElementOrigin; -} -export declare namespace Input { - type PerformActionsResult = EmptyResult; -} -export declare namespace Input { - type ReleaseActions = { - method: 'input.releaseActions'; - params: Input.ReleaseActionsParameters; - }; -} -export declare namespace Input { - type ReleaseActionsParameters = { - context: BrowsingContext.BrowsingContext; - }; -} -export declare namespace Input { - type ReleaseActionsResult = EmptyResult; -} -export declare namespace Input { - type SetFiles = { - method: 'input.setFiles'; - params: Input.SetFilesParameters; - }; -} -export declare namespace Input { - type SetFilesParameters = { - context: BrowsingContext.BrowsingContext; - element: Script.SharedReference; - files: [...string[]]; - }; -} -export declare namespace Input { - type SetFilesResult = EmptyResult; -} -export declare namespace Input { - type FileDialogOpened = { - method: 'input.fileDialogOpened'; - params: Input.FileDialogInfo; - }; -} -export declare namespace Input { - type FileDialogInfo = { - context: BrowsingContext.BrowsingContext; - element?: Script.SharedReference; - multiple: boolean; - }; -} -export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall; -export type WebExtensionResult = WebExtension.InstallResult | WebExtension.UninstallResult; -export declare namespace WebExtension { - type Extension = string; -} -export declare namespace WebExtension { - type Install = { - method: 'webExtension.install'; - params: WebExtension.InstallParameters; - }; -} -export declare namespace WebExtension { - type InstallParameters = { - extensionData: WebExtension.ExtensionData; - }; -} -export declare namespace WebExtension { - type ExtensionData = WebExtension.ExtensionArchivePath | WebExtension.ExtensionBase64Encoded | WebExtension.ExtensionPath; -} -export declare namespace WebExtension { - type ExtensionPath = { - type: 'path'; - path: string; - }; -} -export declare namespace WebExtension { - type ExtensionArchivePath = { - type: 'archivePath'; - path: string; - }; -} -export declare namespace WebExtension { - type ExtensionBase64Encoded = { - type: 'base64'; - value: string; - }; -} -export declare namespace WebExtension { - type InstallResult = { - extension: WebExtension.Extension; - }; -} -export declare namespace WebExtension { - type Uninstall = { - method: 'webExtension.uninstall'; - params: WebExtension.UninstallParameters; - }; -} -export declare namespace WebExtension { - type UninstallParameters = { - extension: WebExtension.Extension; - }; -} -export declare namespace WebExtension { - type UninstallResult = EmptyResult; -} diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js deleted file mode 100644 index c6e8e3e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=webdriver-bidi.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js.map b/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js.map deleted file mode 100644 index 2553a74..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi.js","sourceRoot":"","sources":["../../../../src/protocol/generated/webdriver-bidi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/protocol.d.ts b/node_modules/chromium-bidi/lib/cjs/protocol/protocol.d.ts deleted file mode 100644 index 5256911..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/protocol.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export * as Cdp from './cdp.js'; -export * as ChromiumBidi from './chromium-bidi.js'; -export * from './generated/webdriver-bidi.js'; -export * from './ErrorResponse.js'; -export * from './generated/webdriver-bidi-permissions.js'; -export * from './generated/webdriver-bidi-bluetooth.js'; -export * from './generated/webdriver-bidi-nav-speculation.js'; -export * as UAClientHints from './generated/webdriver-bidi-ua-client-hints.js'; diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js b/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js deleted file mode 100644 index 7a9005e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UAClientHints = exports.ChromiumBidi = exports.Cdp = void 0; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -exports.Cdp = __importStar(require("./cdp.js")); -exports.ChromiumBidi = __importStar(require("./chromium-bidi.js")); -__exportStar(require("./generated/webdriver-bidi.js"), exports); -__exportStar(require("./ErrorResponse.js"), exports); -__exportStar(require("./generated/webdriver-bidi-permissions.js"), exports); -__exportStar(require("./generated/webdriver-bidi-bluetooth.js"), exports); -__exportStar(require("./generated/webdriver-bidi-nav-speculation.js"), exports); -// Alias is required, as `UAClientHints` spec defines `Emulation` namespace. -exports.UAClientHints = __importStar(require("./generated/webdriver-bidi-ua-client-hints.js")); -//# sourceMappingURL=protocol.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js.map b/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js.map deleted file mode 100644 index b068b2f..0000000 --- a/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../src/protocol/protocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,gDAAgC;AAChC,mEAAmD;AACnD,gEAA8C;AAC9C,qDAAmC;AACnC,4EAA0D;AAC1D,0EAAwD;AACxD,gFAA8D;AAC9D,4EAA4E;AAC5E,+FAA+E"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/Buffer.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/Buffer.d.ts deleted file mode 100644 index ecee743..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/Buffer.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** Implements a FIFO buffer with a fixed size. */ -export declare class Buffer { - #private; - /** - * @param capacity The buffer capacity. - * @param onItemRemoved Delegate called for each removed element. - */ - constructor(capacity: number, onItemRemoved?: (value: T) => void); - get(): T[]; - add(value: T): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js b/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js deleted file mode 100644 index 7c38d98..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Buffer = void 0; -/** Implements a FIFO buffer with a fixed size. */ -class Buffer { - #capacity; - #entries = []; - #onItemRemoved; - /** - * @param capacity The buffer capacity. - * @param onItemRemoved Delegate called for each removed element. - */ - constructor(capacity, onItemRemoved) { - this.#capacity = capacity; - this.#onItemRemoved = onItemRemoved; - } - get() { - return this.#entries; - } - add(value) { - this.#entries.push(value); - while (this.#entries.length > this.#capacity) { - const item = this.#entries.shift(); - if (item !== undefined) { - this.#onItemRemoved?.(item); - } - } - } -} -exports.Buffer = Buffer; -//# sourceMappingURL=Buffer.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js.map b/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js.map deleted file mode 100644 index f5e70f6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Buffer.js","sourceRoot":"","sources":["../../../src/utils/Buffer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,kDAAkD;AAClD,MAAa,MAAM;IACR,SAAS,CAAS;IAClB,QAAQ,GAAQ,EAAE,CAAC;IACnB,cAAc,CAAsB;IAE7C;;;OAGG;IACH,YAAY,QAAgB,EAAE,aAAkC;QAC9D,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAED,GAAG;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,GAAG,CAAC,KAAQ;QACV,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAC7C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;YACnC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;gBACvB,IAAI,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC;CACF;AA3BD,wBA2BC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.d.ts deleted file mode 100644 index 6ed9fcb..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * A subclass of Map whose functionality is almost the same as its parent - * except for the fact that DefaultMap never returns undefined. It provides a - * default value for keys that do not exist. - */ -export declare class DefaultMap extends Map { - #private; - constructor(getDefaultValue: (key: K) => V, entries?: readonly (readonly [K, V])[] | null); - get(key: K): V; -} diff --git a/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js b/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js deleted file mode 100644 index adc3786..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DefaultMap = void 0; -/** - * A subclass of Map whose functionality is almost the same as its parent - * except for the fact that DefaultMap never returns undefined. It provides a - * default value for keys that do not exist. - */ -class DefaultMap extends Map { - /** The default value to return whenever a key is not present in the map. */ - #getDefaultValue; - constructor(getDefaultValue, entries) { - super(entries); - this.#getDefaultValue = getDefaultValue; - } - get(key) { - if (!this.has(key)) { - this.set(key, this.#getDefaultValue(key)); - } - return super.get(key); - } -} -exports.DefaultMap = DefaultMap; -//# sourceMappingURL=DefaultMap.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js.map b/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js.map deleted file mode 100644 index 9e4ff95..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefaultMap.js","sourceRoot":"","sources":["../../../src/utils/DefaultMap.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH;;;;GAIG;AACH,MAAa,UAAiB,SAAQ,GAAS;IAC7C,4EAA4E;IAC5E,gBAAgB,CAAgB;IAEhC,YACE,eAA8B,EAC9B,OAA6C;QAE7C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAC1C,CAAC;IAEQ,GAAG,CAAC,GAAM;QACjB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5C,CAAC;QACD,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC;IACzB,CAAC;CACF;AAlBD,gCAkBC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/Deferred.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/Deferred.d.ts deleted file mode 100644 index 16040fb..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/Deferred.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export declare class Deferred implements Promise { - #private; - get isFinished(): boolean; - get result(): T; - constructor(); - then(onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null, onRejected?: ((reason: unknown) => TResult2 | PromiseLike) | null): Promise; - catch(onRejected?: ((reason: unknown) => TResult | PromiseLike) | null): Promise; - resolve(value: T): void; - reject(reason: Error): void; - finally(onFinally?: (() => void) | null): Promise; - [Symbol.toStringTag]: string; -} diff --git a/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js b/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js deleted file mode 100644 index d11aa0b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Deferred = void 0; -class Deferred { - #isFinished = false; - #promise; - #result; - #resolve; - #reject; - get isFinished() { - return this.#isFinished; - } - get result() { - if (!this.#isFinished) { - throw new Error('Deferred is not finished yet'); - } - return this.#result; - } - constructor() { - this.#promise = new Promise((resolve, reject) => { - this.#resolve = resolve; - this.#reject = reject; - }); - // Needed to avoid `Uncaught (in promise)`. The promises returned by `then` - // and `catch` will be rejected anyway. - this.#promise.catch((_error) => { - // Intentionally empty. - }); - } - then(onFulfilled, onRejected) { - return this.#promise.then(onFulfilled, onRejected); - } - catch(onRejected) { - return this.#promise.catch(onRejected); - } - resolve(value) { - this.#result = value; - if (!this.#isFinished) { - this.#isFinished = true; - this.#resolve(value); - } - } - reject(reason) { - if (!this.#isFinished) { - this.#isFinished = true; - this.#reject(reason); - } - } - finally(onFinally) { - return this.#promise.finally(onFinally); - } - [Symbol.toStringTag] = 'Promise'; -} -exports.Deferred = Deferred; -//# sourceMappingURL=Deferred.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js.map b/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js.map deleted file mode 100644 index 1dc03ed..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Deferred.js","sourceRoot":"","sources":["../../../src/utils/Deferred.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,MAAa,QAAQ;IACnB,WAAW,GAAG,KAAK,CAAC;IACpB,QAAQ,CAAa;IACrB,OAAO,CAAgB;IACvB,QAAQ,CAAsB;IAC9B,OAAO,CAA2B;IAElC,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,IAAI,MAAM;QACR,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,OAAO,IAAI,CAAC,OAAQ,CAAC;IACvB,CAAC;IAED;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC9C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,2EAA2E;QAC3E,uCAAuC;QACvC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE;YAC7B,uBAAuB;QACzB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CACF,WAAqE,EACrE,UAA2E;QAE3E,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CACH,UAAyE;QAEzE,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,CAAC,KAAQ;QACd,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IAED,MAAM,CAAC,MAAa;QAClB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,CAAC,SAA+B;QACrC,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;CAClC;AA/DD,4BA+DC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.d.ts deleted file mode 100644 index 807eab9..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type EventType, type Handler, type WildcardHandler } from 'mitt'; -export declare class EventEmitter> { - #private; - /** - * Binds an event listener to fire when an event occurs. - * @param event The event type you'd like to listen to. Can be a string or symbol. - * @param handler The function to be called when the event occurs. - * @return `this` to enable chaining method calls. - */ - on(type: '*', handler: WildcardHandler): this; - on(type: Key, handler: Handler): this; - /** - * Like `on` but the listener will only be fired once and then it will be removed. - * @param event The event you'd like to listen to - * @param handler The handler function to run when the event occurs - * @return `this` to enable chaining method calls. - */ - once(event: EventType, handler: Handler): this; - /** - * Removes an event listener from firing. - * @param event The event type you'd like to stop listening to. - * @param handler The function that should be removed. - * @return `this` to enable chaining method calls. - */ - off(type: '*', handler: WildcardHandler): this; - off(type: Key, handler: Handler): EventEmitter; - /** - * Emits an event and call any associated listeners. - * - * @param event The event to emit. - * @param eventData Any data to emit with the event. - * @return `true` if there are any listeners, `false` otherwise. - */ - emit(event: Key, eventData: Events[Key]): void; - /** - * Removes all listeners. If given an event argument, it will remove only - * listeners for that event. - * @param event - the event to remove listeners for. - * @returns `this` to enable you to chain method calls. - */ - removeAllListeners(event?: EventType): this; -} diff --git a/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js b/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js deleted file mode 100644 index c9ad091..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventEmitter = void 0; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -const mitt_1 = __importDefault(require("mitt")); -class EventEmitter { - #emitter = (0, mitt_1.default)(); - on(type, handler) { - this.#emitter.on(type, handler); - return this; - } - /** - * Like `on` but the listener will only be fired once and then it will be removed. - * @param event The event you'd like to listen to - * @param handler The handler function to run when the event occurs - * @return `this` to enable chaining method calls. - */ - once(event, handler) { - const onceHandler = (eventData) => { - handler(eventData); - this.off(event, onceHandler); - }; - return this.on(event, onceHandler); - } - off(type, handler) { - this.#emitter.off(type, handler); - return this; - } - /** - * Emits an event and call any associated listeners. - * - * @param event The event to emit. - * @param eventData Any data to emit with the event. - * @return `true` if there are any listeners, `false` otherwise. - */ - emit(event, eventData) { - this.#emitter.emit(event, eventData); - } - /** - * Removes all listeners. If given an event argument, it will remove only - * listeners for that event. - * @param event - the event to remove listeners for. - * @returns `this` to enable you to chain method calls. - */ - removeAllListeners(event) { - if (event) { - this.#emitter.all.delete(event); - } - else { - this.#emitter.all.clear(); - } - return this; - } -} -exports.EventEmitter = EventEmitter; -//# sourceMappingURL=EventEmitter.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js.map b/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js.map deleted file mode 100644 index cb5ba9e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventEmitter.js","sourceRoot":"","sources":["../../../src/utils/EventEmitter.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,gDAKc;AAEd,MAAa,YAAY;IACvB,QAAQ,GAAoB,IAAA,cAAI,GAAE,CAAC;IAUnC,EAAE,CAAC,IAAS,EAAE,OAAY;QACxB,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,KAAgB,EAAE,OAAgB;QACrC,MAAM,WAAW,GAAY,CAAC,SAAS,EAAE,EAAE;YACzC,OAAO,CAAC,SAAS,CAAC,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC/B,CAAC,CAAC;QACF,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACrC,CAAC;IAaD,GAAG,CAAC,IAAS,EAAE,OAAY;QACzB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAA2B,KAAU,EAAE,SAAsB;QAC/D,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IACvC,CAAC;IAED;;;;;OAKG;IACH,kBAAkB,CAAC,KAAiB;QAClC,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;QAC5B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAvED,oCAuEC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.d.ts deleted file mode 100644 index f0f44d3..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Creates an object with a positive unique incrementing id. - */ -export declare class IdWrapper { - #private; - constructor(); - get id(): number; -} diff --git a/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js b/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js deleted file mode 100644 index 3b1ffdd..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IdWrapper = void 0; -/** - * Creates an object with a positive unique incrementing id. - */ -class IdWrapper { - static #counter = 0; - #id; - constructor() { - this.#id = ++IdWrapper.#counter; - } - get id() { - return this.#id; - } -} -exports.IdWrapper = IdWrapper; -//# sourceMappingURL=IdWrapper.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js.map b/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js.map deleted file mode 100644 index b79a485..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IdWrapper.js","sourceRoot":"","sources":["../../../src/utils/IdWrapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH;;GAEG;AACH,MAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAC;IACX,GAAG,CAAS;IAErB;QACE,IAAI,CAAC,GAAG,GAAG,EAAE,SAAS,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;;AAVH,8BAWC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/Mutex.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/Mutex.d.ts deleted file mode 100644 index af30171..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/Mutex.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * Copyright 2022 The Chromium Authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export type ReleaseFunction = () => void; -/** - * Use Mutex class to coordinate local concurrent operations. - * Once `acquire` promise resolves, you hold the lock and must - * call `release` function returned by `acquire` to release the - * lock. Failing to `release` the lock may lead to deadlocks. - */ -export declare class Mutex { - #private; - acquire(): Promise; - run(action: () => Promise): Promise; -} diff --git a/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js b/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js deleted file mode 100644 index 7b711c7..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * Copyright 2022 The Chromium Authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Mutex = void 0; -/** - * Use Mutex class to coordinate local concurrent operations. - * Once `acquire` promise resolves, you hold the lock and must - * call `release` function returned by `acquire` to release the - * lock. Failing to `release` the lock may lead to deadlocks. - */ -class Mutex { - #locked = false; - #acquirers = []; - // This is FIFO. - acquire() { - const state = { resolved: false }; - if (this.#locked) { - return new Promise((resolve) => { - this.#acquirers.push(() => resolve(this.#release.bind(this, state))); - }); - } - this.#locked = true; - return Promise.resolve(this.#release.bind(this, state)); - } - #release(state) { - if (state.resolved) { - throw new Error('Cannot release more than once.'); - } - state.resolved = true; - const resolve = this.#acquirers.shift(); - if (!resolve) { - this.#locked = false; - return; - } - resolve(); - } - async run(action) { - const release = await this.acquire(); - try { - // Note we need to await here because we want the await to release AFTER - // that await happens. Returning action() will trigger the release - // immediately which is counter to what we want. - const result = await action(); - return result; - } - finally { - release(); - } - } -} -exports.Mutex = Mutex; -//# sourceMappingURL=Mutex.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js.map b/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js.map deleted file mode 100644 index 0735aff..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Mutex.js","sourceRoot":"","sources":["../../../src/utils/Mutex.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAIH;;;;;GAKG;AACH,MAAa,KAAK;IAChB,OAAO,GAAG,KAAK,CAAC;IAChB,UAAU,GAAmB,EAAE,CAAC;IAEhC,gBAAgB;IAChB,OAAO;QACL,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idi/lib/cjs/utils/ProcessingQueue.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.d.ts deleted file mode 100644 index 6a93170..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type LoggerFn } from './log.js'; -import type { Result } from './result.js'; -export declare class ProcessingQueue { - #private; - static readonly LOGGER_PREFIX: "debug:queue"; - constructor(processor: (arg: T) => Promise, logger?: LoggerFn); - add(entry: Promise>, name: string): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js b/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js deleted file mode 100644 index 710ad1d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ProcessingQueue = void 0; -const log_js_1 = require("./log.js"); -class ProcessingQueue { - static LOGGER_PREFIX = `${log_js_1.LogType.debug}:queue`; - #logger; - #processor; - #queue = []; - // Flag to keep only 1 active processor. - #isProcessing = false; - constructor(processor, logger) { - this.#processor = processor; - this.#logger = logger; - } - add(entry, name) { - this.#queue.push([entry, name]); - // No need in waiting. Just initialize processor if needed. - void this.#processIfNeeded(); - } - async #processIfNeeded() { - if (this.#isProcessing) { - return; - } - this.#isProcessing = true; - while (this.#queue.length > 0) { - const arrayEntry = this.#queue.shift(); - if (!arrayEntry) { - continue; - } - const [entryPromise, name] = arrayEntry; - this.#logger?.(_a.LOGGER_PREFIX, 'Processing event:', name); - await entryPromise - .then((entry) => { - if (entry.kind === 'error') { - this.#logger?.(log_js_1.LogType.debugError, 'Event threw before sending:', entry.error.message, entry.error.stack); - return; - } - return this.#processor(entry.value); - }) - .catch((error) => { - this.#logger?.(log_js_1.LogType.debugError, 'Event was not processed:', error?.message); - }); - } - this.#isProcessing = false; - } -} -exports.ProcessingQueue = ProcessingQueue; -_a = ProcessingQueue; -//# sourceMappingURL=ProcessingQueue.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js.map b/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js.map deleted file mode 100644 index 7331f37..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProcessingQueue.js","sourceRoot":"","sources":["../../../src/utils/ProcessingQueue.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;AAEH,qCAAgD;AAGhD,MAAa,eAAe;IAC1B,MAAM,CAAU,aAAa,GAAG,GAAG,gBAAO,CAAC,KAAK,QAAiB,CAAC;IAEzD,OAAO,CAAY;IACnB,UAAU,CAA4B;IACtC,MAAM,GAAmC,EAAE,CAAC;IAErD,wCAAwC;IACxC,aAAa,GAAG,KAAK,CAAC;IAEtB,YAAY,SAAoC,EAAE,MAAiB;QACjE,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,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OAAO,CACf,CAAC;YACJ,CAAC,CAAC,CAAC;QACP,CAAC;QAED,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;IAC7B,CAAC;;AAzDH,0CA0DC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/assert.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/assert.d.ts deleted file mode 100644 index 3855220..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/assert.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export declare function assert(predicate: T, message?: string): asserts predicate; diff --git a/node_modules/chromium-bidi/lib/cjs/utils/assert.js b/node_modules/chromium-bidi/lib/cjs/utils/assert.js deleted file mode 100644 index c616f44..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/assert.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assert = assert; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -function assert(predicate, message) { - if (!predicate) { - throw new Error(message ?? 'Internal assertion failed.'); - } -} -//# sourceMappingURL=assert.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/assert.js.map b/node_modules/chromium-bidi/lib/cjs/utils/assert.js.map deleted file mode 100644 index 62280aa..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/assert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"assert.js","sourceRoot":"","sources":["../../../src/utils/assert.ts"],"names":[],"mappings":";;AAgBA,wBAIC;AApBD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,MAAM,CAAI,SAAY,EAAE,OAAgB;IACtD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,OAAO,IAAI,4BAA4B,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/base64.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/base64.d.ts deleted file mode 100644 index 560375b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/base64.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Encodes a string to base64. - * - * Uses the native Web API if available, otherwise falls back to a NodeJS Buffer. - * @param {string} base64Str - * @return {string} - */ -export declare function base64ToString(base64Str: string): string; diff --git a/node_modules/chromium-bidi/lib/cjs/utils/base64.js b/node_modules/chromium-bidi/lib/cjs/utils/base64.js deleted file mode 100644 index 2ff6a86..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/base64.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base64ToString = base64ToString; -/** - * Encodes a string to base64. - * - * Uses the native Web API if available, otherwise falls back to a NodeJS Buffer. - * @param {string} base64Str - * @return {string} - */ -function base64ToString(base64Str) { - // Available only if run in a browser context. - if ('atob' in globalThis) { - return globalThis.atob(base64Str); - } - // Available only if run in a NodeJS context. - return Buffer.from(base64Str, 'base64').toString('ascii'); -} -//# sourceMappingURL=base64.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/base64.js.map b/node_modules/chromium-bidi/lib/cjs/utils/base64.js.map deleted file mode 100644 index bacd08d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/base64.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base64.js","sourceRoot":"","sources":["../../../src/utils/base64.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AASH,wCAOC;AAdD;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,SAAiB;IAC9C,8CAA8C;IAC9C,IAAI,MAAM,IAAI,UAAU,EAAE,CAAC;QACzB,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IACD,6CAA6C;IAC7C,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC5D,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/cdpErrorConstants.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/cdpErrorConstants.d.ts deleted file mode 100644 index 44a357d..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/cdpErrorConstants.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** @see https://crsrc.org/c/third_party/devtools-frontend/src/front_end/core/protocol_client/InspectorBackend.ts */ -export declare const enum CdpErrorConstants { - CONNECTION_CLOSED = -32001, - DEVTOOLS_STUB = -32015, - GENERIC_ERROR = -32000 -} diff --git a/node_modules/chromium-bidi/lib/cjs/utils/cdpErrorConstants.js b/node_modules/chromium-bidi/lib/cjs/utils/cdpErrorConstants.js deleted file mode 100644 index 0149f2a..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/cdpErrorConstants.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=cdpErrorConstants.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/cdpErrorConstants.js.map b/node_modules/chromium-bidi/lib/cjs/utils/cdpErrorConstants.js.map deleted file mode 100644 index c499071..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/cdpErrorConstants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cdpErrorConstants.js","sourceRoot":"","sources":["../../../src/utils/cdpErrorConstants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/graphemeTools.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/graphemeTools.d.ts deleted file mode 100644 index 01fc856..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/graphemeTools.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Check if the given string is a single complex grapheme. A complex grapheme is one that - * is made up of multiple characters. - */ -export declare function isSingleComplexGrapheme(value: string): boolean; -/** - * Check if the given string is a single grapheme. - */ -export declare function isSingleGrapheme(value: string): boolean; diff --git a/node_modules/chromium-bidi/lib/cjs/utils/graphemeTools.js b/node_modules/chromium-bidi/lib/cjs/utils/graphemeTools.js deleted file mode 100644 index 4c657ee..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/graphemeTools.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -/* - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isSingleComplexGrapheme = isSingleComplexGrapheme; -exports.isSingleGrapheme = isSingleGrapheme; -/** - * Check if the given string is a single complex grapheme. A complex grapheme is one that - * is made up of multiple characters. - */ -function isSingleComplexGrapheme(value) { - return isSingleGrapheme(value) && value.length > 1; -} -/** - * Check if the given string is a single grapheme. - */ -function isSingleGrapheme(value) { - // Theoretically there can be some strings considered a grapheme in some locales, like - // slovak "ch" digraph. Use english locale for consistency. - // https://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries - const segmenter = new Intl.Segmenter('en', { granularity: 'grapheme' }); - return [...segmenter.segment(value)].length === 1; -} -//# sourceMappingURL=graphemeTools.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/graphemeTools.js.map b/node_modules/chromium-bidi/lib/cjs/utils/graphemeTools.js.map deleted file mode 100644 index d02cc67..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/graphemeTools.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"graphemeTools.js","sourceRoot":"","sources":["../../../src/utils/graphemeTools.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAMH,0DAEC;AAKD,4CAMC;AAjBD;;;GAGG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACnD,OAAO,gBAAgB,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AACrD,CAAC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAAC,KAAa;IAC5C,sFAAsF;IACtF,2DAA2D;IAC3D,oEAAoE;IACpE,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAC,WAAW,EAAE,UAAU,EAAC,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/log.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/log.d.ts deleted file mode 100644 index 3c5c58e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/log.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export declare enum LogType { - bidi = "bidi", - cdp = "cdp", - debug = "debug", - debugError = "debug:error", - debugInfo = "debug:info", - debugWarn = "debug:warn" -} -export type LogPrefix = LogType | `${LogType}:${string}`; -export type LoggerFn = (type: LogPrefix, ...messages: unknown[]) => void; diff --git a/node_modules/chromium-bidi/lib/cjs/utils/log.js b/node_modules/chromium-bidi/lib/cjs/utils/log.js deleted file mode 100644 index 273719c..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/log.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LogType = void 0; -var LogType; -(function (LogType) { - // keep-sorted start - LogType["bidi"] = "bidi"; - LogType["cdp"] = "cdp"; - LogType["debug"] = "debug"; - LogType["debugError"] = "debug:error"; - LogType["debugInfo"] = "debug:info"; - LogType["debugWarn"] = "debug:warn"; - // keep-sorted end -})(LogType || (exports.LogType = LogType = {})); -//# sourceMappingURL=log.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/log.js.map b/node_modules/chromium-bidi/lib/cjs/utils/log.js.map deleted file mode 100644 index aa59f69..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/log.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../src/utils/log.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,IAAY,OASX;AATD,WAAY,OAAO;IACjB,oBAAoB;IACpB,wBAAa,CAAA;IACb,sBAAW,CAAA;IACX,0BAAe,CAAA;IACf,qCAA0B,CAAA;IAC1B,mCAAwB,CAAA;IACxB,mCAAwB,CAAA;IACxB,kBAAkB;AACpB,CAAC,EATW,OAAO,uBAAP,OAAO,QASlB"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/result.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/result.d.ts deleted file mode 100644 index e5f5db9..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/result.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export type Result = { - kind: 'success'; - value: T; -} | { - kind: 'error'; - error: E; -}; diff --git a/node_modules/chromium-bidi/lib/cjs/utils/result.js b/node_modules/chromium-bidi/lib/cjs/utils/result.js deleted file mode 100644 index f7bc337..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/result.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=result.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/result.js.map b/node_modules/chromium-bidi/lib/cjs/utils/result.js.map deleted file mode 100644 index bbb7b3a..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/result.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"result.js","sourceRoot":"","sources":["../../../src/utils/result.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/time.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/time.d.ts deleted file mode 100644 index 683e54b..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/time.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export declare function getTimestamp(): number; diff --git a/node_modules/chromium-bidi/lib/cjs/utils/time.js b/node_modules/chromium-bidi/lib/cjs/utils/time.js deleted file mode 100644 index dedb149..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/time.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTimestamp = getTimestamp; -function getTimestamp() { - // `timestamp` from the event is MonotonicTime, not real time, so - // the best Mapper can do is to set the timestamp to the epoch time - // of the event arrived. - // https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-MonotonicTime - return new Date().getTime(); -} -//# sourceMappingURL=time.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/time.js.map b/node_modules/chromium-bidi/lib/cjs/utils/time.js.map deleted file mode 100644 index 0706bd0..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/time.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"time.js","sourceRoot":"","sources":["../../../src/utils/time.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAEH,oCAMC;AAND,SAAgB,YAAY;IAC1B,iEAAiE;IACjE,mEAAmE;IACnE,wBAAwB;IACxB,qFAAqF;IACrF,OAAO,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/transport.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/transport.d.ts deleted file mode 100644 index 9c16b47..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/transport.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Represents a low-level transport mechanism for raw text messages like - * a WebSocket, pipe, or Window binding. - */ -export interface Transport { - setOnMessage: (handler: (message: string) => Promise | void) => void; - sendMessage: (message: string) => Promise | void; - close(): void; -} diff --git a/node_modules/chromium-bidi/lib/cjs/utils/transport.js b/node_modules/chromium-bidi/lib/cjs/utils/transport.js deleted file mode 100644 index 8cff4b0..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/transport.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=transport.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/transport.js.map b/node_modules/chromium-bidi/lib/cjs/utils/transport.js.map deleted file mode 100644 index 370ed80..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/transport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../src/utils/transport.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.d.ts deleted file mode 100644 index 353437e..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** @return Given an input in cm, convert it to inches. */ -export declare function inchesFromCm(cm: number): number; diff --git a/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js b/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js deleted file mode 100644 index b8e9ac4..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.inchesFromCm = inchesFromCm; -/** @return Given an input in cm, convert it to inches. */ -function inchesFromCm(cm) { - return cm / 2.54; -} -//# sourceMappingURL=unitConversions.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js.map b/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js.map deleted file mode 100644 index 7c670b3..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unitConversions.js","sourceRoot":"","sources":["../../../src/utils/unitConversions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAGH,oCAEC;AAHD,0DAA0D;AAC1D,SAAgB,YAAY,CAAC,EAAU;IACrC,OAAO,EAAE,GAAG,IAAI,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/urlHelpers.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/urlHelpers.d.ts deleted file mode 100644 index 55081d3..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/urlHelpers.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * A URL matches about:blank if its scheme is "about", its path contains a single string - * "blank", its username and password are the empty string, and its host is null. - * https://html.spec.whatwg.org/multipage/urls-and-fetching.html#matches-about:blank - * @param {string} url - * @return {boolean} - */ -export declare function urlMatchesAboutBlank(url: string): boolean; diff --git a/node_modules/chromium-bidi/lib/cjs/utils/urlHelpers.js b/node_modules/chromium-bidi/lib/cjs/utils/urlHelpers.js deleted file mode 100644 index 35537dd..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/urlHelpers.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.urlMatchesAboutBlank = urlMatchesAboutBlank; -/** - * A URL matches about:blank if its scheme is "about", its path contains a single string - * "blank", its username and password are the empty string, and its host is null. - * https://html.spec.whatwg.org/multipage/urls-and-fetching.html#matches-about:blank - * @param {string} url - * @return {boolean} - */ -function urlMatchesAboutBlank(url) { - // An empty string is a special case, and considered to be about:blank. - // https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-open-steps - if (url === '') { - return true; - } - try { - const parsedUrl = new URL(url); - const schema = parsedUrl.protocol.replace(/:$/, ''); - return (schema.toLowerCase() === 'about' && - parsedUrl.pathname.toLowerCase() === 'blank' && - parsedUrl.username === '' && - parsedUrl.password === '' && - parsedUrl.host === ''); - } - catch (err) { - // Wrong URL considered do not match about:blank. - if (err instanceof TypeError) { - return false; - } - // Re-throw other unexpected errors. - throw err; - } -} -//# sourceMappingURL=urlHelpers.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/urlHelpers.js.map b/node_modules/chromium-bidi/lib/cjs/utils/urlHelpers.js.map deleted file mode 100644 index 20b79bd..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/urlHelpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"urlHelpers.js","sourceRoot":"","sources":["../../../src/utils/urlHelpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AASH,oDAyBC;AAhCD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,GAAW;IAC9C,uEAAuE;IACvE,iFAAiF;IACjF,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpD,OAAO,CACL,MAAM,CAAC,WAAW,EAAE,KAAK,OAAO;YAChC,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,OAAO;YAC5C,SAAS,CAAC,QAAQ,KAAK,EAAE;YACzB,SAAS,CAAC,QAAQ,KAAK,EAAE;YACzB,SAAS,CAAC,IAAI,KAAK,EAAE,CACtB,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,iDAAiD;QACjD,IAAI,GAAG,YAAY,SAAS,EAAE,CAAC;YAC7B,OAAO,KAAK,CAAC;QACf,CAAC;QACD,oCAAoC;QACpC,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/uuid.d.ts b/node_modules/chromium-bidi/lib/cjs/utils/uuid.d.ts deleted file mode 100644 index 29c26f7..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/uuid.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Generates a random v4 UUID, as specified in RFC4122. - * - * Uses the native Web Crypto API if available, otherwise falls back to a - * polyfill. - * - * Example: '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' - */ -export declare function uuidv4(): `${string}-${string}-${string}-${string}-${string}`; diff --git a/node_modules/chromium-bidi/lib/cjs/utils/uuid.js b/node_modules/chromium-bidi/lib/cjs/utils/uuid.js deleted file mode 100644 index 987b2f6..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/uuid.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.uuidv4 = uuidv4; -function bytesToHex(bytes) { - return bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, '0'), ''); -} -/** - * Generates a random v4 UUID, as specified in RFC4122. - * - * Uses the native Web Crypto API if available, otherwise falls back to a - * polyfill. - * - * Example: '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' - */ -function uuidv4() { - // Available only in secure contexts - // https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API - if ('crypto' in globalThis && 'randomUUID' in globalThis.crypto) { - // Node with - // https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#crypto_1 or - // secure browser context. - return globalThis.crypto.randomUUID(); - } - const randomValues = new Uint8Array(16); - if ('crypto' in globalThis && 'getRandomValues' in globalThis.crypto) { - // Node (>=18) with - // https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#crypto_1 or - // browser. - globalThis.crypto.getRandomValues(randomValues); - } - else { - // Node (<=16) without - // https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#crypto_1. - // eslint-disable-next-line @typescript-eslint/no-require-imports - require('crypto').webcrypto.getRandomValues(randomValues); - } - // Set version (4) and variant (RFC4122) bits. - randomValues[6] = (randomValues[6] & 0x0f) | 0x40; - randomValues[8] = (randomValues[8] & 0x3f) | 0x80; - return [ - bytesToHex(randomValues.subarray(0, 4)), - bytesToHex(randomValues.subarray(4, 6)), - bytesToHex(randomValues.subarray(6, 8)), - bytesToHex(randomValues.subarray(8, 10)), - bytesToHex(randomValues.subarray(10, 16)), - ].join('-'); -} -//# sourceMappingURL=uuid.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/cjs/utils/uuid.js.map b/node_modules/chromium-bidi/lib/cjs/utils/uuid.js.map deleted file mode 100644 index 55a5a82..0000000 --- a/node_modules/chromium-bidi/lib/cjs/utils/uuid.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../../src/utils/uuid.ts"],"names":[],"mapp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CAAC,CAAC;QACvC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACvC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACvC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACxC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;KAC1C,CAAC,IAAI,CAAC,GAAG,CAAwD,CAAC;AACrE,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiMapper.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiMapper.d.ts deleted file mode 100644 index 8520592..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiMapper.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * @fileoverview The entry point to the BiDi Mapper namespace. - * Other modules should only access exports defined in this file. - * XXX: Add ESlint rule for this (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md) - */ -export { BidiServer } from './BidiServer.js'; -export { MapperOptions } from './MapperOptions.js'; -export type { CdpConnection } from '../cdp/CdpConnection.js'; -export type { CdpClient } from '../cdp/CdpClient.js'; -export { EventEmitter } from '../utils/EventEmitter.js'; -export type { BidiTransport } from './BidiTransport.js'; -export { OutgoingMessage } from './OutgoingMessage.js'; -export type { BidiCommandParameterParser } from './BidiParser.js'; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiMapper.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiMapper.js deleted file mode 100644 index 10f21ab..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiMapper.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * @fileoverview The entry point to the BiDi Mapper namespace. - * Other modules should only access exports defined in this file. - * XXX: Add ESlint rule for this (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md) - */ -export { BidiServer } from './BidiServer.js'; -export { EventEmitter } from '../utils/EventEmitter.js'; -export { OutgoingMessage } from './OutgoingMessage.js'; -//# sourceMappingURL=BidiMapper.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiMapper.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiMapper.js.map deleted file mode 100644 index f4d05f2..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiMapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiMapper.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;GAIG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAI3C,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiNoOpParser.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiNoOpParser.d.ts deleted file mode 100644 index 958522b..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiNoOpParser.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Browser, BrowsingContext, Cdp, Emulation, Input, Network, Script, Session, Storage, Permissions, Bluetooth, WebExtension, UAClientHints } from '../protocol/protocol.js'; -import type { BidiCommandParameterParser } from './BidiParser.js'; -export declare class BidiNoOpParser implements BidiCommandParameterParser { - parseDisableSimulationParameters(params: unknown): Bluetooth.DisableSimulationParameters; - parseHandleRequestDevicePromptParams(params: unknown): Bluetooth.HandleRequestDevicePromptParameters; - parseSimulateAdapterParameters(params: unknown): Bluetooth.SimulateAdapterParameters; - parseSimulateAdvertisementParameters(params: unknown): Bluetooth.SimulateAdvertisementParameters; - parseSimulateCharacteristicParameters(params: unknown): Bluetooth.SimulateCharacteristicParameters; - parseSimulateCharacteristicResponseParameters(params: unknown): Bluetooth.SimulateCharacteristicResponseParameters; - parseSimulateDescriptorParameters(params: unknown): Bluetooth.SimulateDescriptorParameters; - parseSimulateDescriptorResponseParameters(params: unknown): Bluetooth.SimulateDescriptorResponseParameters; - parseSimulateGattConnectionResponseParameters(params: unknown): Bluetooth.SimulateGattConnectionResponseParameters; - parseSimulateGattDisconnectionParameters(params: unknown): Bluetooth.SimulateGattDisconnectionParameters; - parseSimulatePreconnectedPeripheralParameters(params: unknown): Bluetooth.SimulatePreconnectedPeripheralParameters; - parseSimulateServiceParameters(params: unknown): Bluetooth.SimulateServiceParameters; - parseCreateUserContextParameters(params: unknown): Browser.CreateUserContextParameters; - parseRemoveUserContextParameters(params: unknown): Browser.RemoveUserContextParameters; - parseSetClientWindowStateParameters(params: unknown): Browser.SetClientWindowStateParameters; - parseSetDownloadBehaviorParameters(params: unknown): Browser.SetDownloadBehaviorParameters; - parseActivateParams(params: unknown): BrowsingContext.ActivateParameters; - parseCaptureScreenshotParams(params: unknown): BrowsingContext.CaptureScreenshotParameters; - parseCloseParams(params: unknown): BrowsingContext.CloseParameters; - parseCreateParams(params: unknown): BrowsingContext.CreateParameters; - parseGetTreeParams(params: unknown): BrowsingContext.GetTreeParameters; - parseHandleUserPromptParams(params: unknown): BrowsingContext.HandleUserPromptParameters; - parseLocateNodesParams(params: unknown): BrowsingContext.LocateNodesParameters; - parseNavigateParams(params: unknown): BrowsingContext.NavigateParameters; - parsePrintParams(params: unknown): BrowsingContext.PrintParameters; - parseReloadParams(params: unknown): BrowsingContext.ReloadParameters; - parseSetViewportParams(params: unknown): BrowsingContext.SetViewportParameters; - parseTraverseHistoryParams(params: unknown): BrowsingContext.TraverseHistoryParameters; - parseGetSessionParams(params: unknown): Cdp.GetSessionParameters; - parseResolveRealmParams(params: unknown): Cdp.ResolveRealmParameters; - parseSendCommandParams(params: unknown): Cdp.SendCommandParameters; - parseSetClientHintsOverrideParams(params: unknown): UAClientHints.UserAgentClientHints.SetClientHintsOverrideCommand['params']; - parseSetForcedColorsModeThemeOverrideParams(params: unknown): Emulation.SetForcedColorsModeThemeOverrideParameters; - parseSetGeolocationOverrideParams(params: unknown): Emulation.SetGeolocationOverrideParameters; - parseSetLocaleOverrideParams(params: unknown): Emulation.SetLocaleOverrideParameters; - parseSetNetworkConditionsParams(params: unknown): Emulation.SetNetworkConditionsParameters; - parseSetScreenOrientationOverrideParams(params: unknown): Emulation.SetScreenOrientationOverrideParameters; - parseSetScreenSettingsOverrideParams(params: unknown): Emulation.SetScreenSettingsOverrideParameters; - parseSetScriptingEnabledParams(params: unknown): Emulation.SetScriptingEnabledParameters; - parseSetTimezoneOverrideParams(params: unknown): Emulation.SetTimezoneOverrideParameters; - parseSetTouchOverrideParams(params: unknown): Emulation.SetTouchOverrideParameters; - parseSetUserAgentOverrideParams(params: unknown): Emulation.SetUserAgentOverrideParameters; - parseAddPreloadScriptParams(params: unknown): Script.AddPreloadScriptParameters; - parseCallFunctionParams(params: unknown): Script.CallFunctionParameters; - parseDisownParams(params: unknown): Script.DisownParameters; - parseEvaluateParams(params: unknown): Script.EvaluateParameters; - parseGetRealmsParams(params: unknown): Script.GetRealmsParameters; - parseRemovePreloadScriptParams(params: unknown): Script.RemovePreloadScriptParameters; - parsePerformActionsParams(params: unknown): Input.PerformActionsParameters; - parseReleaseActionsParams(params: unknown): Input.ReleaseActionsParameters; - parseSetFilesParams(params: unknown): Input.SetFilesParameters; - parseAddDataCollectorParams(params: unknown): Network.AddDataCollectorParameters; - parseAddInterceptParams(params: unknown): Network.AddInterceptParameters; - parseContinueRequestParams(params: unknown): Network.ContinueRequestParameters; - parseContinueResponseParams(params: unknown): Network.ContinueResponseParameters; - parseContinueWithAuthParams(params: unknown): Network.ContinueWithAuthParameters; - parseDisownDataParams(params: unknown): Network.DisownDataParameters; - parseFailRequestParams(params: unknown): Network.FailRequestParameters; - parseGetDataParams(params: unknown): Network.GetDataParameters; - parseProvideResponseParams(params: unknown): Network.ProvideResponseParameters; - parseRemoveDataCollectorParams(params: unknown): Network.RemoveDataCollectorParameters; - parseRemoveInterceptParams(params: unknown): Network.RemoveInterceptParameters; - parseSetCacheBehaviorParams(params: unknown): Network.SetCacheBehaviorParameters; - parseSetExtraHeadersParams(params: unknown): Network.SetExtraHeadersParameters; - parseSetPermissionsParams(params: unknown): Permissions.SetPermissionParameters; - parseSubscribeParams(params: unknown): Session.SubscribeParameters; - parseUnsubscribeParams(params: unknown): Session.UnsubscribeByAttributesRequest | Session.UnsubscribeByIdRequest; - parseDeleteCookiesParams(params: unknown): Storage.DeleteCookiesParameters; - parseGetCookiesParams(params: unknown): Storage.GetCookiesParameters; - parseSetCookieParams(params: unknown): Storage.SetCookieParameters; - parseInstallParams(params: unknown): WebExtension.InstallParameters; - parseUninstallParams(params: unknown): WebExtension.UninstallParameters; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiNoOpParser.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiNoOpParser.js deleted file mode 100644 index 5ef10c8..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiNoOpParser.js +++ /dev/null @@ -1,270 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export class BidiNoOpParser { - // Bluetooth module - // keep-sorted start block=yes - parseDisableSimulationParameters(params) { - return params; - } - parseHandleRequestDevicePromptParams(params) { - return params; - } - parseSimulateAdapterParameters(params) { - return params; - } - parseSimulateAdvertisementParameters(params) { - return params; - } - parseSimulateCharacteristicParameters(params) { - return params; - } - parseSimulateCharacteristicResponseParameters(params) { - return params; - } - parseSimulateDescriptorParameters(params) { - return params; - } - parseSimulateDescriptorResponseParameters(params) { - return params; - } - parseSimulateGattConnectionResponseParameters(params) { - return params; - } - parseSimulateGattDisconnectionParameters(params) { - return params; - } - parseSimulatePreconnectedPeripheralParameters(params) { - return params; - } - parseSimulateServiceParameters(params) { - return params; - } - // keep-sorted end - // Browser module - // keep-sorted start block=yes - parseCreateUserContextParameters(params) { - return params; - } - parseRemoveUserContextParameters(params) { - return params; - } - parseSetClientWindowStateParameters(params) { - return params; - } - parseSetDownloadBehaviorParameters(params) { - return params; - } - // keep-sorted end - // Browsing Context module - // keep-sorted start block=yes - parseActivateParams(params) { - return params; - } - parseCaptureScreenshotParams(params) { - return params; - } - parseCloseParams(params) { - return params; - } - parseCreateParams(params) { - return params; - } - parseGetTreeParams(params) { - return params; - } - parseHandleUserPromptParams(params) { - return params; - } - parseLocateNodesParams(params) { - return params; - } - parseNavigateParams(params) { - return params; - } - parsePrintParams(params) { - return params; - } - parseReloadParams(params) { - return params; - } - parseSetViewportParams(params) { - return params; - } - parseTraverseHistoryParams(params) { - return params; - } - // keep-sorted end - // CDP module - // keep-sorted start block=yes - parseGetSessionParams(params) { - return params; - } - parseResolveRealmParams(params) { - return params; - } - parseSendCommandParams(params) { - return params; - } - // keep-sorted end - // Emulation module - // keep-sorted start block=yes - parseSetClientHintsOverrideParams(params) { - return params; - } - parseSetForcedColorsModeThemeOverrideParams(params) { - return params; - } - parseSetGeolocationOverrideParams(params) { - return params; - } - parseSetLocaleOverrideParams(params) { - return params; - } - parseSetNetworkConditionsParams(params) { - return params; - } - parseSetScreenOrientationOverrideParams(params) { - return params; - } - parseSetScreenSettingsOverrideParams(params) { - return params; - } - parseSetScriptingEnabledParams(params) { - return params; - } - parseSetTimezoneOverrideParams(params) { - return params; - } - parseSetTouchOverrideParams(params) { - return params; - } - parseSetUserAgentOverrideParams(params) { - return params; - } - // keep-sorted end - // Script module - // keep-sorted start block=yes - parseAddPreloadScriptParams(params) { - return params; - } - parseCallFunctionParams(params) { - return params; - } - parseDisownParams(params) { - return params; - } - parseEvaluateParams(params) { - return params; - } - parseGetRealmsParams(params) { - return params; - } - parseRemovePreloadScriptParams(params) { - return params; - } - // keep-sorted end - // Input module - // keep-sorted start block=yes - parsePerformActionsParams(params) { - return params; - } - parseReleaseActionsParams(params) { - return params; - } - parseSetFilesParams(params) { - return params; - } - // keep-sorted end - // Network module - // keep-sorted start block=yes - parseAddDataCollectorParams(params) { - return params; - } - parseAddInterceptParams(params) { - return params; - } - parseContinueRequestParams(params) { - return params; - } - parseContinueResponseParams(params) { - return params; - } - parseContinueWithAuthParams(params) { - return params; - } - parseDisownDataParams(params) { - return params; - } - parseFailRequestParams(params) { - return params; - } - parseGetDataParams(params) { - return params; - } - parseProvideResponseParams(params) { - return params; - } - parseRemoveDataCollectorParams(params) { - return params; - } - parseRemoveInterceptParams(params) { - return params; - } - parseSetCacheBehaviorParams(params) { - return params; - } - parseSetExtraHeadersParams(params) { - return params; - } - // keep-sorted end - // Permissions module - // keep-sorted start block=yes - parseSetPermissionsParams(params) { - return params; - } - // keep-sorted end - // Session module - // keep-sorted start block=yes - parseSubscribeParams(params) { - return params; - } - parseUnsubscribeParams(params) { - return params; - } - // keep-sorted end - // Storage module - // keep-sorted start block=yes - parseDeleteCookiesParams(params) { - return params; - } - parseGetCookiesParams(params) { - return params; - } - parseSetCookieParams(params) { - return params; - } - // keep-sorted end - // WebExtenstion module - // keep-sorted start block=yes - parseInstallParams(params) { - return params; - } - parseUninstallParams(params) { - return params; - } -} -//# sourceMappingURL=BidiNoOpParser.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiNoOpParser.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiNoOpParser.js.map deleted file mode 100644 index a48a755..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiNoOpParser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiNoOpParser.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiNoOpParser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAoBH,MAAM,OAAO,cAAc;IACzB,mBAAmB;IACnB,8BAA8B;IAC9B,gCAAgC,CAC9B,MAAe;QAEf,OAAO,MAA+C,CAAC;IACzD,CAAC;IACD,oCAAoC,CAClC,MAAe;QAEf,OAAO,MAAuD,CAAC;IACjE,CAAC;IACD,8BAA8B,CAC5B,MAAe;QAEf,OAAO,MAA6C,CAA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iParser.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiParser.d.ts deleted file mode 100644 index 83ad603..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiParser.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Bluetooth, Browser, BrowsingContext, Cdp, Emulation, Input, Network, Permissions, Script, Session, Storage, WebExtension, UAClientHints } from '../protocol/protocol.js'; -export interface BidiCommandParameterParser { - parseDisableSimulationParameters(params: unknown): Bluetooth.DisableSimulationParameters; - parseHandleRequestDevicePromptParams(params: unknown): Bluetooth.HandleRequestDevicePromptParameters; - parseSimulateAdapterParameters(params: unknown): Bluetooth.SimulateAdapterParameters; - parseSimulateAdvertisementParameters(params: unknown): Bluetooth.SimulateAdvertisementParameters; - parseSimulateCharacteristicParameters(params: unknown): Bluetooth.SimulateCharacteristicParameters; - parseSimulateCharacteristicResponseParameters(params: unknown): Bluetooth.SimulateCharacteristicResponseParameters; - parseSimulateDescriptorParameters(params: unknown): Bluetooth.SimulateDescriptorParameters; - parseSimulateDescriptorResponseParameters(params: unknown): Bluetooth.SimulateDescriptorResponseParameters; - parseSimulateGattConnectionResponseParameters(params: unknown): Bluetooth.SimulateGattConnectionResponseParameters; - parseSimulateGattDisconnectionParameters(params: unknown): Bluetooth.SimulateGattDisconnectionParameters; - parseSimulatePreconnectedPeripheralParameters(params: unknown): Bluetooth.SimulatePreconnectedPeripheralParameters; - parseSimulateServiceParameters(params: unknown): Bluetooth.SimulateServiceParameters; - parseCreateUserContextParameters(params: unknown): Browser.CreateUserContextParameters; - parseRemoveUserContextParameters(params: unknown): Browser.RemoveUserContextParameters; - parseSetClientWindowStateParameters(params: unknown): Browser.SetClientWindowStateParameters; - parseSetDownloadBehaviorParameters(params: unknown): Browser.SetDownloadBehaviorParameters; - parseActivateParams(params: unknown): BrowsingContext.ActivateParameters; - parseCaptureScreenshotParams(params: unknown): BrowsingContext.CaptureScreenshotParameters; - parseCloseParams(params: unknown): BrowsingContext.CloseParameters; - parseCreateParams(params: unknown): BrowsingContext.CreateParameters; - parseGetTreeParams(params: unknown): BrowsingContext.GetTreeParameters; - parseHandleUserPromptParams(params: unknown): BrowsingContext.HandleUserPromptParameters; - parseLocateNodesParams(params: unknown): BrowsingContext.LocateNodesParameters; - parseNavigateParams(params: unknown): BrowsingContext.NavigateParameters; - parsePrintParams(params: unknown): BrowsingContext.PrintParameters; - parseReloadParams(params: unknown): BrowsingContext.ReloadParameters; - parseSetViewportParams(params: unknown): BrowsingContext.SetViewportParameters; - parseTraverseHistoryParams(params: unknown): BrowsingContext.TraverseHistoryParameters; - parseGetSessionParams(params: unknown): Cdp.GetSessionParameters; - parseResolveRealmParams(params: unknown): Cdp.ResolveRealmParameters; - parseSendCommandParams(params: unknown): Cdp.SendCommandParameters; - parseSetClientHintsOverrideParams(params: unknown): UAClientHints.UserAgentClientHints.SetClientHintsOverrideCommand['params']; - parseSetForcedColorsModeThemeOverrideParams(params: unknown): Emulation.SetForcedColorsModeThemeOverrideParameters; - parseSetGeolocationOverrideParams(params: unknown): Emulation.SetGeolocationOverrideParameters; - parseSetLocaleOverrideParams(params: unknown): Emulation.SetLocaleOverrideParameters; - parseSetNetworkConditionsParams(params: unknown): Emulation.SetNetworkConditionsParameters; - parseSetScreenOrientationOverrideParams(params: unknown): Emulation.SetScreenOrientationOverrideParameters; - parseSetScreenSettingsOverrideParams(params: unknown): Emulation.SetScreenSettingsOverrideParameters; - parseSetScriptingEnabledParams(params: unknown): Emulation.SetScriptingEnabledParameters; - parseSetTimezoneOverrideParams(params: unknown): Emulation.SetTimezoneOverrideParameters; - parseSetTouchOverrideParams(params: unknown): Emulation.SetTouchOverrideParameters; - parseSetUserAgentOverrideParams(params: unknown): Emulation.SetUserAgentOverrideParameters; - parsePerformActionsParams(params: unknown): Input.PerformActionsParameters; - parseReleaseActionsParams(params: unknown): Input.ReleaseActionsParameters; - parseSetFilesParams(params: unknown): Input.SetFilesParameters; - parseSetPermissionsParams(params: unknown): Permissions.SetPermissionParameters; - parseAddDataCollectorParams(params: unknown): Network.AddDataCollectorParameters; - parseAddInterceptParams(params: unknown): Network.AddInterceptParameters; - parseContinueRequestParams(params: unknown): Network.ContinueRequestParameters; - parseContinueResponseParams(params: unknown): Network.ContinueResponseParameters; - parseContinueWithAuthParams(params: unknown): Network.ContinueWithAuthParameters; - parseDisownDataParams(params: unknown): Network.DisownDataParameters; - parseFailRequestParams(params: unknown): Network.FailRequestParameters; - parseGetDataParams(params: unknown): Network.GetDataParameters; - parseProvideResponseParams(params: unknown): Network.ProvideResponseParameters; - parseRemoveDataCollectorParams(params: unknown): Network.RemoveDataCollectorParameters; - parseRemoveInterceptParams(params: unknown): Network.RemoveInterceptParameters; - parseSetCacheBehaviorParams(params: unknown): Network.SetCacheBehaviorParameters; - parseSetExtraHeadersParams(params: unknown): Network.SetExtraHeadersParameters; - parseAddPreloadScriptParams(params: unknown): Script.AddPreloadScriptParameters; - parseCallFunctionParams(params: unknown): Script.CallFunctionParameters; - parseDisownParams(params: unknown): Script.DisownParameters; - parseEvaluateParams(params: unknown): Script.EvaluateParameters; - parseGetRealmsParams(params: unknown): Script.GetRealmsParameters; - parseRemovePreloadScriptParams(params: unknown): Script.RemovePreloadScriptParameters; - parseSubscribeParams(params: unknown): Session.SubscribeParameters; - parseUnsubscribeParams(params: unknown): Session.UnsubscribeParameters; - parseDeleteCookiesParams(params: unknown): Storage.DeleteCookiesParameters; - parseGetCookiesParams(params: unknown): Storage.GetCookiesParameters; - parseSetCookieParams(params: unknown): Storage.SetCookieParameters; - parseInstallParams(params: unknown): WebExtension.InstallParameters; - parseUninstallParams(params: unknown): WebExtension.UninstallParameters; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiParser.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiParser.js deleted file mode 100644 index 9a65f9a..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiParser.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export {}; -//# sourceMappingURL=BidiParser.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiParser.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiParser.js.map deleted file mode 100644 index d4cb6a2..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiParser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiParser.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiParser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiServer.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiServer.d.ts deleted file mode 100644 index de23cdf..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiServer.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../cdp/CdpClient.js'; -import type { CdpConnection } from '../cdp/CdpConnection.js'; -import type { ChromiumBidi } from '../protocol/protocol.js'; -import { EventEmitter } from '../utils/EventEmitter.js'; -import { type LoggerFn } from '../utils/log.js'; -import type { Result } from '../utils/result.js'; -import type { BidiCommandParameterParser } from './BidiParser.js'; -import type { BidiTransport } from './BidiTransport.js'; -import type { OutgoingMessage } from './OutgoingMessage.js'; -interface BidiServerEvent extends Record { - message: ChromiumBidi.Command; -} -export declare class BidiServer extends EventEmitter { - #private; - private constructor(); - /** - * Creates and starts BiDi Mapper instance. - */ - static createAndStart(bidiTransport: BidiTransport, cdpConnection: CdpConnection, browserCdpClient: CdpClient, selfTargetId: string, parser?: BidiCommandParameterParser, logger?: LoggerFn): Promise; - /** - * Sends BiDi message. - */ - emitOutgoingMessage(messageEntry: Promise>, event: string): void; - close(): void; -} -export {}; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiServer.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiServer.js deleted file mode 100644 index f921637..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiServer.js +++ /dev/null @@ -1,165 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { EventEmitter } from '../utils/EventEmitter.js'; -import { LogType } from '../utils/log.js'; -import { ProcessingQueue } from '../utils/ProcessingQueue.js'; -import { CommandProcessor } from './CommandProcessor.js'; -import { BluetoothProcessor } from './modules/bluetooth/BluetoothProcessor.js'; -import { ContextConfigStorage } from './modules/browser/ContextConfigStorage.js'; -import { UserContextStorage } from './modules/browser/UserContextStorage.js'; -import { CdpTargetManager } from './modules/cdp/CdpTargetManager.js'; -import { BrowsingContextStorage } from './modules/context/BrowsingContextStorage.js'; -import { NetworkStorage } from './modules/network/NetworkStorage.js'; -import { PreloadScriptStorage } from './modules/script/PreloadScriptStorage.js'; -import { RealmStorage } from './modules/script/RealmStorage.js'; -import { EventManager, } from './modules/session/EventManager.js'; -import { SpeculationProcessor } from './modules/speculation/SpeculationProcessor.js'; -export class BidiServer extends EventEmitter { - #messageQueue; - #transport; - #commandProcessor; - #eventManager; - #browsingContextStorage = new BrowsingContextStorage(); - #realmStorage = new RealmStorage(); - #preloadScriptStorage = new PreloadScriptStorage(); - #bluetoothProcessor; - #speculationProcessor; - #logger; - #handleIncomingMessage = (message) => { - void this.#commandProcessor.processCommand(message).catch((error) => { - this.#logger?.(LogType.debugError, error); - }); - }; - #processOutgoingMessage = async (messageEntry) => { - const message = messageEntry.message; - if (messageEntry.googChannel !== null) { - message['goog:channel'] = messageEntry.googChannel; - } - await this.#transport.sendMessage(message); - }; - constructor(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, defaultUserContextId, defaultUserAgent, parser, logger) { - super(); - this.#logger = logger; - this.#messageQueue = new ProcessingQueue(this.#processOutgoingMessage, this.#logger); - this.#transport = bidiTransport; - this.#transport.setOnMessage(this.#handleIncomingMessage); - const contextConfigStorage = new ContextConfigStorage(); - const userContextStorage = new UserContextStorage(browserCdpClient); - this.#eventManager = new EventManager(this.#browsingContextStorage, userContextStorage); - const networkStorage = new NetworkStorage(this.#eventManager, this.#browsingContextStorage, browserCdpClient, logger); - this.#bluetoothProcessor = new BluetoothProcessor(this.#eventManager, this.#browsingContextStorage); - this.#speculationProcessor = new SpeculationProcessor(this.#eventManager, this.#logger); - this.#commandProcessor = new CommandProcessor(cdpConnection, browserCdpClient, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, this.#preloadScriptStorage, networkStorage, contextConfigStorage, this.#bluetoothProcessor, userContextStorage, parser, async (options) => { - // This is required to ignore certificate errors when service worker is fetched. - await browserCdpClient.sendCommand('Security.setIgnoreCertificateErrors', { - ignore: options.acceptInsecureCerts ?? false, - }); - contextConfigStorage.updateGlobalConfig({ - acceptInsecureCerts: options.acceptInsecureCerts ?? false, - userPromptHandler: options.unhandledPromptBehavior, - prerenderingDisabled: options?.['goog:prerenderingDisabled'] ?? false, - disableNetworkDurableMessages: options?.['goog:disableNetworkDurableMessages'], - }); - new CdpTargetManager(cdpConnection, browserCdpClient, selfTargetId, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, networkStorage, contextConfigStorage, this.#bluetoothProcessor, this.#speculationProcessor, this.#preloadScriptStorage, defaultUserContextId, defaultUserAgent, logger); - // Needed to get events about new targets. - await browserCdpClient.sendCommand('Target.setDiscoverTargets', { - discover: true, - }); - // Needed to automatically attach to new targets. - await browserCdpClient.sendCommand('Target.setAutoAttach', { - autoAttach: true, - waitForDebuggerOnStart: true, - flatten: true, - // Browser session should attach to tab instead of the page, so that - // prerendering is not blocked. - filter: [ - { - type: 'page', - exclude: true, - }, - {}, - ], - }); - await this.#topLevelContextsLoaded(); - }, this.#logger); - this.#eventManager.on("event" /* EventManagerEvents.Event */, ({ message, event }) => { - this.emitOutgoingMessage(message, event); - }); - this.#commandProcessor.on("response" /* CommandProcessorEvents.Response */, ({ message, event }) => { - this.emitOutgoingMessage(message, event); - }); - } - /** - * Creates and starts BiDi Mapper instance. - */ - static async createAndStart(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, parser, logger) { - const [defaultUserContextId, version] = await Promise.all([ - this.#getDefaultUserContextId(browserCdpClient), - // Fetch the default User Agent to be used in `CdpTarget`. This allows to avoid - // round trips to the browser for every target override. - browserCdpClient.sendCommand('Browser.getVersion'), - // Required for `Browser.downloadWillBegin` events. - browserCdpClient.sendCommand('Browser.setDownloadBehavior', { - behavior: 'default', - eventsEnabled: true, - }), - ]); - const server = new BidiServer(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, defaultUserContextId, version.userAgent, parser, logger); - return server; - } - static async #getDefaultUserContextId(browserCdpClient) { - // In chromium before `145.0.7578.0`, the default context is not exposed in - // `Target.getBrowserContexts`, but can be observed via `Target.getTargets`. - // If so, try to determine the default browser context by checking which one - // is mentioned in `Target.getTargets` and not in - // `Target.getBrowserContexts`. - // TODO(after 2026-02-24): rely only on `defaultBrowserContextId` from - // `Target.getBrowserContexts` after Chromium 145 reaches stable. - const [{ defaultBrowserContextId, browserContextIds }, { targetInfos }] = await Promise.all([ - browserCdpClient.sendCommand('Target.getBrowserContexts'), - browserCdpClient.sendCommand('Target.getTargets'), - ]); - if (defaultBrowserContextId) { - return defaultBrowserContextId; - } - for (const info of targetInfos) { - if (info.browserContextId && - !browserContextIds.includes(info.browserContextId)) { - // The target belongs to a browser context that is not mentioned in - // `Target.getBrowserContexts`. This is the default browser context. - return info.browserContextId; - } - } - // The browser context is unknown. - return 'default'; - } - /** - * Sends BiDi message. - */ - emitOutgoingMessage(messageEntry, event) { - this.#messageQueue.add(messageEntry, event); - } - close() { - this.#transport.close(); - } - async #topLevelContextsLoaded() { - await Promise.all(this.#browsingContextStorage - .getTopLevelContexts() - .map((c) => c.lifecycleLoaded())); - } -} -//# sourceMappingURL=BidiServer.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiServer.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiServer.js.map deleted file mode 100644 index b6cbf3f..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiServer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiServer.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiServer.ts"],"names":[],"mappings":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QAC3B,MAAM,OAAO,CAAC,GAAG,CACf,IAAI,CAAC,uBAAuB;aACzB,mBAAmB,EAAE;aACrB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CACnC,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiTransport.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiTransport.d.ts deleted file mode 100644 index 6824b83..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiTransport.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { ChromiumBidi } from '../protocol/protocol.js'; -export interface BidiTransport { - setOnMessage: (handler: (message: ChromiumBidi.Command) => Promise | void) => void; - sendMessage: (message: ChromiumBidi.Message) => Promise | void; - close(): void; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiTransport.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiTransport.js deleted file mode 100644 index bf8f5e7..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiTransport.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export {}; -//# sourceMappingURL=BidiTransport.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiTransport.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiTransport.js.map deleted file mode 100644 index 418f957..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/BidiTransport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BidiTransport.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/CommandProcessor.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/CommandProcessor.d.ts deleted file mode 100644 index e8a3471..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/CommandProcessor.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../cdp/CdpClient.js'; -import type { CdpConnection } from '../cdp/CdpConnection.js'; -import { type ChromiumBidi } from '../protocol/protocol.js'; -import { EventEmitter } from '../utils/EventEmitter.js'; -import { type LoggerFn } from '../utils/log.js'; -import type { Result } from '../utils/result.js'; -import type { BidiCommandParameterParser } from './BidiParser.js'; -import type { MapperOptions } from './MapperOptions.js'; -import type { BluetoothProcessor } from './modules/bluetooth/BluetoothProcessor.js'; -import type { ContextConfigStorage } from './modules/browser/ContextConfigStorage.js'; -import type { UserContextStorage } from './modules/browser/UserContextStorage.js'; -import type { BrowsingContextStorage } from './modules/context/BrowsingContextStorage.js'; -import type { NetworkStorage } from './modules/network/NetworkStorage.js'; -import type { PreloadScriptStorage } from './modules/script/PreloadScriptStorage.js'; -import type { RealmStorage } from './modules/script/RealmStorage.js'; -import type { EventManager } from './modules/session/EventManager.js'; -import { OutgoingMessage } from './OutgoingMessage.js'; -export declare const enum CommandProcessorEvents { - Response = "response" -} -interface CommandProcessorEventsMap extends Record { - [CommandProcessorEvents.Response]: { - message: Promise>; - event: string; - }; -} -export declare class CommandProcessor extends EventEmitter { - #private; - constructor(cdpConnection: CdpConnection, browserCdpClient: CdpClient, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, preloadScriptStorage: PreloadScriptStorage, networkStorage: NetworkStorage, contextConfigStorage: ContextConfigStorage, bluetoothProcessor: BluetoothProcessor, userContextStorage: UserContextStorage, parser: BidiCommandParameterParser | undefined, initConnection: (options: MapperOptions) => Promise, logger?: LoggerFn); - processCommand(command: ChromiumBidi.Command): Promise; -} -export {}; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/CommandProcessor.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/CommandProcessor.js deleted file mode 100644 index 4c19d20..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/CommandProcessor.js +++ /dev/null @@ -1,322 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Exception, UnknownCommandException, UnknownErrorException, NoSuchFrameException, UnsupportedOperationException, } from '../protocol/protocol.js'; -import { EventEmitter } from '../utils/EventEmitter.js'; -import { LogType } from '../utils/log.js'; -import { BidiNoOpParser } from './BidiNoOpParser.js'; -import { BrowserProcessor } from './modules/browser/BrowserProcessor.js'; -import { CdpProcessor } from './modules/cdp/CdpProcessor.js'; -import { BrowsingContextProcessor } from './modules/context/BrowsingContextProcessor.js'; -import { EmulationProcessor } from './modules/emulation/EmulationProcessor.js'; -import { InputProcessor } from './modules/input/InputProcessor.js'; -import { NetworkProcessor } from './modules/network/NetworkProcessor.js'; -import { PermissionsProcessor } from './modules/permissions/PermissionsProcessor.js'; -import { ScriptProcessor } from './modules/script/ScriptProcessor.js'; -import { SessionProcessor } from './modules/session/SessionProcessor.js'; -import { StorageProcessor } from './modules/storage/StorageProcessor.js'; -import { WebExtensionProcessor } from './modules/webExtension/WebExtensionProcessor.js'; -import { OutgoingMessage } from './OutgoingMessage.js'; -export class CommandProcessor extends EventEmitter { - // keep-sorted start - #bluetoothProcessor; - #browserCdpClient; - #browserProcessor; - #browsingContextProcessor; - #cdpProcessor; - #emulationProcessor; - #inputProcessor; - #networkProcessor; - #permissionsProcessor; - #scriptProcessor; - #sessionProcessor; - #storageProcessor; - #webExtensionProcessor; - // keep-sorted end - #parser; - #logger; - constructor(cdpConnection, browserCdpClient, eventManager, browsingContextStorage, realmStorage, preloadScriptStorage, networkStorage, contextConfigStorage, bluetoothProcessor, userContextStorage, parser = new BidiNoOpParser(), initConnection, logger) { - super(); - this.#browserCdpClient = browserCdpClient; - this.#parser = parser; - this.#logger = logger; - this.#bluetoothProcessor = bluetoothProcessor; - // keep-sorted start block=yes - this.#browserProcessor = new BrowserProcessor(browserCdpClient, browsingContextStorage, contextConfigStorage, userContextStorage); - this.#browsingContextProcessor = new BrowsingContextProcessor(browserCdpClient, browsingContextStorage, userContextStorage, contextConfigStorage, eventManager); - this.#cdpProcessor = new CdpProcessor(browsingContextStorage, realmStorage, cdpConnection, browserCdpClient); - this.#emulationProcessor = new EmulationProcessor(browsingContextStorage, userContextStorage, contextConfigStorage); - this.#inputProcessor = new InputProcessor(browsingContextStorage); - this.#networkProcessor = new NetworkProcessor(browsingContextStorage, networkStorage, userContextStorage, contextConfigStorage); - this.#permissionsProcessor = new PermissionsProcessor(browserCdpClient); - this.#scriptProcessor = new ScriptProcessor(eventManager, browsingContextStorage, realmStorage, preloadScriptStorage, userContextStorage, logger); - this.#sessionProcessor = new SessionProcessor(eventManager, browserCdpClient, initConnection); - this.#storageProcessor = new StorageProcessor(browserCdpClient, browsingContextStorage, logger); - this.#webExtensionProcessor = new WebExtensionProcessor(browserCdpClient); - // keep-sorted end - } - async #processCommand(command) { - switch (command.method) { - // Bluetooth module - // keep-sorted start block=yes - case 'bluetooth.disableSimulation': - return await this.#bluetoothProcessor.disableSimulation(this.#parser.parseDisableSimulationParameters(command.params)); - case 'bluetooth.handleRequestDevicePrompt': - return await this.#bluetoothProcessor.handleRequestDevicePrompt(this.#parser.parseHandleRequestDevicePromptParams(command.params)); - case 'bluetooth.simulateAdapter': - return await this.#bluetoothProcessor.simulateAdapter(this.#parser.parseSimulateAdapterParameters(command.params)); - case 'bluetooth.simulateAdvertisement': - return await this.#bluetoothProcessor.simulateAdvertisement(this.#parser.parseSimulateAdvertisementParameters(command.params)); - case 'bluetooth.simulateCharacteristic': - return await this.#bluetoothProcessor.simulateCharacteristic(this.#parser.parseSimulateCharacteristicParameters(command.params)); - case 'bluetooth.simulateCharacteristicResponse': - return await this.#bluetoothProcessor.simulateCharacteristicResponse(this.#parser.parseSimulateCharacteristicResponseParameters(command.params)); - case 'bluetooth.simulateDescriptor': - return await this.#bluetoothProcessor.simulateDescriptor(this.#parser.parseSimulateDescriptorParameters(command.params)); - case 'bluetooth.simulateDescriptorResponse': - return await this.#bluetoothProcessor.simulateDescriptorResponse(this.#parser.parseSimulateDescriptorResponseParameters(command.params)); - case 'bluetooth.simulateGattConnectionResponse': - return await this.#bluetoothProcessor.simulateGattConnectionResponse(this.#parser.parseSimulateGattConnectionResponseParameters(command.params)); - case 'bluetooth.simulateGattDisconnection': - return await this.#bluetoothProcessor.simulateGattDisconnection(this.#parser.parseSimulateGattDisconnectionParameters(command.params)); - case 'bluetooth.simulatePreconnectedPeripheral': - return await this.#bluetoothProcessor.simulatePreconnectedPeripheral(this.#parser.parseSimulatePreconnectedPeripheralParameters(command.params)); - case 'bluetooth.simulateService': - return await this.#bluetoothProcessor.simulateService(this.#parser.parseSimulateServiceParameters(command.params)); - // keep-sorted end - // Browser module - // keep-sorted start block=yes - case 'browser.close': - return this.#browserProcessor.close(); - case 'browser.createUserContext': - return await this.#browserProcessor.createUserContext(this.#parser.parseCreateUserContextParameters(command.params)); - case 'browser.getClientWindows': - return await this.#browserProcessor.getClientWindows(); - case 'browser.getUserContexts': - return await this.#browserProcessor.getUserContexts(); - case 'browser.removeUserContext': - return await this.#browserProcessor.removeUserContext(this.#parser.parseRemoveUserContextParameters(command.params)); - case 'browser.setClientWindowState': - return await this.#browserProcessor.setClientWindowState(this.#parser.parseSetClientWindowStateParameters(command.params)); - case 'browser.setDownloadBehavior': - return await this.#browserProcessor.setDownloadBehavior(this.#parser.parseSetDownloadBehaviorParameters(command.params)); - // keep-sorted end - // Browsing Context module - // keep-sorted start block=yes - case 'browsingContext.activate': - return await this.#browsingContextProcessor.activate(this.#parser.parseActivateParams(command.params)); - case 'browsingContext.captureScreenshot': - return await this.#browsingContextProcessor.captureScreenshot(this.#parser.parseCaptureScreenshotParams(command.params)); - case 'browsingContext.close': - return await this.#browsingContextProcessor.close(this.#parser.parseCloseParams(command.params)); - case 'browsingContext.create': - return await this.#browsingContextProcessor.create(this.#parser.parseCreateParams(command.params)); - case 'browsingContext.getTree': - return this.#browsingContextProcessor.getTree(this.#parser.parseGetTreeParams(command.params)); - case 'browsingContext.handleUserPrompt': - return await this.#browsingContextProcessor.handleUserPrompt(this.#parser.parseHandleUserPromptParams(command.params)); - case 'browsingContext.locateNodes': - return await this.#browsingContextProcessor.locateNodes(this.#parser.parseLocateNodesParams(command.params)); - case 'browsingContext.navigate': - return await this.#browsingContextProcessor.navigate(this.#parser.parseNavigateParams(command.params)); - case 'browsingContext.print': - return await this.#browsingContextProcessor.print(this.#parser.parsePrintParams(command.params)); - case 'browsingContext.reload': - return await this.#browsingContextProcessor.reload(this.#parser.parseReloadParams(command.params)); - case 'browsingContext.setViewport': - return await this.#browsingContextProcessor.setViewport(this.#parser.parseSetViewportParams(command.params)); - case 'browsingContext.traverseHistory': - return await this.#browsingContextProcessor.traverseHistory(this.#parser.parseTraverseHistoryParams(command.params)); - // keep-sorted end - // CDP module - // keep-sorted start block=yes - case 'goog:cdp.getSession': - return this.#cdpProcessor.getSession(this.#parser.parseGetSessionParams(command.params)); - case 'goog:cdp.resolveRealm': - return this.#cdpProcessor.resolveRealm(this.#parser.parseResolveRealmParams(command.params)); - case 'goog:cdp.sendCommand': - return await this.#cdpProcessor.sendCommand(this.#parser.parseSendCommandParams(command.params)); - // keep-sorted end - // Emulation module - // keep-sorted start block=yes - case 'emulation.setForcedColorsModeThemeOverride': - this.#parser.parseSetForcedColorsModeThemeOverrideParams(command.params); - throw new UnsupportedOperationException(`Method ${command.method} is not implemented.`); - case 'emulation.setGeolocationOverride': - return await this.#emulationProcessor.setGeolocationOverride(this.#parser.parseSetGeolocationOverrideParams(command.params)); - case 'emulation.setLocaleOverride': - return await this.#emulationProcessor.setLocaleOverride(this.#parser.parseSetLocaleOverrideParams(command.params)); - case 'emulation.setNetworkConditions': - return await this.#emulationProcessor.setNetworkConditions(this.#parser.parseSetNetworkConditionsParams(command.params)); - case 'emulation.setScreenOrientationOverride': - return await this.#emulationProcessor.setScreenOrientationOverride(this.#parser.parseSetScreenOrientationOverrideParams(command.params)); - case 'emulation.setScreenSettingsOverride': - return await this.#emulationProcessor.setScreenSettingsOverride(this.#parser.parseSetScreenSettingsOverrideParams(command.params)); - case 'emulation.setScriptingEnabled': - return await this.#emulationProcessor.setScriptingEnabled(this.#parser.parseSetScriptingEnabledParams(command.params)); - case 'emulation.setTimezoneOverride': - return await this.#emulationProcessor.setTimezoneOverride(this.#parser.parseSetTimezoneOverrideParams(command.params)); - case 'emulation.setTouchOverride': - return await this.#emulationProcessor.setTouchOverride(this.#parser.parseSetTouchOverrideParams(command.params)); - case 'emulation.setUserAgentOverride': - return await this.#emulationProcessor.setUserAgentOverrideParams(this.#parser.parseSetUserAgentOverrideParams(command.params)); - case 'userAgentClientHints.setClientHintsOverride': - return await this.#emulationProcessor.setClientHintsOverride(this.#parser.parseSetClientHintsOverrideParams(command.params)); - // keep-sorted end - // Input module - // keep-sorted start block=yes - case 'input.performActions': - return await this.#inputProcessor.performActions(this.#parser.parsePerformActionsParams(command.params)); - case 'input.releaseActions': - return await this.#inputProcessor.releaseActions(this.#parser.parseReleaseActionsParams(command.params)); - case 'input.setFiles': - return await this.#inputProcessor.setFiles(this.#parser.parseSetFilesParams(command.params)); - // keep-sorted end - // Network module - // keep-sorted start block=yes - case 'network.addDataCollector': - return await this.#networkProcessor.addDataCollector(this.#parser.parseAddDataCollectorParams(command.params)); - case 'network.addIntercept': - return await this.#networkProcessor.addIntercept(this.#parser.parseAddInterceptParams(command.params)); - case 'network.continueRequest': - return await this.#networkProcessor.continueRequest(this.#parser.parseContinueRequestParams(command.params)); - case 'network.continueResponse': - return await this.#networkProcessor.continueResponse(this.#parser.parseContinueResponseParams(command.params)); - case 'network.continueWithAuth': - return await this.#networkProcessor.continueWithAuth(this.#parser.parseContinueWithAuthParams(command.params)); - case 'network.disownData': - return this.#networkProcessor.disownData(this.#parser.parseDisownDataParams(command.params)); - case 'network.failRequest': - return await this.#networkProcessor.failRequest(this.#parser.parseFailRequestParams(command.params)); - case 'network.getData': - return await this.#networkProcessor.getData(this.#parser.parseGetDataParams(command.params)); - case 'network.provideResponse': - return await this.#networkProcessor.provideResponse(this.#parser.parseProvideResponseParams(command.params)); - case 'network.removeDataCollector': - return await this.#networkProcessor.removeDataCollector(this.#parser.parseRemoveDataCollectorParams(command.params)); - case 'network.removeIntercept': - return await this.#networkProcessor.removeIntercept(this.#parser.parseRemoveInterceptParams(command.params)); - case 'network.setCacheBehavior': - return await this.#networkProcessor.setCacheBehavior(this.#parser.parseSetCacheBehaviorParams(command.params)); - case 'network.setExtraHeaders': - return await this.#networkProcessor.setExtraHeaders(this.#parser.parseSetExtraHeadersParams(command.params)); - // keep-sorted end - // Permissions module - // keep-sorted start block=yes - case 'permissions.setPermission': - return await this.#permissionsProcessor.setPermissions(this.#parser.parseSetPermissionsParams(command.params)); - // keep-sorted end - // Script module - // keep-sorted start block=yes - case 'script.addPreloadScript': - return await this.#scriptProcessor.addPreloadScript(this.#parser.parseAddPreloadScriptParams(command.params)); - case 'script.callFunction': - return await this.#scriptProcessor.callFunction(this.#parser.parseCallFunctionParams(this.#processTargetParams(command.params))); - case 'script.disown': - return await this.#scriptProcessor.disown(this.#parser.parseDisownParams(this.#processTargetParams(command.params))); - case 'script.evaluate': - return await this.#scriptProcessor.evaluate(this.#parser.parseEvaluateParams(this.#processTargetParams(command.params))); - case 'script.getRealms': - return this.#scriptProcessor.getRealms(this.#parser.parseGetRealmsParams(command.params)); - case 'script.removePreloadScript': - return await this.#scriptProcessor.removePreloadScript(this.#parser.parseRemovePreloadScriptParams(command.params)); - // keep-sorted end - // Session module - // keep-sorted start block=yes - case 'session.end': - throw new UnsupportedOperationException(`Method ${command.method} is not implemented.`); - case 'session.new': - return await this.#sessionProcessor.new(command.params); - case 'session.status': - return this.#sessionProcessor.status(); - case 'session.subscribe': - return await this.#sessionProcessor.subscribe(this.#parser.parseSubscribeParams(command.params), command['goog:channel']); - case 'session.unsubscribe': - return await this.#sessionProcessor.unsubscribe(this.#parser.parseUnsubscribeParams(command.params), command['goog:channel']); - // keep-sorted end - // Storage module - // keep-sorted start block=yes - case 'storage.deleteCookies': - return await this.#storageProcessor.deleteCookies(this.#parser.parseDeleteCookiesParams(command.params)); - case 'storage.getCookies': - return await this.#storageProcessor.getCookies(this.#parser.parseGetCookiesParams(command.params)); - case 'storage.setCookie': - return await this.#storageProcessor.setCookie(this.#parser.parseSetCookieParams(command.params)); - // keep-sorted end - // WebExtension module - // keep-sorted start block=yes - case 'webExtension.install': - return await this.#webExtensionProcessor.install(this.#parser.parseInstallParams(command.params)); - case 'webExtension.uninstall': - return await this.#webExtensionProcessor.uninstall(this.#parser.parseUninstallParams(command.params)); - // keep-sorted end - } - // Intentionally kept outside the switch statement to ensure that - // ESLint @typescript-eslint/switch-exhaustiveness-check triggers if a new - // command is added. - throw new UnknownCommandException(`Unknown command '${command?.method}'.`); - } - // Workaround for as zod.union always take the first schema - // https://github.com/w3c/webdriver-bidi/issues/635 - #processTargetParams(params) { - if (typeof params === 'object' && - params && - 'target' in params && - typeof params.target === 'object' && - params.target && - 'context' in params.target) { - delete params.target['realm']; - } - return params; - } - async processCommand(command) { - try { - const result = await this.#processCommand(command); - const response = { - type: 'success', - id: command.id, - result, - }; - this.emit("response" /* CommandProcessorEvents.Response */, { - message: OutgoingMessage.createResolved(response, command['goog:channel']), - event: command.method, - }); - } - catch (e) { - if (e instanceof Exception) { - this.emit("response" /* CommandProcessorEvents.Response */, { - message: OutgoingMessage.createResolved(e.toErrorResponse(command.id), command['goog:channel']), - event: command.method, - }); - } - else { - const error = e; - this.#logger?.(LogType.bidi, error); - // Heuristic required for processing cases when a browsing context is gone - // during the command processing, e.g. like in test - // `test_input_keyDown_closes_browsing_context`. - const errorException = this.#browserCdpClient.isCloseError(e) - ? new NoSuchFrameException(`Browsing context is gone`) - : new UnknownErrorException(error.message, error.stack); - this.emit("response" /* CommandProcessorEvents.Response */, { - message: OutgoingMessage.createResolved(errorException.toErrorResponse(command.id), command['goog:channel']), - event: command.method, - }); - } - } - } -} -//# sourceMappingURL=CommandProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/CommandProcessor.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/CommandProcessor.js.map deleted file mode 100644 index 99de835..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/CommandProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CommandProcessor.js","sourceRoot":"","sources":["../../../src/bidiMapper/CommandProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,qBAAqB,EAGrB,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,OAAO,EAAgB,MAAM,iBAAiB,CAAC;AAGvD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAInD,OAAO,EAAC,gBAAgB,EAAC,MAAM,uCAAuC,CAAC;AAGvE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,wBAAwB,EAAC,MAAM,+CAA+C,CAAC;AAEvF,OAAO,EAAC,kBAAkB,EAAC,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAC,gBAAgB,EAAC,MAAM,uCAAuC,CAAC;AAEvE,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAGnF,OAAO,EAAC,eAAe,EAAC,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAC,gBAAgB,EAAC,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAC,qBAAqB,EAAC,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAarD,MAAM,OAAO,gBAAiB,SAAQ,YAAuC;IAC3E,oBAAoB;IACpB,mBAAmB,CAAqB;IACxC,iBAAiB,CAAY;IAC7B,iBAAiB,CAAmB;IACpC,yBAAyB,CAA2B;IACpD,aAAa,CAAe;IAC5B,mB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AK,EAAE,OAAO,CAAC,MAAM;iBACtB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/MapperOptions.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/MapperOptions.d.ts deleted file mode 100644 index 01a18c6..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/MapperOptions.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { Session } from '../protocol/generated/webdriver-bidi.js'; -export interface MapperOptions { - acceptInsecureCerts?: boolean; - unhandledPromptBehavior?: Session.UserPromptHandler; - 'goog:prerenderingDisabled'?: boolean; - 'goog:disableNetworkDurableMessages'?: true; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/MapperOptions.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/MapperOptions.js deleted file mode 100644 index e64b6c9..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/MapperOptions.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -export {}; -//# sourceMappingURL=MapperOptions.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/MapperOptions.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/MapperOptions.js.map deleted file mode 100644 index 439dd9f..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/MapperOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MapperOptions.js","sourceRoot":"","sources":["../../../src/bidiMapper/MapperOptions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/OutgoingMessage.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/OutgoingMessage.d.ts deleted file mode 100644 index 3ef8ae1..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/OutgoingMessage.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { GoogChannel } from '../protocol/chromium-bidi.js'; -import type { ChromiumBidi } from '../protocol/protocol.js'; -import type { Result } from '../utils/result.js'; -export declare class OutgoingMessage { - #private; - private constructor(); - static createFromPromise(messagePromise: Promise>, googChannel: GoogChannel): Promise>; - static createResolved(message: ChromiumBidi.Message, googChannel?: GoogChannel): Promise>; - get message(): ChromiumBidi.Message; - get googChannel(): GoogChannel; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/OutgoingMessage.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/OutgoingMessage.js deleted file mode 100644 index c6d37f5..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/OutgoingMessage.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright 2021 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export class OutgoingMessage { - #message; - #googChannel; - constructor(message, googChannel = null) { - this.#message = message; - this.#googChannel = googChannel; - } - static createFromPromise(messagePromise, googChannel) { - return messagePromise.then((message) => { - if (message.kind === 'success') { - return { - kind: 'success', - value: new OutgoingMessage(message.value, googChannel), - }; - } - return message; - }); - } - static createResolved(message, googChannel = null) { - return Promise.resolve({ - kind: 'success', - value: new OutgoingMessage(message, googChannel), - }); - } - get message() { - return this.#message; - } - get googChannel() { - return this.#googChannel; - } -} -//# sourceMappingURL=OutgoingMessage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/OutgoingMessage.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/OutgoingMessage.js.map deleted file mode 100644 index 647e633..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/OutgoingMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OutgoingMessage.js","sourceRoot":"","sources":["../../../src/bidiMapper/OutgoingMessage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,MAAM,OAAO,eAAe;IACjB,QAAQ,CAAuB;IAC/B,YAAY,CAAc;IAEnC,YACE,OAA6B,EAC7B,cAA2B,IAAI;QAE/B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,iBAAiB,CACtB,cAAqD,EACrD,WAAwB;QAExB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;YACrC,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBAC/B,OAAO;oBACL,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,IAAI,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC;iBACvD,CAAC;YACJ,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,cAAc,CACnB,OAA6B,EAC7B,cAA2B,IAAI;QAE/B,OAAO,OAAO,CAAC,OAAO,CAAC;YACrB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI,eAAe,CAAC,OAAO,EAAE,WAAW,CAAC;SACjD,CAAC,CAAC;IACL,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.d.ts deleted file mode 100644 index 9b5b6e9..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type Bluetooth, type EmptyResult } from '../../../protocol/protocol.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -export declare class BluetoothProcessor { - #private; - constructor(eventManager: EventManager, browsingContextStorage: BrowsingContextStorage); - simulateAdapter(params: Bluetooth.SimulateAdapterParameters): Promise; - disableSimulation(params: Bluetooth.DisableSimulationParameters): Promise; - simulatePreconnectedPeripheral(params: Bluetooth.SimulatePreconnectedPeripheralParameters): Promise; - simulateAdvertisement(params: Bluetooth.SimulateAdvertisementParameters): Promise; - simulateCharacteristic(params: Bluetooth.SimulateCharacteristicParameters): Promise; - simulateCharacteristicResponse(params: Bluetooth.SimulateCharacteristicResponseParameters): Promise; - simulateDescriptor(params: Bluetooth.SimulateDescriptorParameters): Promise; - simulateDescriptorResponse(params: Bluetooth.SimulateDescriptorResponseParameters): Promise; - simulateGattConnectionResponse(params: Bluetooth.SimulateGattConnectionResponseParameters): Promise; - simulateGattDisconnection(params: Bluetooth.SimulateGattDisconnectionParameters): Promise; - simulateService(params: Bluetooth.SimulateServiceParameters): Promise; - onCdpTargetCreated(cdpTarget: CdpTarget): void; - handleRequestDevicePrompt(params: Bluetooth.HandleRequestDevicePromptParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.js deleted file mode 100644 index 671236a..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.js +++ /dev/null @@ -1,407 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { InvalidArgumentException, } from '../../../protocol/protocol.js'; -/** Represents a base Bluetooth GATT item. */ -class BluetoothGattItem { - id; - uuid; - constructor(id, uuid) { - this.id = id; - this.uuid = uuid; - } -} -/** Represents a Bluetooth descriptor. */ -class BluetoothDescriptor extends BluetoothGattItem { - characteristic; - constructor(id, uuid, characteristic) { - super(id, uuid); - this.characteristic = characteristic; - } -} -/** Represents a Bluetooth characteristic. */ -class BluetoothCharacteristic extends BluetoothGattItem { - descriptors = new Map(); - service; - constructor(id, uuid, service) { - super(id, uuid); - this.service = service; - } -} -/** Represents a Bluetooth service. */ -class BluetoothService extends BluetoothGattItem { - characteristics = new Map(); - device; - constructor(id, uuid, device) { - super(id, uuid); - this.device = device; - } -} -/** Represents a Bluetooth device. */ -class BluetoothDevice { - address; - services = new Map(); - constructor(address) { - this.address = address; - } -} -export class BluetoothProcessor { - #eventManager; - #browsingContextStorage; - #bluetoothDevices = new Map(); - // A map from a characteristic id from CDP to its BluetoothCharacteristic object. - #bluetoothCharacteristics = new Map(); - // A map from a descriptor id from CDP to its BluetoothDescriptor object. - #bluetoothDescriptors = new Map(); - constructor(eventManager, browsingContextStorage) { - this.#eventManager = eventManager; - this.#browsingContextStorage = browsingContextStorage; - } - #getDevice(address) { - const device = this.#bluetoothDevices.get(address); - if (!device) { - throw new InvalidArgumentException(`Bluetooth device with address ${address} does not exist`); - } - return device; - } - #getService(device, serviceUuid) { - const service = device.services.get(serviceUuid); - if (!service) { - throw new InvalidArgumentException(`Service with UUID ${serviceUuid} on device ${device.address} does not exist`); - } - return service; - } - #getCharacteristic(service, characteristicUuid) { - const characteristic = service.characteristics.get(characteristicUuid); - if (!characteristic) { - throw new InvalidArgumentException(`Characteristic with UUID ${characteristicUuid} does not exist for service ${service.uuid} on device ${service.device.address}`); - } - return characteristic; - } - #getDescriptor(characteristic, descriptorUuid) { - const descriptor = characteristic.descriptors.get(descriptorUuid); - if (!descriptor) { - throw new InvalidArgumentException(`Descriptor with UUID ${descriptorUuid} does not exist for characteristic ${characteristic.uuid} on service ${characteristic.service.uuid} on device ${characteristic.service.device.address}`); - } - return descriptor; - } - async simulateAdapter(params) { - if (params.state === undefined) { - // The bluetooth.simulateAdapter Command - // Step 4.2. If params["state"] does not exist, return error with error code invalid argument. - // https://webbluetoothcg.github.io/web-bluetooth/#bluetooth-simulateAdapter-command - throw new InvalidArgumentException(`Parameter "state" is required for creating a Bluetooth adapter`); - } - const context = this.#browsingContextStorage.getContext(params.context); - // Bluetooth spec requires overriding the existing adapter (step 6). From the CDP - // perspective, we need to disable the emulation first. - // https://webbluetoothcg.github.io/web-bluetooth/#bluetooth-simulateAdapter-command - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.disable'); - this.#bluetoothDevices.clear(); - this.#bluetoothCharacteristics.clear(); - this.#bluetoothDescriptors.clear(); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.enable', { - state: params.state, - leSupported: params.leSupported ?? true, - }); - return {}; - } - async disableSimulation(params) { - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.disable'); - this.#bluetoothDevices.clear(); - this.#bluetoothCharacteristics.clear(); - this.#bluetoothDescriptors.clear(); - return {}; - } - async simulatePreconnectedPeripheral(params) { - if (this.#bluetoothDevices.has(params.address)) { - throw new InvalidArgumentException(`Bluetooth device with address ${params.address} already exists`); - } - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulatePreconnectedPeripheral', { - address: params.address, - name: params.name, - knownServiceUuids: params.knownServiceUuids, - manufacturerData: params.manufacturerData, - }); - this.#bluetoothDevices.set(params.address, new BluetoothDevice(params.address)); - return {}; - } - async simulateAdvertisement(params) { - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateAdvertisement', { - entry: params.scanEntry, - }); - return {}; - } - async simulateCharacteristic(params) { - const device = this.#getDevice(params.address); - const service = this.#getService(device, params.serviceUuid); - const context = this.#browsingContextStorage.getContext(params.context); - switch (params.type) { - case 'add': { - if (params.characteristicProperties === undefined) { - throw new InvalidArgumentException(`Parameter "characteristicProperties" is required for adding a Bluetooth characteristic`); - } - if (service.characteristics.has(params.characteristicUuid)) { - throw new InvalidArgumentException(`Characteristic with UUID ${params.characteristicUuid} already exists`); - } - const response = await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.addCharacteristic', { - serviceId: service.id, - characteristicUuid: params.characteristicUuid, - properties: params.characteristicProperties, - }); - const characteristic = new BluetoothCharacteristic(response.characteristicId, params.characteristicUuid, service); - service.characteristics.set(params.characteristicUuid, characteristic); - this.#bluetoothCharacteristics.set(characteristic.id, characteristic); - return {}; - } - case 'remove': { - if (params.characteristicProperties !== undefined) { - throw new InvalidArgumentException(`Parameter "characteristicProperties" should not be provided for removing a Bluetooth characteristic`); - } - const characteristic = this.#getCharacteristic(service, params.characteristicUuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.removeCharacteristic', { - characteristicId: characteristic.id, - }); - service.characteristics.delete(params.characteristicUuid); - this.#bluetoothCharacteristics.delete(characteristic.id); - return {}; - } - default: - throw new InvalidArgumentException(`Parameter "type" of ${params.type} is not supported`); - } - } - async simulateCharacteristicResponse(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const device = this.#getDevice(params.address); - const service = this.#getService(device, params.serviceUuid); - const characteristic = this.#getCharacteristic(service, params.characteristicUuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateCharacteristicOperationResponse', { - characteristicId: characteristic.id, - type: params.type, - code: params.code, - ...(params.data && { - data: btoa(String.fromCharCode(...params.data)), - }), - }); - return {}; - } - async simulateDescriptor(params) { - const device = this.#getDevice(params.address); - const service = this.#getService(device, params.serviceUuid); - const characteristic = this.#getCharacteristic(service, params.characteristicUuid); - const context = this.#browsingContextStorage.getContext(params.context); - switch (params.type) { - case 'add': { - if (characteristic.descriptors.has(params.descriptorUuid)) { - throw new InvalidArgumentException(`Descriptor with UUID ${params.descriptorUuid} already exists`); - } - const response = await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.addDescriptor', { - characteristicId: characteristic.id, - descriptorUuid: params.descriptorUuid, - }); - const descriptor = new BluetoothDescriptor(response.descriptorId, params.descriptorUuid, characteristic); - characteristic.descriptors.set(params.descriptorUuid, descriptor); - this.#bluetoothDescriptors.set(descriptor.id, descriptor); - return {}; - } - case 'remove': { - const descriptor = this.#getDescriptor(characteristic, params.descriptorUuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.removeDescriptor', { - descriptorId: descriptor.id, - }); - characteristic.descriptors.delete(params.descriptorUuid); - this.#bluetoothDescriptors.delete(descriptor.id); - return {}; - } - default: - throw new InvalidArgumentException(`Parameter "type" of ${params.type} is not supported`); - } - } - async simulateDescriptorResponse(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const device = this.#getDevice(params.address); - const service = this.#getService(device, params.serviceUuid); - const characteristic = this.#getCharacteristic(service, params.characteristicUuid); - const descriptor = this.#getDescriptor(characteristic, params.descriptorUuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateDescriptorOperationResponse', { - descriptorId: descriptor.id, - type: params.type, - code: params.code, - ...(params.data && { - data: btoa(String.fromCharCode(...params.data)), - }), - }); - return {}; - } - async simulateGattConnectionResponse(params) { - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateGATTOperationResponse', { - address: params.address, - type: 'connection', - code: params.code, - }); - return {}; - } - async simulateGattDisconnection(params) { - const context = this.#browsingContextStorage.getContext(params.context); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateGATTDisconnection', { - address: params.address, - }); - return {}; - } - async simulateService(params) { - const device = this.#getDevice(params.address); - const context = this.#browsingContextStorage.getContext(params.context); - switch (params.type) { - case 'add': { - if (device.services.has(params.uuid)) { - throw new InvalidArgumentException(`Service with UUID ${params.uuid} already exists`); - } - const response = await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.addService', { - address: params.address, - serviceUuid: params.uuid, - }); - device.services.set(params.uuid, new BluetoothService(response.serviceId, params.uuid, device)); - return {}; - } - case 'remove': { - const service = this.#getService(device, params.uuid); - await context.cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.removeService', { - serviceId: service.id, - }); - device.services.delete(params.uuid); - return {}; - } - default: - throw new InvalidArgumentException(`Parameter "type" of ${params.type} is not supported`); - } - } - onCdpTargetCreated(cdpTarget) { - cdpTarget.cdpClient.on('DeviceAccess.deviceRequestPrompted', (event) => { - this.#eventManager.registerEvent({ - type: 'event', - method: 'bluetooth.requestDevicePromptUpdated', - params: { - context: cdpTarget.id, - prompt: event.id, - devices: event.devices, - }, - }, cdpTarget.id); - }); - cdpTarget.browserCdpClient.on('BluetoothEmulation.gattOperationReceived', async (event) => { - switch (event.type) { - case 'connection': - this.#eventManager.registerEvent({ - type: 'event', - method: 'bluetooth.gattConnectionAttempted', - params: { - context: cdpTarget.id, - address: event.address, - }, - }, cdpTarget.id); - return; - case 'discovery': - // Chromium Web Bluetooth simulation generates this GATT discovery event when - // a page attempts to get services for a given Bluetooth device for the first time. - // This 'get services' operation is put on hold until a GATT discovery response - // is sent to the simulation. - // Note: Web Bluetooth automation (see https://webbluetoothcg.github.io/web-bluetooth/#automated-testing) - // does not support simulating a GATT discovery response. This is because simulated services, characteristics, - // or descriptors are immediately visible to the simulation, meaning it doesn't have a distinct - // DISCOVERY state. Therefore, this code simulates a successful GATT discovery - // response upon receiving this event. - await cdpTarget.browserCdpClient.sendCommand('BluetoothEmulation.simulateGATTOperationResponse', { - address: event.address, - type: 'discovery', - code: 0x0, - }); - } - }); - cdpTarget.browserCdpClient.on('BluetoothEmulation.characteristicOperationReceived', (event) => { - if (!this.#bluetoothCharacteristics.has(event.characteristicId)) { - return; - } - let type; - if (event.type === 'write') { - // write-default-deprecated comes from - // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattcharacteristic-writevalue, - // which is deprecated so not supported. - if (event.writeType === 'write-default-deprecated') { - return; - } - type = event.writeType; - } - else { - type = event.type; - } - const characteristic = this.#bluetoothCharacteristics.get(event.characteristicId); - this.#eventManager.registerEvent({ - type: 'event', - method: 'bluetooth.characteristicEventGenerated', - params: { - context: cdpTarget.id, - address: characteristic.service.device.address, - serviceUuid: characteristic.service.uuid, - characteristicUuid: characteristic.uuid, - type, - ...(event.data && { - data: Array.from(atob(event.data), (c) => c.charCodeAt(0)), - }), - }, - }, cdpTarget.id); - }); - cdpTarget.browserCdpClient.on('BluetoothEmulation.descriptorOperationReceived', (event) => { - if (!this.#bluetoothDescriptors.has(event.descriptorId)) { - return; - } - const descriptor = this.#bluetoothDescriptors.get(event.descriptorId); - this.#eventManager.registerEvent({ - type: 'event', - method: 'bluetooth.descriptorEventGenerated', - params: { - context: cdpTarget.id, - address: descriptor.characteristic.service.device.address, - serviceUuid: descriptor.characteristic.service.uuid, - characteristicUuid: descriptor.characteristic.uuid, - descriptorUuid: descriptor.uuid, - type: event.type, - ...(event.data && { - data: Array.from(atob(event.data), (c) => c.charCodeAt(0)), - }), - }, - }, cdpTarget.id); - }); - } - async handleRequestDevicePrompt(params) { - const context = this.#browsingContextStorage.getContext(params.context); - if (params.accept) { - await context.cdpTarget.cdpClient.sendCommand('DeviceAccess.selectPrompt', { - id: params.prompt, - deviceId: params.device, - }); - } - else { - await context.cdpTarget.cdpClient.sendCommand('DeviceAccess.cancelPrompt', { - id: params.prompt, - }); - } - return {}; - } -} -//# sourceMappingURL=BluetoothProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.js.map deleted file mode 100644 index 1f00cb2..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BluetoothProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/bluetooth/BluetoothProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAE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,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAC3C,2BAA2B,EAC3B;gBACE,EAAE,EAAE,MAAM,CAAC,MAAM;aAClB,CACF,CAAC;QACJ,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/BrowserProcessor.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/BrowserProcessor.d.ts deleted file mode 100644 index bae4408..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/BrowserProcessor.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type Browser, type EmptyResult, type Session } from '../../../protocol/protocol.js'; -import type { CdpClient } from '../../BidiMapper.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { ContextConfigStorage } from './ContextConfigStorage.js'; -import type { UserContextStorage } from './UserContextStorage.js'; -export declare class BrowserProcessor { - #private; - constructor(browserCdpClient: CdpClient, browsingContextStorage: BrowsingContextStorage, configStorage: ContextConfigStorage, userContextStorage: UserContextStorage); - close(): EmptyResult; - createUserContext(params: Record): Promise; - removeUserContext(params: Browser.RemoveUserContextParameters): Promise; - getUserContexts(): Promise; - setClientWindowState(params: Browser.SetClientWindowStateParameters): Promise; - getClientWindows(): Promise; - setDownloadBehavior(params: Browser.SetDownloadBehaviorParameters): Promise; -} -/** - * Proxy config parse implementation: - * https://source.chromium.org/chromium/chromium/src/+/main:net/proxy_resolution/proxy_config.h;drc=743a82d08e59d803c94ee1b8564b8b11dd7b462f;l=107 - */ -export declare function getProxyStr(proxyConfig: Session.ProxyConfiguration): string | undefined; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/BrowserProcessor.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/BrowserProcessor.js deleted file mode 100644 index 7c77f80..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/BrowserProcessor.js +++ /dev/null @@ -1,289 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { InvalidArgumentException, NoSuchUserContextException, UnknownErrorException, UnsupportedOperationException, } from '../../../protocol/protocol.js'; -export class BrowserProcessor { - #browserCdpClient; - #browsingContextStorage; - #configStorage; - #userContextStorage; - constructor(browserCdpClient, browsingContextStorage, configStorage, userContextStorage) { - this.#browserCdpClient = browserCdpClient; - this.#browsingContextStorage = browsingContextStorage; - this.#configStorage = configStorage; - this.#userContextStorage = userContextStorage; - } - close() { - // Ensure that it is put at the end of the event loop. - // This way we send back the response before closing the tab. - // Always catch uncaught exceptions. - setTimeout(() => this.#browserCdpClient.sendCommand('Browser.close').catch(() => { }), 0); - return {}; - } - async createUserContext(params) { - // `params` is a record to provide legacy `goog:` parameters. Now as the `proxy` - // parameter is specified, we should get rid of `goog:proxyServer` and - // `goog:proxyBypassList` and make the params of type - // `Browser.CreateUserContextParameters`. - const w3cParams = params; - const globalConfig = this.#configStorage.getGlobalConfig(); - if (w3cParams.acceptInsecureCerts !== undefined) { - if (w3cParams.acceptInsecureCerts === false && - globalConfig.acceptInsecureCerts === true) - // TODO: https://github.com/GoogleChromeLabs/chromium-bidi/issues/3398 - throw new UnknownErrorException(`Cannot set user context's "acceptInsecureCerts" to false, when a capability "acceptInsecureCerts" is set to true`); - } - const request = {}; - if (w3cParams.proxy) { - const proxyStr = getProxyStr(w3cParams.proxy); - if (proxyStr) { - request.proxyServer = proxyStr; - } - if (w3cParams.proxy.noProxy) { - request.proxyBypassList = w3cParams.proxy.noProxy.join(','); - } - } - else { - // TODO: remove after Puppeteer stops using it. - if (params['goog:proxyServer'] !== undefined) { - request.proxyServer = params['goog:proxyServer']; - } - const proxyBypassList = params['goog:proxyBypassList'] ?? undefined; - if (proxyBypassList) { - request.proxyBypassList = proxyBypassList.join(','); - } - } - const context = await this.#browserCdpClient.sendCommand('Target.createBrowserContext', request); - await this.#applyDownloadBehavior(globalConfig.downloadBehavior ?? null, context.browserContextId); - this.#configStorage.updateUserContextConfig(context.browserContextId, { - acceptInsecureCerts: params['acceptInsecureCerts'], - userPromptHandler: params['unhandledPromptBehavior'], - }); - return { - userContext: context.browserContextId, - }; - } - async removeUserContext(params) { - const userContext = params.userContext; - if (userContext === 'default') { - throw new InvalidArgumentException('`default` user context cannot be removed'); - } - try { - await this.#browserCdpClient.sendCommand('Target.disposeBrowserContext', { - browserContextId: userContext, - }); - } - catch (err) { - // https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/target_handler.cc;l=1424;drc=c686e8f4fd379312469fe018f5c390e9c8f20d0d - if (err.message.startsWith('Failed to find context with id')) { - throw new NoSuchUserContextException(err.message); - } - throw err; - } - return {}; - } - async getUserContexts() { - return { - userContexts: await this.#userContextStorage.getUserContexts(), - }; - } - async #getWindowInfo(targetId) { - const windowInfo = await this.#browserCdpClient.sendCommand('Browser.getWindowForTarget', { targetId }); - return { - // `active` is not supported in CDP yet. - active: false, - clientWindow: `${windowInfo.windowId}`, - state: windowInfo.bounds.windowState ?? 'normal', - height: windowInfo.bounds.height ?? 0, - width: windowInfo.bounds.width ?? 0, - x: windowInfo.bounds.left ?? 0, - y: windowInfo.bounds.top ?? 0, - }; - } - async setClientWindowState(params) { - const { clientWindow } = params; - const bounds = { - windowState: params.state, - }; - if (params.state === 'normal') { - if (params.width !== undefined) { - bounds.width = params.width; - } - if (params.height !== undefined) { - bounds.height = params.height; - } - if (params.x !== undefined) { - bounds.left = params.x; - } - if (params.y !== undefined) { - bounds.top = params.y; - } - } - const windowId = Number.parseInt(clientWindow); - if (isNaN(windowId)) { - throw new InvalidArgumentException('no such client window'); - } - await this.#browserCdpClient.sendCommand('Browser.setWindowBounds', { - windowId, - bounds, - }); - const result = await this.#browserCdpClient.sendCommand('Browser.getWindowBounds', { - windowId, - }); - return { - active: false, - clientWindow: `${windowId}`, - state: result.bounds.windowState ?? 'normal', - height: result.bounds.height ?? 0, - width: result.bounds.width ?? 0, - x: result.bounds.left ?? 0, - y: result.bounds.top ?? 0, - }; - } - async getClientWindows() { - const topLevelTargetIds = this.#browsingContextStorage - .getTopLevelContexts() - .map((b) => b.cdpTarget.id); - const clientWindows = await Promise.all(topLevelTargetIds.map(async (targetId) => await this.#getWindowInfo(targetId))); - const uniqueClientWindowIds = new Set(); - const uniqueClientWindows = new Array(); - // Filter out duplicated client windows. - for (const window of clientWindows) { - if (!uniqueClientWindowIds.has(window.clientWindow)) { - uniqueClientWindowIds.add(window.clientWindow); - uniqueClientWindows.push(window); - } - } - return { clientWindows: uniqueClientWindows }; - } - #toCdpDownloadBehavior(downloadBehavior) { - if (downloadBehavior === null) - // CDP "default" behavior. - return { - behavior: 'default', - }; - if (downloadBehavior?.type === 'denied') - // Deny all the downloads. - return { - behavior: 'deny', - }; - if (downloadBehavior?.type === 'allowed') { - // CDP behavior "allow" means "save downloaded files to the specific download path". - return { - behavior: 'allow', - downloadPath: downloadBehavior.destinationFolder, - }; - } - // Unreachable. Handled by params parser. - throw new UnknownErrorException('Unexpected download behavior'); - } - async #applyDownloadBehavior(downloadBehavior, userContext) { - await this.#browserCdpClient.sendCommand('Browser.setDownloadBehavior', { - ...this.#toCdpDownloadBehavior(downloadBehavior), - browserContextId: userContext === 'default' ? undefined : userContext, - // Required for enabling download events. - eventsEnabled: true, - }); - } - async setDownloadBehavior(params) { - let userContexts; - if (params.userContexts === undefined) { - // Global download behavior. - userContexts = (await this.#userContextStorage.getUserContexts()).map((c) => c.userContext); - } - else { - // Download behavior for the specific user contexts. - userContexts = Array.from(await this.#userContextStorage.verifyUserContextIdList(params.userContexts)); - } - if (params.userContexts === undefined) { - // Store the global setting to be applied for the future user contexts. - this.#configStorage.updateGlobalConfig({ - downloadBehavior: params.downloadBehavior, - }); - } - else { - params.userContexts.map((userContext) => this.#configStorage.updateUserContextConfig(userContext, { - downloadBehavior: params.downloadBehavior, - })); - } - await Promise.all(userContexts.map(async (userContext) => { - // Download behavior can be already set per user context, in which case the global - // one should not be applied. - const downloadBehavior = this.#configStorage.getActiveConfig(undefined, userContext) - .downloadBehavior ?? null; - await this.#applyDownloadBehavior(downloadBehavior, userContext); - })); - return {}; - } -} -/** - * Proxy config parse implementation: - * https://source.chromium.org/chromium/chromium/src/+/main:net/proxy_resolution/proxy_config.h;drc=743a82d08e59d803c94ee1b8564b8b11dd7b462f;l=107 - */ -export function getProxyStr(proxyConfig) { - if (proxyConfig.proxyType === 'direct' || - proxyConfig.proxyType === 'system') { - // These types imply that Chrome should use its default behavior (e.g., direct - // connection or system-configured proxy). No specific `proxyServer` string is - // needed. - return undefined; - } - if (proxyConfig.proxyType === 'pac') { - throw new UnsupportedOperationException(`PAC proxy configuration is not supported per user context`); - } - if (proxyConfig.proxyType === 'autodetect') { - throw new UnsupportedOperationException(`Autodetect proxy is not supported per user context`); - } - if (proxyConfig.proxyType === 'manual') { - const servers = []; - // HTTP Proxy - if (proxyConfig.httpProxy !== undefined) { - // servers.push(proxyConfig.httpProxy); - servers.push(`http=${proxyConfig.httpProxy}`); - } - // SSL Proxy (uses 'https' scheme) - if (proxyConfig.sslProxy !== undefined) { - // servers.push(proxyConfig.sslProxy); - servers.push(`https=${proxyConfig.sslProxy}`); - } - // SOCKS Proxy - if (proxyConfig.socksProxy !== undefined || - proxyConfig.socksVersion !== undefined) { - // socksVersion is mandatory and must be a valid integer if socksProxy is - // specified. - if (proxyConfig.socksProxy === undefined) { - throw new InvalidArgumentException(`'socksVersion' cannot be set without 'socksProxy'`); - } - if (proxyConfig.socksVersion === undefined || - typeof proxyConfig.socksVersion !== 'number' || - !Number.isInteger(proxyConfig.socksVersion) || - proxyConfig.socksVersion < 0 || - proxyConfig.socksVersion > 255) { - throw new InvalidArgumentException(`'socksVersion' must be between 0 and 255`); - } - servers.push(`socks=socks${proxyConfig.socksVersion}://${proxyConfig.socksProxy}`); - } - if (servers.length === 0) { - // If 'manual' proxyType is chosen but no specific proxy servers (http, ssl, socks) - // are provided, it means no proxy server should be configured. - return undefined; - } - return servers.join(';'); - } - // Unreachable. - throw new UnknownErrorException(`Unknown proxy type`); -} -//# sourceMappingURL=BrowserProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/BrowserProcessor.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/BrowserProcessor.js.map deleted file mode 100644 index 3dc7900..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/BrowserProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BrowserProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/browser/BrowserProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,EAGL,wBAAwB,EACxB,0BAA0B,EAE1B,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AAOvC,MAAM,OAAO,gBAAgB;IAClB,iBAAiB,CAAY;IAC7B,uBAAuB,CAAyB;IAChD,cAAc,CAAuB;IACrC,mBAAmB,CAAqB;IAEjD,Y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AE,CAAC;YACvC,sCAAsC;YACtC,OAAO,CAAC,IAAI,CAAC,SAAS,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,cAAc;QACd,IACE,WAAW,CAAC,UAAU,KAAK,SAAS;YACpC,WAAW,CAAC,YAAY,KAAK,SAAS,EACtC,CAAC;YACD,yEAAyE;YACzE,aAAa;YACb,IAAI,WAAW,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;gBACzC,MAAM,IAAI,wBAAwB,CAChC,mDAAmD,CACpD,CAAC;YACJ,CAAC;YACD,IACE,WAAW,CAAC,YAAY,KAAK,SAAS;gBACtC,OAAO,WAAW,CAAC,YAAY,KAAK,QAAQ;gBAC5C,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC;gBAC3C,WAAW,CAAC,YAAY,GAAG,CAAC;gBAC5B,WAAW,CAAC,YAAY,GAAG,GAAG,EAC9B,CAAC;gBACD,MAAM,IAAI,wBAAwB,CAChC,0CAA0C,CAC3C,CAAC;YACJ,CAAC;YACD,OAAO,CAAC,IAAI,CACV,cAAc,WAAW,CAAC,YAAY,MAAM,WAAW,CAAC,UAAU,EAAE,CACrE,CAAC;QACJ,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,mFAAmF;YACnF,+DAA+D;YAC/D,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IACD,eAAe;IACf,MAAM,IAAI,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;AACxD,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfig.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfig.d.ts deleted file mode 100644 index 1531f85..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfig.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import type { Browser, BrowsingContext, Emulation, Session, UAClientHints } from '../../../protocol/protocol.js'; -/** - * Represents a context configurations. It can be global, per User Context, or per - * Browsing Context. The undefined value means the config will be taken from the upstream - * config. `null` values means the value should be default regardless of the upstream. - */ -export declare class ContextConfig { - acceptInsecureCerts?: boolean; - clientHints?: UAClientHints.UserAgentClientHints.ClientHintsMetadata | null; - devicePixelRatio?: number | null; - disableNetworkDurableMessages?: true; - downloadBehavior?: Browser.DownloadBehavior | null; - emulatedNetworkConditions?: Emulation.NetworkConditions | null; - extraHeaders?: Protocol.Network.Headers; - geolocation?: Emulation.GeolocationCoordinates | Emulation.GeolocationPositionError | null; - locale?: string | null; - maxTouchPoints?: number | null; - prerenderingDisabled?: boolean; - screenArea?: Emulation.ScreenArea | null; - screenOrientation?: Emulation.ScreenOrientation | null; - scriptingEnabled?: false | null; - timezone?: string | null; - userAgent?: string | null; - userPromptHandler?: Session.UserPromptHandler; - viewport?: BrowsingContext.Viewport | null; - /** - * Merges multiple `ContextConfig` objects. The configs are merged in the order they are - * provided. For each property, the value from the last config that defines it will be - * used. The final result will not contain any `undefined` or `null` properties. - * `undefined` values are ignored. `null` values remove the already set value. - */ - static merge(...configs: (ContextConfig | undefined)[]): ContextConfig; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfig.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfig.js deleted file mode 100644 index a2410e5..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfig.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Represents a context configurations. It can be global, per User Context, or per - * Browsing Context. The undefined value means the config will be taken from the upstream - * config. `null` values means the value should be default regardless of the upstream. - */ -export class ContextConfig { - // keep-sorted start block=yes - acceptInsecureCerts; - clientHints; - devicePixelRatio; - disableNetworkDurableMessages; - downloadBehavior; - emulatedNetworkConditions; - // Extra headers are kept in CDP format. - extraHeaders; - geolocation; - locale; - maxTouchPoints; - prerenderingDisabled; - screenArea; - screenOrientation; - scriptingEnabled; - // Timezone is kept in CDP format with GMT prefix for offset values. - timezone; - userAgent; - userPromptHandler; - viewport; - // keep-sorted end - /** - * Merges multiple `ContextConfig` objects. The configs are merged in the order they are - * provided. For each property, the value from the last config that defines it will be - * used. The final result will not contain any `undefined` or `null` properties. - * `undefined` values are ignored. `null` values remove the already set value. - */ - static merge(...configs) { - const result = new ContextConfig(); - for (const config of configs) { - if (!config) { - continue; - } - for (const key in config) { - const value = config[key]; - if (value === null) { - delete result[key]; - } - else if (value !== undefined) { - result[key] = value; - } - } - } - return result; - } -} -//# sourceMappingURL=ContextConfig.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfig.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfig.js.map deleted file mode 100644 index 0752935..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ContextConfig.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/browser/ContextConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAYH;;;;GAIG;AACH,MAAM,OAAO,aAAa;IACxB,8BAA8B;IAC9B,mBAAmB,CAAW;IAC9B,WAAW,CAAiE;IAC5E,gBAAgB,CAAiB;IACjC,6BAA6B,CAAQ;IACrC,gBAAgB,CAAmC;IACnD,yBAAyB,CAAsC;IAC/D,wCAAwC;IACxC,YAAY,CAA4B;IACxC,WAAW,CAGF;IACT,MAAM,CAAiB;IACvB,cAAc,CAAiB;IAC/B,oBAAoB,CAAW;IAC/B,UAAU,CAA+B;IACzC,iBAAiB,CAAsC;IACvD,gBAAgB,CAAgB;IAChC,oEAAoE;IACpE,QAAQ,CAAiB;IACzB,SAAS,CAAiB;IAC1B,iBAAiB,CAA6B;IAC9C,QAAQ,CAAmC;IAC3C,kBAAkB;IAElB;;;;;OAKG;IACH,MAAM,CAAC,KAAK,CAAC,GAAG,OAAsC;QACpD,MAAM,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;QAEnC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,SAAS;YACX,CAAC;YACD,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;gBACzB,MAAM,KAAK,GAAG,MAAM,CAAC,GAA0B,CAAC,CAAC;gBACjD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;oBACnB,OAAQ,MAAc,CAAC,GAAG,CAAC,CAAC;gBAC9B,CAAC;qBAAM,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;oBAC9B,MAAc,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;gBAC/B,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfigStorage.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfigStorage.d.ts deleted file mode 100644 index 21dbf70..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfigStorage.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { ContextConfig } from './ContextConfig.js'; -/** - * Manages context-specific configurations. This class allows setting - * configurations at three levels: global, user context, and browsing context. - * - * When `getActiveConfig` is called, it merges the configurations in a specific - * order of precedence: `global -> user context -> browsing context`. For each - * configuration property, the value from the highest-precedence level that has a - * non-`undefined` value is used. - * - * The `update` methods (`updateGlobalConfig`, `updateUserContextConfig`, - * `updateBrowsingContextConfig`) merge the provided configuration with the - * existing one at the corresponding level. Properties with `undefined` values in - * the provided configuration are ignored, preserving the existing value. - */ -export declare class ContextConfigStorage { - #private; - /** - * Updates the global configuration. Properties with `undefined` values in the - * provided `config` are ignored. - */ - updateGlobalConfig(config: ContextConfig): void; - /** - * Updates the configuration for a specific browsing context. Properties with - * `undefined` values in the provided `config` are ignored. - */ - updateBrowsingContextConfig(browsingContextId: string, config: ContextConfig): void; - /** - * Updates the configuration for a specific user context. Properties with - * `undefined` values in the provided `config` are ignored. - */ - updateUserContextConfig(userContext: string, config: ContextConfig): void; - /** - * Returns the current global configuration. - */ - getGlobalConfig(): ContextConfig; - /** - * Calculates the active configuration by merging global, user context, and - * browsing context settings. - */ - getActiveConfig(topLevelBrowsingContextId: string | undefined, userContext: string): ContextConfig; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfigStorage.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfigStorage.js deleted file mode 100644 index 49235e6..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfigStorage.js +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { ContextConfig } from './ContextConfig.js'; -/** - * Manages context-specific configurations. This class allows setting - * configurations at three levels: global, user context, and browsing context. - * - * When `getActiveConfig` is called, it merges the configurations in a specific - * order of precedence: `global -> user context -> browsing context`. For each - * configuration property, the value from the highest-precedence level that has a - * non-`undefined` value is used. - * - * The `update` methods (`updateGlobalConfig`, `updateUserContextConfig`, - * `updateBrowsingContextConfig`) merge the provided configuration with the - * existing one at the corresponding level. Properties with `undefined` values in - * the provided configuration are ignored, preserving the existing value. - */ -export class ContextConfigStorage { - #global = new ContextConfig(); - #userContextConfigs = new Map(); - #browsingContextConfigs = new Map(); - /** - * Updates the global configuration. Properties with `undefined` values in the - * provided `config` are ignored. - */ - updateGlobalConfig(config) { - this.#global = ContextConfig.merge(this.#global, config); - } - /** - * Updates the configuration for a specific browsing context. Properties with - * `undefined` values in the provided `config` are ignored. - */ - updateBrowsingContextConfig(browsingContextId, config) { - this.#browsingContextConfigs.set(browsingContextId, ContextConfig.merge(this.#browsingContextConfigs.get(browsingContextId), config)); - } - /** - * Updates the configuration for a specific user context. Properties with - * `undefined` values in the provided `config` are ignored. - */ - updateUserContextConfig(userContext, config) { - this.#userContextConfigs.set(userContext, ContextConfig.merge(this.#userContextConfigs.get(userContext), config)); - } - /** - * Returns the current global configuration. - */ - getGlobalConfig() { - return this.#global; - } - /** - * Extra headers is a special case. The headers from the different levels have to be - * merged instead of being overridden. - */ - #getExtraHeaders(topLevelBrowsingContextId, userContext) { - const globalHeaders = this.#global.extraHeaders ?? {}; - const userContextHeaders = this.#userContextConfigs.get(userContext)?.extraHeaders ?? {}; - const browsingContextHeaders = topLevelBrowsingContextId === undefined - ? {} - : (this.#browsingContextConfigs.get(topLevelBrowsingContextId) - ?.extraHeaders ?? {}); - return { ...globalHeaders, ...userContextHeaders, ...browsingContextHeaders }; - } - /** - * Calculates the active configuration by merging global, user context, and - * browsing context settings. - */ - getActiveConfig(topLevelBrowsingContextId, userContext) { - let result = ContextConfig.merge(this.#global, this.#userContextConfigs.get(userContext)); - if (topLevelBrowsingContextId !== undefined) { - result = ContextConfig.merge(result, this.#browsingContextConfigs.get(topLevelBrowsingContextId)); - } - // Extra headers is a special case which have to be treated in a special way. - const extraHeaders = this.#getExtraHeaders(topLevelBrowsingContextId, userContext); - result.extraHeaders = - Object.keys(extraHeaders).length > 0 ? extraHeaders : undefined; - return result; - } -} -//# sourceMappingURL=ContextConfigStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfigStorage.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfigStorage.js.map deleted file mode 100644 index c8ed875..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/ContextConfigStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ContextConfigStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/browser/ContextConfigStorage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,oBAAoB;IAC/B,OAAO,GAAG,IAAI,aAAa,EAAE,CAAC;IAC9B,mBAAmB,GAAG,IAAI,GAAG,EAAyB,CAAC;IACvD,uBAAuB,GAAG,IAAI,GAAG,EAAyB,CAAC;IAE3D;;;OAGG;IACH,kBAAkB,CAAC,MAAqB;QACtC,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE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CAAC,GAAG,CAAC,WAAW,CAAC,CAC1C,CAAC;QACF,IAAI,yBAAyB,KAAK,SAAS,EAAE,CAAC;YAC5C,MAAM,GAAG,aAAa,CAAC,KAAK,CAC1B,MAAM,EACN,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAC5D,CAAC;QACJ,CAAC;QAED,6EAA6E;QAC7E,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CACxC,yBAAyB,EACzB,WAAW,CACZ,CAAC;QACF,MAAM,CAAC,YAAY;YACjB,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;QAElE,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/UserContextStorage.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/UserContextStorage.d.ts deleted file mode 100644 index 8917817..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/UserContextStorage.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { type Browser } from '../../../protocol/protocol.js'; -export declare class UserContextStorage { - #private; - constructor(browserClient: CdpClient); - getUserContexts(): Promise<[ - Browser.UserContextInfo, - ...Browser.UserContextInfo[] - ]>; - verifyUserContextIdList(userContextIds: Browser.UserContext[]): Promise>; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/UserContextStorage.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/UserContextStorage.js deleted file mode 100644 index 6642919..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/UserContextStorage.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { NoSuchUserContextException, } from '../../../protocol/protocol.js'; -export class UserContextStorage { - #browserClient; - constructor(browserClient) { - this.#browserClient = browserClient; - } - async getUserContexts() { - const result = await this.#browserClient.sendCommand('Target.getBrowserContexts'); - return [ - { - userContext: 'default', - }, - ...result.browserContextIds.map((id) => { - return { - userContext: id, - }; - }), - ]; - } - async verifyUserContextIdList(userContextIds) { - const foundContexts = new Set(); - if (!userContextIds.length) { - return foundContexts; - } - const userContexts = await this.getUserContexts(); - const knownUserContextIds = new Set(userContexts.map((userContext) => userContext.userContext)); - for (const userContextId of userContextIds) { - if (!knownUserContextIds.has(userContextId)) { - throw new NoSuchUserContextException(`User context ${userContextId} not found`); - } - foundContexts.add(userContextId); - } - return foundContexts; - } -} -//# sourceMappingURL=UserContextStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/UserContextStorage.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/UserContextStorage.js.map deleted file mode 100644 index 12b12ea..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/browser/UserContextStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserContextStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/browser/UserContextStorage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EACL,0BAA0B,GAE3B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,OAAO,kBAAkB;IAC7B,cAAc,CAAY;IAC1B,YAAY,aAAwB;QAClC,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,eAAe;QAGnB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAClD,2BAA2B,CAC5B,CAAC;QACF,OAAO;YACL;gBACE,WAAW,EAAE,SAAS;aACvB;YACD,GAAG,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;gBACrC,OAAO;oBACL,WAAW,EAAE,EAAE;iBAChB,CAAC;YACJ,CAAC,CAAC;SACH,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,cAAqC;QACjE,MAAM,aAAa,GAAG,IAAI,GAAG,EAAuB,CAAC;QACrD,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC;YAC3B,OAAO,aAAa,CAAC;QACvB,CAAC;QAED,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAClD,MAAM,mBAAmB,GAAG,IAAI,GAAG,CACjC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC,CAC3D,CAAC;QACF,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;YAC3C,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBAC5C,MAAM,IAAI,0BAA0B,CAClC,gBAAgB,aAAa,YAAY,CAC1C,CAAC;YACJ,CAAC;YACD,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACnC,CAAC;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpProcessor.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpProcessor.d.ts deleted file mode 100644 index 5ffde76..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpProcessor.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type Cdp } from '../../../protocol/protocol.js'; -import type { CdpClient, CdpConnection } from '../../BidiMapper.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -export declare class CdpProcessor { - #private; - constructor(browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, cdpConnection: CdpConnection, browserCdpClient: CdpClient); - getSession(params: Cdp.GetSessionParameters): Cdp.GetSessionResult; - resolveRealm(params: Cdp.ResolveRealmParameters): Cdp.ResolveRealmResult; - sendCommand(params: Cdp.SendCommandParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpProcessor.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpProcessor.js deleted file mode 100644 index 8b1845d..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpProcessor.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { UnknownErrorException } from '../../../protocol/protocol.js'; -export class CdpProcessor { - #browsingContextStorage; - #realmStorage; - #cdpConnection; - #browserCdpClient; - constructor(browsingContextStorage, realmStorage, cdpConnection, browserCdpClient) { - this.#browsingContextStorage = browsingContextStorage; - this.#realmStorage = realmStorage; - this.#cdpConnection = cdpConnection; - this.#browserCdpClient = browserCdpClient; - } - getSession(params) { - const context = params.context; - const sessionId = this.#browsingContextStorage.getContext(context).cdpTarget.cdpSessionId; - if (sessionId === undefined) { - return {}; - } - return { session: sessionId }; - } - resolveRealm(params) { - const context = params.realm; - const realm = this.#realmStorage.getRealm({ realmId: context }); - if (realm === undefined) { - throw new UnknownErrorException(`Could not find realm ${params.realm}`); - } - return { executionContextId: realm.executionContextId }; - } - async sendCommand(params) { - const client = params.session - ? this.#cdpConnection.getCdpClient(params.session) - : this.#browserCdpClient; - const result = await client.sendCommand(params.method, params.params); - return { - result, - session: params.session, - }; - } -} -//# sourceMappingURL=CdpProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpProcessor.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpProcessor.js.map deleted file mode 100644 index 145fcc4..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CdpProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/cdp/CdpProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAC,qBAAqB,EAAW,MAAM,+BAA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AC;YAClD,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QACtE,OAAO;YACL,MAAM;YACN,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTarget.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTarget.d.ts deleted file mode 100644 index 2398b3c..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTarget.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import type { Protocol } from 'devtools-protocol'; -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { type Browser, type BrowsingContext, type ChromiumBidi, Emulation, type UAClientHints } from '../../../protocol/protocol.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import type { LoggerFn } from '../../../utils/log.js'; -import type { Result } from '../../../utils/result.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import { type NetworkStorage } from '../network/NetworkStorage.js'; -import type { ChannelProxy } from '../script/ChannelProxy.js'; -import type { PreloadScriptStorage } from '../script/PreloadScriptStorage.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -export declare class CdpTarget { - #private; - readonly userContext: Browser.UserContext; - readonly contextConfigStorage: ContextConfigStorage; - static create(targetId: Protocol.Target.TargetID, cdpClient: CdpClient, browserCdpClient: CdpClient, parentCdpClient: CdpClient, realmStorage: RealmStorage, eventManager: EventManager, preloadScriptStorage: PreloadScriptStorage, browsingContextStorage: BrowsingContextStorage, networkStorage: NetworkStorage, configStorage: ContextConfigStorage, userContext: Browser.UserContext, defaultUserAgent: string, logger?: LoggerFn): CdpTarget; - constructor(targetId: Protocol.Target.TargetID, cdpClient: CdpClient, browserCdpClient: CdpClient, parentCdpClient: CdpClient, eventManager: EventManager, realmStorage: RealmStorage, preloadScriptStorage: PreloadScriptStorage, browsingContextStorage: BrowsingContextStorage, configStorage: ContextConfigStorage, networkStorage: NetworkStorage, userContext: Browser.UserContext, defaultUserAgent: string, logger: LoggerFn | undefined); - /** Returns a deferred that resolves when the target is unblocked. */ - get unblocked(): Deferred>; - get id(): Protocol.Target.TargetID; - get cdpClient(): CdpClient; - get parentCdpClient(): CdpClient; - get browserCdpClient(): CdpClient; - /** Needed for CDP escape path. */ - get cdpSessionId(): Protocol.Target.SessionID; - /** - * Window id the target belongs to. If not known, returns 0. - */ - get windowId(): number; - toggleFetchIfNeeded(): Promise; - /** - * Toggles CDP "Fetch" domain and enable/disable network cache. - */ - toggleNetworkIfNeeded(): Promise; - toggleSetCacheDisabled(disable?: boolean): Promise; - toggleDeviceAccessIfNeeded(): Promise; - togglePreloadIfNeeded(): Promise; - toggleNetwork(): Promise; - /** - * All the ProxyChannels from all the preload scripts of the given - * BrowsingContext. - */ - getChannels(): ChannelProxy[]; - setDeviceMetricsOverride(viewport: BrowsingContext.Viewport | null, devicePixelRatio: number | null, screenOrientation: Emulation.ScreenOrientation | null, screenArea: Emulation.ScreenArea | null): Promise; - get topLevelId(): string; - isSubscribedTo(moduleOrEvent: ChromiumBidi.EventNames): boolean; - setGeolocationOverride(geolocation: Emulation.GeolocationCoordinates | Emulation.GeolocationPositionError | null): Promise; - setTouchOverride(maxTouchPoints: number | null): Promise; - setLocaleOverride(locale: string | null): Promise; - setScriptingEnabled(scriptingEnabled: false | null): Promise; - setTimezoneOverride(timezone: string | null): Promise; - setExtraHeaders(headers: Protocol.Network.Headers): Promise; - setUserAgentAndAcceptLanguage(userAgent: string | null | undefined, acceptLanguage: string | null | undefined, clientHints?: UAClientHints.UserAgentClientHints.ClientHintsMetadata | null): Promise; - setEmulatedNetworkConditions(networkConditions: Emulation.NetworkConditions | null): Promise; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTarget.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTarget.js deleted file mode 100644 index 94ae687..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTarget.js +++ /dev/null @@ -1,691 +0,0 @@ -import { Bluetooth, Speculation } from '../../../protocol/chromium-bidi.js'; -import { UnknownErrorException, UnsupportedOperationException, } from '../../../protocol/protocol.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import { LogType } from '../../../utils/log.js'; -import { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; -import { LogManager } from '../log/LogManager.js'; -import { MAX_TOTAL_COLLECTED_SIZE, } from '../network/NetworkStorage.js'; -export class CdpTarget { - #id; - userContext; - #cdpClient; - #browserCdpClient; - #parentCdpClient; - #realmStorage; - #eventManager; - #preloadScriptStorage; - #browsingContextStorage; - #networkStorage; - contextConfigStorage; - #unblocked = new Deferred(); - // Default user agent for the target. Required, as emulating client hints without user - // agent is not possible. Cache it to avoid round trips to the browser for every target override. - #defaultUserAgent; - #logger; - /** - * Target's window id. Is filled when the CDP target is created and do not reflect - * moving targets from one window to another. The actual values - * will be set during `#unblock`. - * */ - #windowId; - #deviceAccessEnabled = false; - #cacheDisableState = false; - #preloadEnabled = false; - #fetchDomainStages = { - request: false, - response: false, - auth: false, - }; - static create(targetId, cdpClient, browserCdpClient, parentCdpClient, realmStorage, eventManager, preloadScriptStorage, browsingContextStorage, networkStorage, configStorage, userContext, defaultUserAgent, logger) { - const cdpTarget = new CdpTarget(targetId, cdpClient, browserCdpClient, parentCdpClient, eventManager, realmStorage, preloadScriptStorage, browsingContextStorage, configStorage, networkStorage, userContext, defaultUserAgent, logger); - LogManager.create(cdpTarget, realmStorage, eventManager, logger); - cdpTarget.#setEventListeners(); - // No need to await. - // Deferred will be resolved when the target is unblocked. - void cdpTarget.#unblock(); - return cdpTarget; - } - constructor(targetId, cdpClient, browserCdpClient, parentCdpClient, eventManager, realmStorage, preloadScriptStorage, browsingContextStorage, configStorage, networkStorage, userContext, defaultUserAgent, logger) { - this.#defaultUserAgent = defaultUserAgent; - this.userContext = userContext; - this.#id = targetId; - this.#cdpClient = cdpClient; - this.#browserCdpClient = browserCdpClient; - this.#parentCdpClient = parentCdpClient; - this.#eventManager = eventManager; - this.#realmStorage = realmStorage; - this.#preloadScriptStorage = preloadScriptStorage; - this.#networkStorage = networkStorage; - this.#browsingContextStorage = browsingContextStorage; - this.contextConfigStorage = configStorage; - this.#logger = logger; - } - /** Returns a deferred that resolves when the target is unblocked. */ - get unblocked() { - return this.#unblocked; - } - get id() { - return this.#id; - } - get cdpClient() { - return this.#cdpClient; - } - get parentCdpClient() { - return this.#parentCdpClient; - } - get browserCdpClient() { - return this.#browserCdpClient; - } - /** Needed for CDP escape path. */ - get cdpSessionId() { - // SAFETY we got the client by it's id for creating - return this.#cdpClient.sessionId; - } - /** - * Window id the target belongs to. If not known, returns 0. - */ - get windowId() { - if (this.#windowId === undefined) { - this.#logger?.(LogType.debugError, 'Getting windowId before it was set, returning 0'); - } - return this.#windowId ?? 0; - } - /** - * Enables all the required CDP domains and unblocks the target. - */ - async #unblock() { - const config = this.contextConfigStorage.getActiveConfig(this.topLevelId, this.userContext); - const results = await Promise.allSettled([ - this.#cdpClient.sendCommand('Page.enable', { - enableFileChooserOpenedEvent: true, - }), - ...(this.#ignoreFileDialog() - ? [] - : [ - this.#cdpClient.sendCommand('Page.setInterceptFileChooserDialog', { - enabled: true, - // The intercepted dialog should be canceled. - cancel: true, - }), - ]), - // There can be some existing frames in the target, if reconnecting to an - // existing browser instance, e.g. via Puppeteer. Need to restore the browsing - // contexts for the frames to correctly handle further events, like - // `Runtime.executionContextCreated`. - // It's important to schedule this task together with enabling domains commands to - // prepare the tree before the events (e.g. Runtime.executionContextCreated) start - // coming. - // https://github.com/GoogleChromeLabs/chromium-bidi/issues/2282 - this.#cdpClient - .sendCommand('Page.getFrameTree') - .then((frameTree) => this.#restoreFrameTreeState(frameTree.frameTree)), - this.#cdpClient.sendCommand('Runtime.enable'), - this.#cdpClient.sendCommand('Page.setLifecycleEventsEnabled', { - enabled: true, - }), - // Enabling CDP Network domain is required for navigation detection: - // https://github.com/GoogleChromeLabs/chromium-bidi/issues/2856. - this.#cdpClient - .sendCommand('Network.enable', { - // If `googDisableNetworkDurableMessages` flag is set, do not enable durable - // messages. - enableDurableMessages: config.disableNetworkDurableMessages !== true, - maxTotalBufferSize: MAX_TOTAL_COLLECTED_SIZE, - }) - .then(() => this.toggleNetworkIfNeeded()), - this.#cdpClient.sendCommand('Target.setAutoAttach', { - autoAttach: true, - waitForDebuggerOnStart: true, - flatten: true, - }), - this.#updateWindowId(), - this.#setUserContextConfig(config), - this.#initAndEvaluatePreloadScripts(), - this.#cdpClient.sendCommand('Runtime.runIfWaitingForDebugger'), - // Resume tab execution as well if it was paused by the debugger. - this.#parentCdpClient.sendCommand('Runtime.runIfWaitingForDebugger'), - this.toggleDeviceAccessIfNeeded(), - this.togglePreloadIfNeeded(), - ]); - for (const result of results) { - if (result instanceof Error) { - // Ignore errors during configuring targets, just log them. - this.#logger?.(LogType.debugError, 'Error happened when configuring a new target', result); - } - } - this.#unblocked.resolve({ - kind: 'success', - value: undefined, - }); - } - #restoreFrameTreeState(frameTree) { - const frame = frameTree.frame; - const maybeContext = this.#browsingContextStorage.findContext(frame.id); - if (maybeContext !== undefined) { - // Restoring parent of already known browsing context. This means the target is - // OOPiF and the BiDi session was connected to already existing browser instance. - if (maybeContext.parentId === null && - frame.parentId !== null && - frame.parentId !== undefined) { - maybeContext.parentId = frame.parentId; - } - } - if (maybeContext === undefined && frame.parentId !== undefined) { - // Restore not yet known nested frames. The top-level frame is created when the - // target is attached. - const parentBrowsingContext = this.#browsingContextStorage.getContext(frame.parentId); - BrowsingContextImpl.create(frame.id, frame.parentId, this.userContext, parentBrowsingContext.cdpTarget, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, this.contextConfigStorage, frame.url, undefined, this.#logger); - } - frameTree.childFrames?.map((frameTree) => this.#restoreFrameTreeState(frameTree)); - } - async toggleFetchIfNeeded() { - const stages = this.#networkStorage.getInterceptionStages(this.topLevelId); - if (this.#fetchDomainStages.request === stages.request && - this.#fetchDomainStages.response === stages.response && - this.#fetchDomainStages.auth === stages.auth) { - return; - } - const patterns = []; - this.#fetchDomainStages = stages; - if (stages.request || stages.auth) { - // CDP quirk we need request interception when we intercept auth - patterns.push({ - urlPattern: '*', - requestStage: 'Request', - }); - } - if (stages.response) { - patterns.push({ - urlPattern: '*', - requestStage: 'Response', - }); - } - if (patterns.length) { - await this.#cdpClient.sendCommand('Fetch.enable', { - patterns, - handleAuthRequests: stages.auth, - }); - } - else { - const blockedRequest = this.#networkStorage - .getRequestsByTarget(this) - .filter((request) => request.interceptPhase); - void Promise.allSettled(blockedRequest.map((request) => request.waitNextPhase)) - .then(async () => { - const blockedRequest = this.#networkStorage - .getRequestsByTarget(this) - .filter((request) => request.interceptPhase); - if (blockedRequest.length) { - return await this.toggleFetchIfNeeded(); - } - return await this.#cdpClient.sendCommand('Fetch.disable'); - }) - .catch((error) => { - this.#logger?.(LogType.bidi, 'Disable failed', error); - }); - } - } - /** - * Toggles CDP "Fetch" domain and enable/disable network cache. - */ - async toggleNetworkIfNeeded() { - // Although the Network domain remains active, Fetch domain activation and caching - // settings should be managed dynamically. - try { - await Promise.all([ - this.toggleSetCacheDisabled(), - this.toggleFetchIfNeeded(), - ]); - } - catch (err) { - this.#logger?.(LogType.debugError, err); - if (!this.#isExpectedError(err)) { - throw err; - } - } - } - async toggleSetCacheDisabled(disable) { - const defaultCacheDisabled = this.#networkStorage.defaultCacheBehavior === 'bypass'; - const cacheDisabled = disable ?? defaultCacheDisabled; - if (this.#cacheDisableState === cacheDisabled) { - return; - } - this.#cacheDisableState = cacheDisabled; - try { - await this.#cdpClient.sendCommand('Network.setCacheDisabled', { - cacheDisabled, - }); - } - catch (err) { - this.#logger?.(LogType.debugError, err); - this.#cacheDisableState = !cacheDisabled; - if (!this.#isExpectedError(err)) { - throw err; - } - } - } - async toggleDeviceAccessIfNeeded() { - const enabled = this.isSubscribedTo(Bluetooth.EventNames.RequestDevicePromptUpdated); - if (this.#deviceAccessEnabled === enabled) { - return; - } - this.#deviceAccessEnabled = enabled; - try { - await this.#cdpClient.sendCommand(enabled ? 'DeviceAccess.enable' : 'DeviceAccess.disable'); - } - catch (err) { - this.#logger?.(LogType.debugError, err); - this.#deviceAccessEnabled = !enabled; - if (!this.#isExpectedError(err)) { - throw err; - } - } - } - async togglePreloadIfNeeded() { - const enabled = this.isSubscribedTo(Speculation.EventNames.PrefetchStatusUpdated); - if (this.#preloadEnabled === enabled) { - return; - } - this.#preloadEnabled = enabled; - try { - await this.#cdpClient.sendCommand(enabled ? 'Preload.enable' : 'Preload.disable'); - } - catch (err) { - this.#logger?.(LogType.debugError, err); - this.#preloadEnabled = !enabled; - if (!this.#isExpectedError(err)) { - throw err; - } - } - } - /** - * Heuristic checking if the error is due to the session being closed. If so, ignore the - * error. - */ - #isExpectedError(err) { - const error = err; - return ((error.code === -32001 && - error.message === 'Session with given id not found.') || - this.#cdpClient.isCloseError(err)); - } - #setEventListeners() { - this.#cdpClient.on('*', (event, params) => { - // We may encounter uses for EventEmitter other than CDP events, - // which we want to skip. - if (typeof event !== 'string') { - return; - } - this.#eventManager.registerEvent({ - type: 'event', - method: `goog:cdp.${event}`, - params: { - event, - params, - session: this.cdpSessionId, - }, - }, this.id); - }); - } - async #enableFetch(stages) { - const patterns = []; - if (stages.request || stages.auth) { - // CDP quirk we need request interception when we intercept auth - patterns.push({ - urlPattern: '*', - requestStage: 'Request', - }); - } - if (stages.response) { - patterns.push({ - urlPattern: '*', - requestStage: 'Response', - }); - } - if (patterns.length) { - const oldStages = this.#fetchDomainStages; - this.#fetchDomainStages = stages; - try { - await this.#cdpClient.sendCommand('Fetch.enable', { - patterns, - handleAuthRequests: stages.auth, - }); - } - catch { - this.#fetchDomainStages = oldStages; - } - } - } - async #disableFetch() { - const blockedRequest = this.#networkStorage - .getRequestsByTarget(this) - .filter((request) => request.interceptPhase); - if (blockedRequest.length === 0) { - this.#fetchDomainStages = { - request: false, - response: false, - auth: false, - }; - await this.#cdpClient.sendCommand('Fetch.disable'); - } - } - async toggleNetwork() { - // TODO: respect the data collectors once CDP Network domain is enabled on-demand: - // const networkEnable = this.#networkStorage.getCollectorsForBrowsingContext(this.topLevelId).length > 0; - const stages = this.#networkStorage.getInterceptionStages(this.topLevelId); - const fetchEnable = Object.values(stages).some((value) => value); - const fetchChanged = this.#fetchDomainStages.request !== stages.request || - this.#fetchDomainStages.response !== stages.response || - this.#fetchDomainStages.auth !== stages.auth; - this.#logger?.(LogType.debugInfo, 'Toggle Network', `Fetch (${fetchEnable}) ${fetchChanged}`); - if (fetchEnable && fetchChanged) { - await this.#enableFetch(stages); - } - if (!fetchEnable && fetchChanged) { - await this.#disableFetch(); - } - } - /** - * All the ProxyChannels from all the preload scripts of the given - * BrowsingContext. - */ - getChannels() { - return this.#preloadScriptStorage - .find() - .flatMap((script) => script.channels); - } - async #updateWindowId() { - const { windowId } = await this.#browserCdpClient.sendCommand('Browser.getWindowForTarget', { targetId: this.id }); - this.#windowId = windowId; - } - /** Loads all top-level preload scripts. */ - async #initAndEvaluatePreloadScripts() { - await Promise.all(this.#preloadScriptStorage - .find({ - // Needed for OOPIF - targetId: this.topLevelId, - }) - .map((script) => { - return script.initInTarget(this, true); - })); - } - async setDeviceMetricsOverride(viewport, devicePixelRatio, screenOrientation, screenArea) { - if (viewport === null && - devicePixelRatio === null && - screenOrientation === null && - screenArea === null) { - await this.cdpClient.sendCommand('Emulation.clearDeviceMetricsOverride'); - return; - } - const metricsOverride = { - width: viewport?.width ?? 0, - height: viewport?.height ?? 0, - deviceScaleFactor: devicePixelRatio ?? 0, - screenOrientation: this.#toCdpScreenOrientationAngle(screenOrientation) ?? undefined, - mobile: false, - screenWidth: screenArea?.width, - screenHeight: screenArea?.height, - }; - await this.cdpClient.sendCommand('Emulation.setDeviceMetricsOverride', metricsOverride); - } - /** - * Immediately schedules all the required commands to configure user context - * configuration and waits for them to finish. It's important to schedule them - * in parallel, so that they are enqueued before any page's scripts. - */ - async #setUserContextConfig(config) { - const promises = []; - promises.push(this.#cdpClient - .sendCommand('Page.setPrerenderingAllowed', { - isAllowed: !config.prerenderingDisabled, - }) - .catch(() => { - // Ignore CDP errors, as the command is not supported by iframe targets or - // prerendered pages. Generic catch, as the error can vary between CdpClient - // implementations: Tab vs Puppeteer. - })); - if (config.viewport !== undefined || - config.devicePixelRatio !== undefined || - config.screenOrientation !== undefined || - config.screenArea !== undefined) { - promises.push(this.setDeviceMetricsOverride(config.viewport ?? null, config.devicePixelRatio ?? null, config.screenOrientation ?? null, config.screenArea ?? null).catch(() => { - // Ignore CDP errors, as the command is not supported by iframe targets. Generic - // catch, as the error can vary between CdpClient implementations: Tab vs - // Puppeteer. - })); - } - if (config.geolocation !== undefined && config.geolocation !== null) { - promises.push(this.setGeolocationOverride(config.geolocation)); - } - if (config.locale !== undefined) { - promises.push(this.setLocaleOverride(config.locale)); - } - if (config.timezone !== undefined) { - promises.push(this.setTimezoneOverride(config.timezone)); - } - if (config.extraHeaders !== undefined) { - promises.push(this.setExtraHeaders(config.extraHeaders)); - } - if (config.userAgent !== undefined || - config.locale !== undefined || - config.clientHints !== undefined) { - promises.push(this.setUserAgentAndAcceptLanguage(config.userAgent, config.locale, config.clientHints)); - } - if (config.scriptingEnabled !== undefined) { - promises.push(this.setScriptingEnabled(config.scriptingEnabled)); - } - if (config.acceptInsecureCerts !== undefined) { - promises.push(this.cdpClient.sendCommand('Security.setIgnoreCertificateErrors', { - ignore: config.acceptInsecureCerts, - })); - } - if (config.emulatedNetworkConditions !== undefined) { - promises.push(this.setEmulatedNetworkConditions(config.emulatedNetworkConditions)); - } - if (config.maxTouchPoints !== undefined) { - promises.push(this.setTouchOverride(config.maxTouchPoints)); - } - await Promise.all(promises); - } - get topLevelId() { - return (this.#browsingContextStorage.findTopLevelContextId(this.id) ?? this.id); - } - isSubscribedTo(moduleOrEvent) { - return this.#eventManager.subscriptionManager.isSubscribedTo(moduleOrEvent, this.topLevelId); - } - #ignoreFileDialog() { - const config = this.contextConfigStorage.getActiveConfig(this.topLevelId, this.userContext); - return ((config.userPromptHandler?.file ?? - config.userPromptHandler?.default ?? - "ignore" /* Session.UserPromptHandlerType.Ignore */) === - "ignore" /* Session.UserPromptHandlerType.Ignore */); - } - async setGeolocationOverride(geolocation) { - if (geolocation === null) { - await this.cdpClient.sendCommand('Emulation.clearGeolocationOverride'); - } - else if ('type' in geolocation) { - if (geolocation.type !== 'positionUnavailable') { - // Unreachable. Handled by params parser. - throw new UnknownErrorException(`Unknown geolocation error ${geolocation.type}`); - } - // Omitting latitude, longitude or accuracy emulates position unavailable. - await this.cdpClient.sendCommand('Emulation.setGeolocationOverride', {}); - } - else if ('latitude' in geolocation) { - await this.cdpClient.sendCommand('Emulation.setGeolocationOverride', { - latitude: geolocation.latitude, - longitude: geolocation.longitude, - accuracy: geolocation.accuracy ?? 1, - // `null` value is treated as "missing". - altitude: geolocation.altitude ?? undefined, - altitudeAccuracy: geolocation.altitudeAccuracy ?? undefined, - heading: geolocation.heading ?? undefined, - speed: geolocation.speed ?? undefined, - }); - } - else { - // Unreachable. Handled by params parser. - throw new UnknownErrorException('Unexpected geolocation coordinates value'); - } - } - async setTouchOverride(maxTouchPoints) { - const touchEmulationParams = { - enabled: maxTouchPoints !== null, - }; - if (maxTouchPoints !== null) { - touchEmulationParams.maxTouchPoints = maxTouchPoints; - } - await this.cdpClient.sendCommand('Emulation.setTouchEmulationEnabled', touchEmulationParams); - } - #toCdpScreenOrientationAngle(orientation) { - if (orientation === null) { - return null; - } - // https://w3c.github.io/screen-orientation/#the-current-screen-orientation-type-and-angle - if (orientation.natural === "portrait" /* Emulation.ScreenOrientationNatural.Portrait */) { - switch (orientation.type) { - case 'portrait-primary': - return { - angle: 0, - type: 'portraitPrimary', - }; - case 'landscape-primary': - return { - angle: 90, - type: 'landscapePrimary', - }; - case 'portrait-secondary': - return { - angle: 180, - type: 'portraitSecondary', - }; - case 'landscape-secondary': - return { - angle: 270, - type: 'landscapeSecondary', - }; - default: - // Unreachable. - throw new UnknownErrorException(`Unexpected screen orientation type ${orientation.type}`); - } - } - if (orientation.natural === "landscape" /* Emulation.ScreenOrientationNatural.Landscape */) { - switch (orientation.type) { - case 'landscape-primary': - return { - angle: 0, - type: 'landscapePrimary', - }; - case 'portrait-primary': - return { - angle: 90, - type: 'portraitPrimary', - }; - case 'landscape-secondary': - return { - angle: 180, - type: 'landscapeSecondary', - }; - case 'portrait-secondary': - return { - angle: 270, - type: 'portraitSecondary', - }; - default: - // Unreachable. - throw new UnknownErrorException(`Unexpected screen orientation type ${orientation.type}`); - } - } - // Unreachable. - throw new UnknownErrorException(`Unexpected orientation natural ${orientation.natural}`); - } - async setLocaleOverride(locale) { - if (locale === null) { - await this.cdpClient.sendCommand('Emulation.setLocaleOverride', {}); - } - else { - await this.cdpClient.sendCommand('Emulation.setLocaleOverride', { - locale, - }); - } - } - async setScriptingEnabled(scriptingEnabled) { - await this.cdpClient.sendCommand('Emulation.setScriptExecutionDisabled', { - value: scriptingEnabled === false, - }); - } - async setTimezoneOverride(timezone) { - if (timezone === null) { - await this.cdpClient.sendCommand('Emulation.setTimezoneOverride', { - // If empty, disables the override and restores default host system timezone. - timezoneId: '', - }); - } - else { - await this.cdpClient.sendCommand('Emulation.setTimezoneOverride', { - timezoneId: timezone, - }); - } - } - async setExtraHeaders(headers) { - await this.cdpClient.sendCommand('Network.setExtraHTTPHeaders', { - headers, - }); - } - async setUserAgentAndAcceptLanguage(userAgent, acceptLanguage, clientHints) { - const userAgentMetadata = clientHints - ? { - brands: clientHints.brands?.map((b) => ({ - brand: b.brand, - version: b.version, - })), - fullVersionList: clientHints.fullVersionList, - platform: clientHints.platform ?? '', - platformVersion: clientHints.platformVersion ?? '', - architecture: clientHints.architecture ?? '', - model: clientHints.model ?? '', - mobile: clientHints.mobile ?? false, - bitness: clientHints.bitness ?? undefined, - wow64: clientHints.wow64 ?? undefined, - formFactors: clientHints.formFactors ?? undefined, - } - : undefined; - await this.cdpClient.sendCommand('Emulation.setUserAgentOverride', { - // `userAgent` is required if `userAgentMetadata` is provided. - userAgent: userAgent || (userAgentMetadata ? this.#defaultUserAgent : ''), - acceptLanguage: acceptLanguage ?? undefined, - // We need to provide the platform to enable platform emulation. - // Note that the value might be different from the one expected by the - // legacy `navigator.platform` (e.g. `Win32` vs `Windows`). - // https://github.com/w3c/webdriver-bidi/issues/1065 - platform: clientHints?.platform ?? undefined, - userAgentMetadata, - }); - } - async setEmulatedNetworkConditions(networkConditions) { - if (networkConditions !== null && networkConditions.type !== 'offline') { - throw new UnsupportedOperationException(`Unsupported network conditions ${networkConditions.type}`); - } - await Promise.all([ - this.cdpClient.sendCommand('Network.emulateNetworkConditionsByRule', { - offline: networkConditions?.type === 'offline', - matchedNetworkConditions: [ - { - urlPattern: '', - latency: 0, - downloadThroughput: -1, - uploadThroughput: -1, - }, - ], - }), - this.cdpClient.sendCommand('Network.overrideNetworkState', { - offline: networkConditions?.type === 'offline', - // TODO: restore the original `latency` value when emulation is removed. - latency: 0, - downloadThroughput: -1, - uploadThroughput: -1, - }), - ]); - } -} -//# sourceMappingURL=CdpTarget.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTarget.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTarget.js.map deleted file mode 100644 index db5a57f..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTarget.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CdpTarget.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/cdp/CdpTarget.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,oCAAoC,CAA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D,OAAO,EAAE,iBAAiB,EAAE,IAAI,KAAK,SAAS;gBAC9C,wEAAwE;gBACxE,OAAO,EAAE,CAAC;gBACV,kBAAkB,EAAE,CAAC,CAAC;gBACtB,gBAAgB,EAAE,CAAC,CAAC;aACrB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTargetManager.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTargetManager.d.ts deleted file mode 100644 index 36101d6..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTargetManager.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import type { CdpConnection } from '../../../cdp/CdpConnection.js'; -import type { Browser } from '../../../protocol/protocol.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { BluetoothProcessor } from '../bluetooth/BluetoothProcessor.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { NetworkStorage } from '../network/NetworkStorage.js'; -import type { PreloadScriptStorage } from '../script/PreloadScriptStorage.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { SpeculationProcessor } from '../speculation/SpeculationProcessor.js'; -export declare class CdpTargetManager { - #private; - constructor(cdpConnection: CdpConnection, browserCdpClient: CdpClient, selfTargetId: string, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, networkStorage: NetworkStorage, configStorage: ContextConfigStorage, bluetoothProcessor: BluetoothProcessor, speculationProcessor: SpeculationProcessor, preloadScriptStorage: PreloadScriptStorage, defaultUserContextId: Browser.UserContext, defaultUserAgent: string, logger?: LoggerFn); -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTargetManager.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTargetManager.js deleted file mode 100644 index e9ebe75..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTargetManager.js +++ /dev/null @@ -1,248 +0,0 @@ -import { LogType } from '../../../utils/log.js'; -import { BrowsingContextImpl, serializeOrigin, } from '../context/BrowsingContextImpl.js'; -import { WorkerRealm } from '../script/WorkerRealm.js'; -import { CdpTarget } from './CdpTarget.js'; -const cdpToBidiTargetTypes = { - service_worker: 'service-worker', - shared_worker: 'shared-worker', - worker: 'dedicated-worker', -}; -export class CdpTargetManager { - #browserCdpClient; - #cdpConnection; - #targetKeysToBeIgnoredByAutoAttach = new Set(); - #selfTargetId; - #eventManager; - #browsingContextStorage; - #networkStorage; - #bluetoothProcessor; - #preloadScriptStorage; - #realmStorage; - #configStorage; - #speculationProcessor; - #defaultUserContextId; - #defaultUserAgent; - #logger; - constructor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, configStorage, bluetoothProcessor, speculationProcessor, preloadScriptStorage, defaultUserContextId, defaultUserAgent, logger) { - this.#cdpConnection = cdpConnection; - this.#browserCdpClient = browserCdpClient; - this.#targetKeysToBeIgnoredByAutoAttach.add(selfTargetId); - this.#selfTargetId = selfTargetId; - this.#eventManager = eventManager; - this.#browsingContextStorage = browsingContextStorage; - this.#preloadScriptStorage = preloadScriptStorage; - this.#networkStorage = networkStorage; - this.#configStorage = configStorage; - this.#bluetoothProcessor = bluetoothProcessor; - this.#speculationProcessor = speculationProcessor; - this.#realmStorage = realmStorage; - this.#defaultUserContextId = defaultUserContextId; - this.#defaultUserAgent = defaultUserAgent; - this.#logger = logger; - this.#setEventListeners(browserCdpClient); - } - /** - * This method is called for each CDP session, since this class is responsible - * for creating and destroying all targets and browsing contexts. - */ - #setEventListeners(cdpClient) { - cdpClient.on('Target.attachedToTarget', (params) => { - this.#handleAttachedToTargetEvent(params, cdpClient); - }); - cdpClient.on('Target.detachedFromTarget', this.#handleDetachedFromTargetEvent.bind(this)); - cdpClient.on('Target.targetInfoChanged', this.#handleTargetInfoChangedEvent.bind(this)); - cdpClient.on('Inspector.targetCrashed', () => { - this.#handleTargetCrashedEvent(cdpClient); - }); - cdpClient.on('Page.frameAttached', this.#handleFrameAttachedEvent.bind(this)); - cdpClient.on('Page.frameSubtreeWillBeDetached', this.#handleFrameSubtreeWillBeDetached.bind(this)); - } - #handleFrameAttachedEvent(params) { - const parentBrowsingContext = this.#browsingContextStorage.findContext(params.parentFrameId); - if (parentBrowsingContext !== undefined) { - BrowsingContextImpl.create(params.frameId, params.parentFrameId, parentBrowsingContext.userContext, parentBrowsingContext.cdpTarget, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, this.#configStorage, - // At this point, we don't know the URL of the frame yet, so it will be updated - // later. - 'about:blank', undefined, this.#logger); - } - } - #handleFrameSubtreeWillBeDetached(params) { - this.#browsingContextStorage.findContext(params.frameId)?.dispose(true); - } - #handleAttachedToTargetEvent(params, parentSessionCdpClient) { - const { sessionId, targetInfo } = params; - const targetCdpClient = this.#cdpConnection.getCdpClient(sessionId); - const detach = async () => { - // Detaches and resumes the target suppressing errors. - await targetCdpClient - .sendCommand('Runtime.runIfWaitingForDebugger') - .then(() => parentSessionCdpClient.sendCommand('Target.detachFromTarget', params)) - .catch((error) => this.#logger?.(LogType.debugError, error)); - }; - // Do not attach to the Mapper target. - if (this.#selfTargetId === targetInfo.targetId) { - void detach(); - return; - } - // Service workers are special case because they attach to the - // browser target and the page target (so twice per worker) during - // the regular auto-attach and might hang if the CDP session on - // the browser level is not detached. The logic to detach the - // right session is handled in the switch below. - const targetKey = targetInfo.type === 'service_worker' - ? `${parentSessionCdpClient.sessionId}_${targetInfo.targetId}` - : targetInfo.targetId; - // Mapper generally only needs one session per target. If we - // receive additional auto-attached sessions, that is very likely - // coming from custom CDP sessions. - if (this.#targetKeysToBeIgnoredByAutoAttach.has(targetKey)) { - // Return to leave the session untouched. - return; - } - this.#targetKeysToBeIgnoredByAutoAttach.add(targetKey); - const userContext = targetInfo.browserContextId && - targetInfo.browserContextId !== this.#defaultUserContextId - ? targetInfo.browserContextId - : 'default'; - switch (targetInfo.type) { - case 'tab': { - // Tab targets are required only to handle page targets beneath them. - this.#setEventListeners(targetCdpClient); - // Auto-attach to the page target. No need in resuming tab target debugger, as it - // should preserve the page target debugger state, and will be resumed by the page - // target. - void (async () => { - await targetCdpClient.sendCommand('Target.setAutoAttach', { - autoAttach: true, - waitForDebuggerOnStart: true, - flatten: true, - }); - })(); - return; - } - case 'page': - case 'iframe': { - const cdpTarget = this.#createCdpTarget(targetCdpClient, parentSessionCdpClient, targetInfo, userContext); - const maybeContext = this.#browsingContextStorage.findContext(targetInfo.targetId); - if (maybeContext && targetInfo.type === 'iframe') { - // OOPiF. - maybeContext.updateCdpTarget(cdpTarget); - } - else { - // If attaching to existing browser instance, there could be OOPiF targets. This - // case is handled by the `findFrameParentId` method. - const parentId = this.#findFrameParentId(targetInfo, parentSessionCdpClient.sessionId); - // New context. - BrowsingContextImpl.create(targetInfo.targetId, parentId, userContext, cdpTarget, this.#eventManager, this.#browsingContextStorage, this.#realmStorage, this.#configStorage, - // Hack: when a new target created, CDP emits targetInfoChanged with an empty - // url, and navigates it to about:blank later. When the event is emitted for - // an existing target (reconnect), the url is already known, and navigation - // events will not be emitted anymore. Replacing empty url with `about:blank` - // allows to handle both cases in the same way. - // "7.3.2.1 Creating browsing contexts". - // https://html.spec.whatwg.org/multipage/document-sequences.html#creating-browsing-contexts - // TODO: check who to deal with non-null creator and its `creatorOrigin`. - targetInfo.url === '' ? 'about:blank' : targetInfo.url, targetInfo.openerFrameId ?? targetInfo.openerId, this.#logger); - } - return; - } - case 'service_worker': - case 'worker': { - const realm = this.#realmStorage.findRealm({ - cdpSessionId: parentSessionCdpClient.sessionId, - sandbox: null, // Non-sandboxed realms. - }); - // If there is no browsing context, this worker is already terminated. - if (!realm) { - void detach(); - return; - } - const cdpTarget = this.#createCdpTarget(targetCdpClient, parentSessionCdpClient, targetInfo, userContext); - this.#handleWorkerTarget(cdpToBidiTargetTypes[targetInfo.type], cdpTarget, realm); - return; - } - // In CDP, we only emit shared workers on the browser and not the set of - // frames that use the shared worker. If we change this in the future to - // behave like service workers (emits on both browser and frame targets), - // we can remove this block and merge service workers with the above one. - case 'shared_worker': { - const cdpTarget = this.#createCdpTarget(targetCdpClient, parentSessionCdpClient, targetInfo, userContext); - this.#handleWorkerTarget(cdpToBidiTargetTypes[targetInfo.type], cdpTarget); - return; - } - } - // DevTools or some other not supported by BiDi target. Just release - // debugger and ignore them. - void detach(); - } - /** Try to find the parent browsing context ID for the given attached target. */ - #findFrameParentId(targetInfo, parentSessionId) { - if (targetInfo.type !== 'iframe') { - return null; - } - const parentId = targetInfo.openerFrameId ?? targetInfo.openerId; - if (parentId !== undefined) { - return parentId; - } - if (parentSessionId !== undefined) { - return (this.#browsingContextStorage.findContextBySession(parentSessionId) - ?.id ?? null); - } - return null; - } - #createCdpTarget(targetCdpClient, parentCdpClient, targetInfo, userContext) { - this.#setEventListeners(targetCdpClient); - this.#preloadScriptStorage.onCdpTargetCreated(targetInfo.targetId, userContext); - const target = CdpTarget.create(targetInfo.targetId, targetCdpClient, this.#browserCdpClient, parentCdpClient, this.#realmStorage, this.#eventManager, this.#preloadScriptStorage, this.#browsingContextStorage, this.#networkStorage, this.#configStorage, userContext, - // Pass the cached default User Agent to the new target. - this.#defaultUserAgent, this.#logger); - this.#networkStorage.onCdpTargetCreated(target); - this.#bluetoothProcessor.onCdpTargetCreated(target); - this.#speculationProcessor.onCdpTargetCreated(target); - return target; - } - #workers = new Map(); - #handleWorkerTarget(realmType, cdpTarget, ownerRealm) { - cdpTarget.cdpClient.on('Runtime.executionContextCreated', (params) => { - const { uniqueId, id, origin } = params.context; - const workerRealm = new WorkerRealm(cdpTarget.cdpClient, this.#eventManager, id, this.#logger, serializeOrigin(origin), ownerRealm ? [ownerRealm] : [], uniqueId, this.#realmStorage, realmType); - this.#workers.set(cdpTarget.cdpSessionId, workerRealm); - }); - } - #handleDetachedFromTargetEvent({ sessionId, targetId, }) { - if (targetId) { - this.#preloadScriptStorage.find({ targetId }).map((preloadScript) => { - preloadScript.dispose(targetId); - }); - } - const context = this.#browsingContextStorage.findContextBySession(sessionId); - if (context) { - context.dispose(true); - return; - } - const worker = this.#workers.get(sessionId); - if (worker) { - this.#realmStorage.deleteRealms({ - cdpSessionId: worker.cdpClient.sessionId, - }); - } - } - #handleTargetInfoChangedEvent(params) { - const context = this.#browsingContextStorage.findContext(params.targetInfo.targetId); - if (context) { - context.onTargetInfoChanged(params); - } - } - #handleTargetCrashedEvent(cdpClient) { - // This is primarily used for service and shared workers. CDP tends to not - // signal they closed gracefully and instead says they crashed to signal - // they are closed. - const realms = this.#realmStorage.findRealms({ - cdpSessionId: cdpClient.sessionId, - }); - for (const realm of realms) { - realm.dispose(); - } - } -} -//# sourceMappingURL=CdpTargetManager.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTargetManager.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTargetManager.js.map deleted file mode 100644 index da12b58..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/cdp/CdpTargetManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CdpTargetManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/cdp/CdpTargetManager.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,OAAO,EAAgB,MAAM,uBAAuB,CAAC;AAG7D,OAAO,EACL,mBAAmB,EACnB,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAM3C,OAAO,EAAC,WAAW,EAAuB,MAAM,0BAA0B,CAAC;AAI3E,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,MAAM,oBAAoB,GAAG;IAC3B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,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AAC,EAAC,QAAQ,EAAC,CAAC,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE;gBAChE,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAClC,CAAC,CAAC,CAAC;QACL,CAAC;QACD,MAAM,OAAO,GACX,IAAI,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;QAC/D,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACtB,OAAO;QACT,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC5C,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC;gBAC9B,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;aACzC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,6BAA6B,CAC3B,MAA8C;QAE9C,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,WAAW,CACtD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAC3B,CAAC;QACF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IAED,yBAAyB,CAAC,SAAoB;QAC5C,0EAA0E;QAC1E,wEAAwE;QACxE,mBAAmB;QACnB,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC;YAC3C,YAAY,EAAE,SAAS,CAAC,SAAS;SAClC,CAAC,CAAC;QACH,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,KAAK,CAAC,OAAO,EAAE,CAAC;QAClB,CAAC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.d.ts deleted file mode 100644 index 8a0a09b..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import { BrowsingContext, type Emulation, type UAClientHints } from '../../../protocol/protocol.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { Realm } from '../script/Realm.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { BrowsingContextStorage } from './BrowsingContextStorage.js'; -export declare class BrowsingContextImpl { - #private; - static readonly LOGGER_PREFIX: "debug:browsingContext"; - readonly userContext: string; - private constructor(); - static create(id: BrowsingContext.BrowsingContext, parentId: BrowsingContext.BrowsingContext | null, userContext: string, cdpTarget: CdpTarget, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, configStorage: ContextConfigStorage, url: string, originalOpener?: string, logger?: LoggerFn): BrowsingContextImpl; - /** - * @see https://html.spec.whatwg.org/multipage/document-sequences.html#navigable - */ - get navigableId(): string | undefined; - get navigationId(): string; - dispose(emitContextDestroyed: boolean): void; - /** Returns the ID of this context. */ - get id(): BrowsingContext.BrowsingContext; - /** Returns the parent context ID. */ - get parentId(): BrowsingContext.BrowsingContext | null; - /** Sets the parent context ID and updates parent's children. */ - set parentId(parentId: BrowsingContext.BrowsingContext | null); - /** Returns the parent context. */ - get parent(): BrowsingContextImpl | null; - /** Returns all direct children contexts. */ - get directChildren(): BrowsingContextImpl[]; - /** Returns all children contexts, flattened. */ - get allChildren(): BrowsingContextImpl[]; - /** - * Returns true if this is a top-level context. - * This is the case whenever the parent context ID is null. - */ - isTopLevelContext(): boolean; - get top(): BrowsingContextImpl; - addChild(childId: BrowsingContext.BrowsingContext): void; - get cdpTarget(): CdpTarget; - updateCdpTarget(cdpTarget: CdpTarget): void; - get url(): string; - lifecycleLoaded(): Promise; - targetUnblockedOrThrow(): Promise; - /** Returns a sandbox for internal helper scripts which is not exposed to the user.*/ - getOrCreateHiddenSandbox(): Promise; - /** Returns a sandbox which is exposed to user. */ - getOrCreateUserSandbox(sandbox: string | undefined): Promise; - /** - * Implements https://w3c.github.io/webdriver-bidi/#get-the-navigable-info. - */ - serializeToBidiValue(maxDepth?: number | null, addParentField?: boolean): BrowsingContext.Info; - onTargetInfoChanged(params: Protocol.Target.TargetInfoChangedEvent): void; - navigate(url: string, wait: BrowsingContext.ReadinessState): Promise; - reload(ignoreCache: boolean, wait: BrowsingContext.ReadinessState): Promise; - setViewport(viewport: BrowsingContext.Viewport | null, devicePixelRatio: number | null, screenOrientation: Emulation.ScreenOrientation | null): Promise; - handleUserPrompt(accept?: boolean, userText?: string): Promise; - activate(): Promise; - captureScreenshot(params: BrowsingContext.CaptureScreenshotParameters): Promise; - print(params: BrowsingContext.PrintParameters): Promise; - close(): Promise; - traverseHistory(delta: number): Promise; - toggleModulesIfNeeded(): Promise; - locateNodes(params: BrowsingContext.LocateNodesParameters): Promise; - setTimezoneOverride(timezone: string | null): Promise; - setLocaleOverride(locale: string | null): Promise; - setGeolocationOverride(geolocation: Emulation.GeolocationCoordinates | Emulation.GeolocationPositionError | null): Promise; - setScriptingEnabled(scriptingEnabled: false | null): Promise; - setUserAgentAndAcceptLanguage(userAgent: string | null | undefined, acceptLanguage: string | null | undefined, clientHints: UAClientHints.UserAgentClientHints.ClientHintsMetadata | null | undefined): Promise; - setEmulatedNetworkConditions(networkConditions: Emulation.NetworkConditions | null): Promise; - setTouchOverride(maxTouchPoints: number | null): Promise; - setExtraHeaders(cdpExtraHeaders: Protocol.Network.Headers): Promise>; -} -export declare function serializeOrigin(origin: string): string; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.js deleted file mode 100644 index c6f083f..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.js +++ /dev/null @@ -1,1458 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var _a; -import { ChromiumBidi, InvalidArgumentException, InvalidSelectorException, NoSuchElementException, NoSuchFrameException, NoSuchHistoryEntryException, UnableToCaptureScreenException, UnknownErrorException, UnsupportedOperationException, } from '../../../protocol/protocol.js'; -import { assert } from '../../../utils/assert.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import { LogType } from '../../../utils/log.js'; -import { getTimestamp } from '../../../utils/time.js'; -import { inchesFromCm } from '../../../utils/unitConversions.js'; -import { uuidv4 } from '../../../utils/uuid.js'; -import { getSharedId } from '../script/SharedId.js'; -import { WindowRealm } from '../script/WindowRealm.js'; -import { NavigationResult, NavigationTracker, } from './NavigationTracker.js'; -export class BrowsingContextImpl { - static LOGGER_PREFIX = `${LogType.debug}:browsingContext`; - /** Direct children browsing contexts. */ - #children = new Set(); - /** The ID of this browsing context. */ - #id; - userContext; - // Used for running helper scripts. - #hiddenSandbox = uuidv4(); - #downloadIdToUrlMap = new Map(); - /** - * The ID of the parent browsing context. - * If null, this is a top-level context. - */ - #loaderId; - #parentId = null; - #originalOpener; - #lifecycle = { - DOMContentLoaded: new Deferred(), - load: new Deferred(), - }; - #cdpTarget; - #defaultRealmDeferred = new Deferred(); - #browsingContextStorage; - #eventManager; - #logger; - #navigationTracker; - #realmStorage; - #configStorage; - // Set when the user prompt is opened. Required to provide the type in closing event. - #lastUserPromptType; - constructor(id, parentId, userContext, cdpTarget, eventManager, browsingContextStorage, realmStorage, configStorage, url, originalOpener, logger) { - this.#cdpTarget = cdpTarget; - this.#id = id; - this.#parentId = parentId; - this.userContext = userContext; - this.#eventManager = eventManager; - this.#browsingContextStorage = browsingContextStorage; - this.#realmStorage = realmStorage; - this.#configStorage = configStorage; - this.#logger = logger; - this.#originalOpener = originalOpener; - // Register helper realm as hidden, so that it will not be reported to the user. - this.#realmStorage.hiddenSandboxes.add(this.#hiddenSandbox); - this.#navigationTracker = new NavigationTracker(url, id, eventManager, logger); - } - static create(id, parentId, userContext, cdpTarget, eventManager, browsingContextStorage, realmStorage, configStorage, url, originalOpener, logger) { - const context = new _a(id, parentId, userContext, cdpTarget, eventManager, browsingContextStorage, realmStorage, configStorage, url, originalOpener, logger); - context.#initListeners(); - browsingContextStorage.addContext(context); - if (!context.isTopLevelContext()) { - context.parent.addChild(context.id); - } - // Hold on the `contextCreated` event until the target is unblocked. This is required, - // as the parent of the context can be set later in case of reconnecting to an - // existing browser instance + OOPiF. - eventManager.registerPromiseEvent(context.targetUnblockedOrThrow().then(() => { - return { - kind: 'success', - value: { - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.ContextCreated, - params: { - ...context.serializeToBidiValue(), - // Hack to provide the initial URL of the context, as it can be changed - // between the page target is attached and unblocked, as the page is not - // fully paused in MPArch session (https://crbug.com/372842894). - // TODO: remove once https://crbug.com/372842894 is addressed. - url, - }, - }, - }; - }, (error) => { - return { - kind: 'error', - error, - }; - }), context.id, ChromiumBidi.BrowsingContext.EventNames.ContextCreated); - return context; - } - /** - * @see https://html.spec.whatwg.org/multipage/document-sequences.html#navigable - */ - get navigableId() { - return this.#loaderId; - } - get navigationId() { - return this.#navigationTracker.currentNavigationId; - } - dispose(emitContextDestroyed) { - this.#navigationTracker.dispose(); - this.#realmStorage.deleteRealms({ - browsingContextId: this.id, - }); - // Delete context from the parent. - if (!this.isTopLevelContext()) { - this.parent.#children.delete(this.id); - } - // Fail all ongoing navigations. - this.#failLifecycleIfNotFinished(); - if (emitContextDestroyed) { - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.ContextDestroyed, - params: this.serializeToBidiValue(null), - }, this.id); - } - // Dispose children after the events are emitted. - this.#deleteAllChildren(); - this.#eventManager.clearBufferedEvents(this.id); - this.#browsingContextStorage.deleteContextById(this.id); - } - /** Returns the ID of this context. */ - get id() { - return this.#id; - } - /** Returns the parent context ID. */ - get parentId() { - return this.#parentId; - } - /** Sets the parent context ID and updates parent's children. */ - set parentId(parentId) { - if (this.#parentId !== null) { - this.#logger?.(LogType.debugError, 'Parent context already set'); - // Cannot do anything except logging, as throwing will stop event processing. So - // just return, - return; - } - this.#parentId = parentId; - if (!this.isTopLevelContext()) { - this.parent.addChild(this.id); - } - } - /** Returns the parent context. */ - get parent() { - if (this.parentId === null) { - return null; - } - return this.#browsingContextStorage.getContext(this.parentId); - } - /** Returns all direct children contexts. */ - get directChildren() { - return [...this.#children].map((id) => this.#browsingContextStorage.getContext(id)); - } - /** Returns all children contexts, flattened. */ - get allChildren() { - const children = this.directChildren; - return children.concat(...children.map((child) => child.allChildren)); - } - /** - * Returns true if this is a top-level context. - * This is the case whenever the parent context ID is null. - */ - isTopLevelContext() { - return this.#parentId === null; - } - get top() { - // eslint-disable-next-line @typescript-eslint/no-this-alias - let topContext = this; - let parent = topContext.parent; - while (parent) { - topContext = parent; - parent = topContext.parent; - } - return topContext; - } - addChild(childId) { - this.#children.add(childId); - } - #deleteAllChildren(emitContextDestroyed = false) { - this.directChildren.map((child) => child.dispose(emitContextDestroyed)); - } - get cdpTarget() { - return this.#cdpTarget; - } - updateCdpTarget(cdpTarget) { - this.#cdpTarget = cdpTarget; - this.#initListeners(); - } - get url() { - return this.#navigationTracker.url; - } - async lifecycleLoaded() { - await this.#lifecycle.load; - } - async targetUnblockedOrThrow() { - const result = await this.#cdpTarget.unblocked; - if (result.kind === 'error') { - throw result.error; - } - } - /** Returns a sandbox for internal helper scripts which is not exposed to the user.*/ - async getOrCreateHiddenSandbox() { - return await this.#getOrCreateSandboxInternal(this.#hiddenSandbox); - } - /** Returns a sandbox which is exposed to user. */ - async getOrCreateUserSandbox(sandbox) { - const realm = await this.#getOrCreateSandboxInternal(sandbox); - if (realm.isHidden()) { - throw new NoSuchFrameException(`Realm "${sandbox}" not found`); - } - return realm; - } - async #getOrCreateSandboxInternal(sandbox) { - if (sandbox === undefined || sandbox === '') { - // Default realm is not guaranteed to be created at this point, so return a deferred. - return await this.#defaultRealmDeferred; - } - let maybeSandboxes = this.#realmStorage.findRealms({ - browsingContextId: this.id, - sandbox, - }); - if (maybeSandboxes.length === 0) { - await this.#cdpTarget.cdpClient.sendCommand('Page.createIsolatedWorld', { - frameId: this.id, - worldName: sandbox, - }); - // `Runtime.executionContextCreated` should be emitted by the time the - // previous command is done. - maybeSandboxes = this.#realmStorage.findRealms({ - browsingContextId: this.id, - sandbox, - }); - assert(maybeSandboxes.length !== 0); - } - // It's possible for more than one sandbox to be created due to provisional - // frames. In this case, it's always the first one (i.e. the oldest one) - // that is more relevant since the user may have set that one up already - // through evaluation. - return maybeSandboxes[0]; - } - /** - * Implements https://w3c.github.io/webdriver-bidi/#get-the-navigable-info. - */ - serializeToBidiValue(maxDepth = 0, addParentField = true) { - return { - context: this.#id, - url: this.url, - userContext: this.userContext, - originalOpener: this.#originalOpener ?? null, - clientWindow: `${this.cdpTarget.windowId}`, - children: maxDepth === null || maxDepth > 0 - ? this.directChildren.map((c) => c.serializeToBidiValue(maxDepth === null ? maxDepth : maxDepth - 1, false)) - : null, - ...(addParentField ? { parent: this.#parentId } : {}), - }; - } - onTargetInfoChanged(params) { - this.#navigationTracker.onTargetInfoChanged(params.targetInfo.url); - } - #initListeners() { - this.#cdpTarget.cdpClient.on('Network.loadingFailed', (params) => { - // Detect navigation errors like `net::ERR_BLOCKED_BY_RESPONSE`. - // Network related to navigation has request id equals to navigation's loader id. - this.#navigationTracker.networkLoadingFailed(params.requestId, params.errorText); - }); - this.#cdpTarget.cdpClient.on('Page.fileChooserOpened', (params) => { - if (this.id !== params.frameId) { - return; - } - if (this.#loaderId === undefined) { - this.#logger?.(LogType.debugError, 'LoaderId should be defined when file upload is shown', params); - return; - } - const element = params.backendNodeId === undefined - ? undefined - : { - sharedId: getSharedId(this.id, this.#loaderId, params.backendNodeId), - }; - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.Input.EventNames.FileDialogOpened, - params: { - context: this.id, - multiple: params.mode === 'selectMultiple', - element, - }, - }, this.id); - }); - this.#cdpTarget.cdpClient.on('Page.frameNavigated', (params) => { - if (this.id !== params.frame.id) { - return; - } - this.#navigationTracker.frameNavigated(params.frame.url + (params.frame.urlFragment ?? ''), params.frame.loaderId, - // `unreachableUrl` indicates if the navigation failed. - params.frame.unreachableUrl); - // At the point the page is initialized, all the nested iframes from the - // previous page are detached and realms are destroyed. - // Delete children from context. - this.#deleteAllChildren(); - this.#documentChanged(params.frame.loaderId); - }); - this.#cdpTarget.cdpClient.on('Page.frameStartedNavigating', (params) => { - if (this.id !== params.frameId) { - return; - } - this.#navigationTracker.frameStartedNavigating(params.url, params.loaderId, params.navigationType); - }); - this.#cdpTarget.cdpClient.on('Page.navigatedWithinDocument', (params) => { - if (this.id !== params.frameId) { - return; - } - this.#navigationTracker.navigatedWithinDocument(params.url, params.navigationType); - if (params.navigationType === 'historyApi') { - this.#eventManager.registerEvent({ - type: 'event', - method: 'browsingContext.historyUpdated', - params: { - context: this.id, - timestamp: getTimestamp(), - url: this.#navigationTracker.url, - }, - }, this.id); - return; - } - }); - this.#cdpTarget.cdpClient.on('Page.lifecycleEvent', (params) => { - if (this.id !== params.frameId) { - return; - } - if (params.name === 'init') { - this.#documentChanged(params.loaderId); - return; - } - if (params.name === 'commit') { - this.#loaderId = params.loaderId; - return; - } - // If mapper attached to the page late, it might miss init and - // commit events. In that case, save the first loaderId for this - // frameId. - if (!this.#loaderId) { - this.#loaderId = params.loaderId; - } - // Ignore event from not current navigation. - if (params.loaderId !== this.#loaderId) { - return; - } - switch (params.name) { - case 'DOMContentLoaded': - if (!this.#navigationTracker.isInitialNavigation) { - // Do not emit for the initial navigation. - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.DomContentLoaded, - params: { - context: this.id, - navigation: this.#navigationTracker.currentNavigationId, - timestamp: getTimestamp(), - url: this.#navigationTracker.url, - }, - }, this.id); - } - this.#lifecycle.DOMContentLoaded.resolve(); - break; - case 'load': - if (!this.#navigationTracker.isInitialNavigation) { - // Do not emit for the initial navigation. - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.Load, - params: { - context: this.id, - navigation: this.#navigationTracker.currentNavigationId, - timestamp: getTimestamp(), - url: this.#navigationTracker.url, - }, - }, this.id); - } - // The initial navigation is finished. - this.#navigationTracker.loadPageEvent(params.loaderId); - this.#lifecycle.load.resolve(); - break; - } - }); - this.#cdpTarget.cdpClient.on('Runtime.executionContextCreated', (params) => { - const { auxData, name, uniqueId, id } = params.context; - if (!auxData || auxData.frameId !== this.id) { - return; - } - if (auxData.type === 'isolated' && name === '') { - // This is an internal isolated realm and it is not expected to be exposed to - // WebDriver BiDi users. Ignore it. - return; - } - let origin; - let sandbox; - // Only these execution contexts are supported for now. - switch (auxData.type) { - case 'isolated': - sandbox = name; - // Sandbox should have the same origin as the context itself, but in CDP - // it has an empty one. - if (!this.#defaultRealmDeferred.isFinished) { - this.#logger?.(LogType.debugError, 'Unexpectedly, isolated realm created before the default one'); - } - origin = this.#defaultRealmDeferred.isFinished - ? this.#defaultRealmDeferred.result.origin - : // This fallback is not expected to be ever reached. - ''; - break; - case 'default': - origin = serializeOrigin(params.context.origin); - break; - default: - return; - } - const realm = new WindowRealm(this.id, this.#browsingContextStorage, this.#cdpTarget.cdpClient, this.#eventManager, id, this.#logger, origin, uniqueId, this.#realmStorage, sandbox); - if (auxData.isDefault) { - this.#defaultRealmDeferred.resolve(realm); - // Initialize ChannelProxy listeners for all the channels of all the - // preload scripts related to this BrowsingContext. - // TODO: extend for not default realms by the sandbox name. - void Promise.all(this.#cdpTarget - .getChannels() - .map((channel) => channel.startListenerFromWindow(realm, this.#eventManager))); - } - }); - this.#cdpTarget.cdpClient.on('Runtime.executionContextDestroyed', (params) => { - if (this.#defaultRealmDeferred.isFinished && - this.#defaultRealmDeferred.result.executionContextId === - params.executionContextId) { - this.#defaultRealmDeferred = new Deferred(); - } - this.#realmStorage.deleteRealms({ - cdpSessionId: this.#cdpTarget.cdpSessionId, - executionContextId: params.executionContextId, - }); - }); - this.#cdpTarget.cdpClient.on('Runtime.executionContextsCleared', () => { - if (!this.#defaultRealmDeferred.isFinished) { - this.#defaultRealmDeferred.reject(new UnknownErrorException('execution contexts cleared')); - } - this.#defaultRealmDeferred = new Deferred(); - this.#realmStorage.deleteRealms({ - cdpSessionId: this.#cdpTarget.cdpSessionId, - }); - }); - this.#cdpTarget.cdpClient.on('Page.javascriptDialogClosed', (params) => { - // Checking for `params.frameId` for comptaibility with Chrome - // versions that do not have a frameId. TODO: remove once - // https://crrev.com/c/6487891 is in stable. - if (params.frameId && this.id !== params.frameId) { - return; - } - if (!params.frameId && - this.#parentId && - this.#cdpTarget.cdpClient !== - this.#browsingContextStorage.getContext(this.#parentId)?.cdpTarget - .cdpClient) { - // If CDP event `Page.javascriptDialogClosed` does not have a frameId, this - // heuristic emits the event only for top-level per-cdp target context, ignoring - // the event for same-process iframes. So the event will be emitted only once per - // CDP target. TODO: remove once https://crrev.com/c/6487891 is in stable. - return; - } - const accepted = params.result; - if (this.#lastUserPromptType === undefined) { - this.#logger?.(LogType.debugError, 'Unexpectedly no opening prompt event before closing one'); - } - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.UserPromptClosed, - params: { - context: this.id, - accepted, - // `lastUserPromptType` should never be undefined here, so fallback to - // `UNKNOWN`. The fallback is required to prevent tests from hanging while - // waiting for the closing event. The cast is required, as the `UNKNOWN` value - // is not standard. - type: this.#lastUserPromptType ?? - 'UNKNOWN', - userText: accepted && params.userInput ? params.userInput : undefined, - }, - }, this.id); - this.#lastUserPromptType = undefined; - }); - this.#cdpTarget.cdpClient.on('Page.javascriptDialogOpening', (params) => { - // Checking for `params.frameId` for comptaibility with Chrome - // versions that do not have a frameId. TODO: remove once - // https://crrev.com/c/6487891 is in stable. - if (params.frameId && this.id !== params.frameId) { - return; - } - if (!params.frameId && - this.#parentId && - this.#cdpTarget.cdpClient !== - this.#browsingContextStorage.getContext(this.#parentId)?.cdpTarget - .cdpClient) { - // If CDP event `Page.javascriptDialogClosed` does not have a frameId, this - // heuristic emits the event only for top-level per-cdp target context, ignoring - // the event for same-process iframes. So the event will be emitted only once per - // CDP target. TODO: remove once https://crrev.com/c/6487891 is in stable. - return; - } - const promptType = _a.#getPromptType(params.type); - // Set the last prompt type to provide it in closing event. - this.#lastUserPromptType = promptType; - const promptHandler = this.#getPromptHandler(promptType); - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.UserPromptOpened, - params: { - context: this.id, - handler: promptHandler, - type: promptType, - message: params.message, - ...(params.type === 'prompt' - ? { defaultValue: params.defaultPrompt } - : {}), - }, - }, this.id); - switch (promptHandler) { - // Based on `unhandledPromptBehavior`, check if the prompt should be handled - // automatically (`accept`, `dismiss`) or wait for the user to do it. - case "accept" /* Session.UserPromptHandlerType.Accept */: - void this.handleUserPrompt(true); - break; - case "dismiss" /* Session.UserPromptHandlerType.Dismiss */: - void this.handleUserPrompt(false); - break; - case "ignore" /* Session.UserPromptHandlerType.Ignore */: - break; - } - }); - this.#cdpTarget.browserCdpClient.on('Browser.downloadWillBegin', (params) => { - if (this.id !== params.frameId) { - return; - } - this.#downloadIdToUrlMap.set(params.guid, params.url); - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.DownloadWillBegin, - params: { - context: this.id, - suggestedFilename: params.suggestedFilename, - navigation: params.guid, - timestamp: getTimestamp(), - url: params.url, - }, - }, this.id); - }); - this.#cdpTarget.browserCdpClient.on('Browser.downloadProgress', (params) => { - if (!this.#downloadIdToUrlMap.has(params.guid)) { - // The event is not related to this browsing context. - return; - } - if (params.state === 'inProgress') { - // No need in reporting progress. - return; - } - const url = this.#downloadIdToUrlMap.get(params.guid); - switch (params.state) { - case 'canceled': - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.DownloadEnd, - params: { - status: 'canceled', - context: this.id, - navigation: params.guid, - timestamp: getTimestamp(), - url, - }, - }, this.id); - break; - case 'completed': - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.DownloadEnd, - params: { - filepath: params.filePath ?? null, - status: 'complete', - context: this.id, - navigation: params.guid, - timestamp: getTimestamp(), - url, - }, - }, this.id); - break; - default: - // Unreachable. - throw new UnknownErrorException(`Unknown download state: ${params.state}`); - } - }); - } - static #getPromptType(cdpType) { - switch (cdpType) { - case 'alert': - return "alert" /* BrowsingContext.UserPromptType.Alert */; - case 'beforeunload': - return "beforeunload" /* BrowsingContext.UserPromptType.Beforeunload */; - case 'confirm': - return "confirm" /* BrowsingContext.UserPromptType.Confirm */; - case 'prompt': - return "prompt" /* BrowsingContext.UserPromptType.Prompt */; - } - } - /** - * Returns either custom UserContext's prompt handler, global or default one. - */ - #getPromptHandler(promptType) { - const defaultPromptHandler = "dismiss" /* Session.UserPromptHandlerType.Dismiss */; - const contextConfig = this.#configStorage.getActiveConfig(this.top.id, this.userContext); - switch (promptType) { - case "alert" /* BrowsingContext.UserPromptType.Alert */: - return (contextConfig.userPromptHandler?.alert ?? - contextConfig.userPromptHandler?.default ?? - defaultPromptHandler); - case "beforeunload" /* BrowsingContext.UserPromptType.Beforeunload */: - return (contextConfig.userPromptHandler?.beforeUnload ?? - contextConfig.userPromptHandler?.default ?? - "accept" /* Session.UserPromptHandlerType.Accept */); - case "confirm" /* BrowsingContext.UserPromptType.Confirm */: - return (contextConfig.userPromptHandler?.confirm ?? - contextConfig.userPromptHandler?.default ?? - defaultPromptHandler); - case "prompt" /* BrowsingContext.UserPromptType.Prompt */: - return (contextConfig.userPromptHandler?.prompt ?? - contextConfig.userPromptHandler?.default ?? - defaultPromptHandler); - } - } - #documentChanged(loaderId) { - if (loaderId === undefined || this.#loaderId === loaderId) { - return; - } - // Document changed. - this.#resetLifecycleIfFinished(); - this.#loaderId = loaderId; - // Delete all child iframes and notify about top level destruction. - this.#deleteAllChildren(true); - } - #resetLifecycleIfFinished() { - if (this.#lifecycle.DOMContentLoaded.isFinished) { - this.#lifecycle.DOMContentLoaded = new Deferred(); - } - else { - this.#logger?.(_a.LOGGER_PREFIX, 'Document changed (DOMContentLoaded)'); - } - if (this.#lifecycle.load.isFinished) { - this.#lifecycle.load = new Deferred(); - } - else { - this.#logger?.(_a.LOGGER_PREFIX, 'Document changed (load)'); - } - } - #failLifecycleIfNotFinished() { - if (!this.#lifecycle.DOMContentLoaded.isFinished) { - this.#lifecycle.DOMContentLoaded.reject(new UnknownErrorException('navigation canceled')); - } - if (!this.#lifecycle.load.isFinished) { - this.#lifecycle.load.reject(new UnknownErrorException('navigation canceled')); - } - } - async navigate(url, wait) { - try { - new URL(url); - } - catch { - throw new InvalidArgumentException(`Invalid URL: ${url}`); - } - const navigationState = this.#navigationTracker.createPendingNavigation(url); - // Navigate and wait for the result. If the navigation fails, the error event is - // emitted and the promise is rejected. - const cdpNavigatePromise = (async () => { - const cdpNavigateResult = await this.#cdpTarget.cdpClient.sendCommand('Page.navigate', { - url, - frameId: this.id, - }); - if (cdpNavigateResult.errorText) { - // If navigation failed, no pending navigation is left. - this.#navigationTracker.failNavigation(navigationState, cdpNavigateResult.errorText); - throw new UnknownErrorException(cdpNavigateResult.errorText); - } - this.#navigationTracker.navigationCommandFinished(navigationState, cdpNavigateResult.loaderId); - this.#documentChanged(cdpNavigateResult.loaderId); - })(); - // Wait for either the navigation is finished or canceled by another navigation. - const result = await Promise.race([ - // No `loaderId` means same-document navigation. - this.#waitNavigation(wait, cdpNavigatePromise, navigationState), - // Throw an error if the navigation is canceled. - navigationState.finished, - ]); - if (result instanceof NavigationResult) { - if ( - // TODO: check after decision on the spec is done: - // https://github.com/w3c/webdriver-bidi/issues/799. - result.eventName === "browsingContext.navigationAborted" /* NavigationEventName.NavigationAborted */ || - result.eventName === "browsingContext.navigationFailed" /* NavigationEventName.NavigationFailed */) { - throw new UnknownErrorException(result.message ?? 'unknown exception'); - } - } - return { - navigation: navigationState.navigationId, - // Url can change due to redirects. Get the one from commandNavigation. - url: navigationState.url, - }; - } - async #waitNavigation(wait, cdpCommandPromise, navigationState) { - await Promise.all([navigationState.committed, cdpCommandPromise]); - if (wait === "none" /* BrowsingContext.ReadinessState.None */) { - return; - } - if (navigationState.isFragmentNavigation === true) { - // After the cdp command is finished, the `fragmentNavigation` should be already - // settled. If it's the fragment navigation, wait for the `navigationStatus` to be - // finished, which happens after the fragment navigation happened. No need to wait for - // DOM events. - await navigationState.finished; - return; - } - if (wait === "interactive" /* BrowsingContext.ReadinessState.Interactive */) { - await this.#lifecycle.DOMContentLoaded; - return; - } - if (wait === "complete" /* BrowsingContext.ReadinessState.Complete */) { - await this.#lifecycle.load; - return; - } - throw new InvalidArgumentException(`Wait condition ${wait} is not supported`); - } - // TODO: support concurrent navigations analogous to `navigate`. - async reload(ignoreCache, wait) { - await this.targetUnblockedOrThrow(); - this.#resetLifecycleIfFinished(); - const navigationState = this.#navigationTracker.createPendingNavigation(this.#navigationTracker.url); - const cdpReloadPromise = this.#cdpTarget.cdpClient.sendCommand('Page.reload', { - ignoreCache, - }); - // Wait for either the navigation is finished or canceled by another navigation. - const result = await Promise.race([ - // No `loaderId` means same-document navigation. - this.#waitNavigation(wait, cdpReloadPromise, navigationState), - // Throw an error if the navigation is canceled. - navigationState.finished, - ]); - if (result instanceof NavigationResult) { - if (result.eventName === "browsingContext.navigationAborted" /* NavigationEventName.NavigationAborted */ || - result.eventName === "browsingContext.navigationFailed" /* NavigationEventName.NavigationFailed */) { - throw new UnknownErrorException(result.message ?? 'unknown exception'); - } - } - return { - navigation: navigationState.navigationId, - // Url can change due to redirects. Get the one from commandNavigation. - url: navigationState.url, - }; - } - async setViewport(viewport, devicePixelRatio, screenOrientation) { - // Set the target's viewport. - const config = this.#configStorage.getActiveConfig(this.id, this.userContext); - await this.cdpTarget.setDeviceMetricsOverride(viewport, devicePixelRatio, screenOrientation, config.screenArea ?? null); - } - async handleUserPrompt(accept, userText) { - await this.top.#cdpTarget.cdpClient.sendCommand('Page.handleJavaScriptDialog', { - accept: accept ?? true, - promptText: userText, - }); - } - async activate() { - await this.#cdpTarget.cdpClient.sendCommand('Page.bringToFront'); - } - async captureScreenshot(params) { - if (!this.isTopLevelContext()) { - throw new UnsupportedOperationException(`Non-top-level 'context' (${params.context}) is currently not supported`); - } - const formatParameters = getImageFormatParameters(params); - let captureBeyondViewport = false; - let script; - params.origin ??= 'viewport'; - switch (params.origin) { - case 'document': { - script = String(() => { - const element = document.documentElement; - return { - x: 0, - y: 0, - width: element.scrollWidth, - height: element.scrollHeight, - }; - }); - captureBeyondViewport = true; - break; - } - case 'viewport': { - script = String(() => { - const viewport = window.visualViewport; - return { - x: viewport.pageLeft, - y: viewport.pageTop, - width: viewport.width, - height: viewport.height, - }; - }); - break; - } - } - const hiddenSandboxRealm = await this.getOrCreateHiddenSandbox(); - const originResult = await hiddenSandboxRealm.callFunction(script, false); - assert(originResult.type === 'success'); - const origin = deserializeDOMRect(originResult.result); - assert(origin); - let rect = origin; - if (params.clip) { - const clip = params.clip; - if (params.origin === 'viewport' && clip.type === 'box') { - // For viewport origin, the clip is relative to the viewport, while the CDP - // screenshot is relative to the document. So correction for the viewport position - // is required. - clip.x += origin.x; - clip.y += origin.y; - } - rect = getIntersectionRect(await this.#parseRect(clip), origin); - } - if (rect.width === 0 || rect.height === 0) { - throw new UnableToCaptureScreenException(`Unable to capture screenshot with zero dimensions: width=${rect.width}, height=${rect.height}`); - } - return await this.#cdpTarget.cdpClient.sendCommand('Page.captureScreenshot', { - clip: { ...rect, scale: 1.0 }, - ...formatParameters, - captureBeyondViewport, - }); - } - async print(params) { - if (!this.isTopLevelContext()) { - throw new UnsupportedOperationException('Printing of non-top level contexts is not supported'); - } - const cdpParams = {}; - if (params.background !== undefined) { - cdpParams.printBackground = params.background; - } - if (params.margin?.bottom !== undefined) { - cdpParams.marginBottom = inchesFromCm(params.margin.bottom); - } - if (params.margin?.left !== undefined) { - cdpParams.marginLeft = inchesFromCm(params.margin.left); - } - if (params.margin?.right !== undefined) { - cdpParams.marginRight = inchesFromCm(params.margin.right); - } - if (params.margin?.top !== undefined) { - cdpParams.marginTop = inchesFromCm(params.margin.top); - } - if (params.orientation !== undefined) { - cdpParams.landscape = params.orientation === 'landscape'; - } - if (params.page?.height !== undefined) { - cdpParams.paperHeight = inchesFromCm(params.page.height); - } - if (params.page?.width !== undefined) { - cdpParams.paperWidth = inchesFromCm(params.page.width); - } - if (params.pageRanges !== undefined) { - for (const range of params.pageRanges) { - if (typeof range === 'number') { - continue; - } - const rangeParts = range.split('-'); - if (rangeParts.length < 1 || rangeParts.length > 2) { - throw new InvalidArgumentException(`Invalid page range: ${range} is not a valid integer range.`); - } - if (rangeParts.length === 1) { - void parseInteger(rangeParts[0] ?? ''); - continue; - } - let lowerBound; - let upperBound; - const [rangeLowerPart = '', rangeUpperPart = ''] = rangeParts; - if (rangeLowerPart === '') { - lowerBound = 1; - } - else { - lowerBound = parseInteger(rangeLowerPart); - } - if (rangeUpperPart === '') { - upperBound = Number.MAX_SAFE_INTEGER; - } - else { - upperBound = parseInteger(rangeUpperPart); - } - if (lowerBound > upperBound) { - throw new InvalidArgumentException(`Invalid page range: ${rangeLowerPart} > ${rangeUpperPart}`); - } - } - cdpParams.pageRanges = params.pageRanges.join(','); - } - if (params.scale !== undefined) { - cdpParams.scale = params.scale; - } - if (params.shrinkToFit !== undefined) { - cdpParams.preferCSSPageSize = !params.shrinkToFit; - } - try { - const result = await this.#cdpTarget.cdpClient.sendCommand('Page.printToPDF', cdpParams); - return { - data: result.data, - }; - } - catch (error) { - // Effectively zero dimensions. - if (error.message === - 'invalid print parameters: content area is empty') { - throw new UnsupportedOperationException(error.message); - } - throw error; - } - } - /** - * See - * https://w3c.github.io/webdriver-bidi/#:~:text=If%20command%20parameters%20contains%20%22clip%22%3A - */ - async #parseRect(clip) { - switch (clip.type) { - case 'box': - return { x: clip.x, y: clip.y, width: clip.width, height: clip.height }; - case 'element': { - const hiddenSandboxRealm = await this.getOrCreateHiddenSandbox(); - const result = await hiddenSandboxRealm.callFunction(String((element) => { - return element instanceof Element; - }), false, { type: 'undefined' }, [clip.element]); - if (result.type === 'exception') { - throw new NoSuchElementException(`Element '${clip.element.sharedId}' was not found`); - } - assert(result.result.type === 'boolean'); - if (!result.result.value) { - throw new NoSuchElementException(`Node '${clip.element.sharedId}' is not an Element`); - } - { - const result = await hiddenSandboxRealm.callFunction(String((element) => { - const rect = element.getBoundingClientRect(); - return { - x: rect.x, - y: rect.y, - height: rect.height, - width: rect.width, - }; - }), false, { type: 'undefined' }, [clip.element]); - assert(result.type === 'success'); - const rect = deserializeDOMRect(result.result); - if (!rect) { - throw new UnableToCaptureScreenException(`Could not get bounding box for Element '${clip.element.sharedId}'`); - } - return rect; - } - } - } - } - async close() { - await this.#cdpTarget.cdpClient.sendCommand('Page.close'); - } - async traverseHistory(delta) { - if (delta === 0) { - return; - } - const history = await this.#cdpTarget.cdpClient.sendCommand('Page.getNavigationHistory'); - const entry = history.entries[history.currentIndex + delta]; - if (!entry) { - throw new NoSuchHistoryEntryException(`No history entry at delta ${delta}`); - } - await this.#cdpTarget.cdpClient.sendCommand('Page.navigateToHistoryEntry', { - entryId: entry.id, - }); - } - async toggleModulesIfNeeded() { - await Promise.all([ - this.#cdpTarget.toggleNetworkIfNeeded(), - this.#cdpTarget.toggleDeviceAccessIfNeeded(), - this.#cdpTarget.togglePreloadIfNeeded(), - ]); - } - async locateNodes(params) { - // TODO: create a dedicated sandbox instead of `#defaultRealm`. - return await this.#locateNodesByLocator(await this.#defaultRealmDeferred, params.locator, params.startNodes ?? [], params.maxNodeCount, params.serializationOptions); - } - async #getLocatorDelegate(realm, locator, maxNodeCount, startNodes) { - switch (locator.type) { - case 'context': - throw new Error('Unreachable'); - case 'css': - return { - functionDeclaration: String((cssSelector, maxNodeCount, ...startNodes) => { - const locateNodesUsingCss = (element) => { - if (!(element instanceof HTMLElement || - element instanceof Document || - element instanceof DocumentFragment || - element instanceof SVGElement)) { - throw new Error('startNodes in css selector should be HTMLElement, SVGElement or Document or DocumentFragment'); - } - return [...element.querySelectorAll(cssSelector)]; - }; - startNodes = startNodes.length > 0 ? startNodes : [document]; - const returnedNodes = startNodes - .map((startNode) => - // TODO: stop search early if `maxNodeCount` is reached. - locateNodesUsingCss(startNode)) - .flat(1); - return maxNodeCount === 0 - ? returnedNodes - : returnedNodes.slice(0, maxNodeCount); - }), - argumentsLocalValues: [ - // `cssSelector` - { type: 'string', value: locator.value }, - // `maxNodeCount` with `0` means no limit. - { type: 'number', value: maxNodeCount ?? 0 }, - // `startNodes` - ...startNodes, - ], - }; - case 'xpath': - return { - functionDeclaration: String((xPathSelector, maxNodeCount, ...startNodes) => { - // https://w3c.github.io/webdriver-bidi/#locate-nodes-using-xpath - const evaluator = new XPathEvaluator(); - const expression = evaluator.createExpression(xPathSelector); - const locateNodesUsingXpath = (element) => { - const xPathResult = expression.evaluate(element, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE); - const returnedNodes = []; - for (let i = 0; i < xPathResult.snapshotLength; i++) { - returnedNodes.push(xPathResult.snapshotItem(i)); - } - return returnedNodes; - }; - startNodes = startNodes.length > 0 ? startNodes : [document]; - const returnedNodes = startNodes - .map((startNode) => - // TODO: stop search early if `maxNodeCount` is reached. - locateNodesUsingXpath(startNode)) - .flat(1); - return maxNodeCount === 0 - ? returnedNodes - : returnedNodes.slice(0, maxNodeCount); - }), - argumentsLocalValues: [ - // `xPathSelector` - { type: 'string', value: locator.value }, - // `maxNodeCount` with `0` means no limit. - { type: 'number', value: maxNodeCount ?? 0 }, - // `startNodes` - ...startNodes, - ], - }; - case 'innerText': - // https://w3c.github.io/webdriver-bidi/#locate-nodes-using-inner-text - if (locator.value === '') { - throw new InvalidSelectorException('innerText locator cannot be empty'); - } - return { - functionDeclaration: String((innerTextSelector, fullMatch, ignoreCase, maxNodeCount, maxDepth, ...startNodes) => { - const searchText = ignoreCase - ? innerTextSelector.toUpperCase() - : innerTextSelector; - const locateNodesUsingInnerText = (node, currentMaxDepth) => { - const returnedNodes = []; - if (node instanceof DocumentFragment || - node instanceof Document) { - const children = [...node.children]; - children.forEach((child) => - // `currentMaxDepth` is not decremented intentionally according to - // https://github.com/w3c/webdriver-bidi/pull/713. - returnedNodes.push(...locateNodesUsingInnerText(child, currentMaxDepth))); - return returnedNodes; - } - if (!(node instanceof HTMLElement)) { - return []; - } - const element = node; - const nodeInnerText = ignoreCase - ? element.innerText?.toUpperCase() - : element.innerText; - if (!nodeInnerText.includes(searchText)) { - return []; - } - const childNodes = []; - for (const child of element.children) { - if (child instanceof HTMLElement) { - childNodes.push(child); - } - } - if (childNodes.length === 0) { - if (fullMatch && nodeInnerText === searchText) { - returnedNodes.push(element); - } - else { - if (!fullMatch) { - // Note: `nodeInnerText.includes(searchText)` is already checked - returnedNodes.push(element); - } - } - } - else { - const childNodeMatches = - // Don't search deeper if `maxDepth` is reached. - currentMaxDepth <= 0 - ? [] - : childNodes - .map((child) => locateNodesUsingInnerText(child, currentMaxDepth - 1)) - .flat(1); - if (childNodeMatches.length === 0) { - // Note: `nodeInnerText.includes(searchText)` is already checked - if (!fullMatch || nodeInnerText === searchText) { - returnedNodes.push(element); - } - } - else { - returnedNodes.push(...childNodeMatches); - } - } - // TODO: stop search early if `maxNodeCount` is reached. - return returnedNodes; - }; - // TODO: stop search early if `maxNodeCount` is reached. - startNodes = startNodes.length > 0 ? startNodes : [document]; - const returnedNodes = startNodes - .map((startNode) => - // TODO: stop search early if `maxNodeCount` is reached. - locateNodesUsingInnerText(startNode, maxDepth)) - .flat(1); - return maxNodeCount === 0 - ? returnedNodes - : returnedNodes.slice(0, maxNodeCount); - }), - argumentsLocalValues: [ - // `innerTextSelector` - { type: 'string', value: locator.value }, - // `fullMatch` with default `true`. - { type: 'boolean', value: locator.matchType !== 'partial' }, - // `ignoreCase` with default `false`. - { type: 'boolean', value: locator.ignoreCase === true }, - // `maxNodeCount` with `0` means no limit. - { type: 'number', value: maxNodeCount ?? 0 }, - // `maxDepth` with default `1000` (same as default full serialization depth). - { type: 'number', value: locator.maxDepth ?? 1000 }, - // `startNodes` - ...startNodes, - ], - }; - case 'accessibility': { - // https://w3c.github.io/webdriver-bidi/#locate-nodes-using-accessibility-attributes - if (!locator.value.name && !locator.value.role) { - throw new InvalidSelectorException('Either name or role has to be specified'); - } - // The next two commands cause a11y caches for the target to be - // preserved. We probably do not need to disable them if the - // client is using a11y features, but we could by calling - // Accessibility.disable. - await Promise.all([ - this.#cdpTarget.cdpClient.sendCommand('Accessibility.enable'), - this.#cdpTarget.cdpClient.sendCommand('Accessibility.getRootAXNode'), - ]); - const bindings = await realm.evaluate( - /* expression=*/ '({getAccessibleName, getAccessibleRole})', - /* awaitPromise=*/ false, "root" /* Script.ResultOwnership.Root */, - /* serializationOptions= */ undefined, - /* userActivation=*/ false, - /* includeCommandLineApi=*/ true); - if (bindings.type !== 'success') { - throw new Error('Could not get bindings'); - } - if (bindings.result.type !== 'object') { - throw new Error('Could not get bindings'); - } - return { - functionDeclaration: String((name, role, bindings, maxNodeCount, ...startNodes) => { - const returnedNodes = []; - let aborted = false; - function collect(contextNodes, selector) { - if (aborted) { - return; - } - for (const contextNode of contextNodes) { - let match = true; - if (selector.role) { - const role = bindings.getAccessibleRole(contextNode); - if (selector.role !== role) { - match = false; - } - } - if (selector.name) { - const name = bindings.getAccessibleName(contextNode); - if (selector.name !== name) { - match = false; - } - } - if (match) { - if (maxNodeCount !== 0 && - returnedNodes.length === maxNodeCount) { - aborted = true; - break; - } - returnedNodes.push(contextNode); - } - const childNodes = []; - for (const child of contextNode.children) { - if (child instanceof HTMLElement) { - childNodes.push(child); - } - } - collect(childNodes, selector); - } - } - startNodes = - startNodes.length > 0 - ? startNodes - : Array.from(document.documentElement.children).filter((c) => c instanceof HTMLElement); - collect(startNodes, { - role, - name, - }); - return returnedNodes; - }), - argumentsLocalValues: [ - // `name` - { type: 'string', value: locator.value.name || '' }, - // `role` - { type: 'string', value: locator.value.role || '' }, - // `bindings`. - { handle: bindings.result.handle }, - // `maxNodeCount` with `0` means no limit. - { type: 'number', value: maxNodeCount ?? 0 }, - // `startNodes` - ...startNodes, - ], - }; - } - } - } - async #locateNodesByLocator(realm, locator, startNodes, maxNodeCount, serializationOptions) { - if (locator.type === 'context') { - if (startNodes.length !== 0) { - throw new InvalidArgumentException('Start nodes are not supported'); - } - const contextId = locator.value.context; - if (!contextId) { - throw new InvalidSelectorException('Invalid context'); - } - const context = this.#browsingContextStorage.getContext(contextId); - const parent = context.parent; - if (!parent) { - throw new InvalidArgumentException('This context has no container'); - } - try { - const { backendNodeId } = await parent.#cdpTarget.cdpClient.sendCommand('DOM.getFrameOwner', { - frameId: contextId, - }); - const { object } = await parent.#cdpTarget.cdpClient.sendCommand('DOM.resolveNode', { - backendNodeId, - }); - const locatorResult = await realm.callFunction(`function () { return this; }`, false, { handle: object.objectId }, [], "none" /* Script.ResultOwnership.None */, serializationOptions); - if (locatorResult.type === 'exception') { - throw new Error('Unknown exception'); - } - return { nodes: [locatorResult.result] }; - } - catch { - throw new InvalidArgumentException('Context does not exist'); - } - } - const locatorDelegate = await this.#getLocatorDelegate(realm, locator, maxNodeCount, startNodes); - serializationOptions = { - ...serializationOptions, - // The returned object is an array of nodes, so no need in deeper JS serialization. - maxObjectDepth: 1, - }; - const locatorResult = await realm.callFunction(locatorDelegate.functionDeclaration, false, { type: 'undefined' }, locatorDelegate.argumentsLocalValues, "none" /* Script.ResultOwnership.None */, serializationOptions); - if (locatorResult.type !== 'success') { - this.#logger?.(_a.LOGGER_PREFIX, 'Failed locateNodesByLocator', locatorResult); - // Heuristic to detect invalid selector for different types of selectors. - if ( - // CSS selector. - locatorResult.exceptionDetails.text?.endsWith('is not a valid selector.') || - // XPath selector. - locatorResult.exceptionDetails.text?.endsWith('is not a valid XPath expression.')) { - throw new InvalidSelectorException(`Not valid selector ${typeof locator.value === 'string' ? locator.value : JSON.stringify(locator.value)}`); - } - // Heuristic to detect if the `startNode` is not an `HTMLElement` in css selector. - if (locatorResult.exceptionDetails.text === - 'Error: startNodes in css selector should be HTMLElement, SVGElement or Document or DocumentFragment') { - throw new InvalidArgumentException('startNodes in css selector should be HTMLElement, SVGElement or Document or DocumentFragment'); - } - throw new UnknownErrorException(`Unexpected error in selector script: ${locatorResult.exceptionDetails.text}`); - } - if (locatorResult.result.type !== 'array') { - throw new UnknownErrorException(`Unexpected selector script result type: ${locatorResult.result.type}`); - } - // Check there are no non-node elements in the result. - const nodes = locatorResult.result.value.map((value) => { - if (value.type !== 'node') { - throw new UnknownErrorException(`Unexpected selector script result element: ${value.type}`); - } - return value; - }); - return { nodes }; - } - #getAllRelatedCdpTargets() { - const targets = new Set(); - targets.add(this.cdpTarget); - this.allChildren.forEach((c) => targets.add(c.cdpTarget)); - return Array.from(targets); - } - async setTimezoneOverride(timezone) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setTimezoneOverride(timezone))); - } - async setLocaleOverride(locale) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setLocaleOverride(locale))); - } - async setGeolocationOverride(geolocation) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setGeolocationOverride(geolocation))); - } - async setScriptingEnabled(scriptingEnabled) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setScriptingEnabled(scriptingEnabled))); - } - async setUserAgentAndAcceptLanguage(userAgent, acceptLanguage, clientHints) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setUserAgentAndAcceptLanguage(userAgent, acceptLanguage, clientHints))); - } - async setEmulatedNetworkConditions(networkConditions) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setEmulatedNetworkConditions(networkConditions))); - } - async setTouchOverride(maxTouchPoints) { - await Promise.allSettled(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setTouchOverride(maxTouchPoints))); - } - async setExtraHeaders(cdpExtraHeaders) { - await Promise.all(this.#getAllRelatedCdpTargets().map(async (cdpTarget) => await cdpTarget.setExtraHeaders(cdpExtraHeaders))); - } -} -_a = BrowsingContextImpl; -export function serializeOrigin(origin) { - // https://html.spec.whatwg.org/multipage/origin.html#ascii-serialisation-of-an-origin - if (['://', ''].includes(origin)) { - origin = 'null'; - } - return origin; -} -function getImageFormatParameters(params) { - const { quality, type } = params.format ?? { - type: 'image/png', - }; - switch (type) { - case 'image/png': { - return { format: 'png' }; - } - case 'image/jpeg': { - return { - format: 'jpeg', - ...(quality === undefined ? {} : { quality: Math.round(quality * 100) }), - }; - } - case 'image/webp': { - return { - format: 'webp', - ...(quality === undefined ? {} : { quality: Math.round(quality * 100) }), - }; - } - } - throw new InvalidArgumentException(`Image format '${type}' is not a supported format`); -} -function deserializeDOMRect(result) { - if (result.type !== 'object' || result.value === undefined) { - return; - } - const x = result.value.find(([key]) => { - return key === 'x'; - })?.[1]; - const y = result.value.find(([key]) => { - return key === 'y'; - })?.[1]; - const height = result.value.find(([key]) => { - return key === 'height'; - })?.[1]; - const width = result.value.find(([key]) => { - return key === 'width'; - })?.[1]; - if (x?.type !== 'number' || - y?.type !== 'number' || - height?.type !== 'number' || - width?.type !== 'number') { - return; - } - return { - x: x.value, - y: y.value, - width: width.value, - height: height.value, - }; -} -/** @see https://w3c.github.io/webdriver-bidi/#normalize-rect */ -function normalizeRect(box) { - return { - ...(box.width < 0 - ? { - x: box.x + box.width, - width: -box.width, - } - : { - x: box.x, - width: box.width, - }), - ...(box.height < 0 - ? { - y: box.y + box.height, - height: -box.height, - } - : { - y: box.y, - height: box.height, - }), - }; -} -/** @see https://w3c.github.io/webdriver-bidi/#rectangle-intersection */ -function getIntersectionRect(first, second) { - first = normalizeRect(first); - second = normalizeRect(second); - const x = Math.max(first.x, second.x); - const y = Math.max(first.y, second.y); - return { - x, - y, - width: Math.max(Math.min(first.x + first.width, second.x + second.width) - x, 0), - height: Math.max(Math.min(first.y + first.height, second.y + second.height) - y, 0), - }; -} -function parseInteger(value) { - value = value.trim(); - if (!/^[0-9]+$/.test(value)) { - throw new InvalidArgumentException(`Invalid integer: ${value}`); - } - return parseInt(value); -} -//# sourceMappingURL=BrowsingContextImpl.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.js.map deleted file mode 100644 index 1f3f536..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BrowsingContextImpl.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/context/BrowsingContextImpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;AAIH,OAAO,EAEL,YAAY,EAEZ,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACp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AC,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAC9D,CAAC,CACF;KACF,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,KAAa;IACjC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IACrB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,wBAAwB,CAAC,oBAAoB,KAAK,EAAE,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.d.ts deleted file mode 100644 index 0f83dcd..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { BrowsingContext, type EmptyResult } from '../../../protocol/protocol.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { UserContextStorage } from '../browser/UserContextStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { BrowsingContextStorage } from './BrowsingContextStorage.js'; -export declare class BrowsingContextProcessor { - #private; - constructor(browserCdpClient: CdpClient, browsingContextStorage: BrowsingContextStorage, userContextStorage: UserContextStorage, contextConfigStorage: ContextConfigStorage, eventManager: EventManager); - getTree(params: BrowsingContext.GetTreeParameters): BrowsingContext.GetTreeResult; - create(params: BrowsingContext.CreateParameters): Promise; - navigate(params: BrowsingContext.NavigateParameters): Promise; - reload(params: BrowsingContext.ReloadParameters): Promise; - activate(params: BrowsingContext.ActivateParameters): Promise; - captureScreenshot(params: BrowsingContext.CaptureScreenshotParameters): Promise; - print(params: BrowsingContext.PrintParameters): Promise; - setViewport(params: BrowsingContext.SetViewportParameters): Promise; - traverseHistory(params: BrowsingContext.TraverseHistoryParameters): Promise; - handleUserPrompt(params: BrowsingContext.HandleUserPromptParameters): Promise; - close(params: BrowsingContext.CloseParameters): Promise; - locateNodes(params: BrowsingContext.LocateNodesParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.js deleted file mode 100644 index e1a000a..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.js +++ /dev/null @@ -1,263 +0,0 @@ -import { ChromiumBidi, InvalidArgumentException, NoSuchUserContextException, NoSuchAlertException, UnsupportedOperationException, } from '../../../protocol/protocol.js'; -export class BrowsingContextProcessor { - #browserCdpClient; - #browsingContextStorage; - #contextConfigStorage; - #eventManager; - #userContextStorage; - constructor(browserCdpClient, browsingContextStorage, userContextStorage, contextConfigStorage, eventManager) { - this.#contextConfigStorage = contextConfigStorage; - this.#userContextStorage = userContextStorage; - this.#browserCdpClient = browserCdpClient; - this.#browsingContextStorage = browsingContextStorage; - this.#eventManager = eventManager; - this.#eventManager.addSubscribeHook(ChromiumBidi.BrowsingContext.EventNames.ContextCreated, this.#onContextCreatedSubscribeHook.bind(this)); - } - getTree(params) { - const resultContexts = params.root === undefined - ? this.#browsingContextStorage.getTopLevelContexts() - : [this.#browsingContextStorage.getContext(params.root)]; - return { - contexts: resultContexts.map((c) => c.serializeToBidiValue(params.maxDepth ?? Number.MAX_VALUE)), - }; - } - async create(params) { - let referenceContext; - let userContext = 'default'; - if (params.referenceContext !== undefined) { - referenceContext = this.#browsingContextStorage.getContext(params.referenceContext); - if (!referenceContext.isTopLevelContext()) { - throw new InvalidArgumentException(`referenceContext should be a top-level context`); - } - userContext = referenceContext.userContext; - } - if (params.userContext !== undefined) { - userContext = params.userContext; - } - const existingContexts = this.#browsingContextStorage - .getAllContexts() - .filter((context) => context.userContext === userContext); - let newWindow = false; - switch (params.type) { - case "tab" /* BrowsingContext.CreateType.Tab */: - newWindow = false; - break; - case "window" /* BrowsingContext.CreateType.Window */: - newWindow = true; - break; - } - if (!existingContexts.length) { - // If there are no contexts in the given user context, we need to set - // newWindow to true as newWindow=false will be rejected. - newWindow = true; - } - let result; - try { - result = await this.#browserCdpClient.sendCommand('Target.createTarget', { - url: 'about:blank', - newWindow, - browserContextId: userContext === 'default' ? undefined : userContext, - background: params.background === true, - }); - } - catch (err) { - if ( - // See https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/devtools/protocol/target_handler.cc;l=90;drc=e80392ac11e48a691f4309964cab83a3a59e01c8 - err.message.startsWith('Failed to find browser context with id') || - // See https://source.chromium.org/chromium/chromium/src/+/main:headless/lib/browser/protocol/target_handler.cc;l=49;drc=e80392ac11e48a691f4309964cab83a3a59e01c8 - err.message === 'browserContextId') { - throw new NoSuchUserContextException(`The context ${userContext} was not found`); - } - throw err; - } - // Wait for the new target to be attached and to be added to the browsing context - // storage. - const context = await this.#browsingContextStorage.waitForContext(result.targetId); - // Wait for the new tab to be loaded to avoid race conditions in the - // `browsingContext` events, when the `browsingContext.domContentLoaded` and - // `browsingContext.load` events from the initial `about:blank` navigation - // are emitted after the next navigation is started. - // Details: https://github.com/web-platform-tests/wpt/issues/35846 - await context.lifecycleLoaded(); - return { context: context.id }; - } - navigate(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return context.navigate(params.url, params.wait ?? "none" /* BrowsingContext.ReadinessState.None */); - } - reload(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return context.reload(params.ignoreCache ?? false, params.wait ?? "none" /* BrowsingContext.ReadinessState.None */); - } - async activate(params) { - const context = this.#browsingContextStorage.getContext(params.context); - if (!context.isTopLevelContext()) { - throw new InvalidArgumentException('Activation is only supported on the top-level context'); - } - await context.activate(); - return {}; - } - async captureScreenshot(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return await context.captureScreenshot(params); - } - async print(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return await context.print(params); - } - async setViewport(params) { - // Check the The viewport size limits is not checked by protocol parser, so we need to validate - // it manually: - // https://crsrc.org/c/content/browser/devtools/protocol/emulation_handler.cc;drc=f49e23d8e2bd190b42ec62284b8be10dcccd0446;l=660 - const maxDimensionSize = 10_000_000; - if ((params.viewport?.height ?? 0) > maxDimensionSize || - (params.viewport?.width ?? 0) > maxDimensionSize) { - throw new UnsupportedOperationException(`Viewport dimension over ${maxDimensionSize} are not supported`); - } - const config = {}; - // `undefined` means no changes should be done to the config. - if (params.devicePixelRatio !== undefined) { - config.devicePixelRatio = params.devicePixelRatio; - } - if (params.viewport !== undefined) { - config.viewport = params.viewport; - } - const impactedTopLevelContexts = await this.#getRelatedTopLevelBrowsingContexts(params.context, params.userContexts); - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, config); - } - if (params.context !== undefined) { - this.#contextConfigStorage.updateBrowsingContextConfig(params.context, config); - } - await Promise.all(impactedTopLevelContexts.map(async (context) => { - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setViewport(config.viewport ?? null, config.devicePixelRatio ?? null, config.screenOrientation ?? null); - })); - return {}; - } - /** - * Returns a list of top-level browsing context ids. - */ - async #getRelatedTopLevelBrowsingContexts(browsingContextId, userContextIds) { - if (browsingContextId === undefined && userContextIds === undefined) { - throw new InvalidArgumentException('Either userContexts or context must be provided'); - } - if (browsingContextId !== undefined && userContextIds !== undefined) { - throw new InvalidArgumentException('userContexts and context are mutually exclusive'); - } - if (browsingContextId !== undefined) { - const context = this.#browsingContextStorage.getContext(browsingContextId); - if (!context.isTopLevelContext()) { - throw new InvalidArgumentException('Emulating viewport is only supported on the top-level context'); - } - return [context]; - } - // Verify that all user contexts exist. - await this.#userContextStorage.verifyUserContextIdList(userContextIds); - const result = []; - for (const userContextId of userContextIds) { - const topLevelBrowsingContexts = this.#browsingContextStorage - .getTopLevelContexts() - .filter((browsingContext) => browsingContext.userContext === userContextId); - result.push(...topLevelBrowsingContexts); - } - // Remove duplicates. Compare `BrowsingContextImpl` by reference is correct here, as - // `browsingContextStorage` returns the same instance for the same id. - return [...new Set(result).values()]; - } - async traverseHistory(params) { - const context = this.#browsingContextStorage.getContext(params.context); - if (!context) { - throw new InvalidArgumentException(`No browsing context with id ${params.context}`); - } - if (!context.isTopLevelContext()) { - throw new InvalidArgumentException('Traversing history is only supported on the top-level context'); - } - await context.traverseHistory(params.delta); - return {}; - } - async handleUserPrompt(params) { - const context = this.#browsingContextStorage.getContext(params.context); - try { - await context.handleUserPrompt(params.accept, params.userText); - } - catch (error) { - // Heuristically determine the error - // https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/page_handler.cc;l=1085?q=%22No%20dialog%20is%20showing%22&ss=chromium - if (error.message?.includes('No dialog is showing')) { - throw new NoSuchAlertException('No dialog is showing'); - } - throw error; - } - return {}; - } - async close(params) { - const context = this.#browsingContextStorage.getContext(params.context); - if (!context.isTopLevelContext()) { - throw new InvalidArgumentException(`Non top-level browsing context ${context.id} cannot be closed.`); - } - // Parent session of a page target session can be a `browser` or a `tab` session. - const parentCdpClient = context.cdpTarget.parentCdpClient; - try { - const detachedFromTargetPromise = new Promise((resolve) => { - const onContextDestroyed = (event) => { - if (event.targetId === params.context) { - parentCdpClient.off('Target.detachedFromTarget', onContextDestroyed); - resolve(); - } - }; - parentCdpClient.on('Target.detachedFromTarget', onContextDestroyed); - }); - try { - if (params.promptUnload) { - await context.close(); - } - else { - await parentCdpClient.sendCommand('Target.closeTarget', { - targetId: params.context, - }); - } - } - catch (error) { - // Swallow error that arise from the session being destroyed. Rely on the - // `detachedFromTargetPromise` event to be resolved. - if (!parentCdpClient.isCloseError(error)) { - throw error; - } - } - // Sometimes CDP command finishes before `detachedFromTarget` event, - // sometimes after. Wait for the CDP command to be finished, and then wait - // for `detachedFromTarget` if it hasn't emitted. - await detachedFromTargetPromise; - } - catch (error) { - // Swallow error that arise from the page being destroyed - // Example is navigating to faulty SSL certificate - if (!(error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ && - error.message === 'Not attached to an active page')) { - throw error; - } - } - return {}; - } - async locateNodes(params) { - const context = this.#browsingContextStorage.getContext(params.context); - return await context.locateNodes(params); - } - #onContextCreatedSubscribeHook(contextId) { - const context = this.#browsingContextStorage.getContext(contextId); - const contextsToReport = [ - context, - ...this.#browsingContextStorage.getContext(contextId).allChildren, - ]; - contextsToReport.forEach((context) => { - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.ContextCreated, - params: context.serializeToBidiValue(), - }, context.id); - }); - return Promise.resolve(); - } -} -//# sourceMappingURL=BrowsingContextProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.js.map deleted file mode 100644 index 3d885d0..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BrowsingContextProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/context/BrowsingContextProcessor.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEL,YAAY,EACZ,wBAAwB,EAExB,0BAA0B,EAC1B,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AAUvC,MAAM,OAAO,wBAAwB;IAC1B,iBAAiB,CAAY;IAC7B,uBAAuB,CAAyB;IAChD,qBAAqB,CAAuB;IAC5C,aAAa,CAAe;IAC5B,mBAAmB,CAAqB;IAEjD,YACE,gBAA2B,EAC3B,sBAA8C,EAC9C,kBAAsC,EACtC,oBAA0C,EAC1C,YAA0B;QAE1B,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;QAClD,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QAC9C,IAAI,CAAC,iBAAiB,GAA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/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextStorage.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextStorage.d.ts deleted file mode 100644 index 261475b..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextStorage.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { type BrowsingContext } from '../../../protocol/protocol.js'; -import type { BrowsingContextImpl } from './BrowsingContextImpl.js'; -/** Container class for browsing contexts. */ -export declare class BrowsingContextStorage { - #private; - /** Gets all top-level contexts, i.e. those with no parent. */ - getTopLevelContexts(): BrowsingContextImpl[]; - /** Gets all contexts. */ - getAllContexts(): BrowsingContextImpl[]; - /** Deletes the context with the given ID. */ - deleteContextById(id: BrowsingContext.BrowsingContext): void; - /** Deletes the given context. */ - deleteContext(context: BrowsingContextImpl): void; - /** Tracks the given context. */ - addContext(context: BrowsingContextImpl): void; - /** - * Waits for a context with the given ID to be added and returns it. - */ - waitForContext(browsingContextId: BrowsingContext.BrowsingContext): Promise; - /** Returns true whether there is an existing context with the given ID. */ - hasContext(id: BrowsingContext.BrowsingContext): boolean; - /** Gets the context with the given ID, if any. */ - findContext(id: BrowsingContext.BrowsingContext): BrowsingContextImpl | undefined; - /** Returns the top-level context ID of the given context, if any. */ - findTopLevelContextId(id: BrowsingContext.BrowsingContext | null): BrowsingContext.BrowsingContext | null; - findContextBySession(sessionId: string): BrowsingContextImpl | undefined; - /** Gets the context with the given ID, if any, otherwise throws. */ - getContext(id: BrowsingContext.BrowsingContext): BrowsingContextImpl; - verifyTopLevelContextsList(contexts: BrowsingContext.BrowsingContext[] | undefined): Set; - verifyContextsList(contexts: BrowsingContext.BrowsingContext[]): void; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextStorage.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextStorage.js deleted file mode 100644 index a887405..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextStorage.js +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { NoSuchFrameException, InvalidArgumentException, } from '../../../protocol/protocol.js'; -import { EventEmitter } from '../../../utils/EventEmitter.js'; -/** Container class for browsing contexts. */ -export class BrowsingContextStorage { - /** Map from context ID to context implementation. */ - #contexts = new Map(); - /** Event emitter for browsing context storage eventsis not expected to be exposed to - * the outside world. */ - #eventEmitter = new EventEmitter(); - /** Gets all top-level contexts, i.e. those with no parent. */ - getTopLevelContexts() { - return this.getAllContexts().filter((context) => context.isTopLevelContext()); - } - /** Gets all contexts. */ - getAllContexts() { - return Array.from(this.#contexts.values()); - } - /** Deletes the context with the given ID. */ - deleteContextById(id) { - this.#contexts.delete(id); - } - /** Deletes the given context. */ - deleteContext(context) { - this.#contexts.delete(context.id); - } - /** Tracks the given context. */ - addContext(context) { - this.#contexts.set(context.id, context); - this.#eventEmitter.emit("added" /* BrowsingContextStorageEvents.Added */, { - browsingContext: context, - }); - } - /** - * Waits for a context with the given ID to be added and returns it. - */ - waitForContext(browsingContextId) { - if (this.#contexts.has(browsingContextId)) { - return Promise.resolve(this.getContext(browsingContextId)); - } - return new Promise((resolve) => { - const listener = (event) => { - if (event.browsingContext.id === browsingContextId) { - this.#eventEmitter.off("added" /* BrowsingContextStorageEvents.Added */, listener); - resolve(event.browsingContext); - } - }; - this.#eventEmitter.on("added" /* BrowsingContextStorageEvents.Added */, listener); - }); - } - /** Returns true whether there is an existing context with the given ID. */ - hasContext(id) { - return this.#contexts.has(id); - } - /** Gets the context with the given ID, if any. */ - findContext(id) { - return this.#contexts.get(id); - } - /** Returns the top-level context ID of the given context, if any. */ - findTopLevelContextId(id) { - if (id === null) { - return null; - } - const maybeContext = this.findContext(id); - if (!maybeContext) { - return null; - } - const parentId = maybeContext.parentId ?? null; - if (parentId === null) { - return id; - } - return this.findTopLevelContextId(parentId); - } - findContextBySession(sessionId) { - for (const context of this.#contexts.values()) { - if (context.cdpTarget.cdpSessionId === sessionId) { - return context; - } - } - return; - } - /** Gets the context with the given ID, if any, otherwise throws. */ - getContext(id) { - const result = this.findContext(id); - if (result === undefined) { - throw new NoSuchFrameException(`Context ${id} not found`); - } - return result; - } - verifyTopLevelContextsList(contexts) { - const foundContexts = new Set(); - if (!contexts) { - return foundContexts; - } - for (const contextId of contexts) { - const context = this.getContext(contextId); - if (context.isTopLevelContext()) { - foundContexts.add(context); - } - else { - throw new InvalidArgumentException(`Non top-level context '${contextId}' given.`); - } - } - return foundContexts; - } - verifyContextsList(contexts) { - if (!contexts.length) { - return; - } - for (const contextId of contexts) { - this.getContext(contextId); - } - } -} -//# sourceMappingURL=BrowsingContextStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextStorage.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextStorage.js.map deleted file mode 100644 index 6c4b2ec..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/BrowsingContextStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BrowsingContextStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/context/BrowsingContextStorage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,oBAAoB,EAEpB,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAY5D,6CAA6C;AAC7C,MAAM,OAAO,sBAAsB;IACjC,qDAAqD;IAC5C,SAAS,GAAG,IAAI,GAAG,EAGzB,CAAC;IACJ;4BACwB;IACf,aAAa,GAAG,IAAI,YAAY,EAA+B,CAAC;IAEzE,8DAA8D;IAC9D,mBAAmB;QACjB,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAC9C,OAAO,CAAC,iBAAiB,EAAE,CAC5B,CAAC;IACJ,CAAC;IAED,yBAAyB;IACzB,cAAc;QACZ,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,6CAA6C;IAC7C,iBAAiB,CAAC,EAAmC;QACnD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;IAED,iCAAiC;IACjC,aAAa,CAAC,OAA4B;QACxC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;IAED,gCAAgC;IAChC,UAAU,CAAC,OAA4B;QACrC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,aAAa,CAAC,IAAI,mDAAqC;YAC1D,eAAe,EAAE,OAAO;SACzB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,cAAc,CACZ,iBAAkD;QAElD,IAAI,IAAI,CAAC,SAAS,C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CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/NavigationTracker.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/NavigationTracker.d.ts deleted file mode 100644 index c029d12..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/NavigationTracker.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -import type { Protocol } from 'devtools-protocol'; -import { type BrowsingContext } from '../../../protocol/protocol.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { EventManager } from '../session/EventManager.js'; -export declare const enum NavigationEventName { - FragmentNavigated = "browsingContext.fragmentNavigated", - NavigationAborted = "browsingContext.navigationAborted", - NavigationFailed = "browsingContext.navigationFailed", - Load = "browsingContext.load" -} -export declare class NavigationResult { - readonly eventName: NavigationEventName; - readonly message?: string; - constructor(eventName: NavigationEventName, message?: string); -} -export declare class NavigationState { - #private; - readonly navigationId: `${string}-${string}-${string}-${string}-${string}`; - url: string; - loaderId?: string; - committed: Deferred; - isFragmentNavigation?: boolean; - get finished(): Promise; - constructor(url: string, browsingContextId: string, isInitial: boolean, eventManager: EventManager); - navigationInfo(): BrowsingContext.NavigationInfo; - start(): void; - frameNavigated(): void; - fragmentNavigated(): void; - load(): void; - fail(message: string): void; -} -/** - * Keeps track of navigations. Details: http://go/webdriver:bidi-navigation - */ -export declare class NavigationTracker { - #private; - constructor(url: string, browsingContextId: string, eventManager: EventManager, logger?: LoggerFn); - /** - * Returns current started ongoing navigation. It can be either a started pending - * navigation, or one is already navigated. - */ - get currentNavigationId(): `${string}-${string}-${string}-${string}-${string}`; - /** - * Flags if the current navigation relates to the initial to `about:blank` navigation. - */ - get isInitialNavigation(): boolean; - /** - * Url of the last navigated navigation. - */ - get url(): string; - /** - * Creates a pending navigation e.g. when navigation command is called. Required to - * provide navigation id before the actual navigation is started. It will be used when - * navigation started. Can be aborted, failed, fragment navigated, or became a current - * navigation. - */ - createPendingNavigation(url: string, canBeInitialNavigation?: boolean): NavigationState; - dispose(): void; - onTargetInfoChanged(url: string): void; - /** - * @param {string} unreachableUrl indicated the navigation is actually failed. - */ - frameNavigated(url: string, loaderId: string, unreachableUrl?: string): void; - navigatedWithinDocument(url: string, navigationType: Protocol.Page.NavigatedWithinDocumentEvent['navigationType']): void; - /** - * Required to mark navigation as fully complete. - * TODO: navigation should be complete when it became the current one on - * `Page.frameNavigated` or on navigating command finished with a new loader Id. - */ - loadPageEvent(loaderId: string): void; - /** - * Fail navigation due to navigation command failed. - */ - failNavigation(navigation: NavigationState, errorText: string): void; - /** - * Updates the navigation's `loaderId` and sets it as current one, if it is a - * cross-document navigation. - */ - navigationCommandFinished(navigation: NavigationState, loaderId?: string): void; - frameStartedNavigating(url: string, loaderId: string, navigationType: string): void; - /** - * If there is a navigation with the loaderId equals to the network request id, it means - * that the navigation failed. - */ - networkLoadingFailed(loaderId: string, errorText: string): void; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/NavigationTracker.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/NavigationTracker.js deleted file mode 100644 index bb9d632..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/NavigationTracker.js +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -import { ChromiumBidi, } from '../../../protocol/protocol.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import { LogType } from '../../../utils/log.js'; -import { getTimestamp } from '../../../utils/time.js'; -import { urlMatchesAboutBlank } from '../../../utils/urlHelpers.js'; -import { uuidv4 } from '../../../utils/uuid.js'; -export class NavigationResult { - eventName; - message; - constructor(eventName, message) { - this.eventName = eventName; - this.message = message; - } -} -export class NavigationState { - navigationId = uuidv4(); - #browsingContextId; - #started = false; - #finished = new Deferred(); - url; - loaderId; - #isInitial; - #eventManager; - committed = new Deferred(); - isFragmentNavigation; - get finished() { - return this.#finished; - } - constructor(url, browsingContextId, isInitial, eventManager) { - this.#browsingContextId = browsingContextId; - this.url = url; - this.#isInitial = isInitial; - this.#eventManager = eventManager; - } - navigationInfo() { - return { - context: this.#browsingContextId, - navigation: this.navigationId, - timestamp: getTimestamp(), - url: this.url, - }; - } - start() { - if ( - // Initial navigation should not be reported. - !this.#isInitial && - // No need in reporting started navigation twice. - !this.#started && - // No need for reporting fragment navigations. Step 13 vs step 16 of the spec: - // https://html.spec.whatwg.org/#beginning-navigation:webdriver-bidi-navigation-started - !this.isFragmentNavigation) { - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.NavigationStarted, - params: this.navigationInfo(), - }, this.#browsingContextId); - } - this.#started = true; - } - #finish(navigationResult) { - this.#started = true; - if (!this.#isInitial && - !this.#finished.isFinished && - navigationResult.eventName !== "browsingContext.load" /* NavigationEventName.Load */) { - this.#eventManager.registerEvent({ - type: 'event', - method: navigationResult.eventName, - params: this.navigationInfo(), - }, this.#browsingContextId); - } - this.#finished.resolve(navigationResult); - } - frameNavigated() { - this.committed.resolve(); - if (!this.#isInitial) { - this.#eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.BrowsingContext.EventNames.NavigationCommitted, - params: this.navigationInfo(), - }, this.#browsingContextId); - } - } - fragmentNavigated() { - this.committed.resolve(); - this.#finish(new NavigationResult("browsingContext.fragmentNavigated" /* NavigationEventName.FragmentNavigated */)); - } - load() { - this.#finish(new NavigationResult("browsingContext.load" /* NavigationEventName.Load */)); - } - fail(message) { - this.#finish(new NavigationResult(this.committed.isFinished - ? "browsingContext.navigationAborted" /* NavigationEventName.NavigationAborted */ - : "browsingContext.navigationFailed" /* NavigationEventName.NavigationFailed */, message)); - } -} -/** - * Keeps track of navigations. Details: http://go/webdriver:bidi-navigation - */ -export class NavigationTracker { - #eventManager; - #logger; - #loaderIdToNavigationsMap = new Map(); - #browsingContextId; - /** - * Last committed navigation is committed, but is not guaranteed to be finished, as it - * can still wait for `load` or `DOMContentLoaded` events. - */ - #lastCommittedNavigation; - /** - * Pending navigation is a navigation that is started but not yet committed. - */ - #pendingNavigation; - // Flags if the initial navigation to `about:blank` is in progress. - #isInitialNavigation = true; - constructor(url, browsingContextId, eventManager, logger) { - this.#browsingContextId = browsingContextId; - this.#eventManager = eventManager; - this.#logger = logger; - this.#isInitialNavigation = true; - // The initial navigation is always committed. - this.#lastCommittedNavigation = new NavigationState(url, browsingContextId, urlMatchesAboutBlank(url), this.#eventManager); - } - /** - * Returns current started ongoing navigation. It can be either a started pending - * navigation, or one is already navigated. - */ - get currentNavigationId() { - if (this.#pendingNavigation?.isFragmentNavigation === false) { - // Use pending navigation if it is started and it is not a fragment navigation. - return this.#pendingNavigation.navigationId; - } - // If the pending navigation is a fragment one, or if it is not exists, the last - // committed navigation should be used. - return this.#lastCommittedNavigation.navigationId; - } - /** - * Flags if the current navigation relates to the initial to `about:blank` navigation. - */ - get isInitialNavigation() { - return this.#isInitialNavigation; - } - /** - * Url of the last navigated navigation. - */ - get url() { - return this.#lastCommittedNavigation.url; - } - /** - * Creates a pending navigation e.g. when navigation command is called. Required to - * provide navigation id before the actual navigation is started. It will be used when - * navigation started. Can be aborted, failed, fragment navigated, or became a current - * navigation. - */ - createPendingNavigation(url, canBeInitialNavigation = false) { - this.#logger?.(LogType.debug, 'createCommandNavigation'); - this.#isInitialNavigation = - canBeInitialNavigation && - this.#isInitialNavigation && - urlMatchesAboutBlank(url); - this.#pendingNavigation?.fail('navigation canceled by concurrent navigation'); - const navigation = new NavigationState(url, this.#browsingContextId, this.#isInitialNavigation, this.#eventManager); - this.#pendingNavigation = navigation; - return navigation; - } - dispose() { - this.#pendingNavigation?.fail('navigation canceled by context disposal'); - this.#lastCommittedNavigation.fail('navigation canceled by context disposal'); - } - // Update the current url. - onTargetInfoChanged(url) { - this.#logger?.(LogType.debug, `onTargetInfoChanged ${url}`); - this.#lastCommittedNavigation.url = url; - } - #getNavigationForFrameNavigated(url, loaderId) { - if (this.#loaderIdToNavigationsMap.has(loaderId)) { - return this.#loaderIdToNavigationsMap.get(loaderId); - } - if (this.#pendingNavigation !== undefined && - this.#pendingNavigation.loaderId === undefined) { - // This can be a pending navigation to `about:blank` created by a command. Use the - // pending navigation in this case. - return this.#pendingNavigation; - } - // Create a new pending navigation. - return this.createPendingNavigation(url, true); - } - /** - * @param {string} unreachableUrl indicated the navigation is actually failed. - */ - frameNavigated(url, loaderId, unreachableUrl) { - this.#logger?.(LogType.debug, `frameNavigated ${url}`); - if (unreachableUrl !== undefined) { - // The navigation failed. - const navigation = this.#loaderIdToNavigationsMap.get(loaderId) ?? - this.#pendingNavigation ?? - this.createPendingNavigation(unreachableUrl, true); - navigation.url = unreachableUrl; - navigation.start(); - navigation.fail('the requested url is unreachable'); - return; - } - const navigation = this.#getNavigationForFrameNavigated(url, loaderId); - if (navigation !== this.#lastCommittedNavigation) { - // Even though the `lastCommittedNavigation` is navigated, it still can be waiting - // for `load` or `DOMContentLoaded` events. - this.#lastCommittedNavigation.fail('navigation canceled by concurrent navigation'); - } - navigation.url = url; - navigation.loaderId = loaderId; - this.#loaderIdToNavigationsMap.set(loaderId, navigation); - navigation.start(); - navigation.frameNavigated(); - this.#lastCommittedNavigation = navigation; - if (this.#pendingNavigation === navigation) { - this.#pendingNavigation = undefined; - } - } - navigatedWithinDocument(url, navigationType) { - this.#logger?.(LogType.debug, `navigatedWithinDocument ${url}, ${navigationType}`); - // Current navigation URL should be updated. - this.#lastCommittedNavigation.url = url; - if (navigationType !== 'fragment') { - // TODO: check for other navigation types, like `javascript`. - return; - } - // There is no way to map `navigatedWithinDocument` to a specific navigation. Consider - // it is the pending navigation, if it is a fragment one. - const fragmentNavigation = this.#pendingNavigation?.isFragmentNavigation === true - ? this.#pendingNavigation - : new NavigationState(url, this.#browsingContextId, false, this.#eventManager); - // Finish ongoing navigation. - fragmentNavigation.fragmentNavigated(); - if (fragmentNavigation === this.#pendingNavigation) { - this.#pendingNavigation = undefined; - } - } - /** - * Required to mark navigation as fully complete. - * TODO: navigation should be complete when it became the current one on - * `Page.frameNavigated` or on navigating command finished with a new loader Id. - */ - loadPageEvent(loaderId) { - this.#logger?.(LogType.debug, 'loadPageEvent'); - // Even if it was an initial navigation, it is finished. - this.#isInitialNavigation = false; - this.#loaderIdToNavigationsMap.get(loaderId)?.load(); - } - /** - * Fail navigation due to navigation command failed. - */ - failNavigation(navigation, errorText) { - this.#logger?.(LogType.debug, 'failCommandNavigation'); - navigation.fail(errorText); - } - /** - * Updates the navigation's `loaderId` and sets it as current one, if it is a - * cross-document navigation. - */ - navigationCommandFinished(navigation, loaderId) { - this.#logger?.(LogType.debug, `finishCommandNavigation ${navigation.navigationId}, ${loaderId}`); - if (loaderId !== undefined) { - navigation.loaderId = loaderId; - this.#loaderIdToNavigationsMap.set(loaderId, navigation); - } - navigation.isFragmentNavigation = loaderId === undefined; - } - frameStartedNavigating(url, loaderId, navigationType) { - this.#logger?.(LogType.debug, `frameStartedNavigating ${url}, ${loaderId}`); - if (this.#pendingNavigation && - this.#pendingNavigation?.loaderId !== undefined && - this.#pendingNavigation?.loaderId !== loaderId) { - // If there is a pending navigation with loader id set, but not equal to the new - // loader id, cancel pending navigation. - this.#pendingNavigation?.fail('navigation canceled by concurrent navigation'); - this.#pendingNavigation = undefined; - } - if (this.#loaderIdToNavigationsMap.has(loaderId)) { - const existingNavigation = this.#loaderIdToNavigationsMap.get(loaderId); - // Navigation can be changed from `sameDocument` to `differentDocument`. - existingNavigation.isFragmentNavigation = - NavigationTracker.#isFragmentNavigation(navigationType); - this.#pendingNavigation = existingNavigation; - return; - } - const pendingNavigation = this.#pendingNavigation ?? this.createPendingNavigation(url, true); - this.#loaderIdToNavigationsMap.set(loaderId, pendingNavigation); - pendingNavigation.isFragmentNavigation = - NavigationTracker.#isFragmentNavigation(navigationType); - pendingNavigation.url = url; - pendingNavigation.loaderId = loaderId; - pendingNavigation.start(); - } - static #isFragmentNavigation(navigationType) { - // Page.frameStartedNavigating.navigationType can be one of the following values: - // reload, reloadBypassingCache, restore, restoreWithPost, historySameDocument, - // historyDifferentDocument, sameDocument, differentDocument. - // https://chromedevtools.github.io/devtools-protocol/tot/Page/#event-frameStartedNavigating - return ['historySameDocument', 'sameDocument'].includes(navigationType); - } - /** - * If there is a navigation with the loaderId equals to the network request id, it means - * that the navigation failed. - */ - networkLoadingFailed(loaderId, errorText) { - this.#loaderIdToNavigationsMap.get(loaderId)?.fail(errorText); - } -} -//# sourceMappingURL=NavigationTracker.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/NavigationTracker.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/NavigationTracker.js.map deleted file mode 100644 index 5e3341d..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/context/NavigationTracker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NavigationTracker.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/context/NavigationTracker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAEL,YAAY,GACb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAgB,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAC,MAAM,EAAC,MAAM,wBAAwB,CA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oB;gBACrC,iBAAiB,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC;YAC1D,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;YAC7C,OAAO;QACT,CAAC;QAED,MAAM,iBAAiB,GACrB,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,uBAAuB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAErE,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QAEhE,iBAAiB,CAAC,oBAAoB;YACpC,iBAAiB,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAE1D,iBAAiB,CAAC,GAAG,GAAG,GAAG,CAAC;QAC5B,iBAAiB,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACtC,iBAAiB,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,qBAAqB,CAAC,cAAsB;QACjD,iFAAiF;QACjF,+EAA+E;QAC/E,6DAA6D;QAC7D,4FAA4F;QAC5F,OAAO,CAAC,qBAAqB,EAAE,cAAc,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC1E,CAAC;IACD;;;OAGG;IACH,oBAAoB,CAAC,QAAgB,EAAE,SAAiB;QACtD,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/emulation/EmulationProcessor.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/emulation/EmulationProcessor.d.ts deleted file mode 100644 index 4fba9f9..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/emulation/EmulationProcessor.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { EmptyResult, Emulation, UAClientHints } from '../../../protocol/protocol.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { UserContextStorage } from '../browser/UserContextStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -export declare class EmulationProcessor { - #private; - constructor(browsingContextStorage: BrowsingContextStorage, userContextStorage: UserContextStorage, contextConfigStorage: ContextConfigStorage); - setGeolocationOverride(params: Emulation.SetGeolocationOverrideParameters): Promise; - setLocaleOverride(params: Emulation.SetLocaleOverrideParameters): Promise; - setScriptingEnabled(params: Emulation.SetScriptingEnabledParameters): Promise; - setScreenOrientationOverride(params: Emulation.SetScreenOrientationOverrideParameters): Promise; - setScreenSettingsOverride(params: Emulation.SetScreenSettingsOverrideParameters): Promise; - setTimezoneOverride(params: Emulation.SetTimezoneOverrideParameters): Promise; - setTouchOverride(params: Emulation.SetTouchOverrideParameters): Promise; - setUserAgentOverrideParams(params: Emulation.SetUserAgentOverrideParameters): Promise; - setClientHintsOverride(params: UAClientHints.UserAgentClientHints.SetClientHintsOverrideCommand['params']): Promise; - setNetworkConditions(params: Emulation.SetNetworkConditionsParameters): Promise; -} -export declare function isValidLocale(locale: string): boolean; -export declare function isValidTimezone(timezone: string): boolean; -export declare function isTimeZoneOffsetString(timezone: string): boolean; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/emulation/EmulationProcessor.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/emulation/EmulationProcessor.js deleted file mode 100644 index 7fb1fce..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/emulation/EmulationProcessor.js +++ /dev/null @@ -1,377 +0,0 @@ -/** - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { InvalidArgumentException, UnsupportedOperationException, } from '../../../protocol/protocol.js'; -export class EmulationProcessor { - #userContextStorage; - #browsingContextStorage; - #contextConfigStorage; - constructor(browsingContextStorage, userContextStorage, contextConfigStorage) { - this.#userContextStorage = userContextStorage; - this.#browsingContextStorage = browsingContextStorage; - this.#contextConfigStorage = contextConfigStorage; - } - async setGeolocationOverride(params) { - if ('coordinates' in params && 'error' in params) { - // Unreachable. Handled by params parser. - throw new InvalidArgumentException('Coordinates and error cannot be set at the same time'); - } - let geolocation = null; - if ('coordinates' in params) { - if ((params.coordinates?.altitude ?? null) === null && - (params.coordinates?.altitudeAccuracy ?? null) !== null) { - throw new InvalidArgumentException('Geolocation altitudeAccuracy can be set only with altitude'); - } - geolocation = params.coordinates; - } - else if ('error' in params) { - if (params.error.type !== 'positionUnavailable') { - // Unreachable. Handled by params parser. - throw new InvalidArgumentException(`Unknown geolocation error ${params.error.type}`); - } - geolocation = params.error; - } - else { - // Unreachable. Handled by params parser. - throw new InvalidArgumentException(`Coordinates or error should be set`); - } - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - geolocation, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - geolocation, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setGeolocationOverride(config.geolocation ?? null); - })); - return {}; - } - async setLocaleOverride(params) { - const locale = params.locale ?? null; - if (locale !== null && !isValidLocale(locale)) { - throw new InvalidArgumentException(`Invalid locale "${locale}"`); - } - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - locale, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - locale, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await Promise.all([ - context.setLocaleOverride(config.locale ?? null), - // Set `AcceptLanguage` to locale. - context.setUserAgentAndAcceptLanguage(config.userAgent, config.locale, config.clientHints), - ]); - })); - return {}; - } - async setScriptingEnabled(params) { - const scriptingEnabled = params.enabled; - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - scriptingEnabled, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - scriptingEnabled, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setScriptingEnabled(config.scriptingEnabled ?? null); - })); - return {}; - } - async setScreenOrientationOverride(params) { - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - screenOrientation: params.screenOrientation, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - screenOrientation: params.screenOrientation, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setViewport(config.viewport ?? null, config.devicePixelRatio ?? null, config.screenOrientation ?? null); - })); - return {}; - } - async setScreenSettingsOverride(params) { - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - screenArea: params.screenArea, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - screenArea: params.screenArea, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setViewport(config.viewport ?? null, config.devicePixelRatio ?? null, config.screenOrientation ?? null); - })); - return {}; - } - /** - * Returns a list of top-level browsing contexts. - */ - async #getRelatedTopLevelBrowsingContexts(browsingContextIds, userContextIds, allowGlobal = false) { - if (browsingContextIds === undefined && userContextIds === undefined) { - if (allowGlobal) { - return this.#browsingContextStorage.getTopLevelContexts(); - } - throw new InvalidArgumentException('Either user contexts or browsing contexts must be provided'); - } - if (browsingContextIds !== undefined && userContextIds !== undefined) { - throw new InvalidArgumentException('User contexts and browsing contexts are mutually exclusive'); - } - const result = []; - if (browsingContextIds === undefined) { - // userContextIds !== undefined - if (userContextIds.length === 0) { - throw new InvalidArgumentException('user context should be provided'); - } - // Verify that all user contexts exist. - await this.#userContextStorage.verifyUserContextIdList(userContextIds); - for (const userContextId of userContextIds) { - const topLevelBrowsingContexts = this.#browsingContextStorage - .getTopLevelContexts() - .filter((browsingContext) => browsingContext.userContext === userContextId); - result.push(...topLevelBrowsingContexts); - } - } - else { - if (browsingContextIds.length === 0) { - throw new InvalidArgumentException('browsing context should be provided'); - } - for (const browsingContextId of browsingContextIds) { - const browsingContext = this.#browsingContextStorage.getContext(browsingContextId); - if (!browsingContext.isTopLevelContext()) { - throw new InvalidArgumentException('The command is only supported on the top-level context'); - } - result.push(browsingContext); - } - } - // Remove duplicates. Compare `BrowsingContextImpl` by reference is correct here, as - // `browsingContextStorage` returns the same instance for the same id. - return [...new Set(result).values()]; - } - async setTimezoneOverride(params) { - let timezone = params.timezone ?? null; - if (timezone !== null && !isValidTimezone(timezone)) { - throw new InvalidArgumentException(`Invalid timezone "${timezone}"`); - } - if (timezone !== null && isTimeZoneOffsetString(timezone)) { - // CDP supports offset timezone with `GMT` prefix. - timezone = `GMT${timezone}`; - } - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - timezone, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - timezone, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setTimezoneOverride(config.timezone ?? null); - })); - return {}; - } - async setTouchOverride(params) { - const maxTouchPoints = params.maxTouchPoints; - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts, true); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - maxTouchPoints, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - maxTouchPoints, - }); - } - if (params.contexts === undefined && params.userContexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - maxTouchPoints, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setTouchOverride(config.maxTouchPoints ?? null); - })); - return {}; - } - async setUserAgentOverrideParams(params) { - if (params.userAgent === '') { - throw new UnsupportedOperationException('empty user agent string is not supported'); - } - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts, true); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - userAgent: params.userAgent, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - userAgent: params.userAgent, - }); - } - if (params.contexts === undefined && params.userContexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - userAgent: params.userAgent, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setUserAgentAndAcceptLanguage(config.userAgent, config.locale, config.clientHints); - })); - return {}; - } - async setClientHintsOverride(params) { - const clientHints = params.clientHints ?? null; - // Get all relevant contexts to update: - // 1. Specific browsing contexts (if provided). - // 2. All contexts for specific user contexts (if provided). - // 3. All top-level contexts (if global). - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts, true); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - clientHints, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - clientHints, - }); - } - if (params.contexts === undefined && params.userContexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - clientHints, - }); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setUserAgentAndAcceptLanguage(config.userAgent, config.locale, config.clientHints); - })); - return {}; - } - async setNetworkConditions(params) { - const browsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts, true); - for (const browsingContextId of params.contexts ?? []) { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { - emulatedNetworkConditions: params.networkConditions, - }); - } - for (const userContextId of params.userContexts ?? []) { - this.#contextConfigStorage.updateUserContextConfig(userContextId, { - emulatedNetworkConditions: params.networkConditions, - }); - } - if (params.contexts === undefined && params.userContexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - emulatedNetworkConditions: params.networkConditions, - }); - } - if (params.networkConditions !== null && - params.networkConditions.type !== 'offline') { - throw new UnsupportedOperationException(`Unsupported network conditions ${params.networkConditions.type}`); - } - await Promise.all(browsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing more granular setting. - const config = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext); - await context.setEmulatedNetworkConditions(config.emulatedNetworkConditions ?? null); - })); - return {}; - } -} -// Export for testing. -export function isValidLocale(locale) { - try { - new Intl.Locale(locale); - return true; - } - catch (e) { - if (e instanceof RangeError) { - return false; - } - // Re-throw other errors - throw e; - } -} -// Export for testing. -export function isValidTimezone(timezone) { - try { - Intl.DateTimeFormat(undefined, { timeZone: timezone }); - return true; - } - catch (e) { - if (e instanceof RangeError) { - return false; - } - // Re-throw other errors - throw e; - } -} -// Export for testing. -export function isTimeZoneOffsetString(timezone) { - return /^[+-](?:2[0-3]|[01]\d)(?::[0-5]\d)?$/.test(timezone); -} -//# sourceMappingURL=EmulationProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/emulation/EmulationProcessor.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/emulation/EmulationProcessor.js.map deleted file mode 100644 index a5d38a0..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/emulation/EmulationProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EmulationProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/emulation/EmulationProcessor.ts"],"names":[],"mappings":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,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,YAAY,UAAU,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;QACD,wBAAwB;QACxB,MAAM,CAAC,CAAC;IACV,CAAC;AACH,CAAC;AAED,sBAAsB;AACtB,MAAM,UAAU,sBAAsB,CAAC,QAAgB;IACrD,OAAO,sCAAsC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC/D,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionDispatcher.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionDispatcher.d.ts deleted file mode 100644 index 25f83c6..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionDispatcher.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { ActionOption } from './ActionOption.js'; -import type { InputState } from './InputState.js'; -export declare class ActionDispatcher { - #private; - static isMacOS: (context: BrowsingContextImpl) => Promise; - constructor(inputState: InputState, browsingContextStorage: BrowsingContextStorage, contextId: string, isMacOS: boolean); - dispatchActions(optionsByTick: readonly (readonly Readonly[])[]): Promise; - dispatchTickActions(options: readonly Readonly[]): Promise; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionDispatcher.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionDispatcher.js deleted file mode 100644 index 757ccfc..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionDispatcher.js +++ /dev/null @@ -1,740 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { InvalidArgumentException, MoveTargetOutOfBoundsException, NoSuchElementException, } from '../../../protocol/protocol.js'; -import { assert } from '../../../utils/assert.js'; -import { isSingleComplexGrapheme, isSingleGrapheme, } from '../../../utils/graphemeTools.js'; -import { PointerSource, } from './InputSource.js'; -import { getKeyCode, getKeyLocation, getNormalizedKey } from './keyUtils.js'; -import { KeyToKeyCode } from './USKeyboardLayout.js'; -/** https://w3c.github.io/webdriver/#dfn-center-point */ -const CALCULATE_IN_VIEW_CENTER_PT_DECL = ((i) => { - const t = i.getClientRects()[0], e = Math.max(0, Math.min(t.x, t.x + t.width)), n = Math.min(window.innerWidth, Math.max(t.x, t.x + t.width)), h = Math.max(0, Math.min(t.y, t.y + t.height)), m = Math.min(window.innerHeight, Math.max(t.y, t.y + t.height)); - return [e + ((n - e) >> 1), h + ((m - h) >> 1)]; -}).toString(); -const IS_MAC_DECL = (() => { - return navigator.platform.toLowerCase().includes('mac'); -}).toString(); -async function getElementCenter(context, element) { - const hiddenSandboxRealm = await context.getOrCreateHiddenSandbox(); - const result = await hiddenSandboxRealm.callFunction(CALCULATE_IN_VIEW_CENTER_PT_DECL, false, { type: 'undefined' }, [element]); - if (result.type === 'exception') { - throw new NoSuchElementException(`Origin element ${element.sharedId} was not found`); - } - assert(result.result.type === 'array'); - assert(result.result.value?.[0]?.type === 'number'); - assert(result.result.value?.[1]?.type === 'number'); - const { result: { value: [{ value: x }, { value: y }], }, } = result; - return { x: x, y: y }; -} -export class ActionDispatcher { - static isMacOS = async (context) => { - const hiddenSandboxRealm = await context.getOrCreateHiddenSandbox(); - const result = await hiddenSandboxRealm.callFunction(IS_MAC_DECL, false); - assert(result.type !== 'exception'); - assert(result.result.type === 'boolean'); - return result.result.value; - }; - #browsingContextStorage; - #tickStart = 0; - #tickDuration = 0; - #inputState; - #contextId; - #isMacOS; - constructor(inputState, browsingContextStorage, contextId, isMacOS) { - this.#browsingContextStorage = browsingContextStorage; - this.#inputState = inputState; - this.#contextId = contextId; - this.#isMacOS = isMacOS; - } - /** - * The context can be disposed between action ticks, so need to get it each time. - */ - get #context() { - return this.#browsingContextStorage.getContext(this.#contextId); - } - async dispatchActions(optionsByTick) { - await this.#inputState.queue.run(async () => { - for (const options of optionsByTick) { - await this.dispatchTickActions(options); - } - }); - } - async dispatchTickActions(options) { - this.#tickStart = performance.now(); - this.#tickDuration = 0; - for (const { action } of options) { - if ('duration' in action && action.duration !== undefined) { - this.#tickDuration = Math.max(this.#tickDuration, action.duration); - } - } - const promises = [ - new Promise((resolve) => setTimeout(resolve, this.#tickDuration)), - ]; - for (const option of options) { - // In theory we have to wait for each action to happen, but CDP is serial, - // so as an optimization, we queue all CDP commands at once and await all - // of them. - promises.push(this.#dispatchAction(option)); - } - await Promise.all(promises); - } - async #dispatchAction({ id, action }) { - const source = this.#inputState.get(id); - const keyState = this.#inputState.getGlobalKeyState(); - switch (action.type) { - case 'keyDown': { - // SAFETY: The source is validated before. - await this.#dispatchKeyDownAction(source, action); - this.#inputState.cancelList.push({ - id, - action: { - ...action, - type: 'keyUp', - }, - }); - break; - } - case 'keyUp': { - // SAFETY: The source is validated before. - await this.#dispatchKeyUpAction(source, action); - break; - } - case 'pause': { - // TODO: Implement waiting on the input source. - break; - } - case 'pointerDown': { - // SAFETY: The source is validated before. - await this.#dispatchPointerDownAction(source, keyState, action); - this.#inputState.cancelList.push({ - id, - action: { - ...action, - type: 'pointerUp', - }, - }); - break; - } - case 'pointerMove': { - // SAFETY: The source is validated before. - await this.#dispatchPointerMoveAction(source, keyState, action); - break; - } - case 'pointerUp': { - // SAFETY: The source is validated before. - await this.#dispatchPointerUpAction(source, keyState, action); - break; - } - case 'scroll': { - // SAFETY: The source is validated before. - await this.#dispatchScrollAction(source, keyState, action); - break; - } - } - } - async #dispatchPointerDownAction(source, keyState, action) { - const { button } = action; - if (source.pressed.has(button)) { - return; - } - source.pressed.add(button); - const { x, y, subtype: pointerType } = source; - const { width, height, pressure, twist, tangentialPressure } = action; - const { tiltX, tiltY } = getTilt(action); - // --- Platform-specific code begins here --- - const { modifiers } = keyState; - const { radiusX, radiusY } = getRadii(width ?? 1, height ?? 1); - switch (pointerType) { - case "mouse" /* Input.PointerType.Mouse */: - case "pen" /* Input.PointerType.Pen */: - // TODO: Implement width and height when available. - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mousePressed', - x, - y, - modifiers, - button: getCdpButton(button), - buttons: source.buttons, - clickCount: source.setClickCount(button, new PointerSource.ClickContext(x, y, performance.now())), - pointerType, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure, - }); - break; - case "touch" /* Input.PointerType.Touch */: - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', { - type: 'touchStart', - touchPoints: [ - { - x, - y, - radiusX, - radiusY, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure, - id: source.pointerId, - }, - ], - modifiers, - }); - break; - } - source.radiusX = radiusX; - source.radiusY = radiusY; - source.force = pressure; - // --- Platform-specific code ends here --- - } - #dispatchPointerUpAction(source, keyState, action) { - const { button } = action; - if (!source.pressed.has(button)) { - return; - } - source.pressed.delete(button); - const { x, y, force, radiusX, radiusY, subtype: pointerType } = source; - // --- Platform-specific code begins here --- - const { modifiers } = keyState; - switch (pointerType) { - case "mouse" /* Input.PointerType.Mouse */: - case "pen" /* Input.PointerType.Pen */: - // TODO: Implement width and height when available. - return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mouseReleased', - x, - y, - modifiers, - button: getCdpButton(button), - buttons: source.buttons, - clickCount: source.getClickCount(button), - pointerType, - }); - case "touch" /* Input.PointerType.Touch */: - return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', { - type: 'touchEnd', - touchPoints: [ - { - x, - y, - id: source.pointerId, - force, - radiusX, - radiusY, - }, - ], - modifiers, - }); - } - // --- Platform-specific code ends here --- - } - async #dispatchPointerMoveAction(source, keyState, action) { - const { x: startX, y: startY, subtype: pointerType } = source; - const { width, height, pressure, twist, tangentialPressure, x: offsetX, y: offsetY, origin = 'viewport', duration = this.#tickDuration, } = action; - const { tiltX, tiltY } = getTilt(action); - const { radiusX, radiusY } = getRadii(width ?? 1, height ?? 1); - const { targetX, targetY } = await this.#getCoordinateFromOrigin(origin, offsetX, offsetY, startX, startY); - if (targetX < 0 || targetY < 0) { - throw new MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${targetX}, y: ${targetY})`); - } - let last; - do { - const ratio = duration > 0 ? (performance.now() - this.#tickStart) / duration : 1; - last = ratio >= 1; - let x; - let y; - if (last) { - x = targetX; - y = targetY; - } - else { - x = Math.round(ratio * (targetX - startX) + startX); - y = Math.round(ratio * (targetY - startY) + startY); - } - if (source.x !== x || source.y !== y) { - // --- Platform-specific code begins here --- - const { modifiers } = keyState; - switch (pointerType) { - case "mouse" /* Input.PointerType.Mouse */: - // TODO: Implement width and height when available. - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mouseMoved', - x, - y, - modifiers, - clickCount: 0, - button: getCdpButton(source.pressed.values().next().value ?? 5), - buttons: source.buttons, - pointerType, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure, - }); - break; - case "pen" /* Input.PointerType.Pen */: - if (source.pressed.size !== 0) { - // Empty `source.pressed.size` means the pen is not detected by digitizer. - // Dispatch a mouse event for the pen only if either: - // 1. the pen is hovering over the digitizer (0); - // 2. the pen is in contact with the digitizer (1); - // 3. the pen has at least one button pressed (2, 4, etc). - // https://www.w3.org/TR/pointerevents/#the-buttons-property - // TODO: Implement width and height when available. - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mouseMoved', - x, - y, - modifiers, - clickCount: 0, - button: getCdpButton(source.pressed.values().next().value ?? 5), - buttons: source.buttons, - pointerType, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure ?? 0.5, - }); - } - break; - case "touch" /* Input.PointerType.Touch */: - if (source.pressed.size !== 0) { - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', { - type: 'touchMove', - touchPoints: [ - { - x, - y, - radiusX, - radiusY, - tangentialPressure, - tiltX, - tiltY, - twist, - force: pressure, - id: source.pointerId, - }, - ], - modifiers, - }); - } - break; - } - // --- Platform-specific code ends here --- - source.x = x; - source.y = y; - source.radiusX = radiusX; - source.radiusY = radiusY; - source.force = pressure; - } - } while (!last); - } - async #getFrameOffset() { - if (this.#context.id === this.#context.cdpTarget.id) { - return { x: 0, y: 0 }; - } - // https://github.com/w3c/webdriver/pull/1847 proposes dispatching events from - // the top-level browsing context. This implementation dispatches it on the top-most - // same-target frame, which is not top-level one in case of OOPiF. - // TODO: switch to the top-level browsing context. - const { backendNodeId } = await this.#context.cdpTarget.cdpClient.sendCommand('DOM.getFrameOwner', { frameId: this.#context.id }); - const { model: frameBoxModel } = await this.#context.cdpTarget.cdpClient.sendCommand('DOM.getBoxModel', { - backendNodeId, - }); - return { x: frameBoxModel.content[0], y: frameBoxModel.content[1] }; - } - async #getCoordinateFromOrigin(origin, offsetX, offsetY, startX, startY) { - let targetX; - let targetY; - const frameOffset = await this.#getFrameOffset(); - switch (origin) { - case 'viewport': - targetX = offsetX + frameOffset.x; - targetY = offsetY + frameOffset.y; - break; - case 'pointer': - targetX = startX + offsetX + frameOffset.x; - targetY = startY + offsetY + frameOffset.y; - break; - default: { - const { x: posX, y: posY } = await getElementCenter(this.#context, origin.element); - // SAFETY: These can never be special numbers. - targetX = posX + offsetX + frameOffset.x; - targetY = posY + offsetY + frameOffset.y; - break; - } - } - return { targetX, targetY }; - } - async #dispatchScrollAction(_source, keyState, action) { - const { deltaX: targetDeltaX, deltaY: targetDeltaY, x: offsetX, y: offsetY, origin = 'viewport', duration = this.#tickDuration, } = action; - if (origin === 'pointer') { - throw new InvalidArgumentException('"pointer" origin is invalid for scrolling.'); - } - const { targetX, targetY } = await this.#getCoordinateFromOrigin(origin, offsetX, offsetY, 0, 0); - if (targetX < 0 || targetY < 0) { - throw new MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${targetX}, y: ${targetY})`); - } - let currentDeltaX = 0; - let currentDeltaY = 0; - let last; - do { - const ratio = duration > 0 ? (performance.now() - this.#tickStart) / duration : 1; - last = ratio >= 1; - let deltaX; - let deltaY; - if (last) { - deltaX = targetDeltaX - currentDeltaX; - deltaY = targetDeltaY - currentDeltaY; - } - else { - deltaX = Math.round(ratio * targetDeltaX - currentDeltaX); - deltaY = Math.round(ratio * targetDeltaY - currentDeltaY); - } - if (deltaX !== 0 || deltaY !== 0) { - // --- Platform-specific code begins here --- - const { modifiers } = keyState; - await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', { - type: 'mouseWheel', - deltaX, - deltaY, - x: targetX, - y: targetY, - modifiers, - }); - // --- Platform-specific code ends here --- - currentDeltaX += deltaX; - currentDeltaY += deltaY; - } - } while (!last); - } - async #dispatchKeyDownAction(source, action) { - const rawKey = action.value; - if (!isSingleGrapheme(rawKey)) { - // https://w3c.github.io/webdriver/#dfn-process-a-key-action - // WebDriver spec allows a grapheme to be used. - throw new InvalidArgumentException(`Invalid key value: ${rawKey}`); - } - const isGrapheme = isSingleComplexGrapheme(rawKey); - const key = getNormalizedKey(rawKey); - const repeat = source.pressed.has(key); - const code = getKeyCode(rawKey); - const location = getKeyLocation(rawKey); - switch (key) { - case 'Alt': - source.alt = true; - break; - case 'Shift': - source.shift = true; - break; - case 'Control': - source.ctrl = true; - break; - case 'Meta': - source.meta = true; - break; - } - source.pressed.add(key); - const { modifiers } = source; - // --- Platform-specific code begins here --- - // The spread is a little hack so JS gives us an array of unicode characters - // to measure. - const unmodifiedText = getKeyEventUnmodifiedText(key, source, isGrapheme); - const text = getKeyEventText(code ?? '', source) ?? unmodifiedText; - let command; - // The following commands need to be declared because Chromium doesn't - // handle them. See - // https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:third_party/blink/renderer/core/editing/editing_behavior.cc;l=169;drc=b8143cf1dfd24842890fcd831c4f5d909bef4fc4;bpv=0;bpt=1. - if (this.#isMacOS && source.meta) { - switch (code) { - case 'KeyA': - command = 'SelectAll'; - break; - case 'KeyC': - command = 'Copy'; - break; - case 'KeyV': - command = source.shift ? 'PasteAndMatchStyle' : 'Paste'; - break; - case 'KeyX': - command = 'Cut'; - break; - case 'KeyZ': - command = source.shift ? 'Redo' : 'Undo'; - break; - default: - // Intentionally empty. - } - } - const promises = [ - this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchKeyEvent', { - type: text ? 'keyDown' : 'rawKeyDown', - windowsVirtualKeyCode: KeyToKeyCode[key], - key, - code, - text, - unmodifiedText, - autoRepeat: repeat, - isSystemKey: source.alt || undefined, - location: location < 3 ? location : undefined, - isKeypad: location === 3, - modifiers, - commands: command ? [command] : undefined, - }), - ]; - // Drag cancelling happens on escape. - if (key === 'Escape') { - if (!source.alt && - ((this.#isMacOS && !source.ctrl && !source.meta) || !this.#isMacOS)) { - promises.push(this.#context.cdpTarget.cdpClient.sendCommand('Input.cancelDragging')); - } - } - await Promise.all(promises); - // --- Platform-specific code ends here --- - } - #dispatchKeyUpAction(source, action) { - const rawKey = action.value; - if (!isSingleGrapheme(rawKey)) { - // https://w3c.github.io/webdriver/#dfn-process-a-key-action - // WebDriver spec allows a grapheme to be used. - throw new InvalidArgumentException(`Invalid key value: ${rawKey}`); - } - const isGrapheme = isSingleComplexGrapheme(rawKey); - const key = getNormalizedKey(rawKey); - if (!source.pressed.has(key)) { - return; - } - const code = getKeyCode(rawKey); - const location = getKeyLocation(rawKey); - switch (key) { - case 'Alt': - source.alt = false; - break; - case 'Shift': - source.shift = false; - break; - case 'Control': - source.ctrl = false; - break; - case 'Meta': - source.meta = false; - break; - } - source.pressed.delete(key); - const { modifiers } = source; - // --- Platform-specific code begins here --- - // The spread is a little hack so JS gives us an array of unicode characters - // to measure. - const unmodifiedText = getKeyEventUnmodifiedText(key, source, isGrapheme); - const text = getKeyEventText(code ?? '', source) ?? unmodifiedText; - return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchKeyEvent', { - type: 'keyUp', - windowsVirtualKeyCode: KeyToKeyCode[key], - key, - code, - text, - unmodifiedText, - location: location < 3 ? location : undefined, - isSystemKey: source.alt || undefined, - isKeypad: location === 3, - modifiers, - }); - // --- Platform-specific code ends here --- - } -} -/** - * Translates a non-grapheme key to either an `undefined` for a special keys, or a single - * character modified by shift if needed. - */ -const getKeyEventUnmodifiedText = (key, source, isGrapheme) => { - if (isGrapheme) { - // Graphemes should be presented as text in the CDP command. - return key; - } - if (key === 'Enter') { - return '\r'; - } - // If key is not a single character, it is a normalized key value, and should be - // presented as key, not text in the CDP command. - return [...key].length === 1 - ? source.shift - ? key.toLocaleUpperCase('en-US') - : key - : undefined; -}; -const getKeyEventText = (code, source) => { - if (source.ctrl) { - switch (code) { - case 'Digit2': - if (source.shift) { - return '\x00'; - } - break; - case 'KeyA': - return '\x01'; - case 'KeyB': - return '\x02'; - case 'KeyC': - return '\x03'; - case 'KeyD': - return '\x04'; - case 'KeyE': - return '\x05'; - case 'KeyF': - return '\x06'; - case 'KeyG': - return '\x07'; - case 'KeyH': - return '\x08'; - case 'KeyI': - return '\x09'; - case 'KeyJ': - return '\x0A'; - case 'KeyK': - return '\x0B'; - case 'KeyL': - return '\x0C'; - case 'KeyM': - return '\x0D'; - case 'KeyN': - return '\x0E'; - case 'KeyO': - return '\x0F'; - case 'KeyP': - return '\x10'; - case 'KeyQ': - return '\x11'; - case 'KeyR': - return '\x12'; - case 'KeyS': - return '\x13'; - case 'KeyT': - return '\x14'; - case 'KeyU': - return '\x15'; - case 'KeyV': - return '\x16'; - case 'KeyW': - return '\x17'; - case 'KeyX': - return '\x18'; - case 'KeyY': - return '\x19'; - case 'KeyZ': - return '\x1A'; - case 'BracketLeft': - return '\x1B'; - case 'Backslash': - return '\x1C'; - case 'BracketRight': - return '\x1D'; - case 'Digit6': - if (source.shift) { - return '\x1E'; - } - break; - case 'Minus': - return '\x1F'; - } - return ''; - } - if (source.alt) { - return ''; - } - return; -}; -function getCdpButton(button) { - // https://www.w3.org/TR/pointerevents/#the-button-property - switch (button) { - case 0: - return 'left'; - case 1: - return 'middle'; - case 2: - return 'right'; - case 3: - return 'back'; - case 4: - return 'forward'; - default: - return 'none'; - } -} -function getTilt(action) { - // https://w3c.github.io/pointerevents/#converting-between-tiltx-tilty-and-altitudeangle-azimuthangle - const altitudeAngle = action.altitudeAngle ?? Math.PI / 2; - const azimuthAngle = action.azimuthAngle ?? 0; - let tiltXRadians = 0; - let tiltYRadians = 0; - if (altitudeAngle === 0) { - // the pen is in the X-Y plane - if (azimuthAngle === 0 || azimuthAngle === 2 * Math.PI) { - // pen is on positive X axis - tiltXRadians = Math.PI / 2; - } - if (azimuthAngle === Math.PI / 2) { - // pen is on positive Y axis - tiltYRadians = Math.PI / 2; - } - if (azimuthAngle === Math.PI) { - // pen is on negative X axis - tiltXRadians = -Math.PI / 2; - } - if (azimuthAngle === (3 * Math.PI) / 2) { - // pen is on negative Y axis - tiltYRadians = -Math.PI / 2; - } - if (azimuthAngle > 0 && azimuthAngle < Math.PI / 2) { - tiltXRadians = Math.PI / 2; - tiltYRadians = Math.PI / 2; - } - if (azimuthAngle > Math.PI / 2 && azimuthAngle < Math.PI) { - tiltXRadians = -Math.PI / 2; - tiltYRadians = Math.PI / 2; - } - if (azimuthAngle > Math.PI && azimuthAngle < (3 * Math.PI) / 2) { - tiltXRadians = -Math.PI / 2; - tiltYRadians = -Math.PI / 2; - } - if (azimuthAngle > (3 * Math.PI) / 2 && azimuthAngle < 2 * Math.PI) { - tiltXRadians = Math.PI / 2; - tiltYRadians = -Math.PI / 2; - } - } - if (altitudeAngle !== 0) { - const tanAlt = Math.tan(altitudeAngle); - tiltXRadians = Math.atan(Math.cos(azimuthAngle) / tanAlt); - tiltYRadians = Math.atan(Math.sin(azimuthAngle) / tanAlt); - } - const factor = 180 / Math.PI; - return { - tiltX: Math.round(tiltXRadians * factor), - tiltY: Math.round(tiltYRadians * factor), - }; -} -function getRadii(width, height) { - return { - radiusX: width ? width / 2 : 0.5, - radiusY: height ? height / 2 : 0.5, - }; -} -//# sourceMappingURL=ActionDispatcher.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionDispatcher.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionDispatcher.js.map deleted file mode 100644 index 5b96c19..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionDispatcher.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActionDispatcher.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/ActionDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAEL,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,GAEvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAChD,OAAO,EACL,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EAEL,aAAa,GAEd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAC,UAAU,EAAE,cAAc,EAAE,gBAAgB,EAAC,MAAM,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romium-bidi/lib/esm/bidiMapper/modules/input/ActionOption.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionOption.d.ts deleted file mode 100644 index 0a511f9..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionOption.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Input } from '../../../protocol/protocol.js'; -export type ActionOption = ActionOptionFor; -export interface ActionOptionFor { - id: string; - action: A; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionOption.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionOption.js deleted file mode 100644 index ea6ba10..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionOption.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export {}; -//# sourceMappingURL=ActionOption.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionOption.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionOption.js.map deleted file mode 100644 index 3fa02d6..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/ActionOption.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActionOption.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/ActionOption.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputProcessor.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputProcessor.d.ts deleted file mode 100644 index 0c8019d..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputProcessor.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Input, type EmptyResult } from '../../../protocol/protocol.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -export declare class InputProcessor { - #private; - constructor(browsingContextStorage: BrowsingContextStorage); - performActions(params: Input.PerformActionsParameters): Promise; - releaseActions(params: Input.ReleaseActionsParameters): Promise; - setFiles(params: Input.SetFilesParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputProcessor.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputProcessor.js deleted file mode 100644 index 12936ef..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputProcessor.js +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { InvalidArgumentException, NoSuchElementException, UnableToSetFileInputException, NoSuchNodeException, } from '../../../protocol/protocol.js'; -import { assert } from '../../../utils/assert.js'; -import { ActionDispatcher } from '../input/ActionDispatcher.js'; -import { InputStateManager } from '../input/InputStateManager.js'; -export class InputProcessor { - #browsingContextStorage; - #inputStateManager = new InputStateManager(); - constructor(browsingContextStorage) { - this.#browsingContextStorage = browsingContextStorage; - } - async performActions(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const inputState = this.#inputStateManager.get(context.top); - const actionsByTick = this.#getActionsByTick(params, inputState); - const dispatcher = new ActionDispatcher(inputState, this.#browsingContextStorage, params.context, await ActionDispatcher.isMacOS(context).catch(() => false)); - await dispatcher.dispatchActions(actionsByTick); - return {}; - } - async releaseActions(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const topContext = context.top; - const inputState = this.#inputStateManager.get(topContext); - const dispatcher = new ActionDispatcher(inputState, this.#browsingContextStorage, params.context, await ActionDispatcher.isMacOS(context).catch(() => false)); - await dispatcher.dispatchTickActions(inputState.cancelList.reverse()); - this.#inputStateManager.delete(topContext); - return {}; - } - async setFiles(params) { - const context = this.#browsingContextStorage.getContext(params.context); - const hiddenSandboxRealm = await context.getOrCreateHiddenSandbox(); - let result; - try { - result = await hiddenSandboxRealm.callFunction(String(function getFiles(fileListLength) { - if (!(this instanceof HTMLInputElement)) { - if (this instanceof Element) { - return 1 /* ErrorCode.Element */; - } - return 0 /* ErrorCode.Node */; - } - if (this.type !== 'file') { - return 2 /* ErrorCode.Type */; - } - if (this.disabled) { - return 3 /* ErrorCode.Disabled */; - } - if (fileListLength > 1 && !this.multiple) { - return 4 /* ErrorCode.Multiple */; - } - return; - }), false, params.element, [{ type: 'number', value: params.files.length }]); - } - catch { - throw new NoSuchNodeException(`Could not find element ${params.element.sharedId}`); - } - assert(result.type === 'success'); - if (result.result.type === 'number') { - switch (result.result.value) { - case 0 /* ErrorCode.Node */: { - throw new NoSuchElementException(`Could not find element ${params.element.sharedId}`); - } - case 1 /* ErrorCode.Element */: { - throw new UnableToSetFileInputException(`Element ${params.element.sharedId} is not a input`); - } - case 2 /* ErrorCode.Type */: { - throw new UnableToSetFileInputException(`Input element ${params.element.sharedId} is not a file type`); - } - case 3 /* ErrorCode.Disabled */: { - throw new UnableToSetFileInputException(`Input element ${params.element.sharedId} is disabled`); - } - case 4 /* ErrorCode.Multiple */: { - throw new UnableToSetFileInputException(`Cannot set multiple files on a non-multiple input element`); - } - } - } - /** - * The zero-length array is a special case, it seems that - * DOM.setFileInputFiles does not actually update the files in that case, so - * the solution is to eval the element value to a new FileList directly. - */ - if (params.files.length === 0) { - // XXX: These events should converted to trusted events. Perhaps do this - // in `DOM.setFileInputFiles`? - await hiddenSandboxRealm.callFunction(String(function dispatchEvent() { - if (this.files?.length === 0) { - this.dispatchEvent(new Event('cancel', { - bubbles: true, - })); - return; - } - this.files = new DataTransfer().files; - // Dispatch events for this case because it should behave akin to a user action. - this.dispatchEvent(new Event('input', { bubbles: true, composed: true })); - this.dispatchEvent(new Event('change', { bubbles: true })); - }), false, params.element); - return {}; - } - // Our goal here is to iterate over the input element files and get their - // file paths. - const paths = []; - for (let i = 0; i < params.files.length; ++i) { - const result = await hiddenSandboxRealm.callFunction(String(function getFiles(index) { - return this.files?.item(index); - }), false, params.element, [{ type: 'number', value: 0 }], "root" /* Script.ResultOwnership.Root */); - assert(result.type === 'success'); - if (result.result.type !== 'object') { - break; - } - const { handle } = result.result; - assert(handle !== undefined); - const { path } = await hiddenSandboxRealm.cdpClient.sendCommand('DOM.getFileInfo', { - objectId: handle, - }); - paths.push(path); - // Cleanup the handle. - void hiddenSandboxRealm.disown(handle).catch(undefined); - } - paths.sort(); - // We create a new array so we preserve the order of the original files. - const sortedFiles = [...params.files].sort(); - if (paths.length !== params.files.length || - sortedFiles.some((path, index) => { - return paths[index] !== path; - })) { - const { objectId } = await hiddenSandboxRealm.deserializeForCdp(params.element); - // This cannot throw since this was just used in `callFunction` above. - assert(objectId !== undefined); - await hiddenSandboxRealm.cdpClient.sendCommand('DOM.setFileInputFiles', { - files: params.files, - objectId, - }); - } - else { - // XXX: We should dispatch a trusted event. - await hiddenSandboxRealm.callFunction(String(function dispatchEvent() { - this.dispatchEvent(new Event('cancel', { - bubbles: true, - })); - }), false, params.element); - } - return {}; - } - #getActionsByTick(params, inputState) { - const actionsByTick = []; - for (const action of params.actions) { - switch (action.type) { - case "pointer" /* SourceType.Pointer */: { - action.parameters ??= { pointerType: "mouse" /* Input.PointerType.Mouse */ }; - action.parameters.pointerType ??= "mouse" /* Input.PointerType.Mouse */; - const source = inputState.getOrCreate(action.id, "pointer" /* SourceType.Pointer */, action.parameters.pointerType); - if (source.subtype !== action.parameters.pointerType) { - throw new InvalidArgumentException(`Expected input source ${action.id} to be ${source.subtype}; got ${action.parameters.pointerType}.`); - } - // https://github.com/GoogleChromeLabs/chromium-bidi/issues/3043 - source.resetClickCount(); - break; - } - default: - inputState.getOrCreate(action.id, action.type); - } - const actions = action.actions.map((item) => ({ - id: action.id, - action: item, - })); - for (let i = 0; i < actions.length; i++) { - if (actionsByTick.length === i) { - actionsByTick.push([]); - } - actionsByTick[i].push(actions[i]); - } - } - return actionsByTick; - } -} -//# sourceMappingURL=InputProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputProcessor.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputProcessor.js.map deleted file mode 100644 index cc22471..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InputProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/InputProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAEL,wBAAwB,EACxB,sBAAsB,EAEtB,6BAA6B,EAE7B,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAEhD,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CA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,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC/B,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzB,CAAC;gBACD,aAAa,CAAC,CAAC,CAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAE,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;QACD,OAAO,aAAa,CAAC;IACvB,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputSource.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputSource.d.ts deleted file mode 100644 index d1edf3e..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputSource.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Input } from '../../../protocol/protocol.js'; -export declare const enum SourceType { - Key = "key", - Pointer = "pointer", - Wheel = "wheel", - None = "none" -} -export declare class NoneSource { - type: SourceType.None; -} -export declare class KeySource { - #private; - type: SourceType.Key; - pressed: Set; - get modifiers(): number; - get alt(): boolean; - set alt(value: boolean); - get ctrl(): boolean; - set ctrl(value: boolean); - get meta(): boolean; - set meta(value: boolean); - get shift(): boolean; - set shift(value: boolean); -} -export declare class PointerSource { - #private; - type: SourceType.Pointer; - subtype: Input.PointerType; - pointerId: number; - pressed: Set; - x: number; - y: number; - radiusX?: number; - radiusY?: number; - force?: number; - constructor(id: number, subtype: Input.PointerType); - get buttons(): number; - static ClickContext: { - new (x: number, y: number, time: number): { - count: number; - "__#private@#x": number; - "__#private@#y": number; - "__#private@#time": number; - compare(context: /*elided*/ any): boolean; - }; - "__#private@#DOUBLE_CLICK_TIME_MS": number; - "__#private@#MAX_DOUBLE_CLICK_RADIUS": number; - }; - setClickCount(button: number, context: InstanceType): number; - getClickCount(button: number): number; - /** - * Resets click count. Resets consequent click counter. Prevents grouping clicks in - * different `performActions` calls, so that they are not grouped as double, triple etc - * clicks. Required for https://github.com/GoogleChromeLabs/chromium-bidi/issues/3043. - */ - resetClickCount(): void; -} -export declare class WheelSource { - type: SourceType.Wheel; -} -export type InputSource = NoneSource | KeySource | PointerSource | WheelSource; -export type InputSourceFor = Type extends SourceType.Key ? KeySource : Type extends SourceType.Pointer ? PointerSource : Type extends SourceType.Wheel ? WheelSource : NoneSource; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputSource.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputSource.js deleted file mode 100644 index 3ad3929..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputSource.js +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var _a; -export class NoneSource { - type = "none" /* SourceType.None */; -} -export class KeySource { - type = "key" /* SourceType.Key */; - pressed = new Set(); - // This is a bitfield that matches the modifiers parameter of - // https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchKeyEvent - #modifiers = 0; - get modifiers() { - return this.#modifiers; - } - get alt() { - return (this.#modifiers & 1) === 1; - } - set alt(value) { - this.#setModifier(value, 1); - } - get ctrl() { - return (this.#modifiers & 2) === 2; - } - set ctrl(value) { - this.#setModifier(value, 2); - } - get meta() { - return (this.#modifiers & 4) === 4; - } - set meta(value) { - this.#setModifier(value, 4); - } - get shift() { - return (this.#modifiers & 8) === 8; - } - set shift(value) { - this.#setModifier(value, 8); - } - #setModifier(value, bit) { - if (value) { - this.#modifiers |= bit; - } - else { - this.#modifiers &= ~bit; - } - } -} -export class PointerSource { - type = "pointer" /* SourceType.Pointer */; - subtype; - pointerId; - pressed = new Set(); - x = 0; - y = 0; - radiusX; - radiusY; - force; - constructor(id, subtype) { - this.pointerId = id; - this.subtype = subtype; - } - // This is a bitfield that matches the buttons parameter of - // https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchMouseEvent - get buttons() { - let buttons = 0; - for (const button of this.pressed) { - switch (button) { - case 0: - buttons |= 1; - break; - case 1: - buttons |= 4; - break; - case 2: - buttons |= 2; - break; - case 3: - buttons |= 8; - break; - case 4: - buttons |= 16; - break; - } - } - return buttons; - } - // --- Platform-specific code starts here --- - // Input.dispatchMouseEvent doesn't know the concept of double click, so we - // need to create the logic, similar to how it's done for OSes: - // https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:ui/events/event.cc;l=479 - static ClickContext = class ClickContext { - static #DOUBLE_CLICK_TIME_MS = 500; - static #MAX_DOUBLE_CLICK_RADIUS = 2; - count = 0; - #x; - #y; - #time; - constructor(x, y, time) { - this.#x = x; - this.#y = y; - this.#time = time; - } - compare(context) { - return ( - // The click needs to be within a certain amount of ms. - context.#time - this.#time > ClickContext.#DOUBLE_CLICK_TIME_MS || - // The click needs to be within a certain square radius. - Math.abs(context.#x - this.#x) > - ClickContext.#MAX_DOUBLE_CLICK_RADIUS || - Math.abs(context.#y - this.#y) > ClickContext.#MAX_DOUBLE_CLICK_RADIUS); - } - }; - #clickContexts = new Map(); - setClickCount(button, context) { - let storedContext = this.#clickContexts.get(button); - if (!storedContext || storedContext.compare(context)) { - storedContext = context; - } - ++storedContext.count; - this.#clickContexts.set(button, storedContext); - return storedContext.count; - } - getClickCount(button) { - return this.#clickContexts.get(button)?.count ?? 0; - } - /** - * Resets click count. Resets consequent click counter. Prevents grouping clicks in - * different `performActions` calls, so that they are not grouped as double, triple etc - * clicks. Required for https://github.com/GoogleChromeLabs/chromium-bidi/issues/3043. - */ - resetClickCount() { - this.#clickContexts = new Map(); - } -} -_a = PointerSource; -export class WheelSource { - type = "wheel" /* SourceType.Wheel */; -} -//# sourceMappingURL=InputSource.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputSource.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputSource.js.map deleted file mode 100644 index dd3346f..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputSource.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InputSource.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/InputSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;AAWH,MAAM,OAAO,UAAU;IACrB,IAAI,GAAG,4BAAwB,CAAC;CACjC;AACD,MAAM,OAAO,SAAS;IACpB,IAAI,GAAG,0BAAuB,CAAC;IAC/B,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAE5B,6DAA6D;IAC7D,wFAAwF;IACxF,UAAU,GAAG,CAAC,CAAC;IACf,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IACD,IAAI,GAAG;QACL,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IACD,IAAI,GAAG,CAAC,KAAc;QACpB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IACD,IAAI,IAAI;QACN,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IACD,IAAI,IAAI,CAAC,KA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G,IAAI,GAAG,EAGrB,CAAC;IAEJ,aAAa,CACX,MAAc,EACd,OAAwD;QAExD,IAAI,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACrD,aAAa,GAAG,OAAO,CAAC;QAC1B,CAAC;QACD,EAAE,aAAa,CAAC,KAAK,CAAC;QACtB,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;QAC/C,OAAO,aAAa,CAAC,KAAK,CAAC;IAC7B,CAAC;IAED,aAAa,CAAC,MAAc;QAC1B,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;IACrD,CAAC;IAED;;;;OAIG;IACH,eAAe;QACb,IAAI,CAAC,cAAc,GAAG,IAAI,GAAG,EAG1B,CAAC;IACN,CAAC;;;AAIH,MAAM,OAAO,WAAW;IACtB,IAAI,GAAG,8BAAyB,CAAC;CAClC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputState.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputState.d.ts deleted file mode 100644 index 13df972..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputState.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Input } from '../../../protocol/protocol.js'; -import { Mutex } from '../../../utils/Mutex.js'; -import type { ActionOption } from './ActionOption.js'; -import { KeySource, PointerSource, SourceType, type InputSource, type InputSourceFor } from './InputSource.js'; -export declare class InputState { - #private; - cancelList: ActionOption[]; - getOrCreate(id: string, type: SourceType.Pointer, subtype: Input.PointerType): PointerSource; - getOrCreate(id: string, type: Type): InputSourceFor; - get(id: string): InputSource; - getGlobalKeyState(): KeySource; - get queue(): Mutex; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputState.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputState.js deleted file mode 100644 index 772e392..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputState.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { InvalidArgumentException, UnknownErrorException, } from '../../../protocol/protocol.js'; -import { Mutex } from '../../../utils/Mutex.js'; -import { KeySource, NoneSource, PointerSource, WheelSource, } from './InputSource.js'; -export class InputState { - cancelList = []; - #sources = new Map(); - #mutex = new Mutex(); - getOrCreate(id, type, subtype) { - let source = this.#sources.get(id); - if (!source) { - switch (type) { - case "none" /* SourceType.None */: - source = new NoneSource(); - break; - case "key" /* SourceType.Key */: - source = new KeySource(); - break; - case "pointer" /* SourceType.Pointer */: { - let pointerId = subtype === "mouse" /* Input.PointerType.Mouse */ ? 0 : 2; - const pointerIds = new Set(); - for (const [, source] of this.#sources) { - if (source.type === "pointer" /* SourceType.Pointer */) { - pointerIds.add(source.pointerId); - } - } - while (pointerIds.has(pointerId)) { - ++pointerId; - } - source = new PointerSource(pointerId, subtype); - break; - } - case "wheel" /* SourceType.Wheel */: - source = new WheelSource(); - break; - default: - throw new InvalidArgumentException(`Expected "${"none" /* SourceType.None */}", "${"key" /* SourceType.Key */}", "${"pointer" /* SourceType.Pointer */}", or "${"wheel" /* SourceType.Wheel */}". Found unknown source type ${type}.`); - } - this.#sources.set(id, source); - return source; - } - if (source.type !== type) { - throw new InvalidArgumentException(`Input source type of ${id} is ${source.type}, but received ${type}.`); - } - return source; - } - get(id) { - const source = this.#sources.get(id); - if (!source) { - throw new UnknownErrorException(`Internal error.`); - } - return source; - } - getGlobalKeyState() { - const state = new KeySource(); - for (const [, source] of this.#sources) { - if (source.type !== "key" /* SourceType.Key */) { - continue; - } - for (const pressed of source.pressed) { - state.pressed.add(pressed); - } - state.alt ||= source.alt; - state.ctrl ||= source.ctrl; - state.meta ||= source.meta; - state.shift ||= source.shift; - } - return state; - } - get queue() { - return this.#mutex; - } -} -//# sourceMappingURL=InputState.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputState.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputState.js.map deleted file mode 100644 index c42812c..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputState.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InputState.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/InputState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAEL,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAG9C,OAAO,EACL,SAAS,EACT,UAAU,EACV,aAAa,EAEb,WAAW,GAGZ,MAAM,kBAAkB,CAAC;AAE1B,MAAM,OAAO,UAAU;IACrB,UAAU,GAAmB,EAAE,CAAC;IAChC,QAAQ,GAAG,IAA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StateManager.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputStateManager.d.ts deleted file mode 100644 index cc85660..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputStateManager.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; -import { InputState } from './InputState.js'; -export declare class InputStateManager extends WeakMap { - get(context: BrowsingContextImpl): InputState; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputStateManager.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputStateManager.js deleted file mode 100644 index 7961224..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputStateManager.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { assert } from '../../../utils/assert.js'; -import { InputState } from './InputState.js'; -// We use a weak map here as specified here: -// https://www.w3.org/TR/webdriver/#dfn-browsing-context-input-state-map -export class InputStateManager extends WeakMap { - get(context) { - assert(context.isTopLevelContext()); - if (!this.has(context)) { - this.set(context, new InputState()); - } - return super.get(context); - } -} -//# sourceMappingURL=InputStateManager.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputStateManager.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputStateManager.js.map deleted file mode 100644 index 43c3d18..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/InputStateManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InputStateManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/InputStateManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAGhD,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAE3C,4CAA4C;AAC5C,wEAAwE;AACxE,MAAM,OAAO,iBAAkB,SAAQ,OAGtC;IACU,GAAG,CAAC,OAA4B;QACvC,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;QAEpC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,UAAU,EAAE,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,KAAK,CAAC,GAAG,CAAC,OAAO,CAAE,CAAC;IAC7B,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/USKeyboardLayout.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/USKeyboardLayout.d.ts deleted file mode 100644 index 65077ad..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/USKeyboardLayout.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export declare const KeyToKeyCode: Record; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/USKeyboardLayout.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/USKeyboardLayout.js deleted file mode 100644 index 553d776..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/USKeyboardLayout.js +++ /dev/null @@ -1,271 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// TODO: Remove this once https://crrev.com/c/4548290 is stably in Chromium. -// `Input.dispatchKeyboardEvent` will automatically handle these conversions. -export const KeyToKeyCode = { - '0': 48, - '1': 49, - '2': 50, - '3': 51, - '4': 52, - '5': 53, - '6': 54, - '7': 55, - '8': 56, - '9': 57, - Abort: 3, - Help: 6, - Backspace: 8, - Tab: 9, - Numpad5: 12, - NumpadEnter: 13, - Enter: 13, - '\\r': 13, - '\\n': 13, - ShiftLeft: 16, - ShiftRight: 16, - ControlLeft: 17, - ControlRight: 17, - AltLeft: 18, - AltRight: 18, - Pause: 19, - CapsLock: 20, - Escape: 27, - Convert: 28, - NonConvert: 29, - Space: 32, - Numpad9: 33, - PageUp: 33, - Numpad3: 34, - PageDown: 34, - End: 35, - Numpad1: 35, - Home: 36, - Numpad7: 36, - ArrowLeft: 37, - Numpad4: 37, - Numpad8: 38, - ArrowUp: 38, - ArrowRight: 39, - Numpad6: 39, - Numpad2: 40, - ArrowDown: 40, - Select: 41, - Open: 43, - PrintScreen: 44, - Insert: 45, - Numpad0: 45, - Delete: 46, - NumpadDecimal: 46, - Digit0: 48, - Digit1: 49, - Digit2: 50, - Digit3: 51, - Digit4: 52, - Digit5: 53, - Digit6: 54, - Digit7: 55, - Digit8: 56, - Digit9: 57, - KeyA: 65, - KeyB: 66, - KeyC: 67, - KeyD: 68, - KeyE: 69, - KeyF: 70, - KeyG: 71, - KeyH: 72, - KeyI: 73, - KeyJ: 74, - KeyK: 75, - KeyL: 76, - KeyM: 77, - KeyN: 78, - KeyO: 79, - KeyP: 80, - KeyQ: 81, - KeyR: 82, - KeyS: 83, - KeyT: 84, - KeyU: 85, - KeyV: 86, - KeyW: 87, - KeyX: 88, - KeyY: 89, - KeyZ: 90, - MetaLeft: 91, - MetaRight: 92, - ContextMenu: 93, - NumpadMultiply: 106, - NumpadAdd: 107, - NumpadSubtract: 109, - NumpadDivide: 111, - F1: 112, - F2: 113, - F3: 114, - F4: 115, - F5: 116, - F6: 117, - F7: 118, - F8: 119, - F9: 120, - F10: 121, - F11: 122, - F12: 123, - F13: 124, - F14: 125, - F15: 126, - F16: 127, - F17: 128, - F18: 129, - F19: 130, - F20: 131, - F21: 132, - F22: 133, - F23: 134, - F24: 135, - NumLock: 144, - ScrollLock: 145, - AudioVolumeMute: 173, - AudioVolumeDown: 174, - AudioVolumeUp: 175, - MediaTrackNext: 176, - MediaTrackPrevious: 177, - MediaStop: 178, - MediaPlayPause: 179, - Semicolon: 186, - Equal: 187, - NumpadEqual: 187, - Comma: 188, - Minus: 189, - Period: 190, - Slash: 191, - Backquote: 192, - BracketLeft: 219, - Backslash: 220, - BracketRight: 221, - Quote: 222, - AltGraph: 225, - Props: 247, - Cancel: 3, - Clear: 12, - Shift: 16, - Control: 17, - Alt: 18, - Accept: 30, - ModeChange: 31, - ' ': 32, - Print: 42, - Execute: 43, - '\\u0000': 46, - a: 65, - b: 66, - c: 67, - d: 68, - e: 69, - f: 70, - g: 71, - h: 72, - i: 73, - j: 74, - k: 75, - l: 76, - m: 77, - n: 78, - o: 79, - p: 80, - q: 81, - r: 82, - s: 83, - t: 84, - u: 85, - v: 86, - w: 87, - x: 88, - y: 89, - z: 90, - Meta: 91, - '*': 106, - '+': 107, - '-': 109, - '/': 111, - ';': 186, - '=': 187, - ',': 188, - '.': 190, - '`': 192, - '[': 219, - '\\\\': 220, - ']': 221, - "'": 222, - Attn: 246, - CrSel: 247, - ExSel: 248, - EraseEof: 249, - Play: 250, - ZoomOut: 251, - ')': 48, - '!': 49, - '@': 50, - '#': 51, - $: 52, - '%': 53, - '^': 54, - '&': 55, - '(': 57, - A: 65, - B: 66, - C: 67, - D: 68, - E: 69, - F: 70, - G: 71, - H: 72, - I: 73, - J: 74, - K: 75, - L: 76, - M: 77, - N: 78, - O: 79, - P: 80, - Q: 81, - R: 82, - S: 83, - T: 84, - U: 85, - V: 86, - W: 87, - X: 88, - Y: 89, - Z: 90, - ':': 186, - '<': 188, - _: 189, - '>': 190, - '?': 191, - '~': 192, - '{': 219, - '|': 220, - '}': 221, - '"': 222, - Camera: 44, - EndCall: 95, - VolumeDown: 182, - VolumeUp: 183, -}; -//# sourceMappingURL=USKeyboardLayout.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/USKeyboardLayout.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/USKeyboardLayout.js.map deleted file mode 100644 index 5d68212..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/USKeyboardLayout.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"USKeyboardLayout.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/USKeyboardLayout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,4EAA4E;AAC5E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,YAA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AAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,CAAC,EAAE,GAAG;IACN,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,GAAG;CACd,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/keyUtils.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/keyUtils.d.ts deleted file mode 100644 index 8ec4097..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/keyUtils.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Returns the normalized key value for a given key according to the table: - * https://w3c.github.io/webdriver/#dfn-normalized-key-value - */ -export declare function getNormalizedKey(value: string): string; -/** - * Returns the key code for a given key according to the table: - * https://w3c.github.io/webdriver/#dfn-shifted-character - */ -export declare function getKeyCode(key: string): string | undefined; -/** - * Returns the location of the key according to the table: - * https://w3c.github.io/webdriver/#dfn-key-location - */ -export declare function getKeyLocation(key: string): 0 | 1 | 2 | 3; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/keyUtils.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/keyUtils.js deleted file mode 100644 index 6683eac..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/keyUtils.js +++ /dev/null @@ -1,492 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Returns the normalized key value for a given key according to the table: - * https://w3c.github.io/webdriver/#dfn-normalized-key-value - */ -export function getNormalizedKey(value) { - switch (value) { - case '\uE000': - return 'Unidentified'; - case '\uE001': - return 'Cancel'; - case '\uE002': - return 'Help'; - case '\uE003': - return 'Backspace'; - case '\uE004': - return 'Tab'; - case '\uE005': - return 'Clear'; - // Specification declares the '\uE006' to be `Return`, but it is not supported by - // Chrome, so fall back to `Enter`, which aligns with WPT. - case '\uE006': - case '\uE007': - return 'Enter'; - case '\uE008': - return 'Shift'; - case '\uE009': - return 'Control'; - case '\uE00A': - return 'Alt'; - case '\uE00B': - return 'Pause'; - case '\uE00C': - return 'Escape'; - case '\uE00D': - return ' '; - case '\uE00E': - return 'PageUp'; - case '\uE00F': - return 'PageDown'; - case '\uE010': - return 'End'; - case '\uE011': - return 'Home'; - case '\uE012': - return 'ArrowLeft'; - case '\uE013': - return 'ArrowUp'; - case '\uE014': - return 'ArrowRight'; - case '\uE015': - return 'ArrowDown'; - case '\uE016': - return 'Insert'; - case '\uE017': - return 'Delete'; - case '\uE018': - return ';'; - case '\uE019': - return '='; - case '\uE01A': - return '0'; - case '\uE01B': - return '1'; - case '\uE01C': - return '2'; - case '\uE01D': - return '3'; - case '\uE01E': - return '4'; - case '\uE01F': - return '5'; - case '\uE020': - return '6'; - case '\uE021': - return '7'; - case '\uE022': - return '8'; - case '\uE023': - return '9'; - case '\uE024': - return '*'; - case '\uE025': - return '+'; - case '\uE026': - return ','; - case '\uE027': - return '-'; - case '\uE028': - return '.'; - case '\uE029': - return '/'; - case '\uE031': - return 'F1'; - case '\uE032': - return 'F2'; - case '\uE033': - return 'F3'; - case '\uE034': - return 'F4'; - case '\uE035': - return 'F5'; - case '\uE036': - return 'F6'; - case '\uE037': - return 'F7'; - case '\uE038': - return 'F8'; - case '\uE039': - return 'F9'; - case '\uE03A': - return 'F10'; - case '\uE03B': - return 'F11'; - case '\uE03C': - return 'F12'; - case '\uE03D': - return 'Meta'; - case '\uE040': - return 'ZenkakuHankaku'; - case '\uE050': - return 'Shift'; - case '\uE051': - return 'Control'; - case '\uE052': - return 'Alt'; - case '\uE053': - return 'Meta'; - case '\uE054': - return 'PageUp'; - case '\uE055': - return 'PageDown'; - case '\uE056': - return 'End'; - case '\uE057': - return 'Home'; - case '\uE058': - return 'ArrowLeft'; - case '\uE059': - return 'ArrowUp'; - case '\uE05A': - return 'ArrowRight'; - case '\uE05B': - return 'ArrowDown'; - case '\uE05C': - return 'Insert'; - case '\uE05D': - return 'Delete'; - default: - return value; - } -} -/** - * Returns the key code for a given key according to the table: - * https://w3c.github.io/webdriver/#dfn-shifted-character - */ -export function getKeyCode(key) { - switch (key) { - case '`': - case '~': - return 'Backquote'; - case '\\': - case '|': - return 'Backslash'; - case '\uE003': - return 'Backspace'; - case '[': - case '{': - return 'BracketLeft'; - case ']': - case '}': - return 'BracketRight'; - case ',': - case '<': - return 'Comma'; - case '0': - case ')': - return 'Digit0'; - case '1': - case '!': - return 'Digit1'; - case '2': - case '@': - return 'Digit2'; - case '3': - case '#': - return 'Digit3'; - case '4': - case '$': - return 'Digit4'; - case '5': - case '%': - return 'Digit5'; - case '6': - case '^': - return 'Digit6'; - case '7': - case '&': - return 'Digit7'; - case '8': - case '*': - return 'Digit8'; - case '9': - case '(': - return 'Digit9'; - case '=': - case '+': - return 'Equal'; - // The spec declares the '<' to be `IntlBackslash` as well, but it is already covered - // in the `Comma` above. - case '>': - return 'IntlBackslash'; - case 'a': - case 'A': - return 'KeyA'; - case 'b': - case 'B': - return 'KeyB'; - case 'c': - case 'C': - return 'KeyC'; - case 'd': - case 'D': - return 'KeyD'; - case 'e': - case 'E': - return 'KeyE'; - case 'f': - case 'F': - return 'KeyF'; - case 'g': - case 'G': - return 'KeyG'; - case 'h': - case 'H': - return 'KeyH'; - case 'i': - case 'I': - return 'KeyI'; - case 'j': - case 'J': - return 'KeyJ'; - case 'k': - case 'K': - return 'KeyK'; - case 'l': - case 'L': - return 'KeyL'; - case 'm': - case 'M': - return 'KeyM'; - case 'n': - case 'N': - return 'KeyN'; - case 'o': - case 'O': - return 'KeyO'; - case 'p': - case 'P': - return 'KeyP'; - case 'q': - case 'Q': - return 'KeyQ'; - case 'r': - case 'R': - return 'KeyR'; - case 's': - case 'S': - return 'KeyS'; - case 't': - case 'T': - return 'KeyT'; - case 'u': - case 'U': - return 'KeyU'; - case 'v': - case 'V': - return 'KeyV'; - case 'w': - case 'W': - return 'KeyW'; - case 'x': - case 'X': - return 'KeyX'; - case 'y': - case 'Y': - return 'KeyY'; - case 'z': - case 'Z': - return 'KeyZ'; - case '-': - case '_': - return 'Minus'; - case '.': - return 'Period'; - case "'": - case '"': - return 'Quote'; - case ';': - case ':': - return 'Semicolon'; - case '/': - case '?': - return 'Slash'; - case '\uE00A': - return 'AltLeft'; - case '\uE052': - return 'AltRight'; - case '\uE009': - return 'ControlLeft'; - case '\uE051': - return 'ControlRight'; - case '\uE006': - return 'Enter'; - case '\uE00B': - return 'Pause'; - case '\uE03D': - return 'MetaLeft'; - case '\uE053': - return 'MetaRight'; - case '\uE008': - return 'ShiftLeft'; - case '\uE050': - return 'ShiftRight'; - case ' ': - case '\uE00D': - return 'Space'; - case '\uE004': - return 'Tab'; - case '\uE017': - return 'Delete'; - case '\uE010': - return 'End'; - case '\uE002': - return 'Help'; - case '\uE011': - return 'Home'; - case '\uE016': - return 'Insert'; - case '\uE00F': - return 'PageDown'; - case '\uE00E': - return 'PageUp'; - case '\uE015': - return 'ArrowDown'; - case '\uE012': - return 'ArrowLeft'; - case '\uE014': - return 'ArrowRight'; - case '\uE013': - return 'ArrowUp'; - case '\uE00C': - return 'Escape'; - case '\uE031': - return 'F1'; - case '\uE032': - return 'F2'; - case '\uE033': - return 'F3'; - case '\uE034': - return 'F4'; - case '\uE035': - return 'F5'; - case '\uE036': - return 'F6'; - case '\uE037': - return 'F7'; - case '\uE038': - return 'F8'; - case '\uE039': - return 'F9'; - case '\uE03A': - return 'F10'; - case '\uE03B': - return 'F11'; - case '\uE03C': - return 'F12'; - case '\uE019': - return 'NumpadEqual'; - case '\uE01A': - case '\uE05C': - return 'Numpad0'; - case '\uE01B': - case '\uE056': - return 'Numpad1'; - case '\uE01C': - case '\uE05B': - return 'Numpad2'; - case '\uE01D': - case '\uE055': - return 'Numpad3'; - case '\uE01E': - case '\uE058': - return 'Numpad4'; - case '\uE01F': - return 'Numpad5'; - case '\uE020': - case '\uE05A': - return 'Numpad6'; - case '\uE021': - case '\uE057': - return 'Numpad7'; - case '\uE022': - case '\uE059': - return 'Numpad8'; - case '\uE023': - case '\uE054': - return 'Numpad9'; - case '\uE025': - return 'NumpadAdd'; - case '\uE026': - return 'NumpadComma'; - case '\uE028': - case '\uE05D': - return 'NumpadDecimal'; - case '\uE029': - return 'NumpadDivide'; - case '\uE007': - return 'NumpadEnter'; - case '\uE024': - return 'NumpadMultiply'; - case '\uE027': - return 'NumpadSubtract'; - default: - return; - } -} -/** - * Returns the location of the key according to the table: - * https://w3c.github.io/webdriver/#dfn-key-location - */ -export function getKeyLocation(key) { - switch (key) { - case '\uE007': - case '\uE008': - case '\uE009': - case '\uE00A': - case '\uE03D': - return 1; - case '\uE019': - case '\uE01A': - case '\uE01B': - case '\uE01C': - case '\uE01D': - case '\uE01E': - case '\uE01F': - case '\uE020': - case '\uE021': - case '\uE022': - case '\uE023': - case '\uE024': - case '\uE025': - case '\uE026': - case '\uE027': - case '\uE028': - case '\uE029': - case '\uE054': - case '\uE055': - case '\uE056': - case '\uE057': - case '\uE058': - case '\uE059': - case '\uE05A': - case '\uE05B': - case '\uE05C': - case '\uE05D': - return 3; - case '\uE050': - case '\uE051': - case '\uE052': - case '\uE053': - return 2; - default: - return 0; - } -} -//# sourceMappingURL=keyUtils.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/keyUtils.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/keyUtils.js.map deleted file mode 100644 index 35ee621..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/input/keyUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keyUtils.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/input/keyUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,cAAc,CAAC;QACxB,KAAK,QAAQ;YACX,OAAO,QAAQ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E,OAAO;IACX,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,QAAQ,GAAG,EAAE,CAAC;QACZ,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,CAAC,CAAC;QACX,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,CAAC,CAAC;QACX,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,CAAC,CAAC;QACX;YACE,OAAO,CAAC,CAAC;IACb,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/LogManager.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/LogManager.d.ts deleted file mode 100644 index 1043492..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/LogManager.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { type LoggerFn } from '../../../utils/log.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { RealmStorage } from '../script/RealmStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -export declare class LogManager { - #private; - private constructor(); - static create(cdpTarget: CdpTarget, realmStorage: RealmStorage, eventManager: EventManager, logger?: LoggerFn): LogManager; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/LogManager.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/LogManager.js deleted file mode 100644 index eb5bcca..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/LogManager.js +++ /dev/null @@ -1,183 +0,0 @@ -var _a; -import { ChromiumBidi } from '../../../protocol/protocol.js'; -import { LogType } from '../../../utils/log.js'; -import { getRemoteValuesText } from './logHelper.js'; -/** Converts CDP StackTrace object to BiDi StackTrace object. */ -function getBidiStackTrace(cdpStackTrace) { - const stackFrames = cdpStackTrace?.callFrames.map((callFrame) => { - return { - columnNumber: callFrame.columnNumber, - functionName: callFrame.functionName, - lineNumber: callFrame.lineNumber, - url: callFrame.url, - }; - }); - return stackFrames ? { callFrames: stackFrames } : undefined; -} -function getLogLevel(consoleApiType) { - if (["error" /* Log.Level.Error */, 'assert'].includes(consoleApiType)) { - return "error" /* Log.Level.Error */; - } - if (["debug" /* Log.Level.Debug */, 'trace'].includes(consoleApiType)) { - return "debug" /* Log.Level.Debug */; - } - if (["warn" /* Log.Level.Warn */, 'warning'].includes(consoleApiType)) { - return "warn" /* Log.Level.Warn */; - } - return "info" /* Log.Level.Info */; -} -function getLogMethod(consoleApiType) { - switch (consoleApiType) { - case 'warning': - return 'warn'; - case 'startGroup': - return 'group'; - case 'startGroupCollapsed': - return 'groupCollapsed'; - case 'endGroup': - return 'groupEnd'; - } - return consoleApiType; -} -export class LogManager { - #eventManager; - #realmStorage; - #cdpTarget; - #logger; - constructor(cdpTarget, realmStorage, eventManager, logger) { - this.#cdpTarget = cdpTarget; - this.#realmStorage = realmStorage; - this.#eventManager = eventManager; - this.#logger = logger; - } - static create(cdpTarget, realmStorage, eventManager, logger) { - const logManager = new _a(cdpTarget, realmStorage, eventManager, logger); - logManager.#initializeEntryAddedEventListener(); - return logManager; - } - /** - * Heuristic serialization of CDP remote object. If possible, return the BiDi value - * without deep serialization. - */ - async #heuristicSerializeArg(arg, realm) { - switch (arg.type) { - // TODO: Implement regexp, array, object, map and set heuristics base on - // preview. - case 'undefined': - return { type: 'undefined' }; - case 'boolean': - return { type: 'boolean', value: arg.value }; - case 'string': - return { type: 'string', value: arg.value }; - case 'number': - // The value can be either a number or a string like `Infinity` or `-0`. - return { type: 'number', value: arg.unserializableValue ?? arg.value }; - case 'bigint': - if (arg.unserializableValue !== undefined && - arg.unserializableValue[arg.unserializableValue.length - 1] === 'n') { - return { - type: arg.type, - value: arg.unserializableValue.slice(0, -1), - }; - } - // Unexpected bigint value, fall back to CDP deep serialization. - break; - case 'object': - if (arg.subtype === 'null') { - return { type: 'null' }; - } - // Fall back to CDP deep serialization. - break; - default: - // Fall back to CDP deep serialization. - break; - } - // Fall back to CDP deep serialization. - return await realm.serializeCdpObject(arg, "none" /* Script.ResultOwnership.None */); - } - #initializeEntryAddedEventListener() { - this.#cdpTarget.cdpClient.on('Runtime.consoleAPICalled', (params) => { - // Try to find realm by `cdpSessionId` and `executionContextId`, - // if provided. - const realm = this.#realmStorage.findRealm({ - cdpSessionId: this.#cdpTarget.cdpSessionId, - executionContextId: params.executionContextId, - }); - if (realm === undefined) { - // Ignore exceptions not attached to any realm. - this.#logger?.(LogType.cdp, params); - return; - } - const argsPromise = Promise.all(params.args.map((arg) => this.#heuristicSerializeArg(arg, realm))); - for (const browsingContext of realm.associatedBrowsingContexts) { - this.#eventManager.registerPromiseEvent(argsPromise.then((args) => ({ - kind: 'success', - value: { - type: 'event', - method: ChromiumBidi.Log.EventNames.LogEntryAdded, - params: { - level: getLogLevel(params.type), - source: realm.source, - text: getRemoteValuesText(args, true), - timestamp: Math.round(params.timestamp), - stackTrace: getBidiStackTrace(params.stackTrace), - type: 'console', - method: getLogMethod(params.type), - args, - }, - }, - }), (error) => ({ - kind: 'error', - error, - })), browsingContext.id, ChromiumBidi.Log.EventNames.LogEntryAdded); - } - }); - this.#cdpTarget.cdpClient.on('Runtime.exceptionThrown', (params) => { - // Try to find realm by `cdpSessionId` and `executionContextId`, - // if provided. - const realm = this.#realmStorage.findRealm({ - cdpSessionId: this.#cdpTarget.cdpSessionId, - executionContextId: params.exceptionDetails.executionContextId, - }); - if (realm === undefined) { - // Ignore exceptions not attached to any realm. - this.#logger?.(LogType.cdp, params); - return; - } - for (const browsingContext of realm.associatedBrowsingContexts) { - this.#eventManager.registerPromiseEvent(_a.#getExceptionText(params, realm).then((text) => ({ - kind: 'success', - value: { - type: 'event', - method: ChromiumBidi.Log.EventNames.LogEntryAdded, - params: { - level: "error" /* Log.Level.Error */, - source: realm.source, - text, - timestamp: Math.round(params.timestamp), - stackTrace: getBidiStackTrace(params.exceptionDetails.stackTrace), - type: 'javascript', - }, - }, - }), (error) => ({ - kind: 'error', - error, - })), browsingContext.id, ChromiumBidi.Log.EventNames.LogEntryAdded); - } - }); - } - /** - * Try the best to get the exception text. - */ - static async #getExceptionText(params, realm) { - if (!params.exceptionDetails.exception) { - return params.exceptionDetails.text; - } - if (realm === undefined) { - return JSON.stringify(params.exceptionDetails.exception); - } - return await realm.stringifyObject(params.exceptionDetails.exception); - } -} -_a = LogManager; -//# sourceMappingURL=LogManager.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/LogManager.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/LogManager.js.map deleted file mode 100644 index e076f2f..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/LogManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LogManager.js","s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,CAAC,IAAI,CAAC;QACtC,CAAC;QACD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,MAAM,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACxE,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/logHelper.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/logHelper.d.ts deleted file mode 100644 index 61f9e4f..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/logHelper.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Script } from '../../../protocol/protocol.js'; -/** - * @param args input remote values to be format printed - * @return parsed text of the remote values in specific format - */ -export declare function logMessageFormatter(args: Script.RemoteValue[]): string; -export declare function getRemoteValuesText(args: Script.RemoteValue[], formatText: boolean): string; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/logHelper.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/logHelper.js deleted file mode 100644 index b9d7c67..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/logHelper.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * Copyright 2022 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { assert } from '../../../utils/assert.js'; -const specifiers = ['%s', '%d', '%i', '%f', '%o', '%O', '%c']; -function isFormatSpecifier(str) { - return specifiers.some((spec) => str.includes(spec)); -} -/** - * @param args input remote values to be format printed - * @return parsed text of the remote values in specific format - */ -export function logMessageFormatter(args) { - let output = ''; - const argFormat = args[0].value.toString(); - const argValues = args.slice(1, undefined); - const tokens = argFormat.split(new RegExp(specifiers.map((spec) => `(${spec})`).join('|'), 'g')); - for (const token of tokens) { - if (token === undefined || token === '') { - continue; - } - if (isFormatSpecifier(token)) { - const arg = argValues.shift(); - // raise an exception when less value is provided - assert(arg, `Less value is provided: "${getRemoteValuesText(args, false)}"`); - if (token === '%s') { - output += stringFromArg(arg); - } - else if (token === '%d' || token === '%i') { - if (arg.type === 'bigint' || - arg.type === 'number' || - arg.type === 'string') { - output += parseInt(arg.value.toString(), 10); - } - else { - output += 'NaN'; - } - } - else if (token === '%f') { - if (arg.type === 'bigint' || - arg.type === 'number' || - arg.type === 'string') { - output += parseFloat(arg.value.toString()); - } - else { - output += 'NaN'; - } - } - else { - // %o, %O, %c - output += toJson(arg); - } - } - else { - output += token; - } - } - // raise an exception when more value is provided - if (argValues.length > 0) { - throw new Error(`More value is provided: "${getRemoteValuesText(args, false)}"`); - } - return output; -} -/** - * @param arg input remote value to be parsed - * @return parsed text of the remote value - * - * input: {"type": "number", "value": 1} - * output: 1 - * - * input: {"type": "string", "value": "abc"} - * output: "abc" - * - * input: {"type": "object", "value": [["id", {"type": "number", "value": 1}]]} - * output: '{"id": 1}' - * - * input: {"type": "object", "value": [["font-size", {"type": "string", "value": "20px"}]]} - * output: '{"font-size": "20px"}' - */ -function toJson(arg) { - // arg type validation - if (arg.type !== 'array' && - arg.type !== 'bigint' && - arg.type !== 'date' && - arg.type !== 'number' && - arg.type !== 'object' && - arg.type !== 'string') { - return stringFromArg(arg); - } - if (arg.type === 'bigint') { - return `${arg.value.toString()}n`; - } - if (arg.type === 'number') { - return arg.value.toString(); - } - if (['date', 'string'].includes(arg.type)) { - return JSON.stringify(arg.value); - } - if (arg.type === 'object') { - return `{${arg.value - .map((pair) => { - return `${JSON.stringify(pair[0])}:${toJson(pair[1])}`; - }) - .join(',')}}`; - } - if (arg.type === 'array') { - return `[${arg.value?.map((val) => toJson(val)).join(',') ?? ''}]`; - } - throw Error(`Invalid value type: ${arg}`); -} -function stringFromArg(arg) { - if (!Object.hasOwn(arg, 'value')) { - return arg.type; - } - switch (arg.type) { - case 'string': - case 'number': - case 'boolean': - case 'bigint': - return String(arg.value); - case 'regexp': - return `/${arg.value.pattern}/${arg.value.flags ?? ''}`; - case 'date': - return new Date(arg.value).toString(); - case 'object': - return `Object(${arg.value?.length ?? ''})`; - case 'array': - return `Array(${arg.value?.length ?? ''})`; - case 'map': - return `Map(${arg.value?.length})`; - case 'set': - return `Set(${arg.value?.length})`; - default: - return arg.type; - } -} -export function getRemoteValuesText(args, formatText) { - const arg = args[0]; - if (!arg) { - return ''; - } - // if args[0] is a format specifier, format the args as output - if (arg.type === 'string' && - isFormatSpecifier(arg.value.toString()) && - formatText) { - return logMessageFormatter(args); - } - // if args[0] is not a format specifier, just join the args with \u0020 (unicode 'SPACE') - return args - .map((arg) => { - return stringFromArg(arg); - }) - .join('\u0020'); -} -//# sourceMappingURL=logHelper.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/logHelper.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/logHelper.js.map deleted file mode 100644 index f88c24f..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/log/logHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logHelper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AAC,CAAC,CAAC;IAEpB,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,8DAA8D;IAC9D,IACE,GAAG,CAAC,IAAI,KAAK,QAAQ;QACrB,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACvC,UAAU,EACV,CAAC;QACD,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,yFAAyF;IACzF,OAAO,IAAI;SACR,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACX,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC,CAAC;SACD,IAAI,CAAC,QAAQ,CAAC,CAAC;AACpB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/CollectorsStorage.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/CollectorsStorage.d.ts deleted file mode 100644 index 588dd29..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/CollectorsStorage.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Browser, BrowsingContext } from '../../../protocol/generated/webdriver-bidi.js'; -import { Network } from '../../../protocol/generated/webdriver-bidi.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { NetworkRequest } from './NetworkRequest.js'; -export declare class CollectorsStorage { - #private; - constructor(maxEncodedDataSize: number, logger?: LoggerFn); - addDataCollector(params: Network.AddDataCollectorParameters): `${string}-${string}-${string}-${string}-${string}`; - isCollected(requestId: Network.Request, dataType?: Network.DataType, collectorId?: string): boolean; - disownData(requestId: Network.Request, dataType: Network.DataType, collectorId?: string): void; - collectIfNeeded(request: NetworkRequest, dataType: Network.DataType, topLevelBrowsingContext: BrowsingContext.BrowsingContext, userContext: Browser.UserContext): void; - removeDataCollector(collectorId: Network.Collector): Network.Request[]; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/CollectorsStorage.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/CollectorsStorage.js deleted file mode 100644 index 5999fb7..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/CollectorsStorage.js +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright 2025 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { InvalidArgumentException, NoSuchNetworkCollectorException, UnsupportedOperationException, } from '../../../protocol/ErrorResponse.js'; -import { LogType } from '../../../utils/log.js'; -import { uuidv4 } from '../../../utils/uuid.js'; -export class CollectorsStorage { - #collectors = new Map(); - #responseCollectors = new Map(); - #requestBodyCollectors = new Map(); - #maxEncodedDataSize; - #logger; - constructor(maxEncodedDataSize, logger) { - this.#maxEncodedDataSize = maxEncodedDataSize; - this.#logger = logger; - } - addDataCollector(params) { - if (params.maxEncodedDataSize < 1 || - params.maxEncodedDataSize > this.#maxEncodedDataSize) { - // 200 MB is the default limit in CDP: - // https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/inspector/inspector_network_agent.cc;drc=da1f749634c9a401cc756f36c2e6ce233e1c9b4d;l=133 - throw new InvalidArgumentException(`Max encoded data size should be between 1 and ${this.#maxEncodedDataSize}`); - } - const collectorId = uuidv4(); - this.#collectors.set(collectorId, params); - return collectorId; - } - isCollected(requestId, dataType, collectorId) { - if (collectorId !== undefined && !this.#collectors.has(collectorId)) { - throw new NoSuchNetworkCollectorException(`Unknown collector ${collectorId}`); - } - if (dataType === undefined) { - return (this.isCollected(requestId, "response" /* Network.DataType.Response */, collectorId) || - this.isCollected(requestId, "request" /* Network.DataType.Request */, collectorId)); - } - const requestToCollectorsMap = this.#getRequestToCollectorMap(dataType).get(requestId); - if (requestToCollectorsMap === undefined || - requestToCollectorsMap.size === 0) { - return false; - } - if (collectorId === undefined) { - // There is at least 1 collector for the data. - return true; - } - if (!requestToCollectorsMap.has(collectorId)) { - return false; - } - return true; - } - #getRequestToCollectorMap(dataType) { - switch (dataType) { - case "response" /* Network.DataType.Response */: - return this.#responseCollectors; - case "request" /* Network.DataType.Request */: - return this.#requestBodyCollectors; - default: - throw new UnsupportedOperationException(`Unsupported data type ${dataType}`); - } - } - disownData(requestId, dataType, collectorId) { - const requestToCollectorsMap = this.#getRequestToCollectorMap(dataType); - if (collectorId !== undefined) { - requestToCollectorsMap.get(requestId)?.delete(collectorId); - } - if (collectorId === undefined || - requestToCollectorsMap.get(requestId)?.size === 0) { - requestToCollectorsMap.delete(requestId); - } - } - #shouldCollectRequest(collectorId, request, dataType, topLevelBrowsingContext, userContext) { - const collector = this.#collectors.get(collectorId); - if (collector === undefined) { - throw new NoSuchNetworkCollectorException(`Unknown collector ${collectorId}`); - } - if (collector.userContexts && - !collector.userContexts.includes(userContext)) { - // Collector is aimed for a different user context. - return false; - } - if (collector.contexts && - !collector.contexts.includes(topLevelBrowsingContext)) { - // Collector is aimed for a different top-level browsing context. - return false; - } - if (!collector.dataTypes.includes(dataType)) { - // Collector is aimed for a different data type. - return false; - } - if (dataType === "request" /* Network.DataType.Request */ && - request.bodySize > collector.maxEncodedDataSize) { - this.#logger?.(LogType.debug, `Request's ${request.id} body size is too big for the collector ${collectorId}`); - return false; - } - if (dataType === "response" /* Network.DataType.Response */ && - request.encodedResponseBodySize > collector.maxEncodedDataSize) { - this.#logger?.(LogType.debug, `Request's ${request.id} response is too big for the collector ${collectorId}`); - return false; - } - this.#logger?.(LogType.debug, `Collector ${collectorId} collected ${dataType} of ${request.id}`); - return true; - } - collectIfNeeded(request, dataType, topLevelBrowsingContext, userContext) { - const collectorIds = [...this.#collectors.keys()].filter((collectorId) => this.#shouldCollectRequest(collectorId, request, dataType, topLevelBrowsingContext, userContext)); - if (collectorIds.length > 0) { - this.#getRequestToCollectorMap(dataType).set(request.id, new Set(collectorIds)); - } - } - removeDataCollector(collectorId) { - if (!this.#collectors.has(collectorId)) { - throw new NoSuchNetworkCollectorException(`Collector ${collectorId} does not exist`); - } - this.#collectors.delete(collectorId); - const affectedRequests = []; - // Clean up collected responses. - for (const [requestId, collectorIds] of this.#responseCollectors) { - if (collectorIds.has(collectorId)) { - collectorIds.delete(collectorId); - if (collectorIds.size === 0) { - this.#responseCollectors.delete(requestId); - affectedRequests.push(requestId); - } - } - } - for (const [requestId, collectorIds] of this.#requestBodyCollectors) { - if (collectorIds.has(collectorId)) { - collectorIds.delete(collectorId); - if (collectorIds.size === 0) { - this.#requestBodyCollectors.delete(requestId); - affectedRequests.push(requestId); - } - } - } - return affectedRequests; - } -} -//# sourceMappingURL=CollectorsStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/CollectorsStorage.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/CollectorsStorage.js.map deleted file mode 100644 index 5d19762..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/CollectorsStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CollectorsStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/network/CollectorsStorage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,6BAA6B,GAC9B,MAAM,oCAAoC,CAAC;AAM5C,OAAO,EAAgB,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,MAAM,EAAC,MAAM,wBAAwB,CAAC;AAM9C,MAAM,OAAO,iBAAiB;IACnB,WAAW,GAAG,IAAI,GAAG,EAA4B,CAAC;IAClD,mBAAmB,GAAG,IAAI,GAAG,EAAgC,C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W,CAAC,CAAC;gBACjC,IAAI,YAAY,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;oBAC5B,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;oBAC9C,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACnC,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkProcessor.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkProcessor.d.ts deleted file mode 100644 index fbc29a4..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkProcessor.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { Protocol } from 'devtools-protocol'; -import { Network, type EmptyResult } from '../../../protocol/protocol.js'; -import type { ContextConfigStorage } from '../browser/ContextConfigStorage.js'; -import type { UserContextStorage } from '../browser/UserContextStorage.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { NetworkStorage } from './NetworkStorage.js'; -import { type ParsedUrlPattern } from './NetworkUtils.js'; -/** Dispatches Network module commands. */ -export declare class NetworkProcessor { - #private; - constructor(browsingContextStorage: BrowsingContextStorage, networkStorage: NetworkStorage, userContextStorage: UserContextStorage, contextConfigStorage: ContextConfigStorage); - addIntercept(params: Network.AddInterceptParameters): Promise; - continueRequest(params: Network.ContinueRequestParameters): Promise; - continueResponse(params: Network.ContinueResponseParameters): Promise; - continueWithAuth(params: Network.ContinueWithAuthParameters): Promise; - failRequest({ request: networkId, }: Network.FailRequestParameters): Promise; - provideResponse(params: Network.ProvideResponseParameters): Promise; - removeIntercept(params: Network.RemoveInterceptParameters): Promise; - setCacheBehavior(params: Network.SetCacheBehaviorParameters): Promise; - /** - * Validate https://fetch.spec.whatwg.org/#header-value - */ - static validateHeaders(headers: Network.Header[]): void; - static isMethodValid(method: string): boolean; - /** - * Attempts to parse the given url. - * Throws an InvalidArgumentException if the url is invalid. - */ - static parseUrlString(url: string): URL; - static parseUrlPatterns(urlPatterns: Network.UrlPattern[]): ParsedUrlPattern[]; - static wrapInterceptionError(error: any): any; - addDataCollector(params: Network.AddDataCollectorParameters): Promise; - getData(params: Network.GetDataParameters): Promise; - removeDataCollector(params: Network.RemoveDataCollectorParameters): Promise; - disownData(params: Network.DisownDataParameters): EmptyResult; - setExtraHeaders(params: Network.SetExtraHeadersParameters): Promise; -} -export declare function parseBiDiHeaders(headers: Network.Header[]): Protocol.Network.Headers; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkProcessor.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkProcessor.js deleted file mode 100644 index d9a6b0b..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkProcessor.js +++ /dev/null @@ -1,541 +0,0 @@ -/** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { NoSuchRequestException, InvalidArgumentException, UnsupportedOperationException, } from '../../../protocol/protocol.js'; -import { isSpecialScheme } from './NetworkUtils.js'; -/** Dispatches Network module commands. */ -export class NetworkProcessor { - #browsingContextStorage; - #networkStorage; - #userContextStorage; - #contextConfigStorage; - constructor(browsingContextStorage, networkStorage, userContextStorage, contextConfigStorage) { - this.#userContextStorage = userContextStorage; - this.#browsingContextStorage = browsingContextStorage; - this.#networkStorage = networkStorage; - this.#contextConfigStorage = contextConfigStorage; - } - async addIntercept(params) { - this.#browsingContextStorage.verifyTopLevelContextsList(params.contexts); - const urlPatterns = params.urlPatterns ?? []; - const parsedUrlPatterns = NetworkProcessor.parseUrlPatterns(urlPatterns); - const intercept = this.#networkStorage.addIntercept({ - urlPatterns: parsedUrlPatterns, - phases: params.phases, - contexts: params.contexts, - }); - // Adding interception may require enabling CDP Network domains. - await this.#toggleNetwork(); - return { - intercept, - }; - } - async continueRequest(params) { - if (params.url !== undefined) { - NetworkProcessor.parseUrlString(params.url); - } - if (params.method !== undefined) { - if (!NetworkProcessor.isMethodValid(params.method)) { - throw new InvalidArgumentException(`Method '${params.method}' is invalid.`); - } - } - if (params.headers) { - NetworkProcessor.validateHeaders(params.headers); - } - const request = this.#getBlockedRequestOrFail(params.request, [ - "beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */, - ]); - try { - await request.continueRequest(params); - } - catch (error) { - throw NetworkProcessor.wrapInterceptionError(error); - } - return {}; - } - async continueResponse(params) { - if (params.headers) { - NetworkProcessor.validateHeaders(params.headers); - } - const request = this.#getBlockedRequestOrFail(params.request, [ - "authRequired" /* Network.InterceptPhase.AuthRequired */, - "responseStarted" /* Network.InterceptPhase.ResponseStarted */, - ]); - try { - await request.continueResponse(params); - } - catch (error) { - throw NetworkProcessor.wrapInterceptionError(error); - } - return {}; - } - async continueWithAuth(params) { - const networkId = params.request; - const request = this.#getBlockedRequestOrFail(networkId, [ - "authRequired" /* Network.InterceptPhase.AuthRequired */, - ]); - await request.continueWithAuth(params); - return {}; - } - async failRequest({ request: networkId, }) { - const request = this.#getRequestOrFail(networkId); - if (request.interceptPhase === "authRequired" /* Network.InterceptPhase.AuthRequired */) { - throw new InvalidArgumentException(`Request '${networkId}' in 'authRequired' phase cannot be failed`); - } - if (!request.interceptPhase) { - throw new NoSuchRequestException(`No blocked request found for network id '${networkId}'`); - } - await request.failRequest('Failed'); - return {}; - } - async provideResponse(params) { - if (params.headers) { - NetworkProcessor.validateHeaders(params.headers); - } - const request = this.#getBlockedRequestOrFail(params.request, [ - "beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */, - "responseStarted" /* Network.InterceptPhase.ResponseStarted */, - "authRequired" /* Network.InterceptPhase.AuthRequired */, - ]); - try { - await request.provideResponse(params); - } - catch (error) { - throw NetworkProcessor.wrapInterceptionError(error); - } - return {}; - } - /** - * In some states CDP Network and Fetch domains are not required, but in some they have - * to be updated. Whenever potential change in these kinds of states is introduced, - * update the states of all the CDP targets. - */ - async #toggleNetwork() { - await Promise.all(this.#browsingContextStorage.getAllContexts().map((context) => { - return context.cdpTarget.toggleNetwork(); - })); - } - async removeIntercept(params) { - this.#networkStorage.removeIntercept(params.intercept); - // Removing interception may allow for disabling CDP Network domains. - await this.#toggleNetwork(); - return {}; - } - async setCacheBehavior(params) { - const contexts = this.#browsingContextStorage.verifyTopLevelContextsList(params.contexts); - // Change all targets - if (contexts.size === 0) { - this.#networkStorage.defaultCacheBehavior = params.cacheBehavior; - await Promise.all(this.#browsingContextStorage.getAllContexts().map((context) => { - return context.cdpTarget.toggleSetCacheDisabled(); - })); - return {}; - } - const cacheDisabled = params.cacheBehavior === 'bypass'; - await Promise.all([...contexts.values()].map((context) => { - return context.cdpTarget.toggleSetCacheDisabled(cacheDisabled); - })); - return {}; - } - #getRequestOrFail(id) { - const request = this.#networkStorage.getRequestById(id); - if (!request) { - throw new NoSuchRequestException(`Network request with ID '${id}' doesn't exist`); - } - return request; - } - #getBlockedRequestOrFail(id, phases) { - const request = this.#getRequestOrFail(id); - if (!request.interceptPhase) { - throw new NoSuchRequestException(`No blocked request found for network id '${id}'`); - } - if (request.interceptPhase && !phases.includes(request.interceptPhase)) { - throw new InvalidArgumentException(`Blocked request for network id '${id}' is in '${request.interceptPhase}' phase`); - } - return request; - } - /** - * Validate https://fetch.spec.whatwg.org/#header-value - */ - static validateHeaders(headers) { - for (const header of headers) { - let headerValue; - if (header.value.type === 'string') { - headerValue = header.value.value; - } - else { - headerValue = atob(header.value.value); - } - if (headerValue !== headerValue.trim() || - headerValue.includes('\n') || - headerValue.includes('\0')) { - throw new InvalidArgumentException(`Header value '${headerValue}' is not acceptable value`); - } - } - } - static isMethodValid(method) { - // https://httpwg.org/specs/rfc9110.html#method.overview - return /^[!#$%&'*+\-.^_`|~a-zA-Z\d]+$/.test(method); - } - /** - * Attempts to parse the given url. - * Throws an InvalidArgumentException if the url is invalid. - */ - static parseUrlString(url) { - try { - return new URL(url); - } - catch (error) { - throw new InvalidArgumentException(`Invalid URL '${url}': ${error}`); - } - } - static parseUrlPatterns(urlPatterns) { - return urlPatterns.map((urlPattern) => { - let patternUrl = ''; - let hasProtocol = true; - let hasHostname = true; - let hasPort = true; - let hasPathname = true; - let hasSearch = true; - switch (urlPattern.type) { - case 'string': { - patternUrl = unescapeURLPattern(urlPattern.pattern); - break; - } - case 'pattern': { - if (urlPattern.protocol === undefined) { - hasProtocol = false; - patternUrl += 'http'; - } - else { - if (urlPattern.protocol === '') { - throw new InvalidArgumentException('URL pattern must specify a protocol'); - } - urlPattern.protocol = unescapeURLPattern(urlPattern.protocol); - if (!urlPattern.protocol.match(/^[a-zA-Z+-.]+$/)) { - throw new InvalidArgumentException('Forbidden characters'); - } - patternUrl += urlPattern.protocol; - } - const scheme = patternUrl.toLocaleLowerCase(); - patternUrl += ':'; - if (isSpecialScheme(scheme)) { - patternUrl += '//'; - } - if (urlPattern.hostname === undefined) { - if (scheme !== 'file') { - patternUrl += 'placeholder'; - } - hasHostname = false; - } - else { - if (urlPattern.hostname === '') { - throw new InvalidArgumentException('URL pattern must specify a hostname'); - } - if (urlPattern.protocol === 'file') { - throw new InvalidArgumentException(`URL pattern protocol cannot be 'file'`); - } - urlPattern.hostname = unescapeURLPattern(urlPattern.hostname); - let insideBrackets = false; - for (const c of urlPattern.hostname) { - if (c === '/' || c === '?' || c === '#') { - throw new InvalidArgumentException(`'/', '?', '#' are forbidden in hostname`); - } - if (!insideBrackets && c === ':') { - throw new InvalidArgumentException(`':' is only allowed inside brackets in hostname`); - } - if (c === '[') { - insideBrackets = true; - } - if (c === ']') { - insideBrackets = false; - } - } - patternUrl += urlPattern.hostname; - } - if (urlPattern.port === undefined) { - hasPort = false; - } - else { - if (urlPattern.port === '') { - throw new InvalidArgumentException(`URL pattern must specify a port`); - } - urlPattern.port = unescapeURLPattern(urlPattern.port); - patternUrl += ':'; - if (!urlPattern.port.match(/^\d+$/)) { - throw new InvalidArgumentException('Forbidden characters'); - } - patternUrl += urlPattern.port; - } - if (urlPattern.pathname === undefined) { - hasPathname = false; - } - else { - urlPattern.pathname = unescapeURLPattern(urlPattern.pathname); - if (urlPattern.pathname[0] !== '/') { - patternUrl += '/'; - } - if (urlPattern.pathname.includes('#') || - urlPattern.pathname.includes('?')) { - throw new InvalidArgumentException('Forbidden characters'); - } - patternUrl += urlPattern.pathname; - } - if (urlPattern.search === undefined) { - hasSearch = false; - } - else { - urlPattern.search = unescapeURLPattern(urlPattern.search); - if (urlPattern.search[0] !== '?') { - patternUrl += '?'; - } - if (urlPattern.search.includes('#')) { - throw new InvalidArgumentException('Forbidden characters'); - } - patternUrl += urlPattern.search; - } - break; - } - } - const serializePort = (url) => { - const defaultPorts = { - 'ftp:': 21, - 'file:': null, - 'http:': 80, - 'https:': 443, - 'ws:': 80, - 'wss:': 443, - }; - if (isSpecialScheme(url.protocol) && - defaultPorts[url.protocol] !== null && - (!url.port || String(defaultPorts[url.protocol]) === url.port)) { - return ''; - } - else if (url.port) { - return url.port; - } - return undefined; - }; - try { - const url = new URL(patternUrl); - return { - protocol: hasProtocol ? url.protocol.replace(/:$/, '') : undefined, - hostname: hasHostname ? url.hostname : undefined, - port: hasPort ? serializePort(url) : undefined, - pathname: hasPathname && url.pathname ? url.pathname : undefined, - search: hasSearch ? url.search : undefined, - }; - } - catch (err) { - throw new InvalidArgumentException(`${err.message} '${patternUrl}'`); - } - }); - } - static wrapInterceptionError(error) { - // https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/fetch_handler.cc;l=169 - if (error?.message.includes('Invalid header') || - error?.message.includes('Unsafe header')) { - return new InvalidArgumentException(error.message); - } - return error; - } - async addDataCollector(params) { - if (params.userContexts !== undefined && params.contexts !== undefined) { - throw new InvalidArgumentException("'contexts' and 'userContexts' are mutually exclusive"); - } - if (params.userContexts !== undefined) { - // Assert the user contexts exist. - await this.#userContextStorage.verifyUserContextIdList(params.userContexts); - } - if (params.contexts !== undefined) { - for (const browsingContextId of params.contexts) { - // Assert the browsing context exists and are top-level. - const browsingContext = this.#browsingContextStorage.getContext(browsingContextId); - if (!browsingContext.isTopLevelContext()) { - throw new InvalidArgumentException(`Data collectors are available only on top-level browsing contexts`); - } - } - } - const collectorId = this.#networkStorage.addDataCollector(params); - // Adding data collectors may require enabling CDP Network domains. - await this.#toggleNetwork(); - return { collector: collectorId }; - } - async getData(params) { - return await this.#networkStorage.getCollectedData(params); - } - async removeDataCollector(params) { - this.#networkStorage.removeDataCollector(params); - // Removing data collectors may allow disabling CDP Network domains. - await this.#toggleNetwork(); - return {}; - } - disownData(params) { - this.#networkStorage.disownData(params); - return {}; - } - async #getRelatedTopLevelBrowsingContexts(browsingContextIds, userContextIds) { - // Duplicated with EmulationProcessor logic. Consider moving to ConfigStorage. - if (browsingContextIds === undefined && userContextIds === undefined) { - return this.#browsingContextStorage.getTopLevelContexts(); - } - if (browsingContextIds !== undefined && userContextIds !== undefined) { - throw new InvalidArgumentException('User contexts and browsing contexts are mutually exclusive'); - } - const result = []; - if (userContextIds !== undefined) { - if (userContextIds.length === 0) { - throw new InvalidArgumentException('user context should be provided'); - } - // Verify that all user contexts exist. - await this.#userContextStorage.verifyUserContextIdList(userContextIds); - for (const userContextId of userContextIds) { - const topLevelBrowsingContexts = this.#browsingContextStorage - .getTopLevelContexts() - .filter((browsingContext) => browsingContext.userContext === userContextId); - result.push(...topLevelBrowsingContexts); - } - } - if (browsingContextIds !== undefined) { - if (browsingContextIds.length === 0) { - throw new InvalidArgumentException('browsing context should be provided'); - } - for (const browsingContextId of browsingContextIds) { - const browsingContext = this.#browsingContextStorage.getContext(browsingContextId); - if (!browsingContext.isTopLevelContext()) { - throw new InvalidArgumentException('The command is only supported on the top-level context'); - } - result.push(browsingContext); - } - } - // Remove duplicates. Compare `BrowsingContextImpl` by reference is correct here, as - // `browsingContextStorage` returns the same instance for the same id. - return [...new Set(result).values()]; - } - async setExtraHeaders(params) { - const affectedBrowsingContexts = await this.#getRelatedTopLevelBrowsingContexts(params.contexts, params.userContexts); - const cdpExtraHeaders = parseBiDiHeaders(params.headers); - if (params.userContexts === undefined && params.contexts === undefined) { - this.#contextConfigStorage.updateGlobalConfig({ - extraHeaders: cdpExtraHeaders, - }); - } - if (params.userContexts !== undefined) { - params.userContexts.forEach((userContext) => { - this.#contextConfigStorage.updateUserContextConfig(userContext, { - extraHeaders: cdpExtraHeaders, - }); - }); - } - if (params.contexts !== undefined) { - params.contexts.forEach((browsingContextId) => { - this.#contextConfigStorage.updateBrowsingContextConfig(browsingContextId, { extraHeaders: cdpExtraHeaders }); - }); - } - await Promise.all(affectedBrowsingContexts.map(async (context) => { - // Actual value can be different from the one in params, e.g. in case of already - // existing setting. - const extraHeaders = this.#contextConfigStorage.getActiveConfig(context.id, context.userContext).extraHeaders ?? {}; - await context.setExtraHeaders(extraHeaders); - })); - return {}; - } -} -/** - * See https://w3c.github.io/webdriver-bidi/#unescape-url-pattern - */ -function unescapeURLPattern(pattern) { - const forbidden = new Set(['(', ')', '*', '{', '}']); - let result = ''; - let isEscaped = false; - for (const c of pattern) { - if (!isEscaped) { - if (forbidden.has(c)) { - throw new InvalidArgumentException('Forbidden characters'); - } - if (c === '\\') { - isEscaped = true; - continue; - } - } - result += c; - isEscaped = false; - } - return result; -} -// https://fetch.spec.whatwg.org/#header-name -const FORBIDDEN_HEADER_NAME_SYMBOLS = new Set([ - ' ', - '\t', - '\n', - '"', - '(', - ')', - ',', - '/', - ':', - ';', - '<', - '=', - '>', - '?', - '@', - '[', - '\\', - ']', - '{', - '}', -]); -// https://fetch.spec.whatwg.org/#header-value -const FORBIDDEN_HEADER_VALUE_SYMBOLS = new Set(['\0', '\n', '\r']); -function includesChar(str, chars) { - for (const char of str) { - if (chars.has(char)) { - return true; - } - } - return false; -} -// Export for testing. -export function parseBiDiHeaders(headers) { - const parsedHeaders = {}; - for (const bidiHeader of headers) { - if (bidiHeader.value.type === 'string') { - const name = bidiHeader.name; - const value = bidiHeader.value.value; - if (name.length === 0) { - throw new InvalidArgumentException(`Empty header name is not allowed`); - } - if (includesChar(name, FORBIDDEN_HEADER_NAME_SYMBOLS)) { - throw new InvalidArgumentException(`Header name '${name}' contains forbidden symbols`); - } - if (includesChar(value, FORBIDDEN_HEADER_VALUE_SYMBOLS)) { - throw new InvalidArgumentException(`Header value '${value}' contains forbidden symbols`); - } - if (value.trim() !== value) { - throw new InvalidArgumentException(`Header value should not contain trailing or ending whitespaces`); - } - // BiDi spec does not combine but overrides the headers with the same names. - // https://www.w3.org/TR/webdriver-bidi/#update-headers - parsedHeaders[bidiHeader.name] = bidiHeader.value.value; - } - else { - throw new UnsupportedOperationException('Only string headers values are supported'); - } - } - return parsedHeaders; -} -//# sourceMappingURL=NetworkProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkProcessor.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkProcessor.js.map deleted file mode 100644 index 2ff7561..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkProcessor.js","sourceRoot":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AE,CAAC;gBACtD,MAAM,IAAI,wBAAwB,CAChC,gBAAgB,IAAI,8BAA8B,CACnD,CAAC;YACJ,CAAC;YAED,IAAI,YAAY,CAAC,KAAK,EAAE,8BAA8B,CAAC,EAAE,CAAC;gBACxD,MAAM,IAAI,wBAAwB,CAChC,iBAAiB,KAAK,8BAA8B,CACrD,CAAC;YACJ,CAAC;YAED,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,KAAK,EAAE,CAAC;gBAC3B,MAAM,IAAI,wBAAwB,CAChC,gEAAgE,CACjE,CAAC;YACJ,CAAC;YAED,4EAA4E;YAC5E,uDAAuD;YACvD,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC;QAC1D,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,6BAA6B,CACrC,0CAA0C,CAC3C,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkRequest.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkRequest.d.ts deleted file mode 100644 index bb9fd46..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkRequest.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @fileoverview `NetworkRequest` represents a single network request and keeps - * track of all the related CDP events. - */ -import type { Protocol } from 'devtools-protocol'; -import { Network } from '../../../protocol/protocol.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { NetworkStorage } from './NetworkStorage.js'; -/** Abstracts one individual network request. */ -export declare class NetworkRequest { - #private; - static unknownParameter: string; - waitNextPhase: Deferred; - constructor(id: Network.Request, eventManager: EventManager, networkStorage: NetworkStorage, cdpTarget: CdpTarget, redirectCount?: number, logger?: LoggerFn); - get id(): string; - get fetchId(): string | undefined; - /** - * When blocked returns the phase for it - */ - get interceptPhase(): Network.InterceptPhase | undefined; - get url(): string; - get redirectCount(): number; - get cdpTarget(): CdpTarget; - /** CdpTarget can be changed when frame is moving out of process. */ - updateCdpTarget(cdpTarget: CdpTarget): void; - get cdpClient(): import("../../BidiMapper.js").CdpClient; - isRedirecting(): boolean; - get bodySize(): number; - handleRedirect(event: Protocol.Network.RequestWillBeSentEvent): void; - onRequestWillBeSentEvent(event: Protocol.Network.RequestWillBeSentEvent): void; - onRequestWillBeSentExtraInfoEvent(event: Protocol.Network.RequestWillBeSentExtraInfoEvent): void; - onResponseReceivedExtraInfoEvent(event: Protocol.Network.ResponseReceivedExtraInfoEvent): void; - onResponseReceivedEvent(event: Protocol.Network.ResponseReceivedEvent): void; - onServedFromCache(): void; - onLoadingFinishedEvent(event: Protocol.Network.LoadingFinishedEvent): void; - onDataReceivedEvent(event: Protocol.Network.DataReceivedEvent): void; - onLoadingFailedEvent(event: Protocol.Network.LoadingFailedEvent): void; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-failRequest */ - failRequest(errorReason: Protocol.Network.ErrorReason): Promise; - onRequestPaused(event: Protocol.Fetch.RequestPausedEvent): void; - onAuthRequired(event: Protocol.Fetch.AuthRequiredEvent): void; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueRequest */ - continueRequest(overrides?: Omit): Promise; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueResponse */ - continueResponse(overrides?: Omit): Promise; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueWithAuth */ - continueWithAuth(authChallenge: Omit): Promise; - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-provideResponse */ - provideResponse(overrides: Omit): Promise; - dispose(): void; - get encodedResponseBodySize(): number; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkRequest.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkRequest.js deleted file mode 100644 index 78b8d74..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkRequest.js +++ /dev/null @@ -1,890 +0,0 @@ -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -var _a; -import { ChromiumBidi, } from '../../../protocol/protocol.js'; -import { assert } from '../../../utils/assert.js'; -import { DefaultMap } from '../../../utils/DefaultMap.js'; -import { Deferred } from '../../../utils/Deferred.js'; -import { LogType } from '../../../utils/log.js'; -import { bidiBodySizeFromCdpPostDataEntries, bidiNetworkHeadersFromCdpNetworkHeaders, cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction, cdpFetchHeadersFromBidiNetworkHeaders, cdpToBiDiCookie, computeHeadersSize, getTiming, networkHeaderFromCookieHeaders, stringToBase64, } from './NetworkUtils.js'; -const REALM_REGEX = /(?<=realm=").*(?=")/; -/** Abstracts one individual network request. */ -export class NetworkRequest { - static unknownParameter = 'UNKNOWN'; - /** - * Each network request has an associated request id, which is a string - * uniquely identifying that request. - * - * The identifier for a request resulting from a redirect matches that of the - * request that initiated it. - */ - #id; - #fetchId; - /** - * Indicates the network intercept phase, if the request is currently blocked. - * Undefined necessarily implies that the request is not blocked. - */ - #interceptPhase; - #servedFromCache = false; - #redirectCount; - #request = {}; - #requestOverrides; - #responseOverrides; - #response = { - decodedSize: 0, - encodedSize: 0, - }; - #eventManager; - #networkStorage; - #cdpTarget; - #logger; - #emittedEvents = { - [ChromiumBidi.Network.EventNames.AuthRequired]: false, - [ChromiumBidi.Network.EventNames.BeforeRequestSent]: false, - [ChromiumBidi.Network.EventNames.FetchError]: false, - [ChromiumBidi.Network.EventNames.ResponseCompleted]: false, - [ChromiumBidi.Network.EventNames.ResponseStarted]: false, - }; - waitNextPhase = new Deferred(); - constructor(id, eventManager, networkStorage, cdpTarget, redirectCount = 0, logger) { - this.#id = id; - this.#eventManager = eventManager; - this.#networkStorage = networkStorage; - this.#cdpTarget = cdpTarget; - this.#redirectCount = redirectCount; - this.#logger = logger; - } - get id() { - return this.#id; - } - get fetchId() { - return this.#fetchId; - } - /** - * When blocked returns the phase for it - */ - get interceptPhase() { - return this.#interceptPhase; - } - get url() { - const fragment = this.#request.info?.request.urlFragment ?? - this.#request.paused?.request.urlFragment ?? - ''; - const url = this.#response.paused?.request.url ?? - this.#requestOverrides?.url ?? - this.#response.info?.url ?? - this.#request.auth?.request.url ?? - this.#request.info?.request.url ?? - this.#request.paused?.request.url ?? - _a.unknownParameter; - return `${url}${fragment}`; - } - get redirectCount() { - return this.#redirectCount; - } - get cdpTarget() { - return this.#cdpTarget; - } - /** CdpTarget can be changed when frame is moving out of process. */ - updateCdpTarget(cdpTarget) { - if (cdpTarget !== this.#cdpTarget) { - this.#logger?.(LogType.debugInfo, `Request ${this.id} was moved from ${this.#cdpTarget.id} to ${cdpTarget.id}`); - this.#cdpTarget = cdpTarget; - } - } - get cdpClient() { - return this.#cdpTarget.cdpClient; - } - isRedirecting() { - return Boolean(this.#request.info); - } - #isDataUrl() { - return this.url.startsWith('data:'); - } - #isNonInterceptable() { - return ( - // We can't intercept data urls from CDP - this.#isDataUrl() || - // Cached requests never hit the network - this.#servedFromCache); - } - get #method() { - return (this.#requestOverrides?.method ?? - this.#request.info?.request.method ?? - this.#request.paused?.request.method ?? - this.#request.auth?.request.method ?? - this.#response.paused?.request.method); - } - get #navigationId() { - // Heuristic to determine if this is a navigation request, and if not return null. - if (!this.#request.info || - !this.#request.info.loaderId || - // When we navigate all CDP network events have `loaderId` - // CDP's `loaderId` and `requestId` match when - // that request triggered the loading - this.#request.info.loaderId !== this.#request.info.requestId) { - return null; - } - // Get virtual navigation ID from the browsing context. - return this.#networkStorage.getNavigationId(this.#context ?? undefined); - } - get #cookies() { - let cookies = []; - if (this.#request.extraInfo) { - cookies = this.#request.extraInfo.associatedCookies - .filter(({ blockedReasons }) => { - return !Array.isArray(blockedReasons) || blockedReasons.length === 0; - }) - .map(({ cookie }) => cdpToBiDiCookie(cookie)); - } - return cookies; - } - #getBodySizeFromHeaders(headers) { - if (headers === undefined) { - return undefined; - } - if (headers['Content-Length'] !== undefined) { - const bodySize = Number.parseInt(headers['Content-Length']); - if (Number.isInteger(bodySize)) { - return bodySize; - } - this.#logger?.(LogType.debugError, "Unexpected non-integer 'Content-Length' header"); - } - // TODO: process `Transfer-Encoding: chunked` case properly. - return undefined; - } - get bodySize() { - if (typeof this.#requestOverrides?.bodySize === 'number') { - return this.#requestOverrides.bodySize; - } - if (this.#request.info?.request.postDataEntries !== undefined) { - return bidiBodySizeFromCdpPostDataEntries(this.#request.info?.request.postDataEntries); - } - // Try to guess the body size based on the `Content-Length` header. - return (this.#getBodySizeFromHeaders(this.#request.info?.request.headers) ?? - this.#getBodySizeFromHeaders(this.#request.extraInfo?.headers) ?? - 0); - } - get #context() { - const result = this.#response.paused?.frameId ?? - this.#request.info?.frameId ?? - this.#request.paused?.frameId ?? - this.#request.auth?.frameId; - if (result !== undefined) { - return result; - } - // Heuristic for associating a preflight request with context via it's initiator - // request. Useful for preflight requests. - // https://github.com/GoogleChromeLabs/chromium-bidi/issues/3570 - if (this.#request?.info?.initiator.type === 'preflight' && - this.#request?.info?.initiator.requestId !== undefined) { - const maybeInitiator = this.#networkStorage.getRequestById(this.#request?.info?.initiator.requestId); - if (maybeInitiator !== undefined) { - return maybeInitiator.#request.info?.frameId ?? null; - } - } - return null; - } - /** Returns the HTTP status code associated with this request if any. */ - get #statusCode() { - return (this.#responseOverrides?.statusCode ?? - this.#response.paused?.responseStatusCode ?? - this.#response.extraInfo?.statusCode ?? - this.#response.info?.status); - } - get #requestHeaders() { - let headers = []; - if (this.#requestOverrides?.headers) { - const headerMap = new DefaultMap(() => []); - for (const header of this.#requestOverrides.headers) { - headerMap.get(header.name).push(header.value.value); - } - for (const [name, value] of headerMap.entries()) { - headers.push({ - name, - value: { - type: 'string', - value: value.join('\n').trimEnd(), - }, - }); - } - } - else { - headers = [ - ...bidiNetworkHeadersFromCdpNetworkHeaders(this.#request.info?.request.headers), - ...bidiNetworkHeadersFromCdpNetworkHeaders(this.#request.extraInfo?.headers), - ]; - } - return headers; - } - get #authChallenges() { - // TODO: get headers from Fetch.requestPaused - if (!this.#response.info) { - return; - } - if (!(this.#statusCode === 401 || this.#statusCode === 407)) { - return undefined; - } - const headerName = this.#statusCode === 401 ? 'WWW-Authenticate' : 'Proxy-Authenticate'; - const authChallenges = []; - for (const [header, value] of Object.entries(this.#response.info.headers)) { - // TODO: Do a proper match based on https://httpwg.org/specs/rfc9110.html#credentials - // Or verify this works - if (header.localeCompare(headerName, undefined, { sensitivity: 'base' }) === 0) { - authChallenges.push({ - scheme: value.split(' ').at(0) ?? '', - realm: value.match(REALM_REGEX)?.at(0) ?? '', - }); - } - } - return authChallenges; - } - get #timings() { - // The timing in the CDP events are provided relative to the event's baseline. - // However, the baseline can be different for different events, and the events have to - // be normalized throughout resource events. Normalize events timestamps by the - // request. - // TODO: Verify this is correct. - const responseTimeOffset = getTiming(getTiming(this.#response.info?.timing?.requestTime) - - getTiming(this.#request.info?.timestamp)); - return { - // TODO: Verify this is correct - timeOrigin: Math.round(getTiming(this.#request.info?.wallTime) * 1000), - // Timing baseline. - // TODO: Verify this is correct. - requestTime: 0, - // TODO: set if redirect detected. - redirectStart: 0, - // TODO: set if redirect detected. - redirectEnd: 0, - // TODO: Verify this is correct - // https://source.chromium.org/chromium/chromium/src/+/main:net/base/load_timing_info.h;l=145 - fetchStart: getTiming(this.#response.info?.timing?.workerFetchStart, responseTimeOffset), - // fetchStart: 0, - dnsStart: getTiming(this.#response.info?.timing?.dnsStart, responseTimeOffset), - dnsEnd: getTiming(this.#response.info?.timing?.dnsEnd, responseTimeOffset), - connectStart: getTiming(this.#response.info?.timing?.connectStart, responseTimeOffset), - connectEnd: getTiming(this.#response.info?.timing?.connectEnd, responseTimeOffset), - tlsStart: getTiming(this.#response.info?.timing?.sslStart, responseTimeOffset), - requestStart: getTiming(this.#response.info?.timing?.sendStart, responseTimeOffset), - // https://source.chromium.org/chromium/chromium/src/+/main:net/base/load_timing_info.h;l=196 - responseStart: getTiming(this.#response.info?.timing?.receiveHeadersStart, responseTimeOffset), - responseEnd: getTiming(this.#response.info?.timing?.receiveHeadersEnd, responseTimeOffset), - }; - } - #phaseChanged() { - this.waitNextPhase.resolve(); - this.waitNextPhase = new Deferred(); - } - #interceptsInPhase(phase) { - if (this.#isNonInterceptable() || - !this.#cdpTarget.isSubscribedTo(`network.${phase}`)) { - return new Set(); - } - return this.#networkStorage.getInterceptsForPhase(this, phase); - } - #isBlockedInPhase(phase) { - return this.#interceptsInPhase(phase).size > 0; - } - handleRedirect(event) { - // TODO: use event.redirectResponse; - // Temporary workaround to emit ResponseCompleted event for redirects - this.#response.hasExtraInfo = false; - this.#response.decodedSize = 0; - this.#response.encodedSize = 0; - this.#response.info = event.redirectResponse; - this.#emitEventsIfReady({ - wasRedirected: true, - }); - } - #emitEventsIfReady(options = {}) { - const requestExtraInfoCompleted = - // Flush redirects - options.wasRedirected || - Boolean(this.#response.loadingFailed) || - this.#isDataUrl() || - Boolean(this.#request.extraInfo) || - // If the request is intercepted during the `authRequired` phase, there - // will be no `Network.requestWillBeSentExtraInfo` CDP events. - this.#isBlockedInPhase("authRequired" /* Network.InterceptPhase.AuthRequired */) || - // Requests from cache don't have extra info - this.#servedFromCache || - // Sometimes there is no extra info and the response - // is the only place we can find out - Boolean(this.#response.info && !this.#response.hasExtraInfo); - const noInterceptionExpected = this.#isNonInterceptable(); - const requestInterceptionExpected = !noInterceptionExpected && - this.#isBlockedInPhase("beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */); - const requestInterceptionCompleted = !requestInterceptionExpected || - (requestInterceptionExpected && Boolean(this.#request.paused)); - if (Boolean(this.#request.info) && - (requestInterceptionExpected - ? requestInterceptionCompleted - : requestExtraInfoCompleted)) { - this.#emitEvent(this.#getBeforeRequestEvent.bind(this)); - } - const responseExtraInfoCompleted = Boolean(this.#response.extraInfo) || - // Response from cache don't have extra info - this.#servedFromCache || - // Don't expect extra info if the flag is false - Boolean(this.#response.info && !this.#response.hasExtraInfo); - const responseInterceptionExpected = !noInterceptionExpected && - this.#isBlockedInPhase("responseStarted" /* Network.InterceptPhase.ResponseStarted */); - if (this.#response.info || - (responseInterceptionExpected && Boolean(this.#response.paused))) { - this.#emitEvent(this.#getResponseStartedEvent.bind(this)); - } - const responseInterceptionCompleted = !responseInterceptionExpected || - (responseInterceptionExpected && Boolean(this.#response.paused)); - const loadingFinished = Boolean(this.#response.loadingFailed) || - Boolean(this.#response.loadingFinished); - if (Boolean(this.#response.info) && - responseExtraInfoCompleted && - responseInterceptionCompleted && - (loadingFinished || options.wasRedirected)) { - this.#emitEvent(this.#getResponseReceivedEvent.bind(this)); - this.#networkStorage.disposeRequest(this.id); - } - } - onRequestWillBeSentEvent(event) { - this.#request.info = event; - this.#networkStorage.collectIfNeeded(this, "request" /* Network.DataType.Request */); - this.#emitEventsIfReady(); - } - onRequestWillBeSentExtraInfoEvent(event) { - this.#request.extraInfo = event; - this.#emitEventsIfReady(); - } - onResponseReceivedExtraInfoEvent(event) { - if (event.statusCode >= 300 && - event.statusCode <= 399 && - this.#request.info && - event.headers['location'] === this.#request.info.request.url) { - // We received the Response Extra info for the redirect - // Too late so we need to skip it as it will - // fire wrongly for the last one - return; - } - this.#response.extraInfo = event; - this.#emitEventsIfReady(); - } - onResponseReceivedEvent(event) { - this.#response.hasExtraInfo = event.hasExtraInfo; - this.#response.info = event.response; - this.#networkStorage.collectIfNeeded(this, "response" /* Network.DataType.Response */); - this.#emitEventsIfReady(); - } - onServedFromCache() { - this.#servedFromCache = true; - this.#emitEventsIfReady(); - } - onLoadingFinishedEvent(event) { - this.#response.loadingFinished = event; - this.#emitEventsIfReady(); - } - onDataReceivedEvent(event) { - this.#response.decodedSize += event.dataLength; - this.#response.encodedSize += event.encodedDataLength; - } - onLoadingFailedEvent(event) { - this.#response.loadingFailed = event; - this.#emitEventsIfReady(); - this.#emitEvent(() => { - return { - method: ChromiumBidi.Network.EventNames.FetchError, - params: { - ...this.#getBaseEventParams(), - errorText: event.errorText, - }, - }; - }); - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-failRequest */ - async failRequest(errorReason) { - assert(this.#fetchId, 'Network Interception not set-up.'); - await this.cdpClient.sendCommand('Fetch.failRequest', { - requestId: this.#fetchId, - errorReason, - }); - this.#interceptPhase = undefined; - } - onRequestPaused(event) { - this.#fetchId = event.requestId; - // CDP https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#event-requestPaused - if (event.responseStatusCode || event.responseErrorReason) { - this.#response.paused = event; - if (this.#isBlockedInPhase("responseStarted" /* Network.InterceptPhase.ResponseStarted */) && - // CDP may emit multiple events for a single request - !this.#emittedEvents[ChromiumBidi.Network.EventNames.ResponseStarted] && - // Continue all response that have not enabled Network domain - this.#fetchId !== this.id) { - this.#interceptPhase = "responseStarted" /* Network.InterceptPhase.ResponseStarted */; - } - else { - void this.#continueResponse(); - } - } - else { - this.#request.paused = event; - if (this.#isBlockedInPhase("beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */) && - // CDP may emit multiple events for a single request - !this.#emittedEvents[ChromiumBidi.Network.EventNames.BeforeRequestSent] && - // Continue all requests that have not enabled Network domain - this.#fetchId !== this.id) { - this.#interceptPhase = "beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */; - } - else { - void this.#continueRequest(); - } - } - this.#emitEventsIfReady(); - } - onAuthRequired(event) { - this.#fetchId = event.requestId; - this.#request.auth = event; - if (this.#isBlockedInPhase("authRequired" /* Network.InterceptPhase.AuthRequired */) && - // Continue all auth requests that have not enabled Network domain - this.#fetchId !== this.id) { - this.#interceptPhase = "authRequired" /* Network.InterceptPhase.AuthRequired */; - // Make sure the `network.beforeRequestSent` is emitted before - // `network.authRequired`. - this.#emitEventsIfReady(); - } - else { - void this.#continueWithAuth({ - response: 'Default', - }); - } - this.#emitEvent(() => { - return { - method: ChromiumBidi.Network.EventNames.AuthRequired, - params: { - ...this.#getBaseEventParams("authRequired" /* Network.InterceptPhase.AuthRequired */), - response: this.#getResponseEventParams(), - }, - }; - }); - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueRequest */ - async continueRequest(overrides = {}) { - const overrideHeaders = this.#getOverrideHeader(overrides.headers, overrides.cookies); - const headers = cdpFetchHeadersFromBidiNetworkHeaders(overrideHeaders); - const postData = getCdpBodyFromBiDiBytesValue(overrides.body); - await this.#continueRequest({ - url: overrides.url, - method: overrides.method, - headers, - postData, - }); - this.#requestOverrides = { - url: overrides.url, - method: overrides.method, - headers: overrides.headers, - cookies: overrides.cookies, - bodySize: getSizeFromBiDiBytesValue(overrides.body), - }; - } - async #continueRequest(overrides = {}) { - assert(this.#fetchId, 'Network Interception not set-up.'); - await this.cdpClient.sendCommand('Fetch.continueRequest', { - requestId: this.#fetchId, - url: overrides.url, - method: overrides.method, - headers: overrides.headers, - postData: overrides.postData, - }); - this.#interceptPhase = undefined; - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueResponse */ - async continueResponse(overrides = {}) { - if (this.interceptPhase === "authRequired" /* Network.InterceptPhase.AuthRequired */) { - if (overrides.credentials) { - await Promise.all([ - this.waitNextPhase, - await this.#continueWithAuth({ - response: 'ProvideCredentials', - username: overrides.credentials.username, - password: overrides.credentials.password, - }), - ]); - } - else { - // We need to use `ProvideCredentials` - // As `Default` may cancel the request - return await this.#continueWithAuth({ - response: 'ProvideCredentials', - }); - } - } - if (this.#interceptPhase === "responseStarted" /* Network.InterceptPhase.ResponseStarted */) { - const overrideHeaders = this.#getOverrideHeader(overrides.headers, overrides.cookies); - const responseHeaders = cdpFetchHeadersFromBidiNetworkHeaders(overrideHeaders); - await this.#continueResponse({ - responseCode: overrides.statusCode ?? this.#response.paused?.responseStatusCode, - responsePhrase: overrides.reasonPhrase ?? this.#response.paused?.responseStatusText, - responseHeaders: responseHeaders ?? this.#response.paused?.responseHeaders, - }); - this.#responseOverrides = { - statusCode: overrides.statusCode, - headers: overrideHeaders, - }; - } - } - async #continueResponse({ responseCode, responsePhrase, responseHeaders, } = {}) { - assert(this.#fetchId, 'Network Interception not set-up.'); - await this.cdpClient.sendCommand('Fetch.continueResponse', { - requestId: this.#fetchId, - responseCode, - responsePhrase, - responseHeaders, - }); - this.#interceptPhase = undefined; - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueWithAuth */ - async continueWithAuth(authChallenge) { - let username; - let password; - if (authChallenge.action === 'provideCredentials') { - const { credentials } = authChallenge; - username = credentials.username; - password = credentials.password; - } - const response = cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction(authChallenge.action); - await this.#continueWithAuth({ - response, - username, - password, - }); - } - /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-provideResponse */ - async provideResponse(overrides) { - assert(this.#fetchId, 'Network Interception not set-up.'); - // We need to pass through if the request is already in - // AuthRequired phase - if (this.interceptPhase === "authRequired" /* Network.InterceptPhase.AuthRequired */) { - // We need to use `ProvideCredentials` - // As `Default` may cancel the request - return await this.#continueWithAuth({ - response: 'ProvideCredentials', - }); - } - // If we don't modify the response - // just continue the request - if (!overrides.body && !overrides.headers) { - return await this.#continueRequest(); - } - const overrideHeaders = this.#getOverrideHeader(overrides.headers, overrides.cookies); - const responseHeaders = cdpFetchHeadersFromBidiNetworkHeaders(overrideHeaders); - const responseCode = overrides.statusCode ?? this.#statusCode ?? 200; - await this.cdpClient.sendCommand('Fetch.fulfillRequest', { - requestId: this.#fetchId, - responseCode, - responsePhrase: overrides.reasonPhrase, - responseHeaders, - body: getCdpBodyFromBiDiBytesValue(overrides.body), - }); - this.#interceptPhase = undefined; - } - dispose() { - this.waitNextPhase.reject(new Error('waitNextPhase disposed')); - } - async #continueWithAuth(authChallengeResponse) { - assert(this.#fetchId, 'Network Interception not set-up.'); - await this.cdpClient.sendCommand('Fetch.continueWithAuth', { - requestId: this.#fetchId, - authChallengeResponse, - }); - this.#interceptPhase = undefined; - } - #emitEvent(getEvent) { - let event; - try { - event = getEvent(); - } - catch (error) { - this.#logger?.(LogType.debugError, error); - return; - } - if (this.#isIgnoredEvent() || - (this.#emittedEvents[event.method] && - // Special case this event can be emitted multiple times - event.method !== ChromiumBidi.Network.EventNames.AuthRequired)) { - return; - } - this.#phaseChanged(); - this.#emittedEvents[event.method] = true; - if (this.#context) { - this.#eventManager.registerEvent(Object.assign(event, { - type: 'event', - }), this.#context); - } - else { - this.#eventManager.registerGlobalEvent(Object.assign(event, { - type: 'event', - })); - } - } - #getBaseEventParams(phase) { - const interceptProps = { - isBlocked: false, - }; - if (phase) { - const blockedBy = this.#interceptsInPhase(phase); - interceptProps.isBlocked = blockedBy.size > 0; - if (interceptProps.isBlocked) { - interceptProps.intercepts = [...blockedBy]; - } - } - return { - context: this.#context, - navigation: this.#navigationId, - redirectCount: this.#redirectCount, - request: this.#getRequestData(), - // Timestamp should be in milliseconds, while CDP provides it in seconds. - timestamp: Math.round(getTiming(this.#request.info?.wallTime) * 1000), - // Contains isBlocked and intercepts - ...interceptProps, - }; - } - #getResponseEventParams() { - // Chromium sends wrong extraInfo events for responses served from cache. - // See https://github.com/puppeteer/puppeteer/issues/9965 and - // https://crbug.com/1340398. - if (this.#response.info?.fromDiskCache) { - this.#response.extraInfo = undefined; - } - // TODO: Also this.#response.paused?.responseHeaders have to be merged here. - const cdpHeaders = this.#response.info?.headers ?? {}; - const cdpRawHeaders = this.#response.extraInfo?.headers ?? {}; - for (const [key, value] of Object.entries(cdpRawHeaders)) { - cdpHeaders[key] = value; - } - const headers = bidiNetworkHeadersFromCdpNetworkHeaders(cdpHeaders); - const authChallenges = this.#authChallenges; - const response = { - url: this.url, - protocol: this.#response.info?.protocol ?? '', - status: this.#statusCode ?? -1, // TODO: Throw an exception or use some other status code? - statusText: this.#response.info?.statusText || - this.#response.paused?.responseStatusText || - '', - fromCache: this.#response.info?.fromDiskCache || - this.#response.info?.fromPrefetchCache || - this.#servedFromCache, - headers: this.#responseOverrides?.headers ?? headers, - mimeType: this.#response.info?.mimeType || '', - // TODO: this should be the size for the entire HTTP response. - bytesReceived: this.encodedResponseBodySize, - headersSize: computeHeadersSize(headers), - bodySize: this.encodedResponseBodySize, - content: { - size: this.#response.decodedSize ?? 0, - }, - ...(authChallenges ? { authChallenges } : {}), - }; - return { - ...response, - 'goog:securityDetails': this.#response.info?.securityDetails, - }; - } - get encodedResponseBodySize() { - return (this.#response.loadingFinished?.encodedDataLength ?? - this.#response.info?.encodedDataLength ?? - this.#response.encodedSize ?? - 0); - } - #getRequestData() { - const headers = this.#requestHeaders; - const request = { - request: this.#id, - url: this.url, - method: this.#method ?? _a.unknownParameter, - headers, - cookies: this.#cookies, - headersSize: computeHeadersSize(headers), - bodySize: this.bodySize, - // TODO: populate - destination: this.#getDestination(), - // TODO: populate - initiatorType: this.#getInitiatorType(), - timings: this.#timings, - }; - return { - ...request, - 'goog:postData': this.#request.info?.request?.postData, - 'goog:hasPostData': this.#request.info?.request?.hasPostData, - 'goog:resourceType': this.#request.info?.type, - 'goog:resourceInitiator': this.#request.info?.initiator, - }; - } - /** - * Heuristic trying to guess the destination. - * Specification: https://fetch.spec.whatwg.org/#concept-request-destination. - * Specified values: "audio", "audioworklet", "document", "embed", "font", "frame", - * "iframe", "image", "json", "manifest", "object", "paintworklet", "report", "script", - * "serviceworker", "sharedworker", "style", "track", "video", "webidentity", "worker", - * "xslt". - */ - #getDestination() { - switch (this.#request.info?.type) { - case 'Script': - return 'script'; - case 'Stylesheet': - return 'style'; - case 'Image': - return 'image'; - case 'Document': - // If request to document is initiated by parser, assume it is expected to - // arrive in an iframe. Otherwise, consider it is a navigation and the request - // result will end up in the document. - return this.#request.info?.initiator.type === 'parser' - ? 'iframe' - : 'document'; - default: - return ''; - } - } - /** - * Heuristic trying to guess the initiator type. - * Specification: https://fetch.spec.whatwg.org/#request-initiator-type. - * Specified values: "audio", "beacon", "body", "css", "early-hints", "embed", "fetch", - * "font", "frame", "iframe", "image", "img", "input", "link", "object", "ping", - * "script", "track", "video", "xmlhttprequest", "other". - */ - #getInitiatorType() { - if (this.#request.info?.initiator.type === 'parser') { - switch (this.#request.info?.type) { - case 'Document': - // The request to document is initiated by the parser. Assuming it's an iframe. - return 'iframe'; - case 'Font': - // If the document's url is not the parser's url, assume the resource is loaded - // from css. Otherwise, it's a `font` element. - return this.#request.info?.initiator?.url === - this.#request.info?.documentURL - ? 'font' - : 'css'; - case 'Image': - // If the document's url is not the parser's url, assume the resource is loaded - // from css. Otherwise, it's a `img` element. - return this.#request.info?.initiator?.url === - this.#request.info?.documentURL - ? 'img' - : 'css'; - case 'Script': - return 'script'; - case 'Stylesheet': - return 'link'; - default: - return null; - } - } - if (this.#request?.info?.type === 'Fetch') { - return 'fetch'; - } - return null; - } - #getBeforeRequestEvent() { - assert(this.#request.info, 'RequestWillBeSentEvent is not set'); - return { - method: ChromiumBidi.Network.EventNames.BeforeRequestSent, - params: { - ...this.#getBaseEventParams("beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */), - initiator: { - type: _a.#getInitiator(this.#request.info.initiator.type), - columnNumber: this.#request.info.initiator.columnNumber, - lineNumber: this.#request.info.initiator.lineNumber, - stackTrace: this.#request.info.initiator.stack, - request: this.#request.info.initiator.requestId, - }, - }, - }; - } - #getResponseStartedEvent() { - return { - method: ChromiumBidi.Network.EventNames.ResponseStarted, - params: { - ...this.#getBaseEventParams("responseStarted" /* Network.InterceptPhase.ResponseStarted */), - response: this.#getResponseEventParams(), - }, - }; - } - #getResponseReceivedEvent() { - return { - method: ChromiumBidi.Network.EventNames.ResponseCompleted, - params: { - ...this.#getBaseEventParams(), - response: this.#getResponseEventParams(), - }, - }; - } - #isIgnoredEvent() { - const faviconUrl = '/favicon.ico'; - return (this.#request.paused?.request.url.endsWith(faviconUrl) ?? - this.#request.info?.request.url.endsWith(faviconUrl) ?? - false); - } - #getOverrideHeader(headers, cookies) { - if (!headers && !cookies) { - return undefined; - } - let overrideHeaders = headers; - const cookieHeader = networkHeaderFromCookieHeaders(cookies); - if (cookieHeader && !overrideHeaders) { - overrideHeaders = this.#requestHeaders; - } - if (cookieHeader && overrideHeaders) { - overrideHeaders.filter((header) => header.name.localeCompare('cookie', undefined, { - sensitivity: 'base', - }) !== 0); - overrideHeaders.push(cookieHeader); - } - return overrideHeaders; - } - static #getInitiator(initiatorType) { - switch (initiatorType) { - case 'parser': - case 'script': - case 'preflight': - return initiatorType; - default: - return 'other'; - } - } -} -_a = NetworkRequest; -function getCdpBodyFromBiDiBytesValue(body) { - let parsedBody; - if (body?.type === 'string') { - parsedBody = stringToBase64(body.value); - } - else if (body?.type === 'base64') { - parsedBody = body.value; - } - return parsedBody; -} -function getSizeFromBiDiBytesValue(body) { - if (body?.type === 'string') { - return body.value.length; - } - else if (body?.type === 'base64') { - return atob(body.value).length; - } - return 0; -} -//# sourceMappingURL=NetworkRequest.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkRequest.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkRequest.js.map deleted file mode 100644 index 09787cb..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkRequest.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/network/NetworkRequest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;;AAQH,OAAO,EAEL,YAAY,GAGb,MAAM,+BAA+B,CAAC;AACvC,OAAO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bidi/lib/esm/bidiMapper/modules/network/NetworkStorage.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkStorage.d.ts deleted file mode 100644 index 41fa082..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkStorage.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { type BrowsingContext, Network } from '../../../protocol/protocol.js'; -import type { LoggerFn } from '../../../utils/log.js'; -import type { CdpClient } from '../../BidiMapper.js'; -import type { CdpTarget } from '../cdp/CdpTarget.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { EventManager } from '../session/EventManager.js'; -import { NetworkRequest } from './NetworkRequest.js'; -import { type ParsedUrlPattern } from './NetworkUtils.js'; -export declare const MAX_TOTAL_COLLECTED_SIZE = 200000000; -type NetworkInterception = Omit & { - urlPatterns: ParsedUrlPattern[]; -}; -/** Stores network and intercept maps. */ -export declare class NetworkStorage { - #private; - constructor(eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, browserClient: CdpClient, logger?: LoggerFn); - onCdpTargetCreated(cdpTarget: CdpTarget): void; - getCollectedData(params: Network.GetDataParameters): Promise; - collectIfNeeded(request: NetworkRequest, dataType: Network.DataType): void; - getInterceptionStages(browsingContextId: BrowsingContext.BrowsingContext): { - request: boolean; - response: boolean; - auth: boolean; - }; - getInterceptsForPhase(request: NetworkRequest, phase: Network.InterceptPhase): Set; - disposeRequestMap(sessionId: string): void; - /** - * Adds the given entry to the intercept map. - * URL patterns are assumed to be parsed. - * - * @return The intercept ID. - */ - addIntercept(value: NetworkInterception): Network.Intercept; - /** - * Removes the given intercept from the intercept map. - * Throws NoSuchInterceptException if the intercept does not exist. - */ - removeIntercept(intercept: Network.Intercept): void; - getRequestsByTarget(target: CdpTarget): NetworkRequest[]; - getRequestById(id: Network.Request): NetworkRequest | undefined; - getRequestByFetchId(fetchId: Network.Request): NetworkRequest | undefined; - addRequest(request: NetworkRequest): void; - /** - * Disposes the given request, if no collectors targeting it are left. - */ - disposeRequest(id: Network.Request): void; - /** - * Gets the virtual navigation ID for the given navigable ID. - */ - getNavigationId(contextId: string | undefined): string | null; - set defaultCacheBehavior(behavior: Network.SetCacheBehaviorParameters['cacheBehavior']); - get defaultCacheBehavior(): Network.SetCacheBehaviorParameters["cacheBehavior"]; - addDataCollector(params: Network.AddDataCollectorParameters): string; - removeDataCollector(params: Network.RemoveDataCollectorParameters): void; - disownData(params: Network.DisownDataParameters): void; -} -export {}; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkStorage.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkStorage.js deleted file mode 100644 index 011b0ba..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkStorage.js +++ /dev/null @@ -1,349 +0,0 @@ -import { InvalidArgumentException, NoSuchInterceptException, NoSuchNetworkDataException, UnsupportedOperationException, } from '../../../protocol/protocol.js'; -import { uuidv4 } from '../../../utils/uuid.js'; -import { CollectorsStorage } from './CollectorsStorage.js'; -import { NetworkRequest } from './NetworkRequest.js'; -import { matchUrlPattern } from './NetworkUtils.js'; -// The default total data size limit in CDP. -// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/inspector/inspector_network_agent.cc;drc=da1f749634c9a401cc756f36c2e6ce233e1c9b4d;l=133 -export const MAX_TOTAL_COLLECTED_SIZE = 200_000_000; -/** Stores network and intercept maps. */ -export class NetworkStorage { - #browsingContextStorage; - #eventManager; - #collectorsStorage; - #logger; - /** - * A map from network request ID to Network Request objects. - * Needed as long as information about requests comes from different events. - */ - #requests = new Map(); - /** A map from intercept ID to track active network intercepts. */ - #intercepts = new Map(); - #defaultCacheBehavior = 'default'; - constructor(eventManager, browsingContextStorage, browserClient, logger) { - this.#browsingContextStorage = browsingContextStorage; - this.#eventManager = eventManager; - this.#collectorsStorage = new CollectorsStorage(MAX_TOTAL_COLLECTED_SIZE, logger); - browserClient.on('Target.detachedFromTarget', ({ sessionId }) => { - this.disposeRequestMap(sessionId); - }); - this.#logger = logger; - } - /** - * Gets the network request with the given ID, if any. - * Otherwise, creates a new network request with the given ID and cdp target. - */ - #getOrCreateNetworkRequest(id, cdpTarget, redirectCount) { - let request = this.getRequestById(id); - if (redirectCount === undefined && request) { - // Force re-creating requests for redirects. - return request; - } - request = new NetworkRequest(id, this.#eventManager, this, cdpTarget, redirectCount, this.#logger); - this.addRequest(request); - return request; - } - onCdpTargetCreated(cdpTarget) { - const cdpClient = cdpTarget.cdpClient; - // TODO: Wrap into object - const listeners = [ - [ - 'Network.requestWillBeSent', - (params) => { - const request = this.getRequestById(params.requestId); - request?.updateCdpTarget(cdpTarget); - if (request && request.isRedirecting()) { - request.handleRedirect(params); - this.disposeRequest(params.requestId); - this.#getOrCreateNetworkRequest(params.requestId, cdpTarget, request.redirectCount + 1).onRequestWillBeSentEvent(params); - } - else { - this.#getOrCreateNetworkRequest(params.requestId, cdpTarget).onRequestWillBeSentEvent(params); - } - }, - ], - [ - 'Network.requestWillBeSentExtraInfo', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onRequestWillBeSentExtraInfoEvent(params); - }, - ], - [ - 'Network.responseReceived', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onResponseReceivedEvent(params); - }, - ], - [ - 'Network.responseReceivedExtraInfo', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onResponseReceivedExtraInfoEvent(params); - }, - ], - [ - 'Network.requestServedFromCache', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onServedFromCache(); - }, - ], - [ - 'Fetch.requestPaused', - (event) => { - const request = this.#getOrCreateNetworkRequest( - // CDP quirk if the Network domain is not present this is undefined - event.networkId ?? event.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onRequestPaused(event); - }, - ], - [ - 'Fetch.authRequired', - (event) => { - let request = this.getRequestByFetchId(event.requestId); - if (!request) { - request = this.#getOrCreateNetworkRequest(event.requestId, cdpTarget); - } - request.updateCdpTarget(cdpTarget); - request.onAuthRequired(event); - }, - ], - [ - 'Network.dataReceived', - (params) => { - const request = this.getRequestById(params.requestId); - request?.updateCdpTarget(cdpTarget); - request?.onDataReceivedEvent(params); - }, - ], - [ - 'Network.loadingFailed', - (params) => { - const request = this.#getOrCreateNetworkRequest(params.requestId, cdpTarget); - request.updateCdpTarget(cdpTarget); - request.onLoadingFailedEvent(params); - }, - ], - [ - 'Network.loadingFinished', - (params) => { - const request = this.getRequestById(params.requestId); - request?.updateCdpTarget(cdpTarget); - request?.onLoadingFinishedEvent(params); - }, - ], - ]; - for (const [event, listener] of listeners) { - cdpClient.on(event, listener); - } - } - async getCollectedData(params) { - if (!this.#collectorsStorage.isCollected(params.request, params.dataType, params.collector)) { - throw new NoSuchNetworkDataException(params.collector === undefined - ? `No collected ${params.dataType} data` - : `Collector ${params.collector} didn't collect ${params.dataType} data`); - } - if (params.disown && params.collector === undefined) { - throw new InvalidArgumentException('Cannot disown collected data without collector ID'); - } - const request = this.getRequestById(params.request); - if (request === undefined) { - throw new NoSuchNetworkDataException(`No data for ${params.request}`); - } - let result = undefined; - switch (params.dataType) { - case "response" /* Network.DataType.Response */: - result = await this.#getCollectedResponseData(request); - break; - case "request" /* Network.DataType.Request */: - result = await this.#getCollectedRequestData(request); - break; - default: - throw new UnsupportedOperationException(`Unsupported data type ${params.dataType}`); - } - if (params.disown && params.collector !== undefined) { - this.#collectorsStorage.disownData(request.id, params.dataType, params.collector); - // `disposeRequest` disposes request only if no other collectors for it are left. - this.disposeRequest(request.id); - } - return result; - } - async #getCollectedResponseData(request) { - try { - const responseBody = await request.cdpClient.sendCommand('Network.getResponseBody', { requestId: request.id }); - return { - bytes: { - type: responseBody.base64Encoded ? 'base64' : 'string', - value: responseBody.body, - }, - }; - } - catch (error) { - if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ && - error.message === 'No resource with given identifier found') { - // The data has be gone for whatever reason. - throw new NoSuchNetworkDataException(`Response data was disposed`); - } - if (error.code === -32001 /* CdpErrorConstants.CONNECTION_CLOSED */) { - // The request's CDP session is gone. http://b/450771615. - throw new NoSuchNetworkDataException(`Response data is disposed after the related page`); - } - throw error; - } - } - async #getCollectedRequestData(request) { - // TODO: handle CDP error in case of the renderer is gone. - const requestPostData = await request.cdpClient.sendCommand('Network.getRequestPostData', { requestId: request.id }); - return { - bytes: { - type: 'string', - value: requestPostData.postData, - }, - }; - } - collectIfNeeded(request, dataType) { - this.#collectorsStorage.collectIfNeeded(request, dataType, request.cdpTarget.topLevelId, request.cdpTarget.userContext); - } - getInterceptionStages(browsingContextId) { - const stages = { - request: false, - response: false, - auth: false, - }; - for (const intercept of this.#intercepts.values()) { - if (intercept.contexts && - !intercept.contexts.includes(browsingContextId)) { - continue; - } - stages.request ||= intercept.phases.includes("beforeRequestSent" /* Network.InterceptPhase.BeforeRequestSent */); - stages.response ||= intercept.phases.includes("responseStarted" /* Network.InterceptPhase.ResponseStarted */); - stages.auth ||= intercept.phases.includes("authRequired" /* Network.InterceptPhase.AuthRequired */); - } - return stages; - } - getInterceptsForPhase(request, phase) { - if (request.url === NetworkRequest.unknownParameter) { - return new Set(); - } - const intercepts = new Set(); - for (const [interceptId, intercept] of this.#intercepts.entries()) { - if (!intercept.phases.includes(phase) || - (intercept.contexts && - !intercept.contexts.includes(request.cdpTarget.topLevelId))) { - continue; - } - if (intercept.urlPatterns.length === 0) { - intercepts.add(interceptId); - continue; - } - for (const pattern of intercept.urlPatterns) { - if (matchUrlPattern(pattern, request.url)) { - intercepts.add(interceptId); - break; - } - } - } - return intercepts; - } - disposeRequestMap(sessionId) { - for (const request of this.#requests.values()) { - if (request.cdpClient.sessionId === sessionId) { - this.#requests.delete(request.id); - request.dispose(); - } - } - } - /** - * Adds the given entry to the intercept map. - * URL patterns are assumed to be parsed. - * - * @return The intercept ID. - */ - addIntercept(value) { - const interceptId = uuidv4(); - this.#intercepts.set(interceptId, value); - return interceptId; - } - /** - * Removes the given intercept from the intercept map. - * Throws NoSuchInterceptException if the intercept does not exist. - */ - removeIntercept(intercept) { - if (!this.#intercepts.has(intercept)) { - throw new NoSuchInterceptException(`Intercept '${intercept}' does not exist.`); - } - this.#intercepts.delete(intercept); - } - getRequestsByTarget(target) { - const requests = []; - for (const request of this.#requests.values()) { - if (request.cdpTarget === target) { - requests.push(request); - } - } - return requests; - } - getRequestById(id) { - return this.#requests.get(id); - } - getRequestByFetchId(fetchId) { - for (const request of this.#requests.values()) { - if (request.fetchId === fetchId) { - return request; - } - } - return; - } - addRequest(request) { - this.#requests.set(request.id, request); - } - /** - * Disposes the given request, if no collectors targeting it are left. - */ - disposeRequest(id) { - if (this.#collectorsStorage.isCollected(id)) { - // Keep request, as it's data can be accessed later. - return; - } - // TODO: dispose Network data from Chromium once there is a CDP command for that. - this.#requests.delete(id); - } - /** - * Gets the virtual navigation ID for the given navigable ID. - */ - getNavigationId(contextId) { - if (contextId === undefined) { - return null; - } - return (this.#browsingContextStorage.findContext(contextId)?.navigationId ?? null); - } - set defaultCacheBehavior(behavior) { - this.#defaultCacheBehavior = behavior; - } - get defaultCacheBehavior() { - return this.#defaultCacheBehavior; - } - addDataCollector(params) { - return this.#collectorsStorage.addDataCollector(params); - } - removeDataCollector(params) { - const releasedRequests = this.#collectorsStorage.removeDataCollector(params.collector); - releasedRequests.map((request) => this.disposeRequest(request)); - } - disownData(params) { - if (!this.#collectorsStorage.isCollected(params.request, params.dataType, params.collector)) { - throw new NoSuchNetworkDataException(`Collector ${params.collector} didn't collect ${params.dataType} data`); - } - this.#collectorsStorage.disownData(params.request, params.dataType, params.collector); - // `disposeRequest` disposes request only if no other collectors for it are left. - this.disposeRequest(params.request); - } -} -//# sourceMappingURL=NetworkStorage.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkStorage.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkStorage.js.map deleted file mode 100644 index a82eb49..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/network/NetworkStorage.ts"],"names":[],"mappings":"AAkBA,OAAO,EAEL,wBAAwB,EAExB,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAC,MAAM,EAAC,MAAM,wBAAwB,CAAC;AAM9C,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,eAAe,EAAwB,MAAM,mBAAmB,CAAC;AAEzE,4CAA4C;AAC5C,mLAAmL;AACnL,MAAM,CAAC,MAAM,wBAAwB,GAAG,WAAW,CAAC;AASpD,yCAAyC;AACzC,MAAM,OAAO,cAAc;IAChB,uBAAuB,CAAyB;IAChD,aAAa,CAAe;IAC5B,kBAAkB,CAAoB;IAEtC,OAAO,CAAY;IAE5B;;;OAGG;IACM,SAAS,GAAG,IAAI,GAAG,EAAmC,CAAC;IAEhE,kEAAkE;IACzD,WAAW,GAAG,IAAI,GAAG,EAA0C,CAAC;IAEzE,qBAAqB,GACnB,SAAS,CAAC;IAEZ,YACE,YAA0B,EAC1B,sBAA8C,EAC9C,aAAwB,EACxB,MAAiB;QAEjB,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,kBAAkB,GAAG,IAAI,iBAAiB,CAC7C,wBAAwB,EACxB,MAAM,CACP,CAAC;QAEF,aAAa,CAAC,EAAE,CAAC,2BAA2B,E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OAAO,CACvE,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAChC,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,QAAQ,EACf,MAAM,CAAC,SAAS,CACjB,CAAC;QACF,iFAAiF;QACjF,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkUtils.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkUtils.d.ts deleted file mode 100644 index b442727..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkUtils.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @fileoverview Utility functions for the Network module. - */ -import type { Protocol } from 'devtools-protocol'; -import { Network, type Storage } from '../../../protocol/protocol.js'; -export declare function computeHeadersSize(headers: Network.Header[]): number; -export declare function stringToBase64(str: string): string; -/** Converts from CDP Network domain headers to BiDi network headers. */ -export declare function bidiNetworkHeadersFromCdpNetworkHeaders(headers?: Protocol.Network.Headers): Network.Header[]; -/** Converts from CDP Fetch domain headers to BiDi network headers. */ -export declare function bidiNetworkHeadersFromCdpNetworkHeadersEntries(headers?: Protocol.Fetch.HeaderEntry[]): Network.Header[]; -/** Converts from Bidi network headers to CDP Network domain headers. */ -export declare function cdpNetworkHeadersFromBidiNetworkHeaders(headers?: Network.Header[]): Protocol.Network.Headers | undefined; -/** Converts from CDP Fetch domain header entries to Bidi network headers. */ -export declare function bidiNetworkHeadersFromCdpFetchHeaders(headers?: Protocol.Fetch.HeaderEntry[]): Network.Header[]; -/** Converts from Bidi network headers to CDP Fetch domain header entries. */ -export declare function cdpFetchHeadersFromBidiNetworkHeaders(headers?: Network.Header[]): Protocol.Fetch.HeaderEntry[] | undefined; -export declare function networkHeaderFromCookieHeaders(headers?: Network.CookieHeader[]): Network.Header | undefined; -/** Converts from Bidi auth action to CDP auth challenge response. */ -export declare function cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction(action: 'default' | 'cancel' | 'provideCredentials'): "Default" | "CancelAuth" | "ProvideCredentials"; -/** - * Converts from CDP Network domain cookie to BiDi network cookie. - * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie - * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie - */ -export declare function cdpToBiDiCookie(cookie: Protocol.Network.Cookie): Network.Cookie; -/** - * Decodes a byte value to a string. - * @param {Network.BytesValue} value - * @return {string} - */ -export declare function deserializeByteValue(value: Network.BytesValue): string; -/** - * Converts from BiDi set network cookie params to CDP Network domain cookie. - * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie - * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieParam - */ -export declare function bidiToCdpCookie(params: Storage.SetCookieParameters, partitionKey: Storage.PartitionKey): Protocol.Network.CookieParam; -export declare function sameSiteBiDiToCdp(sameSite: Network.SameSite): Protocol.Network.CookieSameSite; -/** - * Returns true if the given protocol is special. - * Special protocols are those that have a default port. - * - * Example inputs: 'http', 'http:' - * - * @see https://url.spec.whatwg.org/#special-scheme - */ -export declare function isSpecialScheme(protocol: string): boolean; -export interface ParsedUrlPattern { - protocol?: string; - hostname?: string; - port?: string; - pathname?: string; - search?: string; -} -/** Matches the given URLPattern against the given URL. */ -export declare function matchUrlPattern(pattern: ParsedUrlPattern, url: string): boolean; -export declare function bidiBodySizeFromCdpPostDataEntries(entries: Protocol.Network.PostDataEntry[]): number; -export declare function getTiming(timing: number | undefined, offset?: number): number; diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkUtils.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkUtils.js deleted file mode 100644 index 8859462..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkUtils.js +++ /dev/null @@ -1,303 +0,0 @@ -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -import { InvalidArgumentException } from '../../../protocol/ErrorResponse.js'; -import { base64ToString } from '../../../utils/base64.js'; -export function computeHeadersSize(headers) { - const requestHeaders = headers.reduce((acc, header) => { - return `${acc}${header.name}: ${header.value.value}\r\n`; - }, ''); - return new TextEncoder().encode(requestHeaders).length; -} -export function stringToBase64(str) { - return typedArrayToBase64(new TextEncoder().encode(str)); -} -function typedArrayToBase64(typedArray) { - // chunkSize should be less V8 limit on number of arguments! - // https://github.com/v8/v8/blob/d3de848bea727518aee94dd2fd42ba0b62037a27/src/objects/code.h#L444 - const chunkSize = 65534; - const chunks = []; - for (let i = 0; i < typedArray.length; i += chunkSize) { - const chunk = typedArray.subarray(i, i + chunkSize); - chunks.push(String.fromCodePoint.apply(null, chunk)); - } - const binaryString = chunks.join(''); - return btoa(binaryString); -} -/** Converts from CDP Network domain headers to BiDi network headers. */ -export function bidiNetworkHeadersFromCdpNetworkHeaders(headers) { - if (!headers) { - return []; - } - return Object.entries(headers).map(([name, value]) => ({ - name, - value: { - type: 'string', - value, - }, - })); -} -/** Converts from CDP Fetch domain headers to BiDi network headers. */ -export function bidiNetworkHeadersFromCdpNetworkHeadersEntries(headers) { - if (!headers) { - return []; - } - return headers.map(({ name, value }) => ({ - name, - value: { - type: 'string', - value, - }, - })); -} -/** Converts from Bidi network headers to CDP Network domain headers. */ -export function cdpNetworkHeadersFromBidiNetworkHeaders(headers) { - if (headers === undefined) { - return undefined; - } - return headers.reduce((result, header) => { - // TODO: Distinguish between string and bytes? - result[header.name] = header.value.value; - return result; - }, {}); -} -/** Converts from CDP Fetch domain header entries to Bidi network headers. */ -export function bidiNetworkHeadersFromCdpFetchHeaders(headers) { - if (!headers) { - return []; - } - return headers.map(({ name, value }) => ({ - name, - value: { - type: 'string', - value, - }, - })); -} -/** Converts from Bidi network headers to CDP Fetch domain header entries. */ -export function cdpFetchHeadersFromBidiNetworkHeaders(headers) { - if (headers === undefined) { - return undefined; - } - return headers.map(({ name, value }) => ({ - name, - value: value.value, - })); -} -export function networkHeaderFromCookieHeaders(headers) { - if (headers === undefined) { - return undefined; - } - const value = headers.reduce((acc, value, index) => { - if (index > 0) { - acc += ';'; - } - const cookieValue = value.value.type === 'base64' - ? btoa(value.value.value) - : value.value.value; - acc += `${value.name}=${cookieValue}`; - return acc; - }, ''); - return { - name: 'Cookie', - value: { - type: 'string', - value, - }, - }; -} -/** Converts from Bidi auth action to CDP auth challenge response. */ -export function cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction(action) { - switch (action) { - case 'default': - return 'Default'; - case 'cancel': - return 'CancelAuth'; - case 'provideCredentials': - return 'ProvideCredentials'; - } -} -/** - * Converts from CDP Network domain cookie to BiDi network cookie. - * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie - * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie - */ -export function cdpToBiDiCookie(cookie) { - const result = { - name: cookie.name, - value: { type: 'string', value: cookie.value }, - domain: cookie.domain, - path: cookie.path, - size: cookie.size, - httpOnly: cookie.httpOnly, - secure: cookie.secure, - sameSite: cookie.sameSite === undefined - ? "none" /* Network.SameSite.None */ - : sameSiteCdpToBiDi(cookie.sameSite), - ...(cookie.expires >= 0 ? { expiry: Math.round(cookie.expires) } : undefined), - }; - // Extending with CDP-specific properties with `goog:` prefix. - result[`goog:session`] = cookie.session; - result[`goog:priority`] = cookie.priority; - result[`goog:sourceScheme`] = cookie.sourceScheme; - result[`goog:sourcePort`] = cookie.sourcePort; - if (cookie.partitionKey !== undefined) { - result[`goog:partitionKey`] = cookie.partitionKey; - } - if (cookie.partitionKeyOpaque !== undefined) { - result[`goog:partitionKeyOpaque`] = cookie.partitionKeyOpaque; - } - return result; -} -/** - * Decodes a byte value to a string. - * @param {Network.BytesValue} value - * @return {string} - */ -export function deserializeByteValue(value) { - if (value.type === 'base64') { - return base64ToString(value.value); - } - return value.value; -} -/** - * Converts from BiDi set network cookie params to CDP Network domain cookie. - * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie - * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieParam - */ -export function bidiToCdpCookie(params, partitionKey) { - const deserializedValue = deserializeByteValue(params.cookie.value); - const result = { - name: params.cookie.name, - value: deserializedValue, - domain: params.cookie.domain, - path: params.cookie.path ?? '/', - secure: params.cookie.secure ?? false, - httpOnly: params.cookie.httpOnly ?? false, - ...(partitionKey.sourceOrigin !== undefined && { - partitionKey: { - hasCrossSiteAncestor: false, - // CDP's `partitionKey.topLevelSite` is the BiDi's `partition.sourceOrigin`. - topLevelSite: partitionKey.sourceOrigin, - }, - }), - ...(params.cookie.expiry !== undefined && { - expires: params.cookie.expiry, - }), - ...(params.cookie.sameSite !== undefined && { - sameSite: sameSiteBiDiToCdp(params.cookie.sameSite), - }), - }; - // Extending with CDP-specific properties with `goog:` prefix. - if (params.cookie[`goog:url`] !== undefined) { - result.url = params.cookie[`goog:url`]; - } - if (params.cookie[`goog:priority`] !== undefined) { - result.priority = params.cookie[`goog:priority`]; - } - if (params.cookie[`goog:sourceScheme`] !== undefined) { - result.sourceScheme = params.cookie[`goog:sourceScheme`]; - } - if (params.cookie[`goog:sourcePort`] !== undefined) { - result.sourcePort = params.cookie[`goog:sourcePort`]; - } - return result; -} -function sameSiteCdpToBiDi(sameSite) { - switch (sameSite) { - case 'Strict': - return "strict" /* Network.SameSite.Strict */; - case 'None': - return "none" /* Network.SameSite.None */; - case 'Lax': - return "lax" /* Network.SameSite.Lax */; - default: - // Defaults to `Lax`: - // https://web.dev/articles/samesite-cookies-explained#samesitelax_by_default - return "lax" /* Network.SameSite.Lax */; - } -} -export function sameSiteBiDiToCdp(sameSite) { - switch (sameSite) { - case "none" /* Network.SameSite.None */: - return 'None'; - case "strict" /* Network.SameSite.Strict */: - return 'Strict'; - // Defaults to `Lax`: - // https://web.dev/articles/samesite-cookies-explained#samesitelax_by_default - case "default" /* Network.SameSite.Default */: - case "lax" /* Network.SameSite.Lax */: - return 'Lax'; - } - throw new InvalidArgumentException(`Unknown 'sameSite' value ${sameSite}`); -} -/** - * Returns true if the given protocol is special. - * Special protocols are those that have a default port. - * - * Example inputs: 'http', 'http:' - * - * @see https://url.spec.whatwg.org/#special-scheme - */ -export function isSpecialScheme(protocol) { - return ['ftp', 'file', 'http', 'https', 'ws', 'wss'].includes(protocol.replace(/:$/, '')); -} -function getScheme(url) { - return url.protocol.replace(/:$/, ''); -} -/** Matches the given URLPattern against the given URL. */ -export function matchUrlPattern(pattern, url) { - // Roughly https://w3c.github.io/webdriver-bidi/#match-url-pattern - // plus some differences based on the URL parsing methods. - const parsedUrl = new URL(url); - if (pattern.protocol !== undefined && - pattern.protocol !== getScheme(parsedUrl)) { - return false; - } - if (pattern.hostname !== undefined && - pattern.hostname !== parsedUrl.hostname) { - return false; - } - if (pattern.port !== undefined && pattern.port !== parsedUrl.port) { - return false; - } - if (pattern.pathname !== undefined && - pattern.pathname !== parsedUrl.pathname) { - return false; - } - if (pattern.search !== undefined && pattern.search !== parsedUrl.search) { - return false; - } - return true; -} -export function bidiBodySizeFromCdpPostDataEntries(entries) { - let size = 0; - for (const entry of entries) { - size += atob(entry.bytes ?? '').length; - } - return size; -} -export function getTiming(timing, offset = 0) { - if (!timing) { - return 0; - } - if (timing <= 0 || timing + offset <= 0) { - return 0; - } - return timing + offset; -} -//# sourceMappingURL=NetworkUtils.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkUtils.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkUtils.js.map deleted file mode 100644 index 8b5f0ea..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/network/NetworkUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkUtils.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/network/NetworkUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAExD,MAAM,UAAU,kBAAkB,CAAC,OAAyB;IAC1D,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACpD,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC;IAC3D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,OAAO,kBAAkB,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,kBAAkB,CAAC,UAAsB;IAChD,4DAA4D;IAC5D,iGAAiG;IACjG,MAAM,SAAS,GAAG,KAAK,CAAC;IACxB,MAAM,MAAM,GAAG,EAAE,CAAC;IAElB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC;QACtD,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC;QACpD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,KAA4B,CAAC,CAAC,CAAC;IAC9E,CAAC;IAED,MA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AO,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ,EACvC,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM,EAAE,CAAC;QACxE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAAyC;IAEzC,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IACzC,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,SAAS,CACvB,MAA0B,EAC1B,SAAiB,CAAC;IAElB,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,CAAC,CAAC;IACX,CAAC;IACD,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC;QACxC,OAAO,CAAC,CAAC;IACX,CAAC;IAED,OAAO,MAAM,GAAG,MAAM,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/permissions/PermissionsProcessor.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/permissions/PermissionsProcessor.d.ts deleted file mode 100644 index 32ccca8..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/permissions/PermissionsProcessor.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import type { CdpClient } from '../../../cdp/CdpClient.js'; -import { type EmptyResult, type Permissions } from '../../../protocol/protocol.js'; -export declare class PermissionsProcessor { - #private; - constructor(browserCdpClient: CdpClient); - setPermissions(params: Permissions.SetPermissionParameters): Promise; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/permissions/PermissionsProcessor.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/permissions/PermissionsProcessor.js deleted file mode 100644 index ceffeef..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/permissions/PermissionsProcessor.js +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Copyright 2024 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { InvalidArgumentException, } from '../../../protocol/protocol.js'; -export class PermissionsProcessor { - #browserCdpClient; - constructor(browserCdpClient) { - this.#browserCdpClient = browserCdpClient; - } - async setPermissions(params) { - try { - const userContextId = params['goog:userContext'] || - params.userContext; - await this.#browserCdpClient.sendCommand('Browser.setPermission', { - origin: params.origin, - embeddedOrigin: params.embeddedOrigin, - browserContextId: userContextId && userContextId !== 'default' - ? userContextId - : undefined, - permission: { - name: params.descriptor.name, - }, - setting: params.state, - }); - } - catch (err) { - if (err.message === - `Permission can't be granted to opaque origins.`) { - // Return success if the origin is not valid (does not match any - // existing origins). - return {}; - } - throw new InvalidArgumentException(err.message); - } - return {}; - } -} -//# sourceMappingURL=PermissionsProcessor.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/permissions/PermissionsProcessor.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/permissions/PermissionsProcessor.js.map deleted file mode 100644 index 7c0eb14..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/permissions/PermissionsProcessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PermissionsProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/permissions/PermissionsProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EACL,wBAAwB,GAGzB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,OAAO,oBAAoB;IAC/B,iBAAiB,CAAY;IAE7B,YAAY,gBAA2B;QACrC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAA2C;QAE3C,IAAI,CAAC;YACH,MAAM,aAAa,GAChB,MAAwC,CAAC,kBAAkB,CAAC;gBAC7D,MAAM,CAAC,WAAW,CAAC;YACrB,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,uBAAuB,EAAE;gBAChE,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,cAAc,EAAE,MAAM,CAAC,cAAc;gBACrC,gBAAgB,EACd,aAAa,IAAI,aAAa,KAAK,SAAS;oBAC1C,CAAC,CAAC,aAAa;oBACf,CAAC,CAAC,SAAS;gBACf,UAAU,EAAE;oBACV,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI;iBAC7B;gBACD,OAAO,EAAE,MAAM,CAAC,KAAK;aACtB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IACG,GAAa,CAAC,OAAO;gBACtB,gDAAgD,EAChD,CAAC;gBACD,gEAAgE;gBAChE,qBAAqB;gBACrB,OAAO,EAAE,CAAC;YACZ,CAAC;YACD,MAAM,IAAI,wBAAwB,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/script/ChannelProxy.d.ts b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/script/ChannelProxy.d.ts deleted file mode 100644 index 2c58300..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/script/ChannelProxy.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Script } from '../../../protocol/protocol.js'; -import { type LoggerFn } from '../../../utils/log.js'; -import type { EventManager } from '../session/EventManager.js'; -import type { Realm } from './Realm.js'; -/** - * Used to send messages from realm to BiDi user. - */ -export declare class ChannelProxy { - #private; - constructor(channel: Script.ChannelProperties, logger?: LoggerFn); - /** - * Creates a channel proxy in the given realm, initialises listener and - * returns a handle to `sendMessage` delegate. - */ - init(realm: Realm, eventManager: EventManager): Promise; - /** Gets a ChannelProxy from window and returns its handle. */ - startListenerFromWindow(realm: Realm, eventManager: EventManager): Promise; - /** - * String to be evaluated to create a ProxyChannel and put it to window. - * Returns the delegate `sendMessage`. Used to provide an argument for preload - * script. Does the following: - * 1. Creates a ChannelProxy. - * 2. Puts the ChannelProxy to window['${this.#id}'] or resolves the promise - * by calling delegate stored in window['${this.#id}']. - * This is needed because `#getHandleFromWindow` can be called before or - * after this method. - * 3. Returns the delegate `sendMessage` of the created ChannelProxy. - */ - getEvalInWindowStr(): string; -} diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/script/ChannelProxy.js b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/script/ChannelProxy.js deleted file mode 100644 index 65d5558..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/script/ChannelProxy.js +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -import { ChromiumBidi } from '../../../protocol/protocol.js'; -import { LogType } from '../../../utils/log.js'; -import { uuidv4 } from '../../../utils/uuid.js'; -/** - * Used to send messages from realm to BiDi user. - */ -export class ChannelProxy { - #properties; - #id = uuidv4(); - #logger; - constructor(channel, logger) { - this.#properties = channel; - this.#logger = logger; - } - /** - * Creates a channel proxy in the given realm, initialises listener and - * returns a handle to `sendMessage` delegate. - */ - async init(realm, eventManager) { - const channelHandle = await ChannelProxy.#createAndGetHandleInRealm(realm); - const sendMessageHandle = await ChannelProxy.#createSendMessageHandle(realm, channelHandle); - void this.#startListener(realm, channelHandle, eventManager); - return sendMessageHandle; - } - /** Gets a ChannelProxy from window and returns its handle. */ - async startListenerFromWindow(realm, eventManager) { - try { - const channelHandle = await this.#getHandleFromWindow(realm); - void this.#startListener(realm, channelHandle, eventManager); - } - catch (error) { - this.#logger?.(LogType.debugError, error); - } - } - /** - * Evaluation string which creates a ChannelProxy object on the client side. - */ - static #createChannelProxyEvalStr() { - const functionStr = String(() => { - const queue = []; - let queueNonEmptyResolver = null; - return { - /** - * Gets a promise, which is resolved as soon as a message occurs - * in the queue. - */ - async getMessage() { - const onMessage = queue.length > 0 - ? Promise.resolve() - : new Promise((resolve) => { - queueNonEmptyResolver = resolve; - }); - await onMessage; - return queue.shift(); - }, - /** - * Adds a message to the queue. - * Resolves the pending promise if needed. - */ - sendMessage(message) { - queue.push(message); - if (queueNonEmptyResolver !== null) { - queueNonEmptyResolver(); - queueNonEmptyResolver = null; - } - }, - }; - }); - return `(${functionStr})()`; - } - /** Creates a ChannelProxy in the given realm. */ - static async #createAndGetHandleInRealm(realm) { - const createChannelHandleResult = await realm.cdpClient.sendCommand('Runtime.evaluate', { - expression: this.#createChannelProxyEvalStr(), - contextId: realm.executionContextId, - serializationOptions: { - serialization: "idOnly" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */, - }, - }); - if (createChannelHandleResult.exceptionDetails || - createChannelHandleResult.result.objectId === undefined) { - throw new Error(`Cannot create channel`); - } - return createChannelHandleResult.result.objectId; - } - /** Gets a handle to `sendMessage` delegate from the ChannelProxy handle. */ - static async #createSendMessageHandle(realm, channelHandle) { - const sendMessageArgResult = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((channelHandle) => { - return channelHandle.sendMessage; - }), - arguments: [{ objectId: channelHandle }], - executionContextId: realm.executionContextId, - serializationOptions: { - serialization: "idOnly" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */, - }, - }); - // TODO: check for exceptionDetails. - return sendMessageArgResult.result.objectId; - } - /** Starts listening for the channel events of the provided ChannelProxy. */ - async #startListener(realm, channelHandle, eventManager) { - // noinspection InfiniteLoopJS - for (;;) { - try { - const message = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String(async (channelHandle) => await channelHandle.getMessage()), - arguments: [ - { - objectId: channelHandle, - }, - ], - awaitPromise: true, - executionContextId: realm.executionContextId, - serializationOptions: { - serialization: "deep" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */, - maxDepth: this.#properties.serializationOptions?.maxObjectDepth ?? - undefined, - }, - }); - if (message.exceptionDetails) { - throw new Error('Runtime.callFunctionOn in ChannelProxy', { - cause: message.exceptionDetails, - }); - } - for (const browsingContext of realm.associatedBrowsingContexts) { - eventManager.registerEvent({ - type: 'event', - method: ChromiumBidi.Script.EventNames.Message, - params: { - channel: this.#properties.channel, - data: realm.cdpToBidiValue(message, this.#properties.ownership ?? "none" /* Script.ResultOwnership.None */), - source: realm.source, - }, - }, browsingContext.id); - } - } - catch (error) { - // If an error is thrown, then the channel is permanently broken, so we - // exit the loop. - this.#logger?.(LogType.debugError, error); - break; - } - } - } - /** - * Returns a handle of ChannelProxy from window's property which was set there - * by `getEvalInWindowStr`. If window property is not set yet, sets a promise - * resolver to the window property, so that `getEvalInWindowStr` can resolve - * the promise later on with the channel. - * This is needed because `getEvalInWindowStr` can be called before or - * after this method. - */ - async #getHandleFromWindow(realm) { - const channelHandleResult = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', { - functionDeclaration: String((id) => { - const w = window; - if (w[id] === undefined) { - // The channelProxy is not created yet. Create a promise, put the - // resolver to window property and return the promise. - // `getEvalInWindowStr` will resolve the promise later. - return new Promise((resolve) => (w[id] = resolve)); - } - // The channelProxy is already created by `getEvalInWindowStr` and - // is set into window property. Return it. - const channelProxy = w[id]; - delete w[id]; - return channelProxy; - }), - arguments: [{ value: this.#id }], - executionContextId: realm.executionContextId, - awaitPromise: true, - serializationOptions: { - serialization: "idOnly" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */, - }, - }); - if (channelHandleResult.exceptionDetails !== undefined || - channelHandleResult.result.objectId === undefined) { - throw new Error(`ChannelHandle not found in window["${this.#id}"]`); - } - return channelHandleResult.result.objectId; - } - /** - * String to be evaluated to create a ProxyChannel and put it to window. - * Returns the delegate `sendMessage`. Used to provide an argument for preload - * script. Does the following: - * 1. Creates a ChannelProxy. - * 2. Puts the ChannelProxy to window['${this.#id}'] or resolves the promise - * by calling delegate stored in window['${this.#id}']. - * This is needed because `#getHandleFromWindow` can be called before or - * after this method. - * 3. Returns the delegate `sendMessage` of the created ChannelProxy. - */ - getEvalInWindowStr() { - const delegate = String((id, channelProxy) => { - const w = window; - if (w[id] === undefined) { - // `#getHandleFromWindow` is not initialized yet, and will get the - // channelProxy later. - w[id] = channelProxy; - } - else { - // `#getHandleFromWindow` is already set a delegate to window property - // and is waiting for it to be called with the channelProxy. - w[id](channelProxy); - delete w[id]; - } - return channelProxy.sendMessage; - }); - const channelProxyEval = ChannelProxy.#createChannelProxyEvalStr(); - return `(${delegate})('${this.#id}',${channelProxyEval})`; - } -} -//# sourceMappingURL=ChannelProxy.js.map \ No newline at end of file diff --git a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/script/ChannelProxy.js.map b/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/script/ChannelProxy.js.map deleted file mode 100644 index 44c4d1b..0000000 --- a/node_modules/chromium-bidi/lib/esm/bidiMapper/modules/script/ChannelProxy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChannelProxy.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/modules/script/ChannelProxy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAC,YAAY,EAAS,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAC,OAAO,EAAgB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,MAAM,EAAC,MAAM,wBAAwB,CAAC;AAK9C;;GAEG;AACH,MAAM,OAAO,YAAY;IACd,WAAW,CAA2B;IAEtC,GAAG,GAAG,MAAM,EAAE,CAAC;IACf,OAAO,CAAY;IAE5B,YAAY,OAAiC,EAAE,MAAiB;QAC9D,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,CAAC,KAAY,EAAE,YAA0B;QACjD,MAAM,aAAa,GAAG,MAAM,YAAY,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;QAC3E,MAAM,iBAAiB,GAAG,MAAM,YAAY,CAAC,wBAAwB,CACnE,KAAK,EACL,aAAa,CACd,CAAC;QAEF,KAAK,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;QAC7D,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,8DAA8D;IAC9D,KAAK,CAAC,uBAAuB,CAAC,KAAY,EAAE,YAA0B;QACpE,IAAI,CAAC;YACH,MAA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