@cbxss/eoka 0.1.0-beta.1 → 0.1.0-beta.10

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.
@@ -34,13 +34,13 @@ export type Action = ({
34
34
  "target": Action__LocatorSpec;
35
35
  [key: string]: unknown;
36
36
  } | {
37
- "human"?: boolean;
37
+ "input_mode"?: Action__InputMode;
38
38
  "kind": ("fill" & string);
39
39
  "target": Action__LocatorSpec;
40
40
  "value": string;
41
41
  [key: string]: unknown;
42
42
  } | {
43
- "human"?: boolean;
43
+ "input_mode"?: Action__InputMode;
44
44
  "kind": ("type" & string);
45
45
  "target": Action__LocatorSpec;
46
46
  "text": string;
@@ -91,6 +91,7 @@ export type Action = ({
91
91
  "kind": ("forward" & string);
92
92
  [key: string]: unknown;
93
93
  });
94
+ export type Action__InputMode = (("sequential" & string) | ("bulk" & string));
94
95
  export type Action__LocatorQuery = ({
95
96
  "id": number;
96
97
  "kind": ("node" & string);
@@ -124,12 +125,26 @@ export type Action__LocatorSpec = {
124
125
  [key: string]: unknown;
125
126
  };
126
127
  export type ActionOptions = {
128
+ "destination"?: ActionOptions__Destination;
127
129
  "expect"?: (ActionOptions__Expectation | null);
128
130
  "timeout_ms"?: number;
129
131
  "wait_for_target"?: boolean;
130
132
  [key: string]: unknown;
131
133
  };
134
+ export type ActionOptions__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
132
135
  export type ActionOptions__Expectation = ({
136
+ "kind": ("document_ready" & string);
137
+ [key: string]: unknown;
138
+ } | {
139
+ "conditions": Array<ActionOptions__Expectation>;
140
+ "kind": ("all" & string);
141
+ [key: string]: unknown;
142
+ } | {
143
+ "enabled": boolean;
144
+ "kind": ("enabled" & string);
145
+ "target": ActionOptions__LocatorSpec;
146
+ [key: string]: unknown;
147
+ } | {
133
148
  "kind": ("download_started" & string);
134
149
  [key: string]: unknown;
135
150
  } | {
@@ -208,6 +223,7 @@ export type ActionReceipt = {
208
223
  "action": string;
209
224
  "already_satisfied": boolean;
210
225
  "cleanup_pending": boolean;
226
+ "destination_target_id"?: (string | null);
211
227
  "dispatch": ActionReceipt__DispatchState;
212
228
  "download_guid"?: (string | null);
213
229
  "elapsed_ms": number;
@@ -225,11 +241,13 @@ export type AgentAction = (({
225
241
  "kind": ("click" & string);
226
242
  "target": string;
227
243
  } & {
244
+ "input_mode"?: never;
228
245
  "text"?: never;
229
246
  "value"?: never;
230
247
  "key"?: never;
231
248
  "url"?: never;
232
249
  }) | ({
250
+ "input_mode"?: AgentAction__InputMode;
233
251
  "kind": ("fill" & string);
234
252
  "target": string;
235
253
  "text": string;
@@ -238,6 +256,7 @@ export type AgentAction = (({
238
256
  "key"?: never;
239
257
  "url"?: never;
240
258
  }) | ({
259
+ "input_mode"?: AgentAction__InputMode;
241
260
  "kind": ("type" & string);
242
261
  "target": string;
243
262
  "text": string;
@@ -245,11 +264,21 @@ export type AgentAction = (({
245
264
  "value"?: never;
246
265
  "key"?: never;
247
266
  "url"?: never;
267
+ }) | ({
268
+ "kind": ("focus" & string);
269
+ "target": string;
270
+ } & {
271
+ "input_mode"?: never;
272
+ "text"?: never;
273
+ "value"?: never;
274
+ "key"?: never;
275
+ "url"?: never;
248
276
  }) | ({
249
277
  "kind": ("select" & string);
250
278
  "target": string;
251
279
  "value": string;
252
280
  } & {
281
+ "input_mode"?: never;
253
282
  "text"?: never;
254
283
  "key"?: never;
255
284
  "url"?: never;
@@ -257,6 +286,7 @@ export type AgentAction = (({
257
286
  "kind": ("hover" & string);
258
287
  "target": string;
259
288
  } & {
289
+ "input_mode"?: never;
260
290
  "text"?: never;
261
291
  "value"?: never;
262
292
  "key"?: never;
@@ -265,6 +295,7 @@ export type AgentAction = (({
265
295
  "kind": ("scroll_into_view" & string);
266
296
  "target": string;
267
297
  } & {
298
+ "input_mode"?: never;
268
299
  "text"?: never;
269
300
  "value"?: never;
270
301
  "key"?: never;
@@ -274,6 +305,7 @@ export type AgentAction = (({
274
305
  "kind": ("press_key" & string);
275
306
  } & {
276
307
  "target"?: never;
308
+ "input_mode"?: never;
277
309
  "text"?: never;
278
310
  "value"?: never;
279
311
  "url"?: never;
@@ -282,6 +314,7 @@ export type AgentAction = (({
282
314
  "url": string;
283
315
  } & {
284
316
  "target"?: never;
317
+ "input_mode"?: never;
285
318
  "text"?: never;
286
319
  "value"?: never;
287
320
  "key"?: never;
@@ -289,6 +322,7 @@ export type AgentAction = (({
289
322
  "kind": ("back" & string);
290
323
  } & {
291
324
  "target"?: never;
325
+ "input_mode"?: never;
292
326
  "text"?: never;
293
327
  "value"?: never;
294
328
  "key"?: never;
@@ -297,18 +331,22 @@ export type AgentAction = (({
297
331
  "kind": ("forward" & string);
298
332
  } & {
299
333
  "target"?: never;
334
+ "input_mode"?: never;
300
335
  "text"?: never;
301
336
  "value"?: never;
302
337
  "key"?: never;
303
338
  "url"?: never;
304
339
  }));
340
+ export type AgentAction__InputMode = (("sequential" & string) | ("bulk" & string));
305
341
  export type AgentMode = (("explore" | "verify") & string);
306
342
  export type AgentObservation = {
307
343
  "controls": Array<AgentObservation__AgentControl>;
344
+ "next_cursor"?: (string | null);
308
345
  "observation_id": string;
309
346
  "page"?: (AgentObservation__PageContext | null);
310
347
  "tab_id": string;
311
348
  "tabs": Array<AgentObservation__AgentTab>;
349
+ "total_controls": number;
312
350
  "truncated": boolean;
313
351
  "warnings": Array<string>;
314
352
  [key: string]: unknown;
@@ -316,10 +354,16 @@ export type AgentObservation = {
316
354
  export type AgentObservation__AgentControl = {
317
355
  "checked"?: (boolean | null);
318
356
  "disabled": boolean;
357
+ "editable": boolean;
319
358
  "expanded"?: (boolean | null);
359
+ "focused": boolean;
360
+ "invalid": boolean;
320
361
  "name": string;
362
+ "readonly": boolean;
363
+ "required": boolean;
321
364
  "role": string;
322
365
  "target": string;
366
+ "validation_message"?: (string | null);
323
367
  [key: string]: unknown;
324
368
  };
325
369
  export type AgentObservation__AgentTab = {
@@ -344,8 +388,9 @@ export type AgentStepResult = {
344
388
  "observation"?: (AgentStepResult__AgentObservation | null);
345
389
  "observation_error"?: (string | null);
346
390
  "operation"?: (AgentStepResult__OperationRecord | null);
347
- "operation_error"?: (string | null);
391
+ "operation_error"?: (AgentStepResult__ErrorDetail | null);
348
392
  "operation_id": string;
393
+ "status": AgentStepResult__OperationStatus;
349
394
  [key: string]: unknown;
350
395
  };
351
396
  export type AgentStepResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
@@ -353,6 +398,7 @@ export type AgentStepResult__ActionReceipt = {
353
398
  "action": string;
354
399
  "already_satisfied": boolean;
355
400
  "cleanup_pending": boolean;
401
+ "destination_target_id"?: (string | null);
356
402
  "dispatch": AgentStepResult__DispatchState;
357
403
  "download_guid"?: (string | null);
358
404
  "elapsed_ms": number;
@@ -364,21 +410,30 @@ export type AgentStepResult__ActionReceipt = {
364
410
  "verification"?: (string | null);
365
411
  [key: string]: unknown;
366
412
  };
413
+ export type AgentStepResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
367
414
  export type AgentStepResult__AgentControl = {
368
415
  "checked"?: (boolean | null);
369
416
  "disabled": boolean;
417
+ "editable": boolean;
370
418
  "expanded"?: (boolean | null);
419
+ "focused": boolean;
420
+ "invalid": boolean;
371
421
  "name": string;
422
+ "readonly": boolean;
423
+ "required": boolean;
372
424
  "role": string;
373
425
  "target": string;
426
+ "validation_message"?: (string | null);
374
427
  [key: string]: unknown;
375
428
  };
376
429
  export type AgentStepResult__AgentObservation = {
377
430
  "controls": Array<AgentStepResult__AgentControl>;
431
+ "next_cursor"?: (string | null);
378
432
  "observation_id": string;
379
433
  "page"?: (AgentStepResult__PageContext | null);
380
434
  "tab_id": string;
381
435
  "tabs": Array<AgentStepResult__AgentTab>;
436
+ "total_controls": number;
382
437
  "truncated": boolean;
383
438
  "warnings": Array<string>;
384
439
  [key: string]: unknown;
@@ -391,9 +446,26 @@ export type AgentStepResult__AgentTab = {
391
446
  [key: string]: unknown;
392
447
  };
393
448
  export type AgentStepResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
449
+ export type AgentStepResult__ErrorContext = {
450
+ "action_status"?: (AgentStepResult__ActionStatus | null);
451
+ "download_id"?: (string | null);
452
+ "operation_id"?: (string | null);
453
+ "page"?: (AgentStepResult__PageContext | null);
454
+ "phase"?: (string | null);
455
+ [key: string]: unknown;
456
+ };
457
+ export type AgentStepResult__ErrorDetail = {
458
+ "code": string;
459
+ "context"?: (AgentStepResult__ErrorContext | null);
460
+ "hint"?: (string | null);
461
+ "message": string;
462
+ "retryable"?: (boolean | null);
463
+ [key: string]: unknown;
464
+ };
394
465
  export type AgentStepResult__OperationRecord = {
395
466
  "action": string;
396
467
  "dispatch_intent": boolean;
468
+ "error"?: (AgentStepResult__ErrorDetail | null);
397
469
  "error_code"?: (string | null);
398
470
  "finished_at_ms"?: (number | null);
399
471
  "id": string;
@@ -407,6 +479,7 @@ export type AgentStepResult__OperationRecord = {
407
479
  [key: string]: unknown;
408
480
  };
409
481
  export type AgentStepResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
482
+ export type AgentStepResult__OperationStatus = (("running" | "verified_complete" | "not_dispatched" | "outcome_unknown") & string);
410
483
  export type AgentStepResult__PageContext = {
411
484
  "headings": Array<string>;
412
485
  "messages": Array<string>;
@@ -452,6 +525,12 @@ export type CdpErrorDetail = {
452
525
  "method"?: (string | null);
453
526
  [key: string]: unknown;
454
527
  };
528
+ export type CloudflareAutoSolve = {
529
+ "intervalMs"?: number;
530
+ "timeoutMs"?: number;
531
+ [key: string]: unknown;
532
+ };
533
+ export type Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
455
534
  export type DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
456
535
  export type ErrorCode = (("ElementNotFound" | "ElementNotVisible" | "Timeout" | "RetryExhausted" | "Cdp" | "InvalidPage" | "InvalidParams" | "UnknownMethod" | "Internal" | "ProtocolMismatch" | "MessageTooLarge" | "ServerBusy" | "ShuttingDown" | "Cancelled" | "Action" | "Operation" | "ScreenshotTooLarge" | "FileOutput" | "RecordingUnsupported" | "RecordingNotFound" | "RecordingConflict" | "RecordingAlreadyActive" | "RecordingInvalidState" | "RecordingFailed") & string);
457
536
  export type ErrorData = {
@@ -471,6 +550,7 @@ export type ErrorData__ActionReceipt = {
471
550
  "action": string;
472
551
  "already_satisfied": boolean;
473
552
  "cleanup_pending": boolean;
553
+ "destination_target_id"?: (string | null);
474
554
  "dispatch": ErrorData__DispatchState;
475
555
  "download_guid"?: (string | null);
476
556
  "elapsed_ms": number;
@@ -502,7 +582,9 @@ export type ErrorData__ErrorCode = (("ElementNotFound" | "ElementNotVisible" | "
502
582
  export type ErrorData__ErrorContext = {
503
583
  "action_status"?: (ErrorData__ActionStatus | null);
504
584
  "download_id"?: (string | null);
585
+ "operation_id"?: (string | null);
505
586
  "page"?: (ErrorData__PageContext | null);
587
+ "phase"?: (string | null);
506
588
  [key: string]: unknown;
507
589
  };
508
590
  export type ErrorData__ErrorDetail = {
@@ -561,7 +643,9 @@ export type ErrorDetail__ActionStatus = (("not_attempted" | "may_have_executed")
561
643
  export type ErrorDetail__ErrorContext = {
562
644
  "action_status"?: (ErrorDetail__ActionStatus | null);
563
645
  "download_id"?: (string | null);
646
+ "operation_id"?: (string | null);
564
647
  "page"?: (ErrorDetail__PageContext | null);
648
+ "phase"?: (string | null);
565
649
  [key: string]: unknown;
566
650
  };
567
651
  export type ErrorDetail__PageContext = {
@@ -576,6 +660,18 @@ export type ErrorDetail__PageContext = {
576
660
  [key: string]: unknown;
577
661
  };
578
662
  export type Expectation = ({
663
+ "kind": ("document_ready" & string);
664
+ [key: string]: unknown;
665
+ } | {
666
+ "conditions": Array<Expectation>;
667
+ "kind": ("all" & string);
668
+ [key: string]: unknown;
669
+ } | {
670
+ "enabled": boolean;
671
+ "kind": ("enabled" & string);
672
+ "target": Expectation__LocatorSpec;
673
+ [key: string]: unknown;
674
+ } | {
579
675
  "kind": ("download_started" & string);
580
676
  [key: string]: unknown;
581
677
  } | {
@@ -677,6 +773,7 @@ export type HelloResult__TransportLimits = {
677
773
  "maxMessageBytes": number;
678
774
  [key: string]: unknown;
679
775
  };
776
+ export type InputMode = (("sequential" & string) | ("bulk" & string));
680
777
  export type LocatorQuery = ({
681
778
  "id": number;
682
779
  "kind": ("node" & string);
@@ -738,6 +835,7 @@ export type LocatorSpec__LocatorQuery = ({
738
835
  export type OperationRecord = {
739
836
  "action": string;
740
837
  "dispatch_intent": boolean;
838
+ "error"?: (OperationRecord__ErrorDetail | null);
741
839
  "error_code"?: (string | null);
742
840
  "finished_at_ms"?: (number | null);
743
841
  "id": string;
@@ -755,6 +853,7 @@ export type OperationRecord__ActionReceipt = {
755
853
  "action": string;
756
854
  "already_satisfied": boolean;
757
855
  "cleanup_pending": boolean;
856
+ "destination_target_id"?: (string | null);
758
857
  "dispatch": OperationRecord__DispatchState;
759
858
  "download_guid"?: (string | null);
760
859
  "elapsed_ms": number;
@@ -766,8 +865,36 @@ export type OperationRecord__ActionReceipt = {
766
865
  "verification"?: (string | null);
767
866
  [key: string]: unknown;
768
867
  };
868
+ export type OperationRecord__ActionStatus = (("not_attempted" | "may_have_executed") & string);
769
869
  export type OperationRecord__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
870
+ export type OperationRecord__ErrorContext = {
871
+ "action_status"?: (OperationRecord__ActionStatus | null);
872
+ "download_id"?: (string | null);
873
+ "operation_id"?: (string | null);
874
+ "page"?: (OperationRecord__PageContext | null);
875
+ "phase"?: (string | null);
876
+ [key: string]: unknown;
877
+ };
878
+ export type OperationRecord__ErrorDetail = {
879
+ "code": string;
880
+ "context"?: (OperationRecord__ErrorContext | null);
881
+ "hint"?: (string | null);
882
+ "message": string;
883
+ "retryable"?: (boolean | null);
884
+ [key: string]: unknown;
885
+ };
770
886
  export type OperationRecord__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
887
+ export type OperationRecord__PageContext = {
888
+ "headings": Array<string>;
889
+ "messages": Array<string>;
890
+ "ready_state": string;
891
+ "tab_id": string;
892
+ "text_excerpt": string;
893
+ "title": string;
894
+ "truncated": boolean;
895
+ "url": string;
896
+ [key: string]: unknown;
897
+ };
771
898
  export type OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
772
899
  export type ProtocolVersion = {
773
900
  "major": number;
@@ -848,6 +975,7 @@ export type Response__ActionReceipt = {
848
975
  "action": string;
849
976
  "already_satisfied": boolean;
850
977
  "cleanup_pending": boolean;
978
+ "destination_target_id"?: (string | null);
851
979
  "dispatch": Response__DispatchState;
852
980
  "download_guid"?: (string | null);
853
981
  "elapsed_ms": number;
@@ -879,7 +1007,9 @@ export type Response__ErrorCode = (("ElementNotFound" | "ElementNotVisible" | "T
879
1007
  export type Response__ErrorContext = {
880
1008
  "action_status"?: (Response__ActionStatus | null);
881
1009
  "download_id"?: (string | null);
1010
+ "operation_id"?: (string | null);
882
1011
  "page"?: (Response__PageContext | null);
1012
+ "phase"?: (string | null);
883
1013
  [key: string]: unknown;
884
1014
  };
885
1015
  export type Response__ErrorData = {
@@ -990,6 +1120,7 @@ export type ServerError__ActionReceipt = {
990
1120
  "action": string;
991
1121
  "already_satisfied": boolean;
992
1122
  "cleanup_pending": boolean;
1123
+ "destination_target_id"?: (string | null);
993
1124
  "dispatch": ServerError__DispatchState;
994
1125
  "download_guid"?: (string | null);
995
1126
  "elapsed_ms": number;
@@ -1021,7 +1152,9 @@ export type ServerError__ErrorCode = (("ElementNotFound" | "ElementNotVisible" |
1021
1152
  export type ServerError__ErrorContext = {
1022
1153
  "action_status"?: (ServerError__ActionStatus | null);
1023
1154
  "download_id"?: (string | null);
1155
+ "operation_id"?: (string | null);
1024
1156
  "page"?: (ServerError__PageContext | null);
1157
+ "phase"?: (string | null);
1025
1158
  [key: string]: unknown;
1026
1159
  };
1027
1160
  export type ServerError__ErrorData = {
@@ -1122,13 +1255,13 @@ export type MethodActionsPerformParams__Action = ({
1122
1255
  "target": MethodActionsPerformParams__LocatorSpec;
1123
1256
  [key: string]: unknown;
1124
1257
  } | {
1125
- "human"?: boolean;
1258
+ "input_mode"?: MethodActionsPerformParams__InputMode;
1126
1259
  "kind": ("fill" & string);
1127
1260
  "target": MethodActionsPerformParams__LocatorSpec;
1128
1261
  "value": string;
1129
1262
  [key: string]: unknown;
1130
1263
  } | {
1131
- "human"?: boolean;
1264
+ "input_mode"?: MethodActionsPerformParams__InputMode;
1132
1265
  "kind": ("type" & string);
1133
1266
  "target": MethodActionsPerformParams__LocatorSpec;
1134
1267
  "text": string;
@@ -1180,12 +1313,26 @@ export type MethodActionsPerformParams__Action = ({
1180
1313
  [key: string]: unknown;
1181
1314
  });
1182
1315
  export type MethodActionsPerformParams__ActionOptions = {
1316
+ "destination"?: MethodActionsPerformParams__Destination;
1183
1317
  "expect"?: (MethodActionsPerformParams__Expectation | null);
1184
1318
  "timeout_ms"?: number;
1185
1319
  "wait_for_target"?: boolean;
1186
1320
  [key: string]: unknown;
1187
1321
  };
1322
+ export type MethodActionsPerformParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
1188
1323
  export type MethodActionsPerformParams__Expectation = ({
1324
+ "kind": ("document_ready" & string);
1325
+ [key: string]: unknown;
1326
+ } | {
1327
+ "conditions": Array<MethodActionsPerformParams__Expectation>;
1328
+ "kind": ("all" & string);
1329
+ [key: string]: unknown;
1330
+ } | {
1331
+ "enabled": boolean;
1332
+ "kind": ("enabled" & string);
1333
+ "target": MethodActionsPerformParams__LocatorSpec;
1334
+ [key: string]: unknown;
1335
+ } | {
1189
1336
  "kind": ("download_started" & string);
1190
1337
  [key: string]: unknown;
1191
1338
  } | {
@@ -1227,6 +1374,7 @@ export type MethodActionsPerformParams__Expectation = ({
1227
1374
  "values": Array<string>;
1228
1375
  [key: string]: unknown;
1229
1376
  });
1377
+ export type MethodActionsPerformParams__InputMode = (("sequential" & string) | ("bulk" & string));
1230
1378
  export type MethodActionsPerformParams__LocatorQuery = ({
1231
1379
  "id": number;
1232
1380
  "kind": ("node" & string);
@@ -1262,6 +1410,7 @@ export type MethodActionsPerformParams__LocatorSpec = {
1262
1410
  export type MethodActionsPerformResult = {
1263
1411
  "action": string;
1264
1412
  "dispatch_intent": boolean;
1413
+ "error"?: (MethodActionsPerformResult__ErrorDetail | null);
1265
1414
  "error_code"?: (string | null);
1266
1415
  "finished_at_ms"?: (number | null);
1267
1416
  "id": string;
@@ -1279,6 +1428,7 @@ export type MethodActionsPerformResult__ActionReceipt = {
1279
1428
  "action": string;
1280
1429
  "already_satisfied": boolean;
1281
1430
  "cleanup_pending": boolean;
1431
+ "destination_target_id"?: (string | null);
1282
1432
  "dispatch": MethodActionsPerformResult__DispatchState;
1283
1433
  "download_guid"?: (string | null);
1284
1434
  "elapsed_ms": number;
@@ -1290,20 +1440,53 @@ export type MethodActionsPerformResult__ActionReceipt = {
1290
1440
  "verification"?: (string | null);
1291
1441
  [key: string]: unknown;
1292
1442
  };
1443
+ export type MethodActionsPerformResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1293
1444
  export type MethodActionsPerformResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1445
+ export type MethodActionsPerformResult__ErrorContext = {
1446
+ "action_status"?: (MethodActionsPerformResult__ActionStatus | null);
1447
+ "download_id"?: (string | null);
1448
+ "operation_id"?: (string | null);
1449
+ "page"?: (MethodActionsPerformResult__PageContext | null);
1450
+ "phase"?: (string | null);
1451
+ [key: string]: unknown;
1452
+ };
1453
+ export type MethodActionsPerformResult__ErrorDetail = {
1454
+ "code": string;
1455
+ "context"?: (MethodActionsPerformResult__ErrorContext | null);
1456
+ "hint"?: (string | null);
1457
+ "message": string;
1458
+ "retryable"?: (boolean | null);
1459
+ [key: string]: unknown;
1460
+ };
1294
1461
  export type MethodActionsPerformResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1462
+ export type MethodActionsPerformResult__PageContext = {
1463
+ "headings": Array<string>;
1464
+ "messages": Array<string>;
1465
+ "ready_state": string;
1466
+ "tab_id": string;
1467
+ "text_excerpt": string;
1468
+ "title": string;
1469
+ "truncated": boolean;
1470
+ "url": string;
1471
+ [key: string]: unknown;
1472
+ };
1295
1473
  export type MethodAgentObserveParams = {
1474
+ "cursor"?: (string | null);
1296
1475
  "max_controls"?: number;
1476
+ "name"?: (string | null);
1297
1477
  "pageId": string;
1478
+ "role"?: (string | null);
1298
1479
  "timeout_ms"?: number;
1299
1480
  [key: string]: unknown;
1300
1481
  };
1301
1482
  export type MethodAgentObserveResult = {
1302
1483
  "controls": Array<MethodAgentObserveResult__AgentControl>;
1484
+ "next_cursor"?: (string | null);
1303
1485
  "observation_id": string;
1304
1486
  "page"?: (MethodAgentObserveResult__PageContext | null);
1305
1487
  "tab_id": string;
1306
1488
  "tabs": Array<MethodAgentObserveResult__AgentTab>;
1489
+ "total_controls": number;
1307
1490
  "truncated": boolean;
1308
1491
  "warnings": Array<string>;
1309
1492
  [key: string]: unknown;
@@ -1311,10 +1494,16 @@ export type MethodAgentObserveResult = {
1311
1494
  export type MethodAgentObserveResult__AgentControl = {
1312
1495
  "checked"?: (boolean | null);
1313
1496
  "disabled": boolean;
1497
+ "editable": boolean;
1314
1498
  "expanded"?: (boolean | null);
1499
+ "focused": boolean;
1500
+ "invalid": boolean;
1315
1501
  "name": string;
1502
+ "readonly": boolean;
1503
+ "required": boolean;
1316
1504
  "role": string;
1317
1505
  "target": string;
1506
+ "validation_message"?: (string | null);
1318
1507
  [key: string]: unknown;
1319
1508
  };
1320
1509
  export type MethodAgentObserveResult__AgentTab = {
@@ -1338,6 +1527,7 @@ export type MethodAgentObserveResult__PageContext = {
1338
1527
  export type MethodAgentStepParams = {
1339
1528
  "action": MethodAgentStepParams__AgentAction;
1340
1529
  "action_timeout_ms"?: number;
1530
+ "destination"?: MethodAgentStepParams__Destination;
1341
1531
  "expect"?: (MethodAgentStepParams__Expectation | null);
1342
1532
  "max_controls"?: number;
1343
1533
  "mode"?: MethodAgentStepParams__AgentMode;
@@ -1350,11 +1540,13 @@ export type MethodAgentStepParams__AgentAction = (({
1350
1540
  "kind": ("click" & string);
1351
1541
  "target": string;
1352
1542
  } & {
1543
+ "input_mode"?: never;
1353
1544
  "text"?: never;
1354
1545
  "value"?: never;
1355
1546
  "key"?: never;
1356
1547
  "url"?: never;
1357
1548
  }) | ({
1549
+ "input_mode"?: MethodAgentStepParams__InputMode;
1358
1550
  "kind": ("fill" & string);
1359
1551
  "target": string;
1360
1552
  "text": string;
@@ -1363,6 +1555,7 @@ export type MethodAgentStepParams__AgentAction = (({
1363
1555
  "key"?: never;
1364
1556
  "url"?: never;
1365
1557
  }) | ({
1558
+ "input_mode"?: MethodAgentStepParams__InputMode;
1366
1559
  "kind": ("type" & string);
1367
1560
  "target": string;
1368
1561
  "text": string;
@@ -1370,11 +1563,21 @@ export type MethodAgentStepParams__AgentAction = (({
1370
1563
  "value"?: never;
1371
1564
  "key"?: never;
1372
1565
  "url"?: never;
1566
+ }) | ({
1567
+ "kind": ("focus" & string);
1568
+ "target": string;
1569
+ } & {
1570
+ "input_mode"?: never;
1571
+ "text"?: never;
1572
+ "value"?: never;
1573
+ "key"?: never;
1574
+ "url"?: never;
1373
1575
  }) | ({
1374
1576
  "kind": ("select" & string);
1375
1577
  "target": string;
1376
1578
  "value": string;
1377
1579
  } & {
1580
+ "input_mode"?: never;
1378
1581
  "text"?: never;
1379
1582
  "key"?: never;
1380
1583
  "url"?: never;
@@ -1382,6 +1585,7 @@ export type MethodAgentStepParams__AgentAction = (({
1382
1585
  "kind": ("hover" & string);
1383
1586
  "target": string;
1384
1587
  } & {
1588
+ "input_mode"?: never;
1385
1589
  "text"?: never;
1386
1590
  "value"?: never;
1387
1591
  "key"?: never;
@@ -1390,6 +1594,7 @@ export type MethodAgentStepParams__AgentAction = (({
1390
1594
  "kind": ("scroll_into_view" & string);
1391
1595
  "target": string;
1392
1596
  } & {
1597
+ "input_mode"?: never;
1393
1598
  "text"?: never;
1394
1599
  "value"?: never;
1395
1600
  "key"?: never;
@@ -1399,6 +1604,7 @@ export type MethodAgentStepParams__AgentAction = (({
1399
1604
  "kind": ("press_key" & string);
1400
1605
  } & {
1401
1606
  "target"?: never;
1607
+ "input_mode"?: never;
1402
1608
  "text"?: never;
1403
1609
  "value"?: never;
1404
1610
  "url"?: never;
@@ -1407,6 +1613,7 @@ export type MethodAgentStepParams__AgentAction = (({
1407
1613
  "url": string;
1408
1614
  } & {
1409
1615
  "target"?: never;
1616
+ "input_mode"?: never;
1410
1617
  "text"?: never;
1411
1618
  "value"?: never;
1412
1619
  "key"?: never;
@@ -1414,6 +1621,7 @@ export type MethodAgentStepParams__AgentAction = (({
1414
1621
  "kind": ("back" & string);
1415
1622
  } & {
1416
1623
  "target"?: never;
1624
+ "input_mode"?: never;
1417
1625
  "text"?: never;
1418
1626
  "value"?: never;
1419
1627
  "key"?: never;
@@ -1422,13 +1630,27 @@ export type MethodAgentStepParams__AgentAction = (({
1422
1630
  "kind": ("forward" & string);
1423
1631
  } & {
1424
1632
  "target"?: never;
1633
+ "input_mode"?: never;
1425
1634
  "text"?: never;
1426
1635
  "value"?: never;
1427
1636
  "key"?: never;
1428
1637
  "url"?: never;
1429
1638
  }));
1430
1639
  export type MethodAgentStepParams__AgentMode = (("explore" | "verify") & string);
1640
+ export type MethodAgentStepParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
1431
1641
  export type MethodAgentStepParams__Expectation = ({
1642
+ "kind": ("document_ready" & string);
1643
+ [key: string]: unknown;
1644
+ } | {
1645
+ "conditions": Array<MethodAgentStepParams__Expectation>;
1646
+ "kind": ("all" & string);
1647
+ [key: string]: unknown;
1648
+ } | {
1649
+ "enabled": boolean;
1650
+ "kind": ("enabled" & string);
1651
+ "target": MethodAgentStepParams__LocatorSpec;
1652
+ [key: string]: unknown;
1653
+ } | {
1432
1654
  "kind": ("download_started" & string);
1433
1655
  [key: string]: unknown;
1434
1656
  } | {
@@ -1470,6 +1692,7 @@ export type MethodAgentStepParams__Expectation = ({
1470
1692
  "values": Array<string>;
1471
1693
  [key: string]: unknown;
1472
1694
  });
1695
+ export type MethodAgentStepParams__InputMode = (("sequential" & string) | ("bulk" & string));
1473
1696
  export type MethodAgentStepParams__LocatorQuery = ({
1474
1697
  "id": number;
1475
1698
  "kind": ("node" & string);
@@ -1506,8 +1729,9 @@ export type MethodAgentStepResult = {
1506
1729
  "observation"?: (MethodAgentStepResult__AgentObservation | null);
1507
1730
  "observation_error"?: (string | null);
1508
1731
  "operation"?: (MethodAgentStepResult__OperationRecord | null);
1509
- "operation_error"?: (string | null);
1732
+ "operation_error"?: (MethodAgentStepResult__ErrorDetail | null);
1510
1733
  "operation_id": string;
1734
+ "status": MethodAgentStepResult__OperationStatus;
1511
1735
  [key: string]: unknown;
1512
1736
  };
1513
1737
  export type MethodAgentStepResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
@@ -1515,6 +1739,7 @@ export type MethodAgentStepResult__ActionReceipt = {
1515
1739
  "action": string;
1516
1740
  "already_satisfied": boolean;
1517
1741
  "cleanup_pending": boolean;
1742
+ "destination_target_id"?: (string | null);
1518
1743
  "dispatch": MethodAgentStepResult__DispatchState;
1519
1744
  "download_guid"?: (string | null);
1520
1745
  "elapsed_ms": number;
@@ -1526,21 +1751,30 @@ export type MethodAgentStepResult__ActionReceipt = {
1526
1751
  "verification"?: (string | null);
1527
1752
  [key: string]: unknown;
1528
1753
  };
1754
+ export type MethodAgentStepResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1529
1755
  export type MethodAgentStepResult__AgentControl = {
1530
1756
  "checked"?: (boolean | null);
1531
1757
  "disabled": boolean;
1758
+ "editable": boolean;
1532
1759
  "expanded"?: (boolean | null);
1760
+ "focused": boolean;
1761
+ "invalid": boolean;
1533
1762
  "name": string;
1763
+ "readonly": boolean;
1764
+ "required": boolean;
1534
1765
  "role": string;
1535
1766
  "target": string;
1767
+ "validation_message"?: (string | null);
1536
1768
  [key: string]: unknown;
1537
1769
  };
1538
1770
  export type MethodAgentStepResult__AgentObservation = {
1539
1771
  "controls": Array<MethodAgentStepResult__AgentControl>;
1772
+ "next_cursor"?: (string | null);
1540
1773
  "observation_id": string;
1541
1774
  "page"?: (MethodAgentStepResult__PageContext | null);
1542
1775
  "tab_id": string;
1543
1776
  "tabs": Array<MethodAgentStepResult__AgentTab>;
1777
+ "total_controls": number;
1544
1778
  "truncated": boolean;
1545
1779
  "warnings": Array<string>;
1546
1780
  [key: string]: unknown;
@@ -1553,9 +1787,26 @@ export type MethodAgentStepResult__AgentTab = {
1553
1787
  [key: string]: unknown;
1554
1788
  };
1555
1789
  export type MethodAgentStepResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1790
+ export type MethodAgentStepResult__ErrorContext = {
1791
+ "action_status"?: (MethodAgentStepResult__ActionStatus | null);
1792
+ "download_id"?: (string | null);
1793
+ "operation_id"?: (string | null);
1794
+ "page"?: (MethodAgentStepResult__PageContext | null);
1795
+ "phase"?: (string | null);
1796
+ [key: string]: unknown;
1797
+ };
1798
+ export type MethodAgentStepResult__ErrorDetail = {
1799
+ "code": string;
1800
+ "context"?: (MethodAgentStepResult__ErrorContext | null);
1801
+ "hint"?: (string | null);
1802
+ "message": string;
1803
+ "retryable"?: (boolean | null);
1804
+ [key: string]: unknown;
1805
+ };
1556
1806
  export type MethodAgentStepResult__OperationRecord = {
1557
1807
  "action": string;
1558
1808
  "dispatch_intent": boolean;
1809
+ "error"?: (MethodAgentStepResult__ErrorDetail | null);
1559
1810
  "error_code"?: (string | null);
1560
1811
  "finished_at_ms"?: (number | null);
1561
1812
  "id": string;
@@ -1569,6 +1820,7 @@ export type MethodAgentStepResult__OperationRecord = {
1569
1820
  [key: string]: unknown;
1570
1821
  };
1571
1822
  export type MethodAgentStepResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1823
+ export type MethodAgentStepResult__OperationStatus = (("running" | "verified_complete" | "not_dispatched" | "outcome_unknown") & string);
1572
1824
  export type MethodAgentStepResult__PageContext = {
1573
1825
  "headings": Array<string>;
1574
1826
  "messages": Array<string>;
@@ -1591,8 +1843,14 @@ export type MethodBrowserCloseTabResult = {
1591
1843
  [key: string]: unknown;
1592
1844
  };
1593
1845
  export type MethodBrowserConnectParams = {
1846
+ "autoSolveCloudflare"?: (MethodBrowserConnectParams__CloudflareAutoSolve | null);
1594
1847
  "wsEndpoint": string;
1595
1848
  };
1849
+ export type MethodBrowserConnectParams__CloudflareAutoSolve = {
1850
+ "intervalMs"?: number;
1851
+ "timeoutMs"?: number;
1852
+ [key: string]: unknown;
1853
+ };
1596
1854
  export type MethodBrowserConnectResult = {
1597
1855
  "browserVersion": string;
1598
1856
  "ownership": MethodBrowserConnectResult__BrowserOwnership;
@@ -1600,8 +1858,12 @@ export type MethodBrowserConnectResult = {
1600
1858
  };
1601
1859
  export type MethodBrowserConnectResult__BrowserOwnership = (("owned" | "borrowed") & string);
1602
1860
  export type MethodBrowserLaunchParams = {
1861
+ "aggressiveCdpEvasion"?: boolean;
1862
+ "autoSolveCloudflare"?: (MethodBrowserLaunchParams__CloudflareAutoSolve | null);
1603
1863
  "deviceScaleFactor": (number | null);
1604
1864
  "executablePath"?: (string | null);
1865
+ "extraArgs"?: Array<string>;
1866
+ "geoAlign"?: boolean;
1605
1867
  "headless"?: boolean;
1606
1868
  "proxy"?: (MethodBrowserLaunchParams__ProxyParams | null);
1607
1869
  "runtimeDir"?: (string | null);
@@ -1613,6 +1875,11 @@ export type MethodBrowserLaunchParams = {
1613
1875
  "viewportWidth"?: (number | null);
1614
1876
  [key: string]: unknown;
1615
1877
  };
1878
+ export type MethodBrowserLaunchParams__CloudflareAutoSolve = {
1879
+ "intervalMs"?: number;
1880
+ "timeoutMs"?: number;
1881
+ [key: string]: unknown;
1882
+ };
1616
1883
  export type MethodBrowserLaunchParams__ProxyParams = {
1617
1884
  "password"?: (string | null);
1618
1885
  "server": string;
@@ -1651,6 +1918,7 @@ export type MethodOperationsCancelParams = {
1651
1918
  export type MethodOperationsCancelResult = {
1652
1919
  "action": string;
1653
1920
  "dispatch_intent": boolean;
1921
+ "error"?: (MethodOperationsCancelResult__ErrorDetail | null);
1654
1922
  "error_code"?: (string | null);
1655
1923
  "finished_at_ms"?: (number | null);
1656
1924
  "id": string;
@@ -1668,6 +1936,7 @@ export type MethodOperationsCancelResult__ActionReceipt = {
1668
1936
  "action": string;
1669
1937
  "already_satisfied": boolean;
1670
1938
  "cleanup_pending": boolean;
1939
+ "destination_target_id"?: (string | null);
1671
1940
  "dispatch": MethodOperationsCancelResult__DispatchState;
1672
1941
  "download_guid"?: (string | null);
1673
1942
  "elapsed_ms": number;
@@ -1679,8 +1948,36 @@ export type MethodOperationsCancelResult__ActionReceipt = {
1679
1948
  "verification"?: (string | null);
1680
1949
  [key: string]: unknown;
1681
1950
  };
1951
+ export type MethodOperationsCancelResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1682
1952
  export type MethodOperationsCancelResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1953
+ export type MethodOperationsCancelResult__ErrorContext = {
1954
+ "action_status"?: (MethodOperationsCancelResult__ActionStatus | null);
1955
+ "download_id"?: (string | null);
1956
+ "operation_id"?: (string | null);
1957
+ "page"?: (MethodOperationsCancelResult__PageContext | null);
1958
+ "phase"?: (string | null);
1959
+ [key: string]: unknown;
1960
+ };
1961
+ export type MethodOperationsCancelResult__ErrorDetail = {
1962
+ "code": string;
1963
+ "context"?: (MethodOperationsCancelResult__ErrorContext | null);
1964
+ "hint"?: (string | null);
1965
+ "message": string;
1966
+ "retryable"?: (boolean | null);
1967
+ [key: string]: unknown;
1968
+ };
1683
1969
  export type MethodOperationsCancelResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1970
+ export type MethodOperationsCancelResult__PageContext = {
1971
+ "headings": Array<string>;
1972
+ "messages": Array<string>;
1973
+ "ready_state": string;
1974
+ "tab_id": string;
1975
+ "text_excerpt": string;
1976
+ "title": string;
1977
+ "truncated": boolean;
1978
+ "url": string;
1979
+ [key: string]: unknown;
1980
+ };
1684
1981
  export type MethodOperationsGetParams = {
1685
1982
  "id": string;
1686
1983
  [key: string]: unknown;
@@ -1688,6 +1985,7 @@ export type MethodOperationsGetParams = {
1688
1985
  export type MethodOperationsGetResult = {
1689
1986
  "action": string;
1690
1987
  "dispatch_intent": boolean;
1988
+ "error"?: (MethodOperationsGetResult__ErrorDetail | null);
1691
1989
  "error_code"?: (string | null);
1692
1990
  "finished_at_ms"?: (number | null);
1693
1991
  "id": string;
@@ -1705,6 +2003,7 @@ export type MethodOperationsGetResult__ActionReceipt = {
1705
2003
  "action": string;
1706
2004
  "already_satisfied": boolean;
1707
2005
  "cleanup_pending": boolean;
2006
+ "destination_target_id"?: (string | null);
1708
2007
  "dispatch": MethodOperationsGetResult__DispatchState;
1709
2008
  "download_guid"?: (string | null);
1710
2009
  "elapsed_ms": number;
@@ -1716,8 +2015,36 @@ export type MethodOperationsGetResult__ActionReceipt = {
1716
2015
  "verification"?: (string | null);
1717
2016
  [key: string]: unknown;
1718
2017
  };
2018
+ export type MethodOperationsGetResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1719
2019
  export type MethodOperationsGetResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2020
+ export type MethodOperationsGetResult__ErrorContext = {
2021
+ "action_status"?: (MethodOperationsGetResult__ActionStatus | null);
2022
+ "download_id"?: (string | null);
2023
+ "operation_id"?: (string | null);
2024
+ "page"?: (MethodOperationsGetResult__PageContext | null);
2025
+ "phase"?: (string | null);
2026
+ [key: string]: unknown;
2027
+ };
2028
+ export type MethodOperationsGetResult__ErrorDetail = {
2029
+ "code": string;
2030
+ "context"?: (MethodOperationsGetResult__ErrorContext | null);
2031
+ "hint"?: (string | null);
2032
+ "message": string;
2033
+ "retryable"?: (boolean | null);
2034
+ [key: string]: unknown;
2035
+ };
1720
2036
  export type MethodOperationsGetResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2037
+ export type MethodOperationsGetResult__PageContext = {
2038
+ "headings": Array<string>;
2039
+ "messages": Array<string>;
2040
+ "ready_state": string;
2041
+ "tab_id": string;
2042
+ "text_excerpt": string;
2043
+ "title": string;
2044
+ "truncated": boolean;
2045
+ "url": string;
2046
+ [key: string]: unknown;
2047
+ };
1721
2048
  export type MethodOperationsListParams = {
1722
2049
  "before_ms"?: (number | null);
1723
2050
  "limit"?: (number | null);
@@ -1729,6 +2056,7 @@ export type MethodOperationsListResult__ActionReceipt = {
1729
2056
  "action": string;
1730
2057
  "already_satisfied": boolean;
1731
2058
  "cleanup_pending": boolean;
2059
+ "destination_target_id"?: (string | null);
1732
2060
  "dispatch": MethodOperationsListResult__DispatchState;
1733
2061
  "download_guid"?: (string | null);
1734
2062
  "elapsed_ms": number;
@@ -1740,10 +2068,28 @@ export type MethodOperationsListResult__ActionReceipt = {
1740
2068
  "verification"?: (string | null);
1741
2069
  [key: string]: unknown;
1742
2070
  };
2071
+ export type MethodOperationsListResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1743
2072
  export type MethodOperationsListResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2073
+ export type MethodOperationsListResult__ErrorContext = {
2074
+ "action_status"?: (MethodOperationsListResult__ActionStatus | null);
2075
+ "download_id"?: (string | null);
2076
+ "operation_id"?: (string | null);
2077
+ "page"?: (MethodOperationsListResult__PageContext | null);
2078
+ "phase"?: (string | null);
2079
+ [key: string]: unknown;
2080
+ };
2081
+ export type MethodOperationsListResult__ErrorDetail = {
2082
+ "code": string;
2083
+ "context"?: (MethodOperationsListResult__ErrorContext | null);
2084
+ "hint"?: (string | null);
2085
+ "message": string;
2086
+ "retryable"?: (boolean | null);
2087
+ [key: string]: unknown;
2088
+ };
1744
2089
  export type MethodOperationsListResult__OperationRecord = {
1745
2090
  "action": string;
1746
2091
  "dispatch_intent": boolean;
2092
+ "error"?: (MethodOperationsListResult__ErrorDetail | null);
1747
2093
  "error_code"?: (string | null);
1748
2094
  "finished_at_ms"?: (number | null);
1749
2095
  "id": string;
@@ -1757,6 +2103,17 @@ export type MethodOperationsListResult__OperationRecord = {
1757
2103
  [key: string]: unknown;
1758
2104
  };
1759
2105
  export type MethodOperationsListResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2106
+ export type MethodOperationsListResult__PageContext = {
2107
+ "headings": Array<string>;
2108
+ "messages": Array<string>;
2109
+ "ready_state": string;
2110
+ "tab_id": string;
2111
+ "text_excerpt": string;
2112
+ "title": string;
2113
+ "truncated": boolean;
2114
+ "url": string;
2115
+ [key: string]: unknown;
2116
+ };
1760
2117
  export type MethodOperationsWaitParams = {
1761
2118
  "id": string;
1762
2119
  "timeout_ms"?: number;
@@ -1765,6 +2122,7 @@ export type MethodOperationsWaitParams = {
1765
2122
  export type MethodOperationsWaitResult = {
1766
2123
  "action": string;
1767
2124
  "dispatch_intent": boolean;
2125
+ "error"?: (MethodOperationsWaitResult__ErrorDetail | null);
1768
2126
  "error_code"?: (string | null);
1769
2127
  "finished_at_ms"?: (number | null);
1770
2128
  "id": string;
@@ -1782,6 +2140,7 @@ export type MethodOperationsWaitResult__ActionReceipt = {
1782
2140
  "action": string;
1783
2141
  "already_satisfied": boolean;
1784
2142
  "cleanup_pending": boolean;
2143
+ "destination_target_id"?: (string | null);
1785
2144
  "dispatch": MethodOperationsWaitResult__DispatchState;
1786
2145
  "download_guid"?: (string | null);
1787
2146
  "elapsed_ms": number;
@@ -1793,8 +2152,36 @@ export type MethodOperationsWaitResult__ActionReceipt = {
1793
2152
  "verification"?: (string | null);
1794
2153
  [key: string]: unknown;
1795
2154
  };
2155
+ export type MethodOperationsWaitResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1796
2156
  export type MethodOperationsWaitResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2157
+ export type MethodOperationsWaitResult__ErrorContext = {
2158
+ "action_status"?: (MethodOperationsWaitResult__ActionStatus | null);
2159
+ "download_id"?: (string | null);
2160
+ "operation_id"?: (string | null);
2161
+ "page"?: (MethodOperationsWaitResult__PageContext | null);
2162
+ "phase"?: (string | null);
2163
+ [key: string]: unknown;
2164
+ };
2165
+ export type MethodOperationsWaitResult__ErrorDetail = {
2166
+ "code": string;
2167
+ "context"?: (MethodOperationsWaitResult__ErrorContext | null);
2168
+ "hint"?: (string | null);
2169
+ "message": string;
2170
+ "retryable"?: (boolean | null);
2171
+ [key: string]: unknown;
2172
+ };
1797
2173
  export type MethodOperationsWaitResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2174
+ export type MethodOperationsWaitResult__PageContext = {
2175
+ "headings": Array<string>;
2176
+ "messages": Array<string>;
2177
+ "ready_state": string;
2178
+ "tab_id": string;
2179
+ "text_excerpt": string;
2180
+ "title": string;
2181
+ "truncated": boolean;
2182
+ "url": string;
2183
+ [key: string]: unknown;
2184
+ };
1798
2185
  export type MethodPageCaptureStateParams = {
1799
2186
  "pageId": string;
1800
2187
  [key: string]: unknown;
@@ -1830,12 +2217,26 @@ export type MethodPageClickParams = {
1830
2217
  [key: string]: unknown;
1831
2218
  };
1832
2219
  export type MethodPageClickParams__ActionOptions = {
2220
+ "destination"?: MethodPageClickParams__Destination;
1833
2221
  "expect"?: (MethodPageClickParams__Expectation | null);
1834
2222
  "timeout_ms"?: number;
1835
2223
  "wait_for_target"?: boolean;
1836
2224
  [key: string]: unknown;
1837
2225
  };
2226
+ export type MethodPageClickParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
1838
2227
  export type MethodPageClickParams__Expectation = ({
2228
+ "kind": ("document_ready" & string);
2229
+ [key: string]: unknown;
2230
+ } | {
2231
+ "conditions": Array<MethodPageClickParams__Expectation>;
2232
+ "kind": ("all" & string);
2233
+ [key: string]: unknown;
2234
+ } | {
2235
+ "enabled": boolean;
2236
+ "kind": ("enabled" & string);
2237
+ "target": MethodPageClickParams__LocatorSpec;
2238
+ [key: string]: unknown;
2239
+ } | {
1839
2240
  "kind": ("download_started" & string);
1840
2241
  [key: string]: unknown;
1841
2242
  } | {
@@ -1912,6 +2313,7 @@ export type MethodPageClickParams__LocatorSpec = {
1912
2313
  export type MethodPageClickResult = {
1913
2314
  "action": string;
1914
2315
  "dispatch_intent": boolean;
2316
+ "error"?: (MethodPageClickResult__ErrorDetail | null);
1915
2317
  "error_code"?: (string | null);
1916
2318
  "finished_at_ms"?: (number | null);
1917
2319
  "id": string;
@@ -1929,6 +2331,7 @@ export type MethodPageClickResult__ActionReceipt = {
1929
2331
  "action": string;
1930
2332
  "already_satisfied": boolean;
1931
2333
  "cleanup_pending": boolean;
2334
+ "destination_target_id"?: (string | null);
1932
2335
  "dispatch": MethodPageClickResult__DispatchState;
1933
2336
  "download_guid"?: (string | null);
1934
2337
  "elapsed_ms": number;
@@ -1940,8 +2343,50 @@ export type MethodPageClickResult__ActionReceipt = {
1940
2343
  "verification"?: (string | null);
1941
2344
  [key: string]: unknown;
1942
2345
  };
2346
+ export type MethodPageClickResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1943
2347
  export type MethodPageClickResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2348
+ export type MethodPageClickResult__ErrorContext = {
2349
+ "action_status"?: (MethodPageClickResult__ActionStatus | null);
2350
+ "download_id"?: (string | null);
2351
+ "operation_id"?: (string | null);
2352
+ "page"?: (MethodPageClickResult__PageContext | null);
2353
+ "phase"?: (string | null);
2354
+ [key: string]: unknown;
2355
+ };
2356
+ export type MethodPageClickResult__ErrorDetail = {
2357
+ "code": string;
2358
+ "context"?: (MethodPageClickResult__ErrorContext | null);
2359
+ "hint"?: (string | null);
2360
+ "message": string;
2361
+ "retryable"?: (boolean | null);
2362
+ [key: string]: unknown;
2363
+ };
1944
2364
  export type MethodPageClickResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2365
+ export type MethodPageClickResult__PageContext = {
2366
+ "headings": Array<string>;
2367
+ "messages": Array<string>;
2368
+ "ready_state": string;
2369
+ "tab_id": string;
2370
+ "text_excerpt": string;
2371
+ "title": string;
2372
+ "truncated": boolean;
2373
+ "url": string;
2374
+ [key: string]: unknown;
2375
+ };
2376
+ export type MethodPageClickShadowParams = {
2377
+ "frameId"?: (string | null);
2378
+ "pageId": string;
2379
+ "selector": string;
2380
+ "timeoutMs"?: number;
2381
+ [key: string]: unknown;
2382
+ };
2383
+ export type MethodPageClickShadowResult = {
2384
+ "frameId": string;
2385
+ "selector": string;
2386
+ "x": number;
2387
+ "y": number;
2388
+ [key: string]: unknown;
2389
+ };
1945
2390
  export type MethodPageClickTextParams = {
1946
2391
  "operation_id": string;
1947
2392
  "options"?: MethodPageClickTextParams__ActionOptions;
@@ -1950,12 +2395,26 @@ export type MethodPageClickTextParams = {
1950
2395
  [key: string]: unknown;
1951
2396
  };
1952
2397
  export type MethodPageClickTextParams__ActionOptions = {
2398
+ "destination"?: MethodPageClickTextParams__Destination;
1953
2399
  "expect"?: (MethodPageClickTextParams__Expectation | null);
1954
2400
  "timeout_ms"?: number;
1955
2401
  "wait_for_target"?: boolean;
1956
2402
  [key: string]: unknown;
1957
2403
  };
2404
+ export type MethodPageClickTextParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
1958
2405
  export type MethodPageClickTextParams__Expectation = ({
2406
+ "kind": ("document_ready" & string);
2407
+ [key: string]: unknown;
2408
+ } | {
2409
+ "conditions": Array<MethodPageClickTextParams__Expectation>;
2410
+ "kind": ("all" & string);
2411
+ [key: string]: unknown;
2412
+ } | {
2413
+ "enabled": boolean;
2414
+ "kind": ("enabled" & string);
2415
+ "target": MethodPageClickTextParams__LocatorSpec;
2416
+ [key: string]: unknown;
2417
+ } | {
1959
2418
  "kind": ("download_started" & string);
1960
2419
  [key: string]: unknown;
1961
2420
  } | {
@@ -2032,6 +2491,7 @@ export type MethodPageClickTextParams__LocatorSpec = {
2032
2491
  export type MethodPageClickTextResult = {
2033
2492
  "action": string;
2034
2493
  "dispatch_intent": boolean;
2494
+ "error"?: (MethodPageClickTextResult__ErrorDetail | null);
2035
2495
  "error_code"?: (string | null);
2036
2496
  "finished_at_ms"?: (number | null);
2037
2497
  "id": string;
@@ -2049,6 +2509,7 @@ export type MethodPageClickTextResult__ActionReceipt = {
2049
2509
  "action": string;
2050
2510
  "already_satisfied": boolean;
2051
2511
  "cleanup_pending": boolean;
2512
+ "destination_target_id"?: (string | null);
2052
2513
  "dispatch": MethodPageClickTextResult__DispatchState;
2053
2514
  "download_guid"?: (string | null);
2054
2515
  "elapsed_ms": number;
@@ -2060,23 +2521,52 @@ export type MethodPageClickTextResult__ActionReceipt = {
2060
2521
  "verification"?: (string | null);
2061
2522
  [key: string]: unknown;
2062
2523
  };
2524
+ export type MethodPageClickTextResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2063
2525
  export type MethodPageClickTextResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2064
- export type MethodPageClickTextResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2065
- export type MethodPageCloseParams = {
2066
- "pageId": string;
2526
+ export type MethodPageClickTextResult__ErrorContext = {
2527
+ "action_status"?: (MethodPageClickTextResult__ActionStatus | null);
2528
+ "download_id"?: (string | null);
2529
+ "operation_id"?: (string | null);
2530
+ "page"?: (MethodPageClickTextResult__PageContext | null);
2531
+ "phase"?: (string | null);
2067
2532
  [key: string]: unknown;
2068
2533
  };
2069
- export type MethodPageCloseResult = Record<string, never>;
2070
- export type MethodPageContentParams = {
2071
- "pageId": string;
2534
+ export type MethodPageClickTextResult__ErrorDetail = {
2535
+ "code": string;
2536
+ "context"?: (MethodPageClickTextResult__ErrorContext | null);
2537
+ "hint"?: (string | null);
2538
+ "message": string;
2539
+ "retryable"?: (boolean | null);
2072
2540
  [key: string]: unknown;
2073
2541
  };
2074
- export type MethodPageContentResult = {
2542
+ export type MethodPageClickTextResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2543
+ export type MethodPageClickTextResult__PageContext = {
2544
+ "headings": Array<string>;
2545
+ "messages": Array<string>;
2546
+ "ready_state": string;
2547
+ "tab_id": string;
2548
+ "text_excerpt": string;
2549
+ "title": string;
2550
+ "truncated": boolean;
2551
+ "url": string;
2552
+ [key: string]: unknown;
2553
+ };
2554
+ export type MethodPageCloseParams = {
2555
+ "pageId": string;
2556
+ [key: string]: unknown;
2557
+ };
2558
+ export type MethodPageCloseResult = Record<string, never>;
2559
+ export type MethodPageContentParams = {
2560
+ "pageId": string;
2561
+ [key: string]: unknown;
2562
+ };
2563
+ export type MethodPageContentResult = {
2075
2564
  "html": string;
2076
2565
  [key: string]: unknown;
2077
2566
  };
2078
2567
  export type MethodPageEvaluateParams = {
2079
- "js": string;
2568
+ "arguments"?: Array<unknown>;
2569
+ "function": string;
2080
2570
  "pageId": string;
2081
2571
  [key: string]: unknown;
2082
2572
  };
@@ -2084,12 +2574,38 @@ export type MethodPageEvaluateResult = {
2084
2574
  "result": unknown;
2085
2575
  [key: string]: unknown;
2086
2576
  };
2087
- export type MethodPageExecuteParams = {
2577
+ export type MethodPageEvaluateInFrameParams = {
2578
+ "frameId": string;
2579
+ "js": string;
2580
+ "pageId": string;
2581
+ [key: string]: unknown;
2582
+ };
2583
+ export type MethodPageEvaluateInFrameResult = {
2584
+ "result": unknown;
2585
+ [key: string]: unknown;
2586
+ };
2587
+ export type MethodPageEvaluateRawParams = {
2088
2588
  "js": string;
2089
2589
  "pageId": string;
2090
2590
  [key: string]: unknown;
2091
2591
  };
2592
+ export type MethodPageEvaluateRawResult = {
2593
+ "result": unknown;
2594
+ [key: string]: unknown;
2595
+ };
2596
+ export type MethodPageExecuteParams = {
2597
+ "arguments"?: Array<unknown>;
2598
+ "function": string;
2599
+ "pageId": string;
2600
+ [key: string]: unknown;
2601
+ };
2092
2602
  export type MethodPageExecuteResult = Record<string, never>;
2603
+ export type MethodPageExecuteRawParams = {
2604
+ "js": string;
2605
+ "pageId": string;
2606
+ [key: string]: unknown;
2607
+ };
2608
+ export type MethodPageExecuteRawResult = Record<string, never>;
2093
2609
  export type MethodPageExistsParams = {
2094
2610
  "pageId": string;
2095
2611
  "selector": string;
@@ -2140,6 +2656,7 @@ export type MethodPageFetchBoundedResult = {
2140
2656
  [key: string]: unknown;
2141
2657
  };
2142
2658
  export type MethodPageFillParams = {
2659
+ "inputMode"?: MethodPageFillParams__InputMode;
2143
2660
  "operation_id": string;
2144
2661
  "options"?: MethodPageFillParams__ActionOptions;
2145
2662
  "pageId": string;
@@ -2148,12 +2665,26 @@ export type MethodPageFillParams = {
2148
2665
  [key: string]: unknown;
2149
2666
  };
2150
2667
  export type MethodPageFillParams__ActionOptions = {
2668
+ "destination"?: MethodPageFillParams__Destination;
2151
2669
  "expect"?: (MethodPageFillParams__Expectation | null);
2152
2670
  "timeout_ms"?: number;
2153
2671
  "wait_for_target"?: boolean;
2154
2672
  [key: string]: unknown;
2155
2673
  };
2674
+ export type MethodPageFillParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2156
2675
  export type MethodPageFillParams__Expectation = ({
2676
+ "kind": ("document_ready" & string);
2677
+ [key: string]: unknown;
2678
+ } | {
2679
+ "conditions": Array<MethodPageFillParams__Expectation>;
2680
+ "kind": ("all" & string);
2681
+ [key: string]: unknown;
2682
+ } | {
2683
+ "enabled": boolean;
2684
+ "kind": ("enabled" & string);
2685
+ "target": MethodPageFillParams__LocatorSpec;
2686
+ [key: string]: unknown;
2687
+ } | {
2157
2688
  "kind": ("download_started" & string);
2158
2689
  [key: string]: unknown;
2159
2690
  } | {
@@ -2195,6 +2726,7 @@ export type MethodPageFillParams__Expectation = ({
2195
2726
  "values": Array<string>;
2196
2727
  [key: string]: unknown;
2197
2728
  });
2729
+ export type MethodPageFillParams__InputMode = (("sequential" & string) | ("bulk" & string));
2198
2730
  export type MethodPageFillParams__LocatorQuery = ({
2199
2731
  "id": number;
2200
2732
  "kind": ("node" & string);
@@ -2230,6 +2762,7 @@ export type MethodPageFillParams__LocatorSpec = {
2230
2762
  export type MethodPageFillResult = {
2231
2763
  "action": string;
2232
2764
  "dispatch_intent": boolean;
2765
+ "error"?: (MethodPageFillResult__ErrorDetail | null);
2233
2766
  "error_code"?: (string | null);
2234
2767
  "finished_at_ms"?: (number | null);
2235
2768
  "id": string;
@@ -2247,6 +2780,7 @@ export type MethodPageFillResult__ActionReceipt = {
2247
2780
  "action": string;
2248
2781
  "already_satisfied": boolean;
2249
2782
  "cleanup_pending": boolean;
2783
+ "destination_target_id"?: (string | null);
2250
2784
  "dispatch": MethodPageFillResult__DispatchState;
2251
2785
  "download_guid"?: (string | null);
2252
2786
  "elapsed_ms": number;
@@ -2258,8 +2792,47 @@ export type MethodPageFillResult__ActionReceipt = {
2258
2792
  "verification"?: (string | null);
2259
2793
  [key: string]: unknown;
2260
2794
  };
2795
+ export type MethodPageFillResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2261
2796
  export type MethodPageFillResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2797
+ export type MethodPageFillResult__ErrorContext = {
2798
+ "action_status"?: (MethodPageFillResult__ActionStatus | null);
2799
+ "download_id"?: (string | null);
2800
+ "operation_id"?: (string | null);
2801
+ "page"?: (MethodPageFillResult__PageContext | null);
2802
+ "phase"?: (string | null);
2803
+ [key: string]: unknown;
2804
+ };
2805
+ export type MethodPageFillResult__ErrorDetail = {
2806
+ "code": string;
2807
+ "context"?: (MethodPageFillResult__ErrorContext | null);
2808
+ "hint"?: (string | null);
2809
+ "message": string;
2810
+ "retryable"?: (boolean | null);
2811
+ [key: string]: unknown;
2812
+ };
2262
2813
  export type MethodPageFillResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2814
+ export type MethodPageFillResult__PageContext = {
2815
+ "headings": Array<string>;
2816
+ "messages": Array<string>;
2817
+ "ready_state": string;
2818
+ "tab_id": string;
2819
+ "text_excerpt": string;
2820
+ "title": string;
2821
+ "truncated": boolean;
2822
+ "url": string;
2823
+ [key: string]: unknown;
2824
+ };
2825
+ export type MethodPageFramesParams = {
2826
+ "pageId": string;
2827
+ [key: string]: unknown;
2828
+ };
2829
+ export type MethodPageFramesResult = Array<MethodPageFramesResult__FrameInfo>;
2830
+ export type MethodPageFramesResult__FrameInfo = {
2831
+ "id": string;
2832
+ "name"?: (string | null);
2833
+ "url": string;
2834
+ [key: string]: unknown;
2835
+ };
2263
2836
  export type MethodPageGetAttributeParams = {
2264
2837
  "name": string;
2265
2838
  "pageId": string;
@@ -2287,12 +2860,26 @@ export type MethodPageGotoParams = {
2287
2860
  [key: string]: unknown;
2288
2861
  };
2289
2862
  export type MethodPageGotoParams__ActionOptions = {
2863
+ "destination"?: MethodPageGotoParams__Destination;
2290
2864
  "expect"?: (MethodPageGotoParams__Expectation | null);
2291
2865
  "timeout_ms"?: number;
2292
2866
  "wait_for_target"?: boolean;
2293
2867
  [key: string]: unknown;
2294
2868
  };
2869
+ export type MethodPageGotoParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2295
2870
  export type MethodPageGotoParams__Expectation = ({
2871
+ "kind": ("document_ready" & string);
2872
+ [key: string]: unknown;
2873
+ } | {
2874
+ "conditions": Array<MethodPageGotoParams__Expectation>;
2875
+ "kind": ("all" & string);
2876
+ [key: string]: unknown;
2877
+ } | {
2878
+ "enabled": boolean;
2879
+ "kind": ("enabled" & string);
2880
+ "target": MethodPageGotoParams__LocatorSpec;
2881
+ [key: string]: unknown;
2882
+ } | {
2296
2883
  "kind": ("download_started" & string);
2297
2884
  [key: string]: unknown;
2298
2885
  } | {
@@ -2369,6 +2956,7 @@ export type MethodPageGotoParams__LocatorSpec = {
2369
2956
  export type MethodPageGotoResult = {
2370
2957
  "action": string;
2371
2958
  "dispatch_intent": boolean;
2959
+ "error"?: (MethodPageGotoResult__ErrorDetail | null);
2372
2960
  "error_code"?: (string | null);
2373
2961
  "finished_at_ms"?: (number | null);
2374
2962
  "id": string;
@@ -2386,6 +2974,7 @@ export type MethodPageGotoResult__ActionReceipt = {
2386
2974
  "action": string;
2387
2975
  "already_satisfied": boolean;
2388
2976
  "cleanup_pending": boolean;
2977
+ "destination_target_id"?: (string | null);
2389
2978
  "dispatch": MethodPageGotoResult__DispatchState;
2390
2979
  "download_guid"?: (string | null);
2391
2980
  "elapsed_ms": number;
@@ -2397,8 +2986,36 @@ export type MethodPageGotoResult__ActionReceipt = {
2397
2986
  "verification"?: (string | null);
2398
2987
  [key: string]: unknown;
2399
2988
  };
2989
+ export type MethodPageGotoResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2400
2990
  export type MethodPageGotoResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2991
+ export type MethodPageGotoResult__ErrorContext = {
2992
+ "action_status"?: (MethodPageGotoResult__ActionStatus | null);
2993
+ "download_id"?: (string | null);
2994
+ "operation_id"?: (string | null);
2995
+ "page"?: (MethodPageGotoResult__PageContext | null);
2996
+ "phase"?: (string | null);
2997
+ [key: string]: unknown;
2998
+ };
2999
+ export type MethodPageGotoResult__ErrorDetail = {
3000
+ "code": string;
3001
+ "context"?: (MethodPageGotoResult__ErrorContext | null);
3002
+ "hint"?: (string | null);
3003
+ "message": string;
3004
+ "retryable"?: (boolean | null);
3005
+ [key: string]: unknown;
3006
+ };
2401
3007
  export type MethodPageGotoResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
3008
+ export type MethodPageGotoResult__PageContext = {
3009
+ "headings": Array<string>;
3010
+ "messages": Array<string>;
3011
+ "ready_state": string;
3012
+ "tab_id": string;
3013
+ "text_excerpt": string;
3014
+ "title": string;
3015
+ "truncated": boolean;
3016
+ "url": string;
3017
+ [key: string]: unknown;
3018
+ };
2402
3019
  export type MethodPageHoverParams = {
2403
3020
  "operation_id": string;
2404
3021
  "options"?: MethodPageHoverParams__ActionOptions;
@@ -2407,12 +3024,26 @@ export type MethodPageHoverParams = {
2407
3024
  [key: string]: unknown;
2408
3025
  };
2409
3026
  export type MethodPageHoverParams__ActionOptions = {
3027
+ "destination"?: MethodPageHoverParams__Destination;
2410
3028
  "expect"?: (MethodPageHoverParams__Expectation | null);
2411
3029
  "timeout_ms"?: number;
2412
3030
  "wait_for_target"?: boolean;
2413
3031
  [key: string]: unknown;
2414
3032
  };
3033
+ export type MethodPageHoverParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2415
3034
  export type MethodPageHoverParams__Expectation = ({
3035
+ "kind": ("document_ready" & string);
3036
+ [key: string]: unknown;
3037
+ } | {
3038
+ "conditions": Array<MethodPageHoverParams__Expectation>;
3039
+ "kind": ("all" & string);
3040
+ [key: string]: unknown;
3041
+ } | {
3042
+ "enabled": boolean;
3043
+ "kind": ("enabled" & string);
3044
+ "target": MethodPageHoverParams__LocatorSpec;
3045
+ [key: string]: unknown;
3046
+ } | {
2416
3047
  "kind": ("download_started" & string);
2417
3048
  [key: string]: unknown;
2418
3049
  } | {
@@ -2489,6 +3120,7 @@ export type MethodPageHoverParams__LocatorSpec = {
2489
3120
  export type MethodPageHoverResult = {
2490
3121
  "action": string;
2491
3122
  "dispatch_intent": boolean;
3123
+ "error"?: (MethodPageHoverResult__ErrorDetail | null);
2492
3124
  "error_code"?: (string | null);
2493
3125
  "finished_at_ms"?: (number | null);
2494
3126
  "id": string;
@@ -2506,6 +3138,7 @@ export type MethodPageHoverResult__ActionReceipt = {
2506
3138
  "action": string;
2507
3139
  "already_satisfied": boolean;
2508
3140
  "cleanup_pending": boolean;
3141
+ "destination_target_id"?: (string | null);
2509
3142
  "dispatch": MethodPageHoverResult__DispatchState;
2510
3143
  "download_guid"?: (string | null);
2511
3144
  "elapsed_ms": number;
@@ -2517,8 +3150,36 @@ export type MethodPageHoverResult__ActionReceipt = {
2517
3150
  "verification"?: (string | null);
2518
3151
  [key: string]: unknown;
2519
3152
  };
3153
+ export type MethodPageHoverResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2520
3154
  export type MethodPageHoverResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
3155
+ export type MethodPageHoverResult__ErrorContext = {
3156
+ "action_status"?: (MethodPageHoverResult__ActionStatus | null);
3157
+ "download_id"?: (string | null);
3158
+ "operation_id"?: (string | null);
3159
+ "page"?: (MethodPageHoverResult__PageContext | null);
3160
+ "phase"?: (string | null);
3161
+ [key: string]: unknown;
3162
+ };
3163
+ export type MethodPageHoverResult__ErrorDetail = {
3164
+ "code": string;
3165
+ "context"?: (MethodPageHoverResult__ErrorContext | null);
3166
+ "hint"?: (string | null);
3167
+ "message": string;
3168
+ "retryable"?: (boolean | null);
3169
+ [key: string]: unknown;
3170
+ };
2521
3171
  export type MethodPageHoverResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
3172
+ export type MethodPageHoverResult__PageContext = {
3173
+ "headings": Array<string>;
3174
+ "messages": Array<string>;
3175
+ "ready_state": string;
3176
+ "tab_id": string;
3177
+ "text_excerpt": string;
3178
+ "title": string;
3179
+ "truncated": boolean;
3180
+ "url": string;
3181
+ [key: string]: unknown;
3182
+ };
2522
3183
  export type MethodPageHumanClickParams = {
2523
3184
  "operation_id": string;
2524
3185
  "options"?: MethodPageHumanClickParams__ActionOptions;
@@ -2527,12 +3188,26 @@ export type MethodPageHumanClickParams = {
2527
3188
  [key: string]: unknown;
2528
3189
  };
2529
3190
  export type MethodPageHumanClickParams__ActionOptions = {
3191
+ "destination"?: MethodPageHumanClickParams__Destination;
2530
3192
  "expect"?: (MethodPageHumanClickParams__Expectation | null);
2531
3193
  "timeout_ms"?: number;
2532
3194
  "wait_for_target"?: boolean;
2533
3195
  [key: string]: unknown;
2534
3196
  };
3197
+ export type MethodPageHumanClickParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2535
3198
  export type MethodPageHumanClickParams__Expectation = ({
3199
+ "kind": ("document_ready" & string);
3200
+ [key: string]: unknown;
3201
+ } | {
3202
+ "conditions": Array<MethodPageHumanClickParams__Expectation>;
3203
+ "kind": ("all" & string);
3204
+ [key: string]: unknown;
3205
+ } | {
3206
+ "enabled": boolean;
3207
+ "kind": ("enabled" & string);
3208
+ "target": MethodPageHumanClickParams__LocatorSpec;
3209
+ [key: string]: unknown;
3210
+ } | {
2536
3211
  "kind": ("download_started" & string);
2537
3212
  [key: string]: unknown;
2538
3213
  } | {
@@ -2609,6 +3284,7 @@ export type MethodPageHumanClickParams__LocatorSpec = {
2609
3284
  export type MethodPageHumanClickResult = {
2610
3285
  "action": string;
2611
3286
  "dispatch_intent": boolean;
3287
+ "error"?: (MethodPageHumanClickResult__ErrorDetail | null);
2612
3288
  "error_code"?: (string | null);
2613
3289
  "finished_at_ms"?: (number | null);
2614
3290
  "id": string;
@@ -2626,6 +3302,7 @@ export type MethodPageHumanClickResult__ActionReceipt = {
2626
3302
  "action": string;
2627
3303
  "already_satisfied": boolean;
2628
3304
  "cleanup_pending": boolean;
3305
+ "destination_target_id"?: (string | null);
2629
3306
  "dispatch": MethodPageHumanClickResult__DispatchState;
2630
3307
  "download_guid"?: (string | null);
2631
3308
  "elapsed_ms": number;
@@ -2637,8 +3314,36 @@ export type MethodPageHumanClickResult__ActionReceipt = {
2637
3314
  "verification"?: (string | null);
2638
3315
  [key: string]: unknown;
2639
3316
  };
3317
+ export type MethodPageHumanClickResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2640
3318
  export type MethodPageHumanClickResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
3319
+ export type MethodPageHumanClickResult__ErrorContext = {
3320
+ "action_status"?: (MethodPageHumanClickResult__ActionStatus | null);
3321
+ "download_id"?: (string | null);
3322
+ "operation_id"?: (string | null);
3323
+ "page"?: (MethodPageHumanClickResult__PageContext | null);
3324
+ "phase"?: (string | null);
3325
+ [key: string]: unknown;
3326
+ };
3327
+ export type MethodPageHumanClickResult__ErrorDetail = {
3328
+ "code": string;
3329
+ "context"?: (MethodPageHumanClickResult__ErrorContext | null);
3330
+ "hint"?: (string | null);
3331
+ "message": string;
3332
+ "retryable"?: (boolean | null);
3333
+ [key: string]: unknown;
3334
+ };
2641
3335
  export type MethodPageHumanClickResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
3336
+ export type MethodPageHumanClickResult__PageContext = {
3337
+ "headings": Array<string>;
3338
+ "messages": Array<string>;
3339
+ "ready_state": string;
3340
+ "tab_id": string;
3341
+ "text_excerpt": string;
3342
+ "title": string;
3343
+ "truncated": boolean;
3344
+ "url": string;
3345
+ [key: string]: unknown;
3346
+ };
2642
3347
  export type MethodPageHumanClickTextParams = {
2643
3348
  "operation_id": string;
2644
3349
  "options"?: MethodPageHumanClickTextParams__ActionOptions;
@@ -2647,12 +3352,26 @@ export type MethodPageHumanClickTextParams = {
2647
3352
  [key: string]: unknown;
2648
3353
  };
2649
3354
  export type MethodPageHumanClickTextParams__ActionOptions = {
3355
+ "destination"?: MethodPageHumanClickTextParams__Destination;
2650
3356
  "expect"?: (MethodPageHumanClickTextParams__Expectation | null);
2651
3357
  "timeout_ms"?: number;
2652
3358
  "wait_for_target"?: boolean;
2653
3359
  [key: string]: unknown;
2654
3360
  };
3361
+ export type MethodPageHumanClickTextParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2655
3362
  export type MethodPageHumanClickTextParams__Expectation = ({
3363
+ "kind": ("document_ready" & string);
3364
+ [key: string]: unknown;
3365
+ } | {
3366
+ "conditions": Array<MethodPageHumanClickTextParams__Expectation>;
3367
+ "kind": ("all" & string);
3368
+ [key: string]: unknown;
3369
+ } | {
3370
+ "enabled": boolean;
3371
+ "kind": ("enabled" & string);
3372
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
3373
+ [key: string]: unknown;
3374
+ } | {
2656
3375
  "kind": ("download_started" & string);
2657
3376
  [key: string]: unknown;
2658
3377
  } | {
@@ -2729,6 +3448,7 @@ export type MethodPageHumanClickTextParams__LocatorSpec = {
2729
3448
  export type MethodPageHumanClickTextResult = {
2730
3449
  "action": string;
2731
3450
  "dispatch_intent": boolean;
3451
+ "error"?: (MethodPageHumanClickTextResult__ErrorDetail | null);
2732
3452
  "error_code"?: (string | null);
2733
3453
  "finished_at_ms"?: (number | null);
2734
3454
  "id": string;
@@ -2746,6 +3466,7 @@ export type MethodPageHumanClickTextResult__ActionReceipt = {
2746
3466
  "action": string;
2747
3467
  "already_satisfied": boolean;
2748
3468
  "cleanup_pending": boolean;
3469
+ "destination_target_id"?: (string | null);
2749
3470
  "dispatch": MethodPageHumanClickTextResult__DispatchState;
2750
3471
  "download_guid"?: (string | null);
2751
3472
  "elapsed_ms": number;
@@ -2757,9 +3478,38 @@ export type MethodPageHumanClickTextResult__ActionReceipt = {
2757
3478
  "verification"?: (string | null);
2758
3479
  [key: string]: unknown;
2759
3480
  };
3481
+ export type MethodPageHumanClickTextResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2760
3482
  export type MethodPageHumanClickTextResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
3483
+ export type MethodPageHumanClickTextResult__ErrorContext = {
3484
+ "action_status"?: (MethodPageHumanClickTextResult__ActionStatus | null);
3485
+ "download_id"?: (string | null);
3486
+ "operation_id"?: (string | null);
3487
+ "page"?: (MethodPageHumanClickTextResult__PageContext | null);
3488
+ "phase"?: (string | null);
3489
+ [key: string]: unknown;
3490
+ };
3491
+ export type MethodPageHumanClickTextResult__ErrorDetail = {
3492
+ "code": string;
3493
+ "context"?: (MethodPageHumanClickTextResult__ErrorContext | null);
3494
+ "hint"?: (string | null);
3495
+ "message": string;
3496
+ "retryable"?: (boolean | null);
3497
+ [key: string]: unknown;
3498
+ };
2761
3499
  export type MethodPageHumanClickTextResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
3500
+ export type MethodPageHumanClickTextResult__PageContext = {
3501
+ "headings": Array<string>;
3502
+ "messages": Array<string>;
3503
+ "ready_state": string;
3504
+ "tab_id": string;
3505
+ "text_excerpt": string;
3506
+ "title": string;
3507
+ "truncated": boolean;
3508
+ "url": string;
3509
+ [key: string]: unknown;
3510
+ };
2762
3511
  export type MethodPageHumanFillParams = {
3512
+ "inputMode"?: MethodPageHumanFillParams__InputMode;
2763
3513
  "operation_id": string;
2764
3514
  "options"?: MethodPageHumanFillParams__ActionOptions;
2765
3515
  "pageId": string;
@@ -2768,12 +3518,26 @@ export type MethodPageHumanFillParams = {
2768
3518
  [key: string]: unknown;
2769
3519
  };
2770
3520
  export type MethodPageHumanFillParams__ActionOptions = {
3521
+ "destination"?: MethodPageHumanFillParams__Destination;
2771
3522
  "expect"?: (MethodPageHumanFillParams__Expectation | null);
2772
3523
  "timeout_ms"?: number;
2773
3524
  "wait_for_target"?: boolean;
2774
3525
  [key: string]: unknown;
2775
3526
  };
3527
+ export type MethodPageHumanFillParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2776
3528
  export type MethodPageHumanFillParams__Expectation = ({
3529
+ "kind": ("document_ready" & string);
3530
+ [key: string]: unknown;
3531
+ } | {
3532
+ "conditions": Array<MethodPageHumanFillParams__Expectation>;
3533
+ "kind": ("all" & string);
3534
+ [key: string]: unknown;
3535
+ } | {
3536
+ "enabled": boolean;
3537
+ "kind": ("enabled" & string);
3538
+ "target": MethodPageHumanFillParams__LocatorSpec;
3539
+ [key: string]: unknown;
3540
+ } | {
2777
3541
  "kind": ("download_started" & string);
2778
3542
  [key: string]: unknown;
2779
3543
  } | {
@@ -2815,6 +3579,7 @@ export type MethodPageHumanFillParams__Expectation = ({
2815
3579
  "values": Array<string>;
2816
3580
  [key: string]: unknown;
2817
3581
  });
3582
+ export type MethodPageHumanFillParams__InputMode = (("sequential" & string) | ("bulk" & string));
2818
3583
  export type MethodPageHumanFillParams__LocatorQuery = ({
2819
3584
  "id": number;
2820
3585
  "kind": ("node" & string);
@@ -2850,6 +3615,7 @@ export type MethodPageHumanFillParams__LocatorSpec = {
2850
3615
  export type MethodPageHumanFillResult = {
2851
3616
  "action": string;
2852
3617
  "dispatch_intent": boolean;
3618
+ "error"?: (MethodPageHumanFillResult__ErrorDetail | null);
2853
3619
  "error_code"?: (string | null);
2854
3620
  "finished_at_ms"?: (number | null);
2855
3621
  "id": string;
@@ -2867,6 +3633,7 @@ export type MethodPageHumanFillResult__ActionReceipt = {
2867
3633
  "action": string;
2868
3634
  "already_satisfied": boolean;
2869
3635
  "cleanup_pending": boolean;
3636
+ "destination_target_id"?: (string | null);
2870
3637
  "dispatch": MethodPageHumanFillResult__DispatchState;
2871
3638
  "download_guid"?: (string | null);
2872
3639
  "elapsed_ms": number;
@@ -2878,8 +3645,36 @@ export type MethodPageHumanFillResult__ActionReceipt = {
2878
3645
  "verification"?: (string | null);
2879
3646
  [key: string]: unknown;
2880
3647
  };
3648
+ export type MethodPageHumanFillResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2881
3649
  export type MethodPageHumanFillResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
3650
+ export type MethodPageHumanFillResult__ErrorContext = {
3651
+ "action_status"?: (MethodPageHumanFillResult__ActionStatus | null);
3652
+ "download_id"?: (string | null);
3653
+ "operation_id"?: (string | null);
3654
+ "page"?: (MethodPageHumanFillResult__PageContext | null);
3655
+ "phase"?: (string | null);
3656
+ [key: string]: unknown;
3657
+ };
3658
+ export type MethodPageHumanFillResult__ErrorDetail = {
3659
+ "code": string;
3660
+ "context"?: (MethodPageHumanFillResult__ErrorContext | null);
3661
+ "hint"?: (string | null);
3662
+ "message": string;
3663
+ "retryable"?: (boolean | null);
3664
+ [key: string]: unknown;
3665
+ };
2882
3666
  export type MethodPageHumanFillResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
3667
+ export type MethodPageHumanFillResult__PageContext = {
3668
+ "headings": Array<string>;
3669
+ "messages": Array<string>;
3670
+ "ready_state": string;
3671
+ "tab_id": string;
3672
+ "text_excerpt": string;
3673
+ "title": string;
3674
+ "truncated": boolean;
3675
+ "url": string;
3676
+ [key: string]: unknown;
3677
+ };
2883
3678
  export type MethodPageKeyDownParams = {
2884
3679
  "expect"?: (MethodPageKeyDownParams__Expectation | null);
2885
3680
  "key": string;
@@ -2889,6 +3684,18 @@ export type MethodPageKeyDownParams = {
2889
3684
  [key: string]: unknown;
2890
3685
  };
2891
3686
  export type MethodPageKeyDownParams__Expectation = ({
3687
+ "kind": ("document_ready" & string);
3688
+ [key: string]: unknown;
3689
+ } | {
3690
+ "conditions": Array<MethodPageKeyDownParams__Expectation>;
3691
+ "kind": ("all" & string);
3692
+ [key: string]: unknown;
3693
+ } | {
3694
+ "enabled": boolean;
3695
+ "kind": ("enabled" & string);
3696
+ "target": MethodPageKeyDownParams__LocatorSpec;
3697
+ [key: string]: unknown;
3698
+ } | {
2892
3699
  "kind": ("download_started" & string);
2893
3700
  [key: string]: unknown;
2894
3701
  } | {
@@ -2972,6 +3779,18 @@ export type MethodPageKeyUpParams = {
2972
3779
  [key: string]: unknown;
2973
3780
  };
2974
3781
  export type MethodPageKeyUpParams__Expectation = ({
3782
+ "kind": ("document_ready" & string);
3783
+ [key: string]: unknown;
3784
+ } | {
3785
+ "conditions": Array<MethodPageKeyUpParams__Expectation>;
3786
+ "kind": ("all" & string);
3787
+ [key: string]: unknown;
3788
+ } | {
3789
+ "enabled": boolean;
3790
+ "kind": ("enabled" & string);
3791
+ "target": MethodPageKeyUpParams__LocatorSpec;
3792
+ [key: string]: unknown;
3793
+ } | {
2975
3794
  "kind": ("download_started" & string);
2976
3795
  [key: string]: unknown;
2977
3796
  } | {
@@ -3079,12 +3898,26 @@ export type MethodPagePressKeyParams = {
3079
3898
  [key: string]: unknown;
3080
3899
  };
3081
3900
  export type MethodPagePressKeyParams__ActionOptions = {
3901
+ "destination"?: MethodPagePressKeyParams__Destination;
3082
3902
  "expect"?: (MethodPagePressKeyParams__Expectation | null);
3083
3903
  "timeout_ms"?: number;
3084
3904
  "wait_for_target"?: boolean;
3085
3905
  [key: string]: unknown;
3086
3906
  };
3907
+ export type MethodPagePressKeyParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
3087
3908
  export type MethodPagePressKeyParams__Expectation = ({
3909
+ "kind": ("document_ready" & string);
3910
+ [key: string]: unknown;
3911
+ } | {
3912
+ "conditions": Array<MethodPagePressKeyParams__Expectation>;
3913
+ "kind": ("all" & string);
3914
+ [key: string]: unknown;
3915
+ } | {
3916
+ "enabled": boolean;
3917
+ "kind": ("enabled" & string);
3918
+ "target": MethodPagePressKeyParams__LocatorSpec;
3919
+ [key: string]: unknown;
3920
+ } | {
3088
3921
  "kind": ("download_started" & string);
3089
3922
  [key: string]: unknown;
3090
3923
  } | {
@@ -3161,6 +3994,7 @@ export type MethodPagePressKeyParams__LocatorSpec = {
3161
3994
  export type MethodPagePressKeyResult = {
3162
3995
  "action": string;
3163
3996
  "dispatch_intent": boolean;
3997
+ "error"?: (MethodPagePressKeyResult__ErrorDetail | null);
3164
3998
  "error_code"?: (string | null);
3165
3999
  "finished_at_ms"?: (number | null);
3166
4000
  "id": string;
@@ -3178,6 +4012,7 @@ export type MethodPagePressKeyResult__ActionReceipt = {
3178
4012
  "action": string;
3179
4013
  "already_satisfied": boolean;
3180
4014
  "cleanup_pending": boolean;
4015
+ "destination_target_id"?: (string | null);
3181
4016
  "dispatch": MethodPagePressKeyResult__DispatchState;
3182
4017
  "download_guid"?: (string | null);
3183
4018
  "elapsed_ms": number;
@@ -3189,8 +4024,36 @@ export type MethodPagePressKeyResult__ActionReceipt = {
3189
4024
  "verification"?: (string | null);
3190
4025
  [key: string]: unknown;
3191
4026
  };
4027
+ export type MethodPagePressKeyResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
3192
4028
  export type MethodPagePressKeyResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
4029
+ export type MethodPagePressKeyResult__ErrorContext = {
4030
+ "action_status"?: (MethodPagePressKeyResult__ActionStatus | null);
4031
+ "download_id"?: (string | null);
4032
+ "operation_id"?: (string | null);
4033
+ "page"?: (MethodPagePressKeyResult__PageContext | null);
4034
+ "phase"?: (string | null);
4035
+ [key: string]: unknown;
4036
+ };
4037
+ export type MethodPagePressKeyResult__ErrorDetail = {
4038
+ "code": string;
4039
+ "context"?: (MethodPagePressKeyResult__ErrorContext | null);
4040
+ "hint"?: (string | null);
4041
+ "message": string;
4042
+ "retryable"?: (boolean | null);
4043
+ [key: string]: unknown;
4044
+ };
3193
4045
  export type MethodPagePressKeyResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
4046
+ export type MethodPagePressKeyResult__PageContext = {
4047
+ "headings": Array<string>;
4048
+ "messages": Array<string>;
4049
+ "ready_state": string;
4050
+ "tab_id": string;
4051
+ "text_excerpt": string;
4052
+ "title": string;
4053
+ "truncated": boolean;
4054
+ "url": string;
4055
+ [key: string]: unknown;
4056
+ };
3194
4057
  export type MethodPageReleaseAllInputsParams = {
3195
4058
  "pageId": string;
3196
4059
  [key: string]: unknown;
@@ -3272,6 +4135,7 @@ export type MethodPageScreenshotToFileResult = {
3272
4135
  };
3273
4136
  export type MethodPageScreenshotToFileResult__ArtifactContainer = ("mp4" & string);
3274
4137
  export type MethodPageSelectParams = {
4138
+ "inputMode"?: MethodPageSelectParams__InputMode;
3275
4139
  "operation_id": string;
3276
4140
  "options"?: MethodPageSelectParams__ActionOptions;
3277
4141
  "pageId": string;
@@ -3280,12 +4144,26 @@ export type MethodPageSelectParams = {
3280
4144
  [key: string]: unknown;
3281
4145
  };
3282
4146
  export type MethodPageSelectParams__ActionOptions = {
4147
+ "destination"?: MethodPageSelectParams__Destination;
3283
4148
  "expect"?: (MethodPageSelectParams__Expectation | null);
3284
4149
  "timeout_ms"?: number;
3285
4150
  "wait_for_target"?: boolean;
3286
4151
  [key: string]: unknown;
3287
4152
  };
4153
+ export type MethodPageSelectParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
3288
4154
  export type MethodPageSelectParams__Expectation = ({
4155
+ "kind": ("document_ready" & string);
4156
+ [key: string]: unknown;
4157
+ } | {
4158
+ "conditions": Array<MethodPageSelectParams__Expectation>;
4159
+ "kind": ("all" & string);
4160
+ [key: string]: unknown;
4161
+ } | {
4162
+ "enabled": boolean;
4163
+ "kind": ("enabled" & string);
4164
+ "target": MethodPageSelectParams__LocatorSpec;
4165
+ [key: string]: unknown;
4166
+ } | {
3289
4167
  "kind": ("download_started" & string);
3290
4168
  [key: string]: unknown;
3291
4169
  } | {
@@ -3327,6 +4205,7 @@ export type MethodPageSelectParams__Expectation = ({
3327
4205
  "values": Array<string>;
3328
4206
  [key: string]: unknown;
3329
4207
  });
4208
+ export type MethodPageSelectParams__InputMode = (("sequential" & string) | ("bulk" & string));
3330
4209
  export type MethodPageSelectParams__LocatorQuery = ({
3331
4210
  "id": number;
3332
4211
  "kind": ("node" & string);
@@ -3362,6 +4241,7 @@ export type MethodPageSelectParams__LocatorSpec = {
3362
4241
  export type MethodPageSelectResult = {
3363
4242
  "action": string;
3364
4243
  "dispatch_intent": boolean;
4244
+ "error"?: (MethodPageSelectResult__ErrorDetail | null);
3365
4245
  "error_code"?: (string | null);
3366
4246
  "finished_at_ms"?: (number | null);
3367
4247
  "id": string;
@@ -3379,6 +4259,7 @@ export type MethodPageSelectResult__ActionReceipt = {
3379
4259
  "action": string;
3380
4260
  "already_satisfied": boolean;
3381
4261
  "cleanup_pending": boolean;
4262
+ "destination_target_id"?: (string | null);
3382
4263
  "dispatch": MethodPageSelectResult__DispatchState;
3383
4264
  "download_guid"?: (string | null);
3384
4265
  "elapsed_ms": number;
@@ -3390,8 +4271,36 @@ export type MethodPageSelectResult__ActionReceipt = {
3390
4271
  "verification"?: (string | null);
3391
4272
  [key: string]: unknown;
3392
4273
  };
4274
+ export type MethodPageSelectResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
3393
4275
  export type MethodPageSelectResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
4276
+ export type MethodPageSelectResult__ErrorContext = {
4277
+ "action_status"?: (MethodPageSelectResult__ActionStatus | null);
4278
+ "download_id"?: (string | null);
4279
+ "operation_id"?: (string | null);
4280
+ "page"?: (MethodPageSelectResult__PageContext | null);
4281
+ "phase"?: (string | null);
4282
+ [key: string]: unknown;
4283
+ };
4284
+ export type MethodPageSelectResult__ErrorDetail = {
4285
+ "code": string;
4286
+ "context"?: (MethodPageSelectResult__ErrorContext | null);
4287
+ "hint"?: (string | null);
4288
+ "message": string;
4289
+ "retryable"?: (boolean | null);
4290
+ [key: string]: unknown;
4291
+ };
3394
4292
  export type MethodPageSelectResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
4293
+ export type MethodPageSelectResult__PageContext = {
4294
+ "headings": Array<string>;
4295
+ "messages": Array<string>;
4296
+ "ready_state": string;
4297
+ "tab_id": string;
4298
+ "text_excerpt": string;
4299
+ "title": string;
4300
+ "truncated": boolean;
4301
+ "url": string;
4302
+ [key: string]: unknown;
4303
+ };
3395
4304
  export type MethodPageSetViewportParams = {
3396
4305
  "deviceScaleFactor"?: number;
3397
4306
  "height": number;
@@ -3425,6 +4334,16 @@ export type MethodPageSolveCaptchaResult__CaptchaInjection = {
3425
4334
  "updated_count": number;
3426
4335
  [key: string]: unknown;
3427
4336
  };
4337
+ export type MethodPageSolveTurnstileParams = {
4338
+ "pageId": string;
4339
+ "timeoutMs"?: number;
4340
+ [key: string]: unknown;
4341
+ };
4342
+ export type MethodPageSolveTurnstileResult = {
4343
+ "clicks": number;
4344
+ "elapsedMs": number;
4345
+ [key: string]: unknown;
4346
+ };
3428
4347
  export type MethodPageTextParams = {
3429
4348
  "pageId": string;
3430
4349
  [key: string]: unknown;
@@ -3442,6 +4361,7 @@ export type MethodPageTitleResult = {
3442
4361
  [key: string]: unknown;
3443
4362
  };
3444
4363
  export type MethodPageTypeIntoParams = {
4364
+ "inputMode"?: MethodPageTypeIntoParams__InputMode;
3445
4365
  "operation_id": string;
3446
4366
  "options"?: MethodPageTypeIntoParams__ActionOptions;
3447
4367
  "pageId": string;
@@ -3450,12 +4370,26 @@ export type MethodPageTypeIntoParams = {
3450
4370
  [key: string]: unknown;
3451
4371
  };
3452
4372
  export type MethodPageTypeIntoParams__ActionOptions = {
4373
+ "destination"?: MethodPageTypeIntoParams__Destination;
3453
4374
  "expect"?: (MethodPageTypeIntoParams__Expectation | null);
3454
4375
  "timeout_ms"?: number;
3455
4376
  "wait_for_target"?: boolean;
3456
4377
  [key: string]: unknown;
3457
4378
  };
4379
+ export type MethodPageTypeIntoParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
3458
4380
  export type MethodPageTypeIntoParams__Expectation = ({
4381
+ "kind": ("document_ready" & string);
4382
+ [key: string]: unknown;
4383
+ } | {
4384
+ "conditions": Array<MethodPageTypeIntoParams__Expectation>;
4385
+ "kind": ("all" & string);
4386
+ [key: string]: unknown;
4387
+ } | {
4388
+ "enabled": boolean;
4389
+ "kind": ("enabled" & string);
4390
+ "target": MethodPageTypeIntoParams__LocatorSpec;
4391
+ [key: string]: unknown;
4392
+ } | {
3459
4393
  "kind": ("download_started" & string);
3460
4394
  [key: string]: unknown;
3461
4395
  } | {
@@ -3497,6 +4431,7 @@ export type MethodPageTypeIntoParams__Expectation = ({
3497
4431
  "values": Array<string>;
3498
4432
  [key: string]: unknown;
3499
4433
  });
4434
+ export type MethodPageTypeIntoParams__InputMode = (("sequential" & string) | ("bulk" & string));
3500
4435
  export type MethodPageTypeIntoParams__LocatorQuery = ({
3501
4436
  "id": number;
3502
4437
  "kind": ("node" & string);
@@ -3532,6 +4467,7 @@ export type MethodPageTypeIntoParams__LocatorSpec = {
3532
4467
  export type MethodPageTypeIntoResult = {
3533
4468
  "action": string;
3534
4469
  "dispatch_intent": boolean;
4470
+ "error"?: (MethodPageTypeIntoResult__ErrorDetail | null);
3535
4471
  "error_code"?: (string | null);
3536
4472
  "finished_at_ms"?: (number | null);
3537
4473
  "id": string;
@@ -3549,6 +4485,7 @@ export type MethodPageTypeIntoResult__ActionReceipt = {
3549
4485
  "action": string;
3550
4486
  "already_satisfied": boolean;
3551
4487
  "cleanup_pending": boolean;
4488
+ "destination_target_id"?: (string | null);
3552
4489
  "dispatch": MethodPageTypeIntoResult__DispatchState;
3553
4490
  "download_guid"?: (string | null);
3554
4491
  "elapsed_ms": number;
@@ -3560,8 +4497,36 @@ export type MethodPageTypeIntoResult__ActionReceipt = {
3560
4497
  "verification"?: (string | null);
3561
4498
  [key: string]: unknown;
3562
4499
  };
4500
+ export type MethodPageTypeIntoResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
3563
4501
  export type MethodPageTypeIntoResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
4502
+ export type MethodPageTypeIntoResult__ErrorContext = {
4503
+ "action_status"?: (MethodPageTypeIntoResult__ActionStatus | null);
4504
+ "download_id"?: (string | null);
4505
+ "operation_id"?: (string | null);
4506
+ "page"?: (MethodPageTypeIntoResult__PageContext | null);
4507
+ "phase"?: (string | null);
4508
+ [key: string]: unknown;
4509
+ };
4510
+ export type MethodPageTypeIntoResult__ErrorDetail = {
4511
+ "code": string;
4512
+ "context"?: (MethodPageTypeIntoResult__ErrorContext | null);
4513
+ "hint"?: (string | null);
4514
+ "message": string;
4515
+ "retryable"?: (boolean | null);
4516
+ [key: string]: unknown;
4517
+ };
3564
4518
  export type MethodPageTypeIntoResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
4519
+ export type MethodPageTypeIntoResult__PageContext = {
4520
+ "headings": Array<string>;
4521
+ "messages": Array<string>;
4522
+ "ready_state": string;
4523
+ "tab_id": string;
4524
+ "text_excerpt": string;
4525
+ "title": string;
4526
+ "truncated": boolean;
4527
+ "url": string;
4528
+ [key: string]: unknown;
4529
+ };
3565
4530
  export type MethodPageUrlParams = {
3566
4531
  "pageId": string;
3567
4532
  [key: string]: unknown;
@@ -3769,15 +4734,20 @@ export type MethodParams = {
3769
4734
  "operations.wait": MethodOperationsWaitParams;
3770
4735
  "page.capture_state": MethodPageCaptureStateParams;
3771
4736
  "page.click": MethodPageClickParams;
4737
+ "page.click_shadow": MethodPageClickShadowParams;
3772
4738
  "page.click_text": MethodPageClickTextParams;
3773
4739
  "page.close": MethodPageCloseParams;
3774
4740
  "page.content": MethodPageContentParams;
3775
4741
  "page.evaluate": MethodPageEvaluateParams;
4742
+ "page.evaluate_in_frame": MethodPageEvaluateInFrameParams;
4743
+ "page.evaluate_raw": MethodPageEvaluateRawParams;
3776
4744
  "page.execute": MethodPageExecuteParams;
4745
+ "page.execute_raw": MethodPageExecuteRawParams;
3777
4746
  "page.exists": MethodPageExistsParams;
3778
4747
  "page.fetch": MethodPageFetchParams;
3779
4748
  "page.fetch_bounded": MethodPageFetchBoundedParams;
3780
4749
  "page.fill": MethodPageFillParams;
4750
+ "page.frames": MethodPageFramesParams;
3781
4751
  "page.get_attribute": MethodPageGetAttributeParams;
3782
4752
  "page.get_text": MethodPageGetTextParams;
3783
4753
  "page.goto": MethodPageGotoParams;
@@ -3799,6 +4769,7 @@ export type MethodParams = {
3799
4769
  "page.select": MethodPageSelectParams;
3800
4770
  "page.set_viewport": MethodPageSetViewportParams;
3801
4771
  "page.solve_captcha": MethodPageSolveCaptchaParams;
4772
+ "page.solve_turnstile": MethodPageSolveTurnstileParams;
3802
4773
  "page.text": MethodPageTextParams;
3803
4774
  "page.title": MethodPageTitleParams;
3804
4775
  "page.type_into": MethodPageTypeIntoParams;
@@ -3829,15 +4800,20 @@ export type MethodResults = {
3829
4800
  "operations.wait": MethodOperationsWaitResult;
3830
4801
  "page.capture_state": MethodPageCaptureStateResult;
3831
4802
  "page.click": MethodPageClickResult;
4803
+ "page.click_shadow": MethodPageClickShadowResult;
3832
4804
  "page.click_text": MethodPageClickTextResult;
3833
4805
  "page.close": MethodPageCloseResult;
3834
4806
  "page.content": MethodPageContentResult;
3835
4807
  "page.evaluate": MethodPageEvaluateResult;
4808
+ "page.evaluate_in_frame": MethodPageEvaluateInFrameResult;
4809
+ "page.evaluate_raw": MethodPageEvaluateRawResult;
3836
4810
  "page.execute": MethodPageExecuteResult;
4811
+ "page.execute_raw": MethodPageExecuteRawResult;
3837
4812
  "page.exists": MethodPageExistsResult;
3838
4813
  "page.fetch": MethodPageFetchResult;
3839
4814
  "page.fetch_bounded": MethodPageFetchBoundedResult;
3840
4815
  "page.fill": MethodPageFillResult;
4816
+ "page.frames": MethodPageFramesResult;
3841
4817
  "page.get_attribute": MethodPageGetAttributeResult;
3842
4818
  "page.get_text": MethodPageGetTextResult;
3843
4819
  "page.goto": MethodPageGotoResult;
@@ -3859,6 +4835,7 @@ export type MethodResults = {
3859
4835
  "page.select": MethodPageSelectResult;
3860
4836
  "page.set_viewport": MethodPageSetViewportResult;
3861
4837
  "page.solve_captcha": MethodPageSolveCaptchaResult;
4838
+ "page.solve_turnstile": MethodPageSolveTurnstileResult;
3862
4839
  "page.text": MethodPageTextResult;
3863
4840
  "page.title": MethodPageTitleResult;
3864
4841
  "page.type_into": MethodPageTypeIntoResult;
@@ -3895,7 +4872,7 @@ export type ProtocolErrorResponse = {
3895
4872
  };
3896
4873
  export type ProtocolResponse<M extends MethodName = MethodName> = ProtocolSuccessResponse<M> | ProtocolErrorResponse;
3897
4874
  export declare const protocolVersion: {
3898
- readonly major: 1;
3899
- readonly minor: 3;
4875
+ readonly major: 2;
4876
+ readonly minor: 0;
3900
4877
  };
3901
- export declare const methodNames: readonly ["actions.perform", "agent.observe", "agent.step", "browser.close", "browser.close_tab", "browser.connect", "browser.launch", "browser.new_page", "browser.tabs", "operations.cancel", "operations.get", "operations.list", "operations.wait", "page.capture_state", "page.click", "page.click_text", "page.close", "page.content", "page.evaluate", "page.execute", "page.exists", "page.fetch", "page.fetch_bounded", "page.fill", "page.get_attribute", "page.get_text", "page.goto", "page.hover", "page.human_click", "page.human_click_text", "page.human_fill", "page.key_down", "page.key_up", "page.mouse_down", "page.mouse_move", "page.mouse_up", "page.press_key", "page.release_all_inputs", "page.reset_viewport", "page.restore_state", "page.screenshot", "page.screenshot_to_file", "page.select", "page.set_viewport", "page.solve_captcha", "page.text", "page.title", "page.type_into", "page.url", "page.wait_for", "page.wait_for_text", "page.wait_for_visible", "recording.cancel", "recording.get", "recording.start", "recording.stop", "server.hello", "server.shutdown"];
4878
+ export declare const methodNames: readonly ["actions.perform", "agent.observe", "agent.step", "browser.close", "browser.close_tab", "browser.connect", "browser.launch", "browser.new_page", "browser.tabs", "operations.cancel", "operations.get", "operations.list", "operations.wait", "page.capture_state", "page.click", "page.click_shadow", "page.click_text", "page.close", "page.content", "page.evaluate", "page.evaluate_in_frame", "page.evaluate_raw", "page.execute", "page.execute_raw", "page.exists", "page.fetch", "page.fetch_bounded", "page.fill", "page.frames", "page.get_attribute", "page.get_text", "page.goto", "page.hover", "page.human_click", "page.human_click_text", "page.human_fill", "page.key_down", "page.key_up", "page.mouse_down", "page.mouse_move", "page.mouse_up", "page.press_key", "page.release_all_inputs", "page.reset_viewport", "page.restore_state", "page.screenshot", "page.screenshot_to_file", "page.select", "page.set_viewport", "page.solve_captcha", "page.solve_turnstile", "page.text", "page.title", "page.type_into", "page.url", "page.wait_for", "page.wait_for_text", "page.wait_for_visible", "recording.cancel", "recording.get", "recording.start", "recording.stop", "server.hello", "server.shutdown"];