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

@ -16,19 +16,19 @@
*/
import type { Protocol } from 'devtools-protocol';
import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
import type { BrowsingContext, JsUint } from './generated/webdriver-bidi.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;
export type CommandData = SendCommandCommand | GetSessionCommand | ResolveRealmCommand;
export type CommandResponse = {
type: 'success';
id: JsUint;
result: ResultData;
};
export type ResultData = SendCommandResult | GetSessionResult;
export type ResultData = SendCommandResult | GetSessionResult | ResolveRealmResult;
export type SendCommandCommand = {
method: 'cdp.sendCommand';
params: SendCommandParameters;
@ -52,6 +52,16 @@ export type GetSessionParameters = {
export type GetSessionResult = {
session?: Protocol.Target.SessionID;
};
export type ResolveRealmCommand = {
method: 'cdp.resolveRealm';
params: ResolveRealmParameters;
};
export type ResolveRealmParameters = {
realm: Script.Realm;
};
export type ResolveRealmResult = {
executionContextId: Protocol.Runtime.ExecutionContextId;
};
export type Event = {
type: 'event';
} & EventData;