@getpaseo/protocol 0.1.104-beta.2 → 0.1.104-beta.4
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.
- package/dist/browser-automation/capabilities.d.ts +7 -0
- package/dist/browser-automation/capabilities.js +31 -0
- package/dist/browser-automation/rpc-schemas.d.ts +339 -35
- package/dist/browser-automation/rpc-schemas.js +125 -10
- package/dist/client-capabilities.d.ts +1 -1
- package/dist/client-capabilities.js +1 -1
- package/dist/generated/validation/ws-outbound.aot.d.ts +2 -0
- package/dist/generated/validation/ws-outbound.aot.js +44107 -0
- package/dist/loop/rpc-schemas.js +1 -1
- package/dist/messages.d.ts +372 -48
- package/dist/messages.js +20 -15
- package/dist/schedule/types.js +1 -1
- package/dist/tool-call-display.js +1 -1
- package/dist/validation/ws-outbound-schema-metadata.d.ts +6206 -0
- package/dist/validation/ws-outbound-schema-metadata.js +3 -0
- package/dist/validation/ws-outbound.d.ts +12 -0
- package/dist/validation/ws-outbound.js +8 -0
- package/package.json +9 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BrowserAutomationHostCapabilitySchema: z.ZodObject<{
|
|
3
|
+
supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("select" | "type" | "fill" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "scroll" | "resize" | "close_tab")[], string[]>>;
|
|
4
|
+
hostKind: z.ZodDefault<z.ZodString>;
|
|
5
|
+
}, z.core.$loose>;
|
|
6
|
+
export type BrowserAutomationHostCapability = z.infer<typeof BrowserAutomationHostCapabilitySchema>;
|
|
7
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { BROWSER_AUTOMATION_COMMAND_NAMES, } from "./rpc-schemas.js";
|
|
3
|
+
const KNOWN_BROWSER_AUTOMATION_COMMAND_NAMES = new Set(BROWSER_AUTOMATION_COMMAND_NAMES);
|
|
4
|
+
export const BrowserAutomationHostCapabilitySchema = z
|
|
5
|
+
.object({
|
|
6
|
+
supportedCommands: z.array(z.string().min(1)).transform((commands, context) => {
|
|
7
|
+
const supportedCommands = [];
|
|
8
|
+
const seen = new Set();
|
|
9
|
+
for (const command of commands) {
|
|
10
|
+
if (!isKnownBrowserAutomationCommandName(command) || seen.has(command)) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
seen.add(command);
|
|
14
|
+
supportedCommands.push(command);
|
|
15
|
+
}
|
|
16
|
+
if (supportedCommands.length === 0) {
|
|
17
|
+
context.addIssue({
|
|
18
|
+
code: "custom",
|
|
19
|
+
message: "supportedCommands must include at least one known browser automation command",
|
|
20
|
+
});
|
|
21
|
+
return z.NEVER;
|
|
22
|
+
}
|
|
23
|
+
return supportedCommands;
|
|
24
|
+
}),
|
|
25
|
+
hostKind: z.string().min(1).default("browser host"),
|
|
26
|
+
})
|
|
27
|
+
.passthrough();
|
|
28
|
+
function isKnownBrowserAutomationCommandName(value) {
|
|
29
|
+
return KNOWN_BROWSER_AUTOMATION_COMMAND_NAMES.has(value);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BrowserAutomationErrorCodeSchema: z.ZodEnum<{
|
|
3
3
|
browser_disabled: "browser_disabled";
|
|
4
|
-
|
|
4
|
+
browser_no_host: "browser_no_host";
|
|
5
5
|
browser_tab_not_found: "browser_tab_not_found";
|
|
6
6
|
browser_tab_closed: "browser_tab_closed";
|
|
7
7
|
browser_timeout: "browser_timeout";
|
|
@@ -11,6 +11,31 @@ export declare const BrowserAutomationErrorCodeSchema: z.ZodEnum<{
|
|
|
11
11
|
browser_stale_ref: "browser_stale_ref";
|
|
12
12
|
browser_unknown_error: "browser_unknown_error";
|
|
13
13
|
}>;
|
|
14
|
+
export declare const BROWSER_AUTOMATION_COMMAND_NAMES: readonly ["list_tabs", "new_tab", "snapshot", "click", "fill", "wait", "type", "keypress", "navigate", "back", "forward", "reload", "screenshot", "upload", "select", "hover", "drag", "logs", "evaluate", "scroll", "resize", "close_tab"];
|
|
15
|
+
export declare const BrowserAutomationCommandNameSchema: z.ZodEnum<{
|
|
16
|
+
select: "select";
|
|
17
|
+
type: "type";
|
|
18
|
+
fill: "fill";
|
|
19
|
+
logs: "logs";
|
|
20
|
+
list_tabs: "list_tabs";
|
|
21
|
+
new_tab: "new_tab";
|
|
22
|
+
snapshot: "snapshot";
|
|
23
|
+
click: "click";
|
|
24
|
+
wait: "wait";
|
|
25
|
+
keypress: "keypress";
|
|
26
|
+
navigate: "navigate";
|
|
27
|
+
back: "back";
|
|
28
|
+
forward: "forward";
|
|
29
|
+
reload: "reload";
|
|
30
|
+
screenshot: "screenshot";
|
|
31
|
+
upload: "upload";
|
|
32
|
+
hover: "hover";
|
|
33
|
+
drag: "drag";
|
|
34
|
+
evaluate: "evaluate";
|
|
35
|
+
scroll: "scroll";
|
|
36
|
+
resize: "resize";
|
|
37
|
+
close_tab: "close_tab";
|
|
38
|
+
}>;
|
|
14
39
|
export declare const BrowserAutomationBrowserIdSchema: z.ZodString;
|
|
15
40
|
export declare const BrowserAutomationListTabsCommandSchema: z.ZodObject<{
|
|
16
41
|
command: z.ZodLiteral<"list_tabs">;
|
|
@@ -33,6 +58,18 @@ export declare const BrowserAutomationClickCommandSchema: z.ZodObject<{
|
|
|
33
58
|
args: z.ZodObject<{
|
|
34
59
|
browserId: z.ZodString;
|
|
35
60
|
ref: z.ZodString;
|
|
61
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
62
|
+
left: "left";
|
|
63
|
+
right: "right";
|
|
64
|
+
middle: "middle";
|
|
65
|
+
}>>;
|
|
66
|
+
doubleClick: z.ZodDefault<z.ZodBoolean>;
|
|
67
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
68
|
+
Alt: "Alt";
|
|
69
|
+
Control: "Control";
|
|
70
|
+
Meta: "Meta";
|
|
71
|
+
Shift: "Shift";
|
|
72
|
+
}>>>;
|
|
36
73
|
}, z.core.$strict>;
|
|
37
74
|
}, z.core.$strip>;
|
|
38
75
|
export declare const BrowserAutomationFillCommandSchema: z.ZodObject<{
|
|
@@ -138,6 +175,37 @@ export declare const BrowserAutomationLogsCommandSchema: z.ZodObject<{
|
|
|
138
175
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
139
176
|
}, z.core.$strict>;
|
|
140
177
|
}, z.core.$strip>;
|
|
178
|
+
export declare const BrowserAutomationEvaluateCommandSchema: z.ZodObject<{
|
|
179
|
+
command: z.ZodLiteral<"evaluate">;
|
|
180
|
+
args: z.ZodObject<{
|
|
181
|
+
browserId: z.ZodString;
|
|
182
|
+
function: z.ZodString;
|
|
183
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export declare const BrowserAutomationScrollCommandSchema: z.ZodObject<{
|
|
187
|
+
command: z.ZodLiteral<"scroll">;
|
|
188
|
+
args: z.ZodObject<{
|
|
189
|
+
browserId: z.ZodString;
|
|
190
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
191
|
+
deltaX: z.ZodNumber;
|
|
192
|
+
deltaY: z.ZodNumber;
|
|
193
|
+
}, z.core.$strict>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
export declare const BrowserAutomationResizeCommandSchema: z.ZodObject<{
|
|
196
|
+
command: z.ZodLiteral<"resize">;
|
|
197
|
+
args: z.ZodObject<{
|
|
198
|
+
browserId: z.ZodString;
|
|
199
|
+
width: z.ZodNumber;
|
|
200
|
+
height: z.ZodNumber;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
export declare const BrowserAutomationCloseTabCommandSchema: z.ZodObject<{
|
|
204
|
+
command: z.ZodLiteral<"close_tab">;
|
|
205
|
+
args: z.ZodObject<{
|
|
206
|
+
browserId: z.ZodString;
|
|
207
|
+
}, z.core.$strict>;
|
|
208
|
+
}, z.core.$strip>;
|
|
141
209
|
export declare const BrowserAutomationCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
142
210
|
command: z.ZodLiteral<"list_tabs">;
|
|
143
211
|
args: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
|
|
@@ -156,6 +224,18 @@ export declare const BrowserAutomationCommandSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
156
224
|
args: z.ZodObject<{
|
|
157
225
|
browserId: z.ZodString;
|
|
158
226
|
ref: z.ZodString;
|
|
227
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
228
|
+
left: "left";
|
|
229
|
+
right: "right";
|
|
230
|
+
middle: "middle";
|
|
231
|
+
}>>;
|
|
232
|
+
doubleClick: z.ZodDefault<z.ZodBoolean>;
|
|
233
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
234
|
+
Alt: "Alt";
|
|
235
|
+
Control: "Control";
|
|
236
|
+
Meta: "Meta";
|
|
237
|
+
Shift: "Shift";
|
|
238
|
+
}>>>;
|
|
159
239
|
}, z.core.$strict>;
|
|
160
240
|
}, z.core.$strip>, z.ZodObject<{
|
|
161
241
|
command: z.ZodLiteral<"fill">;
|
|
@@ -246,6 +326,33 @@ export declare const BrowserAutomationCommandSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
246
326
|
browserId: z.ZodString;
|
|
247
327
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
248
328
|
}, z.core.$strict>;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
command: z.ZodLiteral<"evaluate">;
|
|
331
|
+
args: z.ZodObject<{
|
|
332
|
+
browserId: z.ZodString;
|
|
333
|
+
function: z.ZodString;
|
|
334
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
335
|
+
}, z.core.$strict>;
|
|
336
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
337
|
+
command: z.ZodLiteral<"scroll">;
|
|
338
|
+
args: z.ZodObject<{
|
|
339
|
+
browserId: z.ZodString;
|
|
340
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
341
|
+
deltaX: z.ZodNumber;
|
|
342
|
+
deltaY: z.ZodNumber;
|
|
343
|
+
}, z.core.$strict>;
|
|
344
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
345
|
+
command: z.ZodLiteral<"resize">;
|
|
346
|
+
args: z.ZodObject<{
|
|
347
|
+
browserId: z.ZodString;
|
|
348
|
+
width: z.ZodNumber;
|
|
349
|
+
height: z.ZodNumber;
|
|
350
|
+
}, z.core.$strict>;
|
|
351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
352
|
+
command: z.ZodLiteral<"close_tab">;
|
|
353
|
+
args: z.ZodObject<{
|
|
354
|
+
browserId: z.ZodString;
|
|
355
|
+
}, z.core.$strict>;
|
|
249
356
|
}, z.core.$strip>], "command">;
|
|
250
357
|
export declare const BrowserAutomationTabInfoSchema: z.ZodObject<{
|
|
251
358
|
browserId: z.ZodString;
|
|
@@ -276,33 +383,36 @@ export declare const BrowserAutomationNewTabResultSchema: z.ZodObject<{
|
|
|
276
383
|
workspaceId: z.ZodString;
|
|
277
384
|
url: z.ZodString;
|
|
278
385
|
}, z.core.$strip>;
|
|
279
|
-
export declare const
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}, z.core.$strip>;
|
|
386
|
+
export declare const BrowserAutomationSnapshotStatsSchema: z.ZodObject<{
|
|
387
|
+
nodeCount: z.ZodNumber;
|
|
388
|
+
refCount: z.ZodNumber;
|
|
389
|
+
textLength: z.ZodNumber;
|
|
390
|
+
iframeCount: z.ZodOptional<z.ZodNumber>;
|
|
391
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
392
|
+
}, z.core.$strict>;
|
|
287
393
|
export declare const BrowserAutomationSnapshotResultSchema: z.ZodObject<{
|
|
288
394
|
command: z.ZodLiteral<"snapshot">;
|
|
289
395
|
browserId: z.ZodString;
|
|
290
396
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
291
397
|
url: z.ZodString;
|
|
292
398
|
title: z.ZodString;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
399
|
+
format: z.ZodLiteral<"aria-yaml">;
|
|
400
|
+
snapshot: z.ZodString;
|
|
401
|
+
truncated: z.ZodBoolean;
|
|
402
|
+
stats: z.ZodObject<{
|
|
403
|
+
nodeCount: z.ZodNumber;
|
|
404
|
+
refCount: z.ZodNumber;
|
|
405
|
+
textLength: z.ZodNumber;
|
|
406
|
+
iframeCount: z.ZodOptional<z.ZodNumber>;
|
|
407
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
}, z.core.$strict>;
|
|
301
409
|
}, z.core.$strip>;
|
|
302
410
|
export declare const BrowserAutomationClickResultSchema: z.ZodObject<{
|
|
303
411
|
command: z.ZodLiteral<"click">;
|
|
304
412
|
browserId: z.ZodString;
|
|
305
413
|
ref: z.ZodString;
|
|
414
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
415
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
306
416
|
}, z.core.$strip>;
|
|
307
417
|
export declare const BrowserAutomationFillResultSchema: z.ZodObject<{
|
|
308
418
|
command: z.ZodLiteral<"fill">;
|
|
@@ -321,12 +431,16 @@ export declare const BrowserAutomationTypeResultSchema: z.ZodObject<{
|
|
|
321
431
|
command: z.ZodLiteral<"type">;
|
|
322
432
|
browserId: z.ZodString;
|
|
323
433
|
ref: z.ZodOptional<z.ZodString>;
|
|
434
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
324
436
|
}, z.core.$strip>;
|
|
325
437
|
export declare const BrowserAutomationKeypressResultSchema: z.ZodObject<{
|
|
326
438
|
command: z.ZodLiteral<"keypress">;
|
|
327
439
|
browserId: z.ZodString;
|
|
328
440
|
key: z.ZodString;
|
|
329
441
|
ref: z.ZodOptional<z.ZodString>;
|
|
442
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
443
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
330
444
|
}, z.core.$strip>;
|
|
331
445
|
export declare const BrowserAutomationNavigateResultSchema: z.ZodObject<{
|
|
332
446
|
command: z.ZodLiteral<"navigate">;
|
|
@@ -369,12 +483,18 @@ export declare const BrowserAutomationHoverResultSchema: z.ZodObject<{
|
|
|
369
483
|
command: z.ZodLiteral<"hover">;
|
|
370
484
|
browserId: z.ZodString;
|
|
371
485
|
ref: z.ZodString;
|
|
486
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
487
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
372
488
|
}, z.core.$strip>;
|
|
373
489
|
export declare const BrowserAutomationDragResultSchema: z.ZodObject<{
|
|
374
490
|
command: z.ZodLiteral<"drag">;
|
|
375
491
|
browserId: z.ZodString;
|
|
376
492
|
sourceRef: z.ZodString;
|
|
377
493
|
targetRef: z.ZodString;
|
|
494
|
+
sourceX: z.ZodOptional<z.ZodNumber>;
|
|
495
|
+
sourceY: z.ZodOptional<z.ZodNumber>;
|
|
496
|
+
targetX: z.ZodOptional<z.ZodNumber>;
|
|
497
|
+
targetY: z.ZodOptional<z.ZodNumber>;
|
|
378
498
|
}, z.core.$strip>;
|
|
379
499
|
export declare const BrowserAutomationConsoleLogEntrySchema: z.ZodObject<{
|
|
380
500
|
level: z.ZodString;
|
|
@@ -412,6 +532,31 @@ export declare const BrowserAutomationLogsResultSchema: z.ZodObject<{
|
|
|
412
532
|
transferSize: z.ZodOptional<z.ZodNumber>;
|
|
413
533
|
}, z.core.$strip>>;
|
|
414
534
|
}, z.core.$strip>;
|
|
535
|
+
export declare const BrowserAutomationEvaluateResultSchema: z.ZodObject<{
|
|
536
|
+
command: z.ZodLiteral<"evaluate">;
|
|
537
|
+
browserId: z.ZodString;
|
|
538
|
+
resultJson: z.ZodString;
|
|
539
|
+
truncated: z.ZodBoolean;
|
|
540
|
+
}, z.core.$strip>;
|
|
541
|
+
export declare const BrowserAutomationScrollResultSchema: z.ZodObject<{
|
|
542
|
+
command: z.ZodLiteral<"scroll">;
|
|
543
|
+
browserId: z.ZodString;
|
|
544
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
545
|
+
deltaX: z.ZodNumber;
|
|
546
|
+
deltaY: z.ZodNumber;
|
|
547
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
548
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
549
|
+
}, z.core.$strip>;
|
|
550
|
+
export declare const BrowserAutomationResizeResultSchema: z.ZodObject<{
|
|
551
|
+
command: z.ZodLiteral<"resize">;
|
|
552
|
+
browserId: z.ZodString;
|
|
553
|
+
width: z.ZodNumber;
|
|
554
|
+
height: z.ZodNumber;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
export declare const BrowserAutomationCloseTabResultSchema: z.ZodObject<{
|
|
557
|
+
command: z.ZodLiteral<"close_tab">;
|
|
558
|
+
browserId: z.ZodString;
|
|
559
|
+
}, z.core.$strip>;
|
|
415
560
|
export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
416
561
|
command: z.ZodLiteral<"list_tabs">;
|
|
417
562
|
tabs: z.ZodArray<z.ZodObject<{
|
|
@@ -435,18 +580,22 @@ export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
435
580
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
436
581
|
url: z.ZodString;
|
|
437
582
|
title: z.ZodString;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
583
|
+
format: z.ZodLiteral<"aria-yaml">;
|
|
584
|
+
snapshot: z.ZodString;
|
|
585
|
+
truncated: z.ZodBoolean;
|
|
586
|
+
stats: z.ZodObject<{
|
|
587
|
+
nodeCount: z.ZodNumber;
|
|
588
|
+
refCount: z.ZodNumber;
|
|
589
|
+
textLength: z.ZodNumber;
|
|
590
|
+
iframeCount: z.ZodOptional<z.ZodNumber>;
|
|
591
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
592
|
+
}, z.core.$strict>;
|
|
446
593
|
}, z.core.$strip>, z.ZodObject<{
|
|
447
594
|
command: z.ZodLiteral<"click">;
|
|
448
595
|
browserId: z.ZodString;
|
|
449
596
|
ref: z.ZodString;
|
|
597
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
450
599
|
}, z.core.$strip>, z.ZodObject<{
|
|
451
600
|
command: z.ZodLiteral<"fill">;
|
|
452
601
|
browserId: z.ZodString;
|
|
@@ -462,11 +611,15 @@ export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
462
611
|
command: z.ZodLiteral<"type">;
|
|
463
612
|
browserId: z.ZodString;
|
|
464
613
|
ref: z.ZodOptional<z.ZodString>;
|
|
614
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
465
616
|
}, z.core.$strip>, z.ZodObject<{
|
|
466
617
|
command: z.ZodLiteral<"keypress">;
|
|
467
618
|
browserId: z.ZodString;
|
|
468
619
|
key: z.ZodString;
|
|
469
620
|
ref: z.ZodOptional<z.ZodString>;
|
|
621
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
622
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
470
623
|
}, z.core.$strip>, z.ZodObject<{
|
|
471
624
|
command: z.ZodLiteral<"navigate">;
|
|
472
625
|
browserId: z.ZodString;
|
|
@@ -501,11 +654,17 @@ export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
501
654
|
command: z.ZodLiteral<"hover">;
|
|
502
655
|
browserId: z.ZodString;
|
|
503
656
|
ref: z.ZodString;
|
|
657
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
658
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
504
659
|
}, z.core.$strip>, z.ZodObject<{
|
|
505
660
|
command: z.ZodLiteral<"drag">;
|
|
506
661
|
browserId: z.ZodString;
|
|
507
662
|
sourceRef: z.ZodString;
|
|
508
663
|
targetRef: z.ZodString;
|
|
664
|
+
sourceX: z.ZodOptional<z.ZodNumber>;
|
|
665
|
+
sourceY: z.ZodOptional<z.ZodNumber>;
|
|
666
|
+
targetX: z.ZodOptional<z.ZodNumber>;
|
|
667
|
+
targetY: z.ZodOptional<z.ZodNumber>;
|
|
509
668
|
}, z.core.$strip>, z.ZodObject<{
|
|
510
669
|
command: z.ZodLiteral<"logs">;
|
|
511
670
|
browserId: z.ZodString;
|
|
@@ -525,11 +684,32 @@ export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
525
684
|
duration: z.ZodNumber;
|
|
526
685
|
transferSize: z.ZodOptional<z.ZodNumber>;
|
|
527
686
|
}, z.core.$strip>>;
|
|
687
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
688
|
+
command: z.ZodLiteral<"evaluate">;
|
|
689
|
+
browserId: z.ZodString;
|
|
690
|
+
resultJson: z.ZodString;
|
|
691
|
+
truncated: z.ZodBoolean;
|
|
692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
693
|
+
command: z.ZodLiteral<"scroll">;
|
|
694
|
+
browserId: z.ZodString;
|
|
695
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
696
|
+
deltaX: z.ZodNumber;
|
|
697
|
+
deltaY: z.ZodNumber;
|
|
698
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
699
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
700
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
701
|
+
command: z.ZodLiteral<"resize">;
|
|
702
|
+
browserId: z.ZodString;
|
|
703
|
+
width: z.ZodNumber;
|
|
704
|
+
height: z.ZodNumber;
|
|
705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
706
|
+
command: z.ZodLiteral<"close_tab">;
|
|
707
|
+
browserId: z.ZodString;
|
|
528
708
|
}, z.core.$strip>], "command">;
|
|
529
709
|
export declare const BrowserAutomationErrorSchema: z.ZodObject<{
|
|
530
710
|
code: z.ZodEnum<{
|
|
531
711
|
browser_disabled: "browser_disabled";
|
|
532
|
-
|
|
712
|
+
browser_no_host: "browser_no_host";
|
|
533
713
|
browser_tab_not_found: "browser_tab_not_found";
|
|
534
714
|
browser_tab_closed: "browser_tab_closed";
|
|
535
715
|
browser_timeout: "browser_timeout";
|
|
@@ -542,6 +722,22 @@ export declare const BrowserAutomationErrorSchema: z.ZodObject<{
|
|
|
542
722
|
message: z.ZodString;
|
|
543
723
|
retryable: z.ZodDefault<z.ZodBoolean>;
|
|
544
724
|
}, z.core.$strip>;
|
|
725
|
+
export declare const BrowserAutomationDialogEventSchema: z.ZodObject<{
|
|
726
|
+
type: z.ZodEnum<{
|
|
727
|
+
prompt: "prompt";
|
|
728
|
+
alert: "alert";
|
|
729
|
+
confirm: "confirm";
|
|
730
|
+
beforeunload: "beforeunload";
|
|
731
|
+
}>;
|
|
732
|
+
message: z.ZodString;
|
|
733
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
734
|
+
action: z.ZodEnum<{
|
|
735
|
+
accepted: "accepted";
|
|
736
|
+
dismissed: "dismissed";
|
|
737
|
+
}>;
|
|
738
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
739
|
+
timestamp: z.ZodNumber;
|
|
740
|
+
}, z.core.$strip>;
|
|
545
741
|
export declare const BrowserAutomationExecuteRequestSchema: z.ZodObject<{
|
|
546
742
|
type: z.ZodLiteral<"browser.automation.execute.request">;
|
|
547
743
|
requestId: z.ZodString;
|
|
@@ -566,6 +762,18 @@ export declare const BrowserAutomationExecuteRequestSchema: z.ZodObject<{
|
|
|
566
762
|
args: z.ZodObject<{
|
|
567
763
|
browserId: z.ZodString;
|
|
568
764
|
ref: z.ZodString;
|
|
765
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
766
|
+
left: "left";
|
|
767
|
+
right: "right";
|
|
768
|
+
middle: "middle";
|
|
769
|
+
}>>;
|
|
770
|
+
doubleClick: z.ZodDefault<z.ZodBoolean>;
|
|
771
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
772
|
+
Alt: "Alt";
|
|
773
|
+
Control: "Control";
|
|
774
|
+
Meta: "Meta";
|
|
775
|
+
Shift: "Shift";
|
|
776
|
+
}>>>;
|
|
569
777
|
}, z.core.$strict>;
|
|
570
778
|
}, z.core.$strip>, z.ZodObject<{
|
|
571
779
|
command: z.ZodLiteral<"fill">;
|
|
@@ -656,6 +864,33 @@ export declare const BrowserAutomationExecuteRequestSchema: z.ZodObject<{
|
|
|
656
864
|
browserId: z.ZodString;
|
|
657
865
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
658
866
|
}, z.core.$strict>;
|
|
867
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
868
|
+
command: z.ZodLiteral<"evaluate">;
|
|
869
|
+
args: z.ZodObject<{
|
|
870
|
+
browserId: z.ZodString;
|
|
871
|
+
function: z.ZodString;
|
|
872
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
873
|
+
}, z.core.$strict>;
|
|
874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
875
|
+
command: z.ZodLiteral<"scroll">;
|
|
876
|
+
args: z.ZodObject<{
|
|
877
|
+
browserId: z.ZodString;
|
|
878
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
879
|
+
deltaX: z.ZodNumber;
|
|
880
|
+
deltaY: z.ZodNumber;
|
|
881
|
+
}, z.core.$strict>;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
command: z.ZodLiteral<"resize">;
|
|
884
|
+
args: z.ZodObject<{
|
|
885
|
+
browserId: z.ZodString;
|
|
886
|
+
width: z.ZodNumber;
|
|
887
|
+
height: z.ZodNumber;
|
|
888
|
+
}, z.core.$strict>;
|
|
889
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
890
|
+
command: z.ZodLiteral<"close_tab">;
|
|
891
|
+
args: z.ZodObject<{
|
|
892
|
+
browserId: z.ZodString;
|
|
893
|
+
}, z.core.$strict>;
|
|
659
894
|
}, z.core.$strip>], "command">;
|
|
660
895
|
}, z.core.$strict>;
|
|
661
896
|
export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
@@ -686,18 +921,22 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
686
921
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
687
922
|
url: z.ZodString;
|
|
688
923
|
title: z.ZodString;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
924
|
+
format: z.ZodLiteral<"aria-yaml">;
|
|
925
|
+
snapshot: z.ZodString;
|
|
926
|
+
truncated: z.ZodBoolean;
|
|
927
|
+
stats: z.ZodObject<{
|
|
928
|
+
nodeCount: z.ZodNumber;
|
|
929
|
+
refCount: z.ZodNumber;
|
|
930
|
+
textLength: z.ZodNumber;
|
|
931
|
+
iframeCount: z.ZodOptional<z.ZodNumber>;
|
|
932
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
933
|
+
}, z.core.$strict>;
|
|
697
934
|
}, z.core.$strip>, z.ZodObject<{
|
|
698
935
|
command: z.ZodLiteral<"click">;
|
|
699
936
|
browserId: z.ZodString;
|
|
700
937
|
ref: z.ZodString;
|
|
938
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
939
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
701
940
|
}, z.core.$strip>, z.ZodObject<{
|
|
702
941
|
command: z.ZodLiteral<"fill">;
|
|
703
942
|
browserId: z.ZodString;
|
|
@@ -713,11 +952,15 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
713
952
|
command: z.ZodLiteral<"type">;
|
|
714
953
|
browserId: z.ZodString;
|
|
715
954
|
ref: z.ZodOptional<z.ZodString>;
|
|
955
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
956
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
716
957
|
}, z.core.$strip>, z.ZodObject<{
|
|
717
958
|
command: z.ZodLiteral<"keypress">;
|
|
718
959
|
browserId: z.ZodString;
|
|
719
960
|
key: z.ZodString;
|
|
720
961
|
ref: z.ZodOptional<z.ZodString>;
|
|
962
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
963
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
721
964
|
}, z.core.$strip>, z.ZodObject<{
|
|
722
965
|
command: z.ZodLiteral<"navigate">;
|
|
723
966
|
browserId: z.ZodString;
|
|
@@ -752,11 +995,17 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
752
995
|
command: z.ZodLiteral<"hover">;
|
|
753
996
|
browserId: z.ZodString;
|
|
754
997
|
ref: z.ZodString;
|
|
998
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
999
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
755
1000
|
}, z.core.$strip>, z.ZodObject<{
|
|
756
1001
|
command: z.ZodLiteral<"drag">;
|
|
757
1002
|
browserId: z.ZodString;
|
|
758
1003
|
sourceRef: z.ZodString;
|
|
759
1004
|
targetRef: z.ZodString;
|
|
1005
|
+
sourceX: z.ZodOptional<z.ZodNumber>;
|
|
1006
|
+
sourceY: z.ZodOptional<z.ZodNumber>;
|
|
1007
|
+
targetX: z.ZodOptional<z.ZodNumber>;
|
|
1008
|
+
targetY: z.ZodOptional<z.ZodNumber>;
|
|
760
1009
|
}, z.core.$strip>, z.ZodObject<{
|
|
761
1010
|
command: z.ZodLiteral<"logs">;
|
|
762
1011
|
browserId: z.ZodString;
|
|
@@ -776,14 +1025,51 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
776
1025
|
duration: z.ZodNumber;
|
|
777
1026
|
transferSize: z.ZodOptional<z.ZodNumber>;
|
|
778
1027
|
}, z.core.$strip>>;
|
|
1028
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1029
|
+
command: z.ZodLiteral<"evaluate">;
|
|
1030
|
+
browserId: z.ZodString;
|
|
1031
|
+
resultJson: z.ZodString;
|
|
1032
|
+
truncated: z.ZodBoolean;
|
|
1033
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1034
|
+
command: z.ZodLiteral<"scroll">;
|
|
1035
|
+
browserId: z.ZodString;
|
|
1036
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
deltaX: z.ZodNumber;
|
|
1038
|
+
deltaY: z.ZodNumber;
|
|
1039
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1040
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1041
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1042
|
+
command: z.ZodLiteral<"resize">;
|
|
1043
|
+
browserId: z.ZodString;
|
|
1044
|
+
width: z.ZodNumber;
|
|
1045
|
+
height: z.ZodNumber;
|
|
1046
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1047
|
+
command: z.ZodLiteral<"close_tab">;
|
|
1048
|
+
browserId: z.ZodString;
|
|
779
1049
|
}, z.core.$strip>], "command">;
|
|
1050
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1051
|
+
type: z.ZodEnum<{
|
|
1052
|
+
prompt: "prompt";
|
|
1053
|
+
alert: "alert";
|
|
1054
|
+
confirm: "confirm";
|
|
1055
|
+
beforeunload: "beforeunload";
|
|
1056
|
+
}>;
|
|
1057
|
+
message: z.ZodString;
|
|
1058
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
action: z.ZodEnum<{
|
|
1060
|
+
accepted: "accepted";
|
|
1061
|
+
dismissed: "dismissed";
|
|
1062
|
+
}>;
|
|
1063
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
1064
|
+
timestamp: z.ZodNumber;
|
|
1065
|
+
}, z.core.$strip>>>;
|
|
780
1066
|
}, z.core.$strip>, z.ZodObject<{
|
|
781
1067
|
requestId: z.ZodString;
|
|
782
1068
|
ok: z.ZodLiteral<false>;
|
|
783
1069
|
error: z.ZodObject<{
|
|
784
1070
|
code: z.ZodEnum<{
|
|
785
1071
|
browser_disabled: "browser_disabled";
|
|
786
|
-
|
|
1072
|
+
browser_no_host: "browser_no_host";
|
|
787
1073
|
browser_tab_not_found: "browser_tab_not_found";
|
|
788
1074
|
browser_tab_closed: "browser_tab_closed";
|
|
789
1075
|
browser_timeout: "browser_timeout";
|
|
@@ -796,13 +1082,31 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
796
1082
|
message: z.ZodString;
|
|
797
1083
|
retryable: z.ZodDefault<z.ZodBoolean>;
|
|
798
1084
|
}, z.core.$strip>;
|
|
1085
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1086
|
+
type: z.ZodEnum<{
|
|
1087
|
+
prompt: "prompt";
|
|
1088
|
+
alert: "alert";
|
|
1089
|
+
confirm: "confirm";
|
|
1090
|
+
beforeunload: "beforeunload";
|
|
1091
|
+
}>;
|
|
1092
|
+
message: z.ZodString;
|
|
1093
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1094
|
+
action: z.ZodEnum<{
|
|
1095
|
+
accepted: "accepted";
|
|
1096
|
+
dismissed: "dismissed";
|
|
1097
|
+
}>;
|
|
1098
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
1099
|
+
timestamp: z.ZodNumber;
|
|
1100
|
+
}, z.core.$strip>>>;
|
|
799
1101
|
}, z.core.$strip>], "ok">;
|
|
800
1102
|
}, z.core.$strip>;
|
|
801
1103
|
export type BrowserAutomationErrorCode = z.infer<typeof BrowserAutomationErrorCodeSchema>;
|
|
1104
|
+
export type BrowserAutomationCommandName = z.infer<typeof BrowserAutomationCommandNameSchema>;
|
|
802
1105
|
export type BrowserAutomationCommand = z.infer<typeof BrowserAutomationCommandSchema>;
|
|
803
1106
|
export type BrowserAutomationResult = z.infer<typeof BrowserAutomationResultSchema>;
|
|
804
1107
|
export type BrowserAutomationConsoleLogEntry = z.infer<typeof BrowserAutomationConsoleLogEntrySchema>;
|
|
805
1108
|
export type BrowserAutomationNetworkLogEntry = z.infer<typeof BrowserAutomationNetworkLogEntrySchema>;
|
|
1109
|
+
export type BrowserAutomationDialogEvent = z.infer<typeof BrowserAutomationDialogEventSchema>;
|
|
806
1110
|
export type BrowserAutomationExecuteRequest = z.infer<typeof BrowserAutomationExecuteRequestSchema>;
|
|
807
1111
|
export type BrowserAutomationExecuteResponse = z.infer<typeof BrowserAutomationExecuteResponseSchema>;
|
|
808
1112
|
//# sourceMappingURL=rpc-schemas.d.ts.map
|