Node updated. Some todos.

This commit is contained in:
Norm Rasmussen
2024-09-23 20:52:09 -04:00
parent 8bfaca8375
commit f25622067f
2041 changed files with 124145 additions and 110445 deletions

View File

@ -21,31 +21,16 @@
import { z, type ZodType } from 'zod';
import type * as Protocol from '../protocol/protocol.js';
export declare function parseObject<T extends ZodType>(obj: unknown, schema: T): z.infer<T>;
/** @see https://w3c.github.io/webdriver-bidi/#module-browser */
export declare namespace Browser {
function parseRemoveUserContextParams(params: unknown): Protocol.Browser.RemoveUserContextParameters;
}
/** @see https://w3c.github.io/webdriver-bidi/#module-network */
export declare namespace Network {
function parseAddInterceptParameters(params: unknown): {
phases: ("beforeRequestSent" | "responseStarted" | "authRequired")[];
urlPatterns?: ({
type: "pattern";
protocol?: string | undefined;
hostname?: string | undefined;
port?: string | undefined;
pathname?: string | undefined;
search?: string | undefined;
} | {
type: "string";
pattern: string;
})[] | undefined;
};
function parseAddInterceptParameters(params: unknown): Protocol.Network.AddInterceptParameters;
function parseContinueRequestParameters(params: unknown): {
request: string;
body?: {
type: "string";
value: string;
} | {
type: "base64";
value: string;
} | undefined;
url?: string | undefined;
cookies?: {
value: {
type: "string";
@ -56,6 +41,14 @@ export declare namespace Network {
};
name: string;
}[] | undefined;
method?: string | undefined;
body?: {
type: "string";
value: string;
} | {
type: "base64";
value: string;
} | undefined;
headers?: {
value: {
type: "string";
@ -66,8 +59,6 @@ export declare namespace Network {
};
name: string;
}[] | undefined;
method?: string | undefined;
url?: string | undefined;
};
function parseContinueResponseParameters(params: unknown): Protocol.Network.ContinueResponseParameters;
function parseContinueWithAuthParameters(params: unknown): {
@ -116,6 +107,7 @@ export declare namespace BrowsingContext {
function parseSetViewportParams(params: unknown): Protocol.BrowsingContext.SetViewportParameters;
function parseTraverseHistoryParams(params: unknown): Protocol.BrowsingContext.TraverseHistoryParameters;
function parseHandleUserPromptParameters(params: unknown): Protocol.BrowsingContext.HandleUserPromptParameters;
function parseLocateNodesParams(params: unknown): Protocol.BrowsingContext.LocateNodesParameters;
}
/** @see https://w3c.github.io/webdriver-bidi/#module-session */
export declare namespace Session {
@ -134,6 +126,7 @@ export declare namespace Storage {
export declare namespace Cdp {
function parseSendCommandRequest(params: unknown): Protocol.Cdp.SendCommandParameters;
function parseGetSessionRequest(params: unknown): Protocol.Cdp.GetSessionParameters;
function parseResolveRealmRequest(params: unknown): Protocol.Cdp.ResolveRealmParameters;
}
export declare namespace Permissions {
function parseSetPermissionsParams(params: unknown): Protocol.Permissions.SetPermissionParameters;