@cbxss/eoka 0.1.0-beta.4 → 0.1.0-beta.7

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;
@@ -1601,6 +1859,7 @@ export type MethodBrowserConnectResult = {
1601
1859
  export type MethodBrowserConnectResult__BrowserOwnership = (("owned" | "borrowed") & string);
1602
1860
  export type MethodBrowserLaunchParams = {
1603
1861
  "aggressiveCdpEvasion"?: boolean;
1862
+ "autoSolveCloudflare"?: (MethodBrowserLaunchParams__CloudflareAutoSolve | null);
1604
1863
  "deviceScaleFactor": (number | null);
1605
1864
  "executablePath"?: (string | null);
1606
1865
  "extraArgs"?: Array<string>;
@@ -1616,6 +1875,11 @@ export type MethodBrowserLaunchParams = {
1616
1875
  "viewportWidth"?: (number | null);
1617
1876
  [key: string]: unknown;
1618
1877
  };
1878
+ export type MethodBrowserLaunchParams__CloudflareAutoSolve = {
1879
+ "intervalMs"?: number;
1880
+ "timeoutMs"?: number;
1881
+ [key: string]: unknown;
1882
+ };
1619
1883
  export type MethodBrowserLaunchParams__ProxyParams = {
1620
1884
  "password"?: (string | null);
1621
1885
  "server": string;
@@ -1654,6 +1918,7 @@ export type MethodOperationsCancelParams = {
1654
1918
  export type MethodOperationsCancelResult = {
1655
1919
  "action": string;
1656
1920
  "dispatch_intent": boolean;
1921
+ "error"?: (MethodOperationsCancelResult__ErrorDetail | null);
1657
1922
  "error_code"?: (string | null);
1658
1923
  "finished_at_ms"?: (number | null);
1659
1924
  "id": string;
@@ -1671,6 +1936,7 @@ export type MethodOperationsCancelResult__ActionReceipt = {
1671
1936
  "action": string;
1672
1937
  "already_satisfied": boolean;
1673
1938
  "cleanup_pending": boolean;
1939
+ "destination_target_id"?: (string | null);
1674
1940
  "dispatch": MethodOperationsCancelResult__DispatchState;
1675
1941
  "download_guid"?: (string | null);
1676
1942
  "elapsed_ms": number;
@@ -1682,8 +1948,36 @@ export type MethodOperationsCancelResult__ActionReceipt = {
1682
1948
  "verification"?: (string | null);
1683
1949
  [key: string]: unknown;
1684
1950
  };
1951
+ export type MethodOperationsCancelResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1685
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
+ };
1686
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
+ };
1687
1981
  export type MethodOperationsGetParams = {
1688
1982
  "id": string;
1689
1983
  [key: string]: unknown;
@@ -1691,6 +1985,7 @@ export type MethodOperationsGetParams = {
1691
1985
  export type MethodOperationsGetResult = {
1692
1986
  "action": string;
1693
1987
  "dispatch_intent": boolean;
1988
+ "error"?: (MethodOperationsGetResult__ErrorDetail | null);
1694
1989
  "error_code"?: (string | null);
1695
1990
  "finished_at_ms"?: (number | null);
1696
1991
  "id": string;
@@ -1708,6 +2003,7 @@ export type MethodOperationsGetResult__ActionReceipt = {
1708
2003
  "action": string;
1709
2004
  "already_satisfied": boolean;
1710
2005
  "cleanup_pending": boolean;
2006
+ "destination_target_id"?: (string | null);
1711
2007
  "dispatch": MethodOperationsGetResult__DispatchState;
1712
2008
  "download_guid"?: (string | null);
1713
2009
  "elapsed_ms": number;
@@ -1719,8 +2015,36 @@ export type MethodOperationsGetResult__ActionReceipt = {
1719
2015
  "verification"?: (string | null);
1720
2016
  [key: string]: unknown;
1721
2017
  };
2018
+ export type MethodOperationsGetResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1722
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
+ };
1723
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
+ };
1724
2048
  export type MethodOperationsListParams = {
1725
2049
  "before_ms"?: (number | null);
1726
2050
  "limit"?: (number | null);
@@ -1732,6 +2056,7 @@ export type MethodOperationsListResult__ActionReceipt = {
1732
2056
  "action": string;
1733
2057
  "already_satisfied": boolean;
1734
2058
  "cleanup_pending": boolean;
2059
+ "destination_target_id"?: (string | null);
1735
2060
  "dispatch": MethodOperationsListResult__DispatchState;
1736
2061
  "download_guid"?: (string | null);
1737
2062
  "elapsed_ms": number;
@@ -1743,10 +2068,28 @@ export type MethodOperationsListResult__ActionReceipt = {
1743
2068
  "verification"?: (string | null);
1744
2069
  [key: string]: unknown;
1745
2070
  };
2071
+ export type MethodOperationsListResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1746
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
+ };
1747
2089
  export type MethodOperationsListResult__OperationRecord = {
1748
2090
  "action": string;
1749
2091
  "dispatch_intent": boolean;
2092
+ "error"?: (MethodOperationsListResult__ErrorDetail | null);
1750
2093
  "error_code"?: (string | null);
1751
2094
  "finished_at_ms"?: (number | null);
1752
2095
  "id": string;
@@ -1760,6 +2103,17 @@ export type MethodOperationsListResult__OperationRecord = {
1760
2103
  [key: string]: unknown;
1761
2104
  };
1762
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
+ };
1763
2117
  export type MethodOperationsWaitParams = {
1764
2118
  "id": string;
1765
2119
  "timeout_ms"?: number;
@@ -1768,6 +2122,7 @@ export type MethodOperationsWaitParams = {
1768
2122
  export type MethodOperationsWaitResult = {
1769
2123
  "action": string;
1770
2124
  "dispatch_intent": boolean;
2125
+ "error"?: (MethodOperationsWaitResult__ErrorDetail | null);
1771
2126
  "error_code"?: (string | null);
1772
2127
  "finished_at_ms"?: (number | null);
1773
2128
  "id": string;
@@ -1785,6 +2140,7 @@ export type MethodOperationsWaitResult__ActionReceipt = {
1785
2140
  "action": string;
1786
2141
  "already_satisfied": boolean;
1787
2142
  "cleanup_pending": boolean;
2143
+ "destination_target_id"?: (string | null);
1788
2144
  "dispatch": MethodOperationsWaitResult__DispatchState;
1789
2145
  "download_guid"?: (string | null);
1790
2146
  "elapsed_ms": number;
@@ -1796,8 +2152,36 @@ export type MethodOperationsWaitResult__ActionReceipt = {
1796
2152
  "verification"?: (string | null);
1797
2153
  [key: string]: unknown;
1798
2154
  };
2155
+ export type MethodOperationsWaitResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1799
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
+ };
1800
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
+ };
1801
2185
  export type MethodPageCaptureStateParams = {
1802
2186
  "pageId": string;
1803
2187
  [key: string]: unknown;
@@ -1833,12 +2217,26 @@ export type MethodPageClickParams = {
1833
2217
  [key: string]: unknown;
1834
2218
  };
1835
2219
  export type MethodPageClickParams__ActionOptions = {
2220
+ "destination"?: MethodPageClickParams__Destination;
1836
2221
  "expect"?: (MethodPageClickParams__Expectation | null);
1837
2222
  "timeout_ms"?: number;
1838
2223
  "wait_for_target"?: boolean;
1839
2224
  [key: string]: unknown;
1840
2225
  };
2226
+ export type MethodPageClickParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
1841
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
+ } | {
1842
2240
  "kind": ("download_started" & string);
1843
2241
  [key: string]: unknown;
1844
2242
  } | {
@@ -1915,6 +2313,7 @@ export type MethodPageClickParams__LocatorSpec = {
1915
2313
  export type MethodPageClickResult = {
1916
2314
  "action": string;
1917
2315
  "dispatch_intent": boolean;
2316
+ "error"?: (MethodPageClickResult__ErrorDetail | null);
1918
2317
  "error_code"?: (string | null);
1919
2318
  "finished_at_ms"?: (number | null);
1920
2319
  "id": string;
@@ -1932,6 +2331,7 @@ export type MethodPageClickResult__ActionReceipt = {
1932
2331
  "action": string;
1933
2332
  "already_satisfied": boolean;
1934
2333
  "cleanup_pending": boolean;
2334
+ "destination_target_id"?: (string | null);
1935
2335
  "dispatch": MethodPageClickResult__DispatchState;
1936
2336
  "download_guid"?: (string | null);
1937
2337
  "elapsed_ms": number;
@@ -1943,8 +2343,36 @@ export type MethodPageClickResult__ActionReceipt = {
1943
2343
  "verification"?: (string | null);
1944
2344
  [key: string]: unknown;
1945
2345
  };
2346
+ export type MethodPageClickResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1946
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
+ };
1947
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
+ };
1948
2376
  export type MethodPageClickShadowParams = {
1949
2377
  "frameId"?: (string | null);
1950
2378
  "pageId": string;
@@ -1967,12 +2395,26 @@ export type MethodPageClickTextParams = {
1967
2395
  [key: string]: unknown;
1968
2396
  };
1969
2397
  export type MethodPageClickTextParams__ActionOptions = {
2398
+ "destination"?: MethodPageClickTextParams__Destination;
1970
2399
  "expect"?: (MethodPageClickTextParams__Expectation | null);
1971
2400
  "timeout_ms"?: number;
1972
2401
  "wait_for_target"?: boolean;
1973
2402
  [key: string]: unknown;
1974
2403
  };
2404
+ export type MethodPageClickTextParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
1975
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
+ } | {
1976
2418
  "kind": ("download_started" & string);
1977
2419
  [key: string]: unknown;
1978
2420
  } | {
@@ -2049,6 +2491,7 @@ export type MethodPageClickTextParams__LocatorSpec = {
2049
2491
  export type MethodPageClickTextResult = {
2050
2492
  "action": string;
2051
2493
  "dispatch_intent": boolean;
2494
+ "error"?: (MethodPageClickTextResult__ErrorDetail | null);
2052
2495
  "error_code"?: (string | null);
2053
2496
  "finished_at_ms"?: (number | null);
2054
2497
  "id": string;
@@ -2066,6 +2509,7 @@ export type MethodPageClickTextResult__ActionReceipt = {
2066
2509
  "action": string;
2067
2510
  "already_satisfied": boolean;
2068
2511
  "cleanup_pending": boolean;
2512
+ "destination_target_id"?: (string | null);
2069
2513
  "dispatch": MethodPageClickTextResult__DispatchState;
2070
2514
  "download_guid"?: (string | null);
2071
2515
  "elapsed_ms": number;
@@ -2077,23 +2521,52 @@ export type MethodPageClickTextResult__ActionReceipt = {
2077
2521
  "verification"?: (string | null);
2078
2522
  [key: string]: unknown;
2079
2523
  };
2524
+ export type MethodPageClickTextResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2080
2525
  export type MethodPageClickTextResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2081
- export type MethodPageClickTextResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2082
- export type MethodPageCloseParams = {
2083
- "pageId": string;
2084
- [key: string]: unknown;
2085
- };
2086
- export type MethodPageCloseResult = Record<string, never>;
2087
- export type MethodPageContentParams = {
2088
- "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);
2089
2532
  [key: string]: unknown;
2090
2533
  };
2091
- export type MethodPageContentResult = {
2092
- "html": 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);
2093
2540
  [key: string]: unknown;
2094
2541
  };
2095
- export type MethodPageEvaluateParams = {
2096
- "js": string;
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 = {
2564
+ "html": string;
2565
+ [key: string]: unknown;
2566
+ };
2567
+ export type MethodPageEvaluateParams = {
2568
+ "arguments"?: Array<unknown>;
2569
+ "function": string;
2097
2570
  "pageId": string;
2098
2571
  [key: string]: unknown;
2099
2572
  };
@@ -2111,12 +2584,28 @@ export type MethodPageEvaluateInFrameResult = {
2111
2584
  "result": unknown;
2112
2585
  [key: string]: unknown;
2113
2586
  };
2114
- export type MethodPageExecuteParams = {
2587
+ export type MethodPageEvaluateRawParams = {
2115
2588
  "js": string;
2116
2589
  "pageId": string;
2117
2590
  [key: string]: unknown;
2118
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
+ };
2119
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>;
2120
2609
  export type MethodPageExistsParams = {
2121
2610
  "pageId": string;
2122
2611
  "selector": string;
@@ -2167,6 +2656,7 @@ export type MethodPageFetchBoundedResult = {
2167
2656
  [key: string]: unknown;
2168
2657
  };
2169
2658
  export type MethodPageFillParams = {
2659
+ "inputMode"?: MethodPageFillParams__InputMode;
2170
2660
  "operation_id": string;
2171
2661
  "options"?: MethodPageFillParams__ActionOptions;
2172
2662
  "pageId": string;
@@ -2175,12 +2665,26 @@ export type MethodPageFillParams = {
2175
2665
  [key: string]: unknown;
2176
2666
  };
2177
2667
  export type MethodPageFillParams__ActionOptions = {
2668
+ "destination"?: MethodPageFillParams__Destination;
2178
2669
  "expect"?: (MethodPageFillParams__Expectation | null);
2179
2670
  "timeout_ms"?: number;
2180
2671
  "wait_for_target"?: boolean;
2181
2672
  [key: string]: unknown;
2182
2673
  };
2674
+ export type MethodPageFillParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2183
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
+ } | {
2184
2688
  "kind": ("download_started" & string);
2185
2689
  [key: string]: unknown;
2186
2690
  } | {
@@ -2222,6 +2726,7 @@ export type MethodPageFillParams__Expectation = ({
2222
2726
  "values": Array<string>;
2223
2727
  [key: string]: unknown;
2224
2728
  });
2729
+ export type MethodPageFillParams__InputMode = (("sequential" & string) | ("bulk" & string));
2225
2730
  export type MethodPageFillParams__LocatorQuery = ({
2226
2731
  "id": number;
2227
2732
  "kind": ("node" & string);
@@ -2257,6 +2762,7 @@ export type MethodPageFillParams__LocatorSpec = {
2257
2762
  export type MethodPageFillResult = {
2258
2763
  "action": string;
2259
2764
  "dispatch_intent": boolean;
2765
+ "error"?: (MethodPageFillResult__ErrorDetail | null);
2260
2766
  "error_code"?: (string | null);
2261
2767
  "finished_at_ms"?: (number | null);
2262
2768
  "id": string;
@@ -2274,6 +2780,7 @@ export type MethodPageFillResult__ActionReceipt = {
2274
2780
  "action": string;
2275
2781
  "already_satisfied": boolean;
2276
2782
  "cleanup_pending": boolean;
2783
+ "destination_target_id"?: (string | null);
2277
2784
  "dispatch": MethodPageFillResult__DispatchState;
2278
2785
  "download_guid"?: (string | null);
2279
2786
  "elapsed_ms": number;
@@ -2285,8 +2792,36 @@ export type MethodPageFillResult__ActionReceipt = {
2285
2792
  "verification"?: (string | null);
2286
2793
  [key: string]: unknown;
2287
2794
  };
2795
+ export type MethodPageFillResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2288
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
+ };
2289
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
+ };
2290
2825
  export type MethodPageFramesParams = {
2291
2826
  "pageId": string;
2292
2827
  [key: string]: unknown;
@@ -2325,12 +2860,26 @@ export type MethodPageGotoParams = {
2325
2860
  [key: string]: unknown;
2326
2861
  };
2327
2862
  export type MethodPageGotoParams__ActionOptions = {
2863
+ "destination"?: MethodPageGotoParams__Destination;
2328
2864
  "expect"?: (MethodPageGotoParams__Expectation | null);
2329
2865
  "timeout_ms"?: number;
2330
2866
  "wait_for_target"?: boolean;
2331
2867
  [key: string]: unknown;
2332
2868
  };
2869
+ export type MethodPageGotoParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2333
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
+ } | {
2334
2883
  "kind": ("download_started" & string);
2335
2884
  [key: string]: unknown;
2336
2885
  } | {
@@ -2407,6 +2956,7 @@ export type MethodPageGotoParams__LocatorSpec = {
2407
2956
  export type MethodPageGotoResult = {
2408
2957
  "action": string;
2409
2958
  "dispatch_intent": boolean;
2959
+ "error"?: (MethodPageGotoResult__ErrorDetail | null);
2410
2960
  "error_code"?: (string | null);
2411
2961
  "finished_at_ms"?: (number | null);
2412
2962
  "id": string;
@@ -2424,6 +2974,7 @@ export type MethodPageGotoResult__ActionReceipt = {
2424
2974
  "action": string;
2425
2975
  "already_satisfied": boolean;
2426
2976
  "cleanup_pending": boolean;
2977
+ "destination_target_id"?: (string | null);
2427
2978
  "dispatch": MethodPageGotoResult__DispatchState;
2428
2979
  "download_guid"?: (string | null);
2429
2980
  "elapsed_ms": number;
@@ -2435,8 +2986,36 @@ export type MethodPageGotoResult__ActionReceipt = {
2435
2986
  "verification"?: (string | null);
2436
2987
  [key: string]: unknown;
2437
2988
  };
2989
+ export type MethodPageGotoResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2438
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
+ };
2439
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
+ };
2440
3019
  export type MethodPageHoverParams = {
2441
3020
  "operation_id": string;
2442
3021
  "options"?: MethodPageHoverParams__ActionOptions;
@@ -2445,12 +3024,26 @@ export type MethodPageHoverParams = {
2445
3024
  [key: string]: unknown;
2446
3025
  };
2447
3026
  export type MethodPageHoverParams__ActionOptions = {
3027
+ "destination"?: MethodPageHoverParams__Destination;
2448
3028
  "expect"?: (MethodPageHoverParams__Expectation | null);
2449
3029
  "timeout_ms"?: number;
2450
3030
  "wait_for_target"?: boolean;
2451
3031
  [key: string]: unknown;
2452
3032
  };
3033
+ export type MethodPageHoverParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2453
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
+ } | {
2454
3047
  "kind": ("download_started" & string);
2455
3048
  [key: string]: unknown;
2456
3049
  } | {
@@ -2527,6 +3120,7 @@ export type MethodPageHoverParams__LocatorSpec = {
2527
3120
  export type MethodPageHoverResult = {
2528
3121
  "action": string;
2529
3122
  "dispatch_intent": boolean;
3123
+ "error"?: (MethodPageHoverResult__ErrorDetail | null);
2530
3124
  "error_code"?: (string | null);
2531
3125
  "finished_at_ms"?: (number | null);
2532
3126
  "id": string;
@@ -2544,6 +3138,7 @@ export type MethodPageHoverResult__ActionReceipt = {
2544
3138
  "action": string;
2545
3139
  "already_satisfied": boolean;
2546
3140
  "cleanup_pending": boolean;
3141
+ "destination_target_id"?: (string | null);
2547
3142
  "dispatch": MethodPageHoverResult__DispatchState;
2548
3143
  "download_guid"?: (string | null);
2549
3144
  "elapsed_ms": number;
@@ -2555,8 +3150,36 @@ export type MethodPageHoverResult__ActionReceipt = {
2555
3150
  "verification"?: (string | null);
2556
3151
  [key: string]: unknown;
2557
3152
  };
3153
+ export type MethodPageHoverResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2558
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
+ };
2559
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
+ };
2560
3183
  export type MethodPageHumanClickParams = {
2561
3184
  "operation_id": string;
2562
3185
  "options"?: MethodPageHumanClickParams__ActionOptions;
@@ -2565,12 +3188,26 @@ export type MethodPageHumanClickParams = {
2565
3188
  [key: string]: unknown;
2566
3189
  };
2567
3190
  export type MethodPageHumanClickParams__ActionOptions = {
3191
+ "destination"?: MethodPageHumanClickParams__Destination;
2568
3192
  "expect"?: (MethodPageHumanClickParams__Expectation | null);
2569
3193
  "timeout_ms"?: number;
2570
3194
  "wait_for_target"?: boolean;
2571
3195
  [key: string]: unknown;
2572
3196
  };
3197
+ export type MethodPageHumanClickParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2573
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
+ } | {
2574
3211
  "kind": ("download_started" & string);
2575
3212
  [key: string]: unknown;
2576
3213
  } | {
@@ -2647,6 +3284,7 @@ export type MethodPageHumanClickParams__LocatorSpec = {
2647
3284
  export type MethodPageHumanClickResult = {
2648
3285
  "action": string;
2649
3286
  "dispatch_intent": boolean;
3287
+ "error"?: (MethodPageHumanClickResult__ErrorDetail | null);
2650
3288
  "error_code"?: (string | null);
2651
3289
  "finished_at_ms"?: (number | null);
2652
3290
  "id": string;
@@ -2664,6 +3302,7 @@ export type MethodPageHumanClickResult__ActionReceipt = {
2664
3302
  "action": string;
2665
3303
  "already_satisfied": boolean;
2666
3304
  "cleanup_pending": boolean;
3305
+ "destination_target_id"?: (string | null);
2667
3306
  "dispatch": MethodPageHumanClickResult__DispatchState;
2668
3307
  "download_guid"?: (string | null);
2669
3308
  "elapsed_ms": number;
@@ -2675,8 +3314,36 @@ export type MethodPageHumanClickResult__ActionReceipt = {
2675
3314
  "verification"?: (string | null);
2676
3315
  [key: string]: unknown;
2677
3316
  };
3317
+ export type MethodPageHumanClickResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2678
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
+ };
2679
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
+ };
2680
3347
  export type MethodPageHumanClickTextParams = {
2681
3348
  "operation_id": string;
2682
3349
  "options"?: MethodPageHumanClickTextParams__ActionOptions;
@@ -2685,12 +3352,26 @@ export type MethodPageHumanClickTextParams = {
2685
3352
  [key: string]: unknown;
2686
3353
  };
2687
3354
  export type MethodPageHumanClickTextParams__ActionOptions = {
3355
+ "destination"?: MethodPageHumanClickTextParams__Destination;
2688
3356
  "expect"?: (MethodPageHumanClickTextParams__Expectation | null);
2689
3357
  "timeout_ms"?: number;
2690
3358
  "wait_for_target"?: boolean;
2691
3359
  [key: string]: unknown;
2692
3360
  };
3361
+ export type MethodPageHumanClickTextParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2693
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
+ } | {
2694
3375
  "kind": ("download_started" & string);
2695
3376
  [key: string]: unknown;
2696
3377
  } | {
@@ -2767,6 +3448,7 @@ export type MethodPageHumanClickTextParams__LocatorSpec = {
2767
3448
  export type MethodPageHumanClickTextResult = {
2768
3449
  "action": string;
2769
3450
  "dispatch_intent": boolean;
3451
+ "error"?: (MethodPageHumanClickTextResult__ErrorDetail | null);
2770
3452
  "error_code"?: (string | null);
2771
3453
  "finished_at_ms"?: (number | null);
2772
3454
  "id": string;
@@ -2784,6 +3466,7 @@ export type MethodPageHumanClickTextResult__ActionReceipt = {
2784
3466
  "action": string;
2785
3467
  "already_satisfied": boolean;
2786
3468
  "cleanup_pending": boolean;
3469
+ "destination_target_id"?: (string | null);
2787
3470
  "dispatch": MethodPageHumanClickTextResult__DispatchState;
2788
3471
  "download_guid"?: (string | null);
2789
3472
  "elapsed_ms": number;
@@ -2795,9 +3478,38 @@ export type MethodPageHumanClickTextResult__ActionReceipt = {
2795
3478
  "verification"?: (string | null);
2796
3479
  [key: string]: unknown;
2797
3480
  };
3481
+ export type MethodPageHumanClickTextResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2798
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
+ };
2799
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
+ };
2800
3511
  export type MethodPageHumanFillParams = {
3512
+ "inputMode"?: MethodPageHumanFillParams__InputMode;
2801
3513
  "operation_id": string;
2802
3514
  "options"?: MethodPageHumanFillParams__ActionOptions;
2803
3515
  "pageId": string;
@@ -2806,12 +3518,26 @@ export type MethodPageHumanFillParams = {
2806
3518
  [key: string]: unknown;
2807
3519
  };
2808
3520
  export type MethodPageHumanFillParams__ActionOptions = {
3521
+ "destination"?: MethodPageHumanFillParams__Destination;
2809
3522
  "expect"?: (MethodPageHumanFillParams__Expectation | null);
2810
3523
  "timeout_ms"?: number;
2811
3524
  "wait_for_target"?: boolean;
2812
3525
  [key: string]: unknown;
2813
3526
  };
3527
+ export type MethodPageHumanFillParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
2814
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
+ } | {
2815
3541
  "kind": ("download_started" & string);
2816
3542
  [key: string]: unknown;
2817
3543
  } | {
@@ -2853,6 +3579,7 @@ export type MethodPageHumanFillParams__Expectation = ({
2853
3579
  "values": Array<string>;
2854
3580
  [key: string]: unknown;
2855
3581
  });
3582
+ export type MethodPageHumanFillParams__InputMode = (("sequential" & string) | ("bulk" & string));
2856
3583
  export type MethodPageHumanFillParams__LocatorQuery = ({
2857
3584
  "id": number;
2858
3585
  "kind": ("node" & string);
@@ -2888,6 +3615,7 @@ export type MethodPageHumanFillParams__LocatorSpec = {
2888
3615
  export type MethodPageHumanFillResult = {
2889
3616
  "action": string;
2890
3617
  "dispatch_intent": boolean;
3618
+ "error"?: (MethodPageHumanFillResult__ErrorDetail | null);
2891
3619
  "error_code"?: (string | null);
2892
3620
  "finished_at_ms"?: (number | null);
2893
3621
  "id": string;
@@ -2905,6 +3633,7 @@ export type MethodPageHumanFillResult__ActionReceipt = {
2905
3633
  "action": string;
2906
3634
  "already_satisfied": boolean;
2907
3635
  "cleanup_pending": boolean;
3636
+ "destination_target_id"?: (string | null);
2908
3637
  "dispatch": MethodPageHumanFillResult__DispatchState;
2909
3638
  "download_guid"?: (string | null);
2910
3639
  "elapsed_ms": number;
@@ -2916,8 +3645,36 @@ export type MethodPageHumanFillResult__ActionReceipt = {
2916
3645
  "verification"?: (string | null);
2917
3646
  [key: string]: unknown;
2918
3647
  };
3648
+ export type MethodPageHumanFillResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2919
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
+ };
2920
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
+ };
2921
3678
  export type MethodPageKeyDownParams = {
2922
3679
  "expect"?: (MethodPageKeyDownParams__Expectation | null);
2923
3680
  "key": string;
@@ -2927,6 +3684,18 @@ export type MethodPageKeyDownParams = {
2927
3684
  [key: string]: unknown;
2928
3685
  };
2929
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
+ } | {
2930
3699
  "kind": ("download_started" & string);
2931
3700
  [key: string]: unknown;
2932
3701
  } | {
@@ -3010,6 +3779,18 @@ export type MethodPageKeyUpParams = {
3010
3779
  [key: string]: unknown;
3011
3780
  };
3012
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
+ } | {
3013
3794
  "kind": ("download_started" & string);
3014
3795
  [key: string]: unknown;
3015
3796
  } | {
@@ -3117,12 +3898,26 @@ export type MethodPagePressKeyParams = {
3117
3898
  [key: string]: unknown;
3118
3899
  };
3119
3900
  export type MethodPagePressKeyParams__ActionOptions = {
3901
+ "destination"?: MethodPagePressKeyParams__Destination;
3120
3902
  "expect"?: (MethodPagePressKeyParams__Expectation | null);
3121
3903
  "timeout_ms"?: number;
3122
3904
  "wait_for_target"?: boolean;
3123
3905
  [key: string]: unknown;
3124
3906
  };
3907
+ export type MethodPagePressKeyParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
3125
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
+ } | {
3126
3921
  "kind": ("download_started" & string);
3127
3922
  [key: string]: unknown;
3128
3923
  } | {
@@ -3199,6 +3994,7 @@ export type MethodPagePressKeyParams__LocatorSpec = {
3199
3994
  export type MethodPagePressKeyResult = {
3200
3995
  "action": string;
3201
3996
  "dispatch_intent": boolean;
3997
+ "error"?: (MethodPagePressKeyResult__ErrorDetail | null);
3202
3998
  "error_code"?: (string | null);
3203
3999
  "finished_at_ms"?: (number | null);
3204
4000
  "id": string;
@@ -3216,6 +4012,7 @@ export type MethodPagePressKeyResult__ActionReceipt = {
3216
4012
  "action": string;
3217
4013
  "already_satisfied": boolean;
3218
4014
  "cleanup_pending": boolean;
4015
+ "destination_target_id"?: (string | null);
3219
4016
  "dispatch": MethodPagePressKeyResult__DispatchState;
3220
4017
  "download_guid"?: (string | null);
3221
4018
  "elapsed_ms": number;
@@ -3227,8 +4024,36 @@ export type MethodPagePressKeyResult__ActionReceipt = {
3227
4024
  "verification"?: (string | null);
3228
4025
  [key: string]: unknown;
3229
4026
  };
4027
+ export type MethodPagePressKeyResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
3230
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
+ };
3231
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
+ };
3232
4057
  export type MethodPageReleaseAllInputsParams = {
3233
4058
  "pageId": string;
3234
4059
  [key: string]: unknown;
@@ -3310,6 +4135,7 @@ export type MethodPageScreenshotToFileResult = {
3310
4135
  };
3311
4136
  export type MethodPageScreenshotToFileResult__ArtifactContainer = ("mp4" & string);
3312
4137
  export type MethodPageSelectParams = {
4138
+ "inputMode"?: MethodPageSelectParams__InputMode;
3313
4139
  "operation_id": string;
3314
4140
  "options"?: MethodPageSelectParams__ActionOptions;
3315
4141
  "pageId": string;
@@ -3318,12 +4144,26 @@ export type MethodPageSelectParams = {
3318
4144
  [key: string]: unknown;
3319
4145
  };
3320
4146
  export type MethodPageSelectParams__ActionOptions = {
4147
+ "destination"?: MethodPageSelectParams__Destination;
3321
4148
  "expect"?: (MethodPageSelectParams__Expectation | null);
3322
4149
  "timeout_ms"?: number;
3323
4150
  "wait_for_target"?: boolean;
3324
4151
  [key: string]: unknown;
3325
4152
  };
4153
+ export type MethodPageSelectParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
3326
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
+ } | {
3327
4167
  "kind": ("download_started" & string);
3328
4168
  [key: string]: unknown;
3329
4169
  } | {
@@ -3365,6 +4205,7 @@ export type MethodPageSelectParams__Expectation = ({
3365
4205
  "values": Array<string>;
3366
4206
  [key: string]: unknown;
3367
4207
  });
4208
+ export type MethodPageSelectParams__InputMode = (("sequential" & string) | ("bulk" & string));
3368
4209
  export type MethodPageSelectParams__LocatorQuery = ({
3369
4210
  "id": number;
3370
4211
  "kind": ("node" & string);
@@ -3400,6 +4241,7 @@ export type MethodPageSelectParams__LocatorSpec = {
3400
4241
  export type MethodPageSelectResult = {
3401
4242
  "action": string;
3402
4243
  "dispatch_intent": boolean;
4244
+ "error"?: (MethodPageSelectResult__ErrorDetail | null);
3403
4245
  "error_code"?: (string | null);
3404
4246
  "finished_at_ms"?: (number | null);
3405
4247
  "id": string;
@@ -3417,6 +4259,7 @@ export type MethodPageSelectResult__ActionReceipt = {
3417
4259
  "action": string;
3418
4260
  "already_satisfied": boolean;
3419
4261
  "cleanup_pending": boolean;
4262
+ "destination_target_id"?: (string | null);
3420
4263
  "dispatch": MethodPageSelectResult__DispatchState;
3421
4264
  "download_guid"?: (string | null);
3422
4265
  "elapsed_ms": number;
@@ -3428,8 +4271,36 @@ export type MethodPageSelectResult__ActionReceipt = {
3428
4271
  "verification"?: (string | null);
3429
4272
  [key: string]: unknown;
3430
4273
  };
4274
+ export type MethodPageSelectResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
3431
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
+ };
3432
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
+ };
3433
4304
  export type MethodPageSetViewportParams = {
3434
4305
  "deviceScaleFactor"?: number;
3435
4306
  "height": number;
@@ -3463,6 +4334,16 @@ export type MethodPageSolveCaptchaResult__CaptchaInjection = {
3463
4334
  "updated_count": number;
3464
4335
  [key: string]: unknown;
3465
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
+ };
3466
4347
  export type MethodPageTextParams = {
3467
4348
  "pageId": string;
3468
4349
  [key: string]: unknown;
@@ -3480,6 +4361,7 @@ export type MethodPageTitleResult = {
3480
4361
  [key: string]: unknown;
3481
4362
  };
3482
4363
  export type MethodPageTypeIntoParams = {
4364
+ "inputMode"?: MethodPageTypeIntoParams__InputMode;
3483
4365
  "operation_id": string;
3484
4366
  "options"?: MethodPageTypeIntoParams__ActionOptions;
3485
4367
  "pageId": string;
@@ -3488,12 +4370,26 @@ export type MethodPageTypeIntoParams = {
3488
4370
  [key: string]: unknown;
3489
4371
  };
3490
4372
  export type MethodPageTypeIntoParams__ActionOptions = {
4373
+ "destination"?: MethodPageTypeIntoParams__Destination;
3491
4374
  "expect"?: (MethodPageTypeIntoParams__Expectation | null);
3492
4375
  "timeout_ms"?: number;
3493
4376
  "wait_for_target"?: boolean;
3494
4377
  [key: string]: unknown;
3495
4378
  };
4379
+ export type MethodPageTypeIntoParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
3496
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
+ } | {
3497
4393
  "kind": ("download_started" & string);
3498
4394
  [key: string]: unknown;
3499
4395
  } | {
@@ -3535,6 +4431,7 @@ export type MethodPageTypeIntoParams__Expectation = ({
3535
4431
  "values": Array<string>;
3536
4432
  [key: string]: unknown;
3537
4433
  });
4434
+ export type MethodPageTypeIntoParams__InputMode = (("sequential" & string) | ("bulk" & string));
3538
4435
  export type MethodPageTypeIntoParams__LocatorQuery = ({
3539
4436
  "id": number;
3540
4437
  "kind": ("node" & string);
@@ -3570,6 +4467,7 @@ export type MethodPageTypeIntoParams__LocatorSpec = {
3570
4467
  export type MethodPageTypeIntoResult = {
3571
4468
  "action": string;
3572
4469
  "dispatch_intent": boolean;
4470
+ "error"?: (MethodPageTypeIntoResult__ErrorDetail | null);
3573
4471
  "error_code"?: (string | null);
3574
4472
  "finished_at_ms"?: (number | null);
3575
4473
  "id": string;
@@ -3587,6 +4485,7 @@ export type MethodPageTypeIntoResult__ActionReceipt = {
3587
4485
  "action": string;
3588
4486
  "already_satisfied": boolean;
3589
4487
  "cleanup_pending": boolean;
4488
+ "destination_target_id"?: (string | null);
3590
4489
  "dispatch": MethodPageTypeIntoResult__DispatchState;
3591
4490
  "download_guid"?: (string | null);
3592
4491
  "elapsed_ms": number;
@@ -3598,8 +4497,36 @@ export type MethodPageTypeIntoResult__ActionReceipt = {
3598
4497
  "verification"?: (string | null);
3599
4498
  [key: string]: unknown;
3600
4499
  };
4500
+ export type MethodPageTypeIntoResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
3601
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
+ };
3602
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
+ };
3603
4530
  export type MethodPageUrlParams = {
3604
4531
  "pageId": string;
3605
4532
  [key: string]: unknown;
@@ -3813,7 +4740,9 @@ export type MethodParams = {
3813
4740
  "page.content": MethodPageContentParams;
3814
4741
  "page.evaluate": MethodPageEvaluateParams;
3815
4742
  "page.evaluate_in_frame": MethodPageEvaluateInFrameParams;
4743
+ "page.evaluate_raw": MethodPageEvaluateRawParams;
3816
4744
  "page.execute": MethodPageExecuteParams;
4745
+ "page.execute_raw": MethodPageExecuteRawParams;
3817
4746
  "page.exists": MethodPageExistsParams;
3818
4747
  "page.fetch": MethodPageFetchParams;
3819
4748
  "page.fetch_bounded": MethodPageFetchBoundedParams;
@@ -3840,6 +4769,7 @@ export type MethodParams = {
3840
4769
  "page.select": MethodPageSelectParams;
3841
4770
  "page.set_viewport": MethodPageSetViewportParams;
3842
4771
  "page.solve_captcha": MethodPageSolveCaptchaParams;
4772
+ "page.solve_turnstile": MethodPageSolveTurnstileParams;
3843
4773
  "page.text": MethodPageTextParams;
3844
4774
  "page.title": MethodPageTitleParams;
3845
4775
  "page.type_into": MethodPageTypeIntoParams;
@@ -3876,7 +4806,9 @@ export type MethodResults = {
3876
4806
  "page.content": MethodPageContentResult;
3877
4807
  "page.evaluate": MethodPageEvaluateResult;
3878
4808
  "page.evaluate_in_frame": MethodPageEvaluateInFrameResult;
4809
+ "page.evaluate_raw": MethodPageEvaluateRawResult;
3879
4810
  "page.execute": MethodPageExecuteResult;
4811
+ "page.execute_raw": MethodPageExecuteRawResult;
3880
4812
  "page.exists": MethodPageExistsResult;
3881
4813
  "page.fetch": MethodPageFetchResult;
3882
4814
  "page.fetch_bounded": MethodPageFetchBoundedResult;
@@ -3903,6 +4835,7 @@ export type MethodResults = {
3903
4835
  "page.select": MethodPageSelectResult;
3904
4836
  "page.set_viewport": MethodPageSetViewportResult;
3905
4837
  "page.solve_captcha": MethodPageSolveCaptchaResult;
4838
+ "page.solve_turnstile": MethodPageSolveTurnstileResult;
3906
4839
  "page.text": MethodPageTextResult;
3907
4840
  "page.title": MethodPageTitleResult;
3908
4841
  "page.type_into": MethodPageTypeIntoResult;
@@ -3939,7 +4872,7 @@ export type ProtocolErrorResponse = {
3939
4872
  };
3940
4873
  export type ProtocolResponse<M extends MethodName = MethodName> = ProtocolSuccessResponse<M> | ProtocolErrorResponse;
3941
4874
  export declare const protocolVersion: {
3942
- readonly major: 1;
3943
- readonly minor: 3;
4875
+ readonly major: 2;
4876
+ readonly minor: 0;
3944
4877
  };
3945
- 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.execute", "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.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"];