Node updated. Some todos.
This commit is contained in:
@ -15,7 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate.
|
||||
* THIS FILE IS AUTOGENERATED by cddlconv 0.1.5.
|
||||
* 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;
|
||||
@ -42,5 +43,6 @@ export declare namespace Permissions {
|
||||
descriptor: Permissions.PermissionDescriptor;
|
||||
state: Permissions.PermissionState;
|
||||
origin: string;
|
||||
userContext?: string;
|
||||
};
|
||||
}
|
||||
|
||||
106
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts
generated
vendored
106
Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts
generated
vendored
@ -15,7 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate.
|
||||
* THIS FILE IS AUTOGENERATED by cddlconv 0.1.5.
|
||||
* Run `node tools/generate-bidi-types.mjs` to regenerate.
|
||||
* @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs
|
||||
*/
|
||||
export type Event = {
|
||||
@ -55,6 +56,7 @@ export type JsInt = number;
|
||||
export type JsUint = number;
|
||||
export declare const enum ErrorCode {
|
||||
InvalidArgument = "invalid argument",
|
||||
InvalidSelector = "invalid selector",
|
||||
InvalidSessionId = "invalid session id",
|
||||
MoveTargetOutOfBounds = "move target out of bounds",
|
||||
NoSuchAlert = "no such alert",
|
||||
@ -96,7 +98,7 @@ export declare namespace Session {
|
||||
browserVersion?: string;
|
||||
platformName?: string;
|
||||
proxy?: Session.ProxyConfiguration;
|
||||
webSocketUrl?: boolean;
|
||||
unhandledPromptBehavior?: Session.UserPromptHandler;
|
||||
} & Extensible;
|
||||
}
|
||||
export declare namespace Session {
|
||||
@ -139,10 +141,29 @@ export declare namespace Session {
|
||||
proxyType: 'system';
|
||||
} & Extensible;
|
||||
}
|
||||
export declare namespace Session {
|
||||
type UserPromptHandler = {
|
||||
alert?: Session.UserPromptHandlerType;
|
||||
beforeUnload?: Session.UserPromptHandlerType;
|
||||
confirm?: Session.UserPromptHandlerType;
|
||||
default?: Session.UserPromptHandlerType;
|
||||
prompt?: Session.UserPromptHandlerType;
|
||||
};
|
||||
}
|
||||
export declare namespace Session {
|
||||
const enum UserPromptHandlerType {
|
||||
Accept = "accept",
|
||||
Dismiss = "dismiss",
|
||||
Ignore = "ignore"
|
||||
}
|
||||
}
|
||||
export declare namespace Session {
|
||||
type SubscriptionRequest = {
|
||||
events: [...string[]];
|
||||
contexts?: [...BrowsingContext.BrowsingContext[]];
|
||||
events: [string, ...string[]];
|
||||
contexts?: [
|
||||
BrowsingContext.BrowsingContext,
|
||||
...BrowsingContext.BrowsingContext[]
|
||||
];
|
||||
};
|
||||
}
|
||||
export declare namespace Session {
|
||||
@ -177,7 +198,9 @@ export declare namespace Session {
|
||||
browserVersion: string;
|
||||
platformName: string;
|
||||
setWindowRect: boolean;
|
||||
userAgent: string;
|
||||
proxy?: Session.ProxyConfiguration;
|
||||
unhandledPromptBehavior?: Session.UserPromptHandler;
|
||||
webSocketUrl?: string;
|
||||
} & Extensible;
|
||||
};
|
||||
@ -239,9 +262,12 @@ export declare namespace Browser {
|
||||
export declare namespace Browser {
|
||||
type RemoveUserContext = {
|
||||
method: 'browser.removeUserContext';
|
||||
params: {
|
||||
userContext: Browser.UserContext;
|
||||
};
|
||||
params: Browser.RemoveUserContextParameters;
|
||||
};
|
||||
}
|
||||
export declare namespace Browser {
|
||||
type RemoveUserContextParameters = {
|
||||
userContext: Browser.UserContext;
|
||||
};
|
||||
}
|
||||
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;
|
||||
@ -257,13 +283,23 @@ export declare namespace BrowsingContext {
|
||||
type Info = {
|
||||
children: BrowsingContext.InfoList | null;
|
||||
context: BrowsingContext.BrowsingContext;
|
||||
originalOpener: BrowsingContext.BrowsingContext | null;
|
||||
url: string;
|
||||
userContext: Browser.UserContext;
|
||||
parent?: BrowsingContext.BrowsingContext | null;
|
||||
};
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
type Locator = BrowsingContext.CssLocator | BrowsingContext.InnerTextLocator | BrowsingContext.XPathLocator;
|
||||
type Locator = BrowsingContext.AccessibilityLocator | BrowsingContext.CssLocator | BrowsingContext.InnerTextLocator | BrowsingContext.XPathLocator;
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
type AccessibilityLocator = {
|
||||
type: 'accessibility';
|
||||
value: {
|
||||
name?: string;
|
||||
role?: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
type CssLocator = {
|
||||
@ -304,6 +340,14 @@ export declare namespace BrowsingContext {
|
||||
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';
|
||||
@ -399,7 +443,7 @@ export declare namespace BrowsingContext {
|
||||
* @defaultValue `false`
|
||||
*/
|
||||
background?: boolean;
|
||||
userContext?: Browser.UserContext | null;
|
||||
userContext?: Browser.UserContext;
|
||||
};
|
||||
}
|
||||
export declare namespace BrowsingContext {
|
||||
@ -445,8 +489,6 @@ export declare namespace BrowsingContext {
|
||||
* Must be greater than or equal to `1`.
|
||||
*/
|
||||
maxNodeCount?: JsUint;
|
||||
ownership?: Script.ResultOwnership;
|
||||
sandbox?: string;
|
||||
serializationOptions?: Script.SerializationOptions;
|
||||
startNodes?: [Script.SharedReference, ...Script.SharedReference[]];
|
||||
};
|
||||
@ -676,6 +718,7 @@ export declare namespace BrowsingContext {
|
||||
type UserPromptClosedParameters = {
|
||||
context: BrowsingContext.BrowsingContext;
|
||||
accepted: boolean;
|
||||
type: BrowsingContext.UserPromptType;
|
||||
userText?: string;
|
||||
};
|
||||
}
|
||||
@ -688,12 +731,13 @@ export declare namespace BrowsingContext {
|
||||
export declare namespace BrowsingContext {
|
||||
type UserPromptOpenedParameters = {
|
||||
context: BrowsingContext.BrowsingContext;
|
||||
type: 'alert' | 'confirm' | 'prompt' | 'beforeunload';
|
||||
handler: Session.UserPromptHandlerType;
|
||||
message: string;
|
||||
type: BrowsingContext.UserPromptType;
|
||||
defaultValue?: string;
|
||||
};
|
||||
}
|
||||
export type NetworkCommand = Network.AddIntercept | Network.ContinueRequest | Network.ContinueResponse | Network.ContinueWithAuth | Network.FailRequest | Network.ProvideResponse | Network.RemoveIntercept;
|
||||
export type NetworkCommand = Network.AddIntercept | Network.ContinueRequest | Network.ContinueResponse | Network.ContinueWithAuth | Network.FailRequest | Network.ProvideResponse | Network.RemoveIntercept | Network.SetCacheBehavior;
|
||||
export type NetworkEvent = Network.AuthRequired | Network.BeforeRequestSent | Network.FetchError | Network.ResponseCompleted | Network.ResponseStarted;
|
||||
export type NetworkResult = Network.AddInterceptResult;
|
||||
export declare namespace Network {
|
||||
@ -829,7 +873,7 @@ export declare namespace Network {
|
||||
headersSize: JsUint | null;
|
||||
bodySize: JsUint | null;
|
||||
content: Network.ResponseContent;
|
||||
authChallenge?: Network.AuthChallenge;
|
||||
authChallenges?: [...Network.AuthChallenge[]];
|
||||
};
|
||||
}
|
||||
export declare namespace Network {
|
||||
@ -867,6 +911,10 @@ export declare namespace Network {
|
||||
export declare namespace Network {
|
||||
type AddInterceptParameters = {
|
||||
phases: [Network.InterceptPhase, ...Network.InterceptPhase[]];
|
||||
contexts?: [
|
||||
BrowsingContext.BrowsingContext,
|
||||
...BrowsingContext.BrowsingContext[]
|
||||
];
|
||||
urlPatterns?: [...Network.UrlPattern[]];
|
||||
};
|
||||
}
|
||||
@ -980,6 +1028,21 @@ export declare namespace Network {
|
||||
intercept: Network.Intercept;
|
||||
};
|
||||
}
|
||||
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 type ScriptEvent = Script.Message | Script.RealmCreated | Script.RealmDestroyed;
|
||||
export declare namespace Network {
|
||||
type AuthRequiredParameters = Network.BaseParameters & {
|
||||
@ -1210,13 +1273,11 @@ export declare namespace Script {
|
||||
export declare namespace Script {
|
||||
type SharedWorkerRealmInfo = Script.BaseRealmInfo & {
|
||||
type: 'shared-worker';
|
||||
owners: [Script.Realm, ...Script.Realm[]];
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
type ServiceWorkerRealmInfo = Script.BaseRealmInfo & {
|
||||
type: 'service-worker';
|
||||
owners: [...Script.Realm[]];
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
@ -1251,7 +1312,7 @@ export declare namespace Script {
|
||||
];
|
||||
}
|
||||
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.IteratorRemoteValue | Script.GeneratorRemoteValue | Script.ErrorRemoteValue | Script.ProxyRemoteValue | Script.PromiseRemoteValue | Script.TypedArrayRemoteValue | Script.ArrayBufferRemoteValue | Script.NodeListRemoteValue | Script.HtmlCollectionRemoteValue | Script.NodeRemoteValue | Script.WindowProxyRemoteValue;
|
||||
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 RemoteReference = Script.SharedReference | Script.RemoteObjectReference;
|
||||
@ -1340,13 +1401,6 @@ export declare namespace Script {
|
||||
internalId?: Script.InternalId;
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
type IteratorRemoteValue = {
|
||||
type: 'iterator';
|
||||
handle?: Script.Handle;
|
||||
internalId?: Script.InternalId;
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
type GeneratorRemoteValue = {
|
||||
type: 'generator';
|
||||
@ -1498,7 +1552,7 @@ export declare namespace Script {
|
||||
};
|
||||
}
|
||||
export declare namespace Script {
|
||||
type Target = Script.RealmTarget | Script.ContextTarget;
|
||||
type Target = Script.ContextTarget | Script.RealmTarget;
|
||||
}
|
||||
export declare namespace Script {
|
||||
type AddPreloadScript = {
|
||||
@ -1877,7 +1931,7 @@ export declare namespace Input {
|
||||
type PointerUpAction = {
|
||||
type: 'pointerUp';
|
||||
button: JsUint;
|
||||
} & Input.PointerCommonProperties;
|
||||
};
|
||||
}
|
||||
export declare namespace Input {
|
||||
type PointerDownAction = {
|
||||
|
||||
Reference in New Issue
Block a user