webdriver-bidi-protocol 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE.md +16 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +6 -0
- package/LICENSE +202 -0
- package/README.md +4 -0
- package/docs/code-of-conduct.md +93 -0
- package/docs/contributing.md +32 -0
- package/out/gen/main.d.ts +2080 -0
- package/out/gen/main.js +2 -0
- package/out/gen/permissions.d.ts +27 -0
- package/out/gen/permissions.js +2 -0
- package/out/index.d.ts +171 -0
- package/out/index.js +23 -0
- package/package.json +17 -0
- package/src/index.ts +184 -0
- package/test-d/webdriver-bidi-protocol.test-d.ts +46 -0
- package/tools/build.sh +26 -0
- package/tsconfig.json +110 -0
|
@@ -0,0 +1,2080 @@
|
|
|
1
|
+
export type Event = (({
|
|
2
|
+
"type": ("event");
|
|
3
|
+
} & EventData & Extensible));
|
|
4
|
+
export type Command = (({
|
|
5
|
+
"id": (JsUint);
|
|
6
|
+
} & CommandData & Extensible));
|
|
7
|
+
export type CommandResponse = (({
|
|
8
|
+
"type": ("success");
|
|
9
|
+
"id": (JsUint);
|
|
10
|
+
"result": (ResultData);
|
|
11
|
+
} & Extensible));
|
|
12
|
+
export type EventData = (BrowsingContextEvent | LogEvent | NetworkEvent | ScriptEvent);
|
|
13
|
+
export type CommandData = (BrowserCommand | BrowsingContextCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand | StorageCommand);
|
|
14
|
+
export type ResultData = ((BrowsingContextResult | EmptyResult | NetworkResult | ScriptResult | SessionResult | StorageResult));
|
|
15
|
+
export type EmptyParams = ((Extensible));
|
|
16
|
+
export type Message = ((CommandResponse | ErrorResponse | Event));
|
|
17
|
+
export type ErrorResponse = (({
|
|
18
|
+
"type": ("error");
|
|
19
|
+
"id": (JsUint | null);
|
|
20
|
+
"error": (ErrorCode);
|
|
21
|
+
"message": (string);
|
|
22
|
+
"stacktrace"?: (string);
|
|
23
|
+
} & Extensible));
|
|
24
|
+
export type EmptyResult = ((Extensible));
|
|
25
|
+
export type Extensible = ({
|
|
26
|
+
[key: string]: (any);
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* Must be between `-9007199254740991` and `9007199254740991`, inclusive.
|
|
30
|
+
*/
|
|
31
|
+
export type JsInt = (number);
|
|
32
|
+
/**
|
|
33
|
+
* Must be between `0` and `9007199254740991`, inclusive.
|
|
34
|
+
*/
|
|
35
|
+
export type JsUint = (number);
|
|
36
|
+
export declare const enum ErrorCode {
|
|
37
|
+
InvalidArgument = "invalid argument",
|
|
38
|
+
InvalidSelector = "invalid selector",
|
|
39
|
+
InvalidSessionId = "invalid session id",
|
|
40
|
+
MoveTargetOutOfBounds = "move target out of bounds",
|
|
41
|
+
NoSuchAlert = "no such alert",
|
|
42
|
+
NoSuchElement = "no such element",
|
|
43
|
+
NoSuchFrame = "no such frame",
|
|
44
|
+
NoSuchHandle = "no such handle",
|
|
45
|
+
NoSuchHistoryEntry = "no such history entry",
|
|
46
|
+
NoSuchIntercept = "no such intercept",
|
|
47
|
+
NoSuchNode = "no such node",
|
|
48
|
+
NoSuchRequest = "no such request",
|
|
49
|
+
NoSuchScript = "no such script",
|
|
50
|
+
NoSuchStoragePartition = "no such storage partition",
|
|
51
|
+
NoSuchUserContext = "no such user context",
|
|
52
|
+
SessionNotCreated = "session not created",
|
|
53
|
+
UnableToCaptureScreen = "unable to capture screen",
|
|
54
|
+
UnableToCloseBrowser = "unable to close browser",
|
|
55
|
+
UnableToSetCookie = "unable to set cookie",
|
|
56
|
+
UnableToSetFileInput = "unable to set file input",
|
|
57
|
+
UnderspecifiedStoragePartition = "underspecified storage partition",
|
|
58
|
+
UnknownCommand = "unknown command",
|
|
59
|
+
UnknownError = "unknown error",
|
|
60
|
+
UnsupportedOperation = "unsupported operation"
|
|
61
|
+
}
|
|
62
|
+
export type SessionCommand = (Session.End | Session.New | Session.Status | Session.Subscribe | Session.Unsubscribe);
|
|
63
|
+
export declare namespace Session {
|
|
64
|
+
type ProxyConfiguration = ((Session.AutodetectProxyConfiguration | Session.DirectProxyConfiguration | Session.ManualProxyConfiguration | Session.PacProxyConfiguration | Session.SystemProxyConfiguration | Record<string, never>));
|
|
65
|
+
}
|
|
66
|
+
export type SessionResult = ((Session.NewResult | Session.StatusResult));
|
|
67
|
+
export declare namespace Session {
|
|
68
|
+
type CapabilitiesRequest = (({
|
|
69
|
+
"alwaysMatch"?: (Session.CapabilityRequest);
|
|
70
|
+
"firstMatch"?: ([
|
|
71
|
+
...((Session.CapabilityRequest)[])
|
|
72
|
+
]);
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
export declare namespace Session {
|
|
76
|
+
type CapabilityRequest = (({
|
|
77
|
+
"acceptInsecureCerts"?: (boolean);
|
|
78
|
+
"browserName"?: (string);
|
|
79
|
+
"browserVersion"?: (string);
|
|
80
|
+
"platformName"?: (string);
|
|
81
|
+
"proxy"?: (Session.ProxyConfiguration);
|
|
82
|
+
"unhandledPromptBehavior"?: (Session.UserPromptHandler);
|
|
83
|
+
} & Extensible));
|
|
84
|
+
}
|
|
85
|
+
export declare namespace Session {
|
|
86
|
+
type AutodetectProxyConfiguration = ({
|
|
87
|
+
"proxyType": ("autodetect");
|
|
88
|
+
} & Extensible);
|
|
89
|
+
}
|
|
90
|
+
export declare namespace Session {
|
|
91
|
+
type DirectProxyConfiguration = ({
|
|
92
|
+
"proxyType": ("direct");
|
|
93
|
+
} & Extensible);
|
|
94
|
+
}
|
|
95
|
+
export declare namespace Session {
|
|
96
|
+
type ManualProxyConfiguration = ({
|
|
97
|
+
"proxyType": ("manual");
|
|
98
|
+
"ftpProxy"?: (string);
|
|
99
|
+
"httpProxy"?: (string);
|
|
100
|
+
"sslProxy"?: (string);
|
|
101
|
+
} & ({} | Session.SocksProxyConfiguration) & {
|
|
102
|
+
"noProxy"?: ([
|
|
103
|
+
...((string)[])
|
|
104
|
+
]);
|
|
105
|
+
} & Extensible);
|
|
106
|
+
}
|
|
107
|
+
export declare namespace Session {
|
|
108
|
+
type SocksProxyConfiguration = ({
|
|
109
|
+
"socksProxy": (string);
|
|
110
|
+
/**
|
|
111
|
+
* Must be between `0` and `255`, inclusive.
|
|
112
|
+
*/
|
|
113
|
+
"socksVersion": (number);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
export declare namespace Session {
|
|
117
|
+
type PacProxyConfiguration = ({
|
|
118
|
+
"proxyType": ("pac");
|
|
119
|
+
"proxyAutoconfigUrl": (string);
|
|
120
|
+
} & Extensible);
|
|
121
|
+
}
|
|
122
|
+
export declare namespace Session {
|
|
123
|
+
type SystemProxyConfiguration = ({
|
|
124
|
+
"proxyType": ("system");
|
|
125
|
+
} & Extensible);
|
|
126
|
+
}
|
|
127
|
+
export declare namespace Session {
|
|
128
|
+
const enum UserPromptHandlerType {
|
|
129
|
+
Accept = "accept",
|
|
130
|
+
Dismiss = "dismiss",
|
|
131
|
+
Ignore = "ignore"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export declare namespace Session {
|
|
135
|
+
type UserPromptHandler = (({
|
|
136
|
+
"alert"?: (Session.UserPromptHandlerType);
|
|
137
|
+
"beforeUnload"?: (Session.UserPromptHandlerType);
|
|
138
|
+
"confirm"?: (Session.UserPromptHandlerType);
|
|
139
|
+
"default"?: (Session.UserPromptHandlerType);
|
|
140
|
+
"prompt"?: (Session.UserPromptHandlerType);
|
|
141
|
+
}));
|
|
142
|
+
}
|
|
143
|
+
export declare namespace Session {
|
|
144
|
+
type SubscriptionRequest = (({
|
|
145
|
+
"events": ([
|
|
146
|
+
(string),
|
|
147
|
+
...(string)[]
|
|
148
|
+
]);
|
|
149
|
+
"contexts"?: ([
|
|
150
|
+
(BrowsingContext.BrowsingContext),
|
|
151
|
+
...(BrowsingContext.BrowsingContext)[]
|
|
152
|
+
]);
|
|
153
|
+
}));
|
|
154
|
+
}
|
|
155
|
+
export declare namespace Session {
|
|
156
|
+
type Status = ({
|
|
157
|
+
"method": ("session.status");
|
|
158
|
+
"params": (EmptyParams);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
export declare namespace Session {
|
|
162
|
+
type StatusResult = (({
|
|
163
|
+
"ready": (boolean);
|
|
164
|
+
"message": (string);
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
export declare namespace Session {
|
|
168
|
+
type New = ({
|
|
169
|
+
"method": ("session.new");
|
|
170
|
+
"params": (Session.NewParameters);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
export declare namespace Session {
|
|
174
|
+
type NewParameters = (({
|
|
175
|
+
"capabilities": (Session.CapabilitiesRequest);
|
|
176
|
+
}));
|
|
177
|
+
}
|
|
178
|
+
export declare namespace Session {
|
|
179
|
+
type NewResult = (({
|
|
180
|
+
"sessionId": (string);
|
|
181
|
+
"capabilities": (({
|
|
182
|
+
"acceptInsecureCerts": (boolean);
|
|
183
|
+
"browserName": (string);
|
|
184
|
+
"browserVersion": (string);
|
|
185
|
+
"platformName": (string);
|
|
186
|
+
"setWindowRect": (boolean);
|
|
187
|
+
"userAgent": (string);
|
|
188
|
+
"proxy"?: (Session.ProxyConfiguration);
|
|
189
|
+
"unahandledPromptBehavior"?: (Session.UserPromptHandler);
|
|
190
|
+
"webSocketUrl"?: (string);
|
|
191
|
+
} & Extensible));
|
|
192
|
+
}));
|
|
193
|
+
}
|
|
194
|
+
export declare namespace Session {
|
|
195
|
+
type End = ({
|
|
196
|
+
"method": ("session.end");
|
|
197
|
+
"params": (EmptyParams);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
export declare namespace Session {
|
|
201
|
+
type Subscribe = ({
|
|
202
|
+
"method": ("session.subscribe");
|
|
203
|
+
"params": (Session.SubscriptionRequest);
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
export declare namespace Session {
|
|
207
|
+
type Unsubscribe = ({
|
|
208
|
+
"method": ("session.unsubscribe");
|
|
209
|
+
"params": (Session.SubscriptionRequest);
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
export type BrowserCommand = (Browser.Close | Browser.CreateUserContext | Browser.GetUserContexts | Browser.RemoveUserContext);
|
|
213
|
+
export type BrowserResult = ((Browser.CreateUserContextResult | Browser.GetUserContextsResult));
|
|
214
|
+
export declare namespace Browser {
|
|
215
|
+
type UserContext = (string);
|
|
216
|
+
}
|
|
217
|
+
export declare namespace Browser {
|
|
218
|
+
type UserContextInfo = (({
|
|
219
|
+
"userContext": (Browser.UserContext);
|
|
220
|
+
}));
|
|
221
|
+
}
|
|
222
|
+
export declare namespace Browser {
|
|
223
|
+
type Close = ({
|
|
224
|
+
"method": ("browser.close");
|
|
225
|
+
"params": (EmptyParams);
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
export declare namespace Browser {
|
|
229
|
+
type CreateUserContext = ({
|
|
230
|
+
"method": ("browser.createUserContext");
|
|
231
|
+
"params": (EmptyParams);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
export declare namespace Browser {
|
|
235
|
+
type CreateUserContextResult = (Browser.UserContextInfo);
|
|
236
|
+
}
|
|
237
|
+
export declare namespace Browser {
|
|
238
|
+
type GetUserContexts = ({
|
|
239
|
+
"method": ("browser.getUserContexts");
|
|
240
|
+
"params": (EmptyParams);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
export declare namespace Browser {
|
|
244
|
+
type GetUserContextsResult = (({
|
|
245
|
+
"userContexts": ([
|
|
246
|
+
(Browser.UserContextInfo),
|
|
247
|
+
...(Browser.UserContextInfo)[]
|
|
248
|
+
]);
|
|
249
|
+
}));
|
|
250
|
+
}
|
|
251
|
+
export declare namespace Browser {
|
|
252
|
+
type RemoveUserContext = ({
|
|
253
|
+
"method": ("browser.removeUserContext");
|
|
254
|
+
"params": (Browser.RemoveUserContextParameters);
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
export declare namespace Browser {
|
|
258
|
+
type RemoveUserContextParameters = (({
|
|
259
|
+
"userContext": (Browser.UserContext);
|
|
260
|
+
}));
|
|
261
|
+
}
|
|
262
|
+
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);
|
|
263
|
+
export type BrowsingContextEvent = (BrowsingContext.ContextCreated | BrowsingContext.ContextDestroyed | BrowsingContext.DomContentLoaded | BrowsingContext.DownloadWillBegin | BrowsingContext.FragmentNavigated | BrowsingContext.Load | BrowsingContext.NavigationAborted | BrowsingContext.NavigationFailed | BrowsingContext.NavigationStarted | BrowsingContext.UserPromptClosed | BrowsingContext.UserPromptOpened);
|
|
264
|
+
export type BrowsingContextResult = ((BrowsingContext.CaptureScreenshotResult | BrowsingContext.CreateResult | BrowsingContext.GetTreeResult | BrowsingContext.LocateNodesResult | BrowsingContext.NavigateResult | BrowsingContext.PrintResult | BrowsingContext.TraverseHistoryResult));
|
|
265
|
+
export declare namespace BrowsingContext {
|
|
266
|
+
type BrowsingContext = (string);
|
|
267
|
+
}
|
|
268
|
+
export declare namespace BrowsingContext {
|
|
269
|
+
type InfoList = ([
|
|
270
|
+
...((BrowsingContext.Info)[])
|
|
271
|
+
]);
|
|
272
|
+
}
|
|
273
|
+
export declare namespace BrowsingContext {
|
|
274
|
+
type Info = (({
|
|
275
|
+
"children": (BrowsingContext.InfoList | null);
|
|
276
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
277
|
+
"originalOpener": (BrowsingContext.BrowsingContext | null);
|
|
278
|
+
"url": (string);
|
|
279
|
+
"userContext": (Browser.UserContext);
|
|
280
|
+
"parent"?: (BrowsingContext.BrowsingContext | null);
|
|
281
|
+
}));
|
|
282
|
+
}
|
|
283
|
+
export declare namespace BrowsingContext {
|
|
284
|
+
type Locator = ((BrowsingContext.AccessibilityLocator | BrowsingContext.CssLocator | BrowsingContext.InnerTextLocator | BrowsingContext.XPathLocator));
|
|
285
|
+
}
|
|
286
|
+
export declare namespace BrowsingContext {
|
|
287
|
+
type AccessibilityLocator = (({
|
|
288
|
+
"type": ("accessibility");
|
|
289
|
+
"value": (({
|
|
290
|
+
"name"?: (string);
|
|
291
|
+
"role"?: (string);
|
|
292
|
+
}));
|
|
293
|
+
}));
|
|
294
|
+
}
|
|
295
|
+
export declare namespace BrowsingContext {
|
|
296
|
+
type CssLocator = (({
|
|
297
|
+
"type": ("css");
|
|
298
|
+
"value": (string);
|
|
299
|
+
}));
|
|
300
|
+
}
|
|
301
|
+
export declare namespace BrowsingContext {
|
|
302
|
+
type InnerTextLocator = (({
|
|
303
|
+
"type": ("innerText");
|
|
304
|
+
"value": (string);
|
|
305
|
+
"ignoreCase"?: (boolean);
|
|
306
|
+
"matchType"?: ("full" | "partial");
|
|
307
|
+
"maxDepth"?: (JsUint);
|
|
308
|
+
}));
|
|
309
|
+
}
|
|
310
|
+
export declare namespace BrowsingContext {
|
|
311
|
+
type XPathLocator = (({
|
|
312
|
+
"type": ("xpath");
|
|
313
|
+
"value": (string);
|
|
314
|
+
}));
|
|
315
|
+
}
|
|
316
|
+
export declare namespace BrowsingContext {
|
|
317
|
+
type Navigation = (string);
|
|
318
|
+
}
|
|
319
|
+
export declare namespace BrowsingContext {
|
|
320
|
+
type NavigationInfo = (({
|
|
321
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
322
|
+
"navigation": (BrowsingContext.Navigation | null);
|
|
323
|
+
"timestamp": (JsUint);
|
|
324
|
+
"url": (string);
|
|
325
|
+
}));
|
|
326
|
+
}
|
|
327
|
+
export declare namespace BrowsingContext {
|
|
328
|
+
const enum ReadinessState {
|
|
329
|
+
None = "none",
|
|
330
|
+
Interactive = "interactive",
|
|
331
|
+
Complete = "complete"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
export declare namespace BrowsingContext {
|
|
335
|
+
const enum UserPromptType {
|
|
336
|
+
Alert = "alert",
|
|
337
|
+
Confirm = "confirm",
|
|
338
|
+
Prompt = "prompt",
|
|
339
|
+
Beforeunload = "beforeunload"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
export declare namespace BrowsingContext {
|
|
343
|
+
type Activate = ({
|
|
344
|
+
"method": ("browsingContext.activate");
|
|
345
|
+
"params": (BrowsingContext.ActivateParameters);
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
export declare namespace BrowsingContext {
|
|
349
|
+
type ActivateParameters = (({
|
|
350
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
351
|
+
}));
|
|
352
|
+
}
|
|
353
|
+
export declare namespace BrowsingContext {
|
|
354
|
+
type CaptureScreenshotParameters = (({
|
|
355
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
356
|
+
/**
|
|
357
|
+
* @defaultValue `"viewport"`
|
|
358
|
+
*/
|
|
359
|
+
"origin"?: (("viewport" | "document"));
|
|
360
|
+
"format"?: (BrowsingContext.ImageFormat);
|
|
361
|
+
"clip"?: (BrowsingContext.ClipRectangle);
|
|
362
|
+
}));
|
|
363
|
+
}
|
|
364
|
+
export declare namespace BrowsingContext {
|
|
365
|
+
type CaptureScreenshot = ({
|
|
366
|
+
"method": ("browsingContext.captureScreenshot");
|
|
367
|
+
"params": (BrowsingContext.CaptureScreenshotParameters);
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
export declare namespace BrowsingContext {
|
|
371
|
+
type ImageFormat = (({
|
|
372
|
+
"type": (string);
|
|
373
|
+
/**
|
|
374
|
+
* Must be between `0` and `1`, inclusive.
|
|
375
|
+
*/
|
|
376
|
+
"quality"?: (number);
|
|
377
|
+
}));
|
|
378
|
+
}
|
|
379
|
+
export declare namespace BrowsingContext {
|
|
380
|
+
type ClipRectangle = ((BrowsingContext.BoxClipRectangle | BrowsingContext.ElementClipRectangle));
|
|
381
|
+
}
|
|
382
|
+
export declare namespace BrowsingContext {
|
|
383
|
+
type ElementClipRectangle = (({
|
|
384
|
+
"type": ("element");
|
|
385
|
+
"element": (Script.SharedReference);
|
|
386
|
+
}));
|
|
387
|
+
}
|
|
388
|
+
export declare namespace BrowsingContext {
|
|
389
|
+
type BoxClipRectangle = (({
|
|
390
|
+
"type": ("box");
|
|
391
|
+
"x": (number);
|
|
392
|
+
"y": (number);
|
|
393
|
+
"width": (number);
|
|
394
|
+
"height": (number);
|
|
395
|
+
}));
|
|
396
|
+
}
|
|
397
|
+
export declare namespace BrowsingContext {
|
|
398
|
+
type CaptureScreenshotResult = (({
|
|
399
|
+
"data": (string);
|
|
400
|
+
}));
|
|
401
|
+
}
|
|
402
|
+
export declare namespace BrowsingContext {
|
|
403
|
+
type Close = ({
|
|
404
|
+
"method": ("browsingContext.close");
|
|
405
|
+
"params": (BrowsingContext.CloseParameters);
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
export declare namespace BrowsingContext {
|
|
409
|
+
type CloseParameters = (({
|
|
410
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
411
|
+
/**
|
|
412
|
+
* @defaultValue `false`
|
|
413
|
+
*/
|
|
414
|
+
"promptUnload"?: (boolean);
|
|
415
|
+
}));
|
|
416
|
+
}
|
|
417
|
+
export declare namespace BrowsingContext {
|
|
418
|
+
type Create = ({
|
|
419
|
+
"method": ("browsingContext.create");
|
|
420
|
+
"params": (BrowsingContext.CreateParameters);
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
export declare namespace BrowsingContext {
|
|
424
|
+
const enum CreateType {
|
|
425
|
+
Tab = "tab",
|
|
426
|
+
Window = "window"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
export declare namespace BrowsingContext {
|
|
430
|
+
type CreateParameters = (({
|
|
431
|
+
"type": (BrowsingContext.CreateType);
|
|
432
|
+
"referenceContext"?: (BrowsingContext.BrowsingContext);
|
|
433
|
+
/**
|
|
434
|
+
* @defaultValue `false`
|
|
435
|
+
*/
|
|
436
|
+
"background"?: (boolean);
|
|
437
|
+
"userContext"?: (Browser.UserContext);
|
|
438
|
+
}));
|
|
439
|
+
}
|
|
440
|
+
export declare namespace BrowsingContext {
|
|
441
|
+
type CreateResult = (({
|
|
442
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
443
|
+
}));
|
|
444
|
+
}
|
|
445
|
+
export declare namespace BrowsingContext {
|
|
446
|
+
type GetTree = ({
|
|
447
|
+
"method": ("browsingContext.getTree");
|
|
448
|
+
"params": (BrowsingContext.GetTreeParameters);
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
export declare namespace BrowsingContext {
|
|
452
|
+
type GetTreeParameters = (({
|
|
453
|
+
"maxDepth"?: (JsUint);
|
|
454
|
+
"root"?: (BrowsingContext.BrowsingContext);
|
|
455
|
+
}));
|
|
456
|
+
}
|
|
457
|
+
export declare namespace BrowsingContext {
|
|
458
|
+
type GetTreeResult = (({
|
|
459
|
+
"contexts": (BrowsingContext.InfoList);
|
|
460
|
+
}));
|
|
461
|
+
}
|
|
462
|
+
export declare namespace BrowsingContext {
|
|
463
|
+
type HandleUserPrompt = ({
|
|
464
|
+
"method": ("browsingContext.handleUserPrompt");
|
|
465
|
+
"params": (BrowsingContext.HandleUserPromptParameters);
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
export declare namespace BrowsingContext {
|
|
469
|
+
type HandleUserPromptParameters = (({
|
|
470
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
471
|
+
"accept"?: (boolean);
|
|
472
|
+
"userText"?: (string);
|
|
473
|
+
}));
|
|
474
|
+
}
|
|
475
|
+
export declare namespace BrowsingContext {
|
|
476
|
+
type LocateNodesParameters = (({
|
|
477
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
478
|
+
"locator": (BrowsingContext.Locator);
|
|
479
|
+
/**
|
|
480
|
+
* Must be greater than or equal to `1`.
|
|
481
|
+
*/
|
|
482
|
+
"maxNodeCount"?: ((JsUint));
|
|
483
|
+
"serializationOptions"?: (Script.SerializationOptions);
|
|
484
|
+
"startNodes"?: ([
|
|
485
|
+
(Script.SharedReference),
|
|
486
|
+
...(Script.SharedReference)[]
|
|
487
|
+
]);
|
|
488
|
+
}));
|
|
489
|
+
}
|
|
490
|
+
export declare namespace BrowsingContext {
|
|
491
|
+
type LocateNodes = ({
|
|
492
|
+
"method": ("browsingContext.locateNodes");
|
|
493
|
+
"params": (BrowsingContext.LocateNodesParameters);
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
export declare namespace BrowsingContext {
|
|
497
|
+
type LocateNodesResult = (({
|
|
498
|
+
"nodes": ([
|
|
499
|
+
...((Script.NodeRemoteValue)[])
|
|
500
|
+
]);
|
|
501
|
+
}));
|
|
502
|
+
}
|
|
503
|
+
export declare namespace BrowsingContext {
|
|
504
|
+
type Navigate = ({
|
|
505
|
+
"method": ("browsingContext.navigate");
|
|
506
|
+
"params": (BrowsingContext.NavigateParameters);
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
export declare namespace BrowsingContext {
|
|
510
|
+
type NavigateParameters = (({
|
|
511
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
512
|
+
"url": (string);
|
|
513
|
+
"wait"?: (BrowsingContext.ReadinessState);
|
|
514
|
+
}));
|
|
515
|
+
}
|
|
516
|
+
export declare namespace BrowsingContext {
|
|
517
|
+
type NavigateResult = (({
|
|
518
|
+
"navigation": (BrowsingContext.Navigation | null);
|
|
519
|
+
"url": (string);
|
|
520
|
+
}));
|
|
521
|
+
}
|
|
522
|
+
export declare namespace BrowsingContext {
|
|
523
|
+
type Print = ({
|
|
524
|
+
"method": ("browsingContext.print");
|
|
525
|
+
"params": (BrowsingContext.PrintParameters);
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
export declare namespace BrowsingContext {
|
|
529
|
+
type PrintParameters = (({
|
|
530
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
531
|
+
/**
|
|
532
|
+
* @defaultValue `false`
|
|
533
|
+
*/
|
|
534
|
+
"background"?: (boolean);
|
|
535
|
+
"margin"?: (BrowsingContext.PrintMarginParameters);
|
|
536
|
+
/**
|
|
537
|
+
* @defaultValue `"portrait"`
|
|
538
|
+
*/
|
|
539
|
+
"orientation"?: (("portrait" | "landscape"));
|
|
540
|
+
"page"?: (BrowsingContext.PrintPageParameters);
|
|
541
|
+
"pageRanges"?: ([
|
|
542
|
+
...((JsUint | string)[])
|
|
543
|
+
]);
|
|
544
|
+
/**
|
|
545
|
+
* Must be between `0.1` and `2`, inclusive.
|
|
546
|
+
*
|
|
547
|
+
* @defaultValue `1`
|
|
548
|
+
*/
|
|
549
|
+
"scale"?: ((number));
|
|
550
|
+
/**
|
|
551
|
+
* @defaultValue `true`
|
|
552
|
+
*/
|
|
553
|
+
"shrinkToFit"?: (boolean);
|
|
554
|
+
}));
|
|
555
|
+
}
|
|
556
|
+
export declare namespace BrowsingContext {
|
|
557
|
+
type PrintMarginParameters = (({
|
|
558
|
+
/**
|
|
559
|
+
* Must be greater than or equal to `0`.
|
|
560
|
+
*
|
|
561
|
+
* @defaultValue `1`
|
|
562
|
+
*/
|
|
563
|
+
"bottom"?: ((number));
|
|
564
|
+
/**
|
|
565
|
+
* Must be greater than or equal to `0`.
|
|
566
|
+
*
|
|
567
|
+
* @defaultValue `1`
|
|
568
|
+
*/
|
|
569
|
+
"left"?: ((number));
|
|
570
|
+
/**
|
|
571
|
+
* Must be greater than or equal to `0`.
|
|
572
|
+
*
|
|
573
|
+
* @defaultValue `1`
|
|
574
|
+
*/
|
|
575
|
+
"right"?: ((number));
|
|
576
|
+
/**
|
|
577
|
+
* Must be greater than or equal to `0`.
|
|
578
|
+
*
|
|
579
|
+
* @defaultValue `1`
|
|
580
|
+
*/
|
|
581
|
+
"top"?: ((number));
|
|
582
|
+
}));
|
|
583
|
+
}
|
|
584
|
+
export declare namespace BrowsingContext {
|
|
585
|
+
type PrintPageParameters = (({
|
|
586
|
+
/**
|
|
587
|
+
* Must be greater than or equal to `0.0352`.
|
|
588
|
+
*
|
|
589
|
+
* @defaultValue `27.94`
|
|
590
|
+
*/
|
|
591
|
+
"height"?: ((number));
|
|
592
|
+
/**
|
|
593
|
+
* Must be greater than or equal to `0.0352`.
|
|
594
|
+
*
|
|
595
|
+
* @defaultValue `21.59`
|
|
596
|
+
*/
|
|
597
|
+
"width"?: ((number));
|
|
598
|
+
}));
|
|
599
|
+
}
|
|
600
|
+
export declare namespace BrowsingContext {
|
|
601
|
+
type PrintResult = (({
|
|
602
|
+
"data": (string);
|
|
603
|
+
}));
|
|
604
|
+
}
|
|
605
|
+
export declare namespace BrowsingContext {
|
|
606
|
+
type Reload = ({
|
|
607
|
+
"method": ("browsingContext.reload");
|
|
608
|
+
"params": (BrowsingContext.ReloadParameters);
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
export declare namespace BrowsingContext {
|
|
612
|
+
type ReloadParameters = (({
|
|
613
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
614
|
+
"ignoreCache"?: (boolean);
|
|
615
|
+
"wait"?: (BrowsingContext.ReadinessState);
|
|
616
|
+
}));
|
|
617
|
+
}
|
|
618
|
+
export declare namespace BrowsingContext {
|
|
619
|
+
type SetViewport = ({
|
|
620
|
+
"method": ("browsingContext.setViewport");
|
|
621
|
+
"params": (BrowsingContext.SetViewportParameters);
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
export declare namespace BrowsingContext {
|
|
625
|
+
type SetViewportParameters = (({
|
|
626
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
627
|
+
"viewport"?: (BrowsingContext.Viewport | null);
|
|
628
|
+
/**
|
|
629
|
+
* Must be greater than `0`.
|
|
630
|
+
*/
|
|
631
|
+
"devicePixelRatio"?: ((number) | null);
|
|
632
|
+
}));
|
|
633
|
+
}
|
|
634
|
+
export declare namespace BrowsingContext {
|
|
635
|
+
type Viewport = (({
|
|
636
|
+
"width": (JsUint);
|
|
637
|
+
"height": (JsUint);
|
|
638
|
+
}));
|
|
639
|
+
}
|
|
640
|
+
export declare namespace BrowsingContext {
|
|
641
|
+
type TraverseHistory = ({
|
|
642
|
+
"method": ("browsingContext.traverseHistory");
|
|
643
|
+
"params": (BrowsingContext.TraverseHistoryParameters);
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
export declare namespace BrowsingContext {
|
|
647
|
+
type TraverseHistoryParameters = (({
|
|
648
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
649
|
+
"delta": (JsInt);
|
|
650
|
+
}));
|
|
651
|
+
}
|
|
652
|
+
export declare namespace BrowsingContext {
|
|
653
|
+
type TraverseHistoryResult = ((Record<string, never>));
|
|
654
|
+
}
|
|
655
|
+
export declare namespace BrowsingContext {
|
|
656
|
+
type ContextCreated = ({
|
|
657
|
+
"method": ("browsingContext.contextCreated");
|
|
658
|
+
"params": (BrowsingContext.Info);
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
export declare namespace BrowsingContext {
|
|
662
|
+
type ContextDestroyed = ({
|
|
663
|
+
"method": ("browsingContext.contextDestroyed");
|
|
664
|
+
"params": (BrowsingContext.Info);
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
export declare namespace BrowsingContext {
|
|
668
|
+
type NavigationStarted = ({
|
|
669
|
+
"method": ("browsingContext.navigationStarted");
|
|
670
|
+
"params": (BrowsingContext.NavigationInfo);
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
export declare namespace BrowsingContext {
|
|
674
|
+
type FragmentNavigated = ({
|
|
675
|
+
"method": ("browsingContext.fragmentNavigated");
|
|
676
|
+
"params": (BrowsingContext.NavigationInfo);
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
export declare namespace BrowsingContext {
|
|
680
|
+
type DomContentLoaded = ({
|
|
681
|
+
"method": ("browsingContext.domContentLoaded");
|
|
682
|
+
"params": (BrowsingContext.NavigationInfo);
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
export declare namespace BrowsingContext {
|
|
686
|
+
type Load = ({
|
|
687
|
+
"method": ("browsingContext.load");
|
|
688
|
+
"params": (BrowsingContext.NavigationInfo);
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
export declare namespace BrowsingContext {
|
|
692
|
+
type DownloadWillBegin = ({
|
|
693
|
+
"method": ("browsingContext.downloadWillBegin");
|
|
694
|
+
"params": (BrowsingContext.NavigationInfo);
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
export declare namespace BrowsingContext {
|
|
698
|
+
type NavigationAborted = ({
|
|
699
|
+
"method": ("browsingContext.navigationAborted");
|
|
700
|
+
"params": (BrowsingContext.NavigationInfo);
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
export declare namespace BrowsingContext {
|
|
704
|
+
type NavigationFailed = ({
|
|
705
|
+
"method": ("browsingContext.navigationFailed");
|
|
706
|
+
"params": (BrowsingContext.NavigationInfo);
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
export declare namespace BrowsingContext {
|
|
710
|
+
type UserPromptClosed = ({
|
|
711
|
+
"method": ("browsingContext.userPromptClosed");
|
|
712
|
+
"params": (BrowsingContext.UserPromptClosedParameters);
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
export declare namespace BrowsingContext {
|
|
716
|
+
type UserPromptClosedParameters = (({
|
|
717
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
718
|
+
"accepted": (boolean);
|
|
719
|
+
"type": (BrowsingContext.UserPromptType);
|
|
720
|
+
"userText"?: (string);
|
|
721
|
+
}));
|
|
722
|
+
}
|
|
723
|
+
export declare namespace BrowsingContext {
|
|
724
|
+
type UserPromptOpened = ({
|
|
725
|
+
"method": ("browsingContext.userPromptOpened");
|
|
726
|
+
"params": (BrowsingContext.UserPromptOpenedParameters);
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
export declare namespace BrowsingContext {
|
|
730
|
+
type UserPromptOpenedParameters = (({
|
|
731
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
732
|
+
"handler": ("accept" | "dismiss" | "ignore");
|
|
733
|
+
"message": (string);
|
|
734
|
+
"type": (BrowsingContext.UserPromptType);
|
|
735
|
+
"defaultValue"?: (string);
|
|
736
|
+
}));
|
|
737
|
+
}
|
|
738
|
+
export type NetworkCommand = (Network.AddIntercept | Network.ContinueRequest | Network.ContinueResponse | Network.ContinueWithAuth | Network.FailRequest | Network.ProvideResponse | Network.RemoveIntercept);
|
|
739
|
+
export type NetworkEvent = (Network.AuthRequired | Network.BeforeRequestSent | Network.FetchError | Network.ResponseCompleted | Network.ResponseStarted);
|
|
740
|
+
export type NetworkResult = ((Network.AddInterceptResult));
|
|
741
|
+
export declare namespace Network {
|
|
742
|
+
type AuthChallenge = (({
|
|
743
|
+
"scheme": (string);
|
|
744
|
+
"realm": (string);
|
|
745
|
+
}));
|
|
746
|
+
}
|
|
747
|
+
export declare namespace Network {
|
|
748
|
+
type AuthCredentials = (({
|
|
749
|
+
"type": ("password");
|
|
750
|
+
"username": (string);
|
|
751
|
+
"password": (string);
|
|
752
|
+
}));
|
|
753
|
+
}
|
|
754
|
+
export declare namespace Network {
|
|
755
|
+
type BaseParameters = ({
|
|
756
|
+
"context": (BrowsingContext.BrowsingContext | null);
|
|
757
|
+
"isBlocked": (boolean);
|
|
758
|
+
"navigation": (BrowsingContext.Navigation | null);
|
|
759
|
+
"redirectCount": (JsUint);
|
|
760
|
+
"request": (Network.RequestData);
|
|
761
|
+
"timestamp": (JsUint);
|
|
762
|
+
"intercepts"?: ([
|
|
763
|
+
(Network.Intercept),
|
|
764
|
+
...(Network.Intercept)[]
|
|
765
|
+
]);
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
export declare namespace Network {
|
|
769
|
+
type BytesValue = (Network.StringValue | Network.Base64Value);
|
|
770
|
+
}
|
|
771
|
+
export declare namespace Network {
|
|
772
|
+
type StringValue = (({
|
|
773
|
+
"type": ("string");
|
|
774
|
+
"value": (string);
|
|
775
|
+
}));
|
|
776
|
+
}
|
|
777
|
+
export declare namespace Network {
|
|
778
|
+
type Base64Value = (({
|
|
779
|
+
"type": ("base64");
|
|
780
|
+
"value": (string);
|
|
781
|
+
}));
|
|
782
|
+
}
|
|
783
|
+
export declare namespace Network {
|
|
784
|
+
const enum SameSite {
|
|
785
|
+
Strict = "strict",
|
|
786
|
+
Lax = "lax",
|
|
787
|
+
None = "none"
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
export declare namespace Network {
|
|
791
|
+
type Cookie = (({
|
|
792
|
+
"name": (string);
|
|
793
|
+
"value": (Network.BytesValue);
|
|
794
|
+
"domain": (string);
|
|
795
|
+
"path": (string);
|
|
796
|
+
"size": (JsUint);
|
|
797
|
+
"httpOnly": (boolean);
|
|
798
|
+
"secure": (boolean);
|
|
799
|
+
"sameSite": (Network.SameSite);
|
|
800
|
+
"expiry"?: (JsUint);
|
|
801
|
+
} & Extensible));
|
|
802
|
+
}
|
|
803
|
+
export declare namespace Network {
|
|
804
|
+
type CookieHeader = (({
|
|
805
|
+
"name": (string);
|
|
806
|
+
"value": (Network.BytesValue);
|
|
807
|
+
}));
|
|
808
|
+
}
|
|
809
|
+
export declare namespace Network {
|
|
810
|
+
type FetchTimingInfo = (({
|
|
811
|
+
"timeOrigin": (number);
|
|
812
|
+
"requestTime": (number);
|
|
813
|
+
"redirectStart": (number);
|
|
814
|
+
"redirectEnd": (number);
|
|
815
|
+
"fetchStart": (number);
|
|
816
|
+
"dnsStart": (number);
|
|
817
|
+
"dnsEnd": (number);
|
|
818
|
+
"connectStart": (number);
|
|
819
|
+
"connectEnd": (number);
|
|
820
|
+
"tlsStart": (number);
|
|
821
|
+
"requestStart": (number);
|
|
822
|
+
"responseStart": (number);
|
|
823
|
+
"responseEnd": (number);
|
|
824
|
+
}));
|
|
825
|
+
}
|
|
826
|
+
export declare namespace Network {
|
|
827
|
+
type Header = (({
|
|
828
|
+
"name": (string);
|
|
829
|
+
"value": (Network.BytesValue);
|
|
830
|
+
}));
|
|
831
|
+
}
|
|
832
|
+
export declare namespace Network {
|
|
833
|
+
type Initiator = (({
|
|
834
|
+
"type": ("parser" | "script" | "preflight" | "other");
|
|
835
|
+
"columnNumber"?: (JsUint);
|
|
836
|
+
"lineNumber"?: (JsUint);
|
|
837
|
+
"stackTrace"?: (Script.StackTrace);
|
|
838
|
+
"request"?: (Network.Request);
|
|
839
|
+
}));
|
|
840
|
+
}
|
|
841
|
+
export declare namespace Network {
|
|
842
|
+
type Intercept = (string);
|
|
843
|
+
}
|
|
844
|
+
export declare namespace Network {
|
|
845
|
+
type Request = (string);
|
|
846
|
+
}
|
|
847
|
+
export declare namespace Network {
|
|
848
|
+
type RequestData = (({
|
|
849
|
+
"request": (Network.Request);
|
|
850
|
+
"url": (string);
|
|
851
|
+
"method": (string);
|
|
852
|
+
"headers": ([
|
|
853
|
+
...((Network.Header)[])
|
|
854
|
+
]);
|
|
855
|
+
"cookies": ([
|
|
856
|
+
...((Network.Cookie)[])
|
|
857
|
+
]);
|
|
858
|
+
"headersSize": (JsUint);
|
|
859
|
+
"bodySize": (JsUint | null);
|
|
860
|
+
"timings": (Network.FetchTimingInfo);
|
|
861
|
+
}));
|
|
862
|
+
}
|
|
863
|
+
export declare namespace Network {
|
|
864
|
+
type ResponseContent = (({
|
|
865
|
+
"size": (JsUint);
|
|
866
|
+
}));
|
|
867
|
+
}
|
|
868
|
+
export declare namespace Network {
|
|
869
|
+
type ResponseData = (({
|
|
870
|
+
"url": (string);
|
|
871
|
+
"protocol": (string);
|
|
872
|
+
"status": (JsUint);
|
|
873
|
+
"statusText": (string);
|
|
874
|
+
"fromCache": (boolean);
|
|
875
|
+
"headers": ([
|
|
876
|
+
...((Network.Header)[])
|
|
877
|
+
]);
|
|
878
|
+
"mimeType": (string);
|
|
879
|
+
"bytesReceived": (JsUint);
|
|
880
|
+
"headersSize": (JsUint | null);
|
|
881
|
+
"bodySize": (JsUint | null);
|
|
882
|
+
"content": (Network.ResponseContent);
|
|
883
|
+
"authChallenges"?: ([
|
|
884
|
+
...((Network.AuthChallenge)[])
|
|
885
|
+
]);
|
|
886
|
+
}));
|
|
887
|
+
}
|
|
888
|
+
export declare namespace Network {
|
|
889
|
+
type SetCookieHeader = (({
|
|
890
|
+
"name": (string);
|
|
891
|
+
"value": (Network.BytesValue);
|
|
892
|
+
"domain"?: (string);
|
|
893
|
+
"httpOnly"?: (boolean);
|
|
894
|
+
"expiry"?: (string);
|
|
895
|
+
"maxAge"?: (JsInt);
|
|
896
|
+
"path"?: (string);
|
|
897
|
+
"sameSite"?: (Network.SameSite);
|
|
898
|
+
"secure"?: (boolean);
|
|
899
|
+
}));
|
|
900
|
+
}
|
|
901
|
+
export declare namespace Network {
|
|
902
|
+
type UrlPattern = ((Network.UrlPatternPattern | Network.UrlPatternString));
|
|
903
|
+
}
|
|
904
|
+
export declare namespace Network {
|
|
905
|
+
type UrlPatternPattern = (({
|
|
906
|
+
"type": ("pattern");
|
|
907
|
+
"protocol"?: (string);
|
|
908
|
+
"hostname"?: (string);
|
|
909
|
+
"port"?: (string);
|
|
910
|
+
"pathname"?: (string);
|
|
911
|
+
"search"?: (string);
|
|
912
|
+
}));
|
|
913
|
+
}
|
|
914
|
+
export declare namespace Network {
|
|
915
|
+
type UrlPatternString = (({
|
|
916
|
+
"type": ("string");
|
|
917
|
+
"pattern": (string);
|
|
918
|
+
}));
|
|
919
|
+
}
|
|
920
|
+
export declare namespace Network {
|
|
921
|
+
type AddInterceptParameters = (({
|
|
922
|
+
"phases": ([
|
|
923
|
+
(Network.InterceptPhase),
|
|
924
|
+
...(Network.InterceptPhase)[]
|
|
925
|
+
]);
|
|
926
|
+
"contexts"?: ([
|
|
927
|
+
(BrowsingContext.BrowsingContext),
|
|
928
|
+
...(BrowsingContext.BrowsingContext)[]
|
|
929
|
+
]);
|
|
930
|
+
"urlPatterns"?: ([
|
|
931
|
+
...((Network.UrlPattern)[])
|
|
932
|
+
]);
|
|
933
|
+
}));
|
|
934
|
+
}
|
|
935
|
+
export declare namespace Network {
|
|
936
|
+
type AddIntercept = ({
|
|
937
|
+
"method": ("network.addIntercept");
|
|
938
|
+
"params": (Network.AddInterceptParameters);
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
export declare namespace Network {
|
|
942
|
+
const enum InterceptPhase {
|
|
943
|
+
BeforeRequestSent = "beforeRequestSent",
|
|
944
|
+
ResponseStarted = "responseStarted",
|
|
945
|
+
AuthRequired = "authRequired"
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
export declare namespace Network {
|
|
949
|
+
type AddInterceptResult = (({
|
|
950
|
+
"intercept": (Network.Intercept);
|
|
951
|
+
}));
|
|
952
|
+
}
|
|
953
|
+
export declare namespace Network {
|
|
954
|
+
type ContinueRequest = ({
|
|
955
|
+
"method": ("network.continueRequest");
|
|
956
|
+
"params": (Network.ContinueRequestParameters);
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
export declare namespace Network {
|
|
960
|
+
type ContinueRequestParameters = (({
|
|
961
|
+
"request": (Network.Request);
|
|
962
|
+
"body"?: (Network.BytesValue);
|
|
963
|
+
"cookies"?: ([
|
|
964
|
+
...((Network.CookieHeader)[])
|
|
965
|
+
]);
|
|
966
|
+
"headers"?: ([
|
|
967
|
+
...((Network.Header)[])
|
|
968
|
+
]);
|
|
969
|
+
"method"?: (string);
|
|
970
|
+
"url"?: (string);
|
|
971
|
+
}));
|
|
972
|
+
}
|
|
973
|
+
export declare namespace Network {
|
|
974
|
+
type ContinueResponse = ({
|
|
975
|
+
"method": ("network.continueResponse");
|
|
976
|
+
"params": (Network.ContinueResponseParameters);
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
export declare namespace Network {
|
|
980
|
+
type ContinueResponseParameters = (({
|
|
981
|
+
"request": (Network.Request);
|
|
982
|
+
"cookies"?: ([
|
|
983
|
+
...((Network.SetCookieHeader)[])
|
|
984
|
+
]);
|
|
985
|
+
"credentials"?: (Network.AuthCredentials);
|
|
986
|
+
"headers"?: ([
|
|
987
|
+
...((Network.Header)[])
|
|
988
|
+
]);
|
|
989
|
+
"reasonPhrase"?: (string);
|
|
990
|
+
"statusCode"?: (JsUint);
|
|
991
|
+
}));
|
|
992
|
+
}
|
|
993
|
+
export declare namespace Network {
|
|
994
|
+
type ContinueWithAuth = ({
|
|
995
|
+
"method": ("network.continueWithAuth");
|
|
996
|
+
"params": (Network.ContinueWithAuthParameters);
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
export declare namespace Network {
|
|
1000
|
+
type ContinueWithAuthParameters = (({
|
|
1001
|
+
"request": (Network.Request);
|
|
1002
|
+
} & (Network.ContinueWithAuthCredentials | Network.ContinueWithAuthNoCredentials)));
|
|
1003
|
+
}
|
|
1004
|
+
export declare namespace Network {
|
|
1005
|
+
type ContinueWithAuthCredentials = ({
|
|
1006
|
+
"action": ("provideCredentials");
|
|
1007
|
+
"credentials": (Network.AuthCredentials);
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
export declare namespace Network {
|
|
1011
|
+
type ContinueWithAuthNoCredentials = ({
|
|
1012
|
+
"action": ("default" | "cancel");
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
export declare namespace Network {
|
|
1016
|
+
type FailRequest = ({
|
|
1017
|
+
"method": ("network.failRequest");
|
|
1018
|
+
"params": (Network.FailRequestParameters);
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
export declare namespace Network {
|
|
1022
|
+
type FailRequestParameters = (({
|
|
1023
|
+
"request": (Network.Request);
|
|
1024
|
+
}));
|
|
1025
|
+
}
|
|
1026
|
+
export declare namespace Network {
|
|
1027
|
+
type ProvideResponse = ({
|
|
1028
|
+
"method": ("network.provideResponse");
|
|
1029
|
+
"params": (Network.ProvideResponseParameters);
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
export declare namespace Network {
|
|
1033
|
+
type ProvideResponseParameters = (({
|
|
1034
|
+
"request": (Network.Request);
|
|
1035
|
+
"body"?: (Network.BytesValue);
|
|
1036
|
+
"cookies"?: ([
|
|
1037
|
+
...((Network.SetCookieHeader)[])
|
|
1038
|
+
]);
|
|
1039
|
+
"headers"?: ([
|
|
1040
|
+
...((Network.Header)[])
|
|
1041
|
+
]);
|
|
1042
|
+
"reasonPhrase"?: (string);
|
|
1043
|
+
"statusCode"?: (JsUint);
|
|
1044
|
+
}));
|
|
1045
|
+
}
|
|
1046
|
+
export declare namespace Network {
|
|
1047
|
+
type RemoveIntercept = ({
|
|
1048
|
+
"method": ("network.removeIntercept");
|
|
1049
|
+
"params": (Network.RemoveInterceptParameters);
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
export declare namespace Network {
|
|
1053
|
+
type RemoveInterceptParameters = (({
|
|
1054
|
+
"intercept": (Network.Intercept);
|
|
1055
|
+
}));
|
|
1056
|
+
}
|
|
1057
|
+
export type ScriptEvent = (Script.Message | Script.RealmCreated | Script.RealmDestroyed);
|
|
1058
|
+
export declare namespace Network {
|
|
1059
|
+
type AuthRequiredParameters = ((Network.BaseParameters & {
|
|
1060
|
+
"response": (Network.ResponseData);
|
|
1061
|
+
}));
|
|
1062
|
+
}
|
|
1063
|
+
export declare namespace Network {
|
|
1064
|
+
type BeforeRequestSentParameters = ((Network.BaseParameters & {
|
|
1065
|
+
"initiator": (Network.Initiator);
|
|
1066
|
+
}));
|
|
1067
|
+
}
|
|
1068
|
+
export declare namespace Network {
|
|
1069
|
+
type FetchErrorParameters = ((Network.BaseParameters & {
|
|
1070
|
+
"errorText": (string);
|
|
1071
|
+
}));
|
|
1072
|
+
}
|
|
1073
|
+
export declare namespace Network {
|
|
1074
|
+
type ResponseCompletedParameters = ((Network.BaseParameters & {
|
|
1075
|
+
"response": (Network.ResponseData);
|
|
1076
|
+
}));
|
|
1077
|
+
}
|
|
1078
|
+
export declare namespace Network {
|
|
1079
|
+
type ResponseStartedParameters = ((Network.BaseParameters & {
|
|
1080
|
+
"response": (Network.ResponseData);
|
|
1081
|
+
}));
|
|
1082
|
+
}
|
|
1083
|
+
export type ScriptCommand = (Script.AddPreloadScript | Script.CallFunction | Script.Disown | Script.Evaluate | Script.GetRealms | Script.RemovePreloadScript);
|
|
1084
|
+
export type ScriptResult = ((Script.AddPreloadScriptResult | Script.EvaluateResult | Script.GetRealmsResult));
|
|
1085
|
+
export declare namespace Network {
|
|
1086
|
+
type AuthRequired = ({
|
|
1087
|
+
"method": ("network.authRequired");
|
|
1088
|
+
"params": (Network.AuthRequiredParameters);
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
export declare namespace Network {
|
|
1092
|
+
type BeforeRequestSent = ({
|
|
1093
|
+
"method": ("network.beforeRequestSent");
|
|
1094
|
+
"params": (Network.BeforeRequestSentParameters);
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
export declare namespace Network {
|
|
1098
|
+
type FetchError = ({
|
|
1099
|
+
"method": ("network.fetchError");
|
|
1100
|
+
"params": (Network.FetchErrorParameters);
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
export declare namespace Network {
|
|
1104
|
+
type ResponseCompleted = ({
|
|
1105
|
+
"method": ("network.responseCompleted");
|
|
1106
|
+
"params": (Network.ResponseCompletedParameters);
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
export declare namespace Network {
|
|
1110
|
+
type ResponseStarted = ({
|
|
1111
|
+
"method": ("network.responseStarted");
|
|
1112
|
+
"params": (Network.ResponseStartedParameters);
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
export declare namespace Script {
|
|
1116
|
+
type Channel = (string);
|
|
1117
|
+
}
|
|
1118
|
+
export declare namespace Script {
|
|
1119
|
+
type EvaluateResultSuccess = (({
|
|
1120
|
+
"type": ("success");
|
|
1121
|
+
"result": (Script.RemoteValue);
|
|
1122
|
+
"realm": (Script.Realm);
|
|
1123
|
+
}));
|
|
1124
|
+
}
|
|
1125
|
+
export declare namespace Script {
|
|
1126
|
+
type ExceptionDetails = (({
|
|
1127
|
+
"columnNumber": (JsUint);
|
|
1128
|
+
"exception": (Script.RemoteValue);
|
|
1129
|
+
"lineNumber": (JsUint);
|
|
1130
|
+
"stackTrace": (Script.StackTrace);
|
|
1131
|
+
"text": (string);
|
|
1132
|
+
}));
|
|
1133
|
+
}
|
|
1134
|
+
export declare namespace Script {
|
|
1135
|
+
type ChannelValue = (({
|
|
1136
|
+
"type": ("channel");
|
|
1137
|
+
"value": (Script.ChannelProperties);
|
|
1138
|
+
}));
|
|
1139
|
+
}
|
|
1140
|
+
export declare namespace Script {
|
|
1141
|
+
type ChannelProperties = (({
|
|
1142
|
+
"channel": (Script.Channel);
|
|
1143
|
+
"serializationOptions"?: (Script.SerializationOptions);
|
|
1144
|
+
"ownership"?: (Script.ResultOwnership);
|
|
1145
|
+
}));
|
|
1146
|
+
}
|
|
1147
|
+
export declare namespace Script {
|
|
1148
|
+
type EvaluateResult = ((Script.EvaluateResultSuccess | Script.EvaluateResultException));
|
|
1149
|
+
}
|
|
1150
|
+
export declare namespace Script {
|
|
1151
|
+
type EvaluateResultException = (({
|
|
1152
|
+
"type": ("exception");
|
|
1153
|
+
"exceptionDetails": (Script.ExceptionDetails);
|
|
1154
|
+
"realm": (Script.Realm);
|
|
1155
|
+
}));
|
|
1156
|
+
}
|
|
1157
|
+
export declare namespace Script {
|
|
1158
|
+
type Handle = (string);
|
|
1159
|
+
}
|
|
1160
|
+
export declare namespace Script {
|
|
1161
|
+
type InternalId = (string);
|
|
1162
|
+
}
|
|
1163
|
+
export declare namespace Script {
|
|
1164
|
+
type ListLocalValue = ([
|
|
1165
|
+
...((Script.LocalValue)[])
|
|
1166
|
+
]);
|
|
1167
|
+
}
|
|
1168
|
+
export declare namespace Script {
|
|
1169
|
+
type LocalValue = ((Script.RemoteReference | Script.PrimitiveProtocolValue | Script.ChannelValue | Script.ArrayLocalValue | Script.DateLocalValue | Script.MapLocalValue | Script.ObjectLocalValue | Script.RegExpLocalValue | Script.SetLocalValue));
|
|
1170
|
+
}
|
|
1171
|
+
export declare namespace Script {
|
|
1172
|
+
type ArrayLocalValue = (({
|
|
1173
|
+
"type": ("array");
|
|
1174
|
+
"value": (Script.ListLocalValue);
|
|
1175
|
+
}));
|
|
1176
|
+
}
|
|
1177
|
+
export declare namespace Script {
|
|
1178
|
+
type DateLocalValue = (({
|
|
1179
|
+
"type": ("date");
|
|
1180
|
+
"value": (string);
|
|
1181
|
+
}));
|
|
1182
|
+
}
|
|
1183
|
+
export declare namespace Script {
|
|
1184
|
+
type MappingLocalValue = ([
|
|
1185
|
+
...(([
|
|
1186
|
+
(Script.LocalValue | string),
|
|
1187
|
+
(Script.LocalValue)
|
|
1188
|
+
])[])
|
|
1189
|
+
]);
|
|
1190
|
+
}
|
|
1191
|
+
export declare namespace Script {
|
|
1192
|
+
type MapLocalValue = (({
|
|
1193
|
+
"type": ("map");
|
|
1194
|
+
"value": (Script.MappingLocalValue);
|
|
1195
|
+
}));
|
|
1196
|
+
}
|
|
1197
|
+
export declare namespace Script {
|
|
1198
|
+
type ObjectLocalValue = (({
|
|
1199
|
+
"type": ("object");
|
|
1200
|
+
"value": (Script.MappingLocalValue);
|
|
1201
|
+
}));
|
|
1202
|
+
}
|
|
1203
|
+
export declare namespace Script {
|
|
1204
|
+
type RegExpValue = (({
|
|
1205
|
+
"pattern": (string);
|
|
1206
|
+
"flags"?: (string);
|
|
1207
|
+
}));
|
|
1208
|
+
}
|
|
1209
|
+
export declare namespace Script {
|
|
1210
|
+
type RegExpLocalValue = (({
|
|
1211
|
+
"type": ("regexp");
|
|
1212
|
+
"value": (Script.RegExpValue);
|
|
1213
|
+
}));
|
|
1214
|
+
}
|
|
1215
|
+
export declare namespace Script {
|
|
1216
|
+
type SetLocalValue = (({
|
|
1217
|
+
"type": ("set");
|
|
1218
|
+
"value": (Script.ListLocalValue);
|
|
1219
|
+
}));
|
|
1220
|
+
}
|
|
1221
|
+
export declare namespace Script {
|
|
1222
|
+
type PreloadScript = (string);
|
|
1223
|
+
}
|
|
1224
|
+
export declare namespace Script {
|
|
1225
|
+
type Realm = (string);
|
|
1226
|
+
}
|
|
1227
|
+
export declare namespace Script {
|
|
1228
|
+
type PrimitiveProtocolValue = ((Script.UndefinedValue | Script.NullValue | Script.StringValue | Script.NumberValue | Script.BooleanValue | Script.BigIntValue));
|
|
1229
|
+
}
|
|
1230
|
+
export declare namespace Script {
|
|
1231
|
+
type UndefinedValue = (({
|
|
1232
|
+
"type": ("undefined");
|
|
1233
|
+
}));
|
|
1234
|
+
}
|
|
1235
|
+
export declare namespace Script {
|
|
1236
|
+
type NullValue = (({
|
|
1237
|
+
"type": ("null");
|
|
1238
|
+
}));
|
|
1239
|
+
}
|
|
1240
|
+
export declare namespace Script {
|
|
1241
|
+
type StringValue = (({
|
|
1242
|
+
"type": ("string");
|
|
1243
|
+
"value": (string);
|
|
1244
|
+
}));
|
|
1245
|
+
}
|
|
1246
|
+
export declare namespace Script {
|
|
1247
|
+
type SpecialNumber = ("NaN" | "-0" | "Infinity" | "-Infinity");
|
|
1248
|
+
}
|
|
1249
|
+
export declare namespace Script {
|
|
1250
|
+
type NumberValue = (({
|
|
1251
|
+
"type": ("number");
|
|
1252
|
+
"value": (number | Script.SpecialNumber);
|
|
1253
|
+
}));
|
|
1254
|
+
}
|
|
1255
|
+
export declare namespace Script {
|
|
1256
|
+
type BooleanValue = (({
|
|
1257
|
+
"type": ("boolean");
|
|
1258
|
+
"value": (boolean);
|
|
1259
|
+
}));
|
|
1260
|
+
}
|
|
1261
|
+
export declare namespace Script {
|
|
1262
|
+
type BigIntValue = (({
|
|
1263
|
+
"type": ("bigint");
|
|
1264
|
+
"value": (string);
|
|
1265
|
+
}));
|
|
1266
|
+
}
|
|
1267
|
+
export declare namespace Script {
|
|
1268
|
+
type RealmInfo = ((Script.WindowRealmInfo | Script.DedicatedWorkerRealmInfo | Script.SharedWorkerRealmInfo | Script.ServiceWorkerRealmInfo | Script.WorkerRealmInfo | Script.PaintWorkletRealmInfo | Script.AudioWorkletRealmInfo | Script.WorkletRealmInfo));
|
|
1269
|
+
}
|
|
1270
|
+
export declare namespace Script {
|
|
1271
|
+
type BaseRealmInfo = ({
|
|
1272
|
+
"realm": (Script.Realm);
|
|
1273
|
+
"origin": (string);
|
|
1274
|
+
});
|
|
1275
|
+
}
|
|
1276
|
+
export declare namespace Script {
|
|
1277
|
+
type WindowRealmInfo = ((Script.BaseRealmInfo & {
|
|
1278
|
+
"type": ("window");
|
|
1279
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
1280
|
+
"sandbox"?: (string);
|
|
1281
|
+
}));
|
|
1282
|
+
}
|
|
1283
|
+
export declare namespace Script {
|
|
1284
|
+
type DedicatedWorkerRealmInfo = ((Script.BaseRealmInfo & {
|
|
1285
|
+
"type": ("dedicated-worker");
|
|
1286
|
+
"owners": ([
|
|
1287
|
+
(Script.Realm)
|
|
1288
|
+
]);
|
|
1289
|
+
}));
|
|
1290
|
+
}
|
|
1291
|
+
export declare namespace Script {
|
|
1292
|
+
type SharedWorkerRealmInfo = ((Script.BaseRealmInfo & {
|
|
1293
|
+
"type": ("shared-worker");
|
|
1294
|
+
}));
|
|
1295
|
+
}
|
|
1296
|
+
export declare namespace Script {
|
|
1297
|
+
type ServiceWorkerRealmInfo = ((Script.BaseRealmInfo & {
|
|
1298
|
+
"type": ("service-worker");
|
|
1299
|
+
}));
|
|
1300
|
+
}
|
|
1301
|
+
export declare namespace Script {
|
|
1302
|
+
type WorkerRealmInfo = ((Script.BaseRealmInfo & {
|
|
1303
|
+
"type": ("worker");
|
|
1304
|
+
}));
|
|
1305
|
+
}
|
|
1306
|
+
export declare namespace Script {
|
|
1307
|
+
type PaintWorkletRealmInfo = ((Script.BaseRealmInfo & {
|
|
1308
|
+
"type": ("paint-worklet");
|
|
1309
|
+
}));
|
|
1310
|
+
}
|
|
1311
|
+
export declare namespace Script {
|
|
1312
|
+
type AudioWorkletRealmInfo = ((Script.BaseRealmInfo & {
|
|
1313
|
+
"type": ("audio-worklet");
|
|
1314
|
+
}));
|
|
1315
|
+
}
|
|
1316
|
+
export declare namespace Script {
|
|
1317
|
+
type WorkletRealmInfo = ((Script.BaseRealmInfo & {
|
|
1318
|
+
"type": ("worklet");
|
|
1319
|
+
}));
|
|
1320
|
+
}
|
|
1321
|
+
export declare namespace Script {
|
|
1322
|
+
type RealmType = ("window" | "dedicated-worker" | "shared-worker" | "service-worker" | "worker" | "paint-worklet" | "audio-worklet" | "worklet");
|
|
1323
|
+
}
|
|
1324
|
+
export declare namespace Script {
|
|
1325
|
+
type ListRemoteValue = ([
|
|
1326
|
+
...((Script.RemoteValue)[])
|
|
1327
|
+
]);
|
|
1328
|
+
}
|
|
1329
|
+
export declare namespace Script {
|
|
1330
|
+
type MappingRemoteValue = ([
|
|
1331
|
+
...(([
|
|
1332
|
+
(Script.RemoteValue | string),
|
|
1333
|
+
(Script.RemoteValue)
|
|
1334
|
+
])[])
|
|
1335
|
+
]);
|
|
1336
|
+
}
|
|
1337
|
+
export declare namespace Script {
|
|
1338
|
+
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));
|
|
1339
|
+
}
|
|
1340
|
+
export declare namespace Script {
|
|
1341
|
+
type RemoteReference = ((Script.SharedReference | Script.RemoteObjectReference));
|
|
1342
|
+
}
|
|
1343
|
+
export declare namespace Script {
|
|
1344
|
+
type SharedReference = (({
|
|
1345
|
+
"sharedId": (Script.SharedId);
|
|
1346
|
+
"handle"?: (Script.Handle);
|
|
1347
|
+
} & Extensible));
|
|
1348
|
+
}
|
|
1349
|
+
export declare namespace Script {
|
|
1350
|
+
type RemoteObjectReference = (({
|
|
1351
|
+
"handle": (Script.Handle);
|
|
1352
|
+
"sharedId"?: (Script.SharedId);
|
|
1353
|
+
} & Extensible));
|
|
1354
|
+
}
|
|
1355
|
+
export declare namespace Script {
|
|
1356
|
+
type SymbolRemoteValue = (({
|
|
1357
|
+
"type": ("symbol");
|
|
1358
|
+
"handle"?: (Script.Handle);
|
|
1359
|
+
"internalId"?: (Script.InternalId);
|
|
1360
|
+
}));
|
|
1361
|
+
}
|
|
1362
|
+
export declare namespace Script {
|
|
1363
|
+
type ArrayRemoteValue = (({
|
|
1364
|
+
"type": ("array");
|
|
1365
|
+
"handle"?: (Script.Handle);
|
|
1366
|
+
"internalId"?: (Script.InternalId);
|
|
1367
|
+
"value"?: (Script.ListRemoteValue);
|
|
1368
|
+
}));
|
|
1369
|
+
}
|
|
1370
|
+
export declare namespace Script {
|
|
1371
|
+
type ObjectRemoteValue = (({
|
|
1372
|
+
"type": ("object");
|
|
1373
|
+
"handle"?: (Script.Handle);
|
|
1374
|
+
"internalId"?: (Script.InternalId);
|
|
1375
|
+
"value"?: (Script.MappingRemoteValue);
|
|
1376
|
+
}));
|
|
1377
|
+
}
|
|
1378
|
+
export declare namespace Script {
|
|
1379
|
+
type FunctionRemoteValue = (({
|
|
1380
|
+
"type": ("function");
|
|
1381
|
+
"handle"?: (Script.Handle);
|
|
1382
|
+
"internalId"?: (Script.InternalId);
|
|
1383
|
+
}));
|
|
1384
|
+
}
|
|
1385
|
+
export declare namespace Script {
|
|
1386
|
+
type RegExpRemoteValue = (({
|
|
1387
|
+
"handle"?: (Script.Handle);
|
|
1388
|
+
"internalId"?: (Script.InternalId);
|
|
1389
|
+
}) & Script.RegExpLocalValue);
|
|
1390
|
+
}
|
|
1391
|
+
export declare namespace Script {
|
|
1392
|
+
type DateRemoteValue = (({
|
|
1393
|
+
"handle"?: (Script.Handle);
|
|
1394
|
+
"internalId"?: (Script.InternalId);
|
|
1395
|
+
}) & Script.DateLocalValue);
|
|
1396
|
+
}
|
|
1397
|
+
export declare namespace Script {
|
|
1398
|
+
type MapRemoteValue = (({
|
|
1399
|
+
"type": ("map");
|
|
1400
|
+
"handle"?: (Script.Handle);
|
|
1401
|
+
"internalId"?: (Script.InternalId);
|
|
1402
|
+
"value"?: (Script.MappingRemoteValue);
|
|
1403
|
+
}));
|
|
1404
|
+
}
|
|
1405
|
+
export declare namespace Script {
|
|
1406
|
+
type SetRemoteValue = (({
|
|
1407
|
+
"type": ("set");
|
|
1408
|
+
"handle"?: (Script.Handle);
|
|
1409
|
+
"internalId"?: (Script.InternalId);
|
|
1410
|
+
"value"?: (Script.ListRemoteValue);
|
|
1411
|
+
}));
|
|
1412
|
+
}
|
|
1413
|
+
export declare namespace Script {
|
|
1414
|
+
type WeakMapRemoteValue = (({
|
|
1415
|
+
"type": ("weakmap");
|
|
1416
|
+
"handle"?: (Script.Handle);
|
|
1417
|
+
"internalId"?: (Script.InternalId);
|
|
1418
|
+
}));
|
|
1419
|
+
}
|
|
1420
|
+
export declare namespace Script {
|
|
1421
|
+
type WeakSetRemoteValue = (({
|
|
1422
|
+
"type": ("weakset");
|
|
1423
|
+
"handle"?: (Script.Handle);
|
|
1424
|
+
"internalId"?: (Script.InternalId);
|
|
1425
|
+
}));
|
|
1426
|
+
}
|
|
1427
|
+
export declare namespace Script {
|
|
1428
|
+
type GeneratorRemoteValue = (({
|
|
1429
|
+
"type": ("generator");
|
|
1430
|
+
"handle"?: (Script.Handle);
|
|
1431
|
+
"internalId"?: (Script.InternalId);
|
|
1432
|
+
}));
|
|
1433
|
+
}
|
|
1434
|
+
export declare namespace Script {
|
|
1435
|
+
type ErrorRemoteValue = (({
|
|
1436
|
+
"type": ("error");
|
|
1437
|
+
"handle"?: (Script.Handle);
|
|
1438
|
+
"internalId"?: (Script.InternalId);
|
|
1439
|
+
}));
|
|
1440
|
+
}
|
|
1441
|
+
export declare namespace Script {
|
|
1442
|
+
type ProxyRemoteValue = (({
|
|
1443
|
+
"type": ("proxy");
|
|
1444
|
+
"handle"?: (Script.Handle);
|
|
1445
|
+
"internalId"?: (Script.InternalId);
|
|
1446
|
+
}));
|
|
1447
|
+
}
|
|
1448
|
+
export declare namespace Script {
|
|
1449
|
+
type PromiseRemoteValue = (({
|
|
1450
|
+
"type": ("promise");
|
|
1451
|
+
"handle"?: (Script.Handle);
|
|
1452
|
+
"internalId"?: (Script.InternalId);
|
|
1453
|
+
}));
|
|
1454
|
+
}
|
|
1455
|
+
export declare namespace Script {
|
|
1456
|
+
type TypedArrayRemoteValue = (({
|
|
1457
|
+
"type": ("typedarray");
|
|
1458
|
+
"handle"?: (Script.Handle);
|
|
1459
|
+
"internalId"?: (Script.InternalId);
|
|
1460
|
+
}));
|
|
1461
|
+
}
|
|
1462
|
+
export declare namespace Script {
|
|
1463
|
+
type ArrayBufferRemoteValue = (({
|
|
1464
|
+
"type": ("arraybuffer");
|
|
1465
|
+
"handle"?: (Script.Handle);
|
|
1466
|
+
"internalId"?: (Script.InternalId);
|
|
1467
|
+
}));
|
|
1468
|
+
}
|
|
1469
|
+
export declare namespace Script {
|
|
1470
|
+
type NodeListRemoteValue = (({
|
|
1471
|
+
"type": ("nodelist");
|
|
1472
|
+
"handle"?: (Script.Handle);
|
|
1473
|
+
"internalId"?: (Script.InternalId);
|
|
1474
|
+
"value"?: (Script.ListRemoteValue);
|
|
1475
|
+
}));
|
|
1476
|
+
}
|
|
1477
|
+
export declare namespace Script {
|
|
1478
|
+
type HtmlCollectionRemoteValue = (({
|
|
1479
|
+
"type": ("htmlcollection");
|
|
1480
|
+
"handle"?: (Script.Handle);
|
|
1481
|
+
"internalId"?: (Script.InternalId);
|
|
1482
|
+
"value"?: (Script.ListRemoteValue);
|
|
1483
|
+
}));
|
|
1484
|
+
}
|
|
1485
|
+
export declare namespace Script {
|
|
1486
|
+
type NodeRemoteValue = (({
|
|
1487
|
+
"type": ("node");
|
|
1488
|
+
"sharedId"?: (Script.SharedId);
|
|
1489
|
+
"handle"?: (Script.Handle);
|
|
1490
|
+
"internalId"?: (Script.InternalId);
|
|
1491
|
+
"value"?: (Script.NodeProperties);
|
|
1492
|
+
}));
|
|
1493
|
+
}
|
|
1494
|
+
export declare namespace Script {
|
|
1495
|
+
type NodeProperties = (({
|
|
1496
|
+
"nodeType": (JsUint);
|
|
1497
|
+
"childNodeCount": (JsUint);
|
|
1498
|
+
"attributes"?: (({
|
|
1499
|
+
[key: string]: (string);
|
|
1500
|
+
}));
|
|
1501
|
+
"children"?: ([
|
|
1502
|
+
...((Script.NodeRemoteValue)[])
|
|
1503
|
+
]);
|
|
1504
|
+
"localName"?: (string);
|
|
1505
|
+
"mode"?: ("open" | "closed");
|
|
1506
|
+
"namespaceURI"?: (string);
|
|
1507
|
+
"nodeValue"?: (string);
|
|
1508
|
+
"shadowRoot"?: (Script.NodeRemoteValue | null);
|
|
1509
|
+
}));
|
|
1510
|
+
}
|
|
1511
|
+
export declare namespace Script {
|
|
1512
|
+
type WindowProxyRemoteValue = (({
|
|
1513
|
+
"type": ("window");
|
|
1514
|
+
"value": (Script.WindowProxyProperties);
|
|
1515
|
+
"handle"?: (Script.Handle);
|
|
1516
|
+
"internalId"?: (Script.InternalId);
|
|
1517
|
+
}));
|
|
1518
|
+
}
|
|
1519
|
+
export declare namespace Script {
|
|
1520
|
+
type WindowProxyProperties = (({
|
|
1521
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
1522
|
+
}));
|
|
1523
|
+
}
|
|
1524
|
+
export declare namespace Script {
|
|
1525
|
+
const enum ResultOwnership {
|
|
1526
|
+
Root = "root",
|
|
1527
|
+
None = "none"
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
export declare namespace Script {
|
|
1531
|
+
type SerializationOptions = (({
|
|
1532
|
+
/**
|
|
1533
|
+
* @defaultValue `0`
|
|
1534
|
+
*/
|
|
1535
|
+
"maxDomDepth"?: ((JsUint | null));
|
|
1536
|
+
/**
|
|
1537
|
+
* @defaultValue `null`
|
|
1538
|
+
*/
|
|
1539
|
+
"maxObjectDepth"?: ((JsUint | null));
|
|
1540
|
+
/**
|
|
1541
|
+
* @defaultValue `"none"`
|
|
1542
|
+
*/
|
|
1543
|
+
"includeShadowTree"?: (("none" | "open" | "all"));
|
|
1544
|
+
}));
|
|
1545
|
+
}
|
|
1546
|
+
export declare namespace Script {
|
|
1547
|
+
type SharedId = (string);
|
|
1548
|
+
}
|
|
1549
|
+
export declare namespace Script {
|
|
1550
|
+
type StackFrame = (({
|
|
1551
|
+
"columnNumber": (JsUint);
|
|
1552
|
+
"functionName": (string);
|
|
1553
|
+
"lineNumber": (JsUint);
|
|
1554
|
+
"url": (string);
|
|
1555
|
+
}));
|
|
1556
|
+
}
|
|
1557
|
+
export declare namespace Script {
|
|
1558
|
+
type StackTrace = (({
|
|
1559
|
+
"callFrames": ([
|
|
1560
|
+
...((Script.StackFrame)[])
|
|
1561
|
+
]);
|
|
1562
|
+
}));
|
|
1563
|
+
}
|
|
1564
|
+
export declare namespace Script {
|
|
1565
|
+
type Source = (({
|
|
1566
|
+
"realm": (Script.Realm);
|
|
1567
|
+
"context"?: (BrowsingContext.BrowsingContext);
|
|
1568
|
+
}));
|
|
1569
|
+
}
|
|
1570
|
+
export declare namespace Script {
|
|
1571
|
+
type RealmTarget = (({
|
|
1572
|
+
"realm": (Script.Realm);
|
|
1573
|
+
}));
|
|
1574
|
+
}
|
|
1575
|
+
export declare namespace Script {
|
|
1576
|
+
type ContextTarget = (({
|
|
1577
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
1578
|
+
"sandbox"?: (string);
|
|
1579
|
+
}));
|
|
1580
|
+
}
|
|
1581
|
+
export declare namespace Script {
|
|
1582
|
+
type Target = ((Script.ContextTarget | Script.RealmTarget));
|
|
1583
|
+
}
|
|
1584
|
+
export declare namespace Script {
|
|
1585
|
+
type AddPreloadScript = ({
|
|
1586
|
+
"method": ("script.addPreloadScript");
|
|
1587
|
+
"params": (Script.AddPreloadScriptParameters);
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
export declare namespace Script {
|
|
1591
|
+
type AddPreloadScriptParameters = (({
|
|
1592
|
+
"functionDeclaration": (string);
|
|
1593
|
+
"arguments"?: ([
|
|
1594
|
+
...((Script.ChannelValue)[])
|
|
1595
|
+
]);
|
|
1596
|
+
"contexts"?: ([
|
|
1597
|
+
(BrowsingContext.BrowsingContext),
|
|
1598
|
+
...(BrowsingContext.BrowsingContext)[]
|
|
1599
|
+
]);
|
|
1600
|
+
"sandbox"?: (string);
|
|
1601
|
+
}));
|
|
1602
|
+
}
|
|
1603
|
+
export declare namespace Script {
|
|
1604
|
+
type AddPreloadScriptResult = (({
|
|
1605
|
+
"script": (Script.PreloadScript);
|
|
1606
|
+
}));
|
|
1607
|
+
}
|
|
1608
|
+
export declare namespace Script {
|
|
1609
|
+
type Disown = ({
|
|
1610
|
+
"method": ("script.disown");
|
|
1611
|
+
"params": (Script.DisownParameters);
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
export declare namespace Script {
|
|
1615
|
+
type DisownParameters = (({
|
|
1616
|
+
"handles": ([
|
|
1617
|
+
...((Script.Handle)[])
|
|
1618
|
+
]);
|
|
1619
|
+
"target": (Script.Target);
|
|
1620
|
+
}));
|
|
1621
|
+
}
|
|
1622
|
+
export declare namespace Script {
|
|
1623
|
+
type CallFunctionParameters = (({
|
|
1624
|
+
"functionDeclaration": (string);
|
|
1625
|
+
"awaitPromise": (boolean);
|
|
1626
|
+
"target": (Script.Target);
|
|
1627
|
+
"arguments"?: ([
|
|
1628
|
+
...((Script.LocalValue)[])
|
|
1629
|
+
]);
|
|
1630
|
+
"resultOwnership"?: (Script.ResultOwnership);
|
|
1631
|
+
"serializationOptions"?: (Script.SerializationOptions);
|
|
1632
|
+
"this"?: (Script.LocalValue);
|
|
1633
|
+
/**
|
|
1634
|
+
* @defaultValue `false`
|
|
1635
|
+
*/
|
|
1636
|
+
"userActivation"?: (boolean);
|
|
1637
|
+
}));
|
|
1638
|
+
}
|
|
1639
|
+
export declare namespace Script {
|
|
1640
|
+
type CallFunction = ({
|
|
1641
|
+
"method": ("script.callFunction");
|
|
1642
|
+
"params": (Script.CallFunctionParameters);
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1645
|
+
export declare namespace Script {
|
|
1646
|
+
type Evaluate = ({
|
|
1647
|
+
"method": ("script.evaluate");
|
|
1648
|
+
"params": (Script.EvaluateParameters);
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
export declare namespace Script {
|
|
1652
|
+
type EvaluateParameters = (({
|
|
1653
|
+
"expression": (string);
|
|
1654
|
+
"target": (Script.Target);
|
|
1655
|
+
"awaitPromise": (boolean);
|
|
1656
|
+
"resultOwnership"?: (Script.ResultOwnership);
|
|
1657
|
+
"serializationOptions"?: (Script.SerializationOptions);
|
|
1658
|
+
/**
|
|
1659
|
+
* @defaultValue `false`
|
|
1660
|
+
*/
|
|
1661
|
+
"userActivation"?: (boolean);
|
|
1662
|
+
}));
|
|
1663
|
+
}
|
|
1664
|
+
export declare namespace Script {
|
|
1665
|
+
type GetRealms = ({
|
|
1666
|
+
"method": ("script.getRealms");
|
|
1667
|
+
"params": (Script.GetRealmsParameters);
|
|
1668
|
+
});
|
|
1669
|
+
}
|
|
1670
|
+
export declare namespace Script {
|
|
1671
|
+
type GetRealmsParameters = (({
|
|
1672
|
+
"context"?: (BrowsingContext.BrowsingContext);
|
|
1673
|
+
"type"?: (Script.RealmType);
|
|
1674
|
+
}));
|
|
1675
|
+
}
|
|
1676
|
+
export declare namespace Script {
|
|
1677
|
+
type GetRealmsResult = (({
|
|
1678
|
+
"realms": ([
|
|
1679
|
+
...((Script.RealmInfo)[])
|
|
1680
|
+
]);
|
|
1681
|
+
}));
|
|
1682
|
+
}
|
|
1683
|
+
export declare namespace Script {
|
|
1684
|
+
type RemovePreloadScript = ({
|
|
1685
|
+
"method": ("script.removePreloadScript");
|
|
1686
|
+
"params": (Script.RemovePreloadScriptParameters);
|
|
1687
|
+
});
|
|
1688
|
+
}
|
|
1689
|
+
export declare namespace Script {
|
|
1690
|
+
type RemovePreloadScriptParameters = (({
|
|
1691
|
+
"script": (Script.PreloadScript);
|
|
1692
|
+
}));
|
|
1693
|
+
}
|
|
1694
|
+
export declare namespace Script {
|
|
1695
|
+
type MessageParameters = (({
|
|
1696
|
+
"channel": (Script.Channel);
|
|
1697
|
+
"data": (Script.RemoteValue);
|
|
1698
|
+
"source": (Script.Source);
|
|
1699
|
+
}));
|
|
1700
|
+
}
|
|
1701
|
+
export declare namespace Script {
|
|
1702
|
+
type RealmCreated = ({
|
|
1703
|
+
"method": ("script.realmCreated");
|
|
1704
|
+
"params": (Script.RealmInfo);
|
|
1705
|
+
});
|
|
1706
|
+
}
|
|
1707
|
+
export declare namespace Script {
|
|
1708
|
+
type Message = ({
|
|
1709
|
+
"method": ("script.message");
|
|
1710
|
+
"params": (Script.MessageParameters);
|
|
1711
|
+
});
|
|
1712
|
+
}
|
|
1713
|
+
export declare namespace Script {
|
|
1714
|
+
type RealmDestroyed = ({
|
|
1715
|
+
"method": ("script.realmDestroyed");
|
|
1716
|
+
"params": (Script.RealmDestroyedParameters);
|
|
1717
|
+
});
|
|
1718
|
+
}
|
|
1719
|
+
export declare namespace Script {
|
|
1720
|
+
type RealmDestroyedParameters = (({
|
|
1721
|
+
"realm": (Script.Realm);
|
|
1722
|
+
}));
|
|
1723
|
+
}
|
|
1724
|
+
export type StorageCommand = (Storage.DeleteCookies | Storage.GetCookies | Storage.SetCookie);
|
|
1725
|
+
export type StorageResult = ((Storage.DeleteCookiesResult | Storage.GetCookiesResult | Storage.SetCookieResult));
|
|
1726
|
+
export declare namespace Storage {
|
|
1727
|
+
type PartitionKey = (({
|
|
1728
|
+
"userContext"?: (string);
|
|
1729
|
+
"sourceOrigin"?: (string);
|
|
1730
|
+
} & Extensible));
|
|
1731
|
+
}
|
|
1732
|
+
export declare namespace Storage {
|
|
1733
|
+
type GetCookies = ({
|
|
1734
|
+
"method": ("storage.getCookies");
|
|
1735
|
+
"params": (Storage.GetCookiesParameters);
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
export declare namespace Storage {
|
|
1739
|
+
type CookieFilter = (({
|
|
1740
|
+
"name"?: (string);
|
|
1741
|
+
"value"?: (Network.BytesValue);
|
|
1742
|
+
"domain"?: (string);
|
|
1743
|
+
"path"?: (string);
|
|
1744
|
+
"size"?: (JsUint);
|
|
1745
|
+
"httpOnly"?: (boolean);
|
|
1746
|
+
"secure"?: (boolean);
|
|
1747
|
+
"sameSite"?: (Network.SameSite);
|
|
1748
|
+
"expiry"?: (JsUint);
|
|
1749
|
+
} & Extensible));
|
|
1750
|
+
}
|
|
1751
|
+
export declare namespace Storage {
|
|
1752
|
+
type BrowsingContextPartitionDescriptor = (({
|
|
1753
|
+
"type": ("context");
|
|
1754
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
1755
|
+
}));
|
|
1756
|
+
}
|
|
1757
|
+
export declare namespace Storage {
|
|
1758
|
+
type StorageKeyPartitionDescriptor = (({
|
|
1759
|
+
"type": ("storageKey");
|
|
1760
|
+
"userContext"?: (string);
|
|
1761
|
+
"sourceOrigin"?: (string);
|
|
1762
|
+
} & Extensible));
|
|
1763
|
+
}
|
|
1764
|
+
export declare namespace Storage {
|
|
1765
|
+
type PartitionDescriptor = ((Storage.BrowsingContextPartitionDescriptor | Storage.StorageKeyPartitionDescriptor));
|
|
1766
|
+
}
|
|
1767
|
+
export declare namespace Storage {
|
|
1768
|
+
type GetCookiesParameters = (({
|
|
1769
|
+
"filter"?: (Storage.CookieFilter);
|
|
1770
|
+
"partition"?: (Storage.PartitionDescriptor);
|
|
1771
|
+
}));
|
|
1772
|
+
}
|
|
1773
|
+
export declare namespace Storage {
|
|
1774
|
+
type GetCookiesResult = (({
|
|
1775
|
+
"cookies": ([
|
|
1776
|
+
...((Network.Cookie)[])
|
|
1777
|
+
]);
|
|
1778
|
+
"partitionKey": (Storage.PartitionKey);
|
|
1779
|
+
}));
|
|
1780
|
+
}
|
|
1781
|
+
export declare namespace Storage {
|
|
1782
|
+
type SetCookie = ({
|
|
1783
|
+
"method": ("storage.setCookie");
|
|
1784
|
+
"params": (Storage.SetCookieParameters);
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
export declare namespace Storage {
|
|
1788
|
+
type PartialCookie = (({
|
|
1789
|
+
"name": (string);
|
|
1790
|
+
"value": (Network.BytesValue);
|
|
1791
|
+
"domain": (string);
|
|
1792
|
+
"path"?: (string);
|
|
1793
|
+
"httpOnly"?: (boolean);
|
|
1794
|
+
"secure"?: (boolean);
|
|
1795
|
+
"sameSite"?: (Network.SameSite);
|
|
1796
|
+
"expiry"?: (JsUint);
|
|
1797
|
+
} & Extensible));
|
|
1798
|
+
}
|
|
1799
|
+
export declare namespace Storage {
|
|
1800
|
+
type SetCookieParameters = (({
|
|
1801
|
+
"cookie": (Storage.PartialCookie);
|
|
1802
|
+
"partition"?: (Storage.PartitionDescriptor);
|
|
1803
|
+
}));
|
|
1804
|
+
}
|
|
1805
|
+
export declare namespace Storage {
|
|
1806
|
+
type SetCookieResult = (({
|
|
1807
|
+
"partitionKey": (Storage.PartitionKey);
|
|
1808
|
+
}));
|
|
1809
|
+
}
|
|
1810
|
+
export declare namespace Storage {
|
|
1811
|
+
type DeleteCookies = ({
|
|
1812
|
+
"method": ("storage.deleteCookies");
|
|
1813
|
+
"params": (Storage.DeleteCookiesParameters);
|
|
1814
|
+
});
|
|
1815
|
+
}
|
|
1816
|
+
export declare namespace Storage {
|
|
1817
|
+
type DeleteCookiesParameters = (({
|
|
1818
|
+
"filter"?: (Storage.CookieFilter);
|
|
1819
|
+
"partition"?: (Storage.PartitionDescriptor);
|
|
1820
|
+
}));
|
|
1821
|
+
}
|
|
1822
|
+
export declare namespace Storage {
|
|
1823
|
+
type DeleteCookiesResult = (({
|
|
1824
|
+
"partitionKey": (Storage.PartitionKey);
|
|
1825
|
+
}));
|
|
1826
|
+
}
|
|
1827
|
+
export type LogEvent = (Log.EntryAdded);
|
|
1828
|
+
export declare namespace Log {
|
|
1829
|
+
const enum Level {
|
|
1830
|
+
Debug = "debug",
|
|
1831
|
+
Info = "info",
|
|
1832
|
+
Warn = "warn",
|
|
1833
|
+
Error = "error"
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
export declare namespace Log {
|
|
1837
|
+
type Entry = ((Log.GenericLogEntry | Log.ConsoleLogEntry | Log.JavascriptLogEntry));
|
|
1838
|
+
}
|
|
1839
|
+
export declare namespace Log {
|
|
1840
|
+
type BaseLogEntry = ({
|
|
1841
|
+
"level": (Log.Level);
|
|
1842
|
+
"source": (Script.Source);
|
|
1843
|
+
"text": (string | null);
|
|
1844
|
+
"timestamp": (JsUint);
|
|
1845
|
+
"stackTrace"?: (Script.StackTrace);
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1848
|
+
export declare namespace Log {
|
|
1849
|
+
type GenericLogEntry = ((Log.BaseLogEntry & {
|
|
1850
|
+
"type": (string);
|
|
1851
|
+
}));
|
|
1852
|
+
}
|
|
1853
|
+
export declare namespace Log {
|
|
1854
|
+
type ConsoleLogEntry = ((Log.BaseLogEntry & {
|
|
1855
|
+
"type": ("console");
|
|
1856
|
+
"method": (string);
|
|
1857
|
+
"args": ([
|
|
1858
|
+
...((Script.RemoteValue)[])
|
|
1859
|
+
]);
|
|
1860
|
+
}));
|
|
1861
|
+
}
|
|
1862
|
+
export declare namespace Log {
|
|
1863
|
+
type JavascriptLogEntry = ((Log.BaseLogEntry & {
|
|
1864
|
+
"type": ("javascript");
|
|
1865
|
+
}));
|
|
1866
|
+
}
|
|
1867
|
+
export declare namespace Log {
|
|
1868
|
+
type EntryAdded = ({
|
|
1869
|
+
"method": ("log.entryAdded");
|
|
1870
|
+
"params": (Log.Entry);
|
|
1871
|
+
});
|
|
1872
|
+
}
|
|
1873
|
+
export type InputCommand = (Input.PerformActions | Input.ReleaseActions | Input.SetFiles);
|
|
1874
|
+
export declare namespace Input {
|
|
1875
|
+
type ElementOrigin = (({
|
|
1876
|
+
"type": ("element");
|
|
1877
|
+
"element": (Script.SharedReference);
|
|
1878
|
+
}));
|
|
1879
|
+
}
|
|
1880
|
+
export declare namespace Input {
|
|
1881
|
+
type PerformActionsParameters = (({
|
|
1882
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
1883
|
+
"actions": ([
|
|
1884
|
+
...((Input.SourceActions)[])
|
|
1885
|
+
]);
|
|
1886
|
+
}));
|
|
1887
|
+
}
|
|
1888
|
+
export declare namespace Input {
|
|
1889
|
+
type NoneSourceActions = (({
|
|
1890
|
+
"type": ("none");
|
|
1891
|
+
"id": (string);
|
|
1892
|
+
"actions": ([
|
|
1893
|
+
...((Input.NoneSourceAction)[])
|
|
1894
|
+
]);
|
|
1895
|
+
}));
|
|
1896
|
+
}
|
|
1897
|
+
export declare namespace Input {
|
|
1898
|
+
type KeySourceActions = (({
|
|
1899
|
+
"type": ("key");
|
|
1900
|
+
"id": (string);
|
|
1901
|
+
"actions": ([
|
|
1902
|
+
...((Input.KeySourceAction)[])
|
|
1903
|
+
]);
|
|
1904
|
+
}));
|
|
1905
|
+
}
|
|
1906
|
+
export declare namespace Input {
|
|
1907
|
+
type PointerSourceActions = (({
|
|
1908
|
+
"type": ("pointer");
|
|
1909
|
+
"id": (string);
|
|
1910
|
+
"parameters"?: (Input.PointerParameters);
|
|
1911
|
+
"actions": ([
|
|
1912
|
+
...((Input.PointerSourceAction)[])
|
|
1913
|
+
]);
|
|
1914
|
+
}));
|
|
1915
|
+
}
|
|
1916
|
+
export declare namespace Input {
|
|
1917
|
+
type PerformActions = ({
|
|
1918
|
+
"method": ("input.performActions");
|
|
1919
|
+
"params": (Input.PerformActionsParameters);
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
export declare namespace Input {
|
|
1923
|
+
type SourceActions = ((Input.NoneSourceActions | Input.KeySourceActions | Input.PointerSourceActions | Input.WheelSourceActions));
|
|
1924
|
+
}
|
|
1925
|
+
export declare namespace Input {
|
|
1926
|
+
type NoneSourceAction = (Input.PauseAction);
|
|
1927
|
+
}
|
|
1928
|
+
export declare namespace Input {
|
|
1929
|
+
type KeySourceAction = ((Input.PauseAction | Input.KeyDownAction | Input.KeyUpAction));
|
|
1930
|
+
}
|
|
1931
|
+
export declare namespace Input {
|
|
1932
|
+
const enum PointerType {
|
|
1933
|
+
Mouse = "mouse",
|
|
1934
|
+
Pen = "pen",
|
|
1935
|
+
Touch = "touch"
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
export declare namespace Input {
|
|
1939
|
+
type PointerParameters = (({
|
|
1940
|
+
/**
|
|
1941
|
+
* @defaultValue `"mouse"`
|
|
1942
|
+
*/
|
|
1943
|
+
"pointerType"?: (Input.PointerType);
|
|
1944
|
+
}));
|
|
1945
|
+
}
|
|
1946
|
+
export declare namespace Input {
|
|
1947
|
+
type WheelSourceActions = (({
|
|
1948
|
+
"type": ("wheel");
|
|
1949
|
+
"id": (string);
|
|
1950
|
+
"actions": ([
|
|
1951
|
+
...((Input.WheelSourceAction)[])
|
|
1952
|
+
]);
|
|
1953
|
+
}));
|
|
1954
|
+
}
|
|
1955
|
+
export declare namespace Input {
|
|
1956
|
+
type PointerSourceAction = ((Input.PauseAction | Input.PointerDownAction | Input.PointerUpAction | Input.PointerMoveAction));
|
|
1957
|
+
}
|
|
1958
|
+
export declare namespace Input {
|
|
1959
|
+
type WheelSourceAction = ((Input.PauseAction | Input.WheelScrollAction));
|
|
1960
|
+
}
|
|
1961
|
+
export declare namespace Input {
|
|
1962
|
+
type PauseAction = (({
|
|
1963
|
+
"type": ("pause");
|
|
1964
|
+
"duration"?: (JsUint);
|
|
1965
|
+
}));
|
|
1966
|
+
}
|
|
1967
|
+
export declare namespace Input {
|
|
1968
|
+
type KeyDownAction = (({
|
|
1969
|
+
"type": ("keyDown");
|
|
1970
|
+
"value": (string);
|
|
1971
|
+
}));
|
|
1972
|
+
}
|
|
1973
|
+
export declare namespace Input {
|
|
1974
|
+
type KeyUpAction = (({
|
|
1975
|
+
"type": ("keyUp");
|
|
1976
|
+
"value": (string);
|
|
1977
|
+
}));
|
|
1978
|
+
}
|
|
1979
|
+
export declare namespace Input {
|
|
1980
|
+
type PointerUpAction = (({
|
|
1981
|
+
"type": ("pointerUp");
|
|
1982
|
+
"button": (JsUint);
|
|
1983
|
+
}));
|
|
1984
|
+
}
|
|
1985
|
+
export declare namespace Input {
|
|
1986
|
+
type PointerDownAction = (({
|
|
1987
|
+
"type": ("pointerDown");
|
|
1988
|
+
"button": (JsUint);
|
|
1989
|
+
} & Input.PointerCommonProperties));
|
|
1990
|
+
}
|
|
1991
|
+
export declare namespace Input {
|
|
1992
|
+
type PointerMoveAction = (({
|
|
1993
|
+
"type": ("pointerMove");
|
|
1994
|
+
"x": (JsInt);
|
|
1995
|
+
"y": (JsInt);
|
|
1996
|
+
"duration"?: (JsUint);
|
|
1997
|
+
"origin"?: (Input.Origin);
|
|
1998
|
+
} & Input.PointerCommonProperties));
|
|
1999
|
+
}
|
|
2000
|
+
export declare namespace Input {
|
|
2001
|
+
type WheelScrollAction = (({
|
|
2002
|
+
"type": ("scroll");
|
|
2003
|
+
"x": (JsInt);
|
|
2004
|
+
"y": (JsInt);
|
|
2005
|
+
"deltaX": (JsInt);
|
|
2006
|
+
"deltaY": (JsInt);
|
|
2007
|
+
"duration"?: (JsUint);
|
|
2008
|
+
/**
|
|
2009
|
+
* @defaultValue `"viewport"`
|
|
2010
|
+
*/
|
|
2011
|
+
"origin"?: (Input.Origin);
|
|
2012
|
+
}));
|
|
2013
|
+
}
|
|
2014
|
+
export declare namespace Input {
|
|
2015
|
+
type PointerCommonProperties = ({
|
|
2016
|
+
/**
|
|
2017
|
+
* @defaultValue `1`
|
|
2018
|
+
*/
|
|
2019
|
+
"width"?: (JsUint);
|
|
2020
|
+
/**
|
|
2021
|
+
* @defaultValue `1`
|
|
2022
|
+
*/
|
|
2023
|
+
"height"?: (JsUint);
|
|
2024
|
+
/**
|
|
2025
|
+
* @defaultValue `0`
|
|
2026
|
+
*/
|
|
2027
|
+
"pressure"?: (number);
|
|
2028
|
+
/**
|
|
2029
|
+
* @defaultValue `0`
|
|
2030
|
+
*/
|
|
2031
|
+
"tangentialPressure"?: (number);
|
|
2032
|
+
/**
|
|
2033
|
+
* Must be between `0` and `359`, inclusive.
|
|
2034
|
+
*
|
|
2035
|
+
* @defaultValue `0`
|
|
2036
|
+
*/
|
|
2037
|
+
"twist"?: ((number));
|
|
2038
|
+
/**
|
|
2039
|
+
* Must be between `0` and `1.5707963267948966`, inclusive.
|
|
2040
|
+
*
|
|
2041
|
+
* @defaultValue `0`
|
|
2042
|
+
*/
|
|
2043
|
+
"altitudeAngle"?: ((number));
|
|
2044
|
+
/**
|
|
2045
|
+
* Must be between `0` and `6.283185307179586`, inclusive.
|
|
2046
|
+
*
|
|
2047
|
+
* @defaultValue `0`
|
|
2048
|
+
*/
|
|
2049
|
+
"azimuthAngle"?: ((number));
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
export declare namespace Input {
|
|
2053
|
+
type Origin = ("viewport" | "pointer" | Input.ElementOrigin);
|
|
2054
|
+
}
|
|
2055
|
+
export declare namespace Input {
|
|
2056
|
+
type ReleaseActions = ({
|
|
2057
|
+
"method": ("input.releaseActions");
|
|
2058
|
+
"params": (Input.ReleaseActionsParameters);
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
export declare namespace Input {
|
|
2062
|
+
type ReleaseActionsParameters = (({
|
|
2063
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
2064
|
+
}));
|
|
2065
|
+
}
|
|
2066
|
+
export declare namespace Input {
|
|
2067
|
+
type SetFiles = ({
|
|
2068
|
+
"method": ("input.setFiles");
|
|
2069
|
+
"params": (Input.SetFilesParameters);
|
|
2070
|
+
});
|
|
2071
|
+
}
|
|
2072
|
+
export declare namespace Input {
|
|
2073
|
+
type SetFilesParameters = (({
|
|
2074
|
+
"context": (BrowsingContext.BrowsingContext);
|
|
2075
|
+
"element": (Script.SharedReference);
|
|
2076
|
+
"files": ([
|
|
2077
|
+
...((string)[])
|
|
2078
|
+
]);
|
|
2079
|
+
}));
|
|
2080
|
+
}
|