@getpaseo/protocol 0.1.103 → 0.1.104-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,808 @@
1
+ import { z } from "zod";
2
+ export declare const BrowserAutomationErrorCodeSchema: z.ZodEnum<{
3
+ browser_disabled: "browser_disabled";
4
+ browser_no_desktop: "browser_no_desktop";
5
+ browser_tab_not_found: "browser_tab_not_found";
6
+ browser_tab_closed: "browser_tab_closed";
7
+ browser_timeout: "browser_timeout";
8
+ screenshot_no_frame: "screenshot_no_frame";
9
+ browser_denied: "browser_denied";
10
+ browser_unsupported: "browser_unsupported";
11
+ browser_stale_ref: "browser_stale_ref";
12
+ browser_unknown_error: "browser_unknown_error";
13
+ }>;
14
+ export declare const BrowserAutomationBrowserIdSchema: z.ZodString;
15
+ export declare const BrowserAutomationListTabsCommandSchema: z.ZodObject<{
16
+ command: z.ZodLiteral<"list_tabs">;
17
+ args: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
18
+ }, z.core.$strip>;
19
+ export declare const BrowserAutomationNewTabCommandSchema: z.ZodObject<{
20
+ command: z.ZodLiteral<"new_tab">;
21
+ args: z.ZodDefault<z.ZodObject<{
22
+ url: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strict>>;
24
+ }, z.core.$strip>;
25
+ export declare const BrowserAutomationSnapshotCommandSchema: z.ZodObject<{
26
+ command: z.ZodLiteral<"snapshot">;
27
+ args: z.ZodObject<{
28
+ browserId: z.ZodString;
29
+ }, z.core.$strict>;
30
+ }, z.core.$strip>;
31
+ export declare const BrowserAutomationClickCommandSchema: z.ZodObject<{
32
+ command: z.ZodLiteral<"click">;
33
+ args: z.ZodObject<{
34
+ browserId: z.ZodString;
35
+ ref: z.ZodString;
36
+ }, z.core.$strict>;
37
+ }, z.core.$strip>;
38
+ export declare const BrowserAutomationFillCommandSchema: z.ZodObject<{
39
+ command: z.ZodLiteral<"fill">;
40
+ args: z.ZodObject<{
41
+ browserId: z.ZodString;
42
+ ref: z.ZodString;
43
+ value: z.ZodString;
44
+ }, z.core.$strict>;
45
+ }, z.core.$strip>;
46
+ export declare const BrowserAutomationWaitCommandSchema: z.ZodObject<{
47
+ command: z.ZodLiteral<"wait">;
48
+ args: z.ZodObject<{
49
+ browserId: z.ZodString;
50
+ text: z.ZodOptional<z.ZodString>;
51
+ url: z.ZodOptional<z.ZodString>;
52
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
53
+ }, z.core.$strict>;
54
+ }, z.core.$strip>;
55
+ export declare const BrowserAutomationTypeCommandSchema: z.ZodObject<{
56
+ command: z.ZodLiteral<"type">;
57
+ args: z.ZodObject<{
58
+ browserId: z.ZodString;
59
+ ref: z.ZodOptional<z.ZodString>;
60
+ text: z.ZodString;
61
+ }, z.core.$strict>;
62
+ }, z.core.$strip>;
63
+ export declare const BrowserAutomationKeypressCommandSchema: z.ZodObject<{
64
+ command: z.ZodLiteral<"keypress">;
65
+ args: z.ZodObject<{
66
+ browserId: z.ZodString;
67
+ ref: z.ZodOptional<z.ZodString>;
68
+ key: z.ZodString;
69
+ }, z.core.$strict>;
70
+ }, z.core.$strip>;
71
+ export declare const BrowserAutomationNavigateCommandSchema: z.ZodObject<{
72
+ command: z.ZodLiteral<"navigate">;
73
+ args: z.ZodObject<{
74
+ browserId: z.ZodString;
75
+ url: z.ZodString;
76
+ }, z.core.$strict>;
77
+ }, z.core.$strip>;
78
+ export declare const BrowserAutomationBackCommandSchema: z.ZodObject<{
79
+ command: z.ZodLiteral<"back">;
80
+ args: z.ZodObject<{
81
+ browserId: z.ZodString;
82
+ }, z.core.$strict>;
83
+ }, z.core.$strip>;
84
+ export declare const BrowserAutomationForwardCommandSchema: z.ZodObject<{
85
+ command: z.ZodLiteral<"forward">;
86
+ args: z.ZodObject<{
87
+ browserId: z.ZodString;
88
+ }, z.core.$strict>;
89
+ }, z.core.$strip>;
90
+ export declare const BrowserAutomationReloadCommandSchema: z.ZodObject<{
91
+ command: z.ZodLiteral<"reload">;
92
+ args: z.ZodObject<{
93
+ browserId: z.ZodString;
94
+ }, z.core.$strict>;
95
+ }, z.core.$strip>;
96
+ export declare const BrowserAutomationScreenshotCommandSchema: z.ZodObject<{
97
+ command: z.ZodLiteral<"screenshot">;
98
+ args: z.ZodObject<{
99
+ browserId: z.ZodString;
100
+ fullPage: z.ZodDefault<z.ZodBoolean>;
101
+ }, z.core.$strict>;
102
+ }, z.core.$strip>;
103
+ export declare const BrowserAutomationUploadCommandSchema: z.ZodObject<{
104
+ command: z.ZodLiteral<"upload">;
105
+ args: z.ZodObject<{
106
+ browserId: z.ZodString;
107
+ ref: z.ZodString;
108
+ filePaths: z.ZodArray<z.ZodString>;
109
+ }, z.core.$strict>;
110
+ }, z.core.$strip>;
111
+ export declare const BrowserAutomationSelectCommandSchema: z.ZodObject<{
112
+ command: z.ZodLiteral<"select">;
113
+ args: z.ZodObject<{
114
+ browserId: z.ZodString;
115
+ ref: z.ZodString;
116
+ value: z.ZodString;
117
+ }, z.core.$strict>;
118
+ }, z.core.$strip>;
119
+ export declare const BrowserAutomationHoverCommandSchema: z.ZodObject<{
120
+ command: z.ZodLiteral<"hover">;
121
+ args: z.ZodObject<{
122
+ browserId: z.ZodString;
123
+ ref: z.ZodString;
124
+ }, z.core.$strict>;
125
+ }, z.core.$strip>;
126
+ export declare const BrowserAutomationDragCommandSchema: z.ZodObject<{
127
+ command: z.ZodLiteral<"drag">;
128
+ args: z.ZodObject<{
129
+ browserId: z.ZodString;
130
+ sourceRef: z.ZodString;
131
+ targetRef: z.ZodString;
132
+ }, z.core.$strict>;
133
+ }, z.core.$strip>;
134
+ export declare const BrowserAutomationLogsCommandSchema: z.ZodObject<{
135
+ command: z.ZodLiteral<"logs">;
136
+ args: z.ZodObject<{
137
+ browserId: z.ZodString;
138
+ maxEntries: z.ZodDefault<z.ZodNumber>;
139
+ }, z.core.$strict>;
140
+ }, z.core.$strip>;
141
+ export declare const BrowserAutomationCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
142
+ command: z.ZodLiteral<"list_tabs">;
143
+ args: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ command: z.ZodLiteral<"new_tab">;
146
+ args: z.ZodDefault<z.ZodObject<{
147
+ url: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strict>>;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ command: z.ZodLiteral<"snapshot">;
151
+ args: z.ZodObject<{
152
+ browserId: z.ZodString;
153
+ }, z.core.$strict>;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ command: z.ZodLiteral<"click">;
156
+ args: z.ZodObject<{
157
+ browserId: z.ZodString;
158
+ ref: z.ZodString;
159
+ }, z.core.$strict>;
160
+ }, z.core.$strip>, z.ZodObject<{
161
+ command: z.ZodLiteral<"fill">;
162
+ args: z.ZodObject<{
163
+ browserId: z.ZodString;
164
+ ref: z.ZodString;
165
+ value: z.ZodString;
166
+ }, z.core.$strict>;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ command: z.ZodLiteral<"wait">;
169
+ args: z.ZodObject<{
170
+ browserId: z.ZodString;
171
+ text: z.ZodOptional<z.ZodString>;
172
+ url: z.ZodOptional<z.ZodString>;
173
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
174
+ }, z.core.$strict>;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ command: z.ZodLiteral<"type">;
177
+ args: z.ZodObject<{
178
+ browserId: z.ZodString;
179
+ ref: z.ZodOptional<z.ZodString>;
180
+ text: z.ZodString;
181
+ }, z.core.$strict>;
182
+ }, z.core.$strip>, z.ZodObject<{
183
+ command: z.ZodLiteral<"keypress">;
184
+ args: z.ZodObject<{
185
+ browserId: z.ZodString;
186
+ ref: z.ZodOptional<z.ZodString>;
187
+ key: z.ZodString;
188
+ }, z.core.$strict>;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ command: z.ZodLiteral<"navigate">;
191
+ args: z.ZodObject<{
192
+ browserId: z.ZodString;
193
+ url: z.ZodString;
194
+ }, z.core.$strict>;
195
+ }, z.core.$strip>, z.ZodObject<{
196
+ command: z.ZodLiteral<"back">;
197
+ args: z.ZodObject<{
198
+ browserId: z.ZodString;
199
+ }, z.core.$strict>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ command: z.ZodLiteral<"forward">;
202
+ args: z.ZodObject<{
203
+ browserId: z.ZodString;
204
+ }, z.core.$strict>;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ command: z.ZodLiteral<"reload">;
207
+ args: z.ZodObject<{
208
+ browserId: z.ZodString;
209
+ }, z.core.$strict>;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ command: z.ZodLiteral<"screenshot">;
212
+ args: z.ZodObject<{
213
+ browserId: z.ZodString;
214
+ fullPage: z.ZodDefault<z.ZodBoolean>;
215
+ }, z.core.$strict>;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ command: z.ZodLiteral<"upload">;
218
+ args: z.ZodObject<{
219
+ browserId: z.ZodString;
220
+ ref: z.ZodString;
221
+ filePaths: z.ZodArray<z.ZodString>;
222
+ }, z.core.$strict>;
223
+ }, z.core.$strip>, z.ZodObject<{
224
+ command: z.ZodLiteral<"select">;
225
+ args: z.ZodObject<{
226
+ browserId: z.ZodString;
227
+ ref: z.ZodString;
228
+ value: z.ZodString;
229
+ }, z.core.$strict>;
230
+ }, z.core.$strip>, z.ZodObject<{
231
+ command: z.ZodLiteral<"hover">;
232
+ args: z.ZodObject<{
233
+ browserId: z.ZodString;
234
+ ref: z.ZodString;
235
+ }, z.core.$strict>;
236
+ }, z.core.$strip>, z.ZodObject<{
237
+ command: z.ZodLiteral<"drag">;
238
+ args: z.ZodObject<{
239
+ browserId: z.ZodString;
240
+ sourceRef: z.ZodString;
241
+ targetRef: z.ZodString;
242
+ }, z.core.$strict>;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ command: z.ZodLiteral<"logs">;
245
+ args: z.ZodObject<{
246
+ browserId: z.ZodString;
247
+ maxEntries: z.ZodDefault<z.ZodNumber>;
248
+ }, z.core.$strict>;
249
+ }, z.core.$strip>], "command">;
250
+ export declare const BrowserAutomationTabInfoSchema: z.ZodObject<{
251
+ browserId: z.ZodString;
252
+ workspaceId: z.ZodOptional<z.ZodString>;
253
+ url: z.ZodString;
254
+ title: z.ZodString;
255
+ isActive: z.ZodDefault<z.ZodBoolean>;
256
+ isLoading: z.ZodDefault<z.ZodBoolean>;
257
+ canGoBack: z.ZodOptional<z.ZodBoolean>;
258
+ canGoForward: z.ZodOptional<z.ZodBoolean>;
259
+ }, z.core.$strip>;
260
+ export declare const BrowserAutomationListTabsResultSchema: z.ZodObject<{
261
+ command: z.ZodLiteral<"list_tabs">;
262
+ tabs: z.ZodArray<z.ZodObject<{
263
+ browserId: z.ZodString;
264
+ workspaceId: z.ZodOptional<z.ZodString>;
265
+ url: z.ZodString;
266
+ title: z.ZodString;
267
+ isActive: z.ZodDefault<z.ZodBoolean>;
268
+ isLoading: z.ZodDefault<z.ZodBoolean>;
269
+ canGoBack: z.ZodOptional<z.ZodBoolean>;
270
+ canGoForward: z.ZodOptional<z.ZodBoolean>;
271
+ }, z.core.$strip>>;
272
+ }, z.core.$strip>;
273
+ export declare const BrowserAutomationNewTabResultSchema: z.ZodObject<{
274
+ command: z.ZodLiteral<"new_tab">;
275
+ browserId: z.ZodString;
276
+ workspaceId: z.ZodString;
277
+ url: z.ZodString;
278
+ }, z.core.$strip>;
279
+ export declare const BrowserAutomationSnapshotElementSchema: z.ZodObject<{
280
+ ref: z.ZodString;
281
+ role: z.ZodString;
282
+ tagName: z.ZodString;
283
+ text: z.ZodString;
284
+ selector: z.ZodString;
285
+ attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
286
+ }, z.core.$strip>;
287
+ export declare const BrowserAutomationSnapshotResultSchema: z.ZodObject<{
288
+ command: z.ZodLiteral<"snapshot">;
289
+ browserId: z.ZodString;
290
+ workspaceId: z.ZodOptional<z.ZodString>;
291
+ url: z.ZodString;
292
+ title: z.ZodString;
293
+ elements: z.ZodArray<z.ZodObject<{
294
+ ref: z.ZodString;
295
+ role: z.ZodString;
296
+ tagName: z.ZodString;
297
+ text: z.ZodString;
298
+ selector: z.ZodString;
299
+ attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
300
+ }, z.core.$strip>>;
301
+ }, z.core.$strip>;
302
+ export declare const BrowserAutomationClickResultSchema: z.ZodObject<{
303
+ command: z.ZodLiteral<"click">;
304
+ browserId: z.ZodString;
305
+ ref: z.ZodString;
306
+ }, z.core.$strip>;
307
+ export declare const BrowserAutomationFillResultSchema: z.ZodObject<{
308
+ command: z.ZodLiteral<"fill">;
309
+ browserId: z.ZodString;
310
+ ref: z.ZodString;
311
+ }, z.core.$strip>;
312
+ export declare const BrowserAutomationWaitResultSchema: z.ZodObject<{
313
+ command: z.ZodLiteral<"wait">;
314
+ browserId: z.ZodString;
315
+ matched: z.ZodEnum<{
316
+ text: "text";
317
+ url: "url";
318
+ }>;
319
+ }, z.core.$strip>;
320
+ export declare const BrowserAutomationTypeResultSchema: z.ZodObject<{
321
+ command: z.ZodLiteral<"type">;
322
+ browserId: z.ZodString;
323
+ ref: z.ZodOptional<z.ZodString>;
324
+ }, z.core.$strip>;
325
+ export declare const BrowserAutomationKeypressResultSchema: z.ZodObject<{
326
+ command: z.ZodLiteral<"keypress">;
327
+ browserId: z.ZodString;
328
+ key: z.ZodString;
329
+ ref: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strip>;
331
+ export declare const BrowserAutomationNavigateResultSchema: z.ZodObject<{
332
+ command: z.ZodLiteral<"navigate">;
333
+ browserId: z.ZodString;
334
+ url: z.ZodString;
335
+ }, z.core.$strip>;
336
+ export declare const BrowserAutomationBackResultSchema: z.ZodObject<{
337
+ command: z.ZodLiteral<"back">;
338
+ browserId: z.ZodString;
339
+ }, z.core.$strip>;
340
+ export declare const BrowserAutomationForwardResultSchema: z.ZodObject<{
341
+ command: z.ZodLiteral<"forward">;
342
+ browserId: z.ZodString;
343
+ }, z.core.$strip>;
344
+ export declare const BrowserAutomationReloadResultSchema: z.ZodObject<{
345
+ command: z.ZodLiteral<"reload">;
346
+ browserId: z.ZodString;
347
+ }, z.core.$strip>;
348
+ export declare const BrowserAutomationScreenshotResultSchema: z.ZodObject<{
349
+ command: z.ZodLiteral<"screenshot">;
350
+ browserId: z.ZodString;
351
+ mimeType: z.ZodLiteral<"image/png">;
352
+ dataBase64: z.ZodString;
353
+ width: z.ZodNumber;
354
+ height: z.ZodNumber;
355
+ }, z.core.$strip>;
356
+ export declare const BrowserAutomationUploadResultSchema: z.ZodObject<{
357
+ command: z.ZodLiteral<"upload">;
358
+ browserId: z.ZodString;
359
+ ref: z.ZodString;
360
+ filePaths: z.ZodArray<z.ZodString>;
361
+ }, z.core.$strip>;
362
+ export declare const BrowserAutomationSelectResultSchema: z.ZodObject<{
363
+ command: z.ZodLiteral<"select">;
364
+ browserId: z.ZodString;
365
+ ref: z.ZodString;
366
+ value: z.ZodString;
367
+ }, z.core.$strip>;
368
+ export declare const BrowserAutomationHoverResultSchema: z.ZodObject<{
369
+ command: z.ZodLiteral<"hover">;
370
+ browserId: z.ZodString;
371
+ ref: z.ZodString;
372
+ }, z.core.$strip>;
373
+ export declare const BrowserAutomationDragResultSchema: z.ZodObject<{
374
+ command: z.ZodLiteral<"drag">;
375
+ browserId: z.ZodString;
376
+ sourceRef: z.ZodString;
377
+ targetRef: z.ZodString;
378
+ }, z.core.$strip>;
379
+ export declare const BrowserAutomationConsoleLogEntrySchema: z.ZodObject<{
380
+ level: z.ZodString;
381
+ message: z.ZodString;
382
+ source: z.ZodOptional<z.ZodString>;
383
+ line: z.ZodOptional<z.ZodNumber>;
384
+ timestamp: z.ZodNumber;
385
+ }, z.core.$strip>;
386
+ export declare const BrowserAutomationNetworkLogEntrySchema: z.ZodObject<{
387
+ url: z.ZodString;
388
+ method: z.ZodOptional<z.ZodString>;
389
+ status: z.ZodOptional<z.ZodNumber>;
390
+ type: z.ZodOptional<z.ZodString>;
391
+ startTime: z.ZodNumber;
392
+ duration: z.ZodNumber;
393
+ transferSize: z.ZodOptional<z.ZodNumber>;
394
+ }, z.core.$strip>;
395
+ export declare const BrowserAutomationLogsResultSchema: z.ZodObject<{
396
+ command: z.ZodLiteral<"logs">;
397
+ browserId: z.ZodString;
398
+ console: z.ZodArray<z.ZodObject<{
399
+ level: z.ZodString;
400
+ message: z.ZodString;
401
+ source: z.ZodOptional<z.ZodString>;
402
+ line: z.ZodOptional<z.ZodNumber>;
403
+ timestamp: z.ZodNumber;
404
+ }, z.core.$strip>>;
405
+ network: z.ZodArray<z.ZodObject<{
406
+ url: z.ZodString;
407
+ method: z.ZodOptional<z.ZodString>;
408
+ status: z.ZodOptional<z.ZodNumber>;
409
+ type: z.ZodOptional<z.ZodString>;
410
+ startTime: z.ZodNumber;
411
+ duration: z.ZodNumber;
412
+ transferSize: z.ZodOptional<z.ZodNumber>;
413
+ }, z.core.$strip>>;
414
+ }, z.core.$strip>;
415
+ export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
416
+ command: z.ZodLiteral<"list_tabs">;
417
+ tabs: z.ZodArray<z.ZodObject<{
418
+ browserId: z.ZodString;
419
+ workspaceId: z.ZodOptional<z.ZodString>;
420
+ url: z.ZodString;
421
+ title: z.ZodString;
422
+ isActive: z.ZodDefault<z.ZodBoolean>;
423
+ isLoading: z.ZodDefault<z.ZodBoolean>;
424
+ canGoBack: z.ZodOptional<z.ZodBoolean>;
425
+ canGoForward: z.ZodOptional<z.ZodBoolean>;
426
+ }, z.core.$strip>>;
427
+ }, z.core.$strip>, z.ZodObject<{
428
+ command: z.ZodLiteral<"new_tab">;
429
+ browserId: z.ZodString;
430
+ workspaceId: z.ZodString;
431
+ url: z.ZodString;
432
+ }, z.core.$strip>, z.ZodObject<{
433
+ command: z.ZodLiteral<"snapshot">;
434
+ browserId: z.ZodString;
435
+ workspaceId: z.ZodOptional<z.ZodString>;
436
+ url: z.ZodString;
437
+ title: z.ZodString;
438
+ elements: z.ZodArray<z.ZodObject<{
439
+ ref: z.ZodString;
440
+ role: z.ZodString;
441
+ tagName: z.ZodString;
442
+ text: z.ZodString;
443
+ selector: z.ZodString;
444
+ attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
445
+ }, z.core.$strip>>;
446
+ }, z.core.$strip>, z.ZodObject<{
447
+ command: z.ZodLiteral<"click">;
448
+ browserId: z.ZodString;
449
+ ref: z.ZodString;
450
+ }, z.core.$strip>, z.ZodObject<{
451
+ command: z.ZodLiteral<"fill">;
452
+ browserId: z.ZodString;
453
+ ref: z.ZodString;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ command: z.ZodLiteral<"wait">;
456
+ browserId: z.ZodString;
457
+ matched: z.ZodEnum<{
458
+ text: "text";
459
+ url: "url";
460
+ }>;
461
+ }, z.core.$strip>, z.ZodObject<{
462
+ command: z.ZodLiteral<"type">;
463
+ browserId: z.ZodString;
464
+ ref: z.ZodOptional<z.ZodString>;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ command: z.ZodLiteral<"keypress">;
467
+ browserId: z.ZodString;
468
+ key: z.ZodString;
469
+ ref: z.ZodOptional<z.ZodString>;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ command: z.ZodLiteral<"navigate">;
472
+ browserId: z.ZodString;
473
+ url: z.ZodString;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ command: z.ZodLiteral<"back">;
476
+ browserId: z.ZodString;
477
+ }, z.core.$strip>, z.ZodObject<{
478
+ command: z.ZodLiteral<"forward">;
479
+ browserId: z.ZodString;
480
+ }, z.core.$strip>, z.ZodObject<{
481
+ command: z.ZodLiteral<"reload">;
482
+ browserId: z.ZodString;
483
+ }, z.core.$strip>, z.ZodObject<{
484
+ command: z.ZodLiteral<"screenshot">;
485
+ browserId: z.ZodString;
486
+ mimeType: z.ZodLiteral<"image/png">;
487
+ dataBase64: z.ZodString;
488
+ width: z.ZodNumber;
489
+ height: z.ZodNumber;
490
+ }, z.core.$strip>, z.ZodObject<{
491
+ command: z.ZodLiteral<"upload">;
492
+ browserId: z.ZodString;
493
+ ref: z.ZodString;
494
+ filePaths: z.ZodArray<z.ZodString>;
495
+ }, z.core.$strip>, z.ZodObject<{
496
+ command: z.ZodLiteral<"select">;
497
+ browserId: z.ZodString;
498
+ ref: z.ZodString;
499
+ value: z.ZodString;
500
+ }, z.core.$strip>, z.ZodObject<{
501
+ command: z.ZodLiteral<"hover">;
502
+ browserId: z.ZodString;
503
+ ref: z.ZodString;
504
+ }, z.core.$strip>, z.ZodObject<{
505
+ command: z.ZodLiteral<"drag">;
506
+ browserId: z.ZodString;
507
+ sourceRef: z.ZodString;
508
+ targetRef: z.ZodString;
509
+ }, z.core.$strip>, z.ZodObject<{
510
+ command: z.ZodLiteral<"logs">;
511
+ browserId: z.ZodString;
512
+ console: z.ZodArray<z.ZodObject<{
513
+ level: z.ZodString;
514
+ message: z.ZodString;
515
+ source: z.ZodOptional<z.ZodString>;
516
+ line: z.ZodOptional<z.ZodNumber>;
517
+ timestamp: z.ZodNumber;
518
+ }, z.core.$strip>>;
519
+ network: z.ZodArray<z.ZodObject<{
520
+ url: z.ZodString;
521
+ method: z.ZodOptional<z.ZodString>;
522
+ status: z.ZodOptional<z.ZodNumber>;
523
+ type: z.ZodOptional<z.ZodString>;
524
+ startTime: z.ZodNumber;
525
+ duration: z.ZodNumber;
526
+ transferSize: z.ZodOptional<z.ZodNumber>;
527
+ }, z.core.$strip>>;
528
+ }, z.core.$strip>], "command">;
529
+ export declare const BrowserAutomationErrorSchema: z.ZodObject<{
530
+ code: z.ZodEnum<{
531
+ browser_disabled: "browser_disabled";
532
+ browser_no_desktop: "browser_no_desktop";
533
+ browser_tab_not_found: "browser_tab_not_found";
534
+ browser_tab_closed: "browser_tab_closed";
535
+ browser_timeout: "browser_timeout";
536
+ screenshot_no_frame: "screenshot_no_frame";
537
+ browser_denied: "browser_denied";
538
+ browser_unsupported: "browser_unsupported";
539
+ browser_stale_ref: "browser_stale_ref";
540
+ browser_unknown_error: "browser_unknown_error";
541
+ }>;
542
+ message: z.ZodString;
543
+ retryable: z.ZodDefault<z.ZodBoolean>;
544
+ }, z.core.$strip>;
545
+ export declare const BrowserAutomationExecuteRequestSchema: z.ZodObject<{
546
+ type: z.ZodLiteral<"browser.automation.execute.request">;
547
+ requestId: z.ZodString;
548
+ agentId: z.ZodOptional<z.ZodString>;
549
+ cwd: z.ZodOptional<z.ZodString>;
550
+ workspaceId: z.ZodOptional<z.ZodString>;
551
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
552
+ command: z.ZodLiteral<"list_tabs">;
553
+ args: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
554
+ }, z.core.$strip>, z.ZodObject<{
555
+ command: z.ZodLiteral<"new_tab">;
556
+ args: z.ZodDefault<z.ZodObject<{
557
+ url: z.ZodOptional<z.ZodString>;
558
+ }, z.core.$strict>>;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ command: z.ZodLiteral<"snapshot">;
561
+ args: z.ZodObject<{
562
+ browserId: z.ZodString;
563
+ }, z.core.$strict>;
564
+ }, z.core.$strip>, z.ZodObject<{
565
+ command: z.ZodLiteral<"click">;
566
+ args: z.ZodObject<{
567
+ browserId: z.ZodString;
568
+ ref: z.ZodString;
569
+ }, z.core.$strict>;
570
+ }, z.core.$strip>, z.ZodObject<{
571
+ command: z.ZodLiteral<"fill">;
572
+ args: z.ZodObject<{
573
+ browserId: z.ZodString;
574
+ ref: z.ZodString;
575
+ value: z.ZodString;
576
+ }, z.core.$strict>;
577
+ }, z.core.$strip>, z.ZodObject<{
578
+ command: z.ZodLiteral<"wait">;
579
+ args: z.ZodObject<{
580
+ browserId: z.ZodString;
581
+ text: z.ZodOptional<z.ZodString>;
582
+ url: z.ZodOptional<z.ZodString>;
583
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
584
+ }, z.core.$strict>;
585
+ }, z.core.$strip>, z.ZodObject<{
586
+ command: z.ZodLiteral<"type">;
587
+ args: z.ZodObject<{
588
+ browserId: z.ZodString;
589
+ ref: z.ZodOptional<z.ZodString>;
590
+ text: z.ZodString;
591
+ }, z.core.$strict>;
592
+ }, z.core.$strip>, z.ZodObject<{
593
+ command: z.ZodLiteral<"keypress">;
594
+ args: z.ZodObject<{
595
+ browserId: z.ZodString;
596
+ ref: z.ZodOptional<z.ZodString>;
597
+ key: z.ZodString;
598
+ }, z.core.$strict>;
599
+ }, z.core.$strip>, z.ZodObject<{
600
+ command: z.ZodLiteral<"navigate">;
601
+ args: z.ZodObject<{
602
+ browserId: z.ZodString;
603
+ url: z.ZodString;
604
+ }, z.core.$strict>;
605
+ }, z.core.$strip>, z.ZodObject<{
606
+ command: z.ZodLiteral<"back">;
607
+ args: z.ZodObject<{
608
+ browserId: z.ZodString;
609
+ }, z.core.$strict>;
610
+ }, z.core.$strip>, z.ZodObject<{
611
+ command: z.ZodLiteral<"forward">;
612
+ args: z.ZodObject<{
613
+ browserId: z.ZodString;
614
+ }, z.core.$strict>;
615
+ }, z.core.$strip>, z.ZodObject<{
616
+ command: z.ZodLiteral<"reload">;
617
+ args: z.ZodObject<{
618
+ browserId: z.ZodString;
619
+ }, z.core.$strict>;
620
+ }, z.core.$strip>, z.ZodObject<{
621
+ command: z.ZodLiteral<"screenshot">;
622
+ args: z.ZodObject<{
623
+ browserId: z.ZodString;
624
+ fullPage: z.ZodDefault<z.ZodBoolean>;
625
+ }, z.core.$strict>;
626
+ }, z.core.$strip>, z.ZodObject<{
627
+ command: z.ZodLiteral<"upload">;
628
+ args: z.ZodObject<{
629
+ browserId: z.ZodString;
630
+ ref: z.ZodString;
631
+ filePaths: z.ZodArray<z.ZodString>;
632
+ }, z.core.$strict>;
633
+ }, z.core.$strip>, z.ZodObject<{
634
+ command: z.ZodLiteral<"select">;
635
+ args: z.ZodObject<{
636
+ browserId: z.ZodString;
637
+ ref: z.ZodString;
638
+ value: z.ZodString;
639
+ }, z.core.$strict>;
640
+ }, z.core.$strip>, z.ZodObject<{
641
+ command: z.ZodLiteral<"hover">;
642
+ args: z.ZodObject<{
643
+ browserId: z.ZodString;
644
+ ref: z.ZodString;
645
+ }, z.core.$strict>;
646
+ }, z.core.$strip>, z.ZodObject<{
647
+ command: z.ZodLiteral<"drag">;
648
+ args: z.ZodObject<{
649
+ browserId: z.ZodString;
650
+ sourceRef: z.ZodString;
651
+ targetRef: z.ZodString;
652
+ }, z.core.$strict>;
653
+ }, z.core.$strip>, z.ZodObject<{
654
+ command: z.ZodLiteral<"logs">;
655
+ args: z.ZodObject<{
656
+ browserId: z.ZodString;
657
+ maxEntries: z.ZodDefault<z.ZodNumber>;
658
+ }, z.core.$strict>;
659
+ }, z.core.$strip>], "command">;
660
+ }, z.core.$strict>;
661
+ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
662
+ type: z.ZodLiteral<"browser.automation.execute.response">;
663
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
664
+ requestId: z.ZodString;
665
+ ok: z.ZodLiteral<true>;
666
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
667
+ command: z.ZodLiteral<"list_tabs">;
668
+ tabs: z.ZodArray<z.ZodObject<{
669
+ browserId: z.ZodString;
670
+ workspaceId: z.ZodOptional<z.ZodString>;
671
+ url: z.ZodString;
672
+ title: z.ZodString;
673
+ isActive: z.ZodDefault<z.ZodBoolean>;
674
+ isLoading: z.ZodDefault<z.ZodBoolean>;
675
+ canGoBack: z.ZodOptional<z.ZodBoolean>;
676
+ canGoForward: z.ZodOptional<z.ZodBoolean>;
677
+ }, z.core.$strip>>;
678
+ }, z.core.$strip>, z.ZodObject<{
679
+ command: z.ZodLiteral<"new_tab">;
680
+ browserId: z.ZodString;
681
+ workspaceId: z.ZodString;
682
+ url: z.ZodString;
683
+ }, z.core.$strip>, z.ZodObject<{
684
+ command: z.ZodLiteral<"snapshot">;
685
+ browserId: z.ZodString;
686
+ workspaceId: z.ZodOptional<z.ZodString>;
687
+ url: z.ZodString;
688
+ title: z.ZodString;
689
+ elements: z.ZodArray<z.ZodObject<{
690
+ ref: z.ZodString;
691
+ role: z.ZodString;
692
+ tagName: z.ZodString;
693
+ text: z.ZodString;
694
+ selector: z.ZodString;
695
+ attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
696
+ }, z.core.$strip>>;
697
+ }, z.core.$strip>, z.ZodObject<{
698
+ command: z.ZodLiteral<"click">;
699
+ browserId: z.ZodString;
700
+ ref: z.ZodString;
701
+ }, z.core.$strip>, z.ZodObject<{
702
+ command: z.ZodLiteral<"fill">;
703
+ browserId: z.ZodString;
704
+ ref: z.ZodString;
705
+ }, z.core.$strip>, z.ZodObject<{
706
+ command: z.ZodLiteral<"wait">;
707
+ browserId: z.ZodString;
708
+ matched: z.ZodEnum<{
709
+ text: "text";
710
+ url: "url";
711
+ }>;
712
+ }, z.core.$strip>, z.ZodObject<{
713
+ command: z.ZodLiteral<"type">;
714
+ browserId: z.ZodString;
715
+ ref: z.ZodOptional<z.ZodString>;
716
+ }, z.core.$strip>, z.ZodObject<{
717
+ command: z.ZodLiteral<"keypress">;
718
+ browserId: z.ZodString;
719
+ key: z.ZodString;
720
+ ref: z.ZodOptional<z.ZodString>;
721
+ }, z.core.$strip>, z.ZodObject<{
722
+ command: z.ZodLiteral<"navigate">;
723
+ browserId: z.ZodString;
724
+ url: z.ZodString;
725
+ }, z.core.$strip>, z.ZodObject<{
726
+ command: z.ZodLiteral<"back">;
727
+ browserId: z.ZodString;
728
+ }, z.core.$strip>, z.ZodObject<{
729
+ command: z.ZodLiteral<"forward">;
730
+ browserId: z.ZodString;
731
+ }, z.core.$strip>, z.ZodObject<{
732
+ command: z.ZodLiteral<"reload">;
733
+ browserId: z.ZodString;
734
+ }, z.core.$strip>, z.ZodObject<{
735
+ command: z.ZodLiteral<"screenshot">;
736
+ browserId: z.ZodString;
737
+ mimeType: z.ZodLiteral<"image/png">;
738
+ dataBase64: z.ZodString;
739
+ width: z.ZodNumber;
740
+ height: z.ZodNumber;
741
+ }, z.core.$strip>, z.ZodObject<{
742
+ command: z.ZodLiteral<"upload">;
743
+ browserId: z.ZodString;
744
+ ref: z.ZodString;
745
+ filePaths: z.ZodArray<z.ZodString>;
746
+ }, z.core.$strip>, z.ZodObject<{
747
+ command: z.ZodLiteral<"select">;
748
+ browserId: z.ZodString;
749
+ ref: z.ZodString;
750
+ value: z.ZodString;
751
+ }, z.core.$strip>, z.ZodObject<{
752
+ command: z.ZodLiteral<"hover">;
753
+ browserId: z.ZodString;
754
+ ref: z.ZodString;
755
+ }, z.core.$strip>, z.ZodObject<{
756
+ command: z.ZodLiteral<"drag">;
757
+ browserId: z.ZodString;
758
+ sourceRef: z.ZodString;
759
+ targetRef: z.ZodString;
760
+ }, z.core.$strip>, z.ZodObject<{
761
+ command: z.ZodLiteral<"logs">;
762
+ browserId: z.ZodString;
763
+ console: z.ZodArray<z.ZodObject<{
764
+ level: z.ZodString;
765
+ message: z.ZodString;
766
+ source: z.ZodOptional<z.ZodString>;
767
+ line: z.ZodOptional<z.ZodNumber>;
768
+ timestamp: z.ZodNumber;
769
+ }, z.core.$strip>>;
770
+ network: z.ZodArray<z.ZodObject<{
771
+ url: z.ZodString;
772
+ method: z.ZodOptional<z.ZodString>;
773
+ status: z.ZodOptional<z.ZodNumber>;
774
+ type: z.ZodOptional<z.ZodString>;
775
+ startTime: z.ZodNumber;
776
+ duration: z.ZodNumber;
777
+ transferSize: z.ZodOptional<z.ZodNumber>;
778
+ }, z.core.$strip>>;
779
+ }, z.core.$strip>], "command">;
780
+ }, z.core.$strip>, z.ZodObject<{
781
+ requestId: z.ZodString;
782
+ ok: z.ZodLiteral<false>;
783
+ error: z.ZodObject<{
784
+ code: z.ZodEnum<{
785
+ browser_disabled: "browser_disabled";
786
+ browser_no_desktop: "browser_no_desktop";
787
+ browser_tab_not_found: "browser_tab_not_found";
788
+ browser_tab_closed: "browser_tab_closed";
789
+ browser_timeout: "browser_timeout";
790
+ screenshot_no_frame: "screenshot_no_frame";
791
+ browser_denied: "browser_denied";
792
+ browser_unsupported: "browser_unsupported";
793
+ browser_stale_ref: "browser_stale_ref";
794
+ browser_unknown_error: "browser_unknown_error";
795
+ }>;
796
+ message: z.ZodString;
797
+ retryable: z.ZodDefault<z.ZodBoolean>;
798
+ }, z.core.$strip>;
799
+ }, z.core.$strip>], "ok">;
800
+ }, z.core.$strip>;
801
+ export type BrowserAutomationErrorCode = z.infer<typeof BrowserAutomationErrorCodeSchema>;
802
+ export type BrowserAutomationCommand = z.infer<typeof BrowserAutomationCommandSchema>;
803
+ export type BrowserAutomationResult = z.infer<typeof BrowserAutomationResultSchema>;
804
+ export type BrowserAutomationConsoleLogEntry = z.infer<typeof BrowserAutomationConsoleLogEntrySchema>;
805
+ export type BrowserAutomationNetworkLogEntry = z.infer<typeof BrowserAutomationNetworkLogEntrySchema>;
806
+ export type BrowserAutomationExecuteRequest = z.infer<typeof BrowserAutomationExecuteRequestSchema>;
807
+ export type BrowserAutomationExecuteResponse = z.infer<typeof BrowserAutomationExecuteResponseSchema>;
808
+ //# sourceMappingURL=rpc-schemas.d.ts.map