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