@opencode/plugin-browser 0.0.0-reserved → 2.0.0
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/README.md +127 -4
- package/dist/connection.d.ts +234 -0
- package/dist/connection.js +133 -0
- package/dist/files.d.ts +18 -0
- package/dist/files.js +89 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +11 -0
- package/dist/proxy.d.ts +19 -0
- package/dist/proxy.js +294 -0
- package/dist/rpc.d.ts +2479 -0
- package/dist/rpc.js +322 -0
- package/dist/tools.d.ts +234 -0
- package/dist/tools.js +104 -0
- package/dist/tunnel.d.ts +16 -0
- package/dist/tunnel.js +125 -0
- package/package.json +37 -3
package/dist/rpc.d.ts
ADDED
|
@@ -0,0 +1,2479 @@
|
|
|
1
|
+
export * as Browser from "./rpc.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export declare const MAX_FILE_BYTES: number;
|
|
4
|
+
export declare const TUNNEL_CHUNK_BYTES: number;
|
|
5
|
+
export declare const MAX_TEXT = 100000;
|
|
6
|
+
export declare const TabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
7
|
+
export type TabID = typeof TabID.Type;
|
|
8
|
+
export declare const Ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
9
|
+
export type Ref = typeof Ref.Type;
|
|
10
|
+
export declare const FileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
11
|
+
export type FileID = typeof FileID.Type;
|
|
12
|
+
export interface Tab extends Schema.Schema.Type<typeof Tab> {
|
|
13
|
+
}
|
|
14
|
+
export declare const Tab: Schema.Struct<{
|
|
15
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
16
|
+
readonly url: Schema.String;
|
|
17
|
+
readonly title: Schema.String;
|
|
18
|
+
readonly loading: Schema.Boolean;
|
|
19
|
+
readonly canGoBack: Schema.Boolean;
|
|
20
|
+
readonly canGoForward: Schema.Boolean;
|
|
21
|
+
readonly generation: Schema.Int;
|
|
22
|
+
}>;
|
|
23
|
+
export interface State extends Schema.Schema.Type<typeof State> {
|
|
24
|
+
}
|
|
25
|
+
export declare const State: Schema.Struct<{
|
|
26
|
+
readonly tabs: Schema.$Array<Schema.Struct<{
|
|
27
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
28
|
+
readonly url: Schema.String;
|
|
29
|
+
readonly title: Schema.String;
|
|
30
|
+
readonly loading: Schema.Boolean;
|
|
31
|
+
readonly canGoBack: Schema.Boolean;
|
|
32
|
+
readonly canGoForward: Schema.Boolean;
|
|
33
|
+
readonly generation: Schema.Int;
|
|
34
|
+
}>>;
|
|
35
|
+
readonly focusedTabID: Schema.NullOr<Schema.brand<Schema.String, "Browser.TabID">>;
|
|
36
|
+
}>;
|
|
37
|
+
export interface FileInfo extends Schema.Schema.Type<typeof FileInfo> {
|
|
38
|
+
}
|
|
39
|
+
export declare const FileInfo: Schema.Struct<{
|
|
40
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
41
|
+
readonly name: Schema.String;
|
|
42
|
+
readonly mime: Schema.String;
|
|
43
|
+
readonly bytes: Schema.Int;
|
|
44
|
+
readonly path: Schema.String;
|
|
45
|
+
}>;
|
|
46
|
+
export interface File extends Schema.Schema.Type<typeof File> {
|
|
47
|
+
}
|
|
48
|
+
export declare const File: Schema.Struct<{
|
|
49
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
50
|
+
readonly name: Schema.String;
|
|
51
|
+
readonly mime: Schema.String;
|
|
52
|
+
readonly data: Schema.Uint8ArrayFromBase64;
|
|
53
|
+
}>;
|
|
54
|
+
export declare const ResourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
55
|
+
export type ResourceType = typeof ResourceType.Type;
|
|
56
|
+
export declare const Body: Schema.Union<readonly [Schema.Struct<{
|
|
57
|
+
readonly state: Schema.Literals<readonly ["notRequested", "pending", "empty"]>;
|
|
58
|
+
}>, Schema.Struct<{
|
|
59
|
+
readonly state: Schema.Literal<"text">;
|
|
60
|
+
readonly text: Schema.String;
|
|
61
|
+
readonly truncated: Schema.Boolean;
|
|
62
|
+
}>, Schema.Struct<{
|
|
63
|
+
readonly state: Schema.Literal<"unavailable">;
|
|
64
|
+
readonly reason: Schema.Literals<readonly ["binary", "notCaptured", "backendUnavailable"]>;
|
|
65
|
+
}>]>;
|
|
66
|
+
export type Body = typeof Body.Type;
|
|
67
|
+
export declare const NetworkRequest: Schema.Union<readonly [Schema.Struct<{
|
|
68
|
+
readonly state: Schema.Literal<"pending">;
|
|
69
|
+
readonly id: Schema.String;
|
|
70
|
+
readonly url: Schema.String;
|
|
71
|
+
readonly method: Schema.String;
|
|
72
|
+
readonly resourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
73
|
+
readonly timestampMs: Schema.Finite;
|
|
74
|
+
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
75
|
+
}>, Schema.Struct<{
|
|
76
|
+
readonly state: Schema.Literal<"completed">;
|
|
77
|
+
readonly durationMs: Schema.Finite;
|
|
78
|
+
readonly id: Schema.String;
|
|
79
|
+
readonly url: Schema.String;
|
|
80
|
+
readonly method: Schema.String;
|
|
81
|
+
readonly resourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
82
|
+
readonly timestampMs: Schema.Finite;
|
|
83
|
+
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
84
|
+
}>, Schema.Struct<{
|
|
85
|
+
readonly state: Schema.Literal<"failed">;
|
|
86
|
+
readonly durationMs: Schema.Finite;
|
|
87
|
+
readonly failure: Schema.String;
|
|
88
|
+
readonly id: Schema.String;
|
|
89
|
+
readonly url: Schema.String;
|
|
90
|
+
readonly method: Schema.String;
|
|
91
|
+
readonly resourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
92
|
+
readonly timestampMs: Schema.Finite;
|
|
93
|
+
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
94
|
+
}>]>;
|
|
95
|
+
export type NetworkRequest = typeof NetworkRequest.Type;
|
|
96
|
+
export declare const ConsoleEntry: Schema.Struct<{
|
|
97
|
+
readonly id: Schema.String;
|
|
98
|
+
readonly timestampMs: Schema.Finite;
|
|
99
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
100
|
+
readonly text: Schema.String;
|
|
101
|
+
readonly textTruncated: Schema.Boolean;
|
|
102
|
+
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
103
|
+
readonly url: Schema.String;
|
|
104
|
+
readonly line: Schema.Int;
|
|
105
|
+
readonly column: Schema.Int;
|
|
106
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
107
|
+
readonly url: Schema.String;
|
|
108
|
+
readonly line: Schema.Int;
|
|
109
|
+
readonly column: Schema.Int;
|
|
110
|
+
}>>, never, never>;
|
|
111
|
+
}>;
|
|
112
|
+
export interface ConsoleEntry extends Schema.Schema.Type<typeof ConsoleEntry> {
|
|
113
|
+
}
|
|
114
|
+
export declare const Operations: readonly [{
|
|
115
|
+
name: "tabs.list";
|
|
116
|
+
description: string;
|
|
117
|
+
input: Schema.Struct<{}>;
|
|
118
|
+
output: Schema.Struct<{
|
|
119
|
+
readonly tabs: Schema.$Array<Schema.Struct<{
|
|
120
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
121
|
+
readonly url: Schema.String;
|
|
122
|
+
readonly title: Schema.String;
|
|
123
|
+
readonly loading: Schema.Boolean;
|
|
124
|
+
readonly canGoBack: Schema.Boolean;
|
|
125
|
+
readonly canGoForward: Schema.Boolean;
|
|
126
|
+
readonly generation: Schema.Int;
|
|
127
|
+
}>>;
|
|
128
|
+
readonly focusedTabID: Schema.NullOr<Schema.brand<Schema.String, "Browser.TabID">>;
|
|
129
|
+
}>;
|
|
130
|
+
action: Schema.Struct<{
|
|
131
|
+
readonly type: Schema.Literal<"tabs.list">;
|
|
132
|
+
}>;
|
|
133
|
+
}, {
|
|
134
|
+
name: "tabs.open";
|
|
135
|
+
description: string;
|
|
136
|
+
input: Schema.Struct<{
|
|
137
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
138
|
+
readonly focus: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
139
|
+
}>;
|
|
140
|
+
output: Schema.Struct<{
|
|
141
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
142
|
+
readonly url: Schema.String;
|
|
143
|
+
readonly title: Schema.String;
|
|
144
|
+
readonly loading: Schema.Boolean;
|
|
145
|
+
readonly canGoBack: Schema.Boolean;
|
|
146
|
+
readonly canGoForward: Schema.Boolean;
|
|
147
|
+
readonly generation: Schema.Int;
|
|
148
|
+
}>;
|
|
149
|
+
action: Schema.Struct<{
|
|
150
|
+
readonly type: Schema.Literal<"tabs.open">;
|
|
151
|
+
} & {
|
|
152
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
153
|
+
readonly focus: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
154
|
+
}>;
|
|
155
|
+
}, {
|
|
156
|
+
name: "tabs.focus";
|
|
157
|
+
description: string;
|
|
158
|
+
input: Schema.Struct<{
|
|
159
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
160
|
+
}>;
|
|
161
|
+
output: Schema.Struct<{
|
|
162
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
163
|
+
readonly url: Schema.String;
|
|
164
|
+
readonly title: Schema.String;
|
|
165
|
+
readonly loading: Schema.Boolean;
|
|
166
|
+
readonly canGoBack: Schema.Boolean;
|
|
167
|
+
readonly canGoForward: Schema.Boolean;
|
|
168
|
+
readonly generation: Schema.Int;
|
|
169
|
+
}>;
|
|
170
|
+
action: Schema.Struct<{
|
|
171
|
+
readonly type: Schema.Literal<"tabs.focus">;
|
|
172
|
+
} & {
|
|
173
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
174
|
+
}>;
|
|
175
|
+
}, {
|
|
176
|
+
name: "tabs.close";
|
|
177
|
+
description: string;
|
|
178
|
+
input: Schema.Struct<{
|
|
179
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
180
|
+
}>;
|
|
181
|
+
output: Schema.Struct<{
|
|
182
|
+
readonly tabs: Schema.$Array<Schema.Struct<{
|
|
183
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
184
|
+
readonly url: Schema.String;
|
|
185
|
+
readonly title: Schema.String;
|
|
186
|
+
readonly loading: Schema.Boolean;
|
|
187
|
+
readonly canGoBack: Schema.Boolean;
|
|
188
|
+
readonly canGoForward: Schema.Boolean;
|
|
189
|
+
readonly generation: Schema.Int;
|
|
190
|
+
}>>;
|
|
191
|
+
readonly focusedTabID: Schema.NullOr<Schema.brand<Schema.String, "Browser.TabID">>;
|
|
192
|
+
}>;
|
|
193
|
+
action: Schema.Struct<{
|
|
194
|
+
readonly type: Schema.Literal<"tabs.close">;
|
|
195
|
+
} & {
|
|
196
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
197
|
+
}>;
|
|
198
|
+
}, {
|
|
199
|
+
name: "navigate";
|
|
200
|
+
description: string;
|
|
201
|
+
input: Schema.Struct<{
|
|
202
|
+
readonly url: Schema.String;
|
|
203
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
204
|
+
}>;
|
|
205
|
+
output: Schema.Struct<{
|
|
206
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
207
|
+
readonly url: Schema.String;
|
|
208
|
+
readonly title: Schema.String;
|
|
209
|
+
readonly loading: Schema.Boolean;
|
|
210
|
+
readonly canGoBack: Schema.Boolean;
|
|
211
|
+
readonly canGoForward: Schema.Boolean;
|
|
212
|
+
readonly generation: Schema.Int;
|
|
213
|
+
}>;
|
|
214
|
+
action: Schema.Struct<{
|
|
215
|
+
readonly type: Schema.Literal<"navigate">;
|
|
216
|
+
} & {
|
|
217
|
+
readonly url: Schema.String;
|
|
218
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
219
|
+
}>;
|
|
220
|
+
}, {
|
|
221
|
+
name: "back";
|
|
222
|
+
description: string;
|
|
223
|
+
input: Schema.Struct<{
|
|
224
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
225
|
+
}>;
|
|
226
|
+
output: Schema.Struct<{
|
|
227
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
228
|
+
readonly url: Schema.String;
|
|
229
|
+
readonly title: Schema.String;
|
|
230
|
+
readonly loading: Schema.Boolean;
|
|
231
|
+
readonly canGoBack: Schema.Boolean;
|
|
232
|
+
readonly canGoForward: Schema.Boolean;
|
|
233
|
+
readonly generation: Schema.Int;
|
|
234
|
+
}>;
|
|
235
|
+
action: Schema.Struct<{
|
|
236
|
+
readonly type: Schema.Literal<"back">;
|
|
237
|
+
} & {
|
|
238
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
239
|
+
}>;
|
|
240
|
+
}, {
|
|
241
|
+
name: "forward";
|
|
242
|
+
description: string;
|
|
243
|
+
input: Schema.Struct<{
|
|
244
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
245
|
+
}>;
|
|
246
|
+
output: Schema.Struct<{
|
|
247
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
248
|
+
readonly url: Schema.String;
|
|
249
|
+
readonly title: Schema.String;
|
|
250
|
+
readonly loading: Schema.Boolean;
|
|
251
|
+
readonly canGoBack: Schema.Boolean;
|
|
252
|
+
readonly canGoForward: Schema.Boolean;
|
|
253
|
+
readonly generation: Schema.Int;
|
|
254
|
+
}>;
|
|
255
|
+
action: Schema.Struct<{
|
|
256
|
+
readonly type: Schema.Literal<"forward">;
|
|
257
|
+
} & {
|
|
258
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
259
|
+
}>;
|
|
260
|
+
}, {
|
|
261
|
+
name: "reload";
|
|
262
|
+
description: string;
|
|
263
|
+
input: Schema.Struct<{
|
|
264
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
265
|
+
}>;
|
|
266
|
+
output: Schema.Struct<{
|
|
267
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
268
|
+
readonly url: Schema.String;
|
|
269
|
+
readonly title: Schema.String;
|
|
270
|
+
readonly loading: Schema.Boolean;
|
|
271
|
+
readonly canGoBack: Schema.Boolean;
|
|
272
|
+
readonly canGoForward: Schema.Boolean;
|
|
273
|
+
readonly generation: Schema.Int;
|
|
274
|
+
}>;
|
|
275
|
+
action: Schema.Struct<{
|
|
276
|
+
readonly type: Schema.Literal<"reload">;
|
|
277
|
+
} & {
|
|
278
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
279
|
+
}>;
|
|
280
|
+
}, {
|
|
281
|
+
name: "stop";
|
|
282
|
+
description: string;
|
|
283
|
+
input: Schema.Struct<{
|
|
284
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
285
|
+
}>;
|
|
286
|
+
output: Schema.Struct<{
|
|
287
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
288
|
+
readonly url: Schema.String;
|
|
289
|
+
readonly title: Schema.String;
|
|
290
|
+
readonly loading: Schema.Boolean;
|
|
291
|
+
readonly canGoBack: Schema.Boolean;
|
|
292
|
+
readonly canGoForward: Schema.Boolean;
|
|
293
|
+
readonly generation: Schema.Int;
|
|
294
|
+
}>;
|
|
295
|
+
action: Schema.Struct<{
|
|
296
|
+
readonly type: Schema.Literal<"stop">;
|
|
297
|
+
} & {
|
|
298
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
299
|
+
}>;
|
|
300
|
+
}, {
|
|
301
|
+
name: "frames";
|
|
302
|
+
description: string;
|
|
303
|
+
input: Schema.Struct<{
|
|
304
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
305
|
+
}>;
|
|
306
|
+
output: Schema.Struct<{
|
|
307
|
+
readonly frames: Schema.$Array<Schema.Struct<{
|
|
308
|
+
readonly id: Schema.String;
|
|
309
|
+
readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
310
|
+
readonly url: Schema.String;
|
|
311
|
+
readonly name: Schema.String;
|
|
312
|
+
}>>;
|
|
313
|
+
readonly tab: Schema.Struct<{
|
|
314
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
315
|
+
readonly url: Schema.String;
|
|
316
|
+
readonly title: Schema.String;
|
|
317
|
+
readonly loading: Schema.Boolean;
|
|
318
|
+
readonly canGoBack: Schema.Boolean;
|
|
319
|
+
readonly canGoForward: Schema.Boolean;
|
|
320
|
+
readonly generation: Schema.Int;
|
|
321
|
+
}>;
|
|
322
|
+
}>;
|
|
323
|
+
action: Schema.Struct<{
|
|
324
|
+
readonly type: Schema.Literal<"frames">;
|
|
325
|
+
} & {
|
|
326
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
327
|
+
}>;
|
|
328
|
+
}, {
|
|
329
|
+
name: "snapshot";
|
|
330
|
+
description: string;
|
|
331
|
+
input: Schema.Struct<{
|
|
332
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
333
|
+
readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
334
|
+
readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
335
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
336
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
337
|
+
}>;
|
|
338
|
+
output: Schema.Struct<{
|
|
339
|
+
readonly content: Schema.String;
|
|
340
|
+
readonly truncated: Schema.Boolean;
|
|
341
|
+
readonly tab: Schema.Struct<{
|
|
342
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
343
|
+
readonly url: Schema.String;
|
|
344
|
+
readonly title: Schema.String;
|
|
345
|
+
readonly loading: Schema.Boolean;
|
|
346
|
+
readonly canGoBack: Schema.Boolean;
|
|
347
|
+
readonly canGoForward: Schema.Boolean;
|
|
348
|
+
readonly generation: Schema.Int;
|
|
349
|
+
}>;
|
|
350
|
+
}>;
|
|
351
|
+
action: Schema.Struct<{
|
|
352
|
+
readonly type: Schema.Literal<"snapshot">;
|
|
353
|
+
} & {
|
|
354
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
355
|
+
readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
356
|
+
readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
357
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
358
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
359
|
+
}>;
|
|
360
|
+
}, {
|
|
361
|
+
name: "find";
|
|
362
|
+
description: string;
|
|
363
|
+
input: Schema.Struct<{
|
|
364
|
+
readonly text: Schema.String;
|
|
365
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
366
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
367
|
+
}>;
|
|
368
|
+
output: Schema.Struct<{
|
|
369
|
+
readonly content: Schema.String;
|
|
370
|
+
readonly truncated: Schema.Boolean;
|
|
371
|
+
readonly tab: Schema.Struct<{
|
|
372
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
373
|
+
readonly url: Schema.String;
|
|
374
|
+
readonly title: Schema.String;
|
|
375
|
+
readonly loading: Schema.Boolean;
|
|
376
|
+
readonly canGoBack: Schema.Boolean;
|
|
377
|
+
readonly canGoForward: Schema.Boolean;
|
|
378
|
+
readonly generation: Schema.Int;
|
|
379
|
+
}>;
|
|
380
|
+
}>;
|
|
381
|
+
action: Schema.Struct<{
|
|
382
|
+
readonly type: Schema.Literal<"find">;
|
|
383
|
+
} & {
|
|
384
|
+
readonly text: Schema.String;
|
|
385
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
386
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
387
|
+
}>;
|
|
388
|
+
}, {
|
|
389
|
+
name: "evaluate";
|
|
390
|
+
description: string;
|
|
391
|
+
input: Schema.Struct<{
|
|
392
|
+
readonly script: Schema.String;
|
|
393
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
394
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
395
|
+
}>;
|
|
396
|
+
output: Schema.Struct<{
|
|
397
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
398
|
+
readonly tab: Schema.Struct<{
|
|
399
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
400
|
+
readonly url: Schema.String;
|
|
401
|
+
readonly title: Schema.String;
|
|
402
|
+
readonly loading: Schema.Boolean;
|
|
403
|
+
readonly canGoBack: Schema.Boolean;
|
|
404
|
+
readonly canGoForward: Schema.Boolean;
|
|
405
|
+
readonly generation: Schema.Int;
|
|
406
|
+
}>;
|
|
407
|
+
}>;
|
|
408
|
+
action: Schema.Struct<{
|
|
409
|
+
readonly type: Schema.Literal<"evaluate">;
|
|
410
|
+
} & {
|
|
411
|
+
readonly script: Schema.String;
|
|
412
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
413
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
414
|
+
}>;
|
|
415
|
+
}, {
|
|
416
|
+
name: "click";
|
|
417
|
+
description: string;
|
|
418
|
+
input: Schema.Struct<{
|
|
419
|
+
readonly button: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["left", "right", "middle"]>>>, Schema.optionalKey<Schema.Literals<readonly ["left", "right", "middle"]>>, never, never>;
|
|
420
|
+
readonly count: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly [1, 2]>>>, Schema.optionalKey<Schema.Literals<readonly [1, 2]>>, never, never>;
|
|
421
|
+
readonly modifiers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>, never, never>;
|
|
422
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
423
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
424
|
+
}>;
|
|
425
|
+
output: Schema.Struct<{
|
|
426
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
427
|
+
readonly url: Schema.String;
|
|
428
|
+
readonly title: Schema.String;
|
|
429
|
+
readonly loading: Schema.Boolean;
|
|
430
|
+
readonly canGoBack: Schema.Boolean;
|
|
431
|
+
readonly canGoForward: Schema.Boolean;
|
|
432
|
+
readonly generation: Schema.Int;
|
|
433
|
+
}>;
|
|
434
|
+
action: Schema.Struct<{
|
|
435
|
+
readonly type: Schema.Literal<"click">;
|
|
436
|
+
} & {
|
|
437
|
+
readonly button: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["left", "right", "middle"]>>>, Schema.optionalKey<Schema.Literals<readonly ["left", "right", "middle"]>>, never, never>;
|
|
438
|
+
readonly count: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly [1, 2]>>>, Schema.optionalKey<Schema.Literals<readonly [1, 2]>>, never, never>;
|
|
439
|
+
readonly modifiers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>, never, never>;
|
|
440
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
441
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
442
|
+
}>;
|
|
443
|
+
}, {
|
|
444
|
+
name: "hover";
|
|
445
|
+
description: string;
|
|
446
|
+
input: Schema.Struct<{
|
|
447
|
+
ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
448
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
449
|
+
}>;
|
|
450
|
+
output: Schema.Struct<{
|
|
451
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
452
|
+
readonly url: Schema.String;
|
|
453
|
+
readonly title: Schema.String;
|
|
454
|
+
readonly loading: Schema.Boolean;
|
|
455
|
+
readonly canGoBack: Schema.Boolean;
|
|
456
|
+
readonly canGoForward: Schema.Boolean;
|
|
457
|
+
readonly generation: Schema.Int;
|
|
458
|
+
}>;
|
|
459
|
+
action: Schema.Struct<{
|
|
460
|
+
readonly type: Schema.Literal<"hover">;
|
|
461
|
+
} & {
|
|
462
|
+
ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
463
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
464
|
+
}>;
|
|
465
|
+
}, {
|
|
466
|
+
name: "drag";
|
|
467
|
+
description: string;
|
|
468
|
+
input: Schema.Struct<{
|
|
469
|
+
readonly from: Schema.brand<Schema.String, "Browser.Ref">;
|
|
470
|
+
readonly to: Schema.brand<Schema.String, "Browser.Ref">;
|
|
471
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
472
|
+
}>;
|
|
473
|
+
output: Schema.Struct<{
|
|
474
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
475
|
+
readonly url: Schema.String;
|
|
476
|
+
readonly title: Schema.String;
|
|
477
|
+
readonly loading: Schema.Boolean;
|
|
478
|
+
readonly canGoBack: Schema.Boolean;
|
|
479
|
+
readonly canGoForward: Schema.Boolean;
|
|
480
|
+
readonly generation: Schema.Int;
|
|
481
|
+
}>;
|
|
482
|
+
action: Schema.Struct<{
|
|
483
|
+
readonly type: Schema.Literal<"drag">;
|
|
484
|
+
} & {
|
|
485
|
+
readonly from: Schema.brand<Schema.String, "Browser.Ref">;
|
|
486
|
+
readonly to: Schema.brand<Schema.String, "Browser.Ref">;
|
|
487
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
488
|
+
}>;
|
|
489
|
+
}, {
|
|
490
|
+
name: "fill";
|
|
491
|
+
description: string;
|
|
492
|
+
input: Schema.Struct<{
|
|
493
|
+
readonly text: Schema.String;
|
|
494
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
495
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
496
|
+
}>;
|
|
497
|
+
output: Schema.Struct<{
|
|
498
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
499
|
+
readonly url: Schema.String;
|
|
500
|
+
readonly title: Schema.String;
|
|
501
|
+
readonly loading: Schema.Boolean;
|
|
502
|
+
readonly canGoBack: Schema.Boolean;
|
|
503
|
+
readonly canGoForward: Schema.Boolean;
|
|
504
|
+
readonly generation: Schema.Int;
|
|
505
|
+
}>;
|
|
506
|
+
action: Schema.Struct<{
|
|
507
|
+
readonly type: Schema.Literal<"fill">;
|
|
508
|
+
} & {
|
|
509
|
+
readonly text: Schema.String;
|
|
510
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
511
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
512
|
+
}>;
|
|
513
|
+
}, {
|
|
514
|
+
name: "fill_form";
|
|
515
|
+
description: string;
|
|
516
|
+
input: Schema.Struct<{
|
|
517
|
+
readonly fields: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
518
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
519
|
+
readonly type: Schema.Literal<"text">;
|
|
520
|
+
readonly value: Schema.String;
|
|
521
|
+
}>, Schema.Struct<{
|
|
522
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
523
|
+
readonly type: Schema.Literal<"select">;
|
|
524
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
525
|
+
}>, Schema.Struct<{
|
|
526
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
527
|
+
readonly type: Schema.Literal<"check">;
|
|
528
|
+
readonly checked: Schema.Boolean;
|
|
529
|
+
}>]>>;
|
|
530
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
531
|
+
}>;
|
|
532
|
+
output: Schema.Struct<{
|
|
533
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
534
|
+
readonly url: Schema.String;
|
|
535
|
+
readonly title: Schema.String;
|
|
536
|
+
readonly loading: Schema.Boolean;
|
|
537
|
+
readonly canGoBack: Schema.Boolean;
|
|
538
|
+
readonly canGoForward: Schema.Boolean;
|
|
539
|
+
readonly generation: Schema.Int;
|
|
540
|
+
}>;
|
|
541
|
+
action: Schema.Struct<{
|
|
542
|
+
readonly type: Schema.Literal<"fill_form">;
|
|
543
|
+
} & {
|
|
544
|
+
readonly fields: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
545
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
546
|
+
readonly type: Schema.Literal<"text">;
|
|
547
|
+
readonly value: Schema.String;
|
|
548
|
+
}>, Schema.Struct<{
|
|
549
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
550
|
+
readonly type: Schema.Literal<"select">;
|
|
551
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
552
|
+
}>, Schema.Struct<{
|
|
553
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
554
|
+
readonly type: Schema.Literal<"check">;
|
|
555
|
+
readonly checked: Schema.Boolean;
|
|
556
|
+
}>]>>;
|
|
557
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
558
|
+
}>;
|
|
559
|
+
}, {
|
|
560
|
+
name: "select";
|
|
561
|
+
description: string;
|
|
562
|
+
input: Schema.Struct<{
|
|
563
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
564
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
565
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
566
|
+
}>;
|
|
567
|
+
output: Schema.Struct<{
|
|
568
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
569
|
+
readonly url: Schema.String;
|
|
570
|
+
readonly title: Schema.String;
|
|
571
|
+
readonly loading: Schema.Boolean;
|
|
572
|
+
readonly canGoBack: Schema.Boolean;
|
|
573
|
+
readonly canGoForward: Schema.Boolean;
|
|
574
|
+
readonly generation: Schema.Int;
|
|
575
|
+
}>;
|
|
576
|
+
action: Schema.Struct<{
|
|
577
|
+
readonly type: Schema.Literal<"select">;
|
|
578
|
+
} & {
|
|
579
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
580
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
581
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
582
|
+
}>;
|
|
583
|
+
}, {
|
|
584
|
+
name: "check";
|
|
585
|
+
description: string;
|
|
586
|
+
input: Schema.Struct<{
|
|
587
|
+
readonly checked: Schema.Boolean;
|
|
588
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
589
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
590
|
+
}>;
|
|
591
|
+
output: Schema.Struct<{
|
|
592
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
593
|
+
readonly url: Schema.String;
|
|
594
|
+
readonly title: Schema.String;
|
|
595
|
+
readonly loading: Schema.Boolean;
|
|
596
|
+
readonly canGoBack: Schema.Boolean;
|
|
597
|
+
readonly canGoForward: Schema.Boolean;
|
|
598
|
+
readonly generation: Schema.Int;
|
|
599
|
+
}>;
|
|
600
|
+
action: Schema.Struct<{
|
|
601
|
+
readonly type: Schema.Literal<"check">;
|
|
602
|
+
} & {
|
|
603
|
+
readonly checked: Schema.Boolean;
|
|
604
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
605
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
606
|
+
}>;
|
|
607
|
+
}, {
|
|
608
|
+
name: "press";
|
|
609
|
+
description: string;
|
|
610
|
+
input: Schema.Struct<{
|
|
611
|
+
readonly key: Schema.String;
|
|
612
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
613
|
+
}>;
|
|
614
|
+
output: Schema.Struct<{
|
|
615
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
616
|
+
readonly url: Schema.String;
|
|
617
|
+
readonly title: Schema.String;
|
|
618
|
+
readonly loading: Schema.Boolean;
|
|
619
|
+
readonly canGoBack: Schema.Boolean;
|
|
620
|
+
readonly canGoForward: Schema.Boolean;
|
|
621
|
+
readonly generation: Schema.Int;
|
|
622
|
+
}>;
|
|
623
|
+
action: Schema.Struct<{
|
|
624
|
+
readonly type: Schema.Literal<"press">;
|
|
625
|
+
} & {
|
|
626
|
+
readonly key: Schema.String;
|
|
627
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
628
|
+
}>;
|
|
629
|
+
}, {
|
|
630
|
+
name: "scroll";
|
|
631
|
+
description: string;
|
|
632
|
+
input: Schema.Struct<{
|
|
633
|
+
readonly deltaX: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
634
|
+
readonly deltaY: Schema.Int;
|
|
635
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
636
|
+
}>;
|
|
637
|
+
output: Schema.Struct<{
|
|
638
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
639
|
+
readonly url: Schema.String;
|
|
640
|
+
readonly title: Schema.String;
|
|
641
|
+
readonly loading: Schema.Boolean;
|
|
642
|
+
readonly canGoBack: Schema.Boolean;
|
|
643
|
+
readonly canGoForward: Schema.Boolean;
|
|
644
|
+
readonly generation: Schema.Int;
|
|
645
|
+
}>;
|
|
646
|
+
action: Schema.Struct<{
|
|
647
|
+
readonly type: Schema.Literal<"scroll">;
|
|
648
|
+
} & {
|
|
649
|
+
readonly deltaX: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
650
|
+
readonly deltaY: Schema.Int;
|
|
651
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
652
|
+
}>;
|
|
653
|
+
}, {
|
|
654
|
+
name: "wait";
|
|
655
|
+
description: string;
|
|
656
|
+
input: Schema.Struct<{
|
|
657
|
+
readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
|
|
658
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
659
|
+
readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
660
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
661
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
662
|
+
}>;
|
|
663
|
+
output: Schema.Struct<{
|
|
664
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
665
|
+
readonly url: Schema.String;
|
|
666
|
+
readonly title: Schema.String;
|
|
667
|
+
readonly loading: Schema.Boolean;
|
|
668
|
+
readonly canGoBack: Schema.Boolean;
|
|
669
|
+
readonly canGoForward: Schema.Boolean;
|
|
670
|
+
readonly generation: Schema.Int;
|
|
671
|
+
}>;
|
|
672
|
+
action: Schema.Struct<{
|
|
673
|
+
readonly type: Schema.Literal<"wait">;
|
|
674
|
+
} & {
|
|
675
|
+
readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
|
|
676
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
677
|
+
readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
678
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
679
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
680
|
+
}>;
|
|
681
|
+
}, {
|
|
682
|
+
name: "screenshot";
|
|
683
|
+
description: string;
|
|
684
|
+
input: Schema.Struct<{
|
|
685
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
686
|
+
readonly fullPage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
687
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["png", "jpeg", "webp"]>>>, Schema.optionalKey<Schema.Literals<readonly ["png", "jpeg", "webp"]>>, never, never>;
|
|
688
|
+
readonly quality: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
689
|
+
readonly maxWidth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
690
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
691
|
+
}>;
|
|
692
|
+
output: Schema.Struct<{
|
|
693
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
694
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
695
|
+
readonly name: Schema.String;
|
|
696
|
+
readonly mime: Schema.String;
|
|
697
|
+
readonly bytes: Schema.Int;
|
|
698
|
+
readonly path: Schema.String;
|
|
699
|
+
}>>;
|
|
700
|
+
readonly tab: Schema.Struct<{
|
|
701
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
702
|
+
readonly url: Schema.String;
|
|
703
|
+
readonly title: Schema.String;
|
|
704
|
+
readonly loading: Schema.Boolean;
|
|
705
|
+
readonly canGoBack: Schema.Boolean;
|
|
706
|
+
readonly canGoForward: Schema.Boolean;
|
|
707
|
+
readonly generation: Schema.Int;
|
|
708
|
+
}>;
|
|
709
|
+
}>;
|
|
710
|
+
action: Schema.Struct<{
|
|
711
|
+
readonly type: Schema.Literal<"screenshot">;
|
|
712
|
+
} & {
|
|
713
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
714
|
+
readonly fullPage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
715
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["png", "jpeg", "webp"]>>>, Schema.optionalKey<Schema.Literals<readonly ["png", "jpeg", "webp"]>>, never, never>;
|
|
716
|
+
readonly quality: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
717
|
+
readonly maxWidth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
718
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
719
|
+
}>;
|
|
720
|
+
}, {
|
|
721
|
+
name: "dialog";
|
|
722
|
+
description: string;
|
|
723
|
+
input: Schema.Struct<{
|
|
724
|
+
readonly action: Schema.Literals<readonly ["get", "accept", "dismiss"]>;
|
|
725
|
+
readonly promptText: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
726
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
727
|
+
}>;
|
|
728
|
+
output: Schema.Struct<{
|
|
729
|
+
readonly dialog: Schema.NullOr<Schema.Struct<{
|
|
730
|
+
readonly type: Schema.String;
|
|
731
|
+
readonly message: Schema.String;
|
|
732
|
+
readonly defaultValue: Schema.String;
|
|
733
|
+
}>>;
|
|
734
|
+
readonly tab: Schema.Struct<{
|
|
735
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
736
|
+
readonly url: Schema.String;
|
|
737
|
+
readonly title: Schema.String;
|
|
738
|
+
readonly loading: Schema.Boolean;
|
|
739
|
+
readonly canGoBack: Schema.Boolean;
|
|
740
|
+
readonly canGoForward: Schema.Boolean;
|
|
741
|
+
readonly generation: Schema.Int;
|
|
742
|
+
}>;
|
|
743
|
+
}>;
|
|
744
|
+
action: Schema.Struct<{
|
|
745
|
+
readonly type: Schema.Literal<"dialog">;
|
|
746
|
+
} & {
|
|
747
|
+
readonly action: Schema.Literals<readonly ["get", "accept", "dismiss"]>;
|
|
748
|
+
readonly promptText: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
749
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
750
|
+
}>;
|
|
751
|
+
}, {
|
|
752
|
+
name: "files.upload";
|
|
753
|
+
description: string;
|
|
754
|
+
input: Schema.Struct<{
|
|
755
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
756
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
757
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
758
|
+
}>;
|
|
759
|
+
output: Schema.Struct<{
|
|
760
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
761
|
+
readonly url: Schema.String;
|
|
762
|
+
readonly title: Schema.String;
|
|
763
|
+
readonly loading: Schema.Boolean;
|
|
764
|
+
readonly canGoBack: Schema.Boolean;
|
|
765
|
+
readonly canGoForward: Schema.Boolean;
|
|
766
|
+
readonly generation: Schema.Int;
|
|
767
|
+
}>;
|
|
768
|
+
action: Schema.Struct<{
|
|
769
|
+
readonly type: Schema.Literal<"files.upload">;
|
|
770
|
+
} & {
|
|
771
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
772
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
773
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
774
|
+
}>;
|
|
775
|
+
}, {
|
|
776
|
+
name: "files.drop";
|
|
777
|
+
description: string;
|
|
778
|
+
input: Schema.Struct<{
|
|
779
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
780
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
781
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
782
|
+
}>;
|
|
783
|
+
output: Schema.Struct<{
|
|
784
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
785
|
+
readonly url: Schema.String;
|
|
786
|
+
readonly title: Schema.String;
|
|
787
|
+
readonly loading: Schema.Boolean;
|
|
788
|
+
readonly canGoBack: Schema.Boolean;
|
|
789
|
+
readonly canGoForward: Schema.Boolean;
|
|
790
|
+
readonly generation: Schema.Int;
|
|
791
|
+
}>;
|
|
792
|
+
action: Schema.Struct<{
|
|
793
|
+
readonly type: Schema.Literal<"files.drop">;
|
|
794
|
+
} & {
|
|
795
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
796
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
797
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
798
|
+
}>;
|
|
799
|
+
}, {
|
|
800
|
+
name: "files.list";
|
|
801
|
+
description: string;
|
|
802
|
+
input: Schema.Struct<{
|
|
803
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
804
|
+
}>;
|
|
805
|
+
output: Schema.Struct<{
|
|
806
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
807
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
808
|
+
readonly name: Schema.String;
|
|
809
|
+
readonly mime: Schema.String;
|
|
810
|
+
readonly bytes: Schema.Int;
|
|
811
|
+
readonly state: Schema.Literals<readonly ["pending", "completed", "failed"]>;
|
|
812
|
+
}>>;
|
|
813
|
+
readonly tab: Schema.Struct<{
|
|
814
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
815
|
+
readonly url: Schema.String;
|
|
816
|
+
readonly title: Schema.String;
|
|
817
|
+
readonly loading: Schema.Boolean;
|
|
818
|
+
readonly canGoBack: Schema.Boolean;
|
|
819
|
+
readonly canGoForward: Schema.Boolean;
|
|
820
|
+
readonly generation: Schema.Int;
|
|
821
|
+
}>;
|
|
822
|
+
}>;
|
|
823
|
+
action: Schema.Struct<{
|
|
824
|
+
readonly type: Schema.Literal<"files.list">;
|
|
825
|
+
} & {
|
|
826
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
827
|
+
}>;
|
|
828
|
+
}, {
|
|
829
|
+
name: "files.get";
|
|
830
|
+
description: string;
|
|
831
|
+
input: Schema.Struct<{
|
|
832
|
+
fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
833
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
834
|
+
}>;
|
|
835
|
+
output: Schema.Struct<{
|
|
836
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
837
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
838
|
+
readonly name: Schema.String;
|
|
839
|
+
readonly mime: Schema.String;
|
|
840
|
+
readonly bytes: Schema.Int;
|
|
841
|
+
readonly path: Schema.String;
|
|
842
|
+
}>>;
|
|
843
|
+
readonly tab: Schema.Struct<{
|
|
844
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
845
|
+
readonly url: Schema.String;
|
|
846
|
+
readonly title: Schema.String;
|
|
847
|
+
readonly loading: Schema.Boolean;
|
|
848
|
+
readonly canGoBack: Schema.Boolean;
|
|
849
|
+
readonly canGoForward: Schema.Boolean;
|
|
850
|
+
readonly generation: Schema.Int;
|
|
851
|
+
}>;
|
|
852
|
+
}>;
|
|
853
|
+
action: Schema.Struct<{
|
|
854
|
+
readonly type: Schema.Literal<"files.get">;
|
|
855
|
+
} & {
|
|
856
|
+
fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
857
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
858
|
+
}>;
|
|
859
|
+
}, {
|
|
860
|
+
name: "console";
|
|
861
|
+
description: string;
|
|
862
|
+
input: Schema.Struct<{
|
|
863
|
+
readonly level: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>>, Schema.optionalKey<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>, never, never>;
|
|
864
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
865
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
866
|
+
}>;
|
|
867
|
+
output: Schema.Struct<{
|
|
868
|
+
readonly messages: Schema.$Array<Schema.Struct<{
|
|
869
|
+
readonly id: Schema.String;
|
|
870
|
+
readonly timestampMs: Schema.Finite;
|
|
871
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
872
|
+
readonly text: Schema.String;
|
|
873
|
+
readonly textTruncated: Schema.Boolean;
|
|
874
|
+
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
875
|
+
readonly url: Schema.String;
|
|
876
|
+
readonly line: Schema.Int;
|
|
877
|
+
readonly column: Schema.Int;
|
|
878
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
879
|
+
readonly url: Schema.String;
|
|
880
|
+
readonly line: Schema.Int;
|
|
881
|
+
readonly column: Schema.Int;
|
|
882
|
+
}>>, never, never>;
|
|
883
|
+
}>>;
|
|
884
|
+
readonly truncated: Schema.Boolean;
|
|
885
|
+
readonly dropped: Schema.Int;
|
|
886
|
+
readonly tab: Schema.Struct<{
|
|
887
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
888
|
+
readonly url: Schema.String;
|
|
889
|
+
readonly title: Schema.String;
|
|
890
|
+
readonly loading: Schema.Boolean;
|
|
891
|
+
readonly canGoBack: Schema.Boolean;
|
|
892
|
+
readonly canGoForward: Schema.Boolean;
|
|
893
|
+
readonly generation: Schema.Int;
|
|
894
|
+
}>;
|
|
895
|
+
}>;
|
|
896
|
+
action: Schema.Struct<{
|
|
897
|
+
readonly type: Schema.Literal<"console">;
|
|
898
|
+
} & {
|
|
899
|
+
readonly level: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>>, Schema.optionalKey<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>, never, never>;
|
|
900
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
901
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
902
|
+
}>;
|
|
903
|
+
}, {
|
|
904
|
+
name: "network.list";
|
|
905
|
+
description: string;
|
|
906
|
+
input: Schema.Struct<{
|
|
907
|
+
readonly urlContains: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
908
|
+
readonly resourceType: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>>, Schema.optionalKey<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>, never, never>;
|
|
909
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
910
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
911
|
+
}>;
|
|
912
|
+
output: Schema.Struct<{
|
|
913
|
+
readonly requests: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
914
|
+
readonly state: Schema.Literal<"pending">;
|
|
915
|
+
readonly id: Schema.String;
|
|
916
|
+
readonly url: Schema.String;
|
|
917
|
+
readonly method: Schema.String;
|
|
918
|
+
readonly resourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
919
|
+
readonly timestampMs: Schema.Finite;
|
|
920
|
+
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
921
|
+
}>, Schema.Struct<{
|
|
922
|
+
readonly state: Schema.Literal<"completed">;
|
|
923
|
+
readonly durationMs: Schema.Finite;
|
|
924
|
+
readonly id: Schema.String;
|
|
925
|
+
readonly url: Schema.String;
|
|
926
|
+
readonly method: Schema.String;
|
|
927
|
+
readonly resourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
928
|
+
readonly timestampMs: Schema.Finite;
|
|
929
|
+
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
930
|
+
}>, Schema.Struct<{
|
|
931
|
+
readonly state: Schema.Literal<"failed">;
|
|
932
|
+
readonly durationMs: Schema.Finite;
|
|
933
|
+
readonly failure: Schema.String;
|
|
934
|
+
readonly id: Schema.String;
|
|
935
|
+
readonly url: Schema.String;
|
|
936
|
+
readonly method: Schema.String;
|
|
937
|
+
readonly resourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
938
|
+
readonly timestampMs: Schema.Finite;
|
|
939
|
+
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
940
|
+
}>]>>;
|
|
941
|
+
readonly truncated: Schema.Boolean;
|
|
942
|
+
readonly dropped: Schema.Int;
|
|
943
|
+
readonly tab: Schema.Struct<{
|
|
944
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
945
|
+
readonly url: Schema.String;
|
|
946
|
+
readonly title: Schema.String;
|
|
947
|
+
readonly loading: Schema.Boolean;
|
|
948
|
+
readonly canGoBack: Schema.Boolean;
|
|
949
|
+
readonly canGoForward: Schema.Boolean;
|
|
950
|
+
readonly generation: Schema.Int;
|
|
951
|
+
}>;
|
|
952
|
+
}>;
|
|
953
|
+
action: Schema.Struct<{
|
|
954
|
+
readonly type: Schema.Literal<"network.list">;
|
|
955
|
+
} & {
|
|
956
|
+
readonly urlContains: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
957
|
+
readonly resourceType: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>>, Schema.optionalKey<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>, never, never>;
|
|
958
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
959
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
960
|
+
}>;
|
|
961
|
+
}, {
|
|
962
|
+
name: "network.get";
|
|
963
|
+
description: string;
|
|
964
|
+
input: Schema.Struct<{
|
|
965
|
+
readonly id: Schema.String;
|
|
966
|
+
readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
967
|
+
readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
968
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
969
|
+
}>;
|
|
970
|
+
output: Schema.Struct<{
|
|
971
|
+
readonly request: Schema.Union<readonly [Schema.Struct<{
|
|
972
|
+
readonly state: Schema.Literal<"pending">;
|
|
973
|
+
readonly id: Schema.String;
|
|
974
|
+
readonly url: Schema.String;
|
|
975
|
+
readonly method: Schema.String;
|
|
976
|
+
readonly resourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
977
|
+
readonly timestampMs: Schema.Finite;
|
|
978
|
+
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
979
|
+
}>, Schema.Struct<{
|
|
980
|
+
readonly state: Schema.Literal<"completed">;
|
|
981
|
+
readonly durationMs: Schema.Finite;
|
|
982
|
+
readonly id: Schema.String;
|
|
983
|
+
readonly url: Schema.String;
|
|
984
|
+
readonly method: Schema.String;
|
|
985
|
+
readonly resourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
986
|
+
readonly timestampMs: Schema.Finite;
|
|
987
|
+
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
988
|
+
}>, Schema.Struct<{
|
|
989
|
+
readonly state: Schema.Literal<"failed">;
|
|
990
|
+
readonly durationMs: Schema.Finite;
|
|
991
|
+
readonly failure: Schema.String;
|
|
992
|
+
readonly id: Schema.String;
|
|
993
|
+
readonly url: Schema.String;
|
|
994
|
+
readonly method: Schema.String;
|
|
995
|
+
readonly resourceType: Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>;
|
|
996
|
+
readonly timestampMs: Schema.Finite;
|
|
997
|
+
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
998
|
+
}>]>;
|
|
999
|
+
readonly requestHeaders: Schema.$Array<Schema.Struct<{
|
|
1000
|
+
readonly name: Schema.String;
|
|
1001
|
+
readonly value: Schema.String;
|
|
1002
|
+
}>>;
|
|
1003
|
+
readonly responseHeaders: Schema.$Array<Schema.Struct<{
|
|
1004
|
+
readonly name: Schema.String;
|
|
1005
|
+
readonly value: Schema.String;
|
|
1006
|
+
}>>;
|
|
1007
|
+
readonly headersTruncated: Schema.Boolean;
|
|
1008
|
+
readonly requestBody: Schema.Union<readonly [Schema.Struct<{
|
|
1009
|
+
readonly state: Schema.Literals<readonly ["notRequested", "pending", "empty"]>;
|
|
1010
|
+
}>, Schema.Struct<{
|
|
1011
|
+
readonly state: Schema.Literal<"text">;
|
|
1012
|
+
readonly text: Schema.String;
|
|
1013
|
+
readonly truncated: Schema.Boolean;
|
|
1014
|
+
}>, Schema.Struct<{
|
|
1015
|
+
readonly state: Schema.Literal<"unavailable">;
|
|
1016
|
+
readonly reason: Schema.Literals<readonly ["binary", "notCaptured", "backendUnavailable"]>;
|
|
1017
|
+
}>]>;
|
|
1018
|
+
readonly responseBody: Schema.Union<readonly [Schema.Struct<{
|
|
1019
|
+
readonly state: Schema.Literals<readonly ["notRequested", "pending", "empty"]>;
|
|
1020
|
+
}>, Schema.Struct<{
|
|
1021
|
+
readonly state: Schema.Literal<"text">;
|
|
1022
|
+
readonly text: Schema.String;
|
|
1023
|
+
readonly truncated: Schema.Boolean;
|
|
1024
|
+
}>, Schema.Struct<{
|
|
1025
|
+
readonly state: Schema.Literal<"unavailable">;
|
|
1026
|
+
readonly reason: Schema.Literals<readonly ["binary", "notCaptured", "backendUnavailable"]>;
|
|
1027
|
+
}>]>;
|
|
1028
|
+
readonly tab: Schema.Struct<{
|
|
1029
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1030
|
+
readonly url: Schema.String;
|
|
1031
|
+
readonly title: Schema.String;
|
|
1032
|
+
readonly loading: Schema.Boolean;
|
|
1033
|
+
readonly canGoBack: Schema.Boolean;
|
|
1034
|
+
readonly canGoForward: Schema.Boolean;
|
|
1035
|
+
readonly generation: Schema.Int;
|
|
1036
|
+
}>;
|
|
1037
|
+
}>;
|
|
1038
|
+
action: Schema.Struct<{
|
|
1039
|
+
readonly type: Schema.Literal<"network.get">;
|
|
1040
|
+
} & {
|
|
1041
|
+
readonly id: Schema.String;
|
|
1042
|
+
readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1043
|
+
readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1044
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1045
|
+
}>;
|
|
1046
|
+
}, {
|
|
1047
|
+
name: "trace.start";
|
|
1048
|
+
description: string;
|
|
1049
|
+
input: Schema.Struct<{
|
|
1050
|
+
readonly durationMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1051
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1052
|
+
}>;
|
|
1053
|
+
output: Schema.Struct<{
|
|
1054
|
+
readonly recording: Schema.Boolean;
|
|
1055
|
+
readonly tab: Schema.Struct<{
|
|
1056
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1057
|
+
readonly url: Schema.String;
|
|
1058
|
+
readonly title: Schema.String;
|
|
1059
|
+
readonly loading: Schema.Boolean;
|
|
1060
|
+
readonly canGoBack: Schema.Boolean;
|
|
1061
|
+
readonly canGoForward: Schema.Boolean;
|
|
1062
|
+
readonly generation: Schema.Int;
|
|
1063
|
+
}>;
|
|
1064
|
+
}>;
|
|
1065
|
+
action: Schema.Struct<{
|
|
1066
|
+
readonly type: Schema.Literal<"trace.start">;
|
|
1067
|
+
} & {
|
|
1068
|
+
readonly durationMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1069
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1070
|
+
}>;
|
|
1071
|
+
}, {
|
|
1072
|
+
name: "trace.stop";
|
|
1073
|
+
description: string;
|
|
1074
|
+
input: Schema.Struct<{
|
|
1075
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1076
|
+
}>;
|
|
1077
|
+
output: Schema.Struct<{
|
|
1078
|
+
readonly durationMs: Schema.Finite;
|
|
1079
|
+
readonly incomplete: Schema.Boolean;
|
|
1080
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1081
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1082
|
+
readonly name: Schema.String;
|
|
1083
|
+
readonly mime: Schema.String;
|
|
1084
|
+
readonly bytes: Schema.Int;
|
|
1085
|
+
readonly path: Schema.String;
|
|
1086
|
+
}>>;
|
|
1087
|
+
readonly tab: Schema.Struct<{
|
|
1088
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1089
|
+
readonly url: Schema.String;
|
|
1090
|
+
readonly title: Schema.String;
|
|
1091
|
+
readonly loading: Schema.Boolean;
|
|
1092
|
+
readonly canGoBack: Schema.Boolean;
|
|
1093
|
+
readonly canGoForward: Schema.Boolean;
|
|
1094
|
+
readonly generation: Schema.Int;
|
|
1095
|
+
}>;
|
|
1096
|
+
}>;
|
|
1097
|
+
action: Schema.Struct<{
|
|
1098
|
+
readonly type: Schema.Literal<"trace.stop">;
|
|
1099
|
+
} & {
|
|
1100
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1101
|
+
}>;
|
|
1102
|
+
}, {
|
|
1103
|
+
name: "trace.analyze";
|
|
1104
|
+
description: string;
|
|
1105
|
+
input: Schema.Struct<{
|
|
1106
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1107
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1108
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1109
|
+
}>;
|
|
1110
|
+
output: Schema.Struct<{
|
|
1111
|
+
readonly metrics: Schema.$Array<Schema.Struct<{
|
|
1112
|
+
readonly name: Schema.String;
|
|
1113
|
+
readonly value: Schema.Finite;
|
|
1114
|
+
readonly unit: Schema.String;
|
|
1115
|
+
}>>;
|
|
1116
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
1117
|
+
readonly name: Schema.String;
|
|
1118
|
+
readonly count: Schema.Int;
|
|
1119
|
+
readonly totalMs: Schema.Finite;
|
|
1120
|
+
readonly maxMs: Schema.Finite;
|
|
1121
|
+
}>>;
|
|
1122
|
+
readonly insights: Schema.$Array<Schema.String>;
|
|
1123
|
+
readonly tab: Schema.Struct<{
|
|
1124
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1125
|
+
readonly url: Schema.String;
|
|
1126
|
+
readonly title: Schema.String;
|
|
1127
|
+
readonly loading: Schema.Boolean;
|
|
1128
|
+
readonly canGoBack: Schema.Boolean;
|
|
1129
|
+
readonly canGoForward: Schema.Boolean;
|
|
1130
|
+
readonly generation: Schema.Int;
|
|
1131
|
+
}>;
|
|
1132
|
+
}>;
|
|
1133
|
+
action: Schema.Struct<{
|
|
1134
|
+
readonly type: Schema.Literal<"trace.analyze">;
|
|
1135
|
+
} & {
|
|
1136
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1137
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1138
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1139
|
+
}>;
|
|
1140
|
+
}, {
|
|
1141
|
+
name: "cpu.start";
|
|
1142
|
+
description: string;
|
|
1143
|
+
input: Schema.Struct<{
|
|
1144
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1145
|
+
}>;
|
|
1146
|
+
output: Schema.Struct<{
|
|
1147
|
+
readonly recording: Schema.Boolean;
|
|
1148
|
+
readonly tab: Schema.Struct<{
|
|
1149
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1150
|
+
readonly url: Schema.String;
|
|
1151
|
+
readonly title: Schema.String;
|
|
1152
|
+
readonly loading: Schema.Boolean;
|
|
1153
|
+
readonly canGoBack: Schema.Boolean;
|
|
1154
|
+
readonly canGoForward: Schema.Boolean;
|
|
1155
|
+
readonly generation: Schema.Int;
|
|
1156
|
+
}>;
|
|
1157
|
+
}>;
|
|
1158
|
+
action: Schema.Struct<{
|
|
1159
|
+
readonly type: Schema.Literal<"cpu.start">;
|
|
1160
|
+
} & {
|
|
1161
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1162
|
+
}>;
|
|
1163
|
+
}, {
|
|
1164
|
+
name: "cpu.stop";
|
|
1165
|
+
description: string;
|
|
1166
|
+
input: Schema.Struct<{
|
|
1167
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1168
|
+
}>;
|
|
1169
|
+
output: Schema.Struct<{
|
|
1170
|
+
readonly durationMs: Schema.Finite;
|
|
1171
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1172
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1173
|
+
readonly name: Schema.String;
|
|
1174
|
+
readonly mime: Schema.String;
|
|
1175
|
+
readonly bytes: Schema.Int;
|
|
1176
|
+
readonly path: Schema.String;
|
|
1177
|
+
}>>;
|
|
1178
|
+
readonly tab: Schema.Struct<{
|
|
1179
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1180
|
+
readonly url: Schema.String;
|
|
1181
|
+
readonly title: Schema.String;
|
|
1182
|
+
readonly loading: Schema.Boolean;
|
|
1183
|
+
readonly canGoBack: Schema.Boolean;
|
|
1184
|
+
readonly canGoForward: Schema.Boolean;
|
|
1185
|
+
readonly generation: Schema.Int;
|
|
1186
|
+
}>;
|
|
1187
|
+
}>;
|
|
1188
|
+
action: Schema.Struct<{
|
|
1189
|
+
readonly type: Schema.Literal<"cpu.stop">;
|
|
1190
|
+
} & {
|
|
1191
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1192
|
+
}>;
|
|
1193
|
+
}, {
|
|
1194
|
+
name: "cpu.analyze";
|
|
1195
|
+
description: string;
|
|
1196
|
+
input: Schema.Struct<{
|
|
1197
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1198
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1199
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1200
|
+
}>;
|
|
1201
|
+
output: Schema.Struct<{
|
|
1202
|
+
readonly durationMs: Schema.Finite;
|
|
1203
|
+
readonly functions: Schema.$Array<Schema.Struct<{
|
|
1204
|
+
readonly name: Schema.String;
|
|
1205
|
+
readonly url: Schema.String;
|
|
1206
|
+
readonly line: Schema.Int;
|
|
1207
|
+
readonly selfMs: Schema.Finite;
|
|
1208
|
+
}>>;
|
|
1209
|
+
readonly tab: Schema.Struct<{
|
|
1210
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1211
|
+
readonly url: Schema.String;
|
|
1212
|
+
readonly title: Schema.String;
|
|
1213
|
+
readonly loading: Schema.Boolean;
|
|
1214
|
+
readonly canGoBack: Schema.Boolean;
|
|
1215
|
+
readonly canGoForward: Schema.Boolean;
|
|
1216
|
+
readonly generation: Schema.Int;
|
|
1217
|
+
}>;
|
|
1218
|
+
}>;
|
|
1219
|
+
action: Schema.Struct<{
|
|
1220
|
+
readonly type: Schema.Literal<"cpu.analyze">;
|
|
1221
|
+
} & {
|
|
1222
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1223
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1224
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1225
|
+
}>;
|
|
1226
|
+
}, {
|
|
1227
|
+
name: "heap.snapshot";
|
|
1228
|
+
description: string;
|
|
1229
|
+
input: Schema.Struct<{
|
|
1230
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1231
|
+
}>;
|
|
1232
|
+
output: Schema.Struct<{
|
|
1233
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1234
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1235
|
+
readonly name: Schema.String;
|
|
1236
|
+
readonly mime: Schema.String;
|
|
1237
|
+
readonly bytes: Schema.Int;
|
|
1238
|
+
readonly path: Schema.String;
|
|
1239
|
+
}>>;
|
|
1240
|
+
readonly tab: Schema.Struct<{
|
|
1241
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1242
|
+
readonly url: Schema.String;
|
|
1243
|
+
readonly title: Schema.String;
|
|
1244
|
+
readonly loading: Schema.Boolean;
|
|
1245
|
+
readonly canGoBack: Schema.Boolean;
|
|
1246
|
+
readonly canGoForward: Schema.Boolean;
|
|
1247
|
+
readonly generation: Schema.Int;
|
|
1248
|
+
}>;
|
|
1249
|
+
}>;
|
|
1250
|
+
action: Schema.Struct<{
|
|
1251
|
+
readonly type: Schema.Literal<"heap.snapshot">;
|
|
1252
|
+
} & {
|
|
1253
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1254
|
+
}>;
|
|
1255
|
+
}, {
|
|
1256
|
+
name: "heap.summary";
|
|
1257
|
+
description: string;
|
|
1258
|
+
input: Schema.Struct<{
|
|
1259
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1260
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1261
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1262
|
+
}>;
|
|
1263
|
+
output: Schema.Struct<{
|
|
1264
|
+
readonly nodes: Schema.Int;
|
|
1265
|
+
readonly edges: Schema.Int;
|
|
1266
|
+
readonly selfBytes: Schema.Finite;
|
|
1267
|
+
readonly classes: Schema.$Array<Schema.Struct<{
|
|
1268
|
+
readonly name: Schema.String;
|
|
1269
|
+
readonly count: Schema.Int;
|
|
1270
|
+
readonly bytes: Schema.Finite;
|
|
1271
|
+
}>>;
|
|
1272
|
+
readonly tab: Schema.Struct<{
|
|
1273
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1274
|
+
readonly url: Schema.String;
|
|
1275
|
+
readonly title: Schema.String;
|
|
1276
|
+
readonly loading: Schema.Boolean;
|
|
1277
|
+
readonly canGoBack: Schema.Boolean;
|
|
1278
|
+
readonly canGoForward: Schema.Boolean;
|
|
1279
|
+
readonly generation: Schema.Int;
|
|
1280
|
+
}>;
|
|
1281
|
+
}>;
|
|
1282
|
+
action: Schema.Struct<{
|
|
1283
|
+
readonly type: Schema.Literal<"heap.summary">;
|
|
1284
|
+
} & {
|
|
1285
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1286
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1287
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1288
|
+
}>;
|
|
1289
|
+
}, {
|
|
1290
|
+
name: "heap.query";
|
|
1291
|
+
description: string;
|
|
1292
|
+
input: Schema.Struct<{
|
|
1293
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1294
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1295
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1296
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1297
|
+
}>;
|
|
1298
|
+
output: Schema.Struct<{
|
|
1299
|
+
readonly nodes: Schema.$Array<Schema.Struct<{
|
|
1300
|
+
readonly id: Schema.Finite;
|
|
1301
|
+
readonly name: Schema.String;
|
|
1302
|
+
readonly type: Schema.String;
|
|
1303
|
+
readonly selfBytes: Schema.Int;
|
|
1304
|
+
readonly edgeCount: Schema.Int;
|
|
1305
|
+
}>>;
|
|
1306
|
+
readonly truncated: Schema.Boolean;
|
|
1307
|
+
readonly tab: Schema.Struct<{
|
|
1308
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1309
|
+
readonly url: Schema.String;
|
|
1310
|
+
readonly title: Schema.String;
|
|
1311
|
+
readonly loading: Schema.Boolean;
|
|
1312
|
+
readonly canGoBack: Schema.Boolean;
|
|
1313
|
+
readonly canGoForward: Schema.Boolean;
|
|
1314
|
+
readonly generation: Schema.Int;
|
|
1315
|
+
}>;
|
|
1316
|
+
}>;
|
|
1317
|
+
action: Schema.Struct<{
|
|
1318
|
+
readonly type: Schema.Literal<"heap.query">;
|
|
1319
|
+
} & {
|
|
1320
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1321
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1322
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1323
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1324
|
+
}>;
|
|
1325
|
+
}, {
|
|
1326
|
+
name: "heap.object";
|
|
1327
|
+
description: string;
|
|
1328
|
+
input: Schema.Struct<{
|
|
1329
|
+
readonly id: Schema.Finite;
|
|
1330
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1331
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1332
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1333
|
+
}>;
|
|
1334
|
+
output: Schema.Struct<{
|
|
1335
|
+
readonly node: Schema.Struct<{
|
|
1336
|
+
readonly id: Schema.Finite;
|
|
1337
|
+
readonly name: Schema.String;
|
|
1338
|
+
readonly type: Schema.String;
|
|
1339
|
+
readonly selfBytes: Schema.Int;
|
|
1340
|
+
readonly edgeCount: Schema.Int;
|
|
1341
|
+
}>;
|
|
1342
|
+
readonly references: Schema.$Array<Schema.Struct<{
|
|
1343
|
+
readonly name: Schema.String;
|
|
1344
|
+
readonly node: Schema.Struct<{
|
|
1345
|
+
readonly id: Schema.Finite;
|
|
1346
|
+
readonly name: Schema.String;
|
|
1347
|
+
readonly type: Schema.String;
|
|
1348
|
+
readonly selfBytes: Schema.Int;
|
|
1349
|
+
readonly edgeCount: Schema.Int;
|
|
1350
|
+
}>;
|
|
1351
|
+
}>>;
|
|
1352
|
+
readonly retainers: Schema.$Array<Schema.Struct<{
|
|
1353
|
+
readonly name: Schema.String;
|
|
1354
|
+
readonly node: Schema.Struct<{
|
|
1355
|
+
readonly id: Schema.Finite;
|
|
1356
|
+
readonly name: Schema.String;
|
|
1357
|
+
readonly type: Schema.String;
|
|
1358
|
+
readonly selfBytes: Schema.Int;
|
|
1359
|
+
readonly edgeCount: Schema.Int;
|
|
1360
|
+
}>;
|
|
1361
|
+
}>>;
|
|
1362
|
+
readonly truncated: Schema.Boolean;
|
|
1363
|
+
readonly tab: Schema.Struct<{
|
|
1364
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1365
|
+
readonly url: Schema.String;
|
|
1366
|
+
readonly title: Schema.String;
|
|
1367
|
+
readonly loading: Schema.Boolean;
|
|
1368
|
+
readonly canGoBack: Schema.Boolean;
|
|
1369
|
+
readonly canGoForward: Schema.Boolean;
|
|
1370
|
+
readonly generation: Schema.Int;
|
|
1371
|
+
}>;
|
|
1372
|
+
}>;
|
|
1373
|
+
action: Schema.Struct<{
|
|
1374
|
+
readonly type: Schema.Literal<"heap.object">;
|
|
1375
|
+
} & {
|
|
1376
|
+
readonly id: Schema.Finite;
|
|
1377
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1378
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1379
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1380
|
+
}>;
|
|
1381
|
+
}, {
|
|
1382
|
+
name: "heap.compare";
|
|
1383
|
+
description: string;
|
|
1384
|
+
input: Schema.Struct<{
|
|
1385
|
+
readonly before: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1386
|
+
readonly after: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1387
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1388
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1389
|
+
}>;
|
|
1390
|
+
output: Schema.Struct<{
|
|
1391
|
+
readonly classes: Schema.$Array<Schema.Struct<{
|
|
1392
|
+
readonly name: Schema.String;
|
|
1393
|
+
readonly countDelta: Schema.Int;
|
|
1394
|
+
readonly bytesDelta: Schema.Finite;
|
|
1395
|
+
}>>;
|
|
1396
|
+
readonly tab: Schema.Struct<{
|
|
1397
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1398
|
+
readonly url: Schema.String;
|
|
1399
|
+
readonly title: Schema.String;
|
|
1400
|
+
readonly loading: Schema.Boolean;
|
|
1401
|
+
readonly canGoBack: Schema.Boolean;
|
|
1402
|
+
readonly canGoForward: Schema.Boolean;
|
|
1403
|
+
readonly generation: Schema.Int;
|
|
1404
|
+
}>;
|
|
1405
|
+
}>;
|
|
1406
|
+
action: Schema.Struct<{
|
|
1407
|
+
readonly type: Schema.Literal<"heap.compare">;
|
|
1408
|
+
} & {
|
|
1409
|
+
readonly before: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1410
|
+
readonly after: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1411
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1412
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1413
|
+
}>;
|
|
1414
|
+
}, {
|
|
1415
|
+
name: "lighthouse";
|
|
1416
|
+
description: string;
|
|
1417
|
+
input: Schema.Struct<{
|
|
1418
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1419
|
+
}>;
|
|
1420
|
+
output: Schema.Struct<{
|
|
1421
|
+
readonly scores: Schema.$Array<Schema.Struct<{
|
|
1422
|
+
readonly id: Schema.String;
|
|
1423
|
+
readonly title: Schema.String;
|
|
1424
|
+
readonly score: Schema.NullOr<Schema.Finite>;
|
|
1425
|
+
}>>;
|
|
1426
|
+
readonly failures: Schema.$Array<Schema.Struct<{
|
|
1427
|
+
readonly id: Schema.String;
|
|
1428
|
+
readonly title: Schema.String;
|
|
1429
|
+
readonly description: Schema.String;
|
|
1430
|
+
}>>;
|
|
1431
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1432
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1433
|
+
readonly name: Schema.String;
|
|
1434
|
+
readonly mime: Schema.String;
|
|
1435
|
+
readonly bytes: Schema.Int;
|
|
1436
|
+
readonly path: Schema.String;
|
|
1437
|
+
}>>;
|
|
1438
|
+
readonly tab: Schema.Struct<{
|
|
1439
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1440
|
+
readonly url: Schema.String;
|
|
1441
|
+
readonly title: Schema.String;
|
|
1442
|
+
readonly loading: Schema.Boolean;
|
|
1443
|
+
readonly canGoBack: Schema.Boolean;
|
|
1444
|
+
readonly canGoForward: Schema.Boolean;
|
|
1445
|
+
readonly generation: Schema.Int;
|
|
1446
|
+
}>;
|
|
1447
|
+
}>;
|
|
1448
|
+
action: Schema.Struct<{
|
|
1449
|
+
readonly type: Schema.Literal<"lighthouse">;
|
|
1450
|
+
} & {
|
|
1451
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1452
|
+
}>;
|
|
1453
|
+
}];
|
|
1454
|
+
export type Operation = (typeof Operations)[number];
|
|
1455
|
+
export type Method = Operation["name"];
|
|
1456
|
+
export declare const Action: Schema.Union<(Schema.Struct<{
|
|
1457
|
+
readonly type: Schema.Literal<"tabs.list">;
|
|
1458
|
+
}> | Schema.Struct<{
|
|
1459
|
+
readonly type: Schema.Literal<"tabs.open">;
|
|
1460
|
+
} & {
|
|
1461
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1462
|
+
readonly focus: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1463
|
+
}> | Schema.Struct<{
|
|
1464
|
+
readonly type: Schema.Literal<"tabs.focus">;
|
|
1465
|
+
} & {
|
|
1466
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1467
|
+
}> | Schema.Struct<{
|
|
1468
|
+
readonly type: Schema.Literal<"tabs.close">;
|
|
1469
|
+
} & {
|
|
1470
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1471
|
+
}> | Schema.Struct<{
|
|
1472
|
+
readonly type: Schema.Literal<"navigate">;
|
|
1473
|
+
} & {
|
|
1474
|
+
readonly url: Schema.String;
|
|
1475
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1476
|
+
}> | Schema.Struct<{
|
|
1477
|
+
readonly type: Schema.Literal<"back">;
|
|
1478
|
+
} & {
|
|
1479
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1480
|
+
}> | Schema.Struct<{
|
|
1481
|
+
readonly type: Schema.Literal<"forward">;
|
|
1482
|
+
} & {
|
|
1483
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1484
|
+
}> | Schema.Struct<{
|
|
1485
|
+
readonly type: Schema.Literal<"reload">;
|
|
1486
|
+
} & {
|
|
1487
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1488
|
+
}> | Schema.Struct<{
|
|
1489
|
+
readonly type: Schema.Literal<"stop">;
|
|
1490
|
+
} & {
|
|
1491
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1492
|
+
}> | Schema.Struct<{
|
|
1493
|
+
readonly type: Schema.Literal<"frames">;
|
|
1494
|
+
} & {
|
|
1495
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1496
|
+
}> | Schema.Struct<{
|
|
1497
|
+
readonly type: Schema.Literal<"snapshot">;
|
|
1498
|
+
} & {
|
|
1499
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
1500
|
+
readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1501
|
+
readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1502
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1503
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1504
|
+
}> | Schema.Struct<{
|
|
1505
|
+
readonly type: Schema.Literal<"find">;
|
|
1506
|
+
} & {
|
|
1507
|
+
readonly text: Schema.String;
|
|
1508
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1509
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1510
|
+
}> | Schema.Struct<{
|
|
1511
|
+
readonly type: Schema.Literal<"evaluate">;
|
|
1512
|
+
} & {
|
|
1513
|
+
readonly script: Schema.String;
|
|
1514
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1515
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1516
|
+
}> | Schema.Struct<{
|
|
1517
|
+
readonly type: Schema.Literal<"click">;
|
|
1518
|
+
} & {
|
|
1519
|
+
readonly button: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["left", "right", "middle"]>>>, Schema.optionalKey<Schema.Literals<readonly ["left", "right", "middle"]>>, never, never>;
|
|
1520
|
+
readonly count: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly [1, 2]>>>, Schema.optionalKey<Schema.Literals<readonly [1, 2]>>, never, never>;
|
|
1521
|
+
readonly modifiers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>, never, never>;
|
|
1522
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1523
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1524
|
+
}> | Schema.Struct<{
|
|
1525
|
+
readonly type: Schema.Literal<"hover">;
|
|
1526
|
+
} & {
|
|
1527
|
+
ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1528
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1529
|
+
}> | Schema.Struct<{
|
|
1530
|
+
readonly type: Schema.Literal<"drag">;
|
|
1531
|
+
} & {
|
|
1532
|
+
readonly from: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1533
|
+
readonly to: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1534
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1535
|
+
}> | Schema.Struct<{
|
|
1536
|
+
readonly type: Schema.Literal<"fill">;
|
|
1537
|
+
} & {
|
|
1538
|
+
readonly text: Schema.String;
|
|
1539
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1540
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1541
|
+
}> | Schema.Struct<{
|
|
1542
|
+
readonly type: Schema.Literal<"fill_form">;
|
|
1543
|
+
} & {
|
|
1544
|
+
readonly fields: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1545
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1546
|
+
readonly type: Schema.Literal<"text">;
|
|
1547
|
+
readonly value: Schema.String;
|
|
1548
|
+
}>, Schema.Struct<{
|
|
1549
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1550
|
+
readonly type: Schema.Literal<"select">;
|
|
1551
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
1552
|
+
}>, Schema.Struct<{
|
|
1553
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1554
|
+
readonly type: Schema.Literal<"check">;
|
|
1555
|
+
readonly checked: Schema.Boolean;
|
|
1556
|
+
}>]>>;
|
|
1557
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1558
|
+
}> | Schema.Struct<{
|
|
1559
|
+
readonly type: Schema.Literal<"select">;
|
|
1560
|
+
} & {
|
|
1561
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
1562
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1563
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1564
|
+
}> | Schema.Struct<{
|
|
1565
|
+
readonly type: Schema.Literal<"check">;
|
|
1566
|
+
} & {
|
|
1567
|
+
readonly checked: Schema.Boolean;
|
|
1568
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1569
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1570
|
+
}> | Schema.Struct<{
|
|
1571
|
+
readonly type: Schema.Literal<"press">;
|
|
1572
|
+
} & {
|
|
1573
|
+
readonly key: Schema.String;
|
|
1574
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1575
|
+
}> | Schema.Struct<{
|
|
1576
|
+
readonly type: Schema.Literal<"scroll">;
|
|
1577
|
+
} & {
|
|
1578
|
+
readonly deltaX: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1579
|
+
readonly deltaY: Schema.Int;
|
|
1580
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1581
|
+
}> | Schema.Struct<{
|
|
1582
|
+
readonly type: Schema.Literal<"wait">;
|
|
1583
|
+
} & {
|
|
1584
|
+
readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
|
|
1585
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1586
|
+
readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1587
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1588
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1589
|
+
}> | Schema.Struct<{
|
|
1590
|
+
readonly type: Schema.Literal<"screenshot">;
|
|
1591
|
+
} & {
|
|
1592
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
1593
|
+
readonly fullPage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1594
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["png", "jpeg", "webp"]>>>, Schema.optionalKey<Schema.Literals<readonly ["png", "jpeg", "webp"]>>, never, never>;
|
|
1595
|
+
readonly quality: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1596
|
+
readonly maxWidth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1597
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1598
|
+
}> | Schema.Struct<{
|
|
1599
|
+
readonly type: Schema.Literal<"dialog">;
|
|
1600
|
+
} & {
|
|
1601
|
+
readonly action: Schema.Literals<readonly ["get", "accept", "dismiss"]>;
|
|
1602
|
+
readonly promptText: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1603
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1604
|
+
}> | Schema.Struct<{
|
|
1605
|
+
readonly type: Schema.Literal<"files.upload">;
|
|
1606
|
+
} & {
|
|
1607
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
1608
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1609
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1610
|
+
}> | Schema.Struct<{
|
|
1611
|
+
readonly type: Schema.Literal<"files.drop">;
|
|
1612
|
+
} & {
|
|
1613
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
1614
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1615
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1616
|
+
}> | Schema.Struct<{
|
|
1617
|
+
readonly type: Schema.Literal<"files.list">;
|
|
1618
|
+
} & {
|
|
1619
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1620
|
+
}> | Schema.Struct<{
|
|
1621
|
+
readonly type: Schema.Literal<"files.get">;
|
|
1622
|
+
} & {
|
|
1623
|
+
fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1624
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1625
|
+
}> | Schema.Struct<{
|
|
1626
|
+
readonly type: Schema.Literal<"console">;
|
|
1627
|
+
} & {
|
|
1628
|
+
readonly level: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>>, Schema.optionalKey<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>, never, never>;
|
|
1629
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1630
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1631
|
+
}> | Schema.Struct<{
|
|
1632
|
+
readonly type: Schema.Literal<"network.list">;
|
|
1633
|
+
} & {
|
|
1634
|
+
readonly urlContains: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1635
|
+
readonly resourceType: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>>, Schema.optionalKey<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>, never, never>;
|
|
1636
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1637
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1638
|
+
}> | Schema.Struct<{
|
|
1639
|
+
readonly type: Schema.Literal<"network.get">;
|
|
1640
|
+
} & {
|
|
1641
|
+
readonly id: Schema.String;
|
|
1642
|
+
readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1643
|
+
readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1644
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1645
|
+
}> | Schema.Struct<{
|
|
1646
|
+
readonly type: Schema.Literal<"trace.start">;
|
|
1647
|
+
} & {
|
|
1648
|
+
readonly durationMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1649
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1650
|
+
}> | Schema.Struct<{
|
|
1651
|
+
readonly type: Schema.Literal<"trace.stop">;
|
|
1652
|
+
} & {
|
|
1653
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1654
|
+
}> | Schema.Struct<{
|
|
1655
|
+
readonly type: Schema.Literal<"trace.analyze">;
|
|
1656
|
+
} & {
|
|
1657
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1658
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1659
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1660
|
+
}> | Schema.Struct<{
|
|
1661
|
+
readonly type: Schema.Literal<"cpu.start">;
|
|
1662
|
+
} & {
|
|
1663
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1664
|
+
}> | Schema.Struct<{
|
|
1665
|
+
readonly type: Schema.Literal<"cpu.stop">;
|
|
1666
|
+
} & {
|
|
1667
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1668
|
+
}> | Schema.Struct<{
|
|
1669
|
+
readonly type: Schema.Literal<"cpu.analyze">;
|
|
1670
|
+
} & {
|
|
1671
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1672
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1673
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1674
|
+
}> | Schema.Struct<{
|
|
1675
|
+
readonly type: Schema.Literal<"heap.snapshot">;
|
|
1676
|
+
} & {
|
|
1677
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1678
|
+
}> | Schema.Struct<{
|
|
1679
|
+
readonly type: Schema.Literal<"heap.summary">;
|
|
1680
|
+
} & {
|
|
1681
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1682
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1683
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1684
|
+
}> | Schema.Struct<{
|
|
1685
|
+
readonly type: Schema.Literal<"heap.query">;
|
|
1686
|
+
} & {
|
|
1687
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1688
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1689
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1690
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1691
|
+
}> | Schema.Struct<{
|
|
1692
|
+
readonly type: Schema.Literal<"heap.object">;
|
|
1693
|
+
} & {
|
|
1694
|
+
readonly id: Schema.Finite;
|
|
1695
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1696
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1697
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1698
|
+
}> | Schema.Struct<{
|
|
1699
|
+
readonly type: Schema.Literal<"heap.compare">;
|
|
1700
|
+
} & {
|
|
1701
|
+
readonly before: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1702
|
+
readonly after: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1703
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1704
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1705
|
+
}> | Schema.Struct<{
|
|
1706
|
+
readonly type: Schema.Literal<"lighthouse">;
|
|
1707
|
+
} & {
|
|
1708
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1709
|
+
}>)[]>;
|
|
1710
|
+
export type Action = typeof Action.Type;
|
|
1711
|
+
export declare const Target: Schema.Struct<{
|
|
1712
|
+
readonly resources: Schema.$Array<Schema.String>;
|
|
1713
|
+
readonly key: Schema.String;
|
|
1714
|
+
}>;
|
|
1715
|
+
export type Target = typeof Target.Type;
|
|
1716
|
+
export declare const Command: Schema.Struct<{
|
|
1717
|
+
readonly action: Schema.Union<(Schema.Struct<{
|
|
1718
|
+
readonly type: Schema.Literal<"tabs.list">;
|
|
1719
|
+
}> | Schema.Struct<{
|
|
1720
|
+
readonly type: Schema.Literal<"tabs.open">;
|
|
1721
|
+
} & {
|
|
1722
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1723
|
+
readonly focus: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1724
|
+
}> | Schema.Struct<{
|
|
1725
|
+
readonly type: Schema.Literal<"tabs.focus">;
|
|
1726
|
+
} & {
|
|
1727
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1728
|
+
}> | Schema.Struct<{
|
|
1729
|
+
readonly type: Schema.Literal<"tabs.close">;
|
|
1730
|
+
} & {
|
|
1731
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1732
|
+
}> | Schema.Struct<{
|
|
1733
|
+
readonly type: Schema.Literal<"navigate">;
|
|
1734
|
+
} & {
|
|
1735
|
+
readonly url: Schema.String;
|
|
1736
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1737
|
+
}> | Schema.Struct<{
|
|
1738
|
+
readonly type: Schema.Literal<"back">;
|
|
1739
|
+
} & {
|
|
1740
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1741
|
+
}> | Schema.Struct<{
|
|
1742
|
+
readonly type: Schema.Literal<"forward">;
|
|
1743
|
+
} & {
|
|
1744
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1745
|
+
}> | Schema.Struct<{
|
|
1746
|
+
readonly type: Schema.Literal<"reload">;
|
|
1747
|
+
} & {
|
|
1748
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1749
|
+
}> | Schema.Struct<{
|
|
1750
|
+
readonly type: Schema.Literal<"stop">;
|
|
1751
|
+
} & {
|
|
1752
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1753
|
+
}> | Schema.Struct<{
|
|
1754
|
+
readonly type: Schema.Literal<"frames">;
|
|
1755
|
+
} & {
|
|
1756
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1757
|
+
}> | Schema.Struct<{
|
|
1758
|
+
readonly type: Schema.Literal<"snapshot">;
|
|
1759
|
+
} & {
|
|
1760
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
1761
|
+
readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1762
|
+
readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1763
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1764
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1765
|
+
}> | Schema.Struct<{
|
|
1766
|
+
readonly type: Schema.Literal<"find">;
|
|
1767
|
+
} & {
|
|
1768
|
+
readonly text: Schema.String;
|
|
1769
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1770
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1771
|
+
}> | Schema.Struct<{
|
|
1772
|
+
readonly type: Schema.Literal<"evaluate">;
|
|
1773
|
+
} & {
|
|
1774
|
+
readonly script: Schema.String;
|
|
1775
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1776
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1777
|
+
}> | Schema.Struct<{
|
|
1778
|
+
readonly type: Schema.Literal<"click">;
|
|
1779
|
+
} & {
|
|
1780
|
+
readonly button: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["left", "right", "middle"]>>>, Schema.optionalKey<Schema.Literals<readonly ["left", "right", "middle"]>>, never, never>;
|
|
1781
|
+
readonly count: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly [1, 2]>>>, Schema.optionalKey<Schema.Literals<readonly [1, 2]>>, never, never>;
|
|
1782
|
+
readonly modifiers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>, never, never>;
|
|
1783
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1784
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1785
|
+
}> | Schema.Struct<{
|
|
1786
|
+
readonly type: Schema.Literal<"hover">;
|
|
1787
|
+
} & {
|
|
1788
|
+
ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1789
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1790
|
+
}> | Schema.Struct<{
|
|
1791
|
+
readonly type: Schema.Literal<"drag">;
|
|
1792
|
+
} & {
|
|
1793
|
+
readonly from: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1794
|
+
readonly to: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1795
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1796
|
+
}> | Schema.Struct<{
|
|
1797
|
+
readonly type: Schema.Literal<"fill">;
|
|
1798
|
+
} & {
|
|
1799
|
+
readonly text: Schema.String;
|
|
1800
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1801
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1802
|
+
}> | Schema.Struct<{
|
|
1803
|
+
readonly type: Schema.Literal<"fill_form">;
|
|
1804
|
+
} & {
|
|
1805
|
+
readonly fields: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1806
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1807
|
+
readonly type: Schema.Literal<"text">;
|
|
1808
|
+
readonly value: Schema.String;
|
|
1809
|
+
}>, Schema.Struct<{
|
|
1810
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1811
|
+
readonly type: Schema.Literal<"select">;
|
|
1812
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
1813
|
+
}>, Schema.Struct<{
|
|
1814
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1815
|
+
readonly type: Schema.Literal<"check">;
|
|
1816
|
+
readonly checked: Schema.Boolean;
|
|
1817
|
+
}>]>>;
|
|
1818
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1819
|
+
}> | Schema.Struct<{
|
|
1820
|
+
readonly type: Schema.Literal<"select">;
|
|
1821
|
+
} & {
|
|
1822
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
1823
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1824
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1825
|
+
}> | Schema.Struct<{
|
|
1826
|
+
readonly type: Schema.Literal<"check">;
|
|
1827
|
+
} & {
|
|
1828
|
+
readonly checked: Schema.Boolean;
|
|
1829
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1830
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1831
|
+
}> | Schema.Struct<{
|
|
1832
|
+
readonly type: Schema.Literal<"press">;
|
|
1833
|
+
} & {
|
|
1834
|
+
readonly key: Schema.String;
|
|
1835
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1836
|
+
}> | Schema.Struct<{
|
|
1837
|
+
readonly type: Schema.Literal<"scroll">;
|
|
1838
|
+
} & {
|
|
1839
|
+
readonly deltaX: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1840
|
+
readonly deltaY: Schema.Int;
|
|
1841
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1842
|
+
}> | Schema.Struct<{
|
|
1843
|
+
readonly type: Schema.Literal<"wait">;
|
|
1844
|
+
} & {
|
|
1845
|
+
readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
|
|
1846
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1847
|
+
readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1848
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1849
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1850
|
+
}> | Schema.Struct<{
|
|
1851
|
+
readonly type: Schema.Literal<"screenshot">;
|
|
1852
|
+
} & {
|
|
1853
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
1854
|
+
readonly fullPage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1855
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["png", "jpeg", "webp"]>>>, Schema.optionalKey<Schema.Literals<readonly ["png", "jpeg", "webp"]>>, never, never>;
|
|
1856
|
+
readonly quality: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1857
|
+
readonly maxWidth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1858
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1859
|
+
}> | Schema.Struct<{
|
|
1860
|
+
readonly type: Schema.Literal<"dialog">;
|
|
1861
|
+
} & {
|
|
1862
|
+
readonly action: Schema.Literals<readonly ["get", "accept", "dismiss"]>;
|
|
1863
|
+
readonly promptText: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1864
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1865
|
+
}> | Schema.Struct<{
|
|
1866
|
+
readonly type: Schema.Literal<"files.upload">;
|
|
1867
|
+
} & {
|
|
1868
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
1869
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1870
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1871
|
+
}> | Schema.Struct<{
|
|
1872
|
+
readonly type: Schema.Literal<"files.drop">;
|
|
1873
|
+
} & {
|
|
1874
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
1875
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
1876
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1877
|
+
}> | Schema.Struct<{
|
|
1878
|
+
readonly type: Schema.Literal<"files.list">;
|
|
1879
|
+
} & {
|
|
1880
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1881
|
+
}> | Schema.Struct<{
|
|
1882
|
+
readonly type: Schema.Literal<"files.get">;
|
|
1883
|
+
} & {
|
|
1884
|
+
fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1885
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1886
|
+
}> | Schema.Struct<{
|
|
1887
|
+
readonly type: Schema.Literal<"console">;
|
|
1888
|
+
} & {
|
|
1889
|
+
readonly level: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>>, Schema.optionalKey<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>, never, never>;
|
|
1890
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1891
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1892
|
+
}> | Schema.Struct<{
|
|
1893
|
+
readonly type: Schema.Literal<"network.list">;
|
|
1894
|
+
} & {
|
|
1895
|
+
readonly urlContains: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1896
|
+
readonly resourceType: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>>, Schema.optionalKey<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>, never, never>;
|
|
1897
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1898
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1899
|
+
}> | Schema.Struct<{
|
|
1900
|
+
readonly type: Schema.Literal<"network.get">;
|
|
1901
|
+
} & {
|
|
1902
|
+
readonly id: Schema.String;
|
|
1903
|
+
readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1904
|
+
readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1905
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1906
|
+
}> | Schema.Struct<{
|
|
1907
|
+
readonly type: Schema.Literal<"trace.start">;
|
|
1908
|
+
} & {
|
|
1909
|
+
readonly durationMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1910
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1911
|
+
}> | Schema.Struct<{
|
|
1912
|
+
readonly type: Schema.Literal<"trace.stop">;
|
|
1913
|
+
} & {
|
|
1914
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1915
|
+
}> | Schema.Struct<{
|
|
1916
|
+
readonly type: Schema.Literal<"trace.analyze">;
|
|
1917
|
+
} & {
|
|
1918
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1919
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1920
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1921
|
+
}> | Schema.Struct<{
|
|
1922
|
+
readonly type: Schema.Literal<"cpu.start">;
|
|
1923
|
+
} & {
|
|
1924
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1925
|
+
}> | Schema.Struct<{
|
|
1926
|
+
readonly type: Schema.Literal<"cpu.stop">;
|
|
1927
|
+
} & {
|
|
1928
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1929
|
+
}> | Schema.Struct<{
|
|
1930
|
+
readonly type: Schema.Literal<"cpu.analyze">;
|
|
1931
|
+
} & {
|
|
1932
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1933
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1934
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1935
|
+
}> | Schema.Struct<{
|
|
1936
|
+
readonly type: Schema.Literal<"heap.snapshot">;
|
|
1937
|
+
} & {
|
|
1938
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1939
|
+
}> | Schema.Struct<{
|
|
1940
|
+
readonly type: Schema.Literal<"heap.summary">;
|
|
1941
|
+
} & {
|
|
1942
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1943
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1944
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1945
|
+
}> | Schema.Struct<{
|
|
1946
|
+
readonly type: Schema.Literal<"heap.query">;
|
|
1947
|
+
} & {
|
|
1948
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1949
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1950
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1951
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1952
|
+
}> | Schema.Struct<{
|
|
1953
|
+
readonly type: Schema.Literal<"heap.object">;
|
|
1954
|
+
} & {
|
|
1955
|
+
readonly id: Schema.Finite;
|
|
1956
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1957
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1958
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1959
|
+
}> | Schema.Struct<{
|
|
1960
|
+
readonly type: Schema.Literal<"heap.compare">;
|
|
1961
|
+
} & {
|
|
1962
|
+
readonly before: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1963
|
+
readonly after: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1964
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1965
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1966
|
+
}> | Schema.Struct<{
|
|
1967
|
+
readonly type: Schema.Literal<"lighthouse">;
|
|
1968
|
+
} & {
|
|
1969
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
1970
|
+
}>)[]>;
|
|
1971
|
+
readonly generation: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1972
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1973
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1974
|
+
readonly name: Schema.String;
|
|
1975
|
+
readonly mime: Schema.String;
|
|
1976
|
+
readonly data: Schema.Uint8ArrayFromBase64;
|
|
1977
|
+
}>>;
|
|
1978
|
+
readonly inspect: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1979
|
+
readonly target: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1980
|
+
readonly resources: Schema.$Array<Schema.String>;
|
|
1981
|
+
readonly key: Schema.String;
|
|
1982
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1983
|
+
readonly resources: Schema.$Array<Schema.String>;
|
|
1984
|
+
readonly key: Schema.String;
|
|
1985
|
+
}>>, never, never>;
|
|
1986
|
+
}>;
|
|
1987
|
+
export interface Command extends Schema.Schema.Type<typeof Command> {
|
|
1988
|
+
}
|
|
1989
|
+
export declare const Result: Schema.Struct<{
|
|
1990
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1991
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1992
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
1993
|
+
readonly name: Schema.String;
|
|
1994
|
+
readonly mime: Schema.String;
|
|
1995
|
+
readonly data: Schema.Uint8ArrayFromBase64;
|
|
1996
|
+
}>>;
|
|
1997
|
+
}>;
|
|
1998
|
+
export interface Result extends Schema.Schema.Type<typeof Result> {
|
|
1999
|
+
}
|
|
2000
|
+
export declare const Outcome: Schema.Union<readonly [Schema.Struct<{
|
|
2001
|
+
readonly type: Schema.Literal<"success">;
|
|
2002
|
+
readonly result: Schema.Struct<{
|
|
2003
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2004
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2005
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2006
|
+
readonly name: Schema.String;
|
|
2007
|
+
readonly mime: Schema.String;
|
|
2008
|
+
readonly data: Schema.Uint8ArrayFromBase64;
|
|
2009
|
+
}>>;
|
|
2010
|
+
}>;
|
|
2011
|
+
}>, Schema.Struct<{
|
|
2012
|
+
readonly type: Schema.Literal<"failure">;
|
|
2013
|
+
readonly code: Schema.String;
|
|
2014
|
+
readonly message: Schema.String;
|
|
2015
|
+
}>]>;
|
|
2016
|
+
export type Outcome = typeof Outcome.Type;
|
|
2017
|
+
export declare const TunnelTarget: Schema.Struct<{
|
|
2018
|
+
readonly host: Schema.String;
|
|
2019
|
+
readonly port: Schema.Int;
|
|
2020
|
+
}>;
|
|
2021
|
+
export type TunnelTarget = typeof TunnelTarget.Type;
|
|
2022
|
+
export declare const TunnelRead: Schema.Struct<{
|
|
2023
|
+
readonly data: Schema.Uint8ArrayFromBase64;
|
|
2024
|
+
readonly eof: Schema.Boolean;
|
|
2025
|
+
}>;
|
|
2026
|
+
export type TunnelRead = typeof TunnelRead.Type;
|
|
2027
|
+
export declare const Control: Schema.Union<readonly [Schema.Struct<{
|
|
2028
|
+
readonly type: Schema.Literal<"attached">;
|
|
2029
|
+
readonly connectionID: Schema.String;
|
|
2030
|
+
readonly version: Schema.Literal<4>;
|
|
2031
|
+
}>, Schema.Struct<{
|
|
2032
|
+
readonly type: Schema.Literal<"command">;
|
|
2033
|
+
readonly connectionID: Schema.String;
|
|
2034
|
+
readonly requestID: Schema.String;
|
|
2035
|
+
}>, Schema.Struct<{
|
|
2036
|
+
readonly type: Schema.Literal<"cancel">;
|
|
2037
|
+
readonly connectionID: Schema.String;
|
|
2038
|
+
readonly requestID: Schema.String;
|
|
2039
|
+
}>]>;
|
|
2040
|
+
export type Control = typeof Control.Type;
|
|
2041
|
+
export declare const Definition: {
|
|
2042
|
+
readonly id: "experimental.browser";
|
|
2043
|
+
readonly methods: {
|
|
2044
|
+
readonly attach: {
|
|
2045
|
+
readonly input: Schema.Struct<{
|
|
2046
|
+
readonly version: Schema.Literal<4>;
|
|
2047
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2048
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2049
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2050
|
+
};
|
|
2051
|
+
readonly connectionID: Schema.String;
|
|
2052
|
+
}>;
|
|
2053
|
+
readonly output: Schema.Literals<readonly ["closed", "replaced"]>;
|
|
2054
|
+
readonly errors: {
|
|
2055
|
+
unavailable: Schema.Struct<{}>;
|
|
2056
|
+
};
|
|
2057
|
+
};
|
|
2058
|
+
readonly state: {
|
|
2059
|
+
readonly input: Schema.Struct<{
|
|
2060
|
+
readonly state: Schema.Struct<{
|
|
2061
|
+
readonly tabs: Schema.$Array<Schema.Struct<{
|
|
2062
|
+
readonly id: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2063
|
+
readonly url: Schema.String;
|
|
2064
|
+
readonly title: Schema.String;
|
|
2065
|
+
readonly loading: Schema.Boolean;
|
|
2066
|
+
readonly canGoBack: Schema.Boolean;
|
|
2067
|
+
readonly canGoForward: Schema.Boolean;
|
|
2068
|
+
readonly generation: Schema.Int;
|
|
2069
|
+
}>>;
|
|
2070
|
+
readonly focusedTabID: Schema.NullOr<Schema.brand<Schema.String, "Browser.TabID">>;
|
|
2071
|
+
}>;
|
|
2072
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2073
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2074
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2075
|
+
};
|
|
2076
|
+
readonly connectionID: Schema.String;
|
|
2077
|
+
}>;
|
|
2078
|
+
readonly output: Schema.Void;
|
|
2079
|
+
readonly errors: {
|
|
2080
|
+
unavailable: Schema.Struct<{}>;
|
|
2081
|
+
};
|
|
2082
|
+
};
|
|
2083
|
+
readonly command: {
|
|
2084
|
+
readonly input: Schema.Struct<{
|
|
2085
|
+
requestID: Schema.String;
|
|
2086
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2087
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2088
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2089
|
+
};
|
|
2090
|
+
connectionID: Schema.String;
|
|
2091
|
+
}>;
|
|
2092
|
+
readonly output: Schema.Struct<{
|
|
2093
|
+
readonly action: Schema.Union<(Schema.Struct<{
|
|
2094
|
+
readonly type: Schema.Literal<"tabs.list">;
|
|
2095
|
+
}> | Schema.Struct<{
|
|
2096
|
+
readonly type: Schema.Literal<"tabs.open">;
|
|
2097
|
+
} & {
|
|
2098
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2099
|
+
readonly focus: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2100
|
+
}> | Schema.Struct<{
|
|
2101
|
+
readonly type: Schema.Literal<"tabs.focus">;
|
|
2102
|
+
} & {
|
|
2103
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2104
|
+
}> | Schema.Struct<{
|
|
2105
|
+
readonly type: Schema.Literal<"tabs.close">;
|
|
2106
|
+
} & {
|
|
2107
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2108
|
+
}> | Schema.Struct<{
|
|
2109
|
+
readonly type: Schema.Literal<"navigate">;
|
|
2110
|
+
} & {
|
|
2111
|
+
readonly url: Schema.String;
|
|
2112
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2113
|
+
}> | Schema.Struct<{
|
|
2114
|
+
readonly type: Schema.Literal<"back">;
|
|
2115
|
+
} & {
|
|
2116
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2117
|
+
}> | Schema.Struct<{
|
|
2118
|
+
readonly type: Schema.Literal<"forward">;
|
|
2119
|
+
} & {
|
|
2120
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2121
|
+
}> | Schema.Struct<{
|
|
2122
|
+
readonly type: Schema.Literal<"reload">;
|
|
2123
|
+
} & {
|
|
2124
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2125
|
+
}> | Schema.Struct<{
|
|
2126
|
+
readonly type: Schema.Literal<"stop">;
|
|
2127
|
+
} & {
|
|
2128
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2129
|
+
}> | Schema.Struct<{
|
|
2130
|
+
readonly type: Schema.Literal<"frames">;
|
|
2131
|
+
} & {
|
|
2132
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2133
|
+
}> | Schema.Struct<{
|
|
2134
|
+
readonly type: Schema.Literal<"snapshot">;
|
|
2135
|
+
} & {
|
|
2136
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
2137
|
+
readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2138
|
+
readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2139
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2140
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2141
|
+
}> | Schema.Struct<{
|
|
2142
|
+
readonly type: Schema.Literal<"find">;
|
|
2143
|
+
} & {
|
|
2144
|
+
readonly text: Schema.String;
|
|
2145
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2146
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2147
|
+
}> | Schema.Struct<{
|
|
2148
|
+
readonly type: Schema.Literal<"evaluate">;
|
|
2149
|
+
} & {
|
|
2150
|
+
readonly script: Schema.String;
|
|
2151
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2152
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2153
|
+
}> | Schema.Struct<{
|
|
2154
|
+
readonly type: Schema.Literal<"click">;
|
|
2155
|
+
} & {
|
|
2156
|
+
readonly button: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["left", "right", "middle"]>>>, Schema.optionalKey<Schema.Literals<readonly ["left", "right", "middle"]>>, never, never>;
|
|
2157
|
+
readonly count: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly [1, 2]>>>, Schema.optionalKey<Schema.Literals<readonly [1, 2]>>, never, never>;
|
|
2158
|
+
readonly modifiers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Alt", "Control", "Meta", "Shift"]>>>, never, never>;
|
|
2159
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2160
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2161
|
+
}> | Schema.Struct<{
|
|
2162
|
+
readonly type: Schema.Literal<"hover">;
|
|
2163
|
+
} & {
|
|
2164
|
+
ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2165
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2166
|
+
}> | Schema.Struct<{
|
|
2167
|
+
readonly type: Schema.Literal<"drag">;
|
|
2168
|
+
} & {
|
|
2169
|
+
readonly from: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2170
|
+
readonly to: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2171
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2172
|
+
}> | Schema.Struct<{
|
|
2173
|
+
readonly type: Schema.Literal<"fill">;
|
|
2174
|
+
} & {
|
|
2175
|
+
readonly text: Schema.String;
|
|
2176
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2177
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2178
|
+
}> | Schema.Struct<{
|
|
2179
|
+
readonly type: Schema.Literal<"fill_form">;
|
|
2180
|
+
} & {
|
|
2181
|
+
readonly fields: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2182
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2183
|
+
readonly type: Schema.Literal<"text">;
|
|
2184
|
+
readonly value: Schema.String;
|
|
2185
|
+
}>, Schema.Struct<{
|
|
2186
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2187
|
+
readonly type: Schema.Literal<"select">;
|
|
2188
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
2189
|
+
}>, Schema.Struct<{
|
|
2190
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2191
|
+
readonly type: Schema.Literal<"check">;
|
|
2192
|
+
readonly checked: Schema.Boolean;
|
|
2193
|
+
}>]>>;
|
|
2194
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2195
|
+
}> | Schema.Struct<{
|
|
2196
|
+
readonly type: Schema.Literal<"select">;
|
|
2197
|
+
} & {
|
|
2198
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
2199
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2200
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2201
|
+
}> | Schema.Struct<{
|
|
2202
|
+
readonly type: Schema.Literal<"check">;
|
|
2203
|
+
} & {
|
|
2204
|
+
readonly checked: Schema.Boolean;
|
|
2205
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2206
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2207
|
+
}> | Schema.Struct<{
|
|
2208
|
+
readonly type: Schema.Literal<"press">;
|
|
2209
|
+
} & {
|
|
2210
|
+
readonly key: Schema.String;
|
|
2211
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2212
|
+
}> | Schema.Struct<{
|
|
2213
|
+
readonly type: Schema.Literal<"scroll">;
|
|
2214
|
+
} & {
|
|
2215
|
+
readonly deltaX: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2216
|
+
readonly deltaY: Schema.Int;
|
|
2217
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2218
|
+
}> | Schema.Struct<{
|
|
2219
|
+
readonly type: Schema.Literal<"wait">;
|
|
2220
|
+
} & {
|
|
2221
|
+
readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
|
|
2222
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2223
|
+
readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2224
|
+
readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2225
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2226
|
+
}> | Schema.Struct<{
|
|
2227
|
+
readonly type: Schema.Literal<"screenshot">;
|
|
2228
|
+
} & {
|
|
2229
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
|
|
2230
|
+
readonly fullPage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2231
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["png", "jpeg", "webp"]>>>, Schema.optionalKey<Schema.Literals<readonly ["png", "jpeg", "webp"]>>, never, never>;
|
|
2232
|
+
readonly quality: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2233
|
+
readonly maxWidth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2234
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2235
|
+
}> | Schema.Struct<{
|
|
2236
|
+
readonly type: Schema.Literal<"dialog">;
|
|
2237
|
+
} & {
|
|
2238
|
+
readonly action: Schema.Literals<readonly ["get", "accept", "dismiss"]>;
|
|
2239
|
+
readonly promptText: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2240
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2241
|
+
}> | Schema.Struct<{
|
|
2242
|
+
readonly type: Schema.Literal<"files.upload">;
|
|
2243
|
+
} & {
|
|
2244
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
2245
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2246
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2247
|
+
}> | Schema.Struct<{
|
|
2248
|
+
readonly type: Schema.Literal<"files.drop">;
|
|
2249
|
+
} & {
|
|
2250
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
2251
|
+
readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
|
|
2252
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2253
|
+
}> | Schema.Struct<{
|
|
2254
|
+
readonly type: Schema.Literal<"files.list">;
|
|
2255
|
+
} & {
|
|
2256
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2257
|
+
}> | Schema.Struct<{
|
|
2258
|
+
readonly type: Schema.Literal<"files.get">;
|
|
2259
|
+
} & {
|
|
2260
|
+
fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2261
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2262
|
+
}> | Schema.Struct<{
|
|
2263
|
+
readonly type: Schema.Literal<"console">;
|
|
2264
|
+
} & {
|
|
2265
|
+
readonly level: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>>, Schema.optionalKey<Schema.Literals<readonly ["debug", "info", "warning", "error"]>>, never, never>;
|
|
2266
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2267
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2268
|
+
}> | Schema.Struct<{
|
|
2269
|
+
readonly type: Schema.Literal<"network.list">;
|
|
2270
|
+
} & {
|
|
2271
|
+
readonly urlContains: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2272
|
+
readonly resourceType: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>>, Schema.optionalKey<Schema.Literals<readonly ["document", "stylesheet", "image", "media", "font", "script", "xhr", "fetch", "eventsource", "websocket", "manifest", "other"]>>, never, never>;
|
|
2273
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2274
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2275
|
+
}> | Schema.Struct<{
|
|
2276
|
+
readonly type: Schema.Literal<"network.get">;
|
|
2277
|
+
} & {
|
|
2278
|
+
readonly id: Schema.String;
|
|
2279
|
+
readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2280
|
+
readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2281
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2282
|
+
}> | Schema.Struct<{
|
|
2283
|
+
readonly type: Schema.Literal<"trace.start">;
|
|
2284
|
+
} & {
|
|
2285
|
+
readonly durationMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2286
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2287
|
+
}> | Schema.Struct<{
|
|
2288
|
+
readonly type: Schema.Literal<"trace.stop">;
|
|
2289
|
+
} & {
|
|
2290
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2291
|
+
}> | Schema.Struct<{
|
|
2292
|
+
readonly type: Schema.Literal<"trace.analyze">;
|
|
2293
|
+
} & {
|
|
2294
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2295
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2296
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2297
|
+
}> | Schema.Struct<{
|
|
2298
|
+
readonly type: Schema.Literal<"cpu.start">;
|
|
2299
|
+
} & {
|
|
2300
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2301
|
+
}> | Schema.Struct<{
|
|
2302
|
+
readonly type: Schema.Literal<"cpu.stop">;
|
|
2303
|
+
} & {
|
|
2304
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2305
|
+
}> | Schema.Struct<{
|
|
2306
|
+
readonly type: Schema.Literal<"cpu.analyze">;
|
|
2307
|
+
} & {
|
|
2308
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2309
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2310
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2311
|
+
}> | Schema.Struct<{
|
|
2312
|
+
readonly type: Schema.Literal<"heap.snapshot">;
|
|
2313
|
+
} & {
|
|
2314
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2315
|
+
}> | Schema.Struct<{
|
|
2316
|
+
readonly type: Schema.Literal<"heap.summary">;
|
|
2317
|
+
} & {
|
|
2318
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2319
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2320
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2321
|
+
}> | Schema.Struct<{
|
|
2322
|
+
readonly type: Schema.Literal<"heap.query">;
|
|
2323
|
+
} & {
|
|
2324
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2325
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2326
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2327
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2328
|
+
}> | Schema.Struct<{
|
|
2329
|
+
readonly type: Schema.Literal<"heap.object">;
|
|
2330
|
+
} & {
|
|
2331
|
+
readonly id: Schema.Finite;
|
|
2332
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2333
|
+
readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2334
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2335
|
+
}> | Schema.Struct<{
|
|
2336
|
+
readonly type: Schema.Literal<"heap.compare">;
|
|
2337
|
+
} & {
|
|
2338
|
+
readonly before: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2339
|
+
readonly after: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2340
|
+
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2341
|
+
readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2342
|
+
}> | Schema.Struct<{
|
|
2343
|
+
readonly type: Schema.Literal<"lighthouse">;
|
|
2344
|
+
} & {
|
|
2345
|
+
tabID: Schema.brand<Schema.String, "Browser.TabID">;
|
|
2346
|
+
}>)[]>;
|
|
2347
|
+
readonly generation: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2348
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2349
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2350
|
+
readonly name: Schema.String;
|
|
2351
|
+
readonly mime: Schema.String;
|
|
2352
|
+
readonly data: Schema.Uint8ArrayFromBase64;
|
|
2353
|
+
}>>;
|
|
2354
|
+
readonly inspect: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2355
|
+
readonly target: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2356
|
+
readonly resources: Schema.$Array<Schema.String>;
|
|
2357
|
+
readonly key: Schema.String;
|
|
2358
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2359
|
+
readonly resources: Schema.$Array<Schema.String>;
|
|
2360
|
+
readonly key: Schema.String;
|
|
2361
|
+
}>>, never, never>;
|
|
2362
|
+
}>;
|
|
2363
|
+
readonly errors: {
|
|
2364
|
+
unavailable: Schema.Struct<{}>;
|
|
2365
|
+
};
|
|
2366
|
+
};
|
|
2367
|
+
readonly result: {
|
|
2368
|
+
readonly input: Schema.Struct<{
|
|
2369
|
+
readonly outcome: Schema.Union<readonly [Schema.Struct<{
|
|
2370
|
+
readonly type: Schema.Literal<"success">;
|
|
2371
|
+
readonly result: Schema.Struct<{
|
|
2372
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2373
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2374
|
+
readonly id: Schema.brand<Schema.String, "Browser.FileID">;
|
|
2375
|
+
readonly name: Schema.String;
|
|
2376
|
+
readonly mime: Schema.String;
|
|
2377
|
+
readonly data: Schema.Uint8ArrayFromBase64;
|
|
2378
|
+
}>>;
|
|
2379
|
+
}>;
|
|
2380
|
+
}>, Schema.Struct<{
|
|
2381
|
+
readonly type: Schema.Literal<"failure">;
|
|
2382
|
+
readonly code: Schema.String;
|
|
2383
|
+
readonly message: Schema.String;
|
|
2384
|
+
}>]>;
|
|
2385
|
+
readonly requestID: Schema.String;
|
|
2386
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2387
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2388
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2389
|
+
};
|
|
2390
|
+
readonly connectionID: Schema.String;
|
|
2391
|
+
}>;
|
|
2392
|
+
readonly output: Schema.Void;
|
|
2393
|
+
readonly errors: {
|
|
2394
|
+
unavailable: Schema.Struct<{}>;
|
|
2395
|
+
};
|
|
2396
|
+
};
|
|
2397
|
+
readonly "tunnel.open": {
|
|
2398
|
+
readonly input: Schema.Struct<{
|
|
2399
|
+
readonly target: Schema.Struct<{
|
|
2400
|
+
readonly host: Schema.String;
|
|
2401
|
+
readonly port: Schema.Int;
|
|
2402
|
+
}>;
|
|
2403
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2404
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2405
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2406
|
+
};
|
|
2407
|
+
readonly connectionID: Schema.String;
|
|
2408
|
+
}>;
|
|
2409
|
+
readonly output: Schema.String;
|
|
2410
|
+
readonly errors: {
|
|
2411
|
+
unavailable: Schema.Struct<{}>;
|
|
2412
|
+
};
|
|
2413
|
+
};
|
|
2414
|
+
readonly "tunnel.read": {
|
|
2415
|
+
readonly input: Schema.Struct<{
|
|
2416
|
+
tunnelID: Schema.String;
|
|
2417
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2418
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2419
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2420
|
+
};
|
|
2421
|
+
connectionID: Schema.String;
|
|
2422
|
+
}>;
|
|
2423
|
+
readonly output: Schema.Struct<{
|
|
2424
|
+
readonly data: Schema.Uint8ArrayFromBase64;
|
|
2425
|
+
readonly eof: Schema.Boolean;
|
|
2426
|
+
}>;
|
|
2427
|
+
readonly errors: {
|
|
2428
|
+
unavailable: Schema.Struct<{}>;
|
|
2429
|
+
};
|
|
2430
|
+
};
|
|
2431
|
+
readonly "tunnel.write": {
|
|
2432
|
+
readonly input: Schema.Struct<{
|
|
2433
|
+
readonly data: Schema.Uint8ArrayFromBase64;
|
|
2434
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2435
|
+
readonly tunnelID: Schema.String;
|
|
2436
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2437
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2438
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2439
|
+
};
|
|
2440
|
+
readonly connectionID: Schema.String;
|
|
2441
|
+
}>;
|
|
2442
|
+
readonly output: Schema.Void;
|
|
2443
|
+
readonly errors: {
|
|
2444
|
+
unavailable: Schema.Struct<{}>;
|
|
2445
|
+
};
|
|
2446
|
+
};
|
|
2447
|
+
readonly "tunnel.close": {
|
|
2448
|
+
readonly input: Schema.Struct<{
|
|
2449
|
+
tunnelID: Schema.String;
|
|
2450
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2451
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2452
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2453
|
+
};
|
|
2454
|
+
connectionID: Schema.String;
|
|
2455
|
+
}>;
|
|
2456
|
+
readonly output: Schema.Void;
|
|
2457
|
+
readonly errors: {
|
|
2458
|
+
unavailable: Schema.Struct<{}>;
|
|
2459
|
+
};
|
|
2460
|
+
};
|
|
2461
|
+
};
|
|
2462
|
+
readonly events: {
|
|
2463
|
+
readonly control: {
|
|
2464
|
+
readonly schema: Schema.Union<readonly [Schema.Struct<{
|
|
2465
|
+
readonly type: Schema.Literal<"attached">;
|
|
2466
|
+
readonly connectionID: Schema.String;
|
|
2467
|
+
readonly version: Schema.Literal<4>;
|
|
2468
|
+
}>, Schema.Struct<{
|
|
2469
|
+
readonly type: Schema.Literal<"command">;
|
|
2470
|
+
readonly connectionID: Schema.String;
|
|
2471
|
+
readonly requestID: Schema.String;
|
|
2472
|
+
}>, Schema.Struct<{
|
|
2473
|
+
readonly type: Schema.Literal<"cancel">;
|
|
2474
|
+
readonly connectionID: Schema.String;
|
|
2475
|
+
readonly requestID: Schema.String;
|
|
2476
|
+
}>]>;
|
|
2477
|
+
};
|
|
2478
|
+
};
|
|
2479
|
+
};
|