@cbxss/eoka 0.0.0-stage → 0.1.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +170 -2
  2. package/dist/LICENSE +21 -0
  3. package/dist/browser-install-diagnostics.d.ts +1 -0
  4. package/dist/browser-install-diagnostics.js +21 -0
  5. package/dist/browser-install-engine.d.ts +10 -0
  6. package/dist/browser-install-engine.js +286 -0
  7. package/dist/browser-install-inventory.d.ts +34 -0
  8. package/dist/browser-install-inventory.js +107 -0
  9. package/dist/browser-install-worker.d.ts +21 -0
  10. package/dist/browser-install-worker.js +65 -0
  11. package/dist/browser-install.d.ts +22 -0
  12. package/dist/browser-install.js +7 -0
  13. package/dist/browser.d.ts +62 -0
  14. package/dist/browser.js +452 -0
  15. package/dist/client.d.ts +11 -0
  16. package/dist/client.js +1 -0
  17. package/dist/cloudflare.d.ts +12 -0
  18. package/dist/cloudflare.js +19 -0
  19. package/dist/errors.d.ts +33 -0
  20. package/dist/errors.js +44 -0
  21. package/dist/generated/protocol.d.ts +4878 -0
  22. package/dist/generated/protocol.js +2 -0
  23. package/dist/generated/schema-bundle.json +23846 -0
  24. package/dist/index.d.ts +22 -0
  25. package/dist/index.js +11 -0
  26. package/dist/install-errors.d.ts +4 -0
  27. package/dist/install-errors.js +6 -0
  28. package/dist/operations.d.ts +22 -0
  29. package/dist/operations.js +87 -0
  30. package/dist/page.d.ts +107 -0
  31. package/dist/page.js +299 -0
  32. package/dist/platform.d.ts +4 -0
  33. package/dist/platform.js +27 -0
  34. package/dist/recording.d.ts +27 -0
  35. package/dist/recording.js +124 -0
  36. package/dist/release-manifest.json +101 -0
  37. package/dist/release.d.ts +36 -0
  38. package/dist/release.js +76 -0
  39. package/dist/server-binary.d.ts +12 -0
  40. package/dist/server-binary.js +130 -0
  41. package/dist/transport.d.ts +89 -0
  42. package/dist/transport.js +737 -0
  43. package/examples/capture.mjs +36 -0
  44. package/examples/consume-schema.mjs +7 -0
  45. package/examples/explicit-paths.mjs +42 -0
  46. package/examples/install-browser.mjs +20 -0
  47. package/examples/offline.mjs +20 -0
  48. package/package.json +70 -4
@@ -0,0 +1,4878 @@
1
+ export type Action = ({
2
+ "delta": number;
3
+ "kind": ("history" & string);
4
+ [key: string]: unknown;
5
+ } | {
6
+ "kind": ("select_option" & string);
7
+ "target": Action__LocatorSpec;
8
+ "value": string;
9
+ [key: string]: unknown;
10
+ } | {
11
+ "headers": Record<string, string>;
12
+ "kind": ("navigate_with_headers" & string);
13
+ "url": string;
14
+ [key: string]: unknown;
15
+ } | {
16
+ "dx": number;
17
+ "dy": number;
18
+ "kind": ("drag" & string);
19
+ "target": Action__LocatorSpec;
20
+ [key: string]: unknown;
21
+ } | {
22
+ "kind": ("insert_text" & string);
23
+ "text": string;
24
+ [key: string]: unknown;
25
+ } | {
26
+ "kind": ("select_text" & string);
27
+ "target": Action__LocatorSpec;
28
+ "text": string;
29
+ [key: string]: unknown;
30
+ } | {
31
+ "double"?: boolean;
32
+ "human"?: boolean;
33
+ "kind": ("click" & string);
34
+ "target": Action__LocatorSpec;
35
+ [key: string]: unknown;
36
+ } | {
37
+ "input_mode"?: Action__InputMode;
38
+ "kind": ("fill" & string);
39
+ "target": Action__LocatorSpec;
40
+ "value": string;
41
+ [key: string]: unknown;
42
+ } | {
43
+ "input_mode"?: Action__InputMode;
44
+ "kind": ("type" & string);
45
+ "target": Action__LocatorSpec;
46
+ "text": string;
47
+ [key: string]: unknown;
48
+ } | {
49
+ "kind": ("select" & string);
50
+ "target": Action__LocatorSpec;
51
+ "values": Array<string>;
52
+ [key: string]: unknown;
53
+ } | {
54
+ "files": Array<string>;
55
+ "kind": ("upload" & string);
56
+ "target": Action__LocatorSpec;
57
+ [key: string]: unknown;
58
+ } | {
59
+ "key": string;
60
+ "kind": ("press_key" & string);
61
+ [key: string]: unknown;
62
+ } | {
63
+ "kind": ("submit" & string);
64
+ "target": Action__LocatorSpec;
65
+ [key: string]: unknown;
66
+ } | {
67
+ "human"?: boolean;
68
+ "kind": ("hover" & string);
69
+ "target": Action__LocatorSpec;
70
+ [key: string]: unknown;
71
+ } | {
72
+ "kind": ("focus" & string);
73
+ "target": Action__LocatorSpec;
74
+ [key: string]: unknown;
75
+ } | {
76
+ "kind": ("scroll_into_view" & string);
77
+ "target": Action__LocatorSpec;
78
+ [key: string]: unknown;
79
+ } | {
80
+ "kind": ("navigate" & string);
81
+ "referrer"?: (string | null);
82
+ "url": string;
83
+ [key: string]: unknown;
84
+ } | {
85
+ "kind": ("reload" & string);
86
+ [key: string]: unknown;
87
+ } | {
88
+ "kind": ("back" & string);
89
+ [key: string]: unknown;
90
+ } | {
91
+ "kind": ("forward" & string);
92
+ [key: string]: unknown;
93
+ });
94
+ export type Action__InputMode = (("sequential" & string) | ("bulk" & string));
95
+ export type Action__LocatorQuery = ({
96
+ "id": number;
97
+ "kind": ("node" & string);
98
+ [key: string]: unknown;
99
+ } | {
100
+ "kind": ("css" & string);
101
+ "selector": string;
102
+ [key: string]: unknown;
103
+ } | {
104
+ "exact"?: boolean;
105
+ "kind": ("text" & string);
106
+ "text": string;
107
+ [key: string]: unknown;
108
+ } | {
109
+ "kind": ("placeholder" & string);
110
+ "text": string;
111
+ [key: string]: unknown;
112
+ } | {
113
+ "kind": ("role" & string);
114
+ "role": string;
115
+ [key: string]: unknown;
116
+ } | {
117
+ "id": number;
118
+ "kind": ("backend_node" & string);
119
+ [key: string]: unknown;
120
+ });
121
+ export type Action__LocatorSpec = {
122
+ "frame_id"?: (string | null);
123
+ "index"?: (number | null);
124
+ "query": Action__LocatorQuery;
125
+ [key: string]: unknown;
126
+ };
127
+ export type ActionOptions = {
128
+ "destination"?: ActionOptions__Destination;
129
+ "expect"?: (ActionOptions__Expectation | null);
130
+ "timeout_ms"?: number;
131
+ "wait_for_target"?: boolean;
132
+ [key: string]: unknown;
133
+ };
134
+ export type ActionOptions__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
148
+ "kind": ("download_started" & string);
149
+ [key: string]: unknown;
150
+ } | {
151
+ "kind": ("focused" & string);
152
+ "target": ActionOptions__LocatorSpec;
153
+ [key: string]: unknown;
154
+ } | {
155
+ "contains"?: boolean;
156
+ "kind": ("url" & string);
157
+ "value": string;
158
+ [key: string]: unknown;
159
+ } | {
160
+ "kind": ("visible" & string);
161
+ "target": ActionOptions__LocatorSpec;
162
+ [key: string]: unknown;
163
+ } | {
164
+ "kind": ("hidden" & string);
165
+ "target": ActionOptions__LocatorSpec;
166
+ [key: string]: unknown;
167
+ } | {
168
+ "contains"?: boolean;
169
+ "kind": ("text" & string);
170
+ "target": ActionOptions__LocatorSpec;
171
+ "value": string;
172
+ [key: string]: unknown;
173
+ } | {
174
+ "kind": ("value" & string);
175
+ "target": ActionOptions__LocatorSpec;
176
+ "value": string;
177
+ [key: string]: unknown;
178
+ } | {
179
+ "checked": boolean;
180
+ "kind": ("checked" & string);
181
+ "target": ActionOptions__LocatorSpec;
182
+ [key: string]: unknown;
183
+ } | {
184
+ "kind": ("selected" & string);
185
+ "target": ActionOptions__LocatorSpec;
186
+ "values": Array<string>;
187
+ [key: string]: unknown;
188
+ });
189
+ export type ActionOptions__LocatorQuery = ({
190
+ "id": number;
191
+ "kind": ("node" & string);
192
+ [key: string]: unknown;
193
+ } | {
194
+ "kind": ("css" & string);
195
+ "selector": string;
196
+ [key: string]: unknown;
197
+ } | {
198
+ "exact"?: boolean;
199
+ "kind": ("text" & string);
200
+ "text": string;
201
+ [key: string]: unknown;
202
+ } | {
203
+ "kind": ("placeholder" & string);
204
+ "text": string;
205
+ [key: string]: unknown;
206
+ } | {
207
+ "kind": ("role" & string);
208
+ "role": string;
209
+ [key: string]: unknown;
210
+ } | {
211
+ "id": number;
212
+ "kind": ("backend_node" & string);
213
+ [key: string]: unknown;
214
+ });
215
+ export type ActionOptions__LocatorSpec = {
216
+ "frame_id"?: (string | null);
217
+ "index"?: (number | null);
218
+ "query": ActionOptions__LocatorQuery;
219
+ [key: string]: unknown;
220
+ };
221
+ export type ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
222
+ export type ActionReceipt = {
223
+ "action": string;
224
+ "already_satisfied": boolean;
225
+ "cleanup_pending": boolean;
226
+ "destination_target_id"?: (string | null);
227
+ "dispatch": ActionReceipt__DispatchState;
228
+ "download_guid"?: (string | null);
229
+ "elapsed_ms": number;
230
+ "finished_at_ms": number;
231
+ "outcome": ActionReceipt__ActionOutcome;
232
+ "preparation_may_have_executed": boolean;
233
+ "started_at_ms": number;
234
+ "target_id": string;
235
+ "verification"?: (string | null);
236
+ [key: string]: unknown;
237
+ };
238
+ export type ActionReceipt__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
239
+ export type ActionReceipt__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
240
+ export type AgentAction = (({
241
+ "kind": ("click" & string);
242
+ "target": string;
243
+ } & {
244
+ "input_mode"?: never;
245
+ "text"?: never;
246
+ "value"?: never;
247
+ "key"?: never;
248
+ "url"?: never;
249
+ }) | ({
250
+ "input_mode"?: AgentAction__InputMode;
251
+ "kind": ("fill" & string);
252
+ "target": string;
253
+ "text": string;
254
+ } & {
255
+ "value"?: never;
256
+ "key"?: never;
257
+ "url"?: never;
258
+ }) | ({
259
+ "input_mode"?: AgentAction__InputMode;
260
+ "kind": ("type" & string);
261
+ "target": string;
262
+ "text": string;
263
+ } & {
264
+ "value"?: never;
265
+ "key"?: never;
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;
276
+ }) | ({
277
+ "kind": ("select" & string);
278
+ "target": string;
279
+ "value": string;
280
+ } & {
281
+ "input_mode"?: never;
282
+ "text"?: never;
283
+ "key"?: never;
284
+ "url"?: never;
285
+ }) | ({
286
+ "kind": ("hover" & string);
287
+ "target": string;
288
+ } & {
289
+ "input_mode"?: never;
290
+ "text"?: never;
291
+ "value"?: never;
292
+ "key"?: never;
293
+ "url"?: never;
294
+ }) | ({
295
+ "kind": ("scroll_into_view" & string);
296
+ "target": string;
297
+ } & {
298
+ "input_mode"?: never;
299
+ "text"?: never;
300
+ "value"?: never;
301
+ "key"?: never;
302
+ "url"?: never;
303
+ }) | ({
304
+ "key": string;
305
+ "kind": ("press_key" & string);
306
+ } & {
307
+ "target"?: never;
308
+ "input_mode"?: never;
309
+ "text"?: never;
310
+ "value"?: never;
311
+ "url"?: never;
312
+ }) | ({
313
+ "kind": ("navigate" & string);
314
+ "url": string;
315
+ } & {
316
+ "target"?: never;
317
+ "input_mode"?: never;
318
+ "text"?: never;
319
+ "value"?: never;
320
+ "key"?: never;
321
+ }) | ({
322
+ "kind": ("back" & string);
323
+ } & {
324
+ "target"?: never;
325
+ "input_mode"?: never;
326
+ "text"?: never;
327
+ "value"?: never;
328
+ "key"?: never;
329
+ "url"?: never;
330
+ }) | ({
331
+ "kind": ("forward" & string);
332
+ } & {
333
+ "target"?: never;
334
+ "input_mode"?: never;
335
+ "text"?: never;
336
+ "value"?: never;
337
+ "key"?: never;
338
+ "url"?: never;
339
+ }));
340
+ export type AgentAction__InputMode = (("sequential" & string) | ("bulk" & string));
341
+ export type AgentMode = (("explore" | "verify") & string);
342
+ export type AgentObservation = {
343
+ "controls": Array<AgentObservation__AgentControl>;
344
+ "next_cursor"?: (string | null);
345
+ "observation_id": string;
346
+ "page"?: (AgentObservation__PageContext | null);
347
+ "tab_id": string;
348
+ "tabs": Array<AgentObservation__AgentTab>;
349
+ "total_controls": number;
350
+ "truncated": boolean;
351
+ "warnings": Array<string>;
352
+ [key: string]: unknown;
353
+ };
354
+ export type AgentObservation__AgentControl = {
355
+ "checked"?: (boolean | null);
356
+ "disabled": boolean;
357
+ "editable": boolean;
358
+ "expanded"?: (boolean | null);
359
+ "focused": boolean;
360
+ "invalid": boolean;
361
+ "name": string;
362
+ "readonly": boolean;
363
+ "required": boolean;
364
+ "role": string;
365
+ "target": string;
366
+ "validation_message"?: (string | null);
367
+ [key: string]: unknown;
368
+ };
369
+ export type AgentObservation__AgentTab = {
370
+ "id": string;
371
+ "selected": boolean;
372
+ "title": string;
373
+ "url": string;
374
+ [key: string]: unknown;
375
+ };
376
+ export type AgentObservation__PageContext = {
377
+ "headings": Array<string>;
378
+ "messages": Array<string>;
379
+ "ready_state": string;
380
+ "tab_id": string;
381
+ "text_excerpt": string;
382
+ "title": string;
383
+ "truncated": boolean;
384
+ "url": string;
385
+ [key: string]: unknown;
386
+ };
387
+ export type AgentStepResult = {
388
+ "observation"?: (AgentStepResult__AgentObservation | null);
389
+ "observation_error"?: (string | null);
390
+ "operation"?: (AgentStepResult__OperationRecord | null);
391
+ "operation_error"?: (AgentStepResult__ErrorDetail | null);
392
+ "operation_id": string;
393
+ "status": AgentStepResult__OperationStatus;
394
+ [key: string]: unknown;
395
+ };
396
+ export type AgentStepResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
397
+ export type AgentStepResult__ActionReceipt = {
398
+ "action": string;
399
+ "already_satisfied": boolean;
400
+ "cleanup_pending": boolean;
401
+ "destination_target_id"?: (string | null);
402
+ "dispatch": AgentStepResult__DispatchState;
403
+ "download_guid"?: (string | null);
404
+ "elapsed_ms": number;
405
+ "finished_at_ms": number;
406
+ "outcome": AgentStepResult__ActionOutcome;
407
+ "preparation_may_have_executed": boolean;
408
+ "started_at_ms": number;
409
+ "target_id": string;
410
+ "verification"?: (string | null);
411
+ [key: string]: unknown;
412
+ };
413
+ export type AgentStepResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
414
+ export type AgentStepResult__AgentControl = {
415
+ "checked"?: (boolean | null);
416
+ "disabled": boolean;
417
+ "editable": boolean;
418
+ "expanded"?: (boolean | null);
419
+ "focused": boolean;
420
+ "invalid": boolean;
421
+ "name": string;
422
+ "readonly": boolean;
423
+ "required": boolean;
424
+ "role": string;
425
+ "target": string;
426
+ "validation_message"?: (string | null);
427
+ [key: string]: unknown;
428
+ };
429
+ export type AgentStepResult__AgentObservation = {
430
+ "controls": Array<AgentStepResult__AgentControl>;
431
+ "next_cursor"?: (string | null);
432
+ "observation_id": string;
433
+ "page"?: (AgentStepResult__PageContext | null);
434
+ "tab_id": string;
435
+ "tabs": Array<AgentStepResult__AgentTab>;
436
+ "total_controls": number;
437
+ "truncated": boolean;
438
+ "warnings": Array<string>;
439
+ [key: string]: unknown;
440
+ };
441
+ export type AgentStepResult__AgentTab = {
442
+ "id": string;
443
+ "selected": boolean;
444
+ "title": string;
445
+ "url": string;
446
+ [key: string]: unknown;
447
+ };
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
+ };
465
+ export type AgentStepResult__OperationRecord = {
466
+ "action": string;
467
+ "dispatch_intent": boolean;
468
+ "error"?: (AgentStepResult__ErrorDetail | null);
469
+ "error_code"?: (string | null);
470
+ "finished_at_ms"?: (number | null);
471
+ "id": string;
472
+ "outcome": AgentStepResult__ActionOutcome;
473
+ "preparation_intent": boolean;
474
+ "receipt"?: (AgentStepResult__ActionReceipt | null);
475
+ "runtime_id": string;
476
+ "started_at_ms": number;
477
+ "state": AgentStepResult__OperationState;
478
+ "target_id": string;
479
+ [key: string]: unknown;
480
+ };
481
+ export type AgentStepResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
482
+ export type AgentStepResult__OperationStatus = (("running" | "verified_complete" | "not_dispatched" | "outcome_unknown") & string);
483
+ export type AgentStepResult__PageContext = {
484
+ "headings": Array<string>;
485
+ "messages": Array<string>;
486
+ "ready_state": string;
487
+ "tab_id": string;
488
+ "text_excerpt": string;
489
+ "title": string;
490
+ "truncated": boolean;
491
+ "url": string;
492
+ [key: string]: unknown;
493
+ };
494
+ export type Artifact = {
495
+ "bytes": number;
496
+ "container"?: (Artifact__ArtifactContainer | null);
497
+ "mimeType": string;
498
+ "path": string;
499
+ [key: string]: unknown;
500
+ };
501
+ export type Artifact__ArtifactContainer = ("mp4" & string);
502
+ export type ArtifactContainer = ("mp4" & string);
503
+ export type BrowserState = {
504
+ "cookies": Array<BrowserState__SessionCookie>;
505
+ "localStorage"?: Record<string, string>;
506
+ "sessionStorage"?: Record<string, string>;
507
+ "url": string;
508
+ "userAgent": string;
509
+ [key: string]: unknown;
510
+ };
511
+ export type BrowserState__SessionCookie = {
512
+ "domain": string;
513
+ "expires"?: (number | null);
514
+ "http_only": boolean;
515
+ "name": string;
516
+ "path": string;
517
+ "same_site"?: (string | null);
518
+ "secure": boolean;
519
+ "value": string;
520
+ [key: string]: unknown;
521
+ };
522
+ export type CdpErrorDetail = {
523
+ "code"?: (number | null);
524
+ "message": string;
525
+ "method"?: (string | null);
526
+ [key: string]: unknown;
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));
534
+ export type DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
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);
536
+ export type ErrorData = {
537
+ "cdp"?: (ErrorData__CdpErrorDetail | null);
538
+ "detail"?: (ErrorData__ErrorDetail | null);
539
+ "operation_id"?: (string | null);
540
+ "partialPath"?: (string | null);
541
+ "path"?: (string | null);
542
+ "receipt"?: (ErrorData__ActionReceipt | null);
543
+ "recording"?: (ErrorData__RecordingRecord | null);
544
+ "recordingId"?: (string | null);
545
+ "source"?: (ErrorData__ServerError | null);
546
+ [key: string]: unknown;
547
+ };
548
+ export type ErrorData__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
549
+ export type ErrorData__ActionReceipt = {
550
+ "action": string;
551
+ "already_satisfied": boolean;
552
+ "cleanup_pending": boolean;
553
+ "destination_target_id"?: (string | null);
554
+ "dispatch": ErrorData__DispatchState;
555
+ "download_guid"?: (string | null);
556
+ "elapsed_ms": number;
557
+ "finished_at_ms": number;
558
+ "outcome": ErrorData__ActionOutcome;
559
+ "preparation_may_have_executed": boolean;
560
+ "started_at_ms": number;
561
+ "target_id": string;
562
+ "verification"?: (string | null);
563
+ [key: string]: unknown;
564
+ };
565
+ export type ErrorData__ActionStatus = (("not_attempted" | "may_have_executed") & string);
566
+ export type ErrorData__Artifact = {
567
+ "bytes": number;
568
+ "container"?: (ErrorData__ArtifactContainer | null);
569
+ "mimeType": string;
570
+ "path": string;
571
+ [key: string]: unknown;
572
+ };
573
+ export type ErrorData__ArtifactContainer = ("mp4" & string);
574
+ export type ErrorData__CdpErrorDetail = {
575
+ "code"?: (number | null);
576
+ "message": string;
577
+ "method"?: (string | null);
578
+ [key: string]: unknown;
579
+ };
580
+ export type ErrorData__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
581
+ export type ErrorData__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);
582
+ export type ErrorData__ErrorContext = {
583
+ "action_status"?: (ErrorData__ActionStatus | null);
584
+ "download_id"?: (string | null);
585
+ "operation_id"?: (string | null);
586
+ "page"?: (ErrorData__PageContext | null);
587
+ "phase"?: (string | null);
588
+ [key: string]: unknown;
589
+ };
590
+ export type ErrorData__ErrorDetail = {
591
+ "code": string;
592
+ "context"?: (ErrorData__ErrorContext | null);
593
+ "hint"?: (string | null);
594
+ "message": string;
595
+ "retryable"?: (boolean | null);
596
+ [key: string]: unknown;
597
+ };
598
+ export type ErrorData__PageContext = {
599
+ "headings": Array<string>;
600
+ "messages": Array<string>;
601
+ "ready_state": string;
602
+ "tab_id": string;
603
+ "text_excerpt": string;
604
+ "title": string;
605
+ "truncated": boolean;
606
+ "url": string;
607
+ [key: string]: unknown;
608
+ };
609
+ export type ErrorData__RecordingFailure = {
610
+ "cleanupUncertain"?: (boolean | null);
611
+ "code": ErrorData__ErrorCode;
612
+ "message": string;
613
+ "partialPath"?: (string | null);
614
+ "stage": ErrorData__RecordingFailureStage;
615
+ [key: string]: unknown;
616
+ };
617
+ export type ErrorData__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
618
+ export type ErrorData__RecordingRecord = {
619
+ "artifact"?: (ErrorData__Artifact | null);
620
+ "failure"?: (ErrorData__RecordingFailure | null);
621
+ "pageId": string;
622
+ "path": string;
623
+ "recordingId": string;
624
+ "state": ErrorData__RecordingState;
625
+ [key: string]: unknown;
626
+ };
627
+ export type ErrorData__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
628
+ export type ErrorData__ServerError = {
629
+ "code": ErrorData__ErrorCode;
630
+ "data"?: (ErrorData | null);
631
+ "message": string;
632
+ [key: string]: unknown;
633
+ };
634
+ export type ErrorDetail = {
635
+ "code": string;
636
+ "context"?: (ErrorDetail__ErrorContext | null);
637
+ "hint"?: (string | null);
638
+ "message": string;
639
+ "retryable"?: (boolean | null);
640
+ [key: string]: unknown;
641
+ };
642
+ export type ErrorDetail__ActionStatus = (("not_attempted" | "may_have_executed") & string);
643
+ export type ErrorDetail__ErrorContext = {
644
+ "action_status"?: (ErrorDetail__ActionStatus | null);
645
+ "download_id"?: (string | null);
646
+ "operation_id"?: (string | null);
647
+ "page"?: (ErrorDetail__PageContext | null);
648
+ "phase"?: (string | null);
649
+ [key: string]: unknown;
650
+ };
651
+ export type ErrorDetail__PageContext = {
652
+ "headings": Array<string>;
653
+ "messages": Array<string>;
654
+ "ready_state": string;
655
+ "tab_id": string;
656
+ "text_excerpt": string;
657
+ "title": string;
658
+ "truncated": boolean;
659
+ "url": string;
660
+ [key: string]: unknown;
661
+ };
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
+ } | {
675
+ "kind": ("download_started" & string);
676
+ [key: string]: unknown;
677
+ } | {
678
+ "kind": ("focused" & string);
679
+ "target": Expectation__LocatorSpec;
680
+ [key: string]: unknown;
681
+ } | {
682
+ "contains"?: boolean;
683
+ "kind": ("url" & string);
684
+ "value": string;
685
+ [key: string]: unknown;
686
+ } | {
687
+ "kind": ("visible" & string);
688
+ "target": Expectation__LocatorSpec;
689
+ [key: string]: unknown;
690
+ } | {
691
+ "kind": ("hidden" & string);
692
+ "target": Expectation__LocatorSpec;
693
+ [key: string]: unknown;
694
+ } | {
695
+ "contains"?: boolean;
696
+ "kind": ("text" & string);
697
+ "target": Expectation__LocatorSpec;
698
+ "value": string;
699
+ [key: string]: unknown;
700
+ } | {
701
+ "kind": ("value" & string);
702
+ "target": Expectation__LocatorSpec;
703
+ "value": string;
704
+ [key: string]: unknown;
705
+ } | {
706
+ "checked": boolean;
707
+ "kind": ("checked" & string);
708
+ "target": Expectation__LocatorSpec;
709
+ [key: string]: unknown;
710
+ } | {
711
+ "kind": ("selected" & string);
712
+ "target": Expectation__LocatorSpec;
713
+ "values": Array<string>;
714
+ [key: string]: unknown;
715
+ });
716
+ export type Expectation__LocatorQuery = ({
717
+ "id": number;
718
+ "kind": ("node" & string);
719
+ [key: string]: unknown;
720
+ } | {
721
+ "kind": ("css" & string);
722
+ "selector": string;
723
+ [key: string]: unknown;
724
+ } | {
725
+ "exact"?: boolean;
726
+ "kind": ("text" & string);
727
+ "text": string;
728
+ [key: string]: unknown;
729
+ } | {
730
+ "kind": ("placeholder" & string);
731
+ "text": string;
732
+ [key: string]: unknown;
733
+ } | {
734
+ "kind": ("role" & string);
735
+ "role": string;
736
+ [key: string]: unknown;
737
+ } | {
738
+ "id": number;
739
+ "kind": ("backend_node" & string);
740
+ [key: string]: unknown;
741
+ });
742
+ export type Expectation__LocatorSpec = {
743
+ "frame_id"?: (string | null);
744
+ "index"?: (number | null);
745
+ "query": Expectation__LocatorQuery;
746
+ [key: string]: unknown;
747
+ };
748
+ export type HelloParams = {
749
+ "protocol": HelloParams__ProtocolVersion;
750
+ [key: string]: unknown;
751
+ };
752
+ export type HelloParams__ProtocolVersion = {
753
+ "major": number;
754
+ "minor": number;
755
+ [key: string]: unknown;
756
+ };
757
+ export type HelloResult = {
758
+ "capabilities": Array<string>;
759
+ "coreVersion": string;
760
+ "limits": HelloResult__TransportLimits;
761
+ "methods": Array<string>;
762
+ "protocol": HelloResult__ProtocolVersion;
763
+ "serverVersion": string;
764
+ [key: string]: unknown;
765
+ };
766
+ export type HelloResult__ProtocolVersion = {
767
+ "major": number;
768
+ "minor": number;
769
+ [key: string]: unknown;
770
+ };
771
+ export type HelloResult__TransportLimits = {
772
+ "maxInFlight": number;
773
+ "maxMessageBytes": number;
774
+ [key: string]: unknown;
775
+ };
776
+ export type InputMode = (("sequential" & string) | ("bulk" & string));
777
+ export type LocatorQuery = ({
778
+ "id": number;
779
+ "kind": ("node" & string);
780
+ [key: string]: unknown;
781
+ } | {
782
+ "kind": ("css" & string);
783
+ "selector": string;
784
+ [key: string]: unknown;
785
+ } | {
786
+ "exact"?: boolean;
787
+ "kind": ("text" & string);
788
+ "text": string;
789
+ [key: string]: unknown;
790
+ } | {
791
+ "kind": ("placeholder" & string);
792
+ "text": string;
793
+ [key: string]: unknown;
794
+ } | {
795
+ "kind": ("role" & string);
796
+ "role": string;
797
+ [key: string]: unknown;
798
+ } | {
799
+ "id": number;
800
+ "kind": ("backend_node" & string);
801
+ [key: string]: unknown;
802
+ });
803
+ export type LocatorSpec = {
804
+ "frame_id"?: (string | null);
805
+ "index"?: (number | null);
806
+ "query": LocatorSpec__LocatorQuery;
807
+ [key: string]: unknown;
808
+ };
809
+ export type LocatorSpec__LocatorQuery = ({
810
+ "id": number;
811
+ "kind": ("node" & string);
812
+ [key: string]: unknown;
813
+ } | {
814
+ "kind": ("css" & string);
815
+ "selector": string;
816
+ [key: string]: unknown;
817
+ } | {
818
+ "exact"?: boolean;
819
+ "kind": ("text" & string);
820
+ "text": string;
821
+ [key: string]: unknown;
822
+ } | {
823
+ "kind": ("placeholder" & string);
824
+ "text": string;
825
+ [key: string]: unknown;
826
+ } | {
827
+ "kind": ("role" & string);
828
+ "role": string;
829
+ [key: string]: unknown;
830
+ } | {
831
+ "id": number;
832
+ "kind": ("backend_node" & string);
833
+ [key: string]: unknown;
834
+ });
835
+ export type OperationRecord = {
836
+ "action": string;
837
+ "dispatch_intent": boolean;
838
+ "error"?: (OperationRecord__ErrorDetail | null);
839
+ "error_code"?: (string | null);
840
+ "finished_at_ms"?: (number | null);
841
+ "id": string;
842
+ "outcome": OperationRecord__ActionOutcome;
843
+ "preparation_intent": boolean;
844
+ "receipt"?: (OperationRecord__ActionReceipt | null);
845
+ "runtime_id": string;
846
+ "started_at_ms": number;
847
+ "state": OperationRecord__OperationState;
848
+ "target_id": string;
849
+ [key: string]: unknown;
850
+ };
851
+ export type OperationRecord__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
852
+ export type OperationRecord__ActionReceipt = {
853
+ "action": string;
854
+ "already_satisfied": boolean;
855
+ "cleanup_pending": boolean;
856
+ "destination_target_id"?: (string | null);
857
+ "dispatch": OperationRecord__DispatchState;
858
+ "download_guid"?: (string | null);
859
+ "elapsed_ms": number;
860
+ "finished_at_ms": number;
861
+ "outcome": OperationRecord__ActionOutcome;
862
+ "preparation_may_have_executed": boolean;
863
+ "started_at_ms": number;
864
+ "target_id": string;
865
+ "verification"?: (string | null);
866
+ [key: string]: unknown;
867
+ };
868
+ export type OperationRecord__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
898
+ export type OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
899
+ export type ProtocolVersion = {
900
+ "major": number;
901
+ "minor": number;
902
+ [key: string]: unknown;
903
+ };
904
+ export type RecordingFailure = {
905
+ "cleanupUncertain"?: (boolean | null);
906
+ "code": RecordingFailure__ErrorCode;
907
+ "message": string;
908
+ "partialPath"?: (string | null);
909
+ "stage": RecordingFailure__RecordingFailureStage;
910
+ [key: string]: unknown;
911
+ };
912
+ export type RecordingFailure__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);
913
+ export type RecordingFailure__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
914
+ export type RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
915
+ export type RecordingIdParams = {
916
+ "recordingId": string;
917
+ [key: string]: unknown;
918
+ };
919
+ export type RecordingRecord = {
920
+ "artifact"?: (RecordingRecord__Artifact | null);
921
+ "failure"?: (RecordingRecord__RecordingFailure | null);
922
+ "pageId": string;
923
+ "path": string;
924
+ "recordingId": string;
925
+ "state": RecordingRecord__RecordingState;
926
+ [key: string]: unknown;
927
+ };
928
+ export type RecordingRecord__Artifact = {
929
+ "bytes": number;
930
+ "container"?: (RecordingRecord__ArtifactContainer | null);
931
+ "mimeType": string;
932
+ "path": string;
933
+ [key: string]: unknown;
934
+ };
935
+ export type RecordingRecord__ArtifactContainer = ("mp4" & string);
936
+ export type RecordingRecord__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);
937
+ export type RecordingRecord__RecordingFailure = {
938
+ "cleanupUncertain"?: (boolean | null);
939
+ "code": RecordingRecord__ErrorCode;
940
+ "message": string;
941
+ "partialPath"?: (string | null);
942
+ "stage": RecordingRecord__RecordingFailureStage;
943
+ [key: string]: unknown;
944
+ };
945
+ export type RecordingRecord__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
946
+ export type RecordingRecord__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
947
+ export type RecordingStartParams = {
948
+ "fps"?: (number | null);
949
+ "maxHeight"?: (number | null);
950
+ "maxWidth"?: (number | null);
951
+ "pageId": string;
952
+ "path": string;
953
+ "recordingId": string;
954
+ };
955
+ export type RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
956
+ export type Request = {
957
+ "id": number;
958
+ "method": string;
959
+ "params"?: unknown;
960
+ [key: string]: unknown;
961
+ };
962
+ export type Response = (({
963
+ "id": (number | null);
964
+ "result": unknown;
965
+ } & {
966
+ "error"?: never;
967
+ }) | ({
968
+ "error": Response__ServerError;
969
+ "id": (number | null);
970
+ } & {
971
+ "result"?: never;
972
+ }));
973
+ export type Response__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
974
+ export type Response__ActionReceipt = {
975
+ "action": string;
976
+ "already_satisfied": boolean;
977
+ "cleanup_pending": boolean;
978
+ "destination_target_id"?: (string | null);
979
+ "dispatch": Response__DispatchState;
980
+ "download_guid"?: (string | null);
981
+ "elapsed_ms": number;
982
+ "finished_at_ms": number;
983
+ "outcome": Response__ActionOutcome;
984
+ "preparation_may_have_executed": boolean;
985
+ "started_at_ms": number;
986
+ "target_id": string;
987
+ "verification"?: (string | null);
988
+ [key: string]: unknown;
989
+ };
990
+ export type Response__ActionStatus = (("not_attempted" | "may_have_executed") & string);
991
+ export type Response__Artifact = {
992
+ "bytes": number;
993
+ "container"?: (Response__ArtifactContainer | null);
994
+ "mimeType": string;
995
+ "path": string;
996
+ [key: string]: unknown;
997
+ };
998
+ export type Response__ArtifactContainer = ("mp4" & string);
999
+ export type Response__CdpErrorDetail = {
1000
+ "code"?: (number | null);
1001
+ "message": string;
1002
+ "method"?: (string | null);
1003
+ [key: string]: unknown;
1004
+ };
1005
+ export type Response__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1006
+ export type Response__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);
1007
+ export type Response__ErrorContext = {
1008
+ "action_status"?: (Response__ActionStatus | null);
1009
+ "download_id"?: (string | null);
1010
+ "operation_id"?: (string | null);
1011
+ "page"?: (Response__PageContext | null);
1012
+ "phase"?: (string | null);
1013
+ [key: string]: unknown;
1014
+ };
1015
+ export type Response__ErrorData = {
1016
+ "cdp"?: (Response__CdpErrorDetail | null);
1017
+ "detail"?: (Response__ErrorDetail | null);
1018
+ "operation_id"?: (string | null);
1019
+ "partialPath"?: (string | null);
1020
+ "path"?: (string | null);
1021
+ "receipt"?: (Response__ActionReceipt | null);
1022
+ "recording"?: (Response__RecordingRecord | null);
1023
+ "recordingId"?: (string | null);
1024
+ "source"?: (Response__ServerError | null);
1025
+ [key: string]: unknown;
1026
+ };
1027
+ export type Response__ErrorDetail = {
1028
+ "code": string;
1029
+ "context"?: (Response__ErrorContext | null);
1030
+ "hint"?: (string | null);
1031
+ "message": string;
1032
+ "retryable"?: (boolean | null);
1033
+ [key: string]: unknown;
1034
+ };
1035
+ export type Response__PageContext = {
1036
+ "headings": Array<string>;
1037
+ "messages": Array<string>;
1038
+ "ready_state": string;
1039
+ "tab_id": string;
1040
+ "text_excerpt": string;
1041
+ "title": string;
1042
+ "truncated": boolean;
1043
+ "url": string;
1044
+ [key: string]: unknown;
1045
+ };
1046
+ export type Response__RecordingFailure = {
1047
+ "cleanupUncertain"?: (boolean | null);
1048
+ "code": Response__ErrorCode;
1049
+ "message": string;
1050
+ "partialPath"?: (string | null);
1051
+ "stage": Response__RecordingFailureStage;
1052
+ [key: string]: unknown;
1053
+ };
1054
+ export type Response__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
1055
+ export type Response__RecordingRecord = {
1056
+ "artifact"?: (Response__Artifact | null);
1057
+ "failure"?: (Response__RecordingFailure | null);
1058
+ "pageId": string;
1059
+ "path": string;
1060
+ "recordingId": string;
1061
+ "state": Response__RecordingState;
1062
+ [key: string]: unknown;
1063
+ };
1064
+ export type Response__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
1065
+ export type Response__ServerError = {
1066
+ "code": Response__ErrorCode;
1067
+ "data"?: (Response__ErrorData | null);
1068
+ "message": string;
1069
+ [key: string]: unknown;
1070
+ };
1071
+ export type ScreenshotClip = {
1072
+ "height": number;
1073
+ "width": number;
1074
+ "x": number;
1075
+ "y": number;
1076
+ [key: string]: unknown;
1077
+ };
1078
+ export type ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
1079
+ export type ScreenshotParams = {
1080
+ "clip"?: (ScreenshotParams__ScreenshotClip | null);
1081
+ "format"?: (ScreenshotParams__ScreenshotFormat | null);
1082
+ "fullPage"?: (boolean | null);
1083
+ "pageId": string;
1084
+ "quality"?: (number | null);
1085
+ [key: string]: unknown;
1086
+ };
1087
+ export type ScreenshotParams__ScreenshotClip = {
1088
+ "height": number;
1089
+ "width": number;
1090
+ "x": number;
1091
+ "y": number;
1092
+ [key: string]: unknown;
1093
+ };
1094
+ export type ScreenshotParams__ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
1095
+ export type ScreenshotToFileParams = {
1096
+ "clip"?: (ScreenshotToFileParams__ScreenshotClip | null);
1097
+ "format"?: (ScreenshotToFileParams__ScreenshotFormat | null);
1098
+ "fullPage"?: (boolean | null);
1099
+ "pageId": string;
1100
+ "path": string;
1101
+ "quality"?: (number | null);
1102
+ [key: string]: unknown;
1103
+ };
1104
+ export type ScreenshotToFileParams__ScreenshotClip = {
1105
+ "height": number;
1106
+ "width": number;
1107
+ "x": number;
1108
+ "y": number;
1109
+ [key: string]: unknown;
1110
+ };
1111
+ export type ScreenshotToFileParams__ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
1112
+ export type ServerError = {
1113
+ "code": ServerError__ErrorCode;
1114
+ "data"?: (ServerError__ErrorData | null);
1115
+ "message": string;
1116
+ [key: string]: unknown;
1117
+ };
1118
+ export type ServerError__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1119
+ export type ServerError__ActionReceipt = {
1120
+ "action": string;
1121
+ "already_satisfied": boolean;
1122
+ "cleanup_pending": boolean;
1123
+ "destination_target_id"?: (string | null);
1124
+ "dispatch": ServerError__DispatchState;
1125
+ "download_guid"?: (string | null);
1126
+ "elapsed_ms": number;
1127
+ "finished_at_ms": number;
1128
+ "outcome": ServerError__ActionOutcome;
1129
+ "preparation_may_have_executed": boolean;
1130
+ "started_at_ms": number;
1131
+ "target_id": string;
1132
+ "verification"?: (string | null);
1133
+ [key: string]: unknown;
1134
+ };
1135
+ export type ServerError__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1136
+ export type ServerError__Artifact = {
1137
+ "bytes": number;
1138
+ "container"?: (ServerError__ArtifactContainer | null);
1139
+ "mimeType": string;
1140
+ "path": string;
1141
+ [key: string]: unknown;
1142
+ };
1143
+ export type ServerError__ArtifactContainer = ("mp4" & string);
1144
+ export type ServerError__CdpErrorDetail = {
1145
+ "code"?: (number | null);
1146
+ "message": string;
1147
+ "method"?: (string | null);
1148
+ [key: string]: unknown;
1149
+ };
1150
+ export type ServerError__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1151
+ export type ServerError__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);
1152
+ export type ServerError__ErrorContext = {
1153
+ "action_status"?: (ServerError__ActionStatus | null);
1154
+ "download_id"?: (string | null);
1155
+ "operation_id"?: (string | null);
1156
+ "page"?: (ServerError__PageContext | null);
1157
+ "phase"?: (string | null);
1158
+ [key: string]: unknown;
1159
+ };
1160
+ export type ServerError__ErrorData = {
1161
+ "cdp"?: (ServerError__CdpErrorDetail | null);
1162
+ "detail"?: (ServerError__ErrorDetail | null);
1163
+ "operation_id"?: (string | null);
1164
+ "partialPath"?: (string | null);
1165
+ "path"?: (string | null);
1166
+ "receipt"?: (ServerError__ActionReceipt | null);
1167
+ "recording"?: (ServerError__RecordingRecord | null);
1168
+ "recordingId"?: (string | null);
1169
+ "source"?: (ServerError | null);
1170
+ [key: string]: unknown;
1171
+ };
1172
+ export type ServerError__ErrorDetail = {
1173
+ "code": string;
1174
+ "context"?: (ServerError__ErrorContext | null);
1175
+ "hint"?: (string | null);
1176
+ "message": string;
1177
+ "retryable"?: (boolean | null);
1178
+ [key: string]: unknown;
1179
+ };
1180
+ export type ServerError__PageContext = {
1181
+ "headings": Array<string>;
1182
+ "messages": Array<string>;
1183
+ "ready_state": string;
1184
+ "tab_id": string;
1185
+ "text_excerpt": string;
1186
+ "title": string;
1187
+ "truncated": boolean;
1188
+ "url": string;
1189
+ [key: string]: unknown;
1190
+ };
1191
+ export type ServerError__RecordingFailure = {
1192
+ "cleanupUncertain"?: (boolean | null);
1193
+ "code": ServerError__ErrorCode;
1194
+ "message": string;
1195
+ "partialPath"?: (string | null);
1196
+ "stage": ServerError__RecordingFailureStage;
1197
+ [key: string]: unknown;
1198
+ };
1199
+ export type ServerError__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
1200
+ export type ServerError__RecordingRecord = {
1201
+ "artifact"?: (ServerError__Artifact | null);
1202
+ "failure"?: (ServerError__RecordingFailure | null);
1203
+ "pageId": string;
1204
+ "path": string;
1205
+ "recordingId": string;
1206
+ "state": ServerError__RecordingState;
1207
+ [key: string]: unknown;
1208
+ };
1209
+ export type ServerError__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
1210
+ export type TransportLimits = {
1211
+ "maxInFlight": number;
1212
+ "maxMessageBytes": number;
1213
+ [key: string]: unknown;
1214
+ };
1215
+ export type MethodActionsPerformParams = {
1216
+ "action": MethodActionsPerformParams__Action;
1217
+ "operation_id": string;
1218
+ "options"?: MethodActionsPerformParams__ActionOptions;
1219
+ "pageId": string;
1220
+ [key: string]: unknown;
1221
+ };
1222
+ export type MethodActionsPerformParams__Action = ({
1223
+ "delta": number;
1224
+ "kind": ("history" & string);
1225
+ [key: string]: unknown;
1226
+ } | {
1227
+ "kind": ("select_option" & string);
1228
+ "target": MethodActionsPerformParams__LocatorSpec;
1229
+ "value": string;
1230
+ [key: string]: unknown;
1231
+ } | {
1232
+ "headers": Record<string, string>;
1233
+ "kind": ("navigate_with_headers" & string);
1234
+ "url": string;
1235
+ [key: string]: unknown;
1236
+ } | {
1237
+ "dx": number;
1238
+ "dy": number;
1239
+ "kind": ("drag" & string);
1240
+ "target": MethodActionsPerformParams__LocatorSpec;
1241
+ [key: string]: unknown;
1242
+ } | {
1243
+ "kind": ("insert_text" & string);
1244
+ "text": string;
1245
+ [key: string]: unknown;
1246
+ } | {
1247
+ "kind": ("select_text" & string);
1248
+ "target": MethodActionsPerformParams__LocatorSpec;
1249
+ "text": string;
1250
+ [key: string]: unknown;
1251
+ } | {
1252
+ "double"?: boolean;
1253
+ "human"?: boolean;
1254
+ "kind": ("click" & string);
1255
+ "target": MethodActionsPerformParams__LocatorSpec;
1256
+ [key: string]: unknown;
1257
+ } | {
1258
+ "input_mode"?: MethodActionsPerformParams__InputMode;
1259
+ "kind": ("fill" & string);
1260
+ "target": MethodActionsPerformParams__LocatorSpec;
1261
+ "value": string;
1262
+ [key: string]: unknown;
1263
+ } | {
1264
+ "input_mode"?: MethodActionsPerformParams__InputMode;
1265
+ "kind": ("type" & string);
1266
+ "target": MethodActionsPerformParams__LocatorSpec;
1267
+ "text": string;
1268
+ [key: string]: unknown;
1269
+ } | {
1270
+ "kind": ("select" & string);
1271
+ "target": MethodActionsPerformParams__LocatorSpec;
1272
+ "values": Array<string>;
1273
+ [key: string]: unknown;
1274
+ } | {
1275
+ "files": Array<string>;
1276
+ "kind": ("upload" & string);
1277
+ "target": MethodActionsPerformParams__LocatorSpec;
1278
+ [key: string]: unknown;
1279
+ } | {
1280
+ "key": string;
1281
+ "kind": ("press_key" & string);
1282
+ [key: string]: unknown;
1283
+ } | {
1284
+ "kind": ("submit" & string);
1285
+ "target": MethodActionsPerformParams__LocatorSpec;
1286
+ [key: string]: unknown;
1287
+ } | {
1288
+ "human"?: boolean;
1289
+ "kind": ("hover" & string);
1290
+ "target": MethodActionsPerformParams__LocatorSpec;
1291
+ [key: string]: unknown;
1292
+ } | {
1293
+ "kind": ("focus" & string);
1294
+ "target": MethodActionsPerformParams__LocatorSpec;
1295
+ [key: string]: unknown;
1296
+ } | {
1297
+ "kind": ("scroll_into_view" & string);
1298
+ "target": MethodActionsPerformParams__LocatorSpec;
1299
+ [key: string]: unknown;
1300
+ } | {
1301
+ "kind": ("navigate" & string);
1302
+ "referrer"?: (string | null);
1303
+ "url": string;
1304
+ [key: string]: unknown;
1305
+ } | {
1306
+ "kind": ("reload" & string);
1307
+ [key: string]: unknown;
1308
+ } | {
1309
+ "kind": ("back" & string);
1310
+ [key: string]: unknown;
1311
+ } | {
1312
+ "kind": ("forward" & string);
1313
+ [key: string]: unknown;
1314
+ });
1315
+ export type MethodActionsPerformParams__ActionOptions = {
1316
+ "destination"?: MethodActionsPerformParams__Destination;
1317
+ "expect"?: (MethodActionsPerformParams__Expectation | null);
1318
+ "timeout_ms"?: number;
1319
+ "wait_for_target"?: boolean;
1320
+ [key: string]: unknown;
1321
+ };
1322
+ export type MethodActionsPerformParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
1336
+ "kind": ("download_started" & string);
1337
+ [key: string]: unknown;
1338
+ } | {
1339
+ "kind": ("focused" & string);
1340
+ "target": MethodActionsPerformParams__LocatorSpec;
1341
+ [key: string]: unknown;
1342
+ } | {
1343
+ "contains"?: boolean;
1344
+ "kind": ("url" & string);
1345
+ "value": string;
1346
+ [key: string]: unknown;
1347
+ } | {
1348
+ "kind": ("visible" & string);
1349
+ "target": MethodActionsPerformParams__LocatorSpec;
1350
+ [key: string]: unknown;
1351
+ } | {
1352
+ "kind": ("hidden" & string);
1353
+ "target": MethodActionsPerformParams__LocatorSpec;
1354
+ [key: string]: unknown;
1355
+ } | {
1356
+ "contains"?: boolean;
1357
+ "kind": ("text" & string);
1358
+ "target": MethodActionsPerformParams__LocatorSpec;
1359
+ "value": string;
1360
+ [key: string]: unknown;
1361
+ } | {
1362
+ "kind": ("value" & string);
1363
+ "target": MethodActionsPerformParams__LocatorSpec;
1364
+ "value": string;
1365
+ [key: string]: unknown;
1366
+ } | {
1367
+ "checked": boolean;
1368
+ "kind": ("checked" & string);
1369
+ "target": MethodActionsPerformParams__LocatorSpec;
1370
+ [key: string]: unknown;
1371
+ } | {
1372
+ "kind": ("selected" & string);
1373
+ "target": MethodActionsPerformParams__LocatorSpec;
1374
+ "values": Array<string>;
1375
+ [key: string]: unknown;
1376
+ });
1377
+ export type MethodActionsPerformParams__InputMode = (("sequential" & string) | ("bulk" & string));
1378
+ export type MethodActionsPerformParams__LocatorQuery = ({
1379
+ "id": number;
1380
+ "kind": ("node" & string);
1381
+ [key: string]: unknown;
1382
+ } | {
1383
+ "kind": ("css" & string);
1384
+ "selector": string;
1385
+ [key: string]: unknown;
1386
+ } | {
1387
+ "exact"?: boolean;
1388
+ "kind": ("text" & string);
1389
+ "text": string;
1390
+ [key: string]: unknown;
1391
+ } | {
1392
+ "kind": ("placeholder" & string);
1393
+ "text": string;
1394
+ [key: string]: unknown;
1395
+ } | {
1396
+ "kind": ("role" & string);
1397
+ "role": string;
1398
+ [key: string]: unknown;
1399
+ } | {
1400
+ "id": number;
1401
+ "kind": ("backend_node" & string);
1402
+ [key: string]: unknown;
1403
+ });
1404
+ export type MethodActionsPerformParams__LocatorSpec = {
1405
+ "frame_id"?: (string | null);
1406
+ "index"?: (number | null);
1407
+ "query": MethodActionsPerformParams__LocatorQuery;
1408
+ [key: string]: unknown;
1409
+ };
1410
+ export type MethodActionsPerformResult = {
1411
+ "action": string;
1412
+ "dispatch_intent": boolean;
1413
+ "error"?: (MethodActionsPerformResult__ErrorDetail | null);
1414
+ "error_code"?: (string | null);
1415
+ "finished_at_ms"?: (number | null);
1416
+ "id": string;
1417
+ "outcome": MethodActionsPerformResult__ActionOutcome;
1418
+ "preparation_intent": boolean;
1419
+ "receipt"?: (MethodActionsPerformResult__ActionReceipt | null);
1420
+ "runtime_id": string;
1421
+ "started_at_ms": number;
1422
+ "state": MethodActionsPerformResult__OperationState;
1423
+ "target_id": string;
1424
+ [key: string]: unknown;
1425
+ };
1426
+ export type MethodActionsPerformResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1427
+ export type MethodActionsPerformResult__ActionReceipt = {
1428
+ "action": string;
1429
+ "already_satisfied": boolean;
1430
+ "cleanup_pending": boolean;
1431
+ "destination_target_id"?: (string | null);
1432
+ "dispatch": MethodActionsPerformResult__DispatchState;
1433
+ "download_guid"?: (string | null);
1434
+ "elapsed_ms": number;
1435
+ "finished_at_ms": number;
1436
+ "outcome": MethodActionsPerformResult__ActionOutcome;
1437
+ "preparation_may_have_executed": boolean;
1438
+ "started_at_ms": number;
1439
+ "target_id": string;
1440
+ "verification"?: (string | null);
1441
+ [key: string]: unknown;
1442
+ };
1443
+ export type MethodActionsPerformResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
1473
+ export type MethodAgentObserveParams = {
1474
+ "cursor"?: (string | null);
1475
+ "max_controls"?: number;
1476
+ "name"?: (string | null);
1477
+ "pageId": string;
1478
+ "role"?: (string | null);
1479
+ "timeout_ms"?: number;
1480
+ [key: string]: unknown;
1481
+ };
1482
+ export type MethodAgentObserveResult = {
1483
+ "controls": Array<MethodAgentObserveResult__AgentControl>;
1484
+ "next_cursor"?: (string | null);
1485
+ "observation_id": string;
1486
+ "page"?: (MethodAgentObserveResult__PageContext | null);
1487
+ "tab_id": string;
1488
+ "tabs": Array<MethodAgentObserveResult__AgentTab>;
1489
+ "total_controls": number;
1490
+ "truncated": boolean;
1491
+ "warnings": Array<string>;
1492
+ [key: string]: unknown;
1493
+ };
1494
+ export type MethodAgentObserveResult__AgentControl = {
1495
+ "checked"?: (boolean | null);
1496
+ "disabled": boolean;
1497
+ "editable": boolean;
1498
+ "expanded"?: (boolean | null);
1499
+ "focused": boolean;
1500
+ "invalid": boolean;
1501
+ "name": string;
1502
+ "readonly": boolean;
1503
+ "required": boolean;
1504
+ "role": string;
1505
+ "target": string;
1506
+ "validation_message"?: (string | null);
1507
+ [key: string]: unknown;
1508
+ };
1509
+ export type MethodAgentObserveResult__AgentTab = {
1510
+ "id": string;
1511
+ "selected": boolean;
1512
+ "title": string;
1513
+ "url": string;
1514
+ [key: string]: unknown;
1515
+ };
1516
+ export type MethodAgentObserveResult__PageContext = {
1517
+ "headings": Array<string>;
1518
+ "messages": Array<string>;
1519
+ "ready_state": string;
1520
+ "tab_id": string;
1521
+ "text_excerpt": string;
1522
+ "title": string;
1523
+ "truncated": boolean;
1524
+ "url": string;
1525
+ [key: string]: unknown;
1526
+ };
1527
+ export type MethodAgentStepParams = {
1528
+ "action": MethodAgentStepParams__AgentAction;
1529
+ "action_timeout_ms"?: number;
1530
+ "destination"?: MethodAgentStepParams__Destination;
1531
+ "expect"?: (MethodAgentStepParams__Expectation | null);
1532
+ "max_controls"?: number;
1533
+ "mode"?: MethodAgentStepParams__AgentMode;
1534
+ "operation_id"?: (string | null);
1535
+ "pageId": string;
1536
+ "timeout_ms"?: number;
1537
+ [key: string]: unknown;
1538
+ };
1539
+ export type MethodAgentStepParams__AgentAction = (({
1540
+ "kind": ("click" & string);
1541
+ "target": string;
1542
+ } & {
1543
+ "input_mode"?: never;
1544
+ "text"?: never;
1545
+ "value"?: never;
1546
+ "key"?: never;
1547
+ "url"?: never;
1548
+ }) | ({
1549
+ "input_mode"?: MethodAgentStepParams__InputMode;
1550
+ "kind": ("fill" & string);
1551
+ "target": string;
1552
+ "text": string;
1553
+ } & {
1554
+ "value"?: never;
1555
+ "key"?: never;
1556
+ "url"?: never;
1557
+ }) | ({
1558
+ "input_mode"?: MethodAgentStepParams__InputMode;
1559
+ "kind": ("type" & string);
1560
+ "target": string;
1561
+ "text": string;
1562
+ } & {
1563
+ "value"?: never;
1564
+ "key"?: never;
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;
1575
+ }) | ({
1576
+ "kind": ("select" & string);
1577
+ "target": string;
1578
+ "value": string;
1579
+ } & {
1580
+ "input_mode"?: never;
1581
+ "text"?: never;
1582
+ "key"?: never;
1583
+ "url"?: never;
1584
+ }) | ({
1585
+ "kind": ("hover" & string);
1586
+ "target": string;
1587
+ } & {
1588
+ "input_mode"?: never;
1589
+ "text"?: never;
1590
+ "value"?: never;
1591
+ "key"?: never;
1592
+ "url"?: never;
1593
+ }) | ({
1594
+ "kind": ("scroll_into_view" & string);
1595
+ "target": string;
1596
+ } & {
1597
+ "input_mode"?: never;
1598
+ "text"?: never;
1599
+ "value"?: never;
1600
+ "key"?: never;
1601
+ "url"?: never;
1602
+ }) | ({
1603
+ "key": string;
1604
+ "kind": ("press_key" & string);
1605
+ } & {
1606
+ "target"?: never;
1607
+ "input_mode"?: never;
1608
+ "text"?: never;
1609
+ "value"?: never;
1610
+ "url"?: never;
1611
+ }) | ({
1612
+ "kind": ("navigate" & string);
1613
+ "url": string;
1614
+ } & {
1615
+ "target"?: never;
1616
+ "input_mode"?: never;
1617
+ "text"?: never;
1618
+ "value"?: never;
1619
+ "key"?: never;
1620
+ }) | ({
1621
+ "kind": ("back" & string);
1622
+ } & {
1623
+ "target"?: never;
1624
+ "input_mode"?: never;
1625
+ "text"?: never;
1626
+ "value"?: never;
1627
+ "key"?: never;
1628
+ "url"?: never;
1629
+ }) | ({
1630
+ "kind": ("forward" & string);
1631
+ } & {
1632
+ "target"?: never;
1633
+ "input_mode"?: never;
1634
+ "text"?: never;
1635
+ "value"?: never;
1636
+ "key"?: never;
1637
+ "url"?: never;
1638
+ }));
1639
+ export type MethodAgentStepParams__AgentMode = (("explore" | "verify") & string);
1640
+ export type MethodAgentStepParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
1654
+ "kind": ("download_started" & string);
1655
+ [key: string]: unknown;
1656
+ } | {
1657
+ "kind": ("focused" & string);
1658
+ "target": MethodAgentStepParams__LocatorSpec;
1659
+ [key: string]: unknown;
1660
+ } | {
1661
+ "contains"?: boolean;
1662
+ "kind": ("url" & string);
1663
+ "value": string;
1664
+ [key: string]: unknown;
1665
+ } | {
1666
+ "kind": ("visible" & string);
1667
+ "target": MethodAgentStepParams__LocatorSpec;
1668
+ [key: string]: unknown;
1669
+ } | {
1670
+ "kind": ("hidden" & string);
1671
+ "target": MethodAgentStepParams__LocatorSpec;
1672
+ [key: string]: unknown;
1673
+ } | {
1674
+ "contains"?: boolean;
1675
+ "kind": ("text" & string);
1676
+ "target": MethodAgentStepParams__LocatorSpec;
1677
+ "value": string;
1678
+ [key: string]: unknown;
1679
+ } | {
1680
+ "kind": ("value" & string);
1681
+ "target": MethodAgentStepParams__LocatorSpec;
1682
+ "value": string;
1683
+ [key: string]: unknown;
1684
+ } | {
1685
+ "checked": boolean;
1686
+ "kind": ("checked" & string);
1687
+ "target": MethodAgentStepParams__LocatorSpec;
1688
+ [key: string]: unknown;
1689
+ } | {
1690
+ "kind": ("selected" & string);
1691
+ "target": MethodAgentStepParams__LocatorSpec;
1692
+ "values": Array<string>;
1693
+ [key: string]: unknown;
1694
+ });
1695
+ export type MethodAgentStepParams__InputMode = (("sequential" & string) | ("bulk" & string));
1696
+ export type MethodAgentStepParams__LocatorQuery = ({
1697
+ "id": number;
1698
+ "kind": ("node" & string);
1699
+ [key: string]: unknown;
1700
+ } | {
1701
+ "kind": ("css" & string);
1702
+ "selector": string;
1703
+ [key: string]: unknown;
1704
+ } | {
1705
+ "exact"?: boolean;
1706
+ "kind": ("text" & string);
1707
+ "text": string;
1708
+ [key: string]: unknown;
1709
+ } | {
1710
+ "kind": ("placeholder" & string);
1711
+ "text": string;
1712
+ [key: string]: unknown;
1713
+ } | {
1714
+ "kind": ("role" & string);
1715
+ "role": string;
1716
+ [key: string]: unknown;
1717
+ } | {
1718
+ "id": number;
1719
+ "kind": ("backend_node" & string);
1720
+ [key: string]: unknown;
1721
+ });
1722
+ export type MethodAgentStepParams__LocatorSpec = {
1723
+ "frame_id"?: (string | null);
1724
+ "index"?: (number | null);
1725
+ "query": MethodAgentStepParams__LocatorQuery;
1726
+ [key: string]: unknown;
1727
+ };
1728
+ export type MethodAgentStepResult = {
1729
+ "observation"?: (MethodAgentStepResult__AgentObservation | null);
1730
+ "observation_error"?: (string | null);
1731
+ "operation"?: (MethodAgentStepResult__OperationRecord | null);
1732
+ "operation_error"?: (MethodAgentStepResult__ErrorDetail | null);
1733
+ "operation_id": string;
1734
+ "status": MethodAgentStepResult__OperationStatus;
1735
+ [key: string]: unknown;
1736
+ };
1737
+ export type MethodAgentStepResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1738
+ export type MethodAgentStepResult__ActionReceipt = {
1739
+ "action": string;
1740
+ "already_satisfied": boolean;
1741
+ "cleanup_pending": boolean;
1742
+ "destination_target_id"?: (string | null);
1743
+ "dispatch": MethodAgentStepResult__DispatchState;
1744
+ "download_guid"?: (string | null);
1745
+ "elapsed_ms": number;
1746
+ "finished_at_ms": number;
1747
+ "outcome": MethodAgentStepResult__ActionOutcome;
1748
+ "preparation_may_have_executed": boolean;
1749
+ "started_at_ms": number;
1750
+ "target_id": string;
1751
+ "verification"?: (string | null);
1752
+ [key: string]: unknown;
1753
+ };
1754
+ export type MethodAgentStepResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1755
+ export type MethodAgentStepResult__AgentControl = {
1756
+ "checked"?: (boolean | null);
1757
+ "disabled": boolean;
1758
+ "editable": boolean;
1759
+ "expanded"?: (boolean | null);
1760
+ "focused": boolean;
1761
+ "invalid": boolean;
1762
+ "name": string;
1763
+ "readonly": boolean;
1764
+ "required": boolean;
1765
+ "role": string;
1766
+ "target": string;
1767
+ "validation_message"?: (string | null);
1768
+ [key: string]: unknown;
1769
+ };
1770
+ export type MethodAgentStepResult__AgentObservation = {
1771
+ "controls": Array<MethodAgentStepResult__AgentControl>;
1772
+ "next_cursor"?: (string | null);
1773
+ "observation_id": string;
1774
+ "page"?: (MethodAgentStepResult__PageContext | null);
1775
+ "tab_id": string;
1776
+ "tabs": Array<MethodAgentStepResult__AgentTab>;
1777
+ "total_controls": number;
1778
+ "truncated": boolean;
1779
+ "warnings": Array<string>;
1780
+ [key: string]: unknown;
1781
+ };
1782
+ export type MethodAgentStepResult__AgentTab = {
1783
+ "id": string;
1784
+ "selected": boolean;
1785
+ "title": string;
1786
+ "url": string;
1787
+ [key: string]: unknown;
1788
+ };
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
+ };
1806
+ export type MethodAgentStepResult__OperationRecord = {
1807
+ "action": string;
1808
+ "dispatch_intent": boolean;
1809
+ "error"?: (MethodAgentStepResult__ErrorDetail | null);
1810
+ "error_code"?: (string | null);
1811
+ "finished_at_ms"?: (number | null);
1812
+ "id": string;
1813
+ "outcome": MethodAgentStepResult__ActionOutcome;
1814
+ "preparation_intent": boolean;
1815
+ "receipt"?: (MethodAgentStepResult__ActionReceipt | null);
1816
+ "runtime_id": string;
1817
+ "started_at_ms": number;
1818
+ "state": MethodAgentStepResult__OperationState;
1819
+ "target_id": string;
1820
+ [key: string]: unknown;
1821
+ };
1822
+ export type MethodAgentStepResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1823
+ export type MethodAgentStepResult__OperationStatus = (("running" | "verified_complete" | "not_dispatched" | "outcome_unknown") & string);
1824
+ export type MethodAgentStepResult__PageContext = {
1825
+ "headings": Array<string>;
1826
+ "messages": Array<string>;
1827
+ "ready_state": string;
1828
+ "tab_id": string;
1829
+ "text_excerpt": string;
1830
+ "title": string;
1831
+ "truncated": boolean;
1832
+ "url": string;
1833
+ [key: string]: unknown;
1834
+ };
1835
+ export type MethodBrowserCloseParams = Record<string, never>;
1836
+ export type MethodBrowserCloseResult = Record<string, never>;
1837
+ export type MethodBrowserCloseTabParams = {
1838
+ "pageId": string;
1839
+ [key: string]: unknown;
1840
+ };
1841
+ export type MethodBrowserCloseTabResult = {
1842
+ "cleanupError"?: (string | null);
1843
+ [key: string]: unknown;
1844
+ };
1845
+ export type MethodBrowserConnectParams = {
1846
+ "autoSolveCloudflare"?: (MethodBrowserConnectParams__CloudflareAutoSolve | null);
1847
+ "wsEndpoint": string;
1848
+ };
1849
+ export type MethodBrowserConnectParams__CloudflareAutoSolve = {
1850
+ "intervalMs"?: number;
1851
+ "timeoutMs"?: number;
1852
+ [key: string]: unknown;
1853
+ };
1854
+ export type MethodBrowserConnectResult = {
1855
+ "browserVersion": string;
1856
+ "ownership": MethodBrowserConnectResult__BrowserOwnership;
1857
+ [key: string]: unknown;
1858
+ };
1859
+ export type MethodBrowserConnectResult__BrowserOwnership = (("owned" | "borrowed") & string);
1860
+ export type MethodBrowserLaunchParams = {
1861
+ "aggressiveCdpEvasion"?: boolean;
1862
+ "autoSolveCloudflare"?: (MethodBrowserLaunchParams__CloudflareAutoSolve | null);
1863
+ "deviceScaleFactor": (number | null);
1864
+ "executablePath"?: (string | null);
1865
+ "extraArgs"?: Array<string>;
1866
+ "geoAlign"?: boolean;
1867
+ "headless"?: boolean;
1868
+ "proxy"?: (MethodBrowserLaunchParams__ProxyParams | null);
1869
+ "runtimeDir"?: (string | null);
1870
+ "sandbox"?: boolean;
1871
+ "timezone"?: (string | null);
1872
+ "userAgent"?: (string | null);
1873
+ "userDataDir"?: (string | null);
1874
+ "viewportHeight"?: (number | null);
1875
+ "viewportWidth"?: (number | null);
1876
+ [key: string]: unknown;
1877
+ };
1878
+ export type MethodBrowserLaunchParams__CloudflareAutoSolve = {
1879
+ "intervalMs"?: number;
1880
+ "timeoutMs"?: number;
1881
+ [key: string]: unknown;
1882
+ };
1883
+ export type MethodBrowserLaunchParams__ProxyParams = {
1884
+ "password"?: (string | null);
1885
+ "server": string;
1886
+ "username"?: (string | null);
1887
+ [key: string]: unknown;
1888
+ };
1889
+ export type MethodBrowserLaunchResult = {
1890
+ "browserVersion": string;
1891
+ "ownership": MethodBrowserLaunchResult__BrowserOwnership;
1892
+ [key: string]: unknown;
1893
+ };
1894
+ export type MethodBrowserLaunchResult__BrowserOwnership = (("owned" | "borrowed") & string);
1895
+ export type MethodBrowserNewPageParams = {
1896
+ "url"?: (string | null);
1897
+ [key: string]: unknown;
1898
+ };
1899
+ export type MethodBrowserNewPageResult = {
1900
+ "pageId": string;
1901
+ [key: string]: unknown;
1902
+ };
1903
+ export type MethodBrowserTabsParams = Record<string, never>;
1904
+ export type MethodBrowserTabsResult = {
1905
+ "tabs": Array<MethodBrowserTabsResult__Tab>;
1906
+ [key: string]: unknown;
1907
+ };
1908
+ export type MethodBrowserTabsResult__Tab = {
1909
+ "id": string;
1910
+ "title": string;
1911
+ "url": string;
1912
+ [key: string]: unknown;
1913
+ };
1914
+ export type MethodOperationsCancelParams = {
1915
+ "id": string;
1916
+ [key: string]: unknown;
1917
+ };
1918
+ export type MethodOperationsCancelResult = {
1919
+ "action": string;
1920
+ "dispatch_intent": boolean;
1921
+ "error"?: (MethodOperationsCancelResult__ErrorDetail | null);
1922
+ "error_code"?: (string | null);
1923
+ "finished_at_ms"?: (number | null);
1924
+ "id": string;
1925
+ "outcome": MethodOperationsCancelResult__ActionOutcome;
1926
+ "preparation_intent": boolean;
1927
+ "receipt"?: (MethodOperationsCancelResult__ActionReceipt | null);
1928
+ "runtime_id": string;
1929
+ "started_at_ms": number;
1930
+ "state": MethodOperationsCancelResult__OperationState;
1931
+ "target_id": string;
1932
+ [key: string]: unknown;
1933
+ };
1934
+ export type MethodOperationsCancelResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1935
+ export type MethodOperationsCancelResult__ActionReceipt = {
1936
+ "action": string;
1937
+ "already_satisfied": boolean;
1938
+ "cleanup_pending": boolean;
1939
+ "destination_target_id"?: (string | null);
1940
+ "dispatch": MethodOperationsCancelResult__DispatchState;
1941
+ "download_guid"?: (string | null);
1942
+ "elapsed_ms": number;
1943
+ "finished_at_ms": number;
1944
+ "outcome": MethodOperationsCancelResult__ActionOutcome;
1945
+ "preparation_may_have_executed": boolean;
1946
+ "started_at_ms": number;
1947
+ "target_id": string;
1948
+ "verification"?: (string | null);
1949
+ [key: string]: unknown;
1950
+ };
1951
+ export type MethodOperationsCancelResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
1981
+ export type MethodOperationsGetParams = {
1982
+ "id": string;
1983
+ [key: string]: unknown;
1984
+ };
1985
+ export type MethodOperationsGetResult = {
1986
+ "action": string;
1987
+ "dispatch_intent": boolean;
1988
+ "error"?: (MethodOperationsGetResult__ErrorDetail | null);
1989
+ "error_code"?: (string | null);
1990
+ "finished_at_ms"?: (number | null);
1991
+ "id": string;
1992
+ "outcome": MethodOperationsGetResult__ActionOutcome;
1993
+ "preparation_intent": boolean;
1994
+ "receipt"?: (MethodOperationsGetResult__ActionReceipt | null);
1995
+ "runtime_id": string;
1996
+ "started_at_ms": number;
1997
+ "state": MethodOperationsGetResult__OperationState;
1998
+ "target_id": string;
1999
+ [key: string]: unknown;
2000
+ };
2001
+ export type MethodOperationsGetResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2002
+ export type MethodOperationsGetResult__ActionReceipt = {
2003
+ "action": string;
2004
+ "already_satisfied": boolean;
2005
+ "cleanup_pending": boolean;
2006
+ "destination_target_id"?: (string | null);
2007
+ "dispatch": MethodOperationsGetResult__DispatchState;
2008
+ "download_guid"?: (string | null);
2009
+ "elapsed_ms": number;
2010
+ "finished_at_ms": number;
2011
+ "outcome": MethodOperationsGetResult__ActionOutcome;
2012
+ "preparation_may_have_executed": boolean;
2013
+ "started_at_ms": number;
2014
+ "target_id": string;
2015
+ "verification"?: (string | null);
2016
+ [key: string]: unknown;
2017
+ };
2018
+ export type MethodOperationsGetResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
2048
+ export type MethodOperationsListParams = {
2049
+ "before_ms"?: (number | null);
2050
+ "limit"?: (number | null);
2051
+ [key: string]: unknown;
2052
+ };
2053
+ export type MethodOperationsListResult = Array<MethodOperationsListResult__OperationRecord>;
2054
+ export type MethodOperationsListResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2055
+ export type MethodOperationsListResult__ActionReceipt = {
2056
+ "action": string;
2057
+ "already_satisfied": boolean;
2058
+ "cleanup_pending": boolean;
2059
+ "destination_target_id"?: (string | null);
2060
+ "dispatch": MethodOperationsListResult__DispatchState;
2061
+ "download_guid"?: (string | null);
2062
+ "elapsed_ms": number;
2063
+ "finished_at_ms": number;
2064
+ "outcome": MethodOperationsListResult__ActionOutcome;
2065
+ "preparation_may_have_executed": boolean;
2066
+ "started_at_ms": number;
2067
+ "target_id": string;
2068
+ "verification"?: (string | null);
2069
+ [key: string]: unknown;
2070
+ };
2071
+ export type MethodOperationsListResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
2089
+ export type MethodOperationsListResult__OperationRecord = {
2090
+ "action": string;
2091
+ "dispatch_intent": boolean;
2092
+ "error"?: (MethodOperationsListResult__ErrorDetail | null);
2093
+ "error_code"?: (string | null);
2094
+ "finished_at_ms"?: (number | null);
2095
+ "id": string;
2096
+ "outcome": MethodOperationsListResult__ActionOutcome;
2097
+ "preparation_intent": boolean;
2098
+ "receipt"?: (MethodOperationsListResult__ActionReceipt | null);
2099
+ "runtime_id": string;
2100
+ "started_at_ms": number;
2101
+ "state": MethodOperationsListResult__OperationState;
2102
+ "target_id": string;
2103
+ [key: string]: unknown;
2104
+ };
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
+ };
2117
+ export type MethodOperationsWaitParams = {
2118
+ "id": string;
2119
+ "timeout_ms"?: number;
2120
+ [key: string]: unknown;
2121
+ };
2122
+ export type MethodOperationsWaitResult = {
2123
+ "action": string;
2124
+ "dispatch_intent": boolean;
2125
+ "error"?: (MethodOperationsWaitResult__ErrorDetail | null);
2126
+ "error_code"?: (string | null);
2127
+ "finished_at_ms"?: (number | null);
2128
+ "id": string;
2129
+ "outcome": MethodOperationsWaitResult__ActionOutcome;
2130
+ "preparation_intent": boolean;
2131
+ "receipt"?: (MethodOperationsWaitResult__ActionReceipt | null);
2132
+ "runtime_id": string;
2133
+ "started_at_ms": number;
2134
+ "state": MethodOperationsWaitResult__OperationState;
2135
+ "target_id": string;
2136
+ [key: string]: unknown;
2137
+ };
2138
+ export type MethodOperationsWaitResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2139
+ export type MethodOperationsWaitResult__ActionReceipt = {
2140
+ "action": string;
2141
+ "already_satisfied": boolean;
2142
+ "cleanup_pending": boolean;
2143
+ "destination_target_id"?: (string | null);
2144
+ "dispatch": MethodOperationsWaitResult__DispatchState;
2145
+ "download_guid"?: (string | null);
2146
+ "elapsed_ms": number;
2147
+ "finished_at_ms": number;
2148
+ "outcome": MethodOperationsWaitResult__ActionOutcome;
2149
+ "preparation_may_have_executed": boolean;
2150
+ "started_at_ms": number;
2151
+ "target_id": string;
2152
+ "verification"?: (string | null);
2153
+ [key: string]: unknown;
2154
+ };
2155
+ export type MethodOperationsWaitResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
2185
+ export type MethodPageCaptureStateParams = {
2186
+ "pageId": string;
2187
+ [key: string]: unknown;
2188
+ };
2189
+ export type MethodPageCaptureStateResult = {
2190
+ "state": MethodPageCaptureStateResult__BrowserState;
2191
+ [key: string]: unknown;
2192
+ };
2193
+ export type MethodPageCaptureStateResult__BrowserState = {
2194
+ "cookies": Array<MethodPageCaptureStateResult__SessionCookie>;
2195
+ "localStorage"?: Record<string, string>;
2196
+ "sessionStorage"?: Record<string, string>;
2197
+ "url": string;
2198
+ "userAgent": string;
2199
+ [key: string]: unknown;
2200
+ };
2201
+ export type MethodPageCaptureStateResult__SessionCookie = {
2202
+ "domain": string;
2203
+ "expires"?: (number | null);
2204
+ "http_only": boolean;
2205
+ "name": string;
2206
+ "path": string;
2207
+ "same_site"?: (string | null);
2208
+ "secure": boolean;
2209
+ "value": string;
2210
+ [key: string]: unknown;
2211
+ };
2212
+ export type MethodPageClickParams = {
2213
+ "operation_id": string;
2214
+ "options"?: MethodPageClickParams__ActionOptions;
2215
+ "pageId": string;
2216
+ "selector": string;
2217
+ [key: string]: unknown;
2218
+ };
2219
+ export type MethodPageClickParams__ActionOptions = {
2220
+ "destination"?: MethodPageClickParams__Destination;
2221
+ "expect"?: (MethodPageClickParams__Expectation | null);
2222
+ "timeout_ms"?: number;
2223
+ "wait_for_target"?: boolean;
2224
+ [key: string]: unknown;
2225
+ };
2226
+ export type MethodPageClickParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
2240
+ "kind": ("download_started" & string);
2241
+ [key: string]: unknown;
2242
+ } | {
2243
+ "kind": ("focused" & string);
2244
+ "target": MethodPageClickParams__LocatorSpec;
2245
+ [key: string]: unknown;
2246
+ } | {
2247
+ "contains"?: boolean;
2248
+ "kind": ("url" & string);
2249
+ "value": string;
2250
+ [key: string]: unknown;
2251
+ } | {
2252
+ "kind": ("visible" & string);
2253
+ "target": MethodPageClickParams__LocatorSpec;
2254
+ [key: string]: unknown;
2255
+ } | {
2256
+ "kind": ("hidden" & string);
2257
+ "target": MethodPageClickParams__LocatorSpec;
2258
+ [key: string]: unknown;
2259
+ } | {
2260
+ "contains"?: boolean;
2261
+ "kind": ("text" & string);
2262
+ "target": MethodPageClickParams__LocatorSpec;
2263
+ "value": string;
2264
+ [key: string]: unknown;
2265
+ } | {
2266
+ "kind": ("value" & string);
2267
+ "target": MethodPageClickParams__LocatorSpec;
2268
+ "value": string;
2269
+ [key: string]: unknown;
2270
+ } | {
2271
+ "checked": boolean;
2272
+ "kind": ("checked" & string);
2273
+ "target": MethodPageClickParams__LocatorSpec;
2274
+ [key: string]: unknown;
2275
+ } | {
2276
+ "kind": ("selected" & string);
2277
+ "target": MethodPageClickParams__LocatorSpec;
2278
+ "values": Array<string>;
2279
+ [key: string]: unknown;
2280
+ });
2281
+ export type MethodPageClickParams__LocatorQuery = ({
2282
+ "id": number;
2283
+ "kind": ("node" & string);
2284
+ [key: string]: unknown;
2285
+ } | {
2286
+ "kind": ("css" & string);
2287
+ "selector": string;
2288
+ [key: string]: unknown;
2289
+ } | {
2290
+ "exact"?: boolean;
2291
+ "kind": ("text" & string);
2292
+ "text": string;
2293
+ [key: string]: unknown;
2294
+ } | {
2295
+ "kind": ("placeholder" & string);
2296
+ "text": string;
2297
+ [key: string]: unknown;
2298
+ } | {
2299
+ "kind": ("role" & string);
2300
+ "role": string;
2301
+ [key: string]: unknown;
2302
+ } | {
2303
+ "id": number;
2304
+ "kind": ("backend_node" & string);
2305
+ [key: string]: unknown;
2306
+ });
2307
+ export type MethodPageClickParams__LocatorSpec = {
2308
+ "frame_id"?: (string | null);
2309
+ "index"?: (number | null);
2310
+ "query": MethodPageClickParams__LocatorQuery;
2311
+ [key: string]: unknown;
2312
+ };
2313
+ export type MethodPageClickResult = {
2314
+ "action": string;
2315
+ "dispatch_intent": boolean;
2316
+ "error"?: (MethodPageClickResult__ErrorDetail | null);
2317
+ "error_code"?: (string | null);
2318
+ "finished_at_ms"?: (number | null);
2319
+ "id": string;
2320
+ "outcome": MethodPageClickResult__ActionOutcome;
2321
+ "preparation_intent": boolean;
2322
+ "receipt"?: (MethodPageClickResult__ActionReceipt | null);
2323
+ "runtime_id": string;
2324
+ "started_at_ms": number;
2325
+ "state": MethodPageClickResult__OperationState;
2326
+ "target_id": string;
2327
+ [key: string]: unknown;
2328
+ };
2329
+ export type MethodPageClickResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2330
+ export type MethodPageClickResult__ActionReceipt = {
2331
+ "action": string;
2332
+ "already_satisfied": boolean;
2333
+ "cleanup_pending": boolean;
2334
+ "destination_target_id"?: (string | null);
2335
+ "dispatch": MethodPageClickResult__DispatchState;
2336
+ "download_guid"?: (string | null);
2337
+ "elapsed_ms": number;
2338
+ "finished_at_ms": number;
2339
+ "outcome": MethodPageClickResult__ActionOutcome;
2340
+ "preparation_may_have_executed": boolean;
2341
+ "started_at_ms": number;
2342
+ "target_id": string;
2343
+ "verification"?: (string | null);
2344
+ [key: string]: unknown;
2345
+ };
2346
+ export type MethodPageClickResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
2364
+ export type MethodPageClickResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2365
+ export type MethodPageClickResult__PageContext = {
2366
+ "headings": Array<string>;
2367
+ "messages": Array<string>;
2368
+ "ready_state": string;
2369
+ "tab_id": string;
2370
+ "text_excerpt": string;
2371
+ "title": string;
2372
+ "truncated": boolean;
2373
+ "url": string;
2374
+ [key: string]: unknown;
2375
+ };
2376
+ export type MethodPageClickShadowParams = {
2377
+ "frameId"?: (string | null);
2378
+ "pageId": string;
2379
+ "selector": string;
2380
+ "timeoutMs"?: number;
2381
+ [key: string]: unknown;
2382
+ };
2383
+ export type MethodPageClickShadowResult = {
2384
+ "frameId": string;
2385
+ "selector": string;
2386
+ "x": number;
2387
+ "y": number;
2388
+ [key: string]: unknown;
2389
+ };
2390
+ export type MethodPageClickTextParams = {
2391
+ "operation_id": string;
2392
+ "options"?: MethodPageClickTextParams__ActionOptions;
2393
+ "pageId": string;
2394
+ "text": string;
2395
+ [key: string]: unknown;
2396
+ };
2397
+ export type MethodPageClickTextParams__ActionOptions = {
2398
+ "destination"?: MethodPageClickTextParams__Destination;
2399
+ "expect"?: (MethodPageClickTextParams__Expectation | null);
2400
+ "timeout_ms"?: number;
2401
+ "wait_for_target"?: boolean;
2402
+ [key: string]: unknown;
2403
+ };
2404
+ export type MethodPageClickTextParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
2418
+ "kind": ("download_started" & string);
2419
+ [key: string]: unknown;
2420
+ } | {
2421
+ "kind": ("focused" & string);
2422
+ "target": MethodPageClickTextParams__LocatorSpec;
2423
+ [key: string]: unknown;
2424
+ } | {
2425
+ "contains"?: boolean;
2426
+ "kind": ("url" & string);
2427
+ "value": string;
2428
+ [key: string]: unknown;
2429
+ } | {
2430
+ "kind": ("visible" & string);
2431
+ "target": MethodPageClickTextParams__LocatorSpec;
2432
+ [key: string]: unknown;
2433
+ } | {
2434
+ "kind": ("hidden" & string);
2435
+ "target": MethodPageClickTextParams__LocatorSpec;
2436
+ [key: string]: unknown;
2437
+ } | {
2438
+ "contains"?: boolean;
2439
+ "kind": ("text" & string);
2440
+ "target": MethodPageClickTextParams__LocatorSpec;
2441
+ "value": string;
2442
+ [key: string]: unknown;
2443
+ } | {
2444
+ "kind": ("value" & string);
2445
+ "target": MethodPageClickTextParams__LocatorSpec;
2446
+ "value": string;
2447
+ [key: string]: unknown;
2448
+ } | {
2449
+ "checked": boolean;
2450
+ "kind": ("checked" & string);
2451
+ "target": MethodPageClickTextParams__LocatorSpec;
2452
+ [key: string]: unknown;
2453
+ } | {
2454
+ "kind": ("selected" & string);
2455
+ "target": MethodPageClickTextParams__LocatorSpec;
2456
+ "values": Array<string>;
2457
+ [key: string]: unknown;
2458
+ });
2459
+ export type MethodPageClickTextParams__LocatorQuery = ({
2460
+ "id": number;
2461
+ "kind": ("node" & string);
2462
+ [key: string]: unknown;
2463
+ } | {
2464
+ "kind": ("css" & string);
2465
+ "selector": string;
2466
+ [key: string]: unknown;
2467
+ } | {
2468
+ "exact"?: boolean;
2469
+ "kind": ("text" & string);
2470
+ "text": string;
2471
+ [key: string]: unknown;
2472
+ } | {
2473
+ "kind": ("placeholder" & string);
2474
+ "text": string;
2475
+ [key: string]: unknown;
2476
+ } | {
2477
+ "kind": ("role" & string);
2478
+ "role": string;
2479
+ [key: string]: unknown;
2480
+ } | {
2481
+ "id": number;
2482
+ "kind": ("backend_node" & string);
2483
+ [key: string]: unknown;
2484
+ });
2485
+ export type MethodPageClickTextParams__LocatorSpec = {
2486
+ "frame_id"?: (string | null);
2487
+ "index"?: (number | null);
2488
+ "query": MethodPageClickTextParams__LocatorQuery;
2489
+ [key: string]: unknown;
2490
+ };
2491
+ export type MethodPageClickTextResult = {
2492
+ "action": string;
2493
+ "dispatch_intent": boolean;
2494
+ "error"?: (MethodPageClickTextResult__ErrorDetail | null);
2495
+ "error_code"?: (string | null);
2496
+ "finished_at_ms"?: (number | null);
2497
+ "id": string;
2498
+ "outcome": MethodPageClickTextResult__ActionOutcome;
2499
+ "preparation_intent": boolean;
2500
+ "receipt"?: (MethodPageClickTextResult__ActionReceipt | null);
2501
+ "runtime_id": string;
2502
+ "started_at_ms": number;
2503
+ "state": MethodPageClickTextResult__OperationState;
2504
+ "target_id": string;
2505
+ [key: string]: unknown;
2506
+ };
2507
+ export type MethodPageClickTextResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2508
+ export type MethodPageClickTextResult__ActionReceipt = {
2509
+ "action": string;
2510
+ "already_satisfied": boolean;
2511
+ "cleanup_pending": boolean;
2512
+ "destination_target_id"?: (string | null);
2513
+ "dispatch": MethodPageClickTextResult__DispatchState;
2514
+ "download_guid"?: (string | null);
2515
+ "elapsed_ms": number;
2516
+ "finished_at_ms": number;
2517
+ "outcome": MethodPageClickTextResult__ActionOutcome;
2518
+ "preparation_may_have_executed": boolean;
2519
+ "started_at_ms": number;
2520
+ "target_id": string;
2521
+ "verification"?: (string | null);
2522
+ [key: string]: unknown;
2523
+ };
2524
+ export type MethodPageClickTextResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
2525
+ export type MethodPageClickTextResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & 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);
2532
+ [key: string]: unknown;
2533
+ };
2534
+ export type MethodPageClickTextResult__ErrorDetail = {
2535
+ "code": string;
2536
+ "context"?: (MethodPageClickTextResult__ErrorContext | null);
2537
+ "hint"?: (string | null);
2538
+ "message": string;
2539
+ "retryable"?: (boolean | null);
2540
+ [key: string]: unknown;
2541
+ };
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;
2570
+ "pageId": string;
2571
+ [key: string]: unknown;
2572
+ };
2573
+ export type MethodPageEvaluateResult = {
2574
+ "result": unknown;
2575
+ [key: string]: unknown;
2576
+ };
2577
+ export type MethodPageEvaluateInFrameParams = {
2578
+ "frameId": string;
2579
+ "js": string;
2580
+ "pageId": string;
2581
+ [key: string]: unknown;
2582
+ };
2583
+ export type MethodPageEvaluateInFrameResult = {
2584
+ "result": unknown;
2585
+ [key: string]: unknown;
2586
+ };
2587
+ export type MethodPageEvaluateRawParams = {
2588
+ "js": string;
2589
+ "pageId": string;
2590
+ [key: string]: unknown;
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
+ };
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>;
2609
+ export type MethodPageExistsParams = {
2610
+ "pageId": string;
2611
+ "selector": string;
2612
+ [key: string]: unknown;
2613
+ };
2614
+ export type MethodPageExistsResult = {
2615
+ "exists": boolean;
2616
+ [key: string]: unknown;
2617
+ };
2618
+ export type MethodPageFetchParams = {
2619
+ "body"?: (string | null);
2620
+ "headers"?: Record<string, string>;
2621
+ "method"?: string;
2622
+ "pageId": string;
2623
+ "redirect"?: string;
2624
+ "url": string;
2625
+ [key: string]: unknown;
2626
+ };
2627
+ export type MethodPageFetchResult = {
2628
+ "body": string;
2629
+ "headers": Record<string, string>;
2630
+ "ok": boolean;
2631
+ "status": number;
2632
+ "url": string;
2633
+ [key: string]: unknown;
2634
+ };
2635
+ export type MethodPageFetchBoundedParams = {
2636
+ "body"?: (string | null);
2637
+ "headers"?: Record<string, string>;
2638
+ "maxBytes"?: number;
2639
+ "method"?: string;
2640
+ "pageId": string;
2641
+ "redirect"?: string;
2642
+ "url": string;
2643
+ [key: string]: unknown;
2644
+ };
2645
+ export type MethodPageFetchBoundedResult = {
2646
+ "body": string;
2647
+ "bodyOmitted"?: (string | null);
2648
+ "bytesRead": number;
2649
+ "headers": Record<string, string>;
2650
+ "redirected": boolean;
2651
+ "status": number;
2652
+ "statusText": string;
2653
+ "truncated": boolean;
2654
+ "type": string;
2655
+ "url": string;
2656
+ [key: string]: unknown;
2657
+ };
2658
+ export type MethodPageFillParams = {
2659
+ "inputMode"?: MethodPageFillParams__InputMode;
2660
+ "operation_id": string;
2661
+ "options"?: MethodPageFillParams__ActionOptions;
2662
+ "pageId": string;
2663
+ "selector": string;
2664
+ "value": string;
2665
+ [key: string]: unknown;
2666
+ };
2667
+ export type MethodPageFillParams__ActionOptions = {
2668
+ "destination"?: MethodPageFillParams__Destination;
2669
+ "expect"?: (MethodPageFillParams__Expectation | null);
2670
+ "timeout_ms"?: number;
2671
+ "wait_for_target"?: boolean;
2672
+ [key: string]: unknown;
2673
+ };
2674
+ export type MethodPageFillParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
2688
+ "kind": ("download_started" & string);
2689
+ [key: string]: unknown;
2690
+ } | {
2691
+ "kind": ("focused" & string);
2692
+ "target": MethodPageFillParams__LocatorSpec;
2693
+ [key: string]: unknown;
2694
+ } | {
2695
+ "contains"?: boolean;
2696
+ "kind": ("url" & string);
2697
+ "value": string;
2698
+ [key: string]: unknown;
2699
+ } | {
2700
+ "kind": ("visible" & string);
2701
+ "target": MethodPageFillParams__LocatorSpec;
2702
+ [key: string]: unknown;
2703
+ } | {
2704
+ "kind": ("hidden" & string);
2705
+ "target": MethodPageFillParams__LocatorSpec;
2706
+ [key: string]: unknown;
2707
+ } | {
2708
+ "contains"?: boolean;
2709
+ "kind": ("text" & string);
2710
+ "target": MethodPageFillParams__LocatorSpec;
2711
+ "value": string;
2712
+ [key: string]: unknown;
2713
+ } | {
2714
+ "kind": ("value" & string);
2715
+ "target": MethodPageFillParams__LocatorSpec;
2716
+ "value": string;
2717
+ [key: string]: unknown;
2718
+ } | {
2719
+ "checked": boolean;
2720
+ "kind": ("checked" & string);
2721
+ "target": MethodPageFillParams__LocatorSpec;
2722
+ [key: string]: unknown;
2723
+ } | {
2724
+ "kind": ("selected" & string);
2725
+ "target": MethodPageFillParams__LocatorSpec;
2726
+ "values": Array<string>;
2727
+ [key: string]: unknown;
2728
+ });
2729
+ export type MethodPageFillParams__InputMode = (("sequential" & string) | ("bulk" & string));
2730
+ export type MethodPageFillParams__LocatorQuery = ({
2731
+ "id": number;
2732
+ "kind": ("node" & string);
2733
+ [key: string]: unknown;
2734
+ } | {
2735
+ "kind": ("css" & string);
2736
+ "selector": string;
2737
+ [key: string]: unknown;
2738
+ } | {
2739
+ "exact"?: boolean;
2740
+ "kind": ("text" & string);
2741
+ "text": string;
2742
+ [key: string]: unknown;
2743
+ } | {
2744
+ "kind": ("placeholder" & string);
2745
+ "text": string;
2746
+ [key: string]: unknown;
2747
+ } | {
2748
+ "kind": ("role" & string);
2749
+ "role": string;
2750
+ [key: string]: unknown;
2751
+ } | {
2752
+ "id": number;
2753
+ "kind": ("backend_node" & string);
2754
+ [key: string]: unknown;
2755
+ });
2756
+ export type MethodPageFillParams__LocatorSpec = {
2757
+ "frame_id"?: (string | null);
2758
+ "index"?: (number | null);
2759
+ "query": MethodPageFillParams__LocatorQuery;
2760
+ [key: string]: unknown;
2761
+ };
2762
+ export type MethodPageFillResult = {
2763
+ "action": string;
2764
+ "dispatch_intent": boolean;
2765
+ "error"?: (MethodPageFillResult__ErrorDetail | null);
2766
+ "error_code"?: (string | null);
2767
+ "finished_at_ms"?: (number | null);
2768
+ "id": string;
2769
+ "outcome": MethodPageFillResult__ActionOutcome;
2770
+ "preparation_intent": boolean;
2771
+ "receipt"?: (MethodPageFillResult__ActionReceipt | null);
2772
+ "runtime_id": string;
2773
+ "started_at_ms": number;
2774
+ "state": MethodPageFillResult__OperationState;
2775
+ "target_id": string;
2776
+ [key: string]: unknown;
2777
+ };
2778
+ export type MethodPageFillResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2779
+ export type MethodPageFillResult__ActionReceipt = {
2780
+ "action": string;
2781
+ "already_satisfied": boolean;
2782
+ "cleanup_pending": boolean;
2783
+ "destination_target_id"?: (string | null);
2784
+ "dispatch": MethodPageFillResult__DispatchState;
2785
+ "download_guid"?: (string | null);
2786
+ "elapsed_ms": number;
2787
+ "finished_at_ms": number;
2788
+ "outcome": MethodPageFillResult__ActionOutcome;
2789
+ "preparation_may_have_executed": boolean;
2790
+ "started_at_ms": number;
2791
+ "target_id": string;
2792
+ "verification"?: (string | null);
2793
+ [key: string]: unknown;
2794
+ };
2795
+ export type MethodPageFillResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
2813
+ export type MethodPageFillResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2814
+ export type MethodPageFillResult__PageContext = {
2815
+ "headings": Array<string>;
2816
+ "messages": Array<string>;
2817
+ "ready_state": string;
2818
+ "tab_id": string;
2819
+ "text_excerpt": string;
2820
+ "title": string;
2821
+ "truncated": boolean;
2822
+ "url": string;
2823
+ [key: string]: unknown;
2824
+ };
2825
+ export type MethodPageFramesParams = {
2826
+ "pageId": string;
2827
+ [key: string]: unknown;
2828
+ };
2829
+ export type MethodPageFramesResult = Array<MethodPageFramesResult__FrameInfo>;
2830
+ export type MethodPageFramesResult__FrameInfo = {
2831
+ "id": string;
2832
+ "name"?: (string | null);
2833
+ "url": string;
2834
+ [key: string]: unknown;
2835
+ };
2836
+ export type MethodPageGetAttributeParams = {
2837
+ "name": string;
2838
+ "pageId": string;
2839
+ "selector": string;
2840
+ [key: string]: unknown;
2841
+ };
2842
+ export type MethodPageGetAttributeResult = {
2843
+ "value"?: (string | null);
2844
+ [key: string]: unknown;
2845
+ };
2846
+ export type MethodPageGetTextParams = {
2847
+ "pageId": string;
2848
+ "selector": string;
2849
+ [key: string]: unknown;
2850
+ };
2851
+ export type MethodPageGetTextResult = {
2852
+ "text": string;
2853
+ [key: string]: unknown;
2854
+ };
2855
+ export type MethodPageGotoParams = {
2856
+ "operation_id": string;
2857
+ "options"?: MethodPageGotoParams__ActionOptions;
2858
+ "pageId": string;
2859
+ "url": string;
2860
+ [key: string]: unknown;
2861
+ };
2862
+ export type MethodPageGotoParams__ActionOptions = {
2863
+ "destination"?: MethodPageGotoParams__Destination;
2864
+ "expect"?: (MethodPageGotoParams__Expectation | null);
2865
+ "timeout_ms"?: number;
2866
+ "wait_for_target"?: boolean;
2867
+ [key: string]: unknown;
2868
+ };
2869
+ export type MethodPageGotoParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
2883
+ "kind": ("download_started" & string);
2884
+ [key: string]: unknown;
2885
+ } | {
2886
+ "kind": ("focused" & string);
2887
+ "target": MethodPageGotoParams__LocatorSpec;
2888
+ [key: string]: unknown;
2889
+ } | {
2890
+ "contains"?: boolean;
2891
+ "kind": ("url" & string);
2892
+ "value": string;
2893
+ [key: string]: unknown;
2894
+ } | {
2895
+ "kind": ("visible" & string);
2896
+ "target": MethodPageGotoParams__LocatorSpec;
2897
+ [key: string]: unknown;
2898
+ } | {
2899
+ "kind": ("hidden" & string);
2900
+ "target": MethodPageGotoParams__LocatorSpec;
2901
+ [key: string]: unknown;
2902
+ } | {
2903
+ "contains"?: boolean;
2904
+ "kind": ("text" & string);
2905
+ "target": MethodPageGotoParams__LocatorSpec;
2906
+ "value": string;
2907
+ [key: string]: unknown;
2908
+ } | {
2909
+ "kind": ("value" & string);
2910
+ "target": MethodPageGotoParams__LocatorSpec;
2911
+ "value": string;
2912
+ [key: string]: unknown;
2913
+ } | {
2914
+ "checked": boolean;
2915
+ "kind": ("checked" & string);
2916
+ "target": MethodPageGotoParams__LocatorSpec;
2917
+ [key: string]: unknown;
2918
+ } | {
2919
+ "kind": ("selected" & string);
2920
+ "target": MethodPageGotoParams__LocatorSpec;
2921
+ "values": Array<string>;
2922
+ [key: string]: unknown;
2923
+ });
2924
+ export type MethodPageGotoParams__LocatorQuery = ({
2925
+ "id": number;
2926
+ "kind": ("node" & string);
2927
+ [key: string]: unknown;
2928
+ } | {
2929
+ "kind": ("css" & string);
2930
+ "selector": string;
2931
+ [key: string]: unknown;
2932
+ } | {
2933
+ "exact"?: boolean;
2934
+ "kind": ("text" & string);
2935
+ "text": string;
2936
+ [key: string]: unknown;
2937
+ } | {
2938
+ "kind": ("placeholder" & string);
2939
+ "text": string;
2940
+ [key: string]: unknown;
2941
+ } | {
2942
+ "kind": ("role" & string);
2943
+ "role": string;
2944
+ [key: string]: unknown;
2945
+ } | {
2946
+ "id": number;
2947
+ "kind": ("backend_node" & string);
2948
+ [key: string]: unknown;
2949
+ });
2950
+ export type MethodPageGotoParams__LocatorSpec = {
2951
+ "frame_id"?: (string | null);
2952
+ "index"?: (number | null);
2953
+ "query": MethodPageGotoParams__LocatorQuery;
2954
+ [key: string]: unknown;
2955
+ };
2956
+ export type MethodPageGotoResult = {
2957
+ "action": string;
2958
+ "dispatch_intent": boolean;
2959
+ "error"?: (MethodPageGotoResult__ErrorDetail | null);
2960
+ "error_code"?: (string | null);
2961
+ "finished_at_ms"?: (number | null);
2962
+ "id": string;
2963
+ "outcome": MethodPageGotoResult__ActionOutcome;
2964
+ "preparation_intent": boolean;
2965
+ "receipt"?: (MethodPageGotoResult__ActionReceipt | null);
2966
+ "runtime_id": string;
2967
+ "started_at_ms": number;
2968
+ "state": MethodPageGotoResult__OperationState;
2969
+ "target_id": string;
2970
+ [key: string]: unknown;
2971
+ };
2972
+ export type MethodPageGotoResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2973
+ export type MethodPageGotoResult__ActionReceipt = {
2974
+ "action": string;
2975
+ "already_satisfied": boolean;
2976
+ "cleanup_pending": boolean;
2977
+ "destination_target_id"?: (string | null);
2978
+ "dispatch": MethodPageGotoResult__DispatchState;
2979
+ "download_guid"?: (string | null);
2980
+ "elapsed_ms": number;
2981
+ "finished_at_ms": number;
2982
+ "outcome": MethodPageGotoResult__ActionOutcome;
2983
+ "preparation_may_have_executed": boolean;
2984
+ "started_at_ms": number;
2985
+ "target_id": string;
2986
+ "verification"?: (string | null);
2987
+ [key: string]: unknown;
2988
+ };
2989
+ export type MethodPageGotoResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
3019
+ export type MethodPageHoverParams = {
3020
+ "operation_id": string;
3021
+ "options"?: MethodPageHoverParams__ActionOptions;
3022
+ "pageId": string;
3023
+ "selector": string;
3024
+ [key: string]: unknown;
3025
+ };
3026
+ export type MethodPageHoverParams__ActionOptions = {
3027
+ "destination"?: MethodPageHoverParams__Destination;
3028
+ "expect"?: (MethodPageHoverParams__Expectation | null);
3029
+ "timeout_ms"?: number;
3030
+ "wait_for_target"?: boolean;
3031
+ [key: string]: unknown;
3032
+ };
3033
+ export type MethodPageHoverParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
3047
+ "kind": ("download_started" & string);
3048
+ [key: string]: unknown;
3049
+ } | {
3050
+ "kind": ("focused" & string);
3051
+ "target": MethodPageHoverParams__LocatorSpec;
3052
+ [key: string]: unknown;
3053
+ } | {
3054
+ "contains"?: boolean;
3055
+ "kind": ("url" & string);
3056
+ "value": string;
3057
+ [key: string]: unknown;
3058
+ } | {
3059
+ "kind": ("visible" & string);
3060
+ "target": MethodPageHoverParams__LocatorSpec;
3061
+ [key: string]: unknown;
3062
+ } | {
3063
+ "kind": ("hidden" & string);
3064
+ "target": MethodPageHoverParams__LocatorSpec;
3065
+ [key: string]: unknown;
3066
+ } | {
3067
+ "contains"?: boolean;
3068
+ "kind": ("text" & string);
3069
+ "target": MethodPageHoverParams__LocatorSpec;
3070
+ "value": string;
3071
+ [key: string]: unknown;
3072
+ } | {
3073
+ "kind": ("value" & string);
3074
+ "target": MethodPageHoverParams__LocatorSpec;
3075
+ "value": string;
3076
+ [key: string]: unknown;
3077
+ } | {
3078
+ "checked": boolean;
3079
+ "kind": ("checked" & string);
3080
+ "target": MethodPageHoverParams__LocatorSpec;
3081
+ [key: string]: unknown;
3082
+ } | {
3083
+ "kind": ("selected" & string);
3084
+ "target": MethodPageHoverParams__LocatorSpec;
3085
+ "values": Array<string>;
3086
+ [key: string]: unknown;
3087
+ });
3088
+ export type MethodPageHoverParams__LocatorQuery = ({
3089
+ "id": number;
3090
+ "kind": ("node" & string);
3091
+ [key: string]: unknown;
3092
+ } | {
3093
+ "kind": ("css" & string);
3094
+ "selector": string;
3095
+ [key: string]: unknown;
3096
+ } | {
3097
+ "exact"?: boolean;
3098
+ "kind": ("text" & string);
3099
+ "text": string;
3100
+ [key: string]: unknown;
3101
+ } | {
3102
+ "kind": ("placeholder" & string);
3103
+ "text": string;
3104
+ [key: string]: unknown;
3105
+ } | {
3106
+ "kind": ("role" & string);
3107
+ "role": string;
3108
+ [key: string]: unknown;
3109
+ } | {
3110
+ "id": number;
3111
+ "kind": ("backend_node" & string);
3112
+ [key: string]: unknown;
3113
+ });
3114
+ export type MethodPageHoverParams__LocatorSpec = {
3115
+ "frame_id"?: (string | null);
3116
+ "index"?: (number | null);
3117
+ "query": MethodPageHoverParams__LocatorQuery;
3118
+ [key: string]: unknown;
3119
+ };
3120
+ export type MethodPageHoverResult = {
3121
+ "action": string;
3122
+ "dispatch_intent": boolean;
3123
+ "error"?: (MethodPageHoverResult__ErrorDetail | null);
3124
+ "error_code"?: (string | null);
3125
+ "finished_at_ms"?: (number | null);
3126
+ "id": string;
3127
+ "outcome": MethodPageHoverResult__ActionOutcome;
3128
+ "preparation_intent": boolean;
3129
+ "receipt"?: (MethodPageHoverResult__ActionReceipt | null);
3130
+ "runtime_id": string;
3131
+ "started_at_ms": number;
3132
+ "state": MethodPageHoverResult__OperationState;
3133
+ "target_id": string;
3134
+ [key: string]: unknown;
3135
+ };
3136
+ export type MethodPageHoverResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
3137
+ export type MethodPageHoverResult__ActionReceipt = {
3138
+ "action": string;
3139
+ "already_satisfied": boolean;
3140
+ "cleanup_pending": boolean;
3141
+ "destination_target_id"?: (string | null);
3142
+ "dispatch": MethodPageHoverResult__DispatchState;
3143
+ "download_guid"?: (string | null);
3144
+ "elapsed_ms": number;
3145
+ "finished_at_ms": number;
3146
+ "outcome": MethodPageHoverResult__ActionOutcome;
3147
+ "preparation_may_have_executed": boolean;
3148
+ "started_at_ms": number;
3149
+ "target_id": string;
3150
+ "verification"?: (string | null);
3151
+ [key: string]: unknown;
3152
+ };
3153
+ export type MethodPageHoverResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
3183
+ export type MethodPageHumanClickParams = {
3184
+ "operation_id": string;
3185
+ "options"?: MethodPageHumanClickParams__ActionOptions;
3186
+ "pageId": string;
3187
+ "selector": string;
3188
+ [key: string]: unknown;
3189
+ };
3190
+ export type MethodPageHumanClickParams__ActionOptions = {
3191
+ "destination"?: MethodPageHumanClickParams__Destination;
3192
+ "expect"?: (MethodPageHumanClickParams__Expectation | null);
3193
+ "timeout_ms"?: number;
3194
+ "wait_for_target"?: boolean;
3195
+ [key: string]: unknown;
3196
+ };
3197
+ export type MethodPageHumanClickParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
3211
+ "kind": ("download_started" & string);
3212
+ [key: string]: unknown;
3213
+ } | {
3214
+ "kind": ("focused" & string);
3215
+ "target": MethodPageHumanClickParams__LocatorSpec;
3216
+ [key: string]: unknown;
3217
+ } | {
3218
+ "contains"?: boolean;
3219
+ "kind": ("url" & string);
3220
+ "value": string;
3221
+ [key: string]: unknown;
3222
+ } | {
3223
+ "kind": ("visible" & string);
3224
+ "target": MethodPageHumanClickParams__LocatorSpec;
3225
+ [key: string]: unknown;
3226
+ } | {
3227
+ "kind": ("hidden" & string);
3228
+ "target": MethodPageHumanClickParams__LocatorSpec;
3229
+ [key: string]: unknown;
3230
+ } | {
3231
+ "contains"?: boolean;
3232
+ "kind": ("text" & string);
3233
+ "target": MethodPageHumanClickParams__LocatorSpec;
3234
+ "value": string;
3235
+ [key: string]: unknown;
3236
+ } | {
3237
+ "kind": ("value" & string);
3238
+ "target": MethodPageHumanClickParams__LocatorSpec;
3239
+ "value": string;
3240
+ [key: string]: unknown;
3241
+ } | {
3242
+ "checked": boolean;
3243
+ "kind": ("checked" & string);
3244
+ "target": MethodPageHumanClickParams__LocatorSpec;
3245
+ [key: string]: unknown;
3246
+ } | {
3247
+ "kind": ("selected" & string);
3248
+ "target": MethodPageHumanClickParams__LocatorSpec;
3249
+ "values": Array<string>;
3250
+ [key: string]: unknown;
3251
+ });
3252
+ export type MethodPageHumanClickParams__LocatorQuery = ({
3253
+ "id": number;
3254
+ "kind": ("node" & string);
3255
+ [key: string]: unknown;
3256
+ } | {
3257
+ "kind": ("css" & string);
3258
+ "selector": string;
3259
+ [key: string]: unknown;
3260
+ } | {
3261
+ "exact"?: boolean;
3262
+ "kind": ("text" & string);
3263
+ "text": string;
3264
+ [key: string]: unknown;
3265
+ } | {
3266
+ "kind": ("placeholder" & string);
3267
+ "text": string;
3268
+ [key: string]: unknown;
3269
+ } | {
3270
+ "kind": ("role" & string);
3271
+ "role": string;
3272
+ [key: string]: unknown;
3273
+ } | {
3274
+ "id": number;
3275
+ "kind": ("backend_node" & string);
3276
+ [key: string]: unknown;
3277
+ });
3278
+ export type MethodPageHumanClickParams__LocatorSpec = {
3279
+ "frame_id"?: (string | null);
3280
+ "index"?: (number | null);
3281
+ "query": MethodPageHumanClickParams__LocatorQuery;
3282
+ [key: string]: unknown;
3283
+ };
3284
+ export type MethodPageHumanClickResult = {
3285
+ "action": string;
3286
+ "dispatch_intent": boolean;
3287
+ "error"?: (MethodPageHumanClickResult__ErrorDetail | null);
3288
+ "error_code"?: (string | null);
3289
+ "finished_at_ms"?: (number | null);
3290
+ "id": string;
3291
+ "outcome": MethodPageHumanClickResult__ActionOutcome;
3292
+ "preparation_intent": boolean;
3293
+ "receipt"?: (MethodPageHumanClickResult__ActionReceipt | null);
3294
+ "runtime_id": string;
3295
+ "started_at_ms": number;
3296
+ "state": MethodPageHumanClickResult__OperationState;
3297
+ "target_id": string;
3298
+ [key: string]: unknown;
3299
+ };
3300
+ export type MethodPageHumanClickResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
3301
+ export type MethodPageHumanClickResult__ActionReceipt = {
3302
+ "action": string;
3303
+ "already_satisfied": boolean;
3304
+ "cleanup_pending": boolean;
3305
+ "destination_target_id"?: (string | null);
3306
+ "dispatch": MethodPageHumanClickResult__DispatchState;
3307
+ "download_guid"?: (string | null);
3308
+ "elapsed_ms": number;
3309
+ "finished_at_ms": number;
3310
+ "outcome": MethodPageHumanClickResult__ActionOutcome;
3311
+ "preparation_may_have_executed": boolean;
3312
+ "started_at_ms": number;
3313
+ "target_id": string;
3314
+ "verification"?: (string | null);
3315
+ [key: string]: unknown;
3316
+ };
3317
+ export type MethodPageHumanClickResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
3347
+ export type MethodPageHumanClickTextParams = {
3348
+ "operation_id": string;
3349
+ "options"?: MethodPageHumanClickTextParams__ActionOptions;
3350
+ "pageId": string;
3351
+ "text": string;
3352
+ [key: string]: unknown;
3353
+ };
3354
+ export type MethodPageHumanClickTextParams__ActionOptions = {
3355
+ "destination"?: MethodPageHumanClickTextParams__Destination;
3356
+ "expect"?: (MethodPageHumanClickTextParams__Expectation | null);
3357
+ "timeout_ms"?: number;
3358
+ "wait_for_target"?: boolean;
3359
+ [key: string]: unknown;
3360
+ };
3361
+ export type MethodPageHumanClickTextParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
3375
+ "kind": ("download_started" & string);
3376
+ [key: string]: unknown;
3377
+ } | {
3378
+ "kind": ("focused" & string);
3379
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
3380
+ [key: string]: unknown;
3381
+ } | {
3382
+ "contains"?: boolean;
3383
+ "kind": ("url" & string);
3384
+ "value": string;
3385
+ [key: string]: unknown;
3386
+ } | {
3387
+ "kind": ("visible" & string);
3388
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
3389
+ [key: string]: unknown;
3390
+ } | {
3391
+ "kind": ("hidden" & string);
3392
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
3393
+ [key: string]: unknown;
3394
+ } | {
3395
+ "contains"?: boolean;
3396
+ "kind": ("text" & string);
3397
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
3398
+ "value": string;
3399
+ [key: string]: unknown;
3400
+ } | {
3401
+ "kind": ("value" & string);
3402
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
3403
+ "value": string;
3404
+ [key: string]: unknown;
3405
+ } | {
3406
+ "checked": boolean;
3407
+ "kind": ("checked" & string);
3408
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
3409
+ [key: string]: unknown;
3410
+ } | {
3411
+ "kind": ("selected" & string);
3412
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
3413
+ "values": Array<string>;
3414
+ [key: string]: unknown;
3415
+ });
3416
+ export type MethodPageHumanClickTextParams__LocatorQuery = ({
3417
+ "id": number;
3418
+ "kind": ("node" & string);
3419
+ [key: string]: unknown;
3420
+ } | {
3421
+ "kind": ("css" & string);
3422
+ "selector": string;
3423
+ [key: string]: unknown;
3424
+ } | {
3425
+ "exact"?: boolean;
3426
+ "kind": ("text" & string);
3427
+ "text": string;
3428
+ [key: string]: unknown;
3429
+ } | {
3430
+ "kind": ("placeholder" & string);
3431
+ "text": string;
3432
+ [key: string]: unknown;
3433
+ } | {
3434
+ "kind": ("role" & string);
3435
+ "role": string;
3436
+ [key: string]: unknown;
3437
+ } | {
3438
+ "id": number;
3439
+ "kind": ("backend_node" & string);
3440
+ [key: string]: unknown;
3441
+ });
3442
+ export type MethodPageHumanClickTextParams__LocatorSpec = {
3443
+ "frame_id"?: (string | null);
3444
+ "index"?: (number | null);
3445
+ "query": MethodPageHumanClickTextParams__LocatorQuery;
3446
+ [key: string]: unknown;
3447
+ };
3448
+ export type MethodPageHumanClickTextResult = {
3449
+ "action": string;
3450
+ "dispatch_intent": boolean;
3451
+ "error"?: (MethodPageHumanClickTextResult__ErrorDetail | null);
3452
+ "error_code"?: (string | null);
3453
+ "finished_at_ms"?: (number | null);
3454
+ "id": string;
3455
+ "outcome": MethodPageHumanClickTextResult__ActionOutcome;
3456
+ "preparation_intent": boolean;
3457
+ "receipt"?: (MethodPageHumanClickTextResult__ActionReceipt | null);
3458
+ "runtime_id": string;
3459
+ "started_at_ms": number;
3460
+ "state": MethodPageHumanClickTextResult__OperationState;
3461
+ "target_id": string;
3462
+ [key: string]: unknown;
3463
+ };
3464
+ export type MethodPageHumanClickTextResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
3465
+ export type MethodPageHumanClickTextResult__ActionReceipt = {
3466
+ "action": string;
3467
+ "already_satisfied": boolean;
3468
+ "cleanup_pending": boolean;
3469
+ "destination_target_id"?: (string | null);
3470
+ "dispatch": MethodPageHumanClickTextResult__DispatchState;
3471
+ "download_guid"?: (string | null);
3472
+ "elapsed_ms": number;
3473
+ "finished_at_ms": number;
3474
+ "outcome": MethodPageHumanClickTextResult__ActionOutcome;
3475
+ "preparation_may_have_executed": boolean;
3476
+ "started_at_ms": number;
3477
+ "target_id": string;
3478
+ "verification"?: (string | null);
3479
+ [key: string]: unknown;
3480
+ };
3481
+ export type MethodPageHumanClickTextResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
3511
+ export type MethodPageHumanFillParams = {
3512
+ "inputMode"?: MethodPageHumanFillParams__InputMode;
3513
+ "operation_id": string;
3514
+ "options"?: MethodPageHumanFillParams__ActionOptions;
3515
+ "pageId": string;
3516
+ "selector": string;
3517
+ "value": string;
3518
+ [key: string]: unknown;
3519
+ };
3520
+ export type MethodPageHumanFillParams__ActionOptions = {
3521
+ "destination"?: MethodPageHumanFillParams__Destination;
3522
+ "expect"?: (MethodPageHumanFillParams__Expectation | null);
3523
+ "timeout_ms"?: number;
3524
+ "wait_for_target"?: boolean;
3525
+ [key: string]: unknown;
3526
+ };
3527
+ export type MethodPageHumanFillParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
3541
+ "kind": ("download_started" & string);
3542
+ [key: string]: unknown;
3543
+ } | {
3544
+ "kind": ("focused" & string);
3545
+ "target": MethodPageHumanFillParams__LocatorSpec;
3546
+ [key: string]: unknown;
3547
+ } | {
3548
+ "contains"?: boolean;
3549
+ "kind": ("url" & string);
3550
+ "value": string;
3551
+ [key: string]: unknown;
3552
+ } | {
3553
+ "kind": ("visible" & string);
3554
+ "target": MethodPageHumanFillParams__LocatorSpec;
3555
+ [key: string]: unknown;
3556
+ } | {
3557
+ "kind": ("hidden" & string);
3558
+ "target": MethodPageHumanFillParams__LocatorSpec;
3559
+ [key: string]: unknown;
3560
+ } | {
3561
+ "contains"?: boolean;
3562
+ "kind": ("text" & string);
3563
+ "target": MethodPageHumanFillParams__LocatorSpec;
3564
+ "value": string;
3565
+ [key: string]: unknown;
3566
+ } | {
3567
+ "kind": ("value" & string);
3568
+ "target": MethodPageHumanFillParams__LocatorSpec;
3569
+ "value": string;
3570
+ [key: string]: unknown;
3571
+ } | {
3572
+ "checked": boolean;
3573
+ "kind": ("checked" & string);
3574
+ "target": MethodPageHumanFillParams__LocatorSpec;
3575
+ [key: string]: unknown;
3576
+ } | {
3577
+ "kind": ("selected" & string);
3578
+ "target": MethodPageHumanFillParams__LocatorSpec;
3579
+ "values": Array<string>;
3580
+ [key: string]: unknown;
3581
+ });
3582
+ export type MethodPageHumanFillParams__InputMode = (("sequential" & string) | ("bulk" & string));
3583
+ export type MethodPageHumanFillParams__LocatorQuery = ({
3584
+ "id": number;
3585
+ "kind": ("node" & string);
3586
+ [key: string]: unknown;
3587
+ } | {
3588
+ "kind": ("css" & string);
3589
+ "selector": string;
3590
+ [key: string]: unknown;
3591
+ } | {
3592
+ "exact"?: boolean;
3593
+ "kind": ("text" & string);
3594
+ "text": string;
3595
+ [key: string]: unknown;
3596
+ } | {
3597
+ "kind": ("placeholder" & string);
3598
+ "text": string;
3599
+ [key: string]: unknown;
3600
+ } | {
3601
+ "kind": ("role" & string);
3602
+ "role": string;
3603
+ [key: string]: unknown;
3604
+ } | {
3605
+ "id": number;
3606
+ "kind": ("backend_node" & string);
3607
+ [key: string]: unknown;
3608
+ });
3609
+ export type MethodPageHumanFillParams__LocatorSpec = {
3610
+ "frame_id"?: (string | null);
3611
+ "index"?: (number | null);
3612
+ "query": MethodPageHumanFillParams__LocatorQuery;
3613
+ [key: string]: unknown;
3614
+ };
3615
+ export type MethodPageHumanFillResult = {
3616
+ "action": string;
3617
+ "dispatch_intent": boolean;
3618
+ "error"?: (MethodPageHumanFillResult__ErrorDetail | null);
3619
+ "error_code"?: (string | null);
3620
+ "finished_at_ms"?: (number | null);
3621
+ "id": string;
3622
+ "outcome": MethodPageHumanFillResult__ActionOutcome;
3623
+ "preparation_intent": boolean;
3624
+ "receipt"?: (MethodPageHumanFillResult__ActionReceipt | null);
3625
+ "runtime_id": string;
3626
+ "started_at_ms": number;
3627
+ "state": MethodPageHumanFillResult__OperationState;
3628
+ "target_id": string;
3629
+ [key: string]: unknown;
3630
+ };
3631
+ export type MethodPageHumanFillResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
3632
+ export type MethodPageHumanFillResult__ActionReceipt = {
3633
+ "action": string;
3634
+ "already_satisfied": boolean;
3635
+ "cleanup_pending": boolean;
3636
+ "destination_target_id"?: (string | null);
3637
+ "dispatch": MethodPageHumanFillResult__DispatchState;
3638
+ "download_guid"?: (string | null);
3639
+ "elapsed_ms": number;
3640
+ "finished_at_ms": number;
3641
+ "outcome": MethodPageHumanFillResult__ActionOutcome;
3642
+ "preparation_may_have_executed": boolean;
3643
+ "started_at_ms": number;
3644
+ "target_id": string;
3645
+ "verification"?: (string | null);
3646
+ [key: string]: unknown;
3647
+ };
3648
+ export type MethodPageHumanFillResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
3678
+ export type MethodPageKeyDownParams = {
3679
+ "expect"?: (MethodPageKeyDownParams__Expectation | null);
3680
+ "key": string;
3681
+ "operation_id"?: (string | null);
3682
+ "pageId": string;
3683
+ "timeout_ms"?: (number | null);
3684
+ [key: string]: unknown;
3685
+ };
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
+ } | {
3699
+ "kind": ("download_started" & string);
3700
+ [key: string]: unknown;
3701
+ } | {
3702
+ "kind": ("focused" & string);
3703
+ "target": MethodPageKeyDownParams__LocatorSpec;
3704
+ [key: string]: unknown;
3705
+ } | {
3706
+ "contains"?: boolean;
3707
+ "kind": ("url" & string);
3708
+ "value": string;
3709
+ [key: string]: unknown;
3710
+ } | {
3711
+ "kind": ("visible" & string);
3712
+ "target": MethodPageKeyDownParams__LocatorSpec;
3713
+ [key: string]: unknown;
3714
+ } | {
3715
+ "kind": ("hidden" & string);
3716
+ "target": MethodPageKeyDownParams__LocatorSpec;
3717
+ [key: string]: unknown;
3718
+ } | {
3719
+ "contains"?: boolean;
3720
+ "kind": ("text" & string);
3721
+ "target": MethodPageKeyDownParams__LocatorSpec;
3722
+ "value": string;
3723
+ [key: string]: unknown;
3724
+ } | {
3725
+ "kind": ("value" & string);
3726
+ "target": MethodPageKeyDownParams__LocatorSpec;
3727
+ "value": string;
3728
+ [key: string]: unknown;
3729
+ } | {
3730
+ "checked": boolean;
3731
+ "kind": ("checked" & string);
3732
+ "target": MethodPageKeyDownParams__LocatorSpec;
3733
+ [key: string]: unknown;
3734
+ } | {
3735
+ "kind": ("selected" & string);
3736
+ "target": MethodPageKeyDownParams__LocatorSpec;
3737
+ "values": Array<string>;
3738
+ [key: string]: unknown;
3739
+ });
3740
+ export type MethodPageKeyDownParams__LocatorQuery = ({
3741
+ "id": number;
3742
+ "kind": ("node" & string);
3743
+ [key: string]: unknown;
3744
+ } | {
3745
+ "kind": ("css" & string);
3746
+ "selector": string;
3747
+ [key: string]: unknown;
3748
+ } | {
3749
+ "exact"?: boolean;
3750
+ "kind": ("text" & string);
3751
+ "text": string;
3752
+ [key: string]: unknown;
3753
+ } | {
3754
+ "kind": ("placeholder" & string);
3755
+ "text": string;
3756
+ [key: string]: unknown;
3757
+ } | {
3758
+ "kind": ("role" & string);
3759
+ "role": string;
3760
+ [key: string]: unknown;
3761
+ } | {
3762
+ "id": number;
3763
+ "kind": ("backend_node" & string);
3764
+ [key: string]: unknown;
3765
+ });
3766
+ export type MethodPageKeyDownParams__LocatorSpec = {
3767
+ "frame_id"?: (string | null);
3768
+ "index"?: (number | null);
3769
+ "query": MethodPageKeyDownParams__LocatorQuery;
3770
+ [key: string]: unknown;
3771
+ };
3772
+ export type MethodPageKeyDownResult = Record<string, never>;
3773
+ export type MethodPageKeyUpParams = {
3774
+ "expect"?: (MethodPageKeyUpParams__Expectation | null);
3775
+ "key": string;
3776
+ "operation_id"?: (string | null);
3777
+ "pageId": string;
3778
+ "timeout_ms"?: (number | null);
3779
+ [key: string]: unknown;
3780
+ };
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
+ } | {
3794
+ "kind": ("download_started" & string);
3795
+ [key: string]: unknown;
3796
+ } | {
3797
+ "kind": ("focused" & string);
3798
+ "target": MethodPageKeyUpParams__LocatorSpec;
3799
+ [key: string]: unknown;
3800
+ } | {
3801
+ "contains"?: boolean;
3802
+ "kind": ("url" & string);
3803
+ "value": string;
3804
+ [key: string]: unknown;
3805
+ } | {
3806
+ "kind": ("visible" & string);
3807
+ "target": MethodPageKeyUpParams__LocatorSpec;
3808
+ [key: string]: unknown;
3809
+ } | {
3810
+ "kind": ("hidden" & string);
3811
+ "target": MethodPageKeyUpParams__LocatorSpec;
3812
+ [key: string]: unknown;
3813
+ } | {
3814
+ "contains"?: boolean;
3815
+ "kind": ("text" & string);
3816
+ "target": MethodPageKeyUpParams__LocatorSpec;
3817
+ "value": string;
3818
+ [key: string]: unknown;
3819
+ } | {
3820
+ "kind": ("value" & string);
3821
+ "target": MethodPageKeyUpParams__LocatorSpec;
3822
+ "value": string;
3823
+ [key: string]: unknown;
3824
+ } | {
3825
+ "checked": boolean;
3826
+ "kind": ("checked" & string);
3827
+ "target": MethodPageKeyUpParams__LocatorSpec;
3828
+ [key: string]: unknown;
3829
+ } | {
3830
+ "kind": ("selected" & string);
3831
+ "target": MethodPageKeyUpParams__LocatorSpec;
3832
+ "values": Array<string>;
3833
+ [key: string]: unknown;
3834
+ });
3835
+ export type MethodPageKeyUpParams__LocatorQuery = ({
3836
+ "id": number;
3837
+ "kind": ("node" & string);
3838
+ [key: string]: unknown;
3839
+ } | {
3840
+ "kind": ("css" & string);
3841
+ "selector": string;
3842
+ [key: string]: unknown;
3843
+ } | {
3844
+ "exact"?: boolean;
3845
+ "kind": ("text" & string);
3846
+ "text": string;
3847
+ [key: string]: unknown;
3848
+ } | {
3849
+ "kind": ("placeholder" & string);
3850
+ "text": string;
3851
+ [key: string]: unknown;
3852
+ } | {
3853
+ "kind": ("role" & string);
3854
+ "role": string;
3855
+ [key: string]: unknown;
3856
+ } | {
3857
+ "id": number;
3858
+ "kind": ("backend_node" & string);
3859
+ [key: string]: unknown;
3860
+ });
3861
+ export type MethodPageKeyUpParams__LocatorSpec = {
3862
+ "frame_id"?: (string | null);
3863
+ "index"?: (number | null);
3864
+ "query": MethodPageKeyUpParams__LocatorQuery;
3865
+ [key: string]: unknown;
3866
+ };
3867
+ export type MethodPageKeyUpResult = Record<string, never>;
3868
+ export type MethodPageMouseDownParams = {
3869
+ "button": MethodPageMouseDownParams__MouseButton;
3870
+ "pageId": string;
3871
+ "x": number;
3872
+ "y": number;
3873
+ [key: string]: unknown;
3874
+ };
3875
+ export type MethodPageMouseDownParams__MouseButton = (("left" | "middle" | "right" | "back" | "forward") & string);
3876
+ export type MethodPageMouseDownResult = Record<string, never>;
3877
+ export type MethodPageMouseMoveParams = {
3878
+ "pageId": string;
3879
+ "x": number;
3880
+ "y": number;
3881
+ [key: string]: unknown;
3882
+ };
3883
+ export type MethodPageMouseMoveResult = Record<string, never>;
3884
+ export type MethodPageMouseUpParams = {
3885
+ "button": MethodPageMouseUpParams__MouseButton;
3886
+ "pageId": string;
3887
+ "x": number;
3888
+ "y": number;
3889
+ [key: string]: unknown;
3890
+ };
3891
+ export type MethodPageMouseUpParams__MouseButton = (("left" | "middle" | "right" | "back" | "forward") & string);
3892
+ export type MethodPageMouseUpResult = Record<string, never>;
3893
+ export type MethodPagePressKeyParams = {
3894
+ "key": string;
3895
+ "operation_id": string;
3896
+ "options"?: MethodPagePressKeyParams__ActionOptions;
3897
+ "pageId": string;
3898
+ [key: string]: unknown;
3899
+ };
3900
+ export type MethodPagePressKeyParams__ActionOptions = {
3901
+ "destination"?: MethodPagePressKeyParams__Destination;
3902
+ "expect"?: (MethodPagePressKeyParams__Expectation | null);
3903
+ "timeout_ms"?: number;
3904
+ "wait_for_target"?: boolean;
3905
+ [key: string]: unknown;
3906
+ };
3907
+ export type MethodPagePressKeyParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
3921
+ "kind": ("download_started" & string);
3922
+ [key: string]: unknown;
3923
+ } | {
3924
+ "kind": ("focused" & string);
3925
+ "target": MethodPagePressKeyParams__LocatorSpec;
3926
+ [key: string]: unknown;
3927
+ } | {
3928
+ "contains"?: boolean;
3929
+ "kind": ("url" & string);
3930
+ "value": string;
3931
+ [key: string]: unknown;
3932
+ } | {
3933
+ "kind": ("visible" & string);
3934
+ "target": MethodPagePressKeyParams__LocatorSpec;
3935
+ [key: string]: unknown;
3936
+ } | {
3937
+ "kind": ("hidden" & string);
3938
+ "target": MethodPagePressKeyParams__LocatorSpec;
3939
+ [key: string]: unknown;
3940
+ } | {
3941
+ "contains"?: boolean;
3942
+ "kind": ("text" & string);
3943
+ "target": MethodPagePressKeyParams__LocatorSpec;
3944
+ "value": string;
3945
+ [key: string]: unknown;
3946
+ } | {
3947
+ "kind": ("value" & string);
3948
+ "target": MethodPagePressKeyParams__LocatorSpec;
3949
+ "value": string;
3950
+ [key: string]: unknown;
3951
+ } | {
3952
+ "checked": boolean;
3953
+ "kind": ("checked" & string);
3954
+ "target": MethodPagePressKeyParams__LocatorSpec;
3955
+ [key: string]: unknown;
3956
+ } | {
3957
+ "kind": ("selected" & string);
3958
+ "target": MethodPagePressKeyParams__LocatorSpec;
3959
+ "values": Array<string>;
3960
+ [key: string]: unknown;
3961
+ });
3962
+ export type MethodPagePressKeyParams__LocatorQuery = ({
3963
+ "id": number;
3964
+ "kind": ("node" & string);
3965
+ [key: string]: unknown;
3966
+ } | {
3967
+ "kind": ("css" & string);
3968
+ "selector": string;
3969
+ [key: string]: unknown;
3970
+ } | {
3971
+ "exact"?: boolean;
3972
+ "kind": ("text" & string);
3973
+ "text": string;
3974
+ [key: string]: unknown;
3975
+ } | {
3976
+ "kind": ("placeholder" & string);
3977
+ "text": string;
3978
+ [key: string]: unknown;
3979
+ } | {
3980
+ "kind": ("role" & string);
3981
+ "role": string;
3982
+ [key: string]: unknown;
3983
+ } | {
3984
+ "id": number;
3985
+ "kind": ("backend_node" & string);
3986
+ [key: string]: unknown;
3987
+ });
3988
+ export type MethodPagePressKeyParams__LocatorSpec = {
3989
+ "frame_id"?: (string | null);
3990
+ "index"?: (number | null);
3991
+ "query": MethodPagePressKeyParams__LocatorQuery;
3992
+ [key: string]: unknown;
3993
+ };
3994
+ export type MethodPagePressKeyResult = {
3995
+ "action": string;
3996
+ "dispatch_intent": boolean;
3997
+ "error"?: (MethodPagePressKeyResult__ErrorDetail | null);
3998
+ "error_code"?: (string | null);
3999
+ "finished_at_ms"?: (number | null);
4000
+ "id": string;
4001
+ "outcome": MethodPagePressKeyResult__ActionOutcome;
4002
+ "preparation_intent": boolean;
4003
+ "receipt"?: (MethodPagePressKeyResult__ActionReceipt | null);
4004
+ "runtime_id": string;
4005
+ "started_at_ms": number;
4006
+ "state": MethodPagePressKeyResult__OperationState;
4007
+ "target_id": string;
4008
+ [key: string]: unknown;
4009
+ };
4010
+ export type MethodPagePressKeyResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
4011
+ export type MethodPagePressKeyResult__ActionReceipt = {
4012
+ "action": string;
4013
+ "already_satisfied": boolean;
4014
+ "cleanup_pending": boolean;
4015
+ "destination_target_id"?: (string | null);
4016
+ "dispatch": MethodPagePressKeyResult__DispatchState;
4017
+ "download_guid"?: (string | null);
4018
+ "elapsed_ms": number;
4019
+ "finished_at_ms": number;
4020
+ "outcome": MethodPagePressKeyResult__ActionOutcome;
4021
+ "preparation_may_have_executed": boolean;
4022
+ "started_at_ms": number;
4023
+ "target_id": string;
4024
+ "verification"?: (string | null);
4025
+ [key: string]: unknown;
4026
+ };
4027
+ export type MethodPagePressKeyResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
4057
+ export type MethodPageReleaseAllInputsParams = {
4058
+ "pageId": string;
4059
+ [key: string]: unknown;
4060
+ };
4061
+ export type MethodPageReleaseAllInputsResult = Record<string, never>;
4062
+ export type MethodPageResetViewportParams = {
4063
+ "pageId": string;
4064
+ [key: string]: unknown;
4065
+ };
4066
+ export type MethodPageResetViewportResult = Record<string, never>;
4067
+ export type MethodPageRestoreStateParams = {
4068
+ "pageId": string;
4069
+ "state": MethodPageRestoreStateParams__BrowserState;
4070
+ [key: string]: unknown;
4071
+ };
4072
+ export type MethodPageRestoreStateParams__BrowserState = {
4073
+ "cookies": Array<MethodPageRestoreStateParams__SessionCookie>;
4074
+ "localStorage"?: Record<string, string>;
4075
+ "sessionStorage"?: Record<string, string>;
4076
+ "url": string;
4077
+ "userAgent": string;
4078
+ [key: string]: unknown;
4079
+ };
4080
+ export type MethodPageRestoreStateParams__SessionCookie = {
4081
+ "domain": string;
4082
+ "expires"?: (number | null);
4083
+ "http_only": boolean;
4084
+ "name": string;
4085
+ "path": string;
4086
+ "same_site"?: (string | null);
4087
+ "secure": boolean;
4088
+ "value": string;
4089
+ [key: string]: unknown;
4090
+ };
4091
+ export type MethodPageRestoreStateResult = Record<string, never>;
4092
+ export type MethodPageScreenshotParams = {
4093
+ "clip"?: (MethodPageScreenshotParams__ScreenshotClip | null);
4094
+ "format"?: (MethodPageScreenshotParams__ScreenshotFormat | null);
4095
+ "fullPage"?: (boolean | null);
4096
+ "pageId": string;
4097
+ "quality"?: (number | null);
4098
+ [key: string]: unknown;
4099
+ };
4100
+ export type MethodPageScreenshotParams__ScreenshotClip = {
4101
+ "height": number;
4102
+ "width": number;
4103
+ "x": number;
4104
+ "y": number;
4105
+ [key: string]: unknown;
4106
+ };
4107
+ export type MethodPageScreenshotParams__ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
4108
+ export type MethodPageScreenshotResult = {
4109
+ "dataBase64": string;
4110
+ [key: string]: unknown;
4111
+ };
4112
+ export type MethodPageScreenshotToFileParams = {
4113
+ "clip"?: (MethodPageScreenshotToFileParams__ScreenshotClip | null);
4114
+ "format"?: (MethodPageScreenshotToFileParams__ScreenshotFormat | null);
4115
+ "fullPage"?: (boolean | null);
4116
+ "pageId": string;
4117
+ "path": string;
4118
+ "quality"?: (number | null);
4119
+ [key: string]: unknown;
4120
+ };
4121
+ export type MethodPageScreenshotToFileParams__ScreenshotClip = {
4122
+ "height": number;
4123
+ "width": number;
4124
+ "x": number;
4125
+ "y": number;
4126
+ [key: string]: unknown;
4127
+ };
4128
+ export type MethodPageScreenshotToFileParams__ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
4129
+ export type MethodPageScreenshotToFileResult = {
4130
+ "bytes": number;
4131
+ "container"?: (MethodPageScreenshotToFileResult__ArtifactContainer | null);
4132
+ "mimeType": string;
4133
+ "path": string;
4134
+ [key: string]: unknown;
4135
+ };
4136
+ export type MethodPageScreenshotToFileResult__ArtifactContainer = ("mp4" & string);
4137
+ export type MethodPageSelectParams = {
4138
+ "inputMode"?: MethodPageSelectParams__InputMode;
4139
+ "operation_id": string;
4140
+ "options"?: MethodPageSelectParams__ActionOptions;
4141
+ "pageId": string;
4142
+ "selector": string;
4143
+ "value": string;
4144
+ [key: string]: unknown;
4145
+ };
4146
+ export type MethodPageSelectParams__ActionOptions = {
4147
+ "destination"?: MethodPageSelectParams__Destination;
4148
+ "expect"?: (MethodPageSelectParams__Expectation | null);
4149
+ "timeout_ms"?: number;
4150
+ "wait_for_target"?: boolean;
4151
+ [key: string]: unknown;
4152
+ };
4153
+ export type MethodPageSelectParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
4167
+ "kind": ("download_started" & string);
4168
+ [key: string]: unknown;
4169
+ } | {
4170
+ "kind": ("focused" & string);
4171
+ "target": MethodPageSelectParams__LocatorSpec;
4172
+ [key: string]: unknown;
4173
+ } | {
4174
+ "contains"?: boolean;
4175
+ "kind": ("url" & string);
4176
+ "value": string;
4177
+ [key: string]: unknown;
4178
+ } | {
4179
+ "kind": ("visible" & string);
4180
+ "target": MethodPageSelectParams__LocatorSpec;
4181
+ [key: string]: unknown;
4182
+ } | {
4183
+ "kind": ("hidden" & string);
4184
+ "target": MethodPageSelectParams__LocatorSpec;
4185
+ [key: string]: unknown;
4186
+ } | {
4187
+ "contains"?: boolean;
4188
+ "kind": ("text" & string);
4189
+ "target": MethodPageSelectParams__LocatorSpec;
4190
+ "value": string;
4191
+ [key: string]: unknown;
4192
+ } | {
4193
+ "kind": ("value" & string);
4194
+ "target": MethodPageSelectParams__LocatorSpec;
4195
+ "value": string;
4196
+ [key: string]: unknown;
4197
+ } | {
4198
+ "checked": boolean;
4199
+ "kind": ("checked" & string);
4200
+ "target": MethodPageSelectParams__LocatorSpec;
4201
+ [key: string]: unknown;
4202
+ } | {
4203
+ "kind": ("selected" & string);
4204
+ "target": MethodPageSelectParams__LocatorSpec;
4205
+ "values": Array<string>;
4206
+ [key: string]: unknown;
4207
+ });
4208
+ export type MethodPageSelectParams__InputMode = (("sequential" & string) | ("bulk" & string));
4209
+ export type MethodPageSelectParams__LocatorQuery = ({
4210
+ "id": number;
4211
+ "kind": ("node" & string);
4212
+ [key: string]: unknown;
4213
+ } | {
4214
+ "kind": ("css" & string);
4215
+ "selector": string;
4216
+ [key: string]: unknown;
4217
+ } | {
4218
+ "exact"?: boolean;
4219
+ "kind": ("text" & string);
4220
+ "text": string;
4221
+ [key: string]: unknown;
4222
+ } | {
4223
+ "kind": ("placeholder" & string);
4224
+ "text": string;
4225
+ [key: string]: unknown;
4226
+ } | {
4227
+ "kind": ("role" & string);
4228
+ "role": string;
4229
+ [key: string]: unknown;
4230
+ } | {
4231
+ "id": number;
4232
+ "kind": ("backend_node" & string);
4233
+ [key: string]: unknown;
4234
+ });
4235
+ export type MethodPageSelectParams__LocatorSpec = {
4236
+ "frame_id"?: (string | null);
4237
+ "index"?: (number | null);
4238
+ "query": MethodPageSelectParams__LocatorQuery;
4239
+ [key: string]: unknown;
4240
+ };
4241
+ export type MethodPageSelectResult = {
4242
+ "action": string;
4243
+ "dispatch_intent": boolean;
4244
+ "error"?: (MethodPageSelectResult__ErrorDetail | null);
4245
+ "error_code"?: (string | null);
4246
+ "finished_at_ms"?: (number | null);
4247
+ "id": string;
4248
+ "outcome": MethodPageSelectResult__ActionOutcome;
4249
+ "preparation_intent": boolean;
4250
+ "receipt"?: (MethodPageSelectResult__ActionReceipt | null);
4251
+ "runtime_id": string;
4252
+ "started_at_ms": number;
4253
+ "state": MethodPageSelectResult__OperationState;
4254
+ "target_id": string;
4255
+ [key: string]: unknown;
4256
+ };
4257
+ export type MethodPageSelectResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
4258
+ export type MethodPageSelectResult__ActionReceipt = {
4259
+ "action": string;
4260
+ "already_satisfied": boolean;
4261
+ "cleanup_pending": boolean;
4262
+ "destination_target_id"?: (string | null);
4263
+ "dispatch": MethodPageSelectResult__DispatchState;
4264
+ "download_guid"?: (string | null);
4265
+ "elapsed_ms": number;
4266
+ "finished_at_ms": number;
4267
+ "outcome": MethodPageSelectResult__ActionOutcome;
4268
+ "preparation_may_have_executed": boolean;
4269
+ "started_at_ms": number;
4270
+ "target_id": string;
4271
+ "verification"?: (string | null);
4272
+ [key: string]: unknown;
4273
+ };
4274
+ export type MethodPageSelectResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
4304
+ export type MethodPageSetViewportParams = {
4305
+ "deviceScaleFactor"?: number;
4306
+ "height": number;
4307
+ "pageId": string;
4308
+ "width": number;
4309
+ [key: string]: unknown;
4310
+ };
4311
+ export type MethodPageSetViewportResult = Record<string, never>;
4312
+ export type MethodPageSolveCaptchaParams = {
4313
+ "apiDomain"?: (string | null);
4314
+ "apiKey": string;
4315
+ "callback"?: (string | null);
4316
+ "captchaMode": string;
4317
+ "captchaType": string;
4318
+ "enterprisePayload"?: unknown;
4319
+ "pageId": string;
4320
+ "websiteKey": string;
4321
+ "websiteURL": string;
4322
+ [key: string]: unknown;
4323
+ };
4324
+ export type MethodPageSolveCaptchaResult = {
4325
+ "injection": MethodPageSolveCaptchaResult__CaptchaInjection;
4326
+ [key: string]: unknown;
4327
+ };
4328
+ export type MethodPageSolveCaptchaResult__CaptchaInjection = {
4329
+ "callbacks": Array<string>;
4330
+ "created": Array<string>;
4331
+ "errors": Array<string>;
4332
+ "kind": string;
4333
+ "solverUserAgent"?: (string | null);
4334
+ "updated_count": number;
4335
+ [key: string]: unknown;
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
+ };
4347
+ export type MethodPageTextParams = {
4348
+ "pageId": string;
4349
+ [key: string]: unknown;
4350
+ };
4351
+ export type MethodPageTextResult = {
4352
+ "text": string;
4353
+ [key: string]: unknown;
4354
+ };
4355
+ export type MethodPageTitleParams = {
4356
+ "pageId": string;
4357
+ [key: string]: unknown;
4358
+ };
4359
+ export type MethodPageTitleResult = {
4360
+ "title": string;
4361
+ [key: string]: unknown;
4362
+ };
4363
+ export type MethodPageTypeIntoParams = {
4364
+ "inputMode"?: MethodPageTypeIntoParams__InputMode;
4365
+ "operation_id": string;
4366
+ "options"?: MethodPageTypeIntoParams__ActionOptions;
4367
+ "pageId": string;
4368
+ "selector": string;
4369
+ "text": string;
4370
+ [key: string]: unknown;
4371
+ };
4372
+ export type MethodPageTypeIntoParams__ActionOptions = {
4373
+ "destination"?: MethodPageTypeIntoParams__Destination;
4374
+ "expect"?: (MethodPageTypeIntoParams__Expectation | null);
4375
+ "timeout_ms"?: number;
4376
+ "wait_for_target"?: boolean;
4377
+ [key: string]: unknown;
4378
+ };
4379
+ export type MethodPageTypeIntoParams__Destination = (("current" & string) | ("new_tab" & string) | ("current_or_new" & string));
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
+ } | {
4393
+ "kind": ("download_started" & string);
4394
+ [key: string]: unknown;
4395
+ } | {
4396
+ "kind": ("focused" & string);
4397
+ "target": MethodPageTypeIntoParams__LocatorSpec;
4398
+ [key: string]: unknown;
4399
+ } | {
4400
+ "contains"?: boolean;
4401
+ "kind": ("url" & string);
4402
+ "value": string;
4403
+ [key: string]: unknown;
4404
+ } | {
4405
+ "kind": ("visible" & string);
4406
+ "target": MethodPageTypeIntoParams__LocatorSpec;
4407
+ [key: string]: unknown;
4408
+ } | {
4409
+ "kind": ("hidden" & string);
4410
+ "target": MethodPageTypeIntoParams__LocatorSpec;
4411
+ [key: string]: unknown;
4412
+ } | {
4413
+ "contains"?: boolean;
4414
+ "kind": ("text" & string);
4415
+ "target": MethodPageTypeIntoParams__LocatorSpec;
4416
+ "value": string;
4417
+ [key: string]: unknown;
4418
+ } | {
4419
+ "kind": ("value" & string);
4420
+ "target": MethodPageTypeIntoParams__LocatorSpec;
4421
+ "value": string;
4422
+ [key: string]: unknown;
4423
+ } | {
4424
+ "checked": boolean;
4425
+ "kind": ("checked" & string);
4426
+ "target": MethodPageTypeIntoParams__LocatorSpec;
4427
+ [key: string]: unknown;
4428
+ } | {
4429
+ "kind": ("selected" & string);
4430
+ "target": MethodPageTypeIntoParams__LocatorSpec;
4431
+ "values": Array<string>;
4432
+ [key: string]: unknown;
4433
+ });
4434
+ export type MethodPageTypeIntoParams__InputMode = (("sequential" & string) | ("bulk" & string));
4435
+ export type MethodPageTypeIntoParams__LocatorQuery = ({
4436
+ "id": number;
4437
+ "kind": ("node" & string);
4438
+ [key: string]: unknown;
4439
+ } | {
4440
+ "kind": ("css" & string);
4441
+ "selector": string;
4442
+ [key: string]: unknown;
4443
+ } | {
4444
+ "exact"?: boolean;
4445
+ "kind": ("text" & string);
4446
+ "text": string;
4447
+ [key: string]: unknown;
4448
+ } | {
4449
+ "kind": ("placeholder" & string);
4450
+ "text": string;
4451
+ [key: string]: unknown;
4452
+ } | {
4453
+ "kind": ("role" & string);
4454
+ "role": string;
4455
+ [key: string]: unknown;
4456
+ } | {
4457
+ "id": number;
4458
+ "kind": ("backend_node" & string);
4459
+ [key: string]: unknown;
4460
+ });
4461
+ export type MethodPageTypeIntoParams__LocatorSpec = {
4462
+ "frame_id"?: (string | null);
4463
+ "index"?: (number | null);
4464
+ "query": MethodPageTypeIntoParams__LocatorQuery;
4465
+ [key: string]: unknown;
4466
+ };
4467
+ export type MethodPageTypeIntoResult = {
4468
+ "action": string;
4469
+ "dispatch_intent": boolean;
4470
+ "error"?: (MethodPageTypeIntoResult__ErrorDetail | null);
4471
+ "error_code"?: (string | null);
4472
+ "finished_at_ms"?: (number | null);
4473
+ "id": string;
4474
+ "outcome": MethodPageTypeIntoResult__ActionOutcome;
4475
+ "preparation_intent": boolean;
4476
+ "receipt"?: (MethodPageTypeIntoResult__ActionReceipt | null);
4477
+ "runtime_id": string;
4478
+ "started_at_ms": number;
4479
+ "state": MethodPageTypeIntoResult__OperationState;
4480
+ "target_id": string;
4481
+ [key: string]: unknown;
4482
+ };
4483
+ export type MethodPageTypeIntoResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
4484
+ export type MethodPageTypeIntoResult__ActionReceipt = {
4485
+ "action": string;
4486
+ "already_satisfied": boolean;
4487
+ "cleanup_pending": boolean;
4488
+ "destination_target_id"?: (string | null);
4489
+ "dispatch": MethodPageTypeIntoResult__DispatchState;
4490
+ "download_guid"?: (string | null);
4491
+ "elapsed_ms": number;
4492
+ "finished_at_ms": number;
4493
+ "outcome": MethodPageTypeIntoResult__ActionOutcome;
4494
+ "preparation_may_have_executed": boolean;
4495
+ "started_at_ms": number;
4496
+ "target_id": string;
4497
+ "verification"?: (string | null);
4498
+ [key: string]: unknown;
4499
+ };
4500
+ export type MethodPageTypeIntoResult__ActionStatus = (("not_attempted" | "may_have_executed") & string);
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
+ };
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
+ };
4530
+ export type MethodPageUrlParams = {
4531
+ "pageId": string;
4532
+ [key: string]: unknown;
4533
+ };
4534
+ export type MethodPageUrlResult = {
4535
+ "url": string;
4536
+ [key: string]: unknown;
4537
+ };
4538
+ export type MethodPageWaitForParams = {
4539
+ "pageId": string;
4540
+ "selector": string;
4541
+ "timeoutMs": number;
4542
+ [key: string]: unknown;
4543
+ };
4544
+ export type MethodPageWaitForResult = Record<string, never>;
4545
+ export type MethodPageWaitForTextParams = {
4546
+ "pageId": string;
4547
+ "text": string;
4548
+ "timeoutMs": number;
4549
+ [key: string]: unknown;
4550
+ };
4551
+ export type MethodPageWaitForTextResult = Record<string, never>;
4552
+ export type MethodPageWaitForVisibleParams = {
4553
+ "pageId": string;
4554
+ "selector": string;
4555
+ "timeoutMs": number;
4556
+ [key: string]: unknown;
4557
+ };
4558
+ export type MethodPageWaitForVisibleResult = Record<string, never>;
4559
+ export type MethodRecordingCancelParams = {
4560
+ "recordingId": string;
4561
+ [key: string]: unknown;
4562
+ };
4563
+ export type MethodRecordingCancelResult = {
4564
+ "artifact"?: (MethodRecordingCancelResult__Artifact | null);
4565
+ "failure"?: (MethodRecordingCancelResult__RecordingFailure | null);
4566
+ "pageId": string;
4567
+ "path": string;
4568
+ "recordingId": string;
4569
+ "state": MethodRecordingCancelResult__RecordingState;
4570
+ [key: string]: unknown;
4571
+ };
4572
+ export type MethodRecordingCancelResult__Artifact = {
4573
+ "bytes": number;
4574
+ "container"?: (MethodRecordingCancelResult__ArtifactContainer | null);
4575
+ "mimeType": string;
4576
+ "path": string;
4577
+ [key: string]: unknown;
4578
+ };
4579
+ export type MethodRecordingCancelResult__ArtifactContainer = ("mp4" & string);
4580
+ export type MethodRecordingCancelResult__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);
4581
+ export type MethodRecordingCancelResult__RecordingFailure = {
4582
+ "cleanupUncertain"?: (boolean | null);
4583
+ "code": MethodRecordingCancelResult__ErrorCode;
4584
+ "message": string;
4585
+ "partialPath"?: (string | null);
4586
+ "stage": MethodRecordingCancelResult__RecordingFailureStage;
4587
+ [key: string]: unknown;
4588
+ };
4589
+ export type MethodRecordingCancelResult__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
4590
+ export type MethodRecordingCancelResult__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
4591
+ export type MethodRecordingGetParams = {
4592
+ "recordingId": string;
4593
+ [key: string]: unknown;
4594
+ };
4595
+ export type MethodRecordingGetResult = {
4596
+ "artifact"?: (MethodRecordingGetResult__Artifact | null);
4597
+ "failure"?: (MethodRecordingGetResult__RecordingFailure | null);
4598
+ "pageId": string;
4599
+ "path": string;
4600
+ "recordingId": string;
4601
+ "state": MethodRecordingGetResult__RecordingState;
4602
+ [key: string]: unknown;
4603
+ };
4604
+ export type MethodRecordingGetResult__Artifact = {
4605
+ "bytes": number;
4606
+ "container"?: (MethodRecordingGetResult__ArtifactContainer | null);
4607
+ "mimeType": string;
4608
+ "path": string;
4609
+ [key: string]: unknown;
4610
+ };
4611
+ export type MethodRecordingGetResult__ArtifactContainer = ("mp4" & string);
4612
+ export type MethodRecordingGetResult__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);
4613
+ export type MethodRecordingGetResult__RecordingFailure = {
4614
+ "cleanupUncertain"?: (boolean | null);
4615
+ "code": MethodRecordingGetResult__ErrorCode;
4616
+ "message": string;
4617
+ "partialPath"?: (string | null);
4618
+ "stage": MethodRecordingGetResult__RecordingFailureStage;
4619
+ [key: string]: unknown;
4620
+ };
4621
+ export type MethodRecordingGetResult__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
4622
+ export type MethodRecordingGetResult__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
4623
+ export type MethodRecordingStartParams = {
4624
+ "fps"?: (number | null);
4625
+ "maxHeight"?: (number | null);
4626
+ "maxWidth"?: (number | null);
4627
+ "pageId": string;
4628
+ "path": string;
4629
+ "recordingId": string;
4630
+ };
4631
+ export type MethodRecordingStartResult = {
4632
+ "artifact"?: (MethodRecordingStartResult__Artifact | null);
4633
+ "failure"?: (MethodRecordingStartResult__RecordingFailure | null);
4634
+ "pageId": string;
4635
+ "path": string;
4636
+ "recordingId": string;
4637
+ "state": MethodRecordingStartResult__RecordingState;
4638
+ [key: string]: unknown;
4639
+ };
4640
+ export type MethodRecordingStartResult__Artifact = {
4641
+ "bytes": number;
4642
+ "container"?: (MethodRecordingStartResult__ArtifactContainer | null);
4643
+ "mimeType": string;
4644
+ "path": string;
4645
+ [key: string]: unknown;
4646
+ };
4647
+ export type MethodRecordingStartResult__ArtifactContainer = ("mp4" & string);
4648
+ export type MethodRecordingStartResult__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);
4649
+ export type MethodRecordingStartResult__RecordingFailure = {
4650
+ "cleanupUncertain"?: (boolean | null);
4651
+ "code": MethodRecordingStartResult__ErrorCode;
4652
+ "message": string;
4653
+ "partialPath"?: (string | null);
4654
+ "stage": MethodRecordingStartResult__RecordingFailureStage;
4655
+ [key: string]: unknown;
4656
+ };
4657
+ export type MethodRecordingStartResult__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
4658
+ export type MethodRecordingStartResult__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
4659
+ export type MethodRecordingStopParams = {
4660
+ "recordingId": string;
4661
+ [key: string]: unknown;
4662
+ };
4663
+ export type MethodRecordingStopResult = {
4664
+ "artifact"?: (MethodRecordingStopResult__Artifact | null);
4665
+ "failure"?: (MethodRecordingStopResult__RecordingFailure | null);
4666
+ "pageId": string;
4667
+ "path": string;
4668
+ "recordingId": string;
4669
+ "state": MethodRecordingStopResult__RecordingState;
4670
+ [key: string]: unknown;
4671
+ };
4672
+ export type MethodRecordingStopResult__Artifact = {
4673
+ "bytes": number;
4674
+ "container"?: (MethodRecordingStopResult__ArtifactContainer | null);
4675
+ "mimeType": string;
4676
+ "path": string;
4677
+ [key: string]: unknown;
4678
+ };
4679
+ export type MethodRecordingStopResult__ArtifactContainer = ("mp4" & string);
4680
+ export type MethodRecordingStopResult__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);
4681
+ export type MethodRecordingStopResult__RecordingFailure = {
4682
+ "cleanupUncertain"?: (boolean | null);
4683
+ "code": MethodRecordingStopResult__ErrorCode;
4684
+ "message": string;
4685
+ "partialPath"?: (string | null);
4686
+ "stage": MethodRecordingStopResult__RecordingFailureStage;
4687
+ [key: string]: unknown;
4688
+ };
4689
+ export type MethodRecordingStopResult__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
4690
+ export type MethodRecordingStopResult__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
4691
+ export type MethodServerHelloParams = {
4692
+ "protocol": MethodServerHelloParams__ProtocolVersion;
4693
+ [key: string]: unknown;
4694
+ };
4695
+ export type MethodServerHelloParams__ProtocolVersion = {
4696
+ "major": number;
4697
+ "minor": number;
4698
+ [key: string]: unknown;
4699
+ };
4700
+ export type MethodServerHelloResult = {
4701
+ "capabilities": Array<string>;
4702
+ "coreVersion": string;
4703
+ "limits": MethodServerHelloResult__TransportLimits;
4704
+ "methods": Array<string>;
4705
+ "protocol": MethodServerHelloResult__ProtocolVersion;
4706
+ "serverVersion": string;
4707
+ [key: string]: unknown;
4708
+ };
4709
+ export type MethodServerHelloResult__ProtocolVersion = {
4710
+ "major": number;
4711
+ "minor": number;
4712
+ [key: string]: unknown;
4713
+ };
4714
+ export type MethodServerHelloResult__TransportLimits = {
4715
+ "maxInFlight": number;
4716
+ "maxMessageBytes": number;
4717
+ [key: string]: unknown;
4718
+ };
4719
+ export type MethodServerShutdownParams = Record<string, never>;
4720
+ export type MethodServerShutdownResult = Record<string, never>;
4721
+ export type MethodParams = {
4722
+ "actions.perform": MethodActionsPerformParams;
4723
+ "agent.observe": MethodAgentObserveParams;
4724
+ "agent.step": MethodAgentStepParams;
4725
+ "browser.close": MethodBrowserCloseParams;
4726
+ "browser.close_tab": MethodBrowserCloseTabParams;
4727
+ "browser.connect": MethodBrowserConnectParams;
4728
+ "browser.launch": MethodBrowserLaunchParams;
4729
+ "browser.new_page": MethodBrowserNewPageParams;
4730
+ "browser.tabs": MethodBrowserTabsParams;
4731
+ "operations.cancel": MethodOperationsCancelParams;
4732
+ "operations.get": MethodOperationsGetParams;
4733
+ "operations.list": MethodOperationsListParams;
4734
+ "operations.wait": MethodOperationsWaitParams;
4735
+ "page.capture_state": MethodPageCaptureStateParams;
4736
+ "page.click": MethodPageClickParams;
4737
+ "page.click_shadow": MethodPageClickShadowParams;
4738
+ "page.click_text": MethodPageClickTextParams;
4739
+ "page.close": MethodPageCloseParams;
4740
+ "page.content": MethodPageContentParams;
4741
+ "page.evaluate": MethodPageEvaluateParams;
4742
+ "page.evaluate_in_frame": MethodPageEvaluateInFrameParams;
4743
+ "page.evaluate_raw": MethodPageEvaluateRawParams;
4744
+ "page.execute": MethodPageExecuteParams;
4745
+ "page.execute_raw": MethodPageExecuteRawParams;
4746
+ "page.exists": MethodPageExistsParams;
4747
+ "page.fetch": MethodPageFetchParams;
4748
+ "page.fetch_bounded": MethodPageFetchBoundedParams;
4749
+ "page.fill": MethodPageFillParams;
4750
+ "page.frames": MethodPageFramesParams;
4751
+ "page.get_attribute": MethodPageGetAttributeParams;
4752
+ "page.get_text": MethodPageGetTextParams;
4753
+ "page.goto": MethodPageGotoParams;
4754
+ "page.hover": MethodPageHoverParams;
4755
+ "page.human_click": MethodPageHumanClickParams;
4756
+ "page.human_click_text": MethodPageHumanClickTextParams;
4757
+ "page.human_fill": MethodPageHumanFillParams;
4758
+ "page.key_down": MethodPageKeyDownParams;
4759
+ "page.key_up": MethodPageKeyUpParams;
4760
+ "page.mouse_down": MethodPageMouseDownParams;
4761
+ "page.mouse_move": MethodPageMouseMoveParams;
4762
+ "page.mouse_up": MethodPageMouseUpParams;
4763
+ "page.press_key": MethodPagePressKeyParams;
4764
+ "page.release_all_inputs": MethodPageReleaseAllInputsParams;
4765
+ "page.reset_viewport": MethodPageResetViewportParams;
4766
+ "page.restore_state": MethodPageRestoreStateParams;
4767
+ "page.screenshot": MethodPageScreenshotParams;
4768
+ "page.screenshot_to_file": MethodPageScreenshotToFileParams;
4769
+ "page.select": MethodPageSelectParams;
4770
+ "page.set_viewport": MethodPageSetViewportParams;
4771
+ "page.solve_captcha": MethodPageSolveCaptchaParams;
4772
+ "page.solve_turnstile": MethodPageSolveTurnstileParams;
4773
+ "page.text": MethodPageTextParams;
4774
+ "page.title": MethodPageTitleParams;
4775
+ "page.type_into": MethodPageTypeIntoParams;
4776
+ "page.url": MethodPageUrlParams;
4777
+ "page.wait_for": MethodPageWaitForParams;
4778
+ "page.wait_for_text": MethodPageWaitForTextParams;
4779
+ "page.wait_for_visible": MethodPageWaitForVisibleParams;
4780
+ "recording.cancel": MethodRecordingCancelParams;
4781
+ "recording.get": MethodRecordingGetParams;
4782
+ "recording.start": MethodRecordingStartParams;
4783
+ "recording.stop": MethodRecordingStopParams;
4784
+ "server.hello": MethodServerHelloParams;
4785
+ "server.shutdown": MethodServerShutdownParams;
4786
+ };
4787
+ export type MethodResults = {
4788
+ "actions.perform": MethodActionsPerformResult;
4789
+ "agent.observe": MethodAgentObserveResult;
4790
+ "agent.step": MethodAgentStepResult;
4791
+ "browser.close": MethodBrowserCloseResult;
4792
+ "browser.close_tab": MethodBrowserCloseTabResult;
4793
+ "browser.connect": MethodBrowserConnectResult;
4794
+ "browser.launch": MethodBrowserLaunchResult;
4795
+ "browser.new_page": MethodBrowserNewPageResult;
4796
+ "browser.tabs": MethodBrowserTabsResult;
4797
+ "operations.cancel": MethodOperationsCancelResult;
4798
+ "operations.get": MethodOperationsGetResult;
4799
+ "operations.list": MethodOperationsListResult;
4800
+ "operations.wait": MethodOperationsWaitResult;
4801
+ "page.capture_state": MethodPageCaptureStateResult;
4802
+ "page.click": MethodPageClickResult;
4803
+ "page.click_shadow": MethodPageClickShadowResult;
4804
+ "page.click_text": MethodPageClickTextResult;
4805
+ "page.close": MethodPageCloseResult;
4806
+ "page.content": MethodPageContentResult;
4807
+ "page.evaluate": MethodPageEvaluateResult;
4808
+ "page.evaluate_in_frame": MethodPageEvaluateInFrameResult;
4809
+ "page.evaluate_raw": MethodPageEvaluateRawResult;
4810
+ "page.execute": MethodPageExecuteResult;
4811
+ "page.execute_raw": MethodPageExecuteRawResult;
4812
+ "page.exists": MethodPageExistsResult;
4813
+ "page.fetch": MethodPageFetchResult;
4814
+ "page.fetch_bounded": MethodPageFetchBoundedResult;
4815
+ "page.fill": MethodPageFillResult;
4816
+ "page.frames": MethodPageFramesResult;
4817
+ "page.get_attribute": MethodPageGetAttributeResult;
4818
+ "page.get_text": MethodPageGetTextResult;
4819
+ "page.goto": MethodPageGotoResult;
4820
+ "page.hover": MethodPageHoverResult;
4821
+ "page.human_click": MethodPageHumanClickResult;
4822
+ "page.human_click_text": MethodPageHumanClickTextResult;
4823
+ "page.human_fill": MethodPageHumanFillResult;
4824
+ "page.key_down": MethodPageKeyDownResult;
4825
+ "page.key_up": MethodPageKeyUpResult;
4826
+ "page.mouse_down": MethodPageMouseDownResult;
4827
+ "page.mouse_move": MethodPageMouseMoveResult;
4828
+ "page.mouse_up": MethodPageMouseUpResult;
4829
+ "page.press_key": MethodPagePressKeyResult;
4830
+ "page.release_all_inputs": MethodPageReleaseAllInputsResult;
4831
+ "page.reset_viewport": MethodPageResetViewportResult;
4832
+ "page.restore_state": MethodPageRestoreStateResult;
4833
+ "page.screenshot": MethodPageScreenshotResult;
4834
+ "page.screenshot_to_file": MethodPageScreenshotToFileResult;
4835
+ "page.select": MethodPageSelectResult;
4836
+ "page.set_viewport": MethodPageSetViewportResult;
4837
+ "page.solve_captcha": MethodPageSolveCaptchaResult;
4838
+ "page.solve_turnstile": MethodPageSolveTurnstileResult;
4839
+ "page.text": MethodPageTextResult;
4840
+ "page.title": MethodPageTitleResult;
4841
+ "page.type_into": MethodPageTypeIntoResult;
4842
+ "page.url": MethodPageUrlResult;
4843
+ "page.wait_for": MethodPageWaitForResult;
4844
+ "page.wait_for_text": MethodPageWaitForTextResult;
4845
+ "page.wait_for_visible": MethodPageWaitForVisibleResult;
4846
+ "recording.cancel": MethodRecordingCancelResult;
4847
+ "recording.get": MethodRecordingGetResult;
4848
+ "recording.start": MethodRecordingStartResult;
4849
+ "recording.stop": MethodRecordingStopResult;
4850
+ "server.hello": MethodServerHelloResult;
4851
+ "server.shutdown": MethodServerShutdownResult;
4852
+ };
4853
+ export type MethodName = keyof MethodParams;
4854
+ export type ProtocolRequest<M extends MethodName = MethodName> = {
4855
+ [K in M]: {
4856
+ id: number;
4857
+ method: K;
4858
+ params: MethodParams[K];
4859
+ };
4860
+ }[M];
4861
+ export type ProtocolSuccessResponse<M extends MethodName = MethodName> = {
4862
+ [K in M]: {
4863
+ id: number;
4864
+ result: MethodResults[K];
4865
+ error?: never;
4866
+ };
4867
+ }[M];
4868
+ export type ProtocolErrorResponse = {
4869
+ id: number | null;
4870
+ error: ServerError;
4871
+ result?: never;
4872
+ };
4873
+ export type ProtocolResponse<M extends MethodName = MethodName> = ProtocolSuccessResponse<M> | ProtocolErrorResponse;
4874
+ export declare const protocolVersion: {
4875
+ readonly major: 2;
4876
+ readonly minor: 0;
4877
+ };
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"];