@opencode/plugin-browser 2.3.2 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rpc.d.ts CHANGED
@@ -1,8 +1,40 @@
1
1
  export * as Browser from "./rpc.js";
2
2
  import { Schema } from "effect";
3
+ /**
4
+ * Codes of the failures the server acts on, beside the general ones (`operation_failed`, `navigation_failed`,
5
+ * `unsupported`). An older desktop sends `operation_failed` for these.
6
+ */
7
+ export declare const FailureCode: {
8
+ /** A wait's condition did not hold before its timeout. */
9
+ readonly unmet: "condition_unmet";
10
+ /** The document or frame changed before or while the operation ran. */
11
+ readonly documentChanged: "document_changed";
12
+ /** An element ref names no element any more: it is stale, or its element left the page. */
13
+ readonly staleRef: "stale_ref";
14
+ /** A workspace file could not be validated by the owner of its disk. */
15
+ readonly previewUnavailable: "preview_unavailable";
16
+ /** The site asks for a user name and password, which only the user can give, in the desktop's browser pane. */
17
+ readonly signInRequired: "sign_in_required";
18
+ };
19
+ /**
20
+ * Whether a URL or origin belongs to an extension: its pages, frames and the blob: URLs it makes. Such a document runs
21
+ * with the extension's `chrome.*` access, which the agent must never gain.
22
+ */
23
+ export declare function extensionOrigin(input: string): boolean;
24
+ /** Why the agent may not open `url`, an extension's page. The server and the desktop both refuse with it. */
25
+ export declare function extensionPageRefusal(url: string): string;
26
+ /**
27
+ * Whether an address without a scheme names this machine (`localhost` and its subdomains, 127.x.x.x, [::1]), which
28
+ * opens over http; any other opens over https.
29
+ */
30
+ export declare function loopbackAddress(value: string): boolean;
31
+ export declare function matchesURL(url: string, pattern: string): boolean;
32
+ /** What one element probe saw; no count while the page navigated or did not answer. */
3
33
  export declare const MAX_FILE_BYTES: number;
4
34
  export declare const TUNNEL_CHUNK_BYTES: number;
5
35
  export declare const MAX_TEXT = 100000;
36
+ /** The longest wait or pause; longer requests are shortened to it. */
37
+ export declare const MAX_WAIT_MS = 30000;
6
38
  export declare const TabID: Schema.brand<Schema.String, "Browser.TabID">;
7
39
  export type TabID = typeof TabID.Type;
8
40
  export declare const Ref: Schema.brand<Schema.String, "Browser.Ref">;
@@ -113,10 +145,25 @@ export declare const ConsoleEntry: Schema.Struct<{
113
145
  }>;
114
146
  export interface ConsoleEntry extends Schema.Schema.Type<typeof ConsoleEntry> {
115
147
  }
148
+ export declare const Waited: Schema.Struct<{
149
+ readonly id: Schema.brand<Schema.String, "Browser.TabID">;
150
+ readonly url: Schema.String;
151
+ readonly title: Schema.String;
152
+ readonly loading: Schema.Boolean;
153
+ readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
154
+ readonly canGoBack: Schema.Boolean;
155
+ readonly canGoForward: Schema.Boolean;
156
+ readonly generation: Schema.Int;
157
+ readonly met: Schema.Boolean;
158
+ readonly waited: Schema.Literals<readonly ["load", "text", "textGone", "element", "elementGone", "url", "delay"]>;
159
+ readonly elapsedMs: Schema.Int;
160
+ readonly observed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
161
+ }>;
162
+ export type Waited = typeof Waited.Type;
116
163
  export declare const Operations: readonly [{
117
164
  name: "tabs.list";
118
165
  description: string;
119
- input: Schema.Struct<{}>;
166
+ input: Schema.StructWithRest<Schema.Struct<{}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
120
167
  output: Schema.Struct<{
121
168
  readonly tabs: Schema.$Array<Schema.Struct<{
122
169
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -136,11 +183,12 @@ export declare const Operations: readonly [{
136
183
  }, {
137
184
  name: "tabs.open";
138
185
  description: string;
139
- input: Schema.Struct<{
186
+ input: Schema.StructWithRest<Schema.Struct<{
140
187
  readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
188
+ readonly path: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
141
189
  readonly focus: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
142
- }>;
143
- output: Schema.Struct<{
190
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
191
+ output: Schema.Union<readonly [Schema.Struct<{
144
192
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
145
193
  readonly url: Schema.String;
146
194
  readonly title: Schema.String;
@@ -149,7 +197,11 @@ export declare const Operations: readonly [{
149
197
  readonly canGoBack: Schema.Boolean;
150
198
  readonly canGoForward: Schema.Boolean;
151
199
  readonly generation: Schema.Int;
152
- }>;
200
+ readonly path: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
201
+ }>, Schema.Struct<{
202
+ readonly path: Schema.String;
203
+ readonly shown: Schema.Literal<"file">;
204
+ }>]>;
153
205
  action: Schema.Struct<{
154
206
  readonly type: Schema.Literal<"tabs.open">;
155
207
  } & {
@@ -159,9 +211,9 @@ export declare const Operations: readonly [{
159
211
  }, {
160
212
  name: "tabs.focus";
161
213
  description: string;
162
- input: Schema.Struct<{
214
+ input: Schema.StructWithRest<Schema.Struct<{
163
215
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
164
- }>;
216
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
165
217
  output: Schema.Struct<{
166
218
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
167
219
  readonly url: Schema.String;
@@ -180,9 +232,9 @@ export declare const Operations: readonly [{
180
232
  }, {
181
233
  name: "tabs.close";
182
234
  description: string;
183
- input: Schema.Struct<{
235
+ input: Schema.StructWithRest<Schema.Struct<{
184
236
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
185
- }>;
237
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
186
238
  output: Schema.Struct<{
187
239
  readonly tabs: Schema.$Array<Schema.Struct<{
188
240
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -201,27 +253,14 @@ export declare const Operations: readonly [{
201
253
  } & {
202
254
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
203
255
  }>;
204
- }, {
205
- name: "preview";
206
- description: string;
207
- input: Schema.Struct<{
208
- readonly path: Schema.String;
209
- }>;
210
- output: Schema.Struct<{
211
- readonly path: Schema.String;
212
- }>;
213
- action: Schema.Struct<{
214
- readonly type: Schema.Literal<"preview">;
215
- } & {
216
- readonly path: Schema.String;
217
- }>;
218
256
  }, {
219
257
  name: "navigate";
220
258
  description: string;
221
- input: Schema.Struct<{
259
+ input: Schema.StructWithRest<Schema.Struct<{
222
260
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
223
- readonly url: Schema.String;
224
- }>;
261
+ readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
262
+ readonly path: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
263
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
225
264
  output: Schema.Struct<{
226
265
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
227
266
  readonly url: Schema.String;
@@ -231,6 +270,7 @@ export declare const Operations: readonly [{
231
270
  readonly canGoBack: Schema.Boolean;
232
271
  readonly canGoForward: Schema.Boolean;
233
272
  readonly generation: Schema.Int;
273
+ readonly path: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
234
274
  }>;
235
275
  action: Schema.Struct<{
236
276
  readonly type: Schema.Literal<"navigate">;
@@ -241,9 +281,9 @@ export declare const Operations: readonly [{
241
281
  }, {
242
282
  name: "back";
243
283
  description: string;
244
- input: Schema.Struct<{
284
+ input: Schema.StructWithRest<Schema.Struct<{
245
285
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
246
- }>;
286
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
247
287
  output: Schema.Struct<{
248
288
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
249
289
  readonly url: Schema.String;
@@ -262,9 +302,9 @@ export declare const Operations: readonly [{
262
302
  }, {
263
303
  name: "forward";
264
304
  description: string;
265
- input: Schema.Struct<{
305
+ input: Schema.StructWithRest<Schema.Struct<{
266
306
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
267
- }>;
307
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
268
308
  output: Schema.Struct<{
269
309
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
270
310
  readonly url: Schema.String;
@@ -283,9 +323,10 @@ export declare const Operations: readonly [{
283
323
  }, {
284
324
  name: "reload";
285
325
  description: string;
286
- input: Schema.Struct<{
287
- tabID: Schema.brand<Schema.String, "Browser.TabID">;
288
- }>;
326
+ input: Schema.StructWithRest<Schema.Struct<{
327
+ readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
328
+ readonly ignoreCache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
329
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
289
330
  output: Schema.Struct<{
290
331
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
291
332
  readonly url: Schema.String;
@@ -299,14 +340,15 @@ export declare const Operations: readonly [{
299
340
  action: Schema.Struct<{
300
341
  readonly type: Schema.Literal<"reload">;
301
342
  } & {
302
- tabID: Schema.brand<Schema.String, "Browser.TabID">;
343
+ readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
344
+ readonly ignoreCache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
303
345
  }>;
304
346
  }, {
305
347
  name: "stop";
306
348
  description: string;
307
- input: Schema.Struct<{
349
+ input: Schema.StructWithRest<Schema.Struct<{
308
350
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
309
- }>;
351
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
310
352
  output: Schema.Struct<{
311
353
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
312
354
  readonly url: Schema.String;
@@ -325,9 +367,9 @@ export declare const Operations: readonly [{
325
367
  }, {
326
368
  name: "frames";
327
369
  description: string;
328
- input: Schema.Struct<{
370
+ input: Schema.StructWithRest<Schema.Struct<{
329
371
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
330
- }>;
372
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
331
373
  output: Schema.Struct<{
332
374
  readonly tab: Schema.Struct<{
333
375
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -354,13 +396,16 @@ export declare const Operations: readonly [{
354
396
  }, {
355
397
  name: "snapshot";
356
398
  description: string;
357
- input: Schema.Struct<{
399
+ input: Schema.StructWithRest<Schema.Struct<{
358
400
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
359
401
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
402
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
403
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
404
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
360
405
  readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
361
406
  readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
362
407
  readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
363
- }>;
408
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
364
409
  output: Schema.Struct<{
365
410
  readonly tab: Schema.Struct<{
366
411
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -380,6 +425,9 @@ export declare const Operations: readonly [{
380
425
  } & {
381
426
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
382
427
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
428
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
429
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
430
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
383
431
  readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
384
432
  readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
385
433
  readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
@@ -387,11 +435,15 @@ export declare const Operations: readonly [{
387
435
  }, {
388
436
  name: "find";
389
437
  description: string;
390
- input: Schema.Struct<{
438
+ input: Schema.StructWithRest<Schema.Struct<{
391
439
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
392
440
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
393
- readonly text: Schema.String;
394
- }>;
441
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
442
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
443
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
444
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
445
+ readonly query: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
446
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
395
447
  output: Schema.Struct<{
396
448
  readonly tab: Schema.Struct<{
397
449
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -411,17 +463,22 @@ export declare const Operations: readonly [{
411
463
  } & {
412
464
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
413
465
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
466
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
467
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
468
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
414
469
  readonly text: Schema.String;
415
470
  }>;
416
471
  }, {
417
472
  name: "evaluate";
418
473
  description: string;
419
- input: Schema.Struct<{
474
+ input: Schema.StructWithRest<Schema.Struct<{
420
475
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
421
476
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
422
477
  readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
423
- readonly script: Schema.String;
424
- }>;
478
+ readonly script: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
479
+ readonly expression: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
480
+ readonly code: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
481
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
425
482
  output: Schema.Struct<{
426
483
  readonly tab: Schema.Struct<{
427
484
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -446,13 +503,13 @@ export declare const Operations: readonly [{
446
503
  }, {
447
504
  name: "click";
448
505
  description: string;
449
- input: Schema.Struct<{
506
+ input: Schema.StructWithRest<Schema.Struct<{
450
507
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
451
508
  readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
452
509
  readonly button: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["left", "right", "middle"]>>>, Schema.optionalKey<Schema.Literals<readonly ["left", "right", "middle"]>>, never, never>;
453
510
  readonly count: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly [1, 2]>>>, Schema.optionalKey<Schema.Literals<readonly [1, 2]>>, never, never>;
454
511
  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>;
455
- }>;
512
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
456
513
  output: Schema.Struct<{
457
514
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
458
515
  readonly url: Schema.String;
@@ -475,10 +532,10 @@ export declare const Operations: readonly [{
475
532
  }, {
476
533
  name: "hover";
477
534
  description: string;
478
- input: Schema.Struct<{
535
+ input: Schema.StructWithRest<Schema.Struct<{
479
536
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
480
537
  ref: Schema.brand<Schema.String, "Browser.Ref">;
481
- }>;
538
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
482
539
  output: Schema.Struct<{
483
540
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
484
541
  readonly url: Schema.String;
@@ -498,11 +555,11 @@ export declare const Operations: readonly [{
498
555
  }, {
499
556
  name: "drag";
500
557
  description: string;
501
- input: Schema.Struct<{
558
+ input: Schema.StructWithRest<Schema.Struct<{
502
559
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
503
560
  readonly from: Schema.brand<Schema.String, "Browser.Ref">;
504
561
  readonly to: Schema.brand<Schema.String, "Browser.Ref">;
505
- }>;
562
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
506
563
  output: Schema.Struct<{
507
564
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
508
565
  readonly url: Schema.String;
@@ -523,11 +580,12 @@ export declare const Operations: readonly [{
523
580
  }, {
524
581
  name: "fill";
525
582
  description: string;
526
- input: Schema.Struct<{
583
+ input: Schema.StructWithRest<Schema.Struct<{
527
584
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
528
585
  readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
529
- readonly text: Schema.String;
530
- }>;
586
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
587
+ readonly value: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
588
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
531
589
  output: Schema.Struct<{
532
590
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
533
591
  readonly url: Schema.String;
@@ -548,7 +606,7 @@ export declare const Operations: readonly [{
548
606
  }, {
549
607
  name: "fill_form";
550
608
  description: string;
551
- input: Schema.Struct<{
609
+ input: Schema.StructWithRest<Schema.Struct<{
552
610
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
553
611
  readonly fields: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
554
612
  readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
@@ -563,7 +621,7 @@ export declare const Operations: readonly [{
563
621
  readonly type: Schema.Literal<"check">;
564
622
  readonly checked: Schema.Boolean;
565
623
  }>]>>;
566
- }>;
624
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
567
625
  output: Schema.Struct<{
568
626
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
569
627
  readonly url: Schema.String;
@@ -595,11 +653,11 @@ export declare const Operations: readonly [{
595
653
  }, {
596
654
  name: "select";
597
655
  description: string;
598
- input: Schema.Struct<{
656
+ input: Schema.StructWithRest<Schema.Struct<{
599
657
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
600
658
  readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
601
659
  readonly values: Schema.$Array<Schema.String>;
602
- }>;
660
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
603
661
  output: Schema.Struct<{
604
662
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
605
663
  readonly url: Schema.String;
@@ -620,11 +678,11 @@ export declare const Operations: readonly [{
620
678
  }, {
621
679
  name: "check";
622
680
  description: string;
623
- input: Schema.Struct<{
681
+ input: Schema.StructWithRest<Schema.Struct<{
624
682
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
625
683
  readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
626
684
  readonly checked: Schema.Boolean;
627
- }>;
685
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
628
686
  output: Schema.Struct<{
629
687
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
630
688
  readonly url: Schema.String;
@@ -645,10 +703,10 @@ export declare const Operations: readonly [{
645
703
  }, {
646
704
  name: "press";
647
705
  description: string;
648
- input: Schema.Struct<{
706
+ input: Schema.StructWithRest<Schema.Struct<{
649
707
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
650
708
  readonly key: Schema.String;
651
- }>;
709
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
652
710
  output: Schema.Struct<{
653
711
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
654
712
  readonly url: Schema.String;
@@ -668,11 +726,11 @@ export declare const Operations: readonly [{
668
726
  }, {
669
727
  name: "scroll";
670
728
  description: string;
671
- input: Schema.Struct<{
729
+ input: Schema.StructWithRest<Schema.Struct<{
672
730
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
673
731
  readonly deltaX: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
674
732
  readonly deltaY: Schema.Int;
675
- }>;
733
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
676
734
  output: Schema.Struct<{
677
735
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
678
736
  readonly url: Schema.String;
@@ -693,13 +751,22 @@ export declare const Operations: readonly [{
693
751
  }, {
694
752
  name: "wait";
695
753
  description: string;
696
- input: Schema.Struct<{
754
+ input: Schema.StructWithRest<Schema.Struct<{
697
755
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
698
756
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
699
- readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
757
+ readonly condition: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["load", "text", "textGone", "element", "elementGone", "url", "delay"]>>>, Schema.optionalKey<Schema.Literals<readonly ["load", "text", "textGone", "element", "elementGone", "url", "delay"]>>, never, never>;
700
758
  readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
701
- readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
702
- }>;
759
+ readonly textGone: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
760
+ readonly selector: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
761
+ readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
762
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["visible", "attached", "hidden", "detached", "load", "domcontentloaded", "networkidle"]>>>, Schema.optionalKey<Schema.Literals<readonly ["visible", "attached", "hidden", "detached", "load", "domcontentloaded", "networkidle"]>>, never, never>;
763
+ readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
764
+ readonly delayMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
765
+ readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
766
+ readonly ms: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
767
+ readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
768
+ readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
769
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
703
770
  output: Schema.Struct<{
704
771
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
705
772
  readonly url: Schema.String;
@@ -709,27 +776,32 @@ export declare const Operations: readonly [{
709
776
  readonly canGoBack: Schema.Boolean;
710
777
  readonly canGoForward: Schema.Boolean;
711
778
  readonly generation: Schema.Int;
779
+ readonly met: Schema.Boolean;
780
+ readonly waited: Schema.Literals<readonly ["load", "text", "textGone", "element", "elementGone", "url", "delay"]>;
781
+ readonly elapsedMs: Schema.Int;
782
+ readonly observed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
712
783
  }>;
713
784
  action: Schema.Struct<{
714
785
  readonly type: Schema.Literal<"wait">;
715
786
  } & {
716
787
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
717
788
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
718
- readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
789
+ readonly condition: Schema.Literals<readonly ["load", "text", "textGone", "delay", "url"]>;
719
790
  readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
791
+ readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
720
792
  readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
721
793
  }>;
722
794
  }, {
723
795
  name: "screenshot";
724
796
  description: string;
725
- input: Schema.Struct<{
797
+ input: Schema.StructWithRest<Schema.Struct<{
726
798
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
727
799
  readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
728
800
  readonly fullPage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
729
801
  readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["png", "jpeg", "webp"]>>>, Schema.optionalKey<Schema.Literals<readonly ["png", "jpeg", "webp"]>>, never, never>;
730
802
  readonly quality: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
731
803
  readonly maxWidth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
732
- }>;
804
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
733
805
  output: Schema.Struct<{
734
806
  readonly files: Schema.$Array<Schema.Struct<{
735
807
  readonly id: Schema.brand<Schema.String, "Browser.FileID">;
@@ -762,11 +834,11 @@ export declare const Operations: readonly [{
762
834
  }, {
763
835
  name: "dialog";
764
836
  description: string;
765
- input: Schema.Struct<{
837
+ input: Schema.StructWithRest<Schema.Struct<{
766
838
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
767
839
  readonly action: Schema.Literals<readonly ["get", "accept", "dismiss"]>;
768
840
  readonly promptText: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
769
- }>;
841
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
770
842
  output: Schema.Struct<{
771
843
  readonly tab: Schema.Struct<{
772
844
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -794,11 +866,11 @@ export declare const Operations: readonly [{
794
866
  }, {
795
867
  name: "files.upload";
796
868
  description: string;
797
- input: Schema.Struct<{
869
+ input: Schema.StructWithRest<Schema.Struct<{
798
870
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
799
871
  readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
800
872
  readonly paths: Schema.$Array<Schema.String>;
801
- }>;
873
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
802
874
  output: Schema.Struct<{
803
875
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
804
876
  readonly url: Schema.String;
@@ -819,11 +891,11 @@ export declare const Operations: readonly [{
819
891
  }, {
820
892
  name: "files.drop";
821
893
  description: string;
822
- input: Schema.Struct<{
894
+ input: Schema.StructWithRest<Schema.Struct<{
823
895
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
824
896
  readonly ref: Schema.brand<Schema.String, "Browser.Ref">;
825
897
  readonly paths: Schema.$Array<Schema.String>;
826
- }>;
898
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
827
899
  output: Schema.Struct<{
828
900
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
829
901
  readonly url: Schema.String;
@@ -844,9 +916,9 @@ export declare const Operations: readonly [{
844
916
  }, {
845
917
  name: "files.list";
846
918
  description: string;
847
- input: Schema.Struct<{
919
+ input: Schema.StructWithRest<Schema.Struct<{
848
920
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
849
- }>;
921
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
850
922
  output: Schema.Struct<{
851
923
  readonly tab: Schema.Struct<{
852
924
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -874,10 +946,11 @@ export declare const Operations: readonly [{
874
946
  }, {
875
947
  name: "files.get";
876
948
  description: string;
877
- input: Schema.Struct<{
878
- tabID: Schema.brand<Schema.String, "Browser.TabID">;
879
- fileID: Schema.brand<Schema.String, "Browser.FileID">;
880
- }>;
949
+ input: Schema.StructWithRest<Schema.Struct<{
950
+ readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
951
+ readonly fileID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.FileID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.FileID">>, never, never>;
952
+ readonly id: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.FileID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.FileID">>, never, never>;
953
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
881
954
  output: Schema.Struct<{
882
955
  readonly files: Schema.$Array<Schema.Struct<{
883
956
  readonly id: Schema.brand<Schema.String, "Browser.FileID">;
@@ -906,11 +979,11 @@ export declare const Operations: readonly [{
906
979
  }, {
907
980
  name: "console";
908
981
  description: string;
909
- input: Schema.Struct<{
982
+ input: Schema.StructWithRest<Schema.Struct<{
910
983
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
911
984
  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>;
912
985
  readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
913
- }>;
986
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
914
987
  output: Schema.Struct<{
915
988
  readonly tab: Schema.Struct<{
916
989
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -951,12 +1024,12 @@ export declare const Operations: readonly [{
951
1024
  }, {
952
1025
  name: "network.list";
953
1026
  description: string;
954
- input: Schema.Struct<{
1027
+ input: Schema.StructWithRest<Schema.Struct<{
955
1028
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
956
1029
  readonly urlContains: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
957
1030
  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
1031
  readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
959
- }>;
1032
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
960
1033
  output: Schema.Struct<{
961
1034
  readonly tab: Schema.Struct<{
962
1035
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1010,12 +1083,14 @@ export declare const Operations: readonly [{
1010
1083
  }, {
1011
1084
  name: "network.get";
1012
1085
  description: string;
1013
- input: Schema.Struct<{
1086
+ input: Schema.StructWithRest<Schema.Struct<{
1014
1087
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1015
- readonly id: Schema.String;
1016
1088
  readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1089
+ readonly includeResponseBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1017
1090
  readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1018
- }>;
1091
+ readonly id: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1092
+ readonly requestID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1093
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1019
1094
  output: Schema.Struct<{
1020
1095
  readonly tab: Schema.Struct<{
1021
1096
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1089,17 +1164,18 @@ export declare const Operations: readonly [{
1089
1164
  readonly type: Schema.Literal<"network.get">;
1090
1165
  } & {
1091
1166
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1092
- readonly id: Schema.String;
1093
1167
  readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1168
+ readonly includeResponseBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1094
1169
  readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1170
+ readonly id: Schema.String;
1095
1171
  }>;
1096
1172
  }, {
1097
1173
  name: "trace.start";
1098
1174
  description: string;
1099
- input: Schema.Struct<{
1175
+ input: Schema.StructWithRest<Schema.Struct<{
1100
1176
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1101
1177
  readonly durationMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1102
- }>;
1178
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1103
1179
  output: Schema.Struct<{
1104
1180
  readonly tab: Schema.Struct<{
1105
1181
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1122,9 +1198,9 @@ export declare const Operations: readonly [{
1122
1198
  }, {
1123
1199
  name: "trace.stop";
1124
1200
  description: string;
1125
- input: Schema.Struct<{
1201
+ input: Schema.StructWithRest<Schema.Struct<{
1126
1202
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
1127
- }>;
1203
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1128
1204
  output: Schema.Struct<{
1129
1205
  readonly files: Schema.$Array<Schema.Struct<{
1130
1206
  readonly id: Schema.brand<Schema.String, "Browser.FileID">;
@@ -1154,11 +1230,11 @@ export declare const Operations: readonly [{
1154
1230
  }, {
1155
1231
  name: "trace.analyze";
1156
1232
  description: string;
1157
- input: Schema.Struct<{
1233
+ input: Schema.StructWithRest<Schema.Struct<{
1158
1234
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1159
1235
  readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
1160
1236
  readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1161
- }>;
1237
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1162
1238
  output: Schema.Struct<{
1163
1239
  readonly tab: Schema.Struct<{
1164
1240
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1193,9 +1269,9 @@ export declare const Operations: readonly [{
1193
1269
  }, {
1194
1270
  name: "cpu.start";
1195
1271
  description: string;
1196
- input: Schema.Struct<{
1272
+ input: Schema.StructWithRest<Schema.Struct<{
1197
1273
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
1198
- }>;
1274
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1199
1275
  output: Schema.Struct<{
1200
1276
  readonly tab: Schema.Struct<{
1201
1277
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1217,9 +1293,9 @@ export declare const Operations: readonly [{
1217
1293
  }, {
1218
1294
  name: "cpu.stop";
1219
1295
  description: string;
1220
- input: Schema.Struct<{
1296
+ input: Schema.StructWithRest<Schema.Struct<{
1221
1297
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
1222
- }>;
1298
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1223
1299
  output: Schema.Struct<{
1224
1300
  readonly files: Schema.$Array<Schema.Struct<{
1225
1301
  readonly id: Schema.brand<Schema.String, "Browser.FileID">;
@@ -1248,11 +1324,11 @@ export declare const Operations: readonly [{
1248
1324
  }, {
1249
1325
  name: "cpu.analyze";
1250
1326
  description: string;
1251
- input: Schema.Struct<{
1327
+ input: Schema.StructWithRest<Schema.Struct<{
1252
1328
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1253
1329
  readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
1254
1330
  readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1255
- }>;
1331
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1256
1332
  output: Schema.Struct<{
1257
1333
  readonly tab: Schema.Struct<{
1258
1334
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1282,9 +1358,9 @@ export declare const Operations: readonly [{
1282
1358
  }, {
1283
1359
  name: "heap.snapshot";
1284
1360
  description: string;
1285
- input: Schema.Struct<{
1361
+ input: Schema.StructWithRest<Schema.Struct<{
1286
1362
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
1287
- }>;
1363
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1288
1364
  output: Schema.Struct<{
1289
1365
  readonly files: Schema.$Array<Schema.Struct<{
1290
1366
  readonly id: Schema.brand<Schema.String, "Browser.FileID">;
@@ -1312,11 +1388,11 @@ export declare const Operations: readonly [{
1312
1388
  }, {
1313
1389
  name: "heap.summary";
1314
1390
  description: string;
1315
- input: Schema.Struct<{
1391
+ input: Schema.StructWithRest<Schema.Struct<{
1316
1392
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1317
1393
  readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
1318
1394
  readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1319
- }>;
1395
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1320
1396
  output: Schema.Struct<{
1321
1397
  readonly tab: Schema.Struct<{
1322
1398
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1347,12 +1423,12 @@ export declare const Operations: readonly [{
1347
1423
  }, {
1348
1424
  name: "heap.query";
1349
1425
  description: string;
1350
- input: Schema.Struct<{
1426
+ input: Schema.StructWithRest<Schema.Struct<{
1351
1427
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1352
1428
  readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
1353
1429
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1354
1430
  readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1355
- }>;
1431
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1356
1432
  output: Schema.Struct<{
1357
1433
  readonly tab: Schema.Struct<{
1358
1434
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1384,12 +1460,12 @@ export declare const Operations: readonly [{
1384
1460
  }, {
1385
1461
  name: "heap.object";
1386
1462
  description: string;
1387
- input: Schema.Struct<{
1463
+ input: Schema.StructWithRest<Schema.Struct<{
1388
1464
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1389
1465
  readonly fileID: Schema.brand<Schema.String, "Browser.FileID">;
1390
1466
  readonly id: Schema.Finite;
1391
1467
  readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1392
- }>;
1468
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1393
1469
  output: Schema.Struct<{
1394
1470
  readonly tab: Schema.Struct<{
1395
1471
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1441,12 +1517,12 @@ export declare const Operations: readonly [{
1441
1517
  }, {
1442
1518
  name: "heap.compare";
1443
1519
  description: string;
1444
- input: Schema.Struct<{
1520
+ input: Schema.StructWithRest<Schema.Struct<{
1445
1521
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1446
1522
  readonly before: Schema.brand<Schema.String, "Browser.FileID">;
1447
1523
  readonly after: Schema.brand<Schema.String, "Browser.FileID">;
1448
1524
  readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1449
- }>;
1525
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1450
1526
  output: Schema.Struct<{
1451
1527
  readonly tab: Schema.Struct<{
1452
1528
  readonly id: Schema.brand<Schema.String, "Browser.TabID">;
@@ -1475,9 +1551,9 @@ export declare const Operations: readonly [{
1475
1551
  }, {
1476
1552
  name: "lighthouse";
1477
1553
  description: string;
1478
- input: Schema.Struct<{
1554
+ input: Schema.StructWithRest<Schema.Struct<{
1479
1555
  tabID: Schema.brand<Schema.String, "Browser.TabID">;
1480
- }>;
1556
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
1481
1557
  output: Schema.Struct<{
1482
1558
  readonly files: Schema.$Array<Schema.Struct<{
1483
1559
  readonly id: Schema.brand<Schema.String, "Browser.FileID">;
@@ -1514,9 +1590,40 @@ export declare const Operations: readonly [{
1514
1590
  }>;
1515
1591
  }];
1516
1592
  export type Operation = (typeof Operations)[number];
1517
- export type Method = Operation["name"];
1518
- export declare const Action: Schema.Union<(Schema.Struct<{
1593
+ /** The desktop's answer to a file action. Desktops from before the path forms leave out `tab`. */
1594
+ export declare const Shown: Schema.Struct<{
1595
+ readonly path: Schema.String;
1596
+ readonly tabID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.TabID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.TabID">>, never, never>;
1597
+ readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1598
+ readonly tab: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1599
+ readonly id: Schema.brand<Schema.String, "Browser.TabID">;
1600
+ readonly url: Schema.String;
1601
+ readonly title: Schema.String;
1602
+ readonly loading: Schema.Boolean;
1603
+ readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1604
+ readonly canGoBack: Schema.Boolean;
1605
+ readonly canGoForward: Schema.Boolean;
1606
+ readonly generation: Schema.Int;
1607
+ }>>>, Schema.optionalKey<Schema.Struct<{
1608
+ readonly id: Schema.brand<Schema.String, "Browser.TabID">;
1609
+ readonly url: Schema.String;
1610
+ readonly title: Schema.String;
1611
+ readonly loading: Schema.Boolean;
1612
+ readonly loadError: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1613
+ readonly canGoBack: Schema.Boolean;
1614
+ readonly canGoForward: Schema.Boolean;
1615
+ readonly generation: Schema.Int;
1616
+ }>>, never, never>;
1617
+ }>;
1618
+ export declare const Action: Schema.Union<readonly (Schema.Struct<{
1519
1619
  readonly type: Schema.Literal<"tabs.list">;
1620
+ }> | Schema.Struct<{
1621
+ readonly type: Schema.Literal<"preview">;
1622
+ readonly path: Schema.String;
1623
+ }> | Schema.Struct<{
1624
+ readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1625
+ readonly type: Schema.Literal<"navigate.path">;
1626
+ readonly path: Schema.String;
1520
1627
  }> | Schema.Struct<{
1521
1628
  readonly type: Schema.Literal<"back">;
1522
1629
  } & {
@@ -1623,6 +1730,9 @@ export declare const Action: Schema.Union<(Schema.Struct<{
1623
1730
  } & {
1624
1731
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1625
1732
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1733
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1734
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1735
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1626
1736
  readonly text: Schema.String;
1627
1737
  }> | Schema.Struct<{
1628
1738
  readonly type: Schema.Literal<"forward">;
@@ -1681,9 +1791,10 @@ export declare const Action: Schema.Union<(Schema.Struct<{
1681
1791
  readonly type: Schema.Literal<"network.get">;
1682
1792
  } & {
1683
1793
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1684
- readonly id: Schema.String;
1685
1794
  readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1795
+ readonly includeResponseBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1686
1796
  readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1797
+ readonly id: Schema.String;
1687
1798
  }> | Schema.Struct<{
1688
1799
  readonly type: Schema.Literal<"network.list">;
1689
1800
  } & {
@@ -1696,14 +1807,11 @@ export declare const Action: Schema.Union<(Schema.Struct<{
1696
1807
  } & {
1697
1808
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1698
1809
  readonly key: Schema.String;
1699
- }> | Schema.Struct<{
1700
- readonly type: Schema.Literal<"preview">;
1701
- } & {
1702
- readonly path: Schema.String;
1703
1810
  }> | Schema.Struct<{
1704
1811
  readonly type: Schema.Literal<"reload">;
1705
1812
  } & {
1706
- tabID: Schema.brand<Schema.String, "Browser.TabID">;
1813
+ readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1814
+ readonly ignoreCache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1707
1815
  }> | Schema.Struct<{
1708
1816
  readonly type: Schema.Literal<"screenshot">;
1709
1817
  } & {
@@ -1730,6 +1838,9 @@ export declare const Action: Schema.Union<(Schema.Struct<{
1730
1838
  } & {
1731
1839
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1732
1840
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1841
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1842
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1843
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1733
1844
  readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
1734
1845
  readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1735
1846
  readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
@@ -1770,19 +1881,37 @@ export declare const Action: Schema.Union<(Schema.Struct<{
1770
1881
  } & {
1771
1882
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1772
1883
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1773
- readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
1884
+ readonly condition: Schema.Literals<readonly ["load", "text", "textGone", "delay", "url"]>;
1774
1885
  readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1886
+ readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1775
1887
  readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1776
1888
  }>)[]>;
1777
1889
  export type Action = typeof Action.Type;
1890
+ /** The name of an action the desktop can receive: every tool's, and the file actions'. */
1891
+ export type Method = Action["type"];
1892
+ /** What a tool call passes: the operation's parameters, which may differ from its action's fields. */
1893
+ export type Input = {
1894
+ [Name in Operation["name"]]: Schema.Schema.Type<Extract<Operation, {
1895
+ readonly name: Name;
1896
+ }>["input"]> & {
1897
+ readonly type: Name;
1898
+ };
1899
+ }[Operation["name"]];
1778
1900
  export declare const Target: Schema.Struct<{
1779
1901
  readonly resources: Schema.$Array<Schema.String>;
1780
1902
  readonly key: Schema.String;
1781
1903
  }>;
1782
1904
  export type Target = typeof Target.Type;
1783
1905
  export declare const Command: Schema.Struct<{
1784
- readonly action: Schema.Union<(Schema.Struct<{
1906
+ readonly action: Schema.Union<readonly (Schema.Struct<{
1785
1907
  readonly type: Schema.Literal<"tabs.list">;
1908
+ }> | Schema.Struct<{
1909
+ readonly type: Schema.Literal<"preview">;
1910
+ readonly path: Schema.String;
1911
+ }> | Schema.Struct<{
1912
+ readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1913
+ readonly type: Schema.Literal<"navigate.path">;
1914
+ readonly path: Schema.String;
1786
1915
  }> | Schema.Struct<{
1787
1916
  readonly type: Schema.Literal<"back">;
1788
1917
  } & {
@@ -1889,6 +2018,9 @@ export declare const Command: Schema.Struct<{
1889
2018
  } & {
1890
2019
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1891
2020
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2021
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2022
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
2023
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1892
2024
  readonly text: Schema.String;
1893
2025
  }> | Schema.Struct<{
1894
2026
  readonly type: Schema.Literal<"forward">;
@@ -1947,9 +2079,10 @@ export declare const Command: Schema.Struct<{
1947
2079
  readonly type: Schema.Literal<"network.get">;
1948
2080
  } & {
1949
2081
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1950
- readonly id: Schema.String;
1951
2082
  readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
2083
+ readonly includeResponseBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1952
2084
  readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2085
+ readonly id: Schema.String;
1953
2086
  }> | Schema.Struct<{
1954
2087
  readonly type: Schema.Literal<"network.list">;
1955
2088
  } & {
@@ -1962,14 +2095,11 @@ export declare const Command: Schema.Struct<{
1962
2095
  } & {
1963
2096
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1964
2097
  readonly key: Schema.String;
1965
- }> | Schema.Struct<{
1966
- readonly type: Schema.Literal<"preview">;
1967
- } & {
1968
- readonly path: Schema.String;
1969
2098
  }> | Schema.Struct<{
1970
2099
  readonly type: Schema.Literal<"reload">;
1971
2100
  } & {
1972
- tabID: Schema.brand<Schema.String, "Browser.TabID">;
2101
+ readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
2102
+ readonly ignoreCache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1973
2103
  }> | Schema.Struct<{
1974
2104
  readonly type: Schema.Literal<"screenshot">;
1975
2105
  } & {
@@ -1996,6 +2126,9 @@ export declare const Command: Schema.Struct<{
1996
2126
  } & {
1997
2127
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
1998
2128
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2129
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2130
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
2131
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1999
2132
  readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
2000
2133
  readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2001
2134
  readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
@@ -2036,8 +2169,9 @@ export declare const Command: Schema.Struct<{
2036
2169
  } & {
2037
2170
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
2038
2171
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2039
- readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
2172
+ readonly condition: Schema.Literals<readonly ["load", "text", "textGone", "delay", "url"]>;
2040
2173
  readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2174
+ readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2041
2175
  readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2042
2176
  }>)[]>;
2043
2177
  readonly generation: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
@@ -2160,8 +2294,15 @@ export declare const Definition: {
2160
2294
  requestID: Schema.String;
2161
2295
  }>;
2162
2296
  readonly output: Schema.Struct<{
2163
- readonly action: Schema.Union<(Schema.Struct<{
2297
+ readonly action: Schema.Union<readonly (Schema.Struct<{
2164
2298
  readonly type: Schema.Literal<"tabs.list">;
2299
+ }> | Schema.Struct<{
2300
+ readonly type: Schema.Literal<"preview">;
2301
+ readonly path: Schema.String;
2302
+ }> | Schema.Struct<{
2303
+ readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
2304
+ readonly type: Schema.Literal<"navigate.path">;
2305
+ readonly path: Schema.String;
2165
2306
  }> | Schema.Struct<{
2166
2307
  readonly type: Schema.Literal<"back">;
2167
2308
  } & {
@@ -2268,6 +2409,9 @@ export declare const Definition: {
2268
2409
  } & {
2269
2410
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
2270
2411
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2412
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2413
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
2414
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2271
2415
  readonly text: Schema.String;
2272
2416
  }> | Schema.Struct<{
2273
2417
  readonly type: Schema.Literal<"forward">;
@@ -2326,9 +2470,10 @@ export declare const Definition: {
2326
2470
  readonly type: Schema.Literal<"network.get">;
2327
2471
  } & {
2328
2472
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
2329
- readonly id: Schema.String;
2330
2473
  readonly includeBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
2474
+ readonly includeResponseBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
2331
2475
  readonly maxBodyChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2476
+ readonly id: Schema.String;
2332
2477
  }> | Schema.Struct<{
2333
2478
  readonly type: Schema.Literal<"network.list">;
2334
2479
  } & {
@@ -2341,14 +2486,11 @@ export declare const Definition: {
2341
2486
  } & {
2342
2487
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
2343
2488
  readonly key: Schema.String;
2344
- }> | Schema.Struct<{
2345
- readonly type: Schema.Literal<"preview">;
2346
- } & {
2347
- readonly path: Schema.String;
2348
2489
  }> | Schema.Struct<{
2349
2490
  readonly type: Schema.Literal<"reload">;
2350
2491
  } & {
2351
- tabID: Schema.brand<Schema.String, "Browser.TabID">;
2492
+ readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
2493
+ readonly ignoreCache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
2352
2494
  }> | Schema.Struct<{
2353
2495
  readonly type: Schema.Literal<"screenshot">;
2354
2496
  } & {
@@ -2375,6 +2517,9 @@ export declare const Definition: {
2375
2517
  } & {
2376
2518
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
2377
2519
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2520
+ readonly maxChars: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2521
+ readonly interactive: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
2522
+ readonly maxLines: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2378
2523
  readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Browser.Ref">>>, Schema.optionalKey<Schema.brand<Schema.String, "Browser.Ref">>, never, never>;
2379
2524
  readonly depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2380
2525
  readonly boxes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
@@ -2415,8 +2560,9 @@ export declare const Definition: {
2415
2560
  } & {
2416
2561
  readonly tabID: Schema.brand<Schema.String, "Browser.TabID">;
2417
2562
  readonly frameID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2418
- readonly condition: Schema.Literals<readonly ["load", "text", "textGone"]>;
2563
+ readonly condition: Schema.Literals<readonly ["load", "text", "textGone", "delay", "url"]>;
2419
2564
  readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2565
+ readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2420
2566
  readonly timeoutMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2421
2567
  }>)[]>;
2422
2568
  readonly generation: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;