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

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 (46) hide show
  1. package/README.md +577 -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 +59 -0
  14. package/dist/browser.js +445 -0
  15. package/dist/client.d.ts +11 -0
  16. package/dist/client.js +1 -0
  17. package/dist/errors.d.ts +33 -0
  18. package/dist/errors.js +44 -0
  19. package/dist/generated/protocol.d.ts +3929 -0
  20. package/dist/generated/protocol.js +2 -0
  21. package/dist/generated/schema-bundle.json +18964 -0
  22. package/dist/index.d.ts +21 -0
  23. package/dist/index.js +11 -0
  24. package/dist/install-errors.d.ts +4 -0
  25. package/dist/install-errors.js +6 -0
  26. package/dist/operations.d.ts +22 -0
  27. package/dist/operations.js +87 -0
  28. package/dist/page.d.ts +77 -0
  29. package/dist/page.js +250 -0
  30. package/dist/platform.d.ts +4 -0
  31. package/dist/platform.js +27 -0
  32. package/dist/recording.d.ts +27 -0
  33. package/dist/recording.js +124 -0
  34. package/dist/release-manifest.json +101 -0
  35. package/dist/release.d.ts +36 -0
  36. package/dist/release.js +76 -0
  37. package/dist/server-binary.d.ts +11 -0
  38. package/dist/server-binary.js +107 -0
  39. package/dist/transport.d.ts +89 -0
  40. package/dist/transport.js +737 -0
  41. package/examples/capture.mjs +36 -0
  42. package/examples/consume-schema.mjs +7 -0
  43. package/examples/explicit-paths.mjs +42 -0
  44. package/examples/install-browser.mjs +20 -0
  45. package/examples/offline.mjs +20 -0
  46. package/package.json +70 -4
@@ -0,0 +1,3929 @@
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
+ "human"?: boolean;
38
+ "kind": ("fill" & string);
39
+ "target": Action__LocatorSpec;
40
+ "value": string;
41
+ [key: string]: unknown;
42
+ } | {
43
+ "human"?: boolean;
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__LocatorQuery = ({
95
+ "id": number;
96
+ "kind": ("node" & string);
97
+ [key: string]: unknown;
98
+ } | {
99
+ "kind": ("css" & string);
100
+ "selector": string;
101
+ [key: string]: unknown;
102
+ } | {
103
+ "exact"?: boolean;
104
+ "kind": ("text" & string);
105
+ "text": string;
106
+ [key: string]: unknown;
107
+ } | {
108
+ "kind": ("placeholder" & string);
109
+ "text": string;
110
+ [key: string]: unknown;
111
+ } | {
112
+ "kind": ("role" & string);
113
+ "role": string;
114
+ [key: string]: unknown;
115
+ } | {
116
+ "id": number;
117
+ "kind": ("backend_node" & string);
118
+ [key: string]: unknown;
119
+ });
120
+ export type Action__LocatorSpec = {
121
+ "frame_id"?: (string | null);
122
+ "index"?: (number | null);
123
+ "query": Action__LocatorQuery;
124
+ [key: string]: unknown;
125
+ };
126
+ export type ActionOptions = {
127
+ "expect"?: (ActionOptions__Expectation | null);
128
+ "timeout_ms"?: number;
129
+ "wait_for_target"?: boolean;
130
+ [key: string]: unknown;
131
+ };
132
+ export type ActionOptions__Expectation = ({
133
+ "kind": ("download_started" & string);
134
+ [key: string]: unknown;
135
+ } | {
136
+ "kind": ("focused" & string);
137
+ "target": ActionOptions__LocatorSpec;
138
+ [key: string]: unknown;
139
+ } | {
140
+ "contains"?: boolean;
141
+ "kind": ("url" & string);
142
+ "value": string;
143
+ [key: string]: unknown;
144
+ } | {
145
+ "kind": ("visible" & string);
146
+ "target": ActionOptions__LocatorSpec;
147
+ [key: string]: unknown;
148
+ } | {
149
+ "kind": ("hidden" & string);
150
+ "target": ActionOptions__LocatorSpec;
151
+ [key: string]: unknown;
152
+ } | {
153
+ "contains"?: boolean;
154
+ "kind": ("text" & string);
155
+ "target": ActionOptions__LocatorSpec;
156
+ "value": string;
157
+ [key: string]: unknown;
158
+ } | {
159
+ "kind": ("value" & string);
160
+ "target": ActionOptions__LocatorSpec;
161
+ "value": string;
162
+ [key: string]: unknown;
163
+ } | {
164
+ "checked": boolean;
165
+ "kind": ("checked" & string);
166
+ "target": ActionOptions__LocatorSpec;
167
+ [key: string]: unknown;
168
+ } | {
169
+ "kind": ("selected" & string);
170
+ "target": ActionOptions__LocatorSpec;
171
+ "values": Array<string>;
172
+ [key: string]: unknown;
173
+ });
174
+ export type ActionOptions__LocatorQuery = ({
175
+ "id": number;
176
+ "kind": ("node" & string);
177
+ [key: string]: unknown;
178
+ } | {
179
+ "kind": ("css" & string);
180
+ "selector": string;
181
+ [key: string]: unknown;
182
+ } | {
183
+ "exact"?: boolean;
184
+ "kind": ("text" & string);
185
+ "text": string;
186
+ [key: string]: unknown;
187
+ } | {
188
+ "kind": ("placeholder" & string);
189
+ "text": string;
190
+ [key: string]: unknown;
191
+ } | {
192
+ "kind": ("role" & string);
193
+ "role": string;
194
+ [key: string]: unknown;
195
+ } | {
196
+ "id": number;
197
+ "kind": ("backend_node" & string);
198
+ [key: string]: unknown;
199
+ });
200
+ export type ActionOptions__LocatorSpec = {
201
+ "frame_id"?: (string | null);
202
+ "index"?: (number | null);
203
+ "query": ActionOptions__LocatorQuery;
204
+ [key: string]: unknown;
205
+ };
206
+ export type ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
207
+ export type ActionReceipt = {
208
+ "action": string;
209
+ "already_satisfied": boolean;
210
+ "cleanup_pending": boolean;
211
+ "dispatch": ActionReceipt__DispatchState;
212
+ "download_guid"?: (string | null);
213
+ "elapsed_ms": number;
214
+ "finished_at_ms": number;
215
+ "outcome": ActionReceipt__ActionOutcome;
216
+ "preparation_may_have_executed": boolean;
217
+ "started_at_ms": number;
218
+ "target_id": string;
219
+ "verification"?: (string | null);
220
+ [key: string]: unknown;
221
+ };
222
+ export type ActionReceipt__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
223
+ export type ActionReceipt__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
224
+ export type AgentAction = (({
225
+ "kind": ("click" & string);
226
+ "target": string;
227
+ } & {
228
+ "text"?: never;
229
+ "value"?: never;
230
+ "key"?: never;
231
+ "url"?: never;
232
+ }) | ({
233
+ "kind": ("fill" & string);
234
+ "target": string;
235
+ "text": string;
236
+ } & {
237
+ "value"?: never;
238
+ "key"?: never;
239
+ "url"?: never;
240
+ }) | ({
241
+ "kind": ("type" & string);
242
+ "target": string;
243
+ "text": string;
244
+ } & {
245
+ "value"?: never;
246
+ "key"?: never;
247
+ "url"?: never;
248
+ }) | ({
249
+ "kind": ("select" & string);
250
+ "target": string;
251
+ "value": string;
252
+ } & {
253
+ "text"?: never;
254
+ "key"?: never;
255
+ "url"?: never;
256
+ }) | ({
257
+ "kind": ("hover" & string);
258
+ "target": string;
259
+ } & {
260
+ "text"?: never;
261
+ "value"?: never;
262
+ "key"?: never;
263
+ "url"?: never;
264
+ }) | ({
265
+ "kind": ("scroll_into_view" & string);
266
+ "target": string;
267
+ } & {
268
+ "text"?: never;
269
+ "value"?: never;
270
+ "key"?: never;
271
+ "url"?: never;
272
+ }) | ({
273
+ "key": string;
274
+ "kind": ("press_key" & string);
275
+ } & {
276
+ "target"?: never;
277
+ "text"?: never;
278
+ "value"?: never;
279
+ "url"?: never;
280
+ }) | ({
281
+ "kind": ("navigate" & string);
282
+ "url": string;
283
+ } & {
284
+ "target"?: never;
285
+ "text"?: never;
286
+ "value"?: never;
287
+ "key"?: never;
288
+ }) | ({
289
+ "kind": ("back" & string);
290
+ } & {
291
+ "target"?: never;
292
+ "text"?: never;
293
+ "value"?: never;
294
+ "key"?: never;
295
+ "url"?: never;
296
+ }) | ({
297
+ "kind": ("forward" & string);
298
+ } & {
299
+ "target"?: never;
300
+ "text"?: never;
301
+ "value"?: never;
302
+ "key"?: never;
303
+ "url"?: never;
304
+ }));
305
+ export type AgentMode = (("explore" | "verify") & string);
306
+ export type AgentObservation = {
307
+ "controls": Array<AgentObservation__AgentControl>;
308
+ "observation_id": string;
309
+ "page"?: (AgentObservation__PageContext | null);
310
+ "tab_id": string;
311
+ "tabs": Array<AgentObservation__AgentTab>;
312
+ "truncated": boolean;
313
+ "warnings": Array<string>;
314
+ [key: string]: unknown;
315
+ };
316
+ export type AgentObservation__AgentControl = {
317
+ "checked"?: (boolean | null);
318
+ "disabled": boolean;
319
+ "expanded"?: (boolean | null);
320
+ "name": string;
321
+ "role": string;
322
+ "target": string;
323
+ [key: string]: unknown;
324
+ };
325
+ export type AgentObservation__AgentTab = {
326
+ "id": string;
327
+ "selected": boolean;
328
+ "title": string;
329
+ "url": string;
330
+ [key: string]: unknown;
331
+ };
332
+ export type AgentObservation__PageContext = {
333
+ "headings": Array<string>;
334
+ "messages": Array<string>;
335
+ "ready_state": string;
336
+ "tab_id": string;
337
+ "text_excerpt": string;
338
+ "title": string;
339
+ "truncated": boolean;
340
+ "url": string;
341
+ [key: string]: unknown;
342
+ };
343
+ export type AgentStepResult = {
344
+ "observation"?: (AgentStepResult__AgentObservation | null);
345
+ "observation_error"?: (string | null);
346
+ "operation"?: (AgentStepResult__OperationRecord | null);
347
+ "operation_error"?: (string | null);
348
+ "operation_id": string;
349
+ [key: string]: unknown;
350
+ };
351
+ export type AgentStepResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
352
+ export type AgentStepResult__ActionReceipt = {
353
+ "action": string;
354
+ "already_satisfied": boolean;
355
+ "cleanup_pending": boolean;
356
+ "dispatch": AgentStepResult__DispatchState;
357
+ "download_guid"?: (string | null);
358
+ "elapsed_ms": number;
359
+ "finished_at_ms": number;
360
+ "outcome": AgentStepResult__ActionOutcome;
361
+ "preparation_may_have_executed": boolean;
362
+ "started_at_ms": number;
363
+ "target_id": string;
364
+ "verification"?: (string | null);
365
+ [key: string]: unknown;
366
+ };
367
+ export type AgentStepResult__AgentControl = {
368
+ "checked"?: (boolean | null);
369
+ "disabled": boolean;
370
+ "expanded"?: (boolean | null);
371
+ "name": string;
372
+ "role": string;
373
+ "target": string;
374
+ [key: string]: unknown;
375
+ };
376
+ export type AgentStepResult__AgentObservation = {
377
+ "controls": Array<AgentStepResult__AgentControl>;
378
+ "observation_id": string;
379
+ "page"?: (AgentStepResult__PageContext | null);
380
+ "tab_id": string;
381
+ "tabs": Array<AgentStepResult__AgentTab>;
382
+ "truncated": boolean;
383
+ "warnings": Array<string>;
384
+ [key: string]: unknown;
385
+ };
386
+ export type AgentStepResult__AgentTab = {
387
+ "id": string;
388
+ "selected": boolean;
389
+ "title": string;
390
+ "url": string;
391
+ [key: string]: unknown;
392
+ };
393
+ export type AgentStepResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
394
+ export type AgentStepResult__OperationRecord = {
395
+ "action": string;
396
+ "dispatch_intent": boolean;
397
+ "error_code"?: (string | null);
398
+ "finished_at_ms"?: (number | null);
399
+ "id": string;
400
+ "outcome": AgentStepResult__ActionOutcome;
401
+ "preparation_intent": boolean;
402
+ "receipt"?: (AgentStepResult__ActionReceipt | null);
403
+ "runtime_id": string;
404
+ "started_at_ms": number;
405
+ "state": AgentStepResult__OperationState;
406
+ "target_id": string;
407
+ [key: string]: unknown;
408
+ };
409
+ export type AgentStepResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
410
+ export type AgentStepResult__PageContext = {
411
+ "headings": Array<string>;
412
+ "messages": Array<string>;
413
+ "ready_state": string;
414
+ "tab_id": string;
415
+ "text_excerpt": string;
416
+ "title": string;
417
+ "truncated": boolean;
418
+ "url": string;
419
+ [key: string]: unknown;
420
+ };
421
+ export type Artifact = {
422
+ "bytes": number;
423
+ "container"?: (Artifact__ArtifactContainer | null);
424
+ "mimeType": string;
425
+ "path": string;
426
+ [key: string]: unknown;
427
+ };
428
+ export type Artifact__ArtifactContainer = ("mp4" & string);
429
+ export type ArtifactContainer = ("mp4" & string);
430
+ export type BrowserState = {
431
+ "cookies": Array<BrowserState__SessionCookie>;
432
+ "localStorage"?: Record<string, string>;
433
+ "sessionStorage"?: Record<string, string>;
434
+ "url": string;
435
+ "userAgent": string;
436
+ [key: string]: unknown;
437
+ };
438
+ export type BrowserState__SessionCookie = {
439
+ "domain": string;
440
+ "expires"?: (number | null);
441
+ "http_only": boolean;
442
+ "name": string;
443
+ "path": string;
444
+ "same_site"?: (string | null);
445
+ "secure": boolean;
446
+ "value": string;
447
+ [key: string]: unknown;
448
+ };
449
+ export type CdpErrorDetail = {
450
+ "code"?: (number | null);
451
+ "message": string;
452
+ "method"?: (string | null);
453
+ [key: string]: unknown;
454
+ };
455
+ export type DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
456
+ export type ErrorCode = (("ElementNotFound" | "ElementNotVisible" | "Timeout" | "RetryExhausted" | "Cdp" | "InvalidPage" | "InvalidParams" | "UnknownMethod" | "Internal" | "ProtocolMismatch" | "MessageTooLarge" | "ServerBusy" | "ShuttingDown" | "Cancelled" | "Action" | "Operation" | "ScreenshotTooLarge" | "FileOutput" | "RecordingUnsupported" | "RecordingNotFound" | "RecordingConflict" | "RecordingAlreadyActive" | "RecordingInvalidState" | "RecordingFailed") & string);
457
+ export type ErrorData = {
458
+ "cdp"?: (ErrorData__CdpErrorDetail | null);
459
+ "detail"?: (ErrorData__ErrorDetail | null);
460
+ "operation_id"?: (string | null);
461
+ "partialPath"?: (string | null);
462
+ "path"?: (string | null);
463
+ "receipt"?: (ErrorData__ActionReceipt | null);
464
+ "recording"?: (ErrorData__RecordingRecord | null);
465
+ "recordingId"?: (string | null);
466
+ "source"?: (ErrorData__ServerError | null);
467
+ [key: string]: unknown;
468
+ };
469
+ export type ErrorData__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
470
+ export type ErrorData__ActionReceipt = {
471
+ "action": string;
472
+ "already_satisfied": boolean;
473
+ "cleanup_pending": boolean;
474
+ "dispatch": ErrorData__DispatchState;
475
+ "download_guid"?: (string | null);
476
+ "elapsed_ms": number;
477
+ "finished_at_ms": number;
478
+ "outcome": ErrorData__ActionOutcome;
479
+ "preparation_may_have_executed": boolean;
480
+ "started_at_ms": number;
481
+ "target_id": string;
482
+ "verification"?: (string | null);
483
+ [key: string]: unknown;
484
+ };
485
+ export type ErrorData__ActionStatus = (("not_attempted" | "may_have_executed") & string);
486
+ export type ErrorData__Artifact = {
487
+ "bytes": number;
488
+ "container"?: (ErrorData__ArtifactContainer | null);
489
+ "mimeType": string;
490
+ "path": string;
491
+ [key: string]: unknown;
492
+ };
493
+ export type ErrorData__ArtifactContainer = ("mp4" & string);
494
+ export type ErrorData__CdpErrorDetail = {
495
+ "code"?: (number | null);
496
+ "message": string;
497
+ "method"?: (string | null);
498
+ [key: string]: unknown;
499
+ };
500
+ export type ErrorData__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
501
+ 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);
502
+ export type ErrorData__ErrorContext = {
503
+ "action_status"?: (ErrorData__ActionStatus | null);
504
+ "download_id"?: (string | null);
505
+ "page"?: (ErrorData__PageContext | null);
506
+ [key: string]: unknown;
507
+ };
508
+ export type ErrorData__ErrorDetail = {
509
+ "code": string;
510
+ "context"?: (ErrorData__ErrorContext | null);
511
+ "hint"?: (string | null);
512
+ "message": string;
513
+ "retryable"?: (boolean | null);
514
+ [key: string]: unknown;
515
+ };
516
+ export type ErrorData__PageContext = {
517
+ "headings": Array<string>;
518
+ "messages": Array<string>;
519
+ "ready_state": string;
520
+ "tab_id": string;
521
+ "text_excerpt": string;
522
+ "title": string;
523
+ "truncated": boolean;
524
+ "url": string;
525
+ [key: string]: unknown;
526
+ };
527
+ export type ErrorData__RecordingFailure = {
528
+ "cleanupUncertain"?: (boolean | null);
529
+ "code": ErrorData__ErrorCode;
530
+ "message": string;
531
+ "partialPath"?: (string | null);
532
+ "stage": ErrorData__RecordingFailureStage;
533
+ [key: string]: unknown;
534
+ };
535
+ export type ErrorData__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
536
+ export type ErrorData__RecordingRecord = {
537
+ "artifact"?: (ErrorData__Artifact | null);
538
+ "failure"?: (ErrorData__RecordingFailure | null);
539
+ "pageId": string;
540
+ "path": string;
541
+ "recordingId": string;
542
+ "state": ErrorData__RecordingState;
543
+ [key: string]: unknown;
544
+ };
545
+ export type ErrorData__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
546
+ export type ErrorData__ServerError = {
547
+ "code": ErrorData__ErrorCode;
548
+ "data"?: (ErrorData | null);
549
+ "message": string;
550
+ [key: string]: unknown;
551
+ };
552
+ export type ErrorDetail = {
553
+ "code": string;
554
+ "context"?: (ErrorDetail__ErrorContext | null);
555
+ "hint"?: (string | null);
556
+ "message": string;
557
+ "retryable"?: (boolean | null);
558
+ [key: string]: unknown;
559
+ };
560
+ export type ErrorDetail__ActionStatus = (("not_attempted" | "may_have_executed") & string);
561
+ export type ErrorDetail__ErrorContext = {
562
+ "action_status"?: (ErrorDetail__ActionStatus | null);
563
+ "download_id"?: (string | null);
564
+ "page"?: (ErrorDetail__PageContext | null);
565
+ [key: string]: unknown;
566
+ };
567
+ export type ErrorDetail__PageContext = {
568
+ "headings": Array<string>;
569
+ "messages": Array<string>;
570
+ "ready_state": string;
571
+ "tab_id": string;
572
+ "text_excerpt": string;
573
+ "title": string;
574
+ "truncated": boolean;
575
+ "url": string;
576
+ [key: string]: unknown;
577
+ };
578
+ export type Expectation = ({
579
+ "kind": ("download_started" & string);
580
+ [key: string]: unknown;
581
+ } | {
582
+ "kind": ("focused" & string);
583
+ "target": Expectation__LocatorSpec;
584
+ [key: string]: unknown;
585
+ } | {
586
+ "contains"?: boolean;
587
+ "kind": ("url" & string);
588
+ "value": string;
589
+ [key: string]: unknown;
590
+ } | {
591
+ "kind": ("visible" & string);
592
+ "target": Expectation__LocatorSpec;
593
+ [key: string]: unknown;
594
+ } | {
595
+ "kind": ("hidden" & string);
596
+ "target": Expectation__LocatorSpec;
597
+ [key: string]: unknown;
598
+ } | {
599
+ "contains"?: boolean;
600
+ "kind": ("text" & string);
601
+ "target": Expectation__LocatorSpec;
602
+ "value": string;
603
+ [key: string]: unknown;
604
+ } | {
605
+ "kind": ("value" & string);
606
+ "target": Expectation__LocatorSpec;
607
+ "value": string;
608
+ [key: string]: unknown;
609
+ } | {
610
+ "checked": boolean;
611
+ "kind": ("checked" & string);
612
+ "target": Expectation__LocatorSpec;
613
+ [key: string]: unknown;
614
+ } | {
615
+ "kind": ("selected" & string);
616
+ "target": Expectation__LocatorSpec;
617
+ "values": Array<string>;
618
+ [key: string]: unknown;
619
+ });
620
+ export type Expectation__LocatorQuery = ({
621
+ "id": number;
622
+ "kind": ("node" & string);
623
+ [key: string]: unknown;
624
+ } | {
625
+ "kind": ("css" & string);
626
+ "selector": string;
627
+ [key: string]: unknown;
628
+ } | {
629
+ "exact"?: boolean;
630
+ "kind": ("text" & string);
631
+ "text": string;
632
+ [key: string]: unknown;
633
+ } | {
634
+ "kind": ("placeholder" & string);
635
+ "text": string;
636
+ [key: string]: unknown;
637
+ } | {
638
+ "kind": ("role" & string);
639
+ "role": string;
640
+ [key: string]: unknown;
641
+ } | {
642
+ "id": number;
643
+ "kind": ("backend_node" & string);
644
+ [key: string]: unknown;
645
+ });
646
+ export type Expectation__LocatorSpec = {
647
+ "frame_id"?: (string | null);
648
+ "index"?: (number | null);
649
+ "query": Expectation__LocatorQuery;
650
+ [key: string]: unknown;
651
+ };
652
+ export type HelloParams = {
653
+ "protocol": HelloParams__ProtocolVersion;
654
+ [key: string]: unknown;
655
+ };
656
+ export type HelloParams__ProtocolVersion = {
657
+ "major": number;
658
+ "minor": number;
659
+ [key: string]: unknown;
660
+ };
661
+ export type HelloResult = {
662
+ "capabilities": Array<string>;
663
+ "coreVersion": string;
664
+ "limits": HelloResult__TransportLimits;
665
+ "methods": Array<string>;
666
+ "protocol": HelloResult__ProtocolVersion;
667
+ "serverVersion": string;
668
+ [key: string]: unknown;
669
+ };
670
+ export type HelloResult__ProtocolVersion = {
671
+ "major": number;
672
+ "minor": number;
673
+ [key: string]: unknown;
674
+ };
675
+ export type HelloResult__TransportLimits = {
676
+ "maxInFlight": number;
677
+ "maxMessageBytes": number;
678
+ [key: string]: unknown;
679
+ };
680
+ export type LocatorQuery = ({
681
+ "id": number;
682
+ "kind": ("node" & string);
683
+ [key: string]: unknown;
684
+ } | {
685
+ "kind": ("css" & string);
686
+ "selector": string;
687
+ [key: string]: unknown;
688
+ } | {
689
+ "exact"?: boolean;
690
+ "kind": ("text" & string);
691
+ "text": string;
692
+ [key: string]: unknown;
693
+ } | {
694
+ "kind": ("placeholder" & string);
695
+ "text": string;
696
+ [key: string]: unknown;
697
+ } | {
698
+ "kind": ("role" & string);
699
+ "role": string;
700
+ [key: string]: unknown;
701
+ } | {
702
+ "id": number;
703
+ "kind": ("backend_node" & string);
704
+ [key: string]: unknown;
705
+ });
706
+ export type LocatorSpec = {
707
+ "frame_id"?: (string | null);
708
+ "index"?: (number | null);
709
+ "query": LocatorSpec__LocatorQuery;
710
+ [key: string]: unknown;
711
+ };
712
+ export type LocatorSpec__LocatorQuery = ({
713
+ "id": number;
714
+ "kind": ("node" & string);
715
+ [key: string]: unknown;
716
+ } | {
717
+ "kind": ("css" & string);
718
+ "selector": string;
719
+ [key: string]: unknown;
720
+ } | {
721
+ "exact"?: boolean;
722
+ "kind": ("text" & string);
723
+ "text": string;
724
+ [key: string]: unknown;
725
+ } | {
726
+ "kind": ("placeholder" & string);
727
+ "text": string;
728
+ [key: string]: unknown;
729
+ } | {
730
+ "kind": ("role" & string);
731
+ "role": string;
732
+ [key: string]: unknown;
733
+ } | {
734
+ "id": number;
735
+ "kind": ("backend_node" & string);
736
+ [key: string]: unknown;
737
+ });
738
+ export type OperationRecord = {
739
+ "action": string;
740
+ "dispatch_intent": boolean;
741
+ "error_code"?: (string | null);
742
+ "finished_at_ms"?: (number | null);
743
+ "id": string;
744
+ "outcome": OperationRecord__ActionOutcome;
745
+ "preparation_intent": boolean;
746
+ "receipt"?: (OperationRecord__ActionReceipt | null);
747
+ "runtime_id": string;
748
+ "started_at_ms": number;
749
+ "state": OperationRecord__OperationState;
750
+ "target_id": string;
751
+ [key: string]: unknown;
752
+ };
753
+ export type OperationRecord__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
754
+ export type OperationRecord__ActionReceipt = {
755
+ "action": string;
756
+ "already_satisfied": boolean;
757
+ "cleanup_pending": boolean;
758
+ "dispatch": OperationRecord__DispatchState;
759
+ "download_guid"?: (string | null);
760
+ "elapsed_ms": number;
761
+ "finished_at_ms": number;
762
+ "outcome": OperationRecord__ActionOutcome;
763
+ "preparation_may_have_executed": boolean;
764
+ "started_at_ms": number;
765
+ "target_id": string;
766
+ "verification"?: (string | null);
767
+ [key: string]: unknown;
768
+ };
769
+ export type OperationRecord__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
770
+ export type OperationRecord__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
771
+ export type OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
772
+ export type ProtocolVersion = {
773
+ "major": number;
774
+ "minor": number;
775
+ [key: string]: unknown;
776
+ };
777
+ export type RecordingFailure = {
778
+ "cleanupUncertain"?: (boolean | null);
779
+ "code": RecordingFailure__ErrorCode;
780
+ "message": string;
781
+ "partialPath"?: (string | null);
782
+ "stage": RecordingFailure__RecordingFailureStage;
783
+ [key: string]: unknown;
784
+ };
785
+ 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);
786
+ export type RecordingFailure__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
787
+ export type RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
788
+ export type RecordingIdParams = {
789
+ "recordingId": string;
790
+ [key: string]: unknown;
791
+ };
792
+ export type RecordingRecord = {
793
+ "artifact"?: (RecordingRecord__Artifact | null);
794
+ "failure"?: (RecordingRecord__RecordingFailure | null);
795
+ "pageId": string;
796
+ "path": string;
797
+ "recordingId": string;
798
+ "state": RecordingRecord__RecordingState;
799
+ [key: string]: unknown;
800
+ };
801
+ export type RecordingRecord__Artifact = {
802
+ "bytes": number;
803
+ "container"?: (RecordingRecord__ArtifactContainer | null);
804
+ "mimeType": string;
805
+ "path": string;
806
+ [key: string]: unknown;
807
+ };
808
+ export type RecordingRecord__ArtifactContainer = ("mp4" & string);
809
+ 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);
810
+ export type RecordingRecord__RecordingFailure = {
811
+ "cleanupUncertain"?: (boolean | null);
812
+ "code": RecordingRecord__ErrorCode;
813
+ "message": string;
814
+ "partialPath"?: (string | null);
815
+ "stage": RecordingRecord__RecordingFailureStage;
816
+ [key: string]: unknown;
817
+ };
818
+ export type RecordingRecord__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
819
+ export type RecordingRecord__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
820
+ export type RecordingStartParams = {
821
+ "fps"?: (number | null);
822
+ "maxHeight"?: (number | null);
823
+ "maxWidth"?: (number | null);
824
+ "pageId": string;
825
+ "path": string;
826
+ "recordingId": string;
827
+ };
828
+ export type RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
829
+ export type Request = {
830
+ "id": number;
831
+ "method": string;
832
+ "params"?: unknown;
833
+ [key: string]: unknown;
834
+ };
835
+ export type Response = (({
836
+ "id": (number | null);
837
+ "result": unknown;
838
+ } & {
839
+ "error"?: never;
840
+ }) | ({
841
+ "error": Response__ServerError;
842
+ "id": (number | null);
843
+ } & {
844
+ "result"?: never;
845
+ }));
846
+ export type Response__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
847
+ export type Response__ActionReceipt = {
848
+ "action": string;
849
+ "already_satisfied": boolean;
850
+ "cleanup_pending": boolean;
851
+ "dispatch": Response__DispatchState;
852
+ "download_guid"?: (string | null);
853
+ "elapsed_ms": number;
854
+ "finished_at_ms": number;
855
+ "outcome": Response__ActionOutcome;
856
+ "preparation_may_have_executed": boolean;
857
+ "started_at_ms": number;
858
+ "target_id": string;
859
+ "verification"?: (string | null);
860
+ [key: string]: unknown;
861
+ };
862
+ export type Response__ActionStatus = (("not_attempted" | "may_have_executed") & string);
863
+ export type Response__Artifact = {
864
+ "bytes": number;
865
+ "container"?: (Response__ArtifactContainer | null);
866
+ "mimeType": string;
867
+ "path": string;
868
+ [key: string]: unknown;
869
+ };
870
+ export type Response__ArtifactContainer = ("mp4" & string);
871
+ export type Response__CdpErrorDetail = {
872
+ "code"?: (number | null);
873
+ "message": string;
874
+ "method"?: (string | null);
875
+ [key: string]: unknown;
876
+ };
877
+ export type Response__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
878
+ 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);
879
+ export type Response__ErrorContext = {
880
+ "action_status"?: (Response__ActionStatus | null);
881
+ "download_id"?: (string | null);
882
+ "page"?: (Response__PageContext | null);
883
+ [key: string]: unknown;
884
+ };
885
+ export type Response__ErrorData = {
886
+ "cdp"?: (Response__CdpErrorDetail | null);
887
+ "detail"?: (Response__ErrorDetail | null);
888
+ "operation_id"?: (string | null);
889
+ "partialPath"?: (string | null);
890
+ "path"?: (string | null);
891
+ "receipt"?: (Response__ActionReceipt | null);
892
+ "recording"?: (Response__RecordingRecord | null);
893
+ "recordingId"?: (string | null);
894
+ "source"?: (Response__ServerError | null);
895
+ [key: string]: unknown;
896
+ };
897
+ export type Response__ErrorDetail = {
898
+ "code": string;
899
+ "context"?: (Response__ErrorContext | null);
900
+ "hint"?: (string | null);
901
+ "message": string;
902
+ "retryable"?: (boolean | null);
903
+ [key: string]: unknown;
904
+ };
905
+ export type Response__PageContext = {
906
+ "headings": Array<string>;
907
+ "messages": Array<string>;
908
+ "ready_state": string;
909
+ "tab_id": string;
910
+ "text_excerpt": string;
911
+ "title": string;
912
+ "truncated": boolean;
913
+ "url": string;
914
+ [key: string]: unknown;
915
+ };
916
+ export type Response__RecordingFailure = {
917
+ "cleanupUncertain"?: (boolean | null);
918
+ "code": Response__ErrorCode;
919
+ "message": string;
920
+ "partialPath"?: (string | null);
921
+ "stage": Response__RecordingFailureStage;
922
+ [key: string]: unknown;
923
+ };
924
+ export type Response__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
925
+ export type Response__RecordingRecord = {
926
+ "artifact"?: (Response__Artifact | null);
927
+ "failure"?: (Response__RecordingFailure | null);
928
+ "pageId": string;
929
+ "path": string;
930
+ "recordingId": string;
931
+ "state": Response__RecordingState;
932
+ [key: string]: unknown;
933
+ };
934
+ export type Response__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
935
+ export type Response__ServerError = {
936
+ "code": Response__ErrorCode;
937
+ "data"?: (Response__ErrorData | null);
938
+ "message": string;
939
+ [key: string]: unknown;
940
+ };
941
+ export type ScreenshotClip = {
942
+ "height": number;
943
+ "width": number;
944
+ "x": number;
945
+ "y": number;
946
+ [key: string]: unknown;
947
+ };
948
+ export type ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
949
+ export type ScreenshotParams = {
950
+ "clip"?: (ScreenshotParams__ScreenshotClip | null);
951
+ "format"?: (ScreenshotParams__ScreenshotFormat | null);
952
+ "fullPage"?: (boolean | null);
953
+ "pageId": string;
954
+ "quality"?: (number | null);
955
+ [key: string]: unknown;
956
+ };
957
+ export type ScreenshotParams__ScreenshotClip = {
958
+ "height": number;
959
+ "width": number;
960
+ "x": number;
961
+ "y": number;
962
+ [key: string]: unknown;
963
+ };
964
+ export type ScreenshotParams__ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
965
+ export type ScreenshotToFileParams = {
966
+ "clip"?: (ScreenshotToFileParams__ScreenshotClip | null);
967
+ "format"?: (ScreenshotToFileParams__ScreenshotFormat | null);
968
+ "fullPage"?: (boolean | null);
969
+ "pageId": string;
970
+ "path": string;
971
+ "quality"?: (number | null);
972
+ [key: string]: unknown;
973
+ };
974
+ export type ScreenshotToFileParams__ScreenshotClip = {
975
+ "height": number;
976
+ "width": number;
977
+ "x": number;
978
+ "y": number;
979
+ [key: string]: unknown;
980
+ };
981
+ export type ScreenshotToFileParams__ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
982
+ export type ServerError = {
983
+ "code": ServerError__ErrorCode;
984
+ "data"?: (ServerError__ErrorData | null);
985
+ "message": string;
986
+ [key: string]: unknown;
987
+ };
988
+ export type ServerError__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
989
+ export type ServerError__ActionReceipt = {
990
+ "action": string;
991
+ "already_satisfied": boolean;
992
+ "cleanup_pending": boolean;
993
+ "dispatch": ServerError__DispatchState;
994
+ "download_guid"?: (string | null);
995
+ "elapsed_ms": number;
996
+ "finished_at_ms": number;
997
+ "outcome": ServerError__ActionOutcome;
998
+ "preparation_may_have_executed": boolean;
999
+ "started_at_ms": number;
1000
+ "target_id": string;
1001
+ "verification"?: (string | null);
1002
+ [key: string]: unknown;
1003
+ };
1004
+ export type ServerError__ActionStatus = (("not_attempted" | "may_have_executed") & string);
1005
+ export type ServerError__Artifact = {
1006
+ "bytes": number;
1007
+ "container"?: (ServerError__ArtifactContainer | null);
1008
+ "mimeType": string;
1009
+ "path": string;
1010
+ [key: string]: unknown;
1011
+ };
1012
+ export type ServerError__ArtifactContainer = ("mp4" & string);
1013
+ export type ServerError__CdpErrorDetail = {
1014
+ "code"?: (number | null);
1015
+ "message": string;
1016
+ "method"?: (string | null);
1017
+ [key: string]: unknown;
1018
+ };
1019
+ export type ServerError__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1020
+ 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);
1021
+ export type ServerError__ErrorContext = {
1022
+ "action_status"?: (ServerError__ActionStatus | null);
1023
+ "download_id"?: (string | null);
1024
+ "page"?: (ServerError__PageContext | null);
1025
+ [key: string]: unknown;
1026
+ };
1027
+ export type ServerError__ErrorData = {
1028
+ "cdp"?: (ServerError__CdpErrorDetail | null);
1029
+ "detail"?: (ServerError__ErrorDetail | null);
1030
+ "operation_id"?: (string | null);
1031
+ "partialPath"?: (string | null);
1032
+ "path"?: (string | null);
1033
+ "receipt"?: (ServerError__ActionReceipt | null);
1034
+ "recording"?: (ServerError__RecordingRecord | null);
1035
+ "recordingId"?: (string | null);
1036
+ "source"?: (ServerError | null);
1037
+ [key: string]: unknown;
1038
+ };
1039
+ export type ServerError__ErrorDetail = {
1040
+ "code": string;
1041
+ "context"?: (ServerError__ErrorContext | null);
1042
+ "hint"?: (string | null);
1043
+ "message": string;
1044
+ "retryable"?: (boolean | null);
1045
+ [key: string]: unknown;
1046
+ };
1047
+ export type ServerError__PageContext = {
1048
+ "headings": Array<string>;
1049
+ "messages": Array<string>;
1050
+ "ready_state": string;
1051
+ "tab_id": string;
1052
+ "text_excerpt": string;
1053
+ "title": string;
1054
+ "truncated": boolean;
1055
+ "url": string;
1056
+ [key: string]: unknown;
1057
+ };
1058
+ export type ServerError__RecordingFailure = {
1059
+ "cleanupUncertain"?: (boolean | null);
1060
+ "code": ServerError__ErrorCode;
1061
+ "message": string;
1062
+ "partialPath"?: (string | null);
1063
+ "stage": ServerError__RecordingFailureStage;
1064
+ [key: string]: unknown;
1065
+ };
1066
+ export type ServerError__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
1067
+ export type ServerError__RecordingRecord = {
1068
+ "artifact"?: (ServerError__Artifact | null);
1069
+ "failure"?: (ServerError__RecordingFailure | null);
1070
+ "pageId": string;
1071
+ "path": string;
1072
+ "recordingId": string;
1073
+ "state": ServerError__RecordingState;
1074
+ [key: string]: unknown;
1075
+ };
1076
+ export type ServerError__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
1077
+ export type TransportLimits = {
1078
+ "maxInFlight": number;
1079
+ "maxMessageBytes": number;
1080
+ [key: string]: unknown;
1081
+ };
1082
+ export type MethodActionsPerformParams = {
1083
+ "action": MethodActionsPerformParams__Action;
1084
+ "operation_id": string;
1085
+ "options"?: MethodActionsPerformParams__ActionOptions;
1086
+ "pageId": string;
1087
+ [key: string]: unknown;
1088
+ };
1089
+ export type MethodActionsPerformParams__Action = ({
1090
+ "delta": number;
1091
+ "kind": ("history" & string);
1092
+ [key: string]: unknown;
1093
+ } | {
1094
+ "kind": ("select_option" & string);
1095
+ "target": MethodActionsPerformParams__LocatorSpec;
1096
+ "value": string;
1097
+ [key: string]: unknown;
1098
+ } | {
1099
+ "headers": Record<string, string>;
1100
+ "kind": ("navigate_with_headers" & string);
1101
+ "url": string;
1102
+ [key: string]: unknown;
1103
+ } | {
1104
+ "dx": number;
1105
+ "dy": number;
1106
+ "kind": ("drag" & string);
1107
+ "target": MethodActionsPerformParams__LocatorSpec;
1108
+ [key: string]: unknown;
1109
+ } | {
1110
+ "kind": ("insert_text" & string);
1111
+ "text": string;
1112
+ [key: string]: unknown;
1113
+ } | {
1114
+ "kind": ("select_text" & string);
1115
+ "target": MethodActionsPerformParams__LocatorSpec;
1116
+ "text": string;
1117
+ [key: string]: unknown;
1118
+ } | {
1119
+ "double"?: boolean;
1120
+ "human"?: boolean;
1121
+ "kind": ("click" & string);
1122
+ "target": MethodActionsPerformParams__LocatorSpec;
1123
+ [key: string]: unknown;
1124
+ } | {
1125
+ "human"?: boolean;
1126
+ "kind": ("fill" & string);
1127
+ "target": MethodActionsPerformParams__LocatorSpec;
1128
+ "value": string;
1129
+ [key: string]: unknown;
1130
+ } | {
1131
+ "human"?: boolean;
1132
+ "kind": ("type" & string);
1133
+ "target": MethodActionsPerformParams__LocatorSpec;
1134
+ "text": string;
1135
+ [key: string]: unknown;
1136
+ } | {
1137
+ "kind": ("select" & string);
1138
+ "target": MethodActionsPerformParams__LocatorSpec;
1139
+ "values": Array<string>;
1140
+ [key: string]: unknown;
1141
+ } | {
1142
+ "files": Array<string>;
1143
+ "kind": ("upload" & string);
1144
+ "target": MethodActionsPerformParams__LocatorSpec;
1145
+ [key: string]: unknown;
1146
+ } | {
1147
+ "key": string;
1148
+ "kind": ("press_key" & string);
1149
+ [key: string]: unknown;
1150
+ } | {
1151
+ "kind": ("submit" & string);
1152
+ "target": MethodActionsPerformParams__LocatorSpec;
1153
+ [key: string]: unknown;
1154
+ } | {
1155
+ "human"?: boolean;
1156
+ "kind": ("hover" & string);
1157
+ "target": MethodActionsPerformParams__LocatorSpec;
1158
+ [key: string]: unknown;
1159
+ } | {
1160
+ "kind": ("focus" & string);
1161
+ "target": MethodActionsPerformParams__LocatorSpec;
1162
+ [key: string]: unknown;
1163
+ } | {
1164
+ "kind": ("scroll_into_view" & string);
1165
+ "target": MethodActionsPerformParams__LocatorSpec;
1166
+ [key: string]: unknown;
1167
+ } | {
1168
+ "kind": ("navigate" & string);
1169
+ "referrer"?: (string | null);
1170
+ "url": string;
1171
+ [key: string]: unknown;
1172
+ } | {
1173
+ "kind": ("reload" & string);
1174
+ [key: string]: unknown;
1175
+ } | {
1176
+ "kind": ("back" & string);
1177
+ [key: string]: unknown;
1178
+ } | {
1179
+ "kind": ("forward" & string);
1180
+ [key: string]: unknown;
1181
+ });
1182
+ export type MethodActionsPerformParams__ActionOptions = {
1183
+ "expect"?: (MethodActionsPerformParams__Expectation | null);
1184
+ "timeout_ms"?: number;
1185
+ "wait_for_target"?: boolean;
1186
+ [key: string]: unknown;
1187
+ };
1188
+ export type MethodActionsPerformParams__Expectation = ({
1189
+ "kind": ("download_started" & string);
1190
+ [key: string]: unknown;
1191
+ } | {
1192
+ "kind": ("focused" & string);
1193
+ "target": MethodActionsPerformParams__LocatorSpec;
1194
+ [key: string]: unknown;
1195
+ } | {
1196
+ "contains"?: boolean;
1197
+ "kind": ("url" & string);
1198
+ "value": string;
1199
+ [key: string]: unknown;
1200
+ } | {
1201
+ "kind": ("visible" & string);
1202
+ "target": MethodActionsPerformParams__LocatorSpec;
1203
+ [key: string]: unknown;
1204
+ } | {
1205
+ "kind": ("hidden" & string);
1206
+ "target": MethodActionsPerformParams__LocatorSpec;
1207
+ [key: string]: unknown;
1208
+ } | {
1209
+ "contains"?: boolean;
1210
+ "kind": ("text" & string);
1211
+ "target": MethodActionsPerformParams__LocatorSpec;
1212
+ "value": string;
1213
+ [key: string]: unknown;
1214
+ } | {
1215
+ "kind": ("value" & string);
1216
+ "target": MethodActionsPerformParams__LocatorSpec;
1217
+ "value": string;
1218
+ [key: string]: unknown;
1219
+ } | {
1220
+ "checked": boolean;
1221
+ "kind": ("checked" & string);
1222
+ "target": MethodActionsPerformParams__LocatorSpec;
1223
+ [key: string]: unknown;
1224
+ } | {
1225
+ "kind": ("selected" & string);
1226
+ "target": MethodActionsPerformParams__LocatorSpec;
1227
+ "values": Array<string>;
1228
+ [key: string]: unknown;
1229
+ });
1230
+ export type MethodActionsPerformParams__LocatorQuery = ({
1231
+ "id": number;
1232
+ "kind": ("node" & string);
1233
+ [key: string]: unknown;
1234
+ } | {
1235
+ "kind": ("css" & string);
1236
+ "selector": string;
1237
+ [key: string]: unknown;
1238
+ } | {
1239
+ "exact"?: boolean;
1240
+ "kind": ("text" & string);
1241
+ "text": string;
1242
+ [key: string]: unknown;
1243
+ } | {
1244
+ "kind": ("placeholder" & string);
1245
+ "text": string;
1246
+ [key: string]: unknown;
1247
+ } | {
1248
+ "kind": ("role" & string);
1249
+ "role": string;
1250
+ [key: string]: unknown;
1251
+ } | {
1252
+ "id": number;
1253
+ "kind": ("backend_node" & string);
1254
+ [key: string]: unknown;
1255
+ });
1256
+ export type MethodActionsPerformParams__LocatorSpec = {
1257
+ "frame_id"?: (string | null);
1258
+ "index"?: (number | null);
1259
+ "query": MethodActionsPerformParams__LocatorQuery;
1260
+ [key: string]: unknown;
1261
+ };
1262
+ export type MethodActionsPerformResult = {
1263
+ "action": string;
1264
+ "dispatch_intent": boolean;
1265
+ "error_code"?: (string | null);
1266
+ "finished_at_ms"?: (number | null);
1267
+ "id": string;
1268
+ "outcome": MethodActionsPerformResult__ActionOutcome;
1269
+ "preparation_intent": boolean;
1270
+ "receipt"?: (MethodActionsPerformResult__ActionReceipt | null);
1271
+ "runtime_id": string;
1272
+ "started_at_ms": number;
1273
+ "state": MethodActionsPerformResult__OperationState;
1274
+ "target_id": string;
1275
+ [key: string]: unknown;
1276
+ };
1277
+ export type MethodActionsPerformResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1278
+ export type MethodActionsPerformResult__ActionReceipt = {
1279
+ "action": string;
1280
+ "already_satisfied": boolean;
1281
+ "cleanup_pending": boolean;
1282
+ "dispatch": MethodActionsPerformResult__DispatchState;
1283
+ "download_guid"?: (string | null);
1284
+ "elapsed_ms": number;
1285
+ "finished_at_ms": number;
1286
+ "outcome": MethodActionsPerformResult__ActionOutcome;
1287
+ "preparation_may_have_executed": boolean;
1288
+ "started_at_ms": number;
1289
+ "target_id": string;
1290
+ "verification"?: (string | null);
1291
+ [key: string]: unknown;
1292
+ };
1293
+ export type MethodActionsPerformResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1294
+ export type MethodActionsPerformResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1295
+ export type MethodAgentObserveParams = {
1296
+ "max_controls"?: number;
1297
+ "pageId": string;
1298
+ "timeout_ms"?: number;
1299
+ [key: string]: unknown;
1300
+ };
1301
+ export type MethodAgentObserveResult = {
1302
+ "controls": Array<MethodAgentObserveResult__AgentControl>;
1303
+ "observation_id": string;
1304
+ "page"?: (MethodAgentObserveResult__PageContext | null);
1305
+ "tab_id": string;
1306
+ "tabs": Array<MethodAgentObserveResult__AgentTab>;
1307
+ "truncated": boolean;
1308
+ "warnings": Array<string>;
1309
+ [key: string]: unknown;
1310
+ };
1311
+ export type MethodAgentObserveResult__AgentControl = {
1312
+ "checked"?: (boolean | null);
1313
+ "disabled": boolean;
1314
+ "expanded"?: (boolean | null);
1315
+ "name": string;
1316
+ "role": string;
1317
+ "target": string;
1318
+ [key: string]: unknown;
1319
+ };
1320
+ export type MethodAgentObserveResult__AgentTab = {
1321
+ "id": string;
1322
+ "selected": boolean;
1323
+ "title": string;
1324
+ "url": string;
1325
+ [key: string]: unknown;
1326
+ };
1327
+ export type MethodAgentObserveResult__PageContext = {
1328
+ "headings": Array<string>;
1329
+ "messages": Array<string>;
1330
+ "ready_state": string;
1331
+ "tab_id": string;
1332
+ "text_excerpt": string;
1333
+ "title": string;
1334
+ "truncated": boolean;
1335
+ "url": string;
1336
+ [key: string]: unknown;
1337
+ };
1338
+ export type MethodAgentStepParams = {
1339
+ "action": MethodAgentStepParams__AgentAction;
1340
+ "action_timeout_ms"?: number;
1341
+ "expect"?: (MethodAgentStepParams__Expectation | null);
1342
+ "max_controls"?: number;
1343
+ "mode"?: MethodAgentStepParams__AgentMode;
1344
+ "operation_id"?: (string | null);
1345
+ "pageId": string;
1346
+ "timeout_ms"?: number;
1347
+ [key: string]: unknown;
1348
+ };
1349
+ export type MethodAgentStepParams__AgentAction = (({
1350
+ "kind": ("click" & string);
1351
+ "target": string;
1352
+ } & {
1353
+ "text"?: never;
1354
+ "value"?: never;
1355
+ "key"?: never;
1356
+ "url"?: never;
1357
+ }) | ({
1358
+ "kind": ("fill" & string);
1359
+ "target": string;
1360
+ "text": string;
1361
+ } & {
1362
+ "value"?: never;
1363
+ "key"?: never;
1364
+ "url"?: never;
1365
+ }) | ({
1366
+ "kind": ("type" & string);
1367
+ "target": string;
1368
+ "text": string;
1369
+ } & {
1370
+ "value"?: never;
1371
+ "key"?: never;
1372
+ "url"?: never;
1373
+ }) | ({
1374
+ "kind": ("select" & string);
1375
+ "target": string;
1376
+ "value": string;
1377
+ } & {
1378
+ "text"?: never;
1379
+ "key"?: never;
1380
+ "url"?: never;
1381
+ }) | ({
1382
+ "kind": ("hover" & string);
1383
+ "target": string;
1384
+ } & {
1385
+ "text"?: never;
1386
+ "value"?: never;
1387
+ "key"?: never;
1388
+ "url"?: never;
1389
+ }) | ({
1390
+ "kind": ("scroll_into_view" & string);
1391
+ "target": string;
1392
+ } & {
1393
+ "text"?: never;
1394
+ "value"?: never;
1395
+ "key"?: never;
1396
+ "url"?: never;
1397
+ }) | ({
1398
+ "key": string;
1399
+ "kind": ("press_key" & string);
1400
+ } & {
1401
+ "target"?: never;
1402
+ "text"?: never;
1403
+ "value"?: never;
1404
+ "url"?: never;
1405
+ }) | ({
1406
+ "kind": ("navigate" & string);
1407
+ "url": string;
1408
+ } & {
1409
+ "target"?: never;
1410
+ "text"?: never;
1411
+ "value"?: never;
1412
+ "key"?: never;
1413
+ }) | ({
1414
+ "kind": ("back" & string);
1415
+ } & {
1416
+ "target"?: never;
1417
+ "text"?: never;
1418
+ "value"?: never;
1419
+ "key"?: never;
1420
+ "url"?: never;
1421
+ }) | ({
1422
+ "kind": ("forward" & string);
1423
+ } & {
1424
+ "target"?: never;
1425
+ "text"?: never;
1426
+ "value"?: never;
1427
+ "key"?: never;
1428
+ "url"?: never;
1429
+ }));
1430
+ export type MethodAgentStepParams__AgentMode = (("explore" | "verify") & string);
1431
+ export type MethodAgentStepParams__Expectation = ({
1432
+ "kind": ("download_started" & string);
1433
+ [key: string]: unknown;
1434
+ } | {
1435
+ "kind": ("focused" & string);
1436
+ "target": MethodAgentStepParams__LocatorSpec;
1437
+ [key: string]: unknown;
1438
+ } | {
1439
+ "contains"?: boolean;
1440
+ "kind": ("url" & string);
1441
+ "value": string;
1442
+ [key: string]: unknown;
1443
+ } | {
1444
+ "kind": ("visible" & string);
1445
+ "target": MethodAgentStepParams__LocatorSpec;
1446
+ [key: string]: unknown;
1447
+ } | {
1448
+ "kind": ("hidden" & string);
1449
+ "target": MethodAgentStepParams__LocatorSpec;
1450
+ [key: string]: unknown;
1451
+ } | {
1452
+ "contains"?: boolean;
1453
+ "kind": ("text" & string);
1454
+ "target": MethodAgentStepParams__LocatorSpec;
1455
+ "value": string;
1456
+ [key: string]: unknown;
1457
+ } | {
1458
+ "kind": ("value" & string);
1459
+ "target": MethodAgentStepParams__LocatorSpec;
1460
+ "value": string;
1461
+ [key: string]: unknown;
1462
+ } | {
1463
+ "checked": boolean;
1464
+ "kind": ("checked" & string);
1465
+ "target": MethodAgentStepParams__LocatorSpec;
1466
+ [key: string]: unknown;
1467
+ } | {
1468
+ "kind": ("selected" & string);
1469
+ "target": MethodAgentStepParams__LocatorSpec;
1470
+ "values": Array<string>;
1471
+ [key: string]: unknown;
1472
+ });
1473
+ export type MethodAgentStepParams__LocatorQuery = ({
1474
+ "id": number;
1475
+ "kind": ("node" & string);
1476
+ [key: string]: unknown;
1477
+ } | {
1478
+ "kind": ("css" & string);
1479
+ "selector": string;
1480
+ [key: string]: unknown;
1481
+ } | {
1482
+ "exact"?: boolean;
1483
+ "kind": ("text" & string);
1484
+ "text": string;
1485
+ [key: string]: unknown;
1486
+ } | {
1487
+ "kind": ("placeholder" & string);
1488
+ "text": string;
1489
+ [key: string]: unknown;
1490
+ } | {
1491
+ "kind": ("role" & string);
1492
+ "role": string;
1493
+ [key: string]: unknown;
1494
+ } | {
1495
+ "id": number;
1496
+ "kind": ("backend_node" & string);
1497
+ [key: string]: unknown;
1498
+ });
1499
+ export type MethodAgentStepParams__LocatorSpec = {
1500
+ "frame_id"?: (string | null);
1501
+ "index"?: (number | null);
1502
+ "query": MethodAgentStepParams__LocatorQuery;
1503
+ [key: string]: unknown;
1504
+ };
1505
+ export type MethodAgentStepResult = {
1506
+ "observation"?: (MethodAgentStepResult__AgentObservation | null);
1507
+ "observation_error"?: (string | null);
1508
+ "operation"?: (MethodAgentStepResult__OperationRecord | null);
1509
+ "operation_error"?: (string | null);
1510
+ "operation_id": string;
1511
+ [key: string]: unknown;
1512
+ };
1513
+ export type MethodAgentStepResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1514
+ export type MethodAgentStepResult__ActionReceipt = {
1515
+ "action": string;
1516
+ "already_satisfied": boolean;
1517
+ "cleanup_pending": boolean;
1518
+ "dispatch": MethodAgentStepResult__DispatchState;
1519
+ "download_guid"?: (string | null);
1520
+ "elapsed_ms": number;
1521
+ "finished_at_ms": number;
1522
+ "outcome": MethodAgentStepResult__ActionOutcome;
1523
+ "preparation_may_have_executed": boolean;
1524
+ "started_at_ms": number;
1525
+ "target_id": string;
1526
+ "verification"?: (string | null);
1527
+ [key: string]: unknown;
1528
+ };
1529
+ export type MethodAgentStepResult__AgentControl = {
1530
+ "checked"?: (boolean | null);
1531
+ "disabled": boolean;
1532
+ "expanded"?: (boolean | null);
1533
+ "name": string;
1534
+ "role": string;
1535
+ "target": string;
1536
+ [key: string]: unknown;
1537
+ };
1538
+ export type MethodAgentStepResult__AgentObservation = {
1539
+ "controls": Array<MethodAgentStepResult__AgentControl>;
1540
+ "observation_id": string;
1541
+ "page"?: (MethodAgentStepResult__PageContext | null);
1542
+ "tab_id": string;
1543
+ "tabs": Array<MethodAgentStepResult__AgentTab>;
1544
+ "truncated": boolean;
1545
+ "warnings": Array<string>;
1546
+ [key: string]: unknown;
1547
+ };
1548
+ export type MethodAgentStepResult__AgentTab = {
1549
+ "id": string;
1550
+ "selected": boolean;
1551
+ "title": string;
1552
+ "url": string;
1553
+ [key: string]: unknown;
1554
+ };
1555
+ export type MethodAgentStepResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1556
+ export type MethodAgentStepResult__OperationRecord = {
1557
+ "action": string;
1558
+ "dispatch_intent": boolean;
1559
+ "error_code"?: (string | null);
1560
+ "finished_at_ms"?: (number | null);
1561
+ "id": string;
1562
+ "outcome": MethodAgentStepResult__ActionOutcome;
1563
+ "preparation_intent": boolean;
1564
+ "receipt"?: (MethodAgentStepResult__ActionReceipt | null);
1565
+ "runtime_id": string;
1566
+ "started_at_ms": number;
1567
+ "state": MethodAgentStepResult__OperationState;
1568
+ "target_id": string;
1569
+ [key: string]: unknown;
1570
+ };
1571
+ export type MethodAgentStepResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1572
+ export type MethodAgentStepResult__PageContext = {
1573
+ "headings": Array<string>;
1574
+ "messages": Array<string>;
1575
+ "ready_state": string;
1576
+ "tab_id": string;
1577
+ "text_excerpt": string;
1578
+ "title": string;
1579
+ "truncated": boolean;
1580
+ "url": string;
1581
+ [key: string]: unknown;
1582
+ };
1583
+ export type MethodBrowserCloseParams = Record<string, never>;
1584
+ export type MethodBrowserCloseResult = Record<string, never>;
1585
+ export type MethodBrowserCloseTabParams = {
1586
+ "pageId": string;
1587
+ [key: string]: unknown;
1588
+ };
1589
+ export type MethodBrowserCloseTabResult = {
1590
+ "cleanupError"?: (string | null);
1591
+ [key: string]: unknown;
1592
+ };
1593
+ export type MethodBrowserConnectParams = {
1594
+ "wsEndpoint": string;
1595
+ };
1596
+ export type MethodBrowserConnectResult = {
1597
+ "browserVersion": string;
1598
+ "ownership": MethodBrowserConnectResult__BrowserOwnership;
1599
+ [key: string]: unknown;
1600
+ };
1601
+ export type MethodBrowserConnectResult__BrowserOwnership = (("owned" | "borrowed") & string);
1602
+ export type MethodBrowserLaunchParams = {
1603
+ "aggressiveCdpEvasion"?: boolean;
1604
+ "deviceScaleFactor": (number | null);
1605
+ "executablePath"?: (string | null);
1606
+ "extraArgs"?: Array<string>;
1607
+ "geoAlign"?: boolean;
1608
+ "headless"?: boolean;
1609
+ "proxy"?: (MethodBrowserLaunchParams__ProxyParams | null);
1610
+ "runtimeDir"?: (string | null);
1611
+ "sandbox"?: boolean;
1612
+ "timezone"?: (string | null);
1613
+ "userAgent"?: (string | null);
1614
+ "userDataDir"?: (string | null);
1615
+ "viewportHeight"?: (number | null);
1616
+ "viewportWidth"?: (number | null);
1617
+ [key: string]: unknown;
1618
+ };
1619
+ export type MethodBrowserLaunchParams__ProxyParams = {
1620
+ "password"?: (string | null);
1621
+ "server": string;
1622
+ "username"?: (string | null);
1623
+ [key: string]: unknown;
1624
+ };
1625
+ export type MethodBrowserLaunchResult = {
1626
+ "browserVersion": string;
1627
+ "ownership": MethodBrowserLaunchResult__BrowserOwnership;
1628
+ [key: string]: unknown;
1629
+ };
1630
+ export type MethodBrowserLaunchResult__BrowserOwnership = (("owned" | "borrowed") & string);
1631
+ export type MethodBrowserNewPageParams = {
1632
+ "url"?: (string | null);
1633
+ [key: string]: unknown;
1634
+ };
1635
+ export type MethodBrowserNewPageResult = {
1636
+ "pageId": string;
1637
+ [key: string]: unknown;
1638
+ };
1639
+ export type MethodBrowserTabsParams = Record<string, never>;
1640
+ export type MethodBrowserTabsResult = {
1641
+ "tabs": Array<MethodBrowserTabsResult__Tab>;
1642
+ [key: string]: unknown;
1643
+ };
1644
+ export type MethodBrowserTabsResult__Tab = {
1645
+ "id": string;
1646
+ "title": string;
1647
+ "url": string;
1648
+ [key: string]: unknown;
1649
+ };
1650
+ export type MethodOperationsCancelParams = {
1651
+ "id": string;
1652
+ [key: string]: unknown;
1653
+ };
1654
+ export type MethodOperationsCancelResult = {
1655
+ "action": string;
1656
+ "dispatch_intent": boolean;
1657
+ "error_code"?: (string | null);
1658
+ "finished_at_ms"?: (number | null);
1659
+ "id": string;
1660
+ "outcome": MethodOperationsCancelResult__ActionOutcome;
1661
+ "preparation_intent": boolean;
1662
+ "receipt"?: (MethodOperationsCancelResult__ActionReceipt | null);
1663
+ "runtime_id": string;
1664
+ "started_at_ms": number;
1665
+ "state": MethodOperationsCancelResult__OperationState;
1666
+ "target_id": string;
1667
+ [key: string]: unknown;
1668
+ };
1669
+ export type MethodOperationsCancelResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1670
+ export type MethodOperationsCancelResult__ActionReceipt = {
1671
+ "action": string;
1672
+ "already_satisfied": boolean;
1673
+ "cleanup_pending": boolean;
1674
+ "dispatch": MethodOperationsCancelResult__DispatchState;
1675
+ "download_guid"?: (string | null);
1676
+ "elapsed_ms": number;
1677
+ "finished_at_ms": number;
1678
+ "outcome": MethodOperationsCancelResult__ActionOutcome;
1679
+ "preparation_may_have_executed": boolean;
1680
+ "started_at_ms": number;
1681
+ "target_id": string;
1682
+ "verification"?: (string | null);
1683
+ [key: string]: unknown;
1684
+ };
1685
+ export type MethodOperationsCancelResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1686
+ export type MethodOperationsCancelResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1687
+ export type MethodOperationsGetParams = {
1688
+ "id": string;
1689
+ [key: string]: unknown;
1690
+ };
1691
+ export type MethodOperationsGetResult = {
1692
+ "action": string;
1693
+ "dispatch_intent": boolean;
1694
+ "error_code"?: (string | null);
1695
+ "finished_at_ms"?: (number | null);
1696
+ "id": string;
1697
+ "outcome": MethodOperationsGetResult__ActionOutcome;
1698
+ "preparation_intent": boolean;
1699
+ "receipt"?: (MethodOperationsGetResult__ActionReceipt | null);
1700
+ "runtime_id": string;
1701
+ "started_at_ms": number;
1702
+ "state": MethodOperationsGetResult__OperationState;
1703
+ "target_id": string;
1704
+ [key: string]: unknown;
1705
+ };
1706
+ export type MethodOperationsGetResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1707
+ export type MethodOperationsGetResult__ActionReceipt = {
1708
+ "action": string;
1709
+ "already_satisfied": boolean;
1710
+ "cleanup_pending": boolean;
1711
+ "dispatch": MethodOperationsGetResult__DispatchState;
1712
+ "download_guid"?: (string | null);
1713
+ "elapsed_ms": number;
1714
+ "finished_at_ms": number;
1715
+ "outcome": MethodOperationsGetResult__ActionOutcome;
1716
+ "preparation_may_have_executed": boolean;
1717
+ "started_at_ms": number;
1718
+ "target_id": string;
1719
+ "verification"?: (string | null);
1720
+ [key: string]: unknown;
1721
+ };
1722
+ export type MethodOperationsGetResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1723
+ export type MethodOperationsGetResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1724
+ export type MethodOperationsListParams = {
1725
+ "before_ms"?: (number | null);
1726
+ "limit"?: (number | null);
1727
+ [key: string]: unknown;
1728
+ };
1729
+ export type MethodOperationsListResult = Array<MethodOperationsListResult__OperationRecord>;
1730
+ export type MethodOperationsListResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1731
+ export type MethodOperationsListResult__ActionReceipt = {
1732
+ "action": string;
1733
+ "already_satisfied": boolean;
1734
+ "cleanup_pending": boolean;
1735
+ "dispatch": MethodOperationsListResult__DispatchState;
1736
+ "download_guid"?: (string | null);
1737
+ "elapsed_ms": number;
1738
+ "finished_at_ms": number;
1739
+ "outcome": MethodOperationsListResult__ActionOutcome;
1740
+ "preparation_may_have_executed": boolean;
1741
+ "started_at_ms": number;
1742
+ "target_id": string;
1743
+ "verification"?: (string | null);
1744
+ [key: string]: unknown;
1745
+ };
1746
+ export type MethodOperationsListResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1747
+ export type MethodOperationsListResult__OperationRecord = {
1748
+ "action": string;
1749
+ "dispatch_intent": boolean;
1750
+ "error_code"?: (string | null);
1751
+ "finished_at_ms"?: (number | null);
1752
+ "id": string;
1753
+ "outcome": MethodOperationsListResult__ActionOutcome;
1754
+ "preparation_intent": boolean;
1755
+ "receipt"?: (MethodOperationsListResult__ActionReceipt | null);
1756
+ "runtime_id": string;
1757
+ "started_at_ms": number;
1758
+ "state": MethodOperationsListResult__OperationState;
1759
+ "target_id": string;
1760
+ [key: string]: unknown;
1761
+ };
1762
+ export type MethodOperationsListResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1763
+ export type MethodOperationsWaitParams = {
1764
+ "id": string;
1765
+ "timeout_ms"?: number;
1766
+ [key: string]: unknown;
1767
+ };
1768
+ export type MethodOperationsWaitResult = {
1769
+ "action": string;
1770
+ "dispatch_intent": boolean;
1771
+ "error_code"?: (string | null);
1772
+ "finished_at_ms"?: (number | null);
1773
+ "id": string;
1774
+ "outcome": MethodOperationsWaitResult__ActionOutcome;
1775
+ "preparation_intent": boolean;
1776
+ "receipt"?: (MethodOperationsWaitResult__ActionReceipt | null);
1777
+ "runtime_id": string;
1778
+ "started_at_ms": number;
1779
+ "state": MethodOperationsWaitResult__OperationState;
1780
+ "target_id": string;
1781
+ [key: string]: unknown;
1782
+ };
1783
+ export type MethodOperationsWaitResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1784
+ export type MethodOperationsWaitResult__ActionReceipt = {
1785
+ "action": string;
1786
+ "already_satisfied": boolean;
1787
+ "cleanup_pending": boolean;
1788
+ "dispatch": MethodOperationsWaitResult__DispatchState;
1789
+ "download_guid"?: (string | null);
1790
+ "elapsed_ms": number;
1791
+ "finished_at_ms": number;
1792
+ "outcome": MethodOperationsWaitResult__ActionOutcome;
1793
+ "preparation_may_have_executed": boolean;
1794
+ "started_at_ms": number;
1795
+ "target_id": string;
1796
+ "verification"?: (string | null);
1797
+ [key: string]: unknown;
1798
+ };
1799
+ export type MethodOperationsWaitResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1800
+ export type MethodOperationsWaitResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1801
+ export type MethodPageCaptureStateParams = {
1802
+ "pageId": string;
1803
+ [key: string]: unknown;
1804
+ };
1805
+ export type MethodPageCaptureStateResult = {
1806
+ "state": MethodPageCaptureStateResult__BrowserState;
1807
+ [key: string]: unknown;
1808
+ };
1809
+ export type MethodPageCaptureStateResult__BrowserState = {
1810
+ "cookies": Array<MethodPageCaptureStateResult__SessionCookie>;
1811
+ "localStorage"?: Record<string, string>;
1812
+ "sessionStorage"?: Record<string, string>;
1813
+ "url": string;
1814
+ "userAgent": string;
1815
+ [key: string]: unknown;
1816
+ };
1817
+ export type MethodPageCaptureStateResult__SessionCookie = {
1818
+ "domain": string;
1819
+ "expires"?: (number | null);
1820
+ "http_only": boolean;
1821
+ "name": string;
1822
+ "path": string;
1823
+ "same_site"?: (string | null);
1824
+ "secure": boolean;
1825
+ "value": string;
1826
+ [key: string]: unknown;
1827
+ };
1828
+ export type MethodPageClickParams = {
1829
+ "operation_id": string;
1830
+ "options"?: MethodPageClickParams__ActionOptions;
1831
+ "pageId": string;
1832
+ "selector": string;
1833
+ [key: string]: unknown;
1834
+ };
1835
+ export type MethodPageClickParams__ActionOptions = {
1836
+ "expect"?: (MethodPageClickParams__Expectation | null);
1837
+ "timeout_ms"?: number;
1838
+ "wait_for_target"?: boolean;
1839
+ [key: string]: unknown;
1840
+ };
1841
+ export type MethodPageClickParams__Expectation = ({
1842
+ "kind": ("download_started" & string);
1843
+ [key: string]: unknown;
1844
+ } | {
1845
+ "kind": ("focused" & string);
1846
+ "target": MethodPageClickParams__LocatorSpec;
1847
+ [key: string]: unknown;
1848
+ } | {
1849
+ "contains"?: boolean;
1850
+ "kind": ("url" & string);
1851
+ "value": string;
1852
+ [key: string]: unknown;
1853
+ } | {
1854
+ "kind": ("visible" & string);
1855
+ "target": MethodPageClickParams__LocatorSpec;
1856
+ [key: string]: unknown;
1857
+ } | {
1858
+ "kind": ("hidden" & string);
1859
+ "target": MethodPageClickParams__LocatorSpec;
1860
+ [key: string]: unknown;
1861
+ } | {
1862
+ "contains"?: boolean;
1863
+ "kind": ("text" & string);
1864
+ "target": MethodPageClickParams__LocatorSpec;
1865
+ "value": string;
1866
+ [key: string]: unknown;
1867
+ } | {
1868
+ "kind": ("value" & string);
1869
+ "target": MethodPageClickParams__LocatorSpec;
1870
+ "value": string;
1871
+ [key: string]: unknown;
1872
+ } | {
1873
+ "checked": boolean;
1874
+ "kind": ("checked" & string);
1875
+ "target": MethodPageClickParams__LocatorSpec;
1876
+ [key: string]: unknown;
1877
+ } | {
1878
+ "kind": ("selected" & string);
1879
+ "target": MethodPageClickParams__LocatorSpec;
1880
+ "values": Array<string>;
1881
+ [key: string]: unknown;
1882
+ });
1883
+ export type MethodPageClickParams__LocatorQuery = ({
1884
+ "id": number;
1885
+ "kind": ("node" & string);
1886
+ [key: string]: unknown;
1887
+ } | {
1888
+ "kind": ("css" & string);
1889
+ "selector": string;
1890
+ [key: string]: unknown;
1891
+ } | {
1892
+ "exact"?: boolean;
1893
+ "kind": ("text" & string);
1894
+ "text": string;
1895
+ [key: string]: unknown;
1896
+ } | {
1897
+ "kind": ("placeholder" & string);
1898
+ "text": string;
1899
+ [key: string]: unknown;
1900
+ } | {
1901
+ "kind": ("role" & string);
1902
+ "role": string;
1903
+ [key: string]: unknown;
1904
+ } | {
1905
+ "id": number;
1906
+ "kind": ("backend_node" & string);
1907
+ [key: string]: unknown;
1908
+ });
1909
+ export type MethodPageClickParams__LocatorSpec = {
1910
+ "frame_id"?: (string | null);
1911
+ "index"?: (number | null);
1912
+ "query": MethodPageClickParams__LocatorQuery;
1913
+ [key: string]: unknown;
1914
+ };
1915
+ export type MethodPageClickResult = {
1916
+ "action": string;
1917
+ "dispatch_intent": boolean;
1918
+ "error_code"?: (string | null);
1919
+ "finished_at_ms"?: (number | null);
1920
+ "id": string;
1921
+ "outcome": MethodPageClickResult__ActionOutcome;
1922
+ "preparation_intent": boolean;
1923
+ "receipt"?: (MethodPageClickResult__ActionReceipt | null);
1924
+ "runtime_id": string;
1925
+ "started_at_ms": number;
1926
+ "state": MethodPageClickResult__OperationState;
1927
+ "target_id": string;
1928
+ [key: string]: unknown;
1929
+ };
1930
+ export type MethodPageClickResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
1931
+ export type MethodPageClickResult__ActionReceipt = {
1932
+ "action": string;
1933
+ "already_satisfied": boolean;
1934
+ "cleanup_pending": boolean;
1935
+ "dispatch": MethodPageClickResult__DispatchState;
1936
+ "download_guid"?: (string | null);
1937
+ "elapsed_ms": number;
1938
+ "finished_at_ms": number;
1939
+ "outcome": MethodPageClickResult__ActionOutcome;
1940
+ "preparation_may_have_executed": boolean;
1941
+ "started_at_ms": number;
1942
+ "target_id": string;
1943
+ "verification"?: (string | null);
1944
+ [key: string]: unknown;
1945
+ };
1946
+ export type MethodPageClickResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
1947
+ export type MethodPageClickResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
1948
+ export type MethodPageClickTextParams = {
1949
+ "operation_id": string;
1950
+ "options"?: MethodPageClickTextParams__ActionOptions;
1951
+ "pageId": string;
1952
+ "text": string;
1953
+ [key: string]: unknown;
1954
+ };
1955
+ export type MethodPageClickTextParams__ActionOptions = {
1956
+ "expect"?: (MethodPageClickTextParams__Expectation | null);
1957
+ "timeout_ms"?: number;
1958
+ "wait_for_target"?: boolean;
1959
+ [key: string]: unknown;
1960
+ };
1961
+ export type MethodPageClickTextParams__Expectation = ({
1962
+ "kind": ("download_started" & string);
1963
+ [key: string]: unknown;
1964
+ } | {
1965
+ "kind": ("focused" & string);
1966
+ "target": MethodPageClickTextParams__LocatorSpec;
1967
+ [key: string]: unknown;
1968
+ } | {
1969
+ "contains"?: boolean;
1970
+ "kind": ("url" & string);
1971
+ "value": string;
1972
+ [key: string]: unknown;
1973
+ } | {
1974
+ "kind": ("visible" & string);
1975
+ "target": MethodPageClickTextParams__LocatorSpec;
1976
+ [key: string]: unknown;
1977
+ } | {
1978
+ "kind": ("hidden" & string);
1979
+ "target": MethodPageClickTextParams__LocatorSpec;
1980
+ [key: string]: unknown;
1981
+ } | {
1982
+ "contains"?: boolean;
1983
+ "kind": ("text" & string);
1984
+ "target": MethodPageClickTextParams__LocatorSpec;
1985
+ "value": string;
1986
+ [key: string]: unknown;
1987
+ } | {
1988
+ "kind": ("value" & string);
1989
+ "target": MethodPageClickTextParams__LocatorSpec;
1990
+ "value": string;
1991
+ [key: string]: unknown;
1992
+ } | {
1993
+ "checked": boolean;
1994
+ "kind": ("checked" & string);
1995
+ "target": MethodPageClickTextParams__LocatorSpec;
1996
+ [key: string]: unknown;
1997
+ } | {
1998
+ "kind": ("selected" & string);
1999
+ "target": MethodPageClickTextParams__LocatorSpec;
2000
+ "values": Array<string>;
2001
+ [key: string]: unknown;
2002
+ });
2003
+ export type MethodPageClickTextParams__LocatorQuery = ({
2004
+ "id": number;
2005
+ "kind": ("node" & string);
2006
+ [key: string]: unknown;
2007
+ } | {
2008
+ "kind": ("css" & string);
2009
+ "selector": string;
2010
+ [key: string]: unknown;
2011
+ } | {
2012
+ "exact"?: boolean;
2013
+ "kind": ("text" & string);
2014
+ "text": string;
2015
+ [key: string]: unknown;
2016
+ } | {
2017
+ "kind": ("placeholder" & string);
2018
+ "text": string;
2019
+ [key: string]: unknown;
2020
+ } | {
2021
+ "kind": ("role" & string);
2022
+ "role": string;
2023
+ [key: string]: unknown;
2024
+ } | {
2025
+ "id": number;
2026
+ "kind": ("backend_node" & string);
2027
+ [key: string]: unknown;
2028
+ });
2029
+ export type MethodPageClickTextParams__LocatorSpec = {
2030
+ "frame_id"?: (string | null);
2031
+ "index"?: (number | null);
2032
+ "query": MethodPageClickTextParams__LocatorQuery;
2033
+ [key: string]: unknown;
2034
+ };
2035
+ export type MethodPageClickTextResult = {
2036
+ "action": string;
2037
+ "dispatch_intent": boolean;
2038
+ "error_code"?: (string | null);
2039
+ "finished_at_ms"?: (number | null);
2040
+ "id": string;
2041
+ "outcome": MethodPageClickTextResult__ActionOutcome;
2042
+ "preparation_intent": boolean;
2043
+ "receipt"?: (MethodPageClickTextResult__ActionReceipt | null);
2044
+ "runtime_id": string;
2045
+ "started_at_ms": number;
2046
+ "state": MethodPageClickTextResult__OperationState;
2047
+ "target_id": string;
2048
+ [key: string]: unknown;
2049
+ };
2050
+ export type MethodPageClickTextResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2051
+ export type MethodPageClickTextResult__ActionReceipt = {
2052
+ "action": string;
2053
+ "already_satisfied": boolean;
2054
+ "cleanup_pending": boolean;
2055
+ "dispatch": MethodPageClickTextResult__DispatchState;
2056
+ "download_guid"?: (string | null);
2057
+ "elapsed_ms": number;
2058
+ "finished_at_ms": number;
2059
+ "outcome": MethodPageClickTextResult__ActionOutcome;
2060
+ "preparation_may_have_executed": boolean;
2061
+ "started_at_ms": number;
2062
+ "target_id": string;
2063
+ "verification"?: (string | null);
2064
+ [key: string]: unknown;
2065
+ };
2066
+ export type MethodPageClickTextResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2067
+ export type MethodPageClickTextResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2068
+ export type MethodPageCloseParams = {
2069
+ "pageId": string;
2070
+ [key: string]: unknown;
2071
+ };
2072
+ export type MethodPageCloseResult = Record<string, never>;
2073
+ export type MethodPageContentParams = {
2074
+ "pageId": string;
2075
+ [key: string]: unknown;
2076
+ };
2077
+ export type MethodPageContentResult = {
2078
+ "html": string;
2079
+ [key: string]: unknown;
2080
+ };
2081
+ export type MethodPageEvaluateParams = {
2082
+ "js": string;
2083
+ "pageId": string;
2084
+ [key: string]: unknown;
2085
+ };
2086
+ export type MethodPageEvaluateResult = {
2087
+ "result": unknown;
2088
+ [key: string]: unknown;
2089
+ };
2090
+ export type MethodPageEvaluateInFrameParams = {
2091
+ "frameId": string;
2092
+ "js": string;
2093
+ "pageId": string;
2094
+ [key: string]: unknown;
2095
+ };
2096
+ export type MethodPageEvaluateInFrameResult = {
2097
+ "result": unknown;
2098
+ [key: string]: unknown;
2099
+ };
2100
+ export type MethodPageExecuteParams = {
2101
+ "js": string;
2102
+ "pageId": string;
2103
+ [key: string]: unknown;
2104
+ };
2105
+ export type MethodPageExecuteResult = Record<string, never>;
2106
+ export type MethodPageExistsParams = {
2107
+ "pageId": string;
2108
+ "selector": string;
2109
+ [key: string]: unknown;
2110
+ };
2111
+ export type MethodPageExistsResult = {
2112
+ "exists": boolean;
2113
+ [key: string]: unknown;
2114
+ };
2115
+ export type MethodPageFetchParams = {
2116
+ "body"?: (string | null);
2117
+ "headers"?: Record<string, string>;
2118
+ "method"?: string;
2119
+ "pageId": string;
2120
+ "redirect"?: string;
2121
+ "url": string;
2122
+ [key: string]: unknown;
2123
+ };
2124
+ export type MethodPageFetchResult = {
2125
+ "body": string;
2126
+ "headers": Record<string, string>;
2127
+ "ok": boolean;
2128
+ "status": number;
2129
+ "url": string;
2130
+ [key: string]: unknown;
2131
+ };
2132
+ export type MethodPageFetchBoundedParams = {
2133
+ "body"?: (string | null);
2134
+ "headers"?: Record<string, string>;
2135
+ "maxBytes"?: number;
2136
+ "method"?: string;
2137
+ "pageId": string;
2138
+ "redirect"?: string;
2139
+ "url": string;
2140
+ [key: string]: unknown;
2141
+ };
2142
+ export type MethodPageFetchBoundedResult = {
2143
+ "body": string;
2144
+ "bodyOmitted"?: (string | null);
2145
+ "bytesRead": number;
2146
+ "headers": Record<string, string>;
2147
+ "redirected": boolean;
2148
+ "status": number;
2149
+ "statusText": string;
2150
+ "truncated": boolean;
2151
+ "type": string;
2152
+ "url": string;
2153
+ [key: string]: unknown;
2154
+ };
2155
+ export type MethodPageFillParams = {
2156
+ "operation_id": string;
2157
+ "options"?: MethodPageFillParams__ActionOptions;
2158
+ "pageId": string;
2159
+ "selector": string;
2160
+ "value": string;
2161
+ [key: string]: unknown;
2162
+ };
2163
+ export type MethodPageFillParams__ActionOptions = {
2164
+ "expect"?: (MethodPageFillParams__Expectation | null);
2165
+ "timeout_ms"?: number;
2166
+ "wait_for_target"?: boolean;
2167
+ [key: string]: unknown;
2168
+ };
2169
+ export type MethodPageFillParams__Expectation = ({
2170
+ "kind": ("download_started" & string);
2171
+ [key: string]: unknown;
2172
+ } | {
2173
+ "kind": ("focused" & string);
2174
+ "target": MethodPageFillParams__LocatorSpec;
2175
+ [key: string]: unknown;
2176
+ } | {
2177
+ "contains"?: boolean;
2178
+ "kind": ("url" & string);
2179
+ "value": string;
2180
+ [key: string]: unknown;
2181
+ } | {
2182
+ "kind": ("visible" & string);
2183
+ "target": MethodPageFillParams__LocatorSpec;
2184
+ [key: string]: unknown;
2185
+ } | {
2186
+ "kind": ("hidden" & string);
2187
+ "target": MethodPageFillParams__LocatorSpec;
2188
+ [key: string]: unknown;
2189
+ } | {
2190
+ "contains"?: boolean;
2191
+ "kind": ("text" & string);
2192
+ "target": MethodPageFillParams__LocatorSpec;
2193
+ "value": string;
2194
+ [key: string]: unknown;
2195
+ } | {
2196
+ "kind": ("value" & string);
2197
+ "target": MethodPageFillParams__LocatorSpec;
2198
+ "value": string;
2199
+ [key: string]: unknown;
2200
+ } | {
2201
+ "checked": boolean;
2202
+ "kind": ("checked" & string);
2203
+ "target": MethodPageFillParams__LocatorSpec;
2204
+ [key: string]: unknown;
2205
+ } | {
2206
+ "kind": ("selected" & string);
2207
+ "target": MethodPageFillParams__LocatorSpec;
2208
+ "values": Array<string>;
2209
+ [key: string]: unknown;
2210
+ });
2211
+ export type MethodPageFillParams__LocatorQuery = ({
2212
+ "id": number;
2213
+ "kind": ("node" & string);
2214
+ [key: string]: unknown;
2215
+ } | {
2216
+ "kind": ("css" & string);
2217
+ "selector": string;
2218
+ [key: string]: unknown;
2219
+ } | {
2220
+ "exact"?: boolean;
2221
+ "kind": ("text" & string);
2222
+ "text": string;
2223
+ [key: string]: unknown;
2224
+ } | {
2225
+ "kind": ("placeholder" & string);
2226
+ "text": string;
2227
+ [key: string]: unknown;
2228
+ } | {
2229
+ "kind": ("role" & string);
2230
+ "role": string;
2231
+ [key: string]: unknown;
2232
+ } | {
2233
+ "id": number;
2234
+ "kind": ("backend_node" & string);
2235
+ [key: string]: unknown;
2236
+ });
2237
+ export type MethodPageFillParams__LocatorSpec = {
2238
+ "frame_id"?: (string | null);
2239
+ "index"?: (number | null);
2240
+ "query": MethodPageFillParams__LocatorQuery;
2241
+ [key: string]: unknown;
2242
+ };
2243
+ export type MethodPageFillResult = {
2244
+ "action": string;
2245
+ "dispatch_intent": boolean;
2246
+ "error_code"?: (string | null);
2247
+ "finished_at_ms"?: (number | null);
2248
+ "id": string;
2249
+ "outcome": MethodPageFillResult__ActionOutcome;
2250
+ "preparation_intent": boolean;
2251
+ "receipt"?: (MethodPageFillResult__ActionReceipt | null);
2252
+ "runtime_id": string;
2253
+ "started_at_ms": number;
2254
+ "state": MethodPageFillResult__OperationState;
2255
+ "target_id": string;
2256
+ [key: string]: unknown;
2257
+ };
2258
+ export type MethodPageFillResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2259
+ export type MethodPageFillResult__ActionReceipt = {
2260
+ "action": string;
2261
+ "already_satisfied": boolean;
2262
+ "cleanup_pending": boolean;
2263
+ "dispatch": MethodPageFillResult__DispatchState;
2264
+ "download_guid"?: (string | null);
2265
+ "elapsed_ms": number;
2266
+ "finished_at_ms": number;
2267
+ "outcome": MethodPageFillResult__ActionOutcome;
2268
+ "preparation_may_have_executed": boolean;
2269
+ "started_at_ms": number;
2270
+ "target_id": string;
2271
+ "verification"?: (string | null);
2272
+ [key: string]: unknown;
2273
+ };
2274
+ export type MethodPageFillResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2275
+ export type MethodPageFillResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2276
+ export type MethodPageFramesParams = {
2277
+ "pageId": string;
2278
+ [key: string]: unknown;
2279
+ };
2280
+ export type MethodPageFramesResult = Array<MethodPageFramesResult__FrameInfo>;
2281
+ export type MethodPageFramesResult__FrameInfo = {
2282
+ "id": string;
2283
+ "name"?: (string | null);
2284
+ "url": string;
2285
+ [key: string]: unknown;
2286
+ };
2287
+ export type MethodPageGetAttributeParams = {
2288
+ "name": string;
2289
+ "pageId": string;
2290
+ "selector": string;
2291
+ [key: string]: unknown;
2292
+ };
2293
+ export type MethodPageGetAttributeResult = {
2294
+ "value"?: (string | null);
2295
+ [key: string]: unknown;
2296
+ };
2297
+ export type MethodPageGetTextParams = {
2298
+ "pageId": string;
2299
+ "selector": string;
2300
+ [key: string]: unknown;
2301
+ };
2302
+ export type MethodPageGetTextResult = {
2303
+ "text": string;
2304
+ [key: string]: unknown;
2305
+ };
2306
+ export type MethodPageGotoParams = {
2307
+ "operation_id": string;
2308
+ "options"?: MethodPageGotoParams__ActionOptions;
2309
+ "pageId": string;
2310
+ "url": string;
2311
+ [key: string]: unknown;
2312
+ };
2313
+ export type MethodPageGotoParams__ActionOptions = {
2314
+ "expect"?: (MethodPageGotoParams__Expectation | null);
2315
+ "timeout_ms"?: number;
2316
+ "wait_for_target"?: boolean;
2317
+ [key: string]: unknown;
2318
+ };
2319
+ export type MethodPageGotoParams__Expectation = ({
2320
+ "kind": ("download_started" & string);
2321
+ [key: string]: unknown;
2322
+ } | {
2323
+ "kind": ("focused" & string);
2324
+ "target": MethodPageGotoParams__LocatorSpec;
2325
+ [key: string]: unknown;
2326
+ } | {
2327
+ "contains"?: boolean;
2328
+ "kind": ("url" & string);
2329
+ "value": string;
2330
+ [key: string]: unknown;
2331
+ } | {
2332
+ "kind": ("visible" & string);
2333
+ "target": MethodPageGotoParams__LocatorSpec;
2334
+ [key: string]: unknown;
2335
+ } | {
2336
+ "kind": ("hidden" & string);
2337
+ "target": MethodPageGotoParams__LocatorSpec;
2338
+ [key: string]: unknown;
2339
+ } | {
2340
+ "contains"?: boolean;
2341
+ "kind": ("text" & string);
2342
+ "target": MethodPageGotoParams__LocatorSpec;
2343
+ "value": string;
2344
+ [key: string]: unknown;
2345
+ } | {
2346
+ "kind": ("value" & string);
2347
+ "target": MethodPageGotoParams__LocatorSpec;
2348
+ "value": string;
2349
+ [key: string]: unknown;
2350
+ } | {
2351
+ "checked": boolean;
2352
+ "kind": ("checked" & string);
2353
+ "target": MethodPageGotoParams__LocatorSpec;
2354
+ [key: string]: unknown;
2355
+ } | {
2356
+ "kind": ("selected" & string);
2357
+ "target": MethodPageGotoParams__LocatorSpec;
2358
+ "values": Array<string>;
2359
+ [key: string]: unknown;
2360
+ });
2361
+ export type MethodPageGotoParams__LocatorQuery = ({
2362
+ "id": number;
2363
+ "kind": ("node" & string);
2364
+ [key: string]: unknown;
2365
+ } | {
2366
+ "kind": ("css" & string);
2367
+ "selector": string;
2368
+ [key: string]: unknown;
2369
+ } | {
2370
+ "exact"?: boolean;
2371
+ "kind": ("text" & string);
2372
+ "text": string;
2373
+ [key: string]: unknown;
2374
+ } | {
2375
+ "kind": ("placeholder" & string);
2376
+ "text": string;
2377
+ [key: string]: unknown;
2378
+ } | {
2379
+ "kind": ("role" & string);
2380
+ "role": string;
2381
+ [key: string]: unknown;
2382
+ } | {
2383
+ "id": number;
2384
+ "kind": ("backend_node" & string);
2385
+ [key: string]: unknown;
2386
+ });
2387
+ export type MethodPageGotoParams__LocatorSpec = {
2388
+ "frame_id"?: (string | null);
2389
+ "index"?: (number | null);
2390
+ "query": MethodPageGotoParams__LocatorQuery;
2391
+ [key: string]: unknown;
2392
+ };
2393
+ export type MethodPageGotoResult = {
2394
+ "action": string;
2395
+ "dispatch_intent": boolean;
2396
+ "error_code"?: (string | null);
2397
+ "finished_at_ms"?: (number | null);
2398
+ "id": string;
2399
+ "outcome": MethodPageGotoResult__ActionOutcome;
2400
+ "preparation_intent": boolean;
2401
+ "receipt"?: (MethodPageGotoResult__ActionReceipt | null);
2402
+ "runtime_id": string;
2403
+ "started_at_ms": number;
2404
+ "state": MethodPageGotoResult__OperationState;
2405
+ "target_id": string;
2406
+ [key: string]: unknown;
2407
+ };
2408
+ export type MethodPageGotoResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2409
+ export type MethodPageGotoResult__ActionReceipt = {
2410
+ "action": string;
2411
+ "already_satisfied": boolean;
2412
+ "cleanup_pending": boolean;
2413
+ "dispatch": MethodPageGotoResult__DispatchState;
2414
+ "download_guid"?: (string | null);
2415
+ "elapsed_ms": number;
2416
+ "finished_at_ms": number;
2417
+ "outcome": MethodPageGotoResult__ActionOutcome;
2418
+ "preparation_may_have_executed": boolean;
2419
+ "started_at_ms": number;
2420
+ "target_id": string;
2421
+ "verification"?: (string | null);
2422
+ [key: string]: unknown;
2423
+ };
2424
+ export type MethodPageGotoResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2425
+ export type MethodPageGotoResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2426
+ export type MethodPageHoverParams = {
2427
+ "operation_id": string;
2428
+ "options"?: MethodPageHoverParams__ActionOptions;
2429
+ "pageId": string;
2430
+ "selector": string;
2431
+ [key: string]: unknown;
2432
+ };
2433
+ export type MethodPageHoverParams__ActionOptions = {
2434
+ "expect"?: (MethodPageHoverParams__Expectation | null);
2435
+ "timeout_ms"?: number;
2436
+ "wait_for_target"?: boolean;
2437
+ [key: string]: unknown;
2438
+ };
2439
+ export type MethodPageHoverParams__Expectation = ({
2440
+ "kind": ("download_started" & string);
2441
+ [key: string]: unknown;
2442
+ } | {
2443
+ "kind": ("focused" & string);
2444
+ "target": MethodPageHoverParams__LocatorSpec;
2445
+ [key: string]: unknown;
2446
+ } | {
2447
+ "contains"?: boolean;
2448
+ "kind": ("url" & string);
2449
+ "value": string;
2450
+ [key: string]: unknown;
2451
+ } | {
2452
+ "kind": ("visible" & string);
2453
+ "target": MethodPageHoverParams__LocatorSpec;
2454
+ [key: string]: unknown;
2455
+ } | {
2456
+ "kind": ("hidden" & string);
2457
+ "target": MethodPageHoverParams__LocatorSpec;
2458
+ [key: string]: unknown;
2459
+ } | {
2460
+ "contains"?: boolean;
2461
+ "kind": ("text" & string);
2462
+ "target": MethodPageHoverParams__LocatorSpec;
2463
+ "value": string;
2464
+ [key: string]: unknown;
2465
+ } | {
2466
+ "kind": ("value" & string);
2467
+ "target": MethodPageHoverParams__LocatorSpec;
2468
+ "value": string;
2469
+ [key: string]: unknown;
2470
+ } | {
2471
+ "checked": boolean;
2472
+ "kind": ("checked" & string);
2473
+ "target": MethodPageHoverParams__LocatorSpec;
2474
+ [key: string]: unknown;
2475
+ } | {
2476
+ "kind": ("selected" & string);
2477
+ "target": MethodPageHoverParams__LocatorSpec;
2478
+ "values": Array<string>;
2479
+ [key: string]: unknown;
2480
+ });
2481
+ export type MethodPageHoverParams__LocatorQuery = ({
2482
+ "id": number;
2483
+ "kind": ("node" & string);
2484
+ [key: string]: unknown;
2485
+ } | {
2486
+ "kind": ("css" & string);
2487
+ "selector": string;
2488
+ [key: string]: unknown;
2489
+ } | {
2490
+ "exact"?: boolean;
2491
+ "kind": ("text" & string);
2492
+ "text": string;
2493
+ [key: string]: unknown;
2494
+ } | {
2495
+ "kind": ("placeholder" & string);
2496
+ "text": string;
2497
+ [key: string]: unknown;
2498
+ } | {
2499
+ "kind": ("role" & string);
2500
+ "role": string;
2501
+ [key: string]: unknown;
2502
+ } | {
2503
+ "id": number;
2504
+ "kind": ("backend_node" & string);
2505
+ [key: string]: unknown;
2506
+ });
2507
+ export type MethodPageHoverParams__LocatorSpec = {
2508
+ "frame_id"?: (string | null);
2509
+ "index"?: (number | null);
2510
+ "query": MethodPageHoverParams__LocatorQuery;
2511
+ [key: string]: unknown;
2512
+ };
2513
+ export type MethodPageHoverResult = {
2514
+ "action": string;
2515
+ "dispatch_intent": boolean;
2516
+ "error_code"?: (string | null);
2517
+ "finished_at_ms"?: (number | null);
2518
+ "id": string;
2519
+ "outcome": MethodPageHoverResult__ActionOutcome;
2520
+ "preparation_intent": boolean;
2521
+ "receipt"?: (MethodPageHoverResult__ActionReceipt | null);
2522
+ "runtime_id": string;
2523
+ "started_at_ms": number;
2524
+ "state": MethodPageHoverResult__OperationState;
2525
+ "target_id": string;
2526
+ [key: string]: unknown;
2527
+ };
2528
+ export type MethodPageHoverResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2529
+ export type MethodPageHoverResult__ActionReceipt = {
2530
+ "action": string;
2531
+ "already_satisfied": boolean;
2532
+ "cleanup_pending": boolean;
2533
+ "dispatch": MethodPageHoverResult__DispatchState;
2534
+ "download_guid"?: (string | null);
2535
+ "elapsed_ms": number;
2536
+ "finished_at_ms": number;
2537
+ "outcome": MethodPageHoverResult__ActionOutcome;
2538
+ "preparation_may_have_executed": boolean;
2539
+ "started_at_ms": number;
2540
+ "target_id": string;
2541
+ "verification"?: (string | null);
2542
+ [key: string]: unknown;
2543
+ };
2544
+ export type MethodPageHoverResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2545
+ export type MethodPageHoverResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2546
+ export type MethodPageHumanClickParams = {
2547
+ "operation_id": string;
2548
+ "options"?: MethodPageHumanClickParams__ActionOptions;
2549
+ "pageId": string;
2550
+ "selector": string;
2551
+ [key: string]: unknown;
2552
+ };
2553
+ export type MethodPageHumanClickParams__ActionOptions = {
2554
+ "expect"?: (MethodPageHumanClickParams__Expectation | null);
2555
+ "timeout_ms"?: number;
2556
+ "wait_for_target"?: boolean;
2557
+ [key: string]: unknown;
2558
+ };
2559
+ export type MethodPageHumanClickParams__Expectation = ({
2560
+ "kind": ("download_started" & string);
2561
+ [key: string]: unknown;
2562
+ } | {
2563
+ "kind": ("focused" & string);
2564
+ "target": MethodPageHumanClickParams__LocatorSpec;
2565
+ [key: string]: unknown;
2566
+ } | {
2567
+ "contains"?: boolean;
2568
+ "kind": ("url" & string);
2569
+ "value": string;
2570
+ [key: string]: unknown;
2571
+ } | {
2572
+ "kind": ("visible" & string);
2573
+ "target": MethodPageHumanClickParams__LocatorSpec;
2574
+ [key: string]: unknown;
2575
+ } | {
2576
+ "kind": ("hidden" & string);
2577
+ "target": MethodPageHumanClickParams__LocatorSpec;
2578
+ [key: string]: unknown;
2579
+ } | {
2580
+ "contains"?: boolean;
2581
+ "kind": ("text" & string);
2582
+ "target": MethodPageHumanClickParams__LocatorSpec;
2583
+ "value": string;
2584
+ [key: string]: unknown;
2585
+ } | {
2586
+ "kind": ("value" & string);
2587
+ "target": MethodPageHumanClickParams__LocatorSpec;
2588
+ "value": string;
2589
+ [key: string]: unknown;
2590
+ } | {
2591
+ "checked": boolean;
2592
+ "kind": ("checked" & string);
2593
+ "target": MethodPageHumanClickParams__LocatorSpec;
2594
+ [key: string]: unknown;
2595
+ } | {
2596
+ "kind": ("selected" & string);
2597
+ "target": MethodPageHumanClickParams__LocatorSpec;
2598
+ "values": Array<string>;
2599
+ [key: string]: unknown;
2600
+ });
2601
+ export type MethodPageHumanClickParams__LocatorQuery = ({
2602
+ "id": number;
2603
+ "kind": ("node" & string);
2604
+ [key: string]: unknown;
2605
+ } | {
2606
+ "kind": ("css" & string);
2607
+ "selector": string;
2608
+ [key: string]: unknown;
2609
+ } | {
2610
+ "exact"?: boolean;
2611
+ "kind": ("text" & string);
2612
+ "text": string;
2613
+ [key: string]: unknown;
2614
+ } | {
2615
+ "kind": ("placeholder" & string);
2616
+ "text": string;
2617
+ [key: string]: unknown;
2618
+ } | {
2619
+ "kind": ("role" & string);
2620
+ "role": string;
2621
+ [key: string]: unknown;
2622
+ } | {
2623
+ "id": number;
2624
+ "kind": ("backend_node" & string);
2625
+ [key: string]: unknown;
2626
+ });
2627
+ export type MethodPageHumanClickParams__LocatorSpec = {
2628
+ "frame_id"?: (string | null);
2629
+ "index"?: (number | null);
2630
+ "query": MethodPageHumanClickParams__LocatorQuery;
2631
+ [key: string]: unknown;
2632
+ };
2633
+ export type MethodPageHumanClickResult = {
2634
+ "action": string;
2635
+ "dispatch_intent": boolean;
2636
+ "error_code"?: (string | null);
2637
+ "finished_at_ms"?: (number | null);
2638
+ "id": string;
2639
+ "outcome": MethodPageHumanClickResult__ActionOutcome;
2640
+ "preparation_intent": boolean;
2641
+ "receipt"?: (MethodPageHumanClickResult__ActionReceipt | null);
2642
+ "runtime_id": string;
2643
+ "started_at_ms": number;
2644
+ "state": MethodPageHumanClickResult__OperationState;
2645
+ "target_id": string;
2646
+ [key: string]: unknown;
2647
+ };
2648
+ export type MethodPageHumanClickResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2649
+ export type MethodPageHumanClickResult__ActionReceipt = {
2650
+ "action": string;
2651
+ "already_satisfied": boolean;
2652
+ "cleanup_pending": boolean;
2653
+ "dispatch": MethodPageHumanClickResult__DispatchState;
2654
+ "download_guid"?: (string | null);
2655
+ "elapsed_ms": number;
2656
+ "finished_at_ms": number;
2657
+ "outcome": MethodPageHumanClickResult__ActionOutcome;
2658
+ "preparation_may_have_executed": boolean;
2659
+ "started_at_ms": number;
2660
+ "target_id": string;
2661
+ "verification"?: (string | null);
2662
+ [key: string]: unknown;
2663
+ };
2664
+ export type MethodPageHumanClickResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2665
+ export type MethodPageHumanClickResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2666
+ export type MethodPageHumanClickTextParams = {
2667
+ "operation_id": string;
2668
+ "options"?: MethodPageHumanClickTextParams__ActionOptions;
2669
+ "pageId": string;
2670
+ "text": string;
2671
+ [key: string]: unknown;
2672
+ };
2673
+ export type MethodPageHumanClickTextParams__ActionOptions = {
2674
+ "expect"?: (MethodPageHumanClickTextParams__Expectation | null);
2675
+ "timeout_ms"?: number;
2676
+ "wait_for_target"?: boolean;
2677
+ [key: string]: unknown;
2678
+ };
2679
+ export type MethodPageHumanClickTextParams__Expectation = ({
2680
+ "kind": ("download_started" & string);
2681
+ [key: string]: unknown;
2682
+ } | {
2683
+ "kind": ("focused" & string);
2684
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
2685
+ [key: string]: unknown;
2686
+ } | {
2687
+ "contains"?: boolean;
2688
+ "kind": ("url" & string);
2689
+ "value": string;
2690
+ [key: string]: unknown;
2691
+ } | {
2692
+ "kind": ("visible" & string);
2693
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
2694
+ [key: string]: unknown;
2695
+ } | {
2696
+ "kind": ("hidden" & string);
2697
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
2698
+ [key: string]: unknown;
2699
+ } | {
2700
+ "contains"?: boolean;
2701
+ "kind": ("text" & string);
2702
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
2703
+ "value": string;
2704
+ [key: string]: unknown;
2705
+ } | {
2706
+ "kind": ("value" & string);
2707
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
2708
+ "value": string;
2709
+ [key: string]: unknown;
2710
+ } | {
2711
+ "checked": boolean;
2712
+ "kind": ("checked" & string);
2713
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
2714
+ [key: string]: unknown;
2715
+ } | {
2716
+ "kind": ("selected" & string);
2717
+ "target": MethodPageHumanClickTextParams__LocatorSpec;
2718
+ "values": Array<string>;
2719
+ [key: string]: unknown;
2720
+ });
2721
+ export type MethodPageHumanClickTextParams__LocatorQuery = ({
2722
+ "id": number;
2723
+ "kind": ("node" & string);
2724
+ [key: string]: unknown;
2725
+ } | {
2726
+ "kind": ("css" & string);
2727
+ "selector": string;
2728
+ [key: string]: unknown;
2729
+ } | {
2730
+ "exact"?: boolean;
2731
+ "kind": ("text" & string);
2732
+ "text": string;
2733
+ [key: string]: unknown;
2734
+ } | {
2735
+ "kind": ("placeholder" & string);
2736
+ "text": string;
2737
+ [key: string]: unknown;
2738
+ } | {
2739
+ "kind": ("role" & string);
2740
+ "role": string;
2741
+ [key: string]: unknown;
2742
+ } | {
2743
+ "id": number;
2744
+ "kind": ("backend_node" & string);
2745
+ [key: string]: unknown;
2746
+ });
2747
+ export type MethodPageHumanClickTextParams__LocatorSpec = {
2748
+ "frame_id"?: (string | null);
2749
+ "index"?: (number | null);
2750
+ "query": MethodPageHumanClickTextParams__LocatorQuery;
2751
+ [key: string]: unknown;
2752
+ };
2753
+ export type MethodPageHumanClickTextResult = {
2754
+ "action": string;
2755
+ "dispatch_intent": boolean;
2756
+ "error_code"?: (string | null);
2757
+ "finished_at_ms"?: (number | null);
2758
+ "id": string;
2759
+ "outcome": MethodPageHumanClickTextResult__ActionOutcome;
2760
+ "preparation_intent": boolean;
2761
+ "receipt"?: (MethodPageHumanClickTextResult__ActionReceipt | null);
2762
+ "runtime_id": string;
2763
+ "started_at_ms": number;
2764
+ "state": MethodPageHumanClickTextResult__OperationState;
2765
+ "target_id": string;
2766
+ [key: string]: unknown;
2767
+ };
2768
+ export type MethodPageHumanClickTextResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2769
+ export type MethodPageHumanClickTextResult__ActionReceipt = {
2770
+ "action": string;
2771
+ "already_satisfied": boolean;
2772
+ "cleanup_pending": boolean;
2773
+ "dispatch": MethodPageHumanClickTextResult__DispatchState;
2774
+ "download_guid"?: (string | null);
2775
+ "elapsed_ms": number;
2776
+ "finished_at_ms": number;
2777
+ "outcome": MethodPageHumanClickTextResult__ActionOutcome;
2778
+ "preparation_may_have_executed": boolean;
2779
+ "started_at_ms": number;
2780
+ "target_id": string;
2781
+ "verification"?: (string | null);
2782
+ [key: string]: unknown;
2783
+ };
2784
+ export type MethodPageHumanClickTextResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2785
+ export type MethodPageHumanClickTextResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2786
+ export type MethodPageHumanFillParams = {
2787
+ "operation_id": string;
2788
+ "options"?: MethodPageHumanFillParams__ActionOptions;
2789
+ "pageId": string;
2790
+ "selector": string;
2791
+ "value": string;
2792
+ [key: string]: unknown;
2793
+ };
2794
+ export type MethodPageHumanFillParams__ActionOptions = {
2795
+ "expect"?: (MethodPageHumanFillParams__Expectation | null);
2796
+ "timeout_ms"?: number;
2797
+ "wait_for_target"?: boolean;
2798
+ [key: string]: unknown;
2799
+ };
2800
+ export type MethodPageHumanFillParams__Expectation = ({
2801
+ "kind": ("download_started" & string);
2802
+ [key: string]: unknown;
2803
+ } | {
2804
+ "kind": ("focused" & string);
2805
+ "target": MethodPageHumanFillParams__LocatorSpec;
2806
+ [key: string]: unknown;
2807
+ } | {
2808
+ "contains"?: boolean;
2809
+ "kind": ("url" & string);
2810
+ "value": string;
2811
+ [key: string]: unknown;
2812
+ } | {
2813
+ "kind": ("visible" & string);
2814
+ "target": MethodPageHumanFillParams__LocatorSpec;
2815
+ [key: string]: unknown;
2816
+ } | {
2817
+ "kind": ("hidden" & string);
2818
+ "target": MethodPageHumanFillParams__LocatorSpec;
2819
+ [key: string]: unknown;
2820
+ } | {
2821
+ "contains"?: boolean;
2822
+ "kind": ("text" & string);
2823
+ "target": MethodPageHumanFillParams__LocatorSpec;
2824
+ "value": string;
2825
+ [key: string]: unknown;
2826
+ } | {
2827
+ "kind": ("value" & string);
2828
+ "target": MethodPageHumanFillParams__LocatorSpec;
2829
+ "value": string;
2830
+ [key: string]: unknown;
2831
+ } | {
2832
+ "checked": boolean;
2833
+ "kind": ("checked" & string);
2834
+ "target": MethodPageHumanFillParams__LocatorSpec;
2835
+ [key: string]: unknown;
2836
+ } | {
2837
+ "kind": ("selected" & string);
2838
+ "target": MethodPageHumanFillParams__LocatorSpec;
2839
+ "values": Array<string>;
2840
+ [key: string]: unknown;
2841
+ });
2842
+ export type MethodPageHumanFillParams__LocatorQuery = ({
2843
+ "id": number;
2844
+ "kind": ("node" & string);
2845
+ [key: string]: unknown;
2846
+ } | {
2847
+ "kind": ("css" & string);
2848
+ "selector": string;
2849
+ [key: string]: unknown;
2850
+ } | {
2851
+ "exact"?: boolean;
2852
+ "kind": ("text" & string);
2853
+ "text": string;
2854
+ [key: string]: unknown;
2855
+ } | {
2856
+ "kind": ("placeholder" & string);
2857
+ "text": string;
2858
+ [key: string]: unknown;
2859
+ } | {
2860
+ "kind": ("role" & string);
2861
+ "role": string;
2862
+ [key: string]: unknown;
2863
+ } | {
2864
+ "id": number;
2865
+ "kind": ("backend_node" & string);
2866
+ [key: string]: unknown;
2867
+ });
2868
+ export type MethodPageHumanFillParams__LocatorSpec = {
2869
+ "frame_id"?: (string | null);
2870
+ "index"?: (number | null);
2871
+ "query": MethodPageHumanFillParams__LocatorQuery;
2872
+ [key: string]: unknown;
2873
+ };
2874
+ export type MethodPageHumanFillResult = {
2875
+ "action": string;
2876
+ "dispatch_intent": boolean;
2877
+ "error_code"?: (string | null);
2878
+ "finished_at_ms"?: (number | null);
2879
+ "id": string;
2880
+ "outcome": MethodPageHumanFillResult__ActionOutcome;
2881
+ "preparation_intent": boolean;
2882
+ "receipt"?: (MethodPageHumanFillResult__ActionReceipt | null);
2883
+ "runtime_id": string;
2884
+ "started_at_ms": number;
2885
+ "state": MethodPageHumanFillResult__OperationState;
2886
+ "target_id": string;
2887
+ [key: string]: unknown;
2888
+ };
2889
+ export type MethodPageHumanFillResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
2890
+ export type MethodPageHumanFillResult__ActionReceipt = {
2891
+ "action": string;
2892
+ "already_satisfied": boolean;
2893
+ "cleanup_pending": boolean;
2894
+ "dispatch": MethodPageHumanFillResult__DispatchState;
2895
+ "download_guid"?: (string | null);
2896
+ "elapsed_ms": number;
2897
+ "finished_at_ms": number;
2898
+ "outcome": MethodPageHumanFillResult__ActionOutcome;
2899
+ "preparation_may_have_executed": boolean;
2900
+ "started_at_ms": number;
2901
+ "target_id": string;
2902
+ "verification"?: (string | null);
2903
+ [key: string]: unknown;
2904
+ };
2905
+ export type MethodPageHumanFillResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
2906
+ export type MethodPageHumanFillResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
2907
+ export type MethodPageKeyDownParams = {
2908
+ "expect"?: (MethodPageKeyDownParams__Expectation | null);
2909
+ "key": string;
2910
+ "operation_id"?: (string | null);
2911
+ "pageId": string;
2912
+ "timeout_ms"?: (number | null);
2913
+ [key: string]: unknown;
2914
+ };
2915
+ export type MethodPageKeyDownParams__Expectation = ({
2916
+ "kind": ("download_started" & string);
2917
+ [key: string]: unknown;
2918
+ } | {
2919
+ "kind": ("focused" & string);
2920
+ "target": MethodPageKeyDownParams__LocatorSpec;
2921
+ [key: string]: unknown;
2922
+ } | {
2923
+ "contains"?: boolean;
2924
+ "kind": ("url" & string);
2925
+ "value": string;
2926
+ [key: string]: unknown;
2927
+ } | {
2928
+ "kind": ("visible" & string);
2929
+ "target": MethodPageKeyDownParams__LocatorSpec;
2930
+ [key: string]: unknown;
2931
+ } | {
2932
+ "kind": ("hidden" & string);
2933
+ "target": MethodPageKeyDownParams__LocatorSpec;
2934
+ [key: string]: unknown;
2935
+ } | {
2936
+ "contains"?: boolean;
2937
+ "kind": ("text" & string);
2938
+ "target": MethodPageKeyDownParams__LocatorSpec;
2939
+ "value": string;
2940
+ [key: string]: unknown;
2941
+ } | {
2942
+ "kind": ("value" & string);
2943
+ "target": MethodPageKeyDownParams__LocatorSpec;
2944
+ "value": string;
2945
+ [key: string]: unknown;
2946
+ } | {
2947
+ "checked": boolean;
2948
+ "kind": ("checked" & string);
2949
+ "target": MethodPageKeyDownParams__LocatorSpec;
2950
+ [key: string]: unknown;
2951
+ } | {
2952
+ "kind": ("selected" & string);
2953
+ "target": MethodPageKeyDownParams__LocatorSpec;
2954
+ "values": Array<string>;
2955
+ [key: string]: unknown;
2956
+ });
2957
+ export type MethodPageKeyDownParams__LocatorQuery = ({
2958
+ "id": number;
2959
+ "kind": ("node" & string);
2960
+ [key: string]: unknown;
2961
+ } | {
2962
+ "kind": ("css" & string);
2963
+ "selector": string;
2964
+ [key: string]: unknown;
2965
+ } | {
2966
+ "exact"?: boolean;
2967
+ "kind": ("text" & string);
2968
+ "text": string;
2969
+ [key: string]: unknown;
2970
+ } | {
2971
+ "kind": ("placeholder" & string);
2972
+ "text": string;
2973
+ [key: string]: unknown;
2974
+ } | {
2975
+ "kind": ("role" & string);
2976
+ "role": string;
2977
+ [key: string]: unknown;
2978
+ } | {
2979
+ "id": number;
2980
+ "kind": ("backend_node" & string);
2981
+ [key: string]: unknown;
2982
+ });
2983
+ export type MethodPageKeyDownParams__LocatorSpec = {
2984
+ "frame_id"?: (string | null);
2985
+ "index"?: (number | null);
2986
+ "query": MethodPageKeyDownParams__LocatorQuery;
2987
+ [key: string]: unknown;
2988
+ };
2989
+ export type MethodPageKeyDownResult = Record<string, never>;
2990
+ export type MethodPageKeyUpParams = {
2991
+ "expect"?: (MethodPageKeyUpParams__Expectation | null);
2992
+ "key": string;
2993
+ "operation_id"?: (string | null);
2994
+ "pageId": string;
2995
+ "timeout_ms"?: (number | null);
2996
+ [key: string]: unknown;
2997
+ };
2998
+ export type MethodPageKeyUpParams__Expectation = ({
2999
+ "kind": ("download_started" & string);
3000
+ [key: string]: unknown;
3001
+ } | {
3002
+ "kind": ("focused" & string);
3003
+ "target": MethodPageKeyUpParams__LocatorSpec;
3004
+ [key: string]: unknown;
3005
+ } | {
3006
+ "contains"?: boolean;
3007
+ "kind": ("url" & string);
3008
+ "value": string;
3009
+ [key: string]: unknown;
3010
+ } | {
3011
+ "kind": ("visible" & string);
3012
+ "target": MethodPageKeyUpParams__LocatorSpec;
3013
+ [key: string]: unknown;
3014
+ } | {
3015
+ "kind": ("hidden" & string);
3016
+ "target": MethodPageKeyUpParams__LocatorSpec;
3017
+ [key: string]: unknown;
3018
+ } | {
3019
+ "contains"?: boolean;
3020
+ "kind": ("text" & string);
3021
+ "target": MethodPageKeyUpParams__LocatorSpec;
3022
+ "value": string;
3023
+ [key: string]: unknown;
3024
+ } | {
3025
+ "kind": ("value" & string);
3026
+ "target": MethodPageKeyUpParams__LocatorSpec;
3027
+ "value": string;
3028
+ [key: string]: unknown;
3029
+ } | {
3030
+ "checked": boolean;
3031
+ "kind": ("checked" & string);
3032
+ "target": MethodPageKeyUpParams__LocatorSpec;
3033
+ [key: string]: unknown;
3034
+ } | {
3035
+ "kind": ("selected" & string);
3036
+ "target": MethodPageKeyUpParams__LocatorSpec;
3037
+ "values": Array<string>;
3038
+ [key: string]: unknown;
3039
+ });
3040
+ export type MethodPageKeyUpParams__LocatorQuery = ({
3041
+ "id": number;
3042
+ "kind": ("node" & string);
3043
+ [key: string]: unknown;
3044
+ } | {
3045
+ "kind": ("css" & string);
3046
+ "selector": string;
3047
+ [key: string]: unknown;
3048
+ } | {
3049
+ "exact"?: boolean;
3050
+ "kind": ("text" & string);
3051
+ "text": string;
3052
+ [key: string]: unknown;
3053
+ } | {
3054
+ "kind": ("placeholder" & string);
3055
+ "text": string;
3056
+ [key: string]: unknown;
3057
+ } | {
3058
+ "kind": ("role" & string);
3059
+ "role": string;
3060
+ [key: string]: unknown;
3061
+ } | {
3062
+ "id": number;
3063
+ "kind": ("backend_node" & string);
3064
+ [key: string]: unknown;
3065
+ });
3066
+ export type MethodPageKeyUpParams__LocatorSpec = {
3067
+ "frame_id"?: (string | null);
3068
+ "index"?: (number | null);
3069
+ "query": MethodPageKeyUpParams__LocatorQuery;
3070
+ [key: string]: unknown;
3071
+ };
3072
+ export type MethodPageKeyUpResult = Record<string, never>;
3073
+ export type MethodPageMouseDownParams = {
3074
+ "button": MethodPageMouseDownParams__MouseButton;
3075
+ "pageId": string;
3076
+ "x": number;
3077
+ "y": number;
3078
+ [key: string]: unknown;
3079
+ };
3080
+ export type MethodPageMouseDownParams__MouseButton = (("left" | "middle" | "right" | "back" | "forward") & string);
3081
+ export type MethodPageMouseDownResult = Record<string, never>;
3082
+ export type MethodPageMouseMoveParams = {
3083
+ "pageId": string;
3084
+ "x": number;
3085
+ "y": number;
3086
+ [key: string]: unknown;
3087
+ };
3088
+ export type MethodPageMouseMoveResult = Record<string, never>;
3089
+ export type MethodPageMouseUpParams = {
3090
+ "button": MethodPageMouseUpParams__MouseButton;
3091
+ "pageId": string;
3092
+ "x": number;
3093
+ "y": number;
3094
+ [key: string]: unknown;
3095
+ };
3096
+ export type MethodPageMouseUpParams__MouseButton = (("left" | "middle" | "right" | "back" | "forward") & string);
3097
+ export type MethodPageMouseUpResult = Record<string, never>;
3098
+ export type MethodPagePressKeyParams = {
3099
+ "key": string;
3100
+ "operation_id": string;
3101
+ "options"?: MethodPagePressKeyParams__ActionOptions;
3102
+ "pageId": string;
3103
+ [key: string]: unknown;
3104
+ };
3105
+ export type MethodPagePressKeyParams__ActionOptions = {
3106
+ "expect"?: (MethodPagePressKeyParams__Expectation | null);
3107
+ "timeout_ms"?: number;
3108
+ "wait_for_target"?: boolean;
3109
+ [key: string]: unknown;
3110
+ };
3111
+ export type MethodPagePressKeyParams__Expectation = ({
3112
+ "kind": ("download_started" & string);
3113
+ [key: string]: unknown;
3114
+ } | {
3115
+ "kind": ("focused" & string);
3116
+ "target": MethodPagePressKeyParams__LocatorSpec;
3117
+ [key: string]: unknown;
3118
+ } | {
3119
+ "contains"?: boolean;
3120
+ "kind": ("url" & string);
3121
+ "value": string;
3122
+ [key: string]: unknown;
3123
+ } | {
3124
+ "kind": ("visible" & string);
3125
+ "target": MethodPagePressKeyParams__LocatorSpec;
3126
+ [key: string]: unknown;
3127
+ } | {
3128
+ "kind": ("hidden" & string);
3129
+ "target": MethodPagePressKeyParams__LocatorSpec;
3130
+ [key: string]: unknown;
3131
+ } | {
3132
+ "contains"?: boolean;
3133
+ "kind": ("text" & string);
3134
+ "target": MethodPagePressKeyParams__LocatorSpec;
3135
+ "value": string;
3136
+ [key: string]: unknown;
3137
+ } | {
3138
+ "kind": ("value" & string);
3139
+ "target": MethodPagePressKeyParams__LocatorSpec;
3140
+ "value": string;
3141
+ [key: string]: unknown;
3142
+ } | {
3143
+ "checked": boolean;
3144
+ "kind": ("checked" & string);
3145
+ "target": MethodPagePressKeyParams__LocatorSpec;
3146
+ [key: string]: unknown;
3147
+ } | {
3148
+ "kind": ("selected" & string);
3149
+ "target": MethodPagePressKeyParams__LocatorSpec;
3150
+ "values": Array<string>;
3151
+ [key: string]: unknown;
3152
+ });
3153
+ export type MethodPagePressKeyParams__LocatorQuery = ({
3154
+ "id": number;
3155
+ "kind": ("node" & string);
3156
+ [key: string]: unknown;
3157
+ } | {
3158
+ "kind": ("css" & string);
3159
+ "selector": string;
3160
+ [key: string]: unknown;
3161
+ } | {
3162
+ "exact"?: boolean;
3163
+ "kind": ("text" & string);
3164
+ "text": string;
3165
+ [key: string]: unknown;
3166
+ } | {
3167
+ "kind": ("placeholder" & string);
3168
+ "text": string;
3169
+ [key: string]: unknown;
3170
+ } | {
3171
+ "kind": ("role" & string);
3172
+ "role": string;
3173
+ [key: string]: unknown;
3174
+ } | {
3175
+ "id": number;
3176
+ "kind": ("backend_node" & string);
3177
+ [key: string]: unknown;
3178
+ });
3179
+ export type MethodPagePressKeyParams__LocatorSpec = {
3180
+ "frame_id"?: (string | null);
3181
+ "index"?: (number | null);
3182
+ "query": MethodPagePressKeyParams__LocatorQuery;
3183
+ [key: string]: unknown;
3184
+ };
3185
+ export type MethodPagePressKeyResult = {
3186
+ "action": string;
3187
+ "dispatch_intent": boolean;
3188
+ "error_code"?: (string | null);
3189
+ "finished_at_ms"?: (number | null);
3190
+ "id": string;
3191
+ "outcome": MethodPagePressKeyResult__ActionOutcome;
3192
+ "preparation_intent": boolean;
3193
+ "receipt"?: (MethodPagePressKeyResult__ActionReceipt | null);
3194
+ "runtime_id": string;
3195
+ "started_at_ms": number;
3196
+ "state": MethodPagePressKeyResult__OperationState;
3197
+ "target_id": string;
3198
+ [key: string]: unknown;
3199
+ };
3200
+ export type MethodPagePressKeyResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
3201
+ export type MethodPagePressKeyResult__ActionReceipt = {
3202
+ "action": string;
3203
+ "already_satisfied": boolean;
3204
+ "cleanup_pending": boolean;
3205
+ "dispatch": MethodPagePressKeyResult__DispatchState;
3206
+ "download_guid"?: (string | null);
3207
+ "elapsed_ms": number;
3208
+ "finished_at_ms": number;
3209
+ "outcome": MethodPagePressKeyResult__ActionOutcome;
3210
+ "preparation_may_have_executed": boolean;
3211
+ "started_at_ms": number;
3212
+ "target_id": string;
3213
+ "verification"?: (string | null);
3214
+ [key: string]: unknown;
3215
+ };
3216
+ export type MethodPagePressKeyResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
3217
+ export type MethodPagePressKeyResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
3218
+ export type MethodPageReleaseAllInputsParams = {
3219
+ "pageId": string;
3220
+ [key: string]: unknown;
3221
+ };
3222
+ export type MethodPageReleaseAllInputsResult = Record<string, never>;
3223
+ export type MethodPageResetViewportParams = {
3224
+ "pageId": string;
3225
+ [key: string]: unknown;
3226
+ };
3227
+ export type MethodPageResetViewportResult = Record<string, never>;
3228
+ export type MethodPageRestoreStateParams = {
3229
+ "pageId": string;
3230
+ "state": MethodPageRestoreStateParams__BrowserState;
3231
+ [key: string]: unknown;
3232
+ };
3233
+ export type MethodPageRestoreStateParams__BrowserState = {
3234
+ "cookies": Array<MethodPageRestoreStateParams__SessionCookie>;
3235
+ "localStorage"?: Record<string, string>;
3236
+ "sessionStorage"?: Record<string, string>;
3237
+ "url": string;
3238
+ "userAgent": string;
3239
+ [key: string]: unknown;
3240
+ };
3241
+ export type MethodPageRestoreStateParams__SessionCookie = {
3242
+ "domain": string;
3243
+ "expires"?: (number | null);
3244
+ "http_only": boolean;
3245
+ "name": string;
3246
+ "path": string;
3247
+ "same_site"?: (string | null);
3248
+ "secure": boolean;
3249
+ "value": string;
3250
+ [key: string]: unknown;
3251
+ };
3252
+ export type MethodPageRestoreStateResult = Record<string, never>;
3253
+ export type MethodPageScreenshotParams = {
3254
+ "clip"?: (MethodPageScreenshotParams__ScreenshotClip | null);
3255
+ "format"?: (MethodPageScreenshotParams__ScreenshotFormat | null);
3256
+ "fullPage"?: (boolean | null);
3257
+ "pageId": string;
3258
+ "quality"?: (number | null);
3259
+ [key: string]: unknown;
3260
+ };
3261
+ export type MethodPageScreenshotParams__ScreenshotClip = {
3262
+ "height": number;
3263
+ "width": number;
3264
+ "x": number;
3265
+ "y": number;
3266
+ [key: string]: unknown;
3267
+ };
3268
+ export type MethodPageScreenshotParams__ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
3269
+ export type MethodPageScreenshotResult = {
3270
+ "dataBase64": string;
3271
+ [key: string]: unknown;
3272
+ };
3273
+ export type MethodPageScreenshotToFileParams = {
3274
+ "clip"?: (MethodPageScreenshotToFileParams__ScreenshotClip | null);
3275
+ "format"?: (MethodPageScreenshotToFileParams__ScreenshotFormat | null);
3276
+ "fullPage"?: (boolean | null);
3277
+ "pageId": string;
3278
+ "path": string;
3279
+ "quality"?: (number | null);
3280
+ [key: string]: unknown;
3281
+ };
3282
+ export type MethodPageScreenshotToFileParams__ScreenshotClip = {
3283
+ "height": number;
3284
+ "width": number;
3285
+ "x": number;
3286
+ "y": number;
3287
+ [key: string]: unknown;
3288
+ };
3289
+ export type MethodPageScreenshotToFileParams__ScreenshotFormat = (("png" | "jpeg" | "webp") & string);
3290
+ export type MethodPageScreenshotToFileResult = {
3291
+ "bytes": number;
3292
+ "container"?: (MethodPageScreenshotToFileResult__ArtifactContainer | null);
3293
+ "mimeType": string;
3294
+ "path": string;
3295
+ [key: string]: unknown;
3296
+ };
3297
+ export type MethodPageScreenshotToFileResult__ArtifactContainer = ("mp4" & string);
3298
+ export type MethodPageSelectParams = {
3299
+ "operation_id": string;
3300
+ "options"?: MethodPageSelectParams__ActionOptions;
3301
+ "pageId": string;
3302
+ "selector": string;
3303
+ "value": string;
3304
+ [key: string]: unknown;
3305
+ };
3306
+ export type MethodPageSelectParams__ActionOptions = {
3307
+ "expect"?: (MethodPageSelectParams__Expectation | null);
3308
+ "timeout_ms"?: number;
3309
+ "wait_for_target"?: boolean;
3310
+ [key: string]: unknown;
3311
+ };
3312
+ export type MethodPageSelectParams__Expectation = ({
3313
+ "kind": ("download_started" & string);
3314
+ [key: string]: unknown;
3315
+ } | {
3316
+ "kind": ("focused" & string);
3317
+ "target": MethodPageSelectParams__LocatorSpec;
3318
+ [key: string]: unknown;
3319
+ } | {
3320
+ "contains"?: boolean;
3321
+ "kind": ("url" & string);
3322
+ "value": string;
3323
+ [key: string]: unknown;
3324
+ } | {
3325
+ "kind": ("visible" & string);
3326
+ "target": MethodPageSelectParams__LocatorSpec;
3327
+ [key: string]: unknown;
3328
+ } | {
3329
+ "kind": ("hidden" & string);
3330
+ "target": MethodPageSelectParams__LocatorSpec;
3331
+ [key: string]: unknown;
3332
+ } | {
3333
+ "contains"?: boolean;
3334
+ "kind": ("text" & string);
3335
+ "target": MethodPageSelectParams__LocatorSpec;
3336
+ "value": string;
3337
+ [key: string]: unknown;
3338
+ } | {
3339
+ "kind": ("value" & string);
3340
+ "target": MethodPageSelectParams__LocatorSpec;
3341
+ "value": string;
3342
+ [key: string]: unknown;
3343
+ } | {
3344
+ "checked": boolean;
3345
+ "kind": ("checked" & string);
3346
+ "target": MethodPageSelectParams__LocatorSpec;
3347
+ [key: string]: unknown;
3348
+ } | {
3349
+ "kind": ("selected" & string);
3350
+ "target": MethodPageSelectParams__LocatorSpec;
3351
+ "values": Array<string>;
3352
+ [key: string]: unknown;
3353
+ });
3354
+ export type MethodPageSelectParams__LocatorQuery = ({
3355
+ "id": number;
3356
+ "kind": ("node" & string);
3357
+ [key: string]: unknown;
3358
+ } | {
3359
+ "kind": ("css" & string);
3360
+ "selector": string;
3361
+ [key: string]: unknown;
3362
+ } | {
3363
+ "exact"?: boolean;
3364
+ "kind": ("text" & string);
3365
+ "text": string;
3366
+ [key: string]: unknown;
3367
+ } | {
3368
+ "kind": ("placeholder" & string);
3369
+ "text": string;
3370
+ [key: string]: unknown;
3371
+ } | {
3372
+ "kind": ("role" & string);
3373
+ "role": string;
3374
+ [key: string]: unknown;
3375
+ } | {
3376
+ "id": number;
3377
+ "kind": ("backend_node" & string);
3378
+ [key: string]: unknown;
3379
+ });
3380
+ export type MethodPageSelectParams__LocatorSpec = {
3381
+ "frame_id"?: (string | null);
3382
+ "index"?: (number | null);
3383
+ "query": MethodPageSelectParams__LocatorQuery;
3384
+ [key: string]: unknown;
3385
+ };
3386
+ export type MethodPageSelectResult = {
3387
+ "action": string;
3388
+ "dispatch_intent": boolean;
3389
+ "error_code"?: (string | null);
3390
+ "finished_at_ms"?: (number | null);
3391
+ "id": string;
3392
+ "outcome": MethodPageSelectResult__ActionOutcome;
3393
+ "preparation_intent": boolean;
3394
+ "receipt"?: (MethodPageSelectResult__ActionReceipt | null);
3395
+ "runtime_id": string;
3396
+ "started_at_ms": number;
3397
+ "state": MethodPageSelectResult__OperationState;
3398
+ "target_id": string;
3399
+ [key: string]: unknown;
3400
+ };
3401
+ export type MethodPageSelectResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
3402
+ export type MethodPageSelectResult__ActionReceipt = {
3403
+ "action": string;
3404
+ "already_satisfied": boolean;
3405
+ "cleanup_pending": boolean;
3406
+ "dispatch": MethodPageSelectResult__DispatchState;
3407
+ "download_guid"?: (string | null);
3408
+ "elapsed_ms": number;
3409
+ "finished_at_ms": number;
3410
+ "outcome": MethodPageSelectResult__ActionOutcome;
3411
+ "preparation_may_have_executed": boolean;
3412
+ "started_at_ms": number;
3413
+ "target_id": string;
3414
+ "verification"?: (string | null);
3415
+ [key: string]: unknown;
3416
+ };
3417
+ export type MethodPageSelectResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
3418
+ export type MethodPageSelectResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
3419
+ export type MethodPageSetViewportParams = {
3420
+ "deviceScaleFactor"?: number;
3421
+ "height": number;
3422
+ "pageId": string;
3423
+ "width": number;
3424
+ [key: string]: unknown;
3425
+ };
3426
+ export type MethodPageSetViewportResult = Record<string, never>;
3427
+ export type MethodPageSolveCaptchaParams = {
3428
+ "apiDomain"?: (string | null);
3429
+ "apiKey": string;
3430
+ "callback"?: (string | null);
3431
+ "captchaMode": string;
3432
+ "captchaType": string;
3433
+ "enterprisePayload"?: unknown;
3434
+ "pageId": string;
3435
+ "websiteKey": string;
3436
+ "websiteURL": string;
3437
+ [key: string]: unknown;
3438
+ };
3439
+ export type MethodPageSolveCaptchaResult = {
3440
+ "injection": MethodPageSolveCaptchaResult__CaptchaInjection;
3441
+ [key: string]: unknown;
3442
+ };
3443
+ export type MethodPageSolveCaptchaResult__CaptchaInjection = {
3444
+ "callbacks": Array<string>;
3445
+ "created": Array<string>;
3446
+ "errors": Array<string>;
3447
+ "kind": string;
3448
+ "solverUserAgent"?: (string | null);
3449
+ "updated_count": number;
3450
+ [key: string]: unknown;
3451
+ };
3452
+ export type MethodPageTextParams = {
3453
+ "pageId": string;
3454
+ [key: string]: unknown;
3455
+ };
3456
+ export type MethodPageTextResult = {
3457
+ "text": string;
3458
+ [key: string]: unknown;
3459
+ };
3460
+ export type MethodPageTitleParams = {
3461
+ "pageId": string;
3462
+ [key: string]: unknown;
3463
+ };
3464
+ export type MethodPageTitleResult = {
3465
+ "title": string;
3466
+ [key: string]: unknown;
3467
+ };
3468
+ export type MethodPageTypeIntoParams = {
3469
+ "operation_id": string;
3470
+ "options"?: MethodPageTypeIntoParams__ActionOptions;
3471
+ "pageId": string;
3472
+ "selector": string;
3473
+ "text": string;
3474
+ [key: string]: unknown;
3475
+ };
3476
+ export type MethodPageTypeIntoParams__ActionOptions = {
3477
+ "expect"?: (MethodPageTypeIntoParams__Expectation | null);
3478
+ "timeout_ms"?: number;
3479
+ "wait_for_target"?: boolean;
3480
+ [key: string]: unknown;
3481
+ };
3482
+ export type MethodPageTypeIntoParams__Expectation = ({
3483
+ "kind": ("download_started" & string);
3484
+ [key: string]: unknown;
3485
+ } | {
3486
+ "kind": ("focused" & string);
3487
+ "target": MethodPageTypeIntoParams__LocatorSpec;
3488
+ [key: string]: unknown;
3489
+ } | {
3490
+ "contains"?: boolean;
3491
+ "kind": ("url" & string);
3492
+ "value": string;
3493
+ [key: string]: unknown;
3494
+ } | {
3495
+ "kind": ("visible" & string);
3496
+ "target": MethodPageTypeIntoParams__LocatorSpec;
3497
+ [key: string]: unknown;
3498
+ } | {
3499
+ "kind": ("hidden" & string);
3500
+ "target": MethodPageTypeIntoParams__LocatorSpec;
3501
+ [key: string]: unknown;
3502
+ } | {
3503
+ "contains"?: boolean;
3504
+ "kind": ("text" & string);
3505
+ "target": MethodPageTypeIntoParams__LocatorSpec;
3506
+ "value": string;
3507
+ [key: string]: unknown;
3508
+ } | {
3509
+ "kind": ("value" & string);
3510
+ "target": MethodPageTypeIntoParams__LocatorSpec;
3511
+ "value": string;
3512
+ [key: string]: unknown;
3513
+ } | {
3514
+ "checked": boolean;
3515
+ "kind": ("checked" & string);
3516
+ "target": MethodPageTypeIntoParams__LocatorSpec;
3517
+ [key: string]: unknown;
3518
+ } | {
3519
+ "kind": ("selected" & string);
3520
+ "target": MethodPageTypeIntoParams__LocatorSpec;
3521
+ "values": Array<string>;
3522
+ [key: string]: unknown;
3523
+ });
3524
+ export type MethodPageTypeIntoParams__LocatorQuery = ({
3525
+ "id": number;
3526
+ "kind": ("node" & string);
3527
+ [key: string]: unknown;
3528
+ } | {
3529
+ "kind": ("css" & string);
3530
+ "selector": string;
3531
+ [key: string]: unknown;
3532
+ } | {
3533
+ "exact"?: boolean;
3534
+ "kind": ("text" & string);
3535
+ "text": string;
3536
+ [key: string]: unknown;
3537
+ } | {
3538
+ "kind": ("placeholder" & string);
3539
+ "text": string;
3540
+ [key: string]: unknown;
3541
+ } | {
3542
+ "kind": ("role" & string);
3543
+ "role": string;
3544
+ [key: string]: unknown;
3545
+ } | {
3546
+ "id": number;
3547
+ "kind": ("backend_node" & string);
3548
+ [key: string]: unknown;
3549
+ });
3550
+ export type MethodPageTypeIntoParams__LocatorSpec = {
3551
+ "frame_id"?: (string | null);
3552
+ "index"?: (number | null);
3553
+ "query": MethodPageTypeIntoParams__LocatorQuery;
3554
+ [key: string]: unknown;
3555
+ };
3556
+ export type MethodPageTypeIntoResult = {
3557
+ "action": string;
3558
+ "dispatch_intent": boolean;
3559
+ "error_code"?: (string | null);
3560
+ "finished_at_ms"?: (number | null);
3561
+ "id": string;
3562
+ "outcome": MethodPageTypeIntoResult__ActionOutcome;
3563
+ "preparation_intent": boolean;
3564
+ "receipt"?: (MethodPageTypeIntoResult__ActionReceipt | null);
3565
+ "runtime_id": string;
3566
+ "started_at_ms": number;
3567
+ "state": MethodPageTypeIntoResult__OperationState;
3568
+ "target_id": string;
3569
+ [key: string]: unknown;
3570
+ };
3571
+ export type MethodPageTypeIntoResult__ActionOutcome = (("not_dispatched" & string) | ("outcome_unknown" & string) | ("verified_complete" & string));
3572
+ export type MethodPageTypeIntoResult__ActionReceipt = {
3573
+ "action": string;
3574
+ "already_satisfied": boolean;
3575
+ "cleanup_pending": boolean;
3576
+ "dispatch": MethodPageTypeIntoResult__DispatchState;
3577
+ "download_guid"?: (string | null);
3578
+ "elapsed_ms": number;
3579
+ "finished_at_ms": number;
3580
+ "outcome": MethodPageTypeIntoResult__ActionOutcome;
3581
+ "preparation_may_have_executed": boolean;
3582
+ "started_at_ms": number;
3583
+ "target_id": string;
3584
+ "verification"?: (string | null);
3585
+ [key: string]: unknown;
3586
+ };
3587
+ export type MethodPageTypeIntoResult__DispatchState = (("not_sent" & string) | ("may_have_been_sent" & string) | ("acknowledged" & string));
3588
+ export type MethodPageTypeIntoResult__OperationState = (("running" | "finished" | "interrupted" | "expired") & string);
3589
+ export type MethodPageUrlParams = {
3590
+ "pageId": string;
3591
+ [key: string]: unknown;
3592
+ };
3593
+ export type MethodPageUrlResult = {
3594
+ "url": string;
3595
+ [key: string]: unknown;
3596
+ };
3597
+ export type MethodPageWaitForParams = {
3598
+ "pageId": string;
3599
+ "selector": string;
3600
+ "timeoutMs": number;
3601
+ [key: string]: unknown;
3602
+ };
3603
+ export type MethodPageWaitForResult = Record<string, never>;
3604
+ export type MethodPageWaitForTextParams = {
3605
+ "pageId": string;
3606
+ "text": string;
3607
+ "timeoutMs": number;
3608
+ [key: string]: unknown;
3609
+ };
3610
+ export type MethodPageWaitForTextResult = Record<string, never>;
3611
+ export type MethodPageWaitForVisibleParams = {
3612
+ "pageId": string;
3613
+ "selector": string;
3614
+ "timeoutMs": number;
3615
+ [key: string]: unknown;
3616
+ };
3617
+ export type MethodPageWaitForVisibleResult = Record<string, never>;
3618
+ export type MethodRecordingCancelParams = {
3619
+ "recordingId": string;
3620
+ [key: string]: unknown;
3621
+ };
3622
+ export type MethodRecordingCancelResult = {
3623
+ "artifact"?: (MethodRecordingCancelResult__Artifact | null);
3624
+ "failure"?: (MethodRecordingCancelResult__RecordingFailure | null);
3625
+ "pageId": string;
3626
+ "path": string;
3627
+ "recordingId": string;
3628
+ "state": MethodRecordingCancelResult__RecordingState;
3629
+ [key: string]: unknown;
3630
+ };
3631
+ export type MethodRecordingCancelResult__Artifact = {
3632
+ "bytes": number;
3633
+ "container"?: (MethodRecordingCancelResult__ArtifactContainer | null);
3634
+ "mimeType": string;
3635
+ "path": string;
3636
+ [key: string]: unknown;
3637
+ };
3638
+ export type MethodRecordingCancelResult__ArtifactContainer = ("mp4" & string);
3639
+ 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);
3640
+ export type MethodRecordingCancelResult__RecordingFailure = {
3641
+ "cleanupUncertain"?: (boolean | null);
3642
+ "code": MethodRecordingCancelResult__ErrorCode;
3643
+ "message": string;
3644
+ "partialPath"?: (string | null);
3645
+ "stage": MethodRecordingCancelResult__RecordingFailureStage;
3646
+ [key: string]: unknown;
3647
+ };
3648
+ export type MethodRecordingCancelResult__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
3649
+ export type MethodRecordingCancelResult__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
3650
+ export type MethodRecordingGetParams = {
3651
+ "recordingId": string;
3652
+ [key: string]: unknown;
3653
+ };
3654
+ export type MethodRecordingGetResult = {
3655
+ "artifact"?: (MethodRecordingGetResult__Artifact | null);
3656
+ "failure"?: (MethodRecordingGetResult__RecordingFailure | null);
3657
+ "pageId": string;
3658
+ "path": string;
3659
+ "recordingId": string;
3660
+ "state": MethodRecordingGetResult__RecordingState;
3661
+ [key: string]: unknown;
3662
+ };
3663
+ export type MethodRecordingGetResult__Artifact = {
3664
+ "bytes": number;
3665
+ "container"?: (MethodRecordingGetResult__ArtifactContainer | null);
3666
+ "mimeType": string;
3667
+ "path": string;
3668
+ [key: string]: unknown;
3669
+ };
3670
+ export type MethodRecordingGetResult__ArtifactContainer = ("mp4" & string);
3671
+ 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);
3672
+ export type MethodRecordingGetResult__RecordingFailure = {
3673
+ "cleanupUncertain"?: (boolean | null);
3674
+ "code": MethodRecordingGetResult__ErrorCode;
3675
+ "message": string;
3676
+ "partialPath"?: (string | null);
3677
+ "stage": MethodRecordingGetResult__RecordingFailureStage;
3678
+ [key: string]: unknown;
3679
+ };
3680
+ export type MethodRecordingGetResult__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
3681
+ export type MethodRecordingGetResult__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
3682
+ export type MethodRecordingStartParams = {
3683
+ "fps"?: (number | null);
3684
+ "maxHeight"?: (number | null);
3685
+ "maxWidth"?: (number | null);
3686
+ "pageId": string;
3687
+ "path": string;
3688
+ "recordingId": string;
3689
+ };
3690
+ export type MethodRecordingStartResult = {
3691
+ "artifact"?: (MethodRecordingStartResult__Artifact | null);
3692
+ "failure"?: (MethodRecordingStartResult__RecordingFailure | null);
3693
+ "pageId": string;
3694
+ "path": string;
3695
+ "recordingId": string;
3696
+ "state": MethodRecordingStartResult__RecordingState;
3697
+ [key: string]: unknown;
3698
+ };
3699
+ export type MethodRecordingStartResult__Artifact = {
3700
+ "bytes": number;
3701
+ "container"?: (MethodRecordingStartResult__ArtifactContainer | null);
3702
+ "mimeType": string;
3703
+ "path": string;
3704
+ [key: string]: unknown;
3705
+ };
3706
+ export type MethodRecordingStartResult__ArtifactContainer = ("mp4" & string);
3707
+ 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);
3708
+ export type MethodRecordingStartResult__RecordingFailure = {
3709
+ "cleanupUncertain"?: (boolean | null);
3710
+ "code": MethodRecordingStartResult__ErrorCode;
3711
+ "message": string;
3712
+ "partialPath"?: (string | null);
3713
+ "stage": MethodRecordingStartResult__RecordingFailureStage;
3714
+ [key: string]: unknown;
3715
+ };
3716
+ export type MethodRecordingStartResult__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
3717
+ export type MethodRecordingStartResult__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
3718
+ export type MethodRecordingStopParams = {
3719
+ "recordingId": string;
3720
+ [key: string]: unknown;
3721
+ };
3722
+ export type MethodRecordingStopResult = {
3723
+ "artifact"?: (MethodRecordingStopResult__Artifact | null);
3724
+ "failure"?: (MethodRecordingStopResult__RecordingFailure | null);
3725
+ "pageId": string;
3726
+ "path": string;
3727
+ "recordingId": string;
3728
+ "state": MethodRecordingStopResult__RecordingState;
3729
+ [key: string]: unknown;
3730
+ };
3731
+ export type MethodRecordingStopResult__Artifact = {
3732
+ "bytes": number;
3733
+ "container"?: (MethodRecordingStopResult__ArtifactContainer | null);
3734
+ "mimeType": string;
3735
+ "path": string;
3736
+ [key: string]: unknown;
3737
+ };
3738
+ export type MethodRecordingStopResult__ArtifactContainer = ("mp4" & string);
3739
+ 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);
3740
+ export type MethodRecordingStopResult__RecordingFailure = {
3741
+ "cleanupUncertain"?: (boolean | null);
3742
+ "code": MethodRecordingStopResult__ErrorCode;
3743
+ "message": string;
3744
+ "partialPath"?: (string | null);
3745
+ "stage": MethodRecordingStopResult__RecordingFailureStage;
3746
+ [key: string]: unknown;
3747
+ };
3748
+ export type MethodRecordingStopResult__RecordingFailureStage = (("start" | "stop" | "read" | "write" | "flush" | "close" | "publish" | "cancel" | "disconnect") & string);
3749
+ export type MethodRecordingStopResult__RecordingState = (("running" | "finalizing" | "completed" | "cancelled" | "failed") & string);
3750
+ export type MethodServerHelloParams = {
3751
+ "protocol": MethodServerHelloParams__ProtocolVersion;
3752
+ [key: string]: unknown;
3753
+ };
3754
+ export type MethodServerHelloParams__ProtocolVersion = {
3755
+ "major": number;
3756
+ "minor": number;
3757
+ [key: string]: unknown;
3758
+ };
3759
+ export type MethodServerHelloResult = {
3760
+ "capabilities": Array<string>;
3761
+ "coreVersion": string;
3762
+ "limits": MethodServerHelloResult__TransportLimits;
3763
+ "methods": Array<string>;
3764
+ "protocol": MethodServerHelloResult__ProtocolVersion;
3765
+ "serverVersion": string;
3766
+ [key: string]: unknown;
3767
+ };
3768
+ export type MethodServerHelloResult__ProtocolVersion = {
3769
+ "major": number;
3770
+ "minor": number;
3771
+ [key: string]: unknown;
3772
+ };
3773
+ export type MethodServerHelloResult__TransportLimits = {
3774
+ "maxInFlight": number;
3775
+ "maxMessageBytes": number;
3776
+ [key: string]: unknown;
3777
+ };
3778
+ export type MethodServerShutdownParams = Record<string, never>;
3779
+ export type MethodServerShutdownResult = Record<string, never>;
3780
+ export type MethodParams = {
3781
+ "actions.perform": MethodActionsPerformParams;
3782
+ "agent.observe": MethodAgentObserveParams;
3783
+ "agent.step": MethodAgentStepParams;
3784
+ "browser.close": MethodBrowserCloseParams;
3785
+ "browser.close_tab": MethodBrowserCloseTabParams;
3786
+ "browser.connect": MethodBrowserConnectParams;
3787
+ "browser.launch": MethodBrowserLaunchParams;
3788
+ "browser.new_page": MethodBrowserNewPageParams;
3789
+ "browser.tabs": MethodBrowserTabsParams;
3790
+ "operations.cancel": MethodOperationsCancelParams;
3791
+ "operations.get": MethodOperationsGetParams;
3792
+ "operations.list": MethodOperationsListParams;
3793
+ "operations.wait": MethodOperationsWaitParams;
3794
+ "page.capture_state": MethodPageCaptureStateParams;
3795
+ "page.click": MethodPageClickParams;
3796
+ "page.click_text": MethodPageClickTextParams;
3797
+ "page.close": MethodPageCloseParams;
3798
+ "page.content": MethodPageContentParams;
3799
+ "page.evaluate": MethodPageEvaluateParams;
3800
+ "page.evaluate_in_frame": MethodPageEvaluateInFrameParams;
3801
+ "page.execute": MethodPageExecuteParams;
3802
+ "page.exists": MethodPageExistsParams;
3803
+ "page.fetch": MethodPageFetchParams;
3804
+ "page.fetch_bounded": MethodPageFetchBoundedParams;
3805
+ "page.fill": MethodPageFillParams;
3806
+ "page.frames": MethodPageFramesParams;
3807
+ "page.get_attribute": MethodPageGetAttributeParams;
3808
+ "page.get_text": MethodPageGetTextParams;
3809
+ "page.goto": MethodPageGotoParams;
3810
+ "page.hover": MethodPageHoverParams;
3811
+ "page.human_click": MethodPageHumanClickParams;
3812
+ "page.human_click_text": MethodPageHumanClickTextParams;
3813
+ "page.human_fill": MethodPageHumanFillParams;
3814
+ "page.key_down": MethodPageKeyDownParams;
3815
+ "page.key_up": MethodPageKeyUpParams;
3816
+ "page.mouse_down": MethodPageMouseDownParams;
3817
+ "page.mouse_move": MethodPageMouseMoveParams;
3818
+ "page.mouse_up": MethodPageMouseUpParams;
3819
+ "page.press_key": MethodPagePressKeyParams;
3820
+ "page.release_all_inputs": MethodPageReleaseAllInputsParams;
3821
+ "page.reset_viewport": MethodPageResetViewportParams;
3822
+ "page.restore_state": MethodPageRestoreStateParams;
3823
+ "page.screenshot": MethodPageScreenshotParams;
3824
+ "page.screenshot_to_file": MethodPageScreenshotToFileParams;
3825
+ "page.select": MethodPageSelectParams;
3826
+ "page.set_viewport": MethodPageSetViewportParams;
3827
+ "page.solve_captcha": MethodPageSolveCaptchaParams;
3828
+ "page.text": MethodPageTextParams;
3829
+ "page.title": MethodPageTitleParams;
3830
+ "page.type_into": MethodPageTypeIntoParams;
3831
+ "page.url": MethodPageUrlParams;
3832
+ "page.wait_for": MethodPageWaitForParams;
3833
+ "page.wait_for_text": MethodPageWaitForTextParams;
3834
+ "page.wait_for_visible": MethodPageWaitForVisibleParams;
3835
+ "recording.cancel": MethodRecordingCancelParams;
3836
+ "recording.get": MethodRecordingGetParams;
3837
+ "recording.start": MethodRecordingStartParams;
3838
+ "recording.stop": MethodRecordingStopParams;
3839
+ "server.hello": MethodServerHelloParams;
3840
+ "server.shutdown": MethodServerShutdownParams;
3841
+ };
3842
+ export type MethodResults = {
3843
+ "actions.perform": MethodActionsPerformResult;
3844
+ "agent.observe": MethodAgentObserveResult;
3845
+ "agent.step": MethodAgentStepResult;
3846
+ "browser.close": MethodBrowserCloseResult;
3847
+ "browser.close_tab": MethodBrowserCloseTabResult;
3848
+ "browser.connect": MethodBrowserConnectResult;
3849
+ "browser.launch": MethodBrowserLaunchResult;
3850
+ "browser.new_page": MethodBrowserNewPageResult;
3851
+ "browser.tabs": MethodBrowserTabsResult;
3852
+ "operations.cancel": MethodOperationsCancelResult;
3853
+ "operations.get": MethodOperationsGetResult;
3854
+ "operations.list": MethodOperationsListResult;
3855
+ "operations.wait": MethodOperationsWaitResult;
3856
+ "page.capture_state": MethodPageCaptureStateResult;
3857
+ "page.click": MethodPageClickResult;
3858
+ "page.click_text": MethodPageClickTextResult;
3859
+ "page.close": MethodPageCloseResult;
3860
+ "page.content": MethodPageContentResult;
3861
+ "page.evaluate": MethodPageEvaluateResult;
3862
+ "page.evaluate_in_frame": MethodPageEvaluateInFrameResult;
3863
+ "page.execute": MethodPageExecuteResult;
3864
+ "page.exists": MethodPageExistsResult;
3865
+ "page.fetch": MethodPageFetchResult;
3866
+ "page.fetch_bounded": MethodPageFetchBoundedResult;
3867
+ "page.fill": MethodPageFillResult;
3868
+ "page.frames": MethodPageFramesResult;
3869
+ "page.get_attribute": MethodPageGetAttributeResult;
3870
+ "page.get_text": MethodPageGetTextResult;
3871
+ "page.goto": MethodPageGotoResult;
3872
+ "page.hover": MethodPageHoverResult;
3873
+ "page.human_click": MethodPageHumanClickResult;
3874
+ "page.human_click_text": MethodPageHumanClickTextResult;
3875
+ "page.human_fill": MethodPageHumanFillResult;
3876
+ "page.key_down": MethodPageKeyDownResult;
3877
+ "page.key_up": MethodPageKeyUpResult;
3878
+ "page.mouse_down": MethodPageMouseDownResult;
3879
+ "page.mouse_move": MethodPageMouseMoveResult;
3880
+ "page.mouse_up": MethodPageMouseUpResult;
3881
+ "page.press_key": MethodPagePressKeyResult;
3882
+ "page.release_all_inputs": MethodPageReleaseAllInputsResult;
3883
+ "page.reset_viewport": MethodPageResetViewportResult;
3884
+ "page.restore_state": MethodPageRestoreStateResult;
3885
+ "page.screenshot": MethodPageScreenshotResult;
3886
+ "page.screenshot_to_file": MethodPageScreenshotToFileResult;
3887
+ "page.select": MethodPageSelectResult;
3888
+ "page.set_viewport": MethodPageSetViewportResult;
3889
+ "page.solve_captcha": MethodPageSolveCaptchaResult;
3890
+ "page.text": MethodPageTextResult;
3891
+ "page.title": MethodPageTitleResult;
3892
+ "page.type_into": MethodPageTypeIntoResult;
3893
+ "page.url": MethodPageUrlResult;
3894
+ "page.wait_for": MethodPageWaitForResult;
3895
+ "page.wait_for_text": MethodPageWaitForTextResult;
3896
+ "page.wait_for_visible": MethodPageWaitForVisibleResult;
3897
+ "recording.cancel": MethodRecordingCancelResult;
3898
+ "recording.get": MethodRecordingGetResult;
3899
+ "recording.start": MethodRecordingStartResult;
3900
+ "recording.stop": MethodRecordingStopResult;
3901
+ "server.hello": MethodServerHelloResult;
3902
+ "server.shutdown": MethodServerShutdownResult;
3903
+ };
3904
+ export type MethodName = keyof MethodParams;
3905
+ export type ProtocolRequest<M extends MethodName = MethodName> = {
3906
+ [K in M]: {
3907
+ id: number;
3908
+ method: K;
3909
+ params: MethodParams[K];
3910
+ };
3911
+ }[M];
3912
+ export type ProtocolSuccessResponse<M extends MethodName = MethodName> = {
3913
+ [K in M]: {
3914
+ id: number;
3915
+ result: MethodResults[K];
3916
+ error?: never;
3917
+ };
3918
+ }[M];
3919
+ export type ProtocolErrorResponse = {
3920
+ id: number | null;
3921
+ error: ServerError;
3922
+ result?: never;
3923
+ };
3924
+ export type ProtocolResponse<M extends MethodName = MethodName> = ProtocolSuccessResponse<M> | ProtocolErrorResponse;
3925
+ export declare const protocolVersion: {
3926
+ readonly major: 1;
3927
+ readonly minor: 3;
3928
+ };
3929
+ export declare const methodNames: readonly ["actions.perform", "agent.observe", "agent.step", "browser.close", "browser.close_tab", "browser.connect", "browser.launch", "browser.new_page", "browser.tabs", "operations.cancel", "operations.get", "operations.list", "operations.wait", "page.capture_state", "page.click", "page.click_text", "page.close", "page.content", "page.evaluate", "page.evaluate_in_frame", "page.execute", "page.exists", "page.fetch", "page.fetch_bounded", "page.fill", "page.frames", "page.get_attribute", "page.get_text", "page.goto", "page.hover", "page.human_click", "page.human_click_text", "page.human_fill", "page.key_down", "page.key_up", "page.mouse_down", "page.mouse_move", "page.mouse_up", "page.press_key", "page.release_all_inputs", "page.reset_viewport", "page.restore_state", "page.screenshot", "page.screenshot_to_file", "page.select", "page.set_viewport", "page.solve_captcha", "page.text", "page.title", "page.type_into", "page.url", "page.wait_for", "page.wait_for_text", "page.wait_for_visible", "recording.cancel", "recording.get", "recording.start", "recording.stop", "server.hello", "server.shutdown"];