@getmateo/protocol 0.19.9 → 0.19.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-automation/rpc-schemas.d.ts +615 -3
- package/dist/browser-automation/rpc-schemas.js +30 -1
- package/dist/generated/validation/ws-outbound-schema-metadata.d.ts +464 -235
- package/dist/generated/validation/ws-outbound-schema-metadata.js +1 -0
- package/dist/generated/validation/ws-outbound.aot.d.ts +2 -0
- package/dist/generated/validation/ws-outbound.aot.js +5806 -4206
- package/dist/messages.d.ts +1152 -3
- package/dist/messages.js +4 -1
- package/dist/validation/ws-outbound-envelope.d.ts +228 -2
- package/package.json +1 -1
|
@@ -448,7 +448,7 @@ export declare const BrowserAutomationListDownloadsResultSchema: z.ZodObject<{
|
|
|
448
448
|
export declare const BrowserAutomationNewTabResultSchema: z.ZodObject<{
|
|
449
449
|
command: z.ZodLiteral<"new_tab">;
|
|
450
450
|
browserId: z.ZodString;
|
|
451
|
-
workspaceId: z.ZodString
|
|
451
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
452
452
|
url: z.ZodString;
|
|
453
453
|
}, z.core.$strip>;
|
|
454
454
|
export declare const BrowserAutomationSnapshotStatsSchema: z.ZodObject<{
|
|
@@ -660,7 +660,7 @@ export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
660
660
|
}, z.core.$strip>, z.ZodObject<{
|
|
661
661
|
command: z.ZodLiteral<"new_tab">;
|
|
662
662
|
browserId: z.ZodString;
|
|
663
|
-
workspaceId: z.ZodString
|
|
663
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
664
664
|
url: z.ZodString;
|
|
665
665
|
}, z.core.$strip>, z.ZodObject<{
|
|
666
666
|
command: z.ZodLiteral<"snapshot">;
|
|
@@ -1025,7 +1025,7 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
1025
1025
|
}, z.core.$strip>, z.ZodObject<{
|
|
1026
1026
|
command: z.ZodLiteral<"new_tab">;
|
|
1027
1027
|
browserId: z.ZodString;
|
|
1028
|
-
workspaceId: z.ZodString
|
|
1028
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1029
1029
|
url: z.ZodString;
|
|
1030
1030
|
}, z.core.$strip>, z.ZodObject<{
|
|
1031
1031
|
command: z.ZodLiteral<"snapshot">;
|
|
@@ -1212,13 +1212,625 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
1212
1212
|
}, z.core.$strip>>>;
|
|
1213
1213
|
}, z.core.$strip>], "ok">;
|
|
1214
1214
|
}, z.core.$strip>;
|
|
1215
|
+
export declare const PluginBrowserAutomationExecuteRequestSchema: z.ZodObject<{
|
|
1216
|
+
type: z.ZodLiteral<"plugin.browser.automation.execute.request">;
|
|
1217
|
+
requestId: z.ZodString;
|
|
1218
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
command: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1220
|
+
command: z.ZodLiteral<"list_tabs">;
|
|
1221
|
+
args: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
|
|
1222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1223
|
+
command: z.ZodLiteral<"list_downloads">;
|
|
1224
|
+
args: z.ZodObject<{}, z.core.$strict>;
|
|
1225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1226
|
+
command: z.ZodLiteral<"new_tab">;
|
|
1227
|
+
args: z.ZodDefault<z.ZodObject<{
|
|
1228
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1229
|
+
}, z.core.$strict>>;
|
|
1230
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1231
|
+
command: z.ZodLiteral<"snapshot">;
|
|
1232
|
+
args: z.ZodObject<{
|
|
1233
|
+
browserId: z.ZodString;
|
|
1234
|
+
}, z.core.$strict>;
|
|
1235
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1236
|
+
command: z.ZodLiteral<"click">;
|
|
1237
|
+
args: z.ZodObject<{
|
|
1238
|
+
browserId: z.ZodString;
|
|
1239
|
+
ref: z.ZodString;
|
|
1240
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
1241
|
+
left: "left";
|
|
1242
|
+
right: "right";
|
|
1243
|
+
middle: "middle";
|
|
1244
|
+
}>>;
|
|
1245
|
+
doubleClick: z.ZodDefault<z.ZodBoolean>;
|
|
1246
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1247
|
+
Alt: "Alt";
|
|
1248
|
+
Control: "Control";
|
|
1249
|
+
Meta: "Meta";
|
|
1250
|
+
Shift: "Shift";
|
|
1251
|
+
}>>>;
|
|
1252
|
+
}, z.core.$strict>;
|
|
1253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1254
|
+
command: z.ZodLiteral<"fill">;
|
|
1255
|
+
args: z.ZodObject<{
|
|
1256
|
+
browserId: z.ZodString;
|
|
1257
|
+
ref: z.ZodString;
|
|
1258
|
+
value: z.ZodString;
|
|
1259
|
+
}, z.core.$strict>;
|
|
1260
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1261
|
+
command: z.ZodLiteral<"wait">;
|
|
1262
|
+
args: z.ZodObject<{
|
|
1263
|
+
browserId: z.ZodString;
|
|
1264
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1265
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1266
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1267
|
+
}, z.core.$strict>;
|
|
1268
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1269
|
+
command: z.ZodLiteral<"type">;
|
|
1270
|
+
args: z.ZodObject<{
|
|
1271
|
+
browserId: z.ZodString;
|
|
1272
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
text: z.ZodString;
|
|
1274
|
+
}, z.core.$strict>;
|
|
1275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1276
|
+
command: z.ZodLiteral<"keypress">;
|
|
1277
|
+
args: z.ZodObject<{
|
|
1278
|
+
browserId: z.ZodString;
|
|
1279
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1280
|
+
key: z.ZodString;
|
|
1281
|
+
}, z.core.$strict>;
|
|
1282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1283
|
+
command: z.ZodLiteral<"navigate">;
|
|
1284
|
+
args: z.ZodObject<{
|
|
1285
|
+
browserId: z.ZodString;
|
|
1286
|
+
url: z.ZodString;
|
|
1287
|
+
}, z.core.$strict>;
|
|
1288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1289
|
+
command: z.ZodLiteral<"back">;
|
|
1290
|
+
args: z.ZodObject<{
|
|
1291
|
+
browserId: z.ZodString;
|
|
1292
|
+
}, z.core.$strict>;
|
|
1293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1294
|
+
command: z.ZodLiteral<"forward">;
|
|
1295
|
+
args: z.ZodObject<{
|
|
1296
|
+
browserId: z.ZodString;
|
|
1297
|
+
}, z.core.$strict>;
|
|
1298
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1299
|
+
command: z.ZodLiteral<"reload">;
|
|
1300
|
+
args: z.ZodObject<{
|
|
1301
|
+
browserId: z.ZodString;
|
|
1302
|
+
}, z.core.$strict>;
|
|
1303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1304
|
+
command: z.ZodLiteral<"screenshot">;
|
|
1305
|
+
args: z.ZodObject<{
|
|
1306
|
+
browserId: z.ZodString;
|
|
1307
|
+
fullPage: z.ZodDefault<z.ZodBoolean>;
|
|
1308
|
+
}, z.core.$strict>;
|
|
1309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1310
|
+
command: z.ZodLiteral<"upload">;
|
|
1311
|
+
args: z.ZodObject<{
|
|
1312
|
+
browserId: z.ZodString;
|
|
1313
|
+
ref: z.ZodString;
|
|
1314
|
+
filePaths: z.ZodArray<z.ZodString>;
|
|
1315
|
+
}, z.core.$strict>;
|
|
1316
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1317
|
+
command: z.ZodLiteral<"select">;
|
|
1318
|
+
args: z.ZodObject<{
|
|
1319
|
+
browserId: z.ZodString;
|
|
1320
|
+
ref: z.ZodString;
|
|
1321
|
+
value: z.ZodString;
|
|
1322
|
+
}, z.core.$strict>;
|
|
1323
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1324
|
+
command: z.ZodLiteral<"hover">;
|
|
1325
|
+
args: z.ZodObject<{
|
|
1326
|
+
browserId: z.ZodString;
|
|
1327
|
+
ref: z.ZodString;
|
|
1328
|
+
}, z.core.$strict>;
|
|
1329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1330
|
+
command: z.ZodLiteral<"drag">;
|
|
1331
|
+
args: z.ZodObject<{
|
|
1332
|
+
browserId: z.ZodString;
|
|
1333
|
+
sourceRef: z.ZodString;
|
|
1334
|
+
targetRef: z.ZodString;
|
|
1335
|
+
}, z.core.$strict>;
|
|
1336
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1337
|
+
command: z.ZodLiteral<"logs">;
|
|
1338
|
+
args: z.ZodObject<{
|
|
1339
|
+
browserId: z.ZodString;
|
|
1340
|
+
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
1341
|
+
}, z.core.$strict>;
|
|
1342
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1343
|
+
command: z.ZodLiteral<"evaluate">;
|
|
1344
|
+
args: z.ZodObject<{
|
|
1345
|
+
browserId: z.ZodString;
|
|
1346
|
+
function: z.ZodString;
|
|
1347
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1348
|
+
}, z.core.$strict>;
|
|
1349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1350
|
+
command: z.ZodLiteral<"scroll">;
|
|
1351
|
+
args: z.ZodObject<{
|
|
1352
|
+
browserId: z.ZodString;
|
|
1353
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
deltaX: z.ZodNumber;
|
|
1355
|
+
deltaY: z.ZodNumber;
|
|
1356
|
+
}, z.core.$strict>;
|
|
1357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1358
|
+
command: z.ZodLiteral<"resize">;
|
|
1359
|
+
args: z.ZodObject<{
|
|
1360
|
+
browserId: z.ZodString;
|
|
1361
|
+
width: z.ZodNumber;
|
|
1362
|
+
height: z.ZodNumber;
|
|
1363
|
+
}, z.core.$strict>;
|
|
1364
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1365
|
+
command: z.ZodLiteral<"close_tab">;
|
|
1366
|
+
args: z.ZodObject<{
|
|
1367
|
+
browserId: z.ZodString;
|
|
1368
|
+
}, z.core.$strict>;
|
|
1369
|
+
}, z.core.$strip>], "command">;
|
|
1370
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1371
|
+
}, z.core.$strict>;
|
|
1372
|
+
export declare const PluginBrowserAutomationOutcomeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1373
|
+
requestId: z.ZodString;
|
|
1374
|
+
ok: z.ZodLiteral<true>;
|
|
1375
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1376
|
+
command: z.ZodLiteral<"list_tabs">;
|
|
1377
|
+
tabs: z.ZodArray<z.ZodObject<{
|
|
1378
|
+
browserId: z.ZodString;
|
|
1379
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1380
|
+
url: z.ZodString;
|
|
1381
|
+
title: z.ZodString;
|
|
1382
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
1383
|
+
isLoading: z.ZodDefault<z.ZodBoolean>;
|
|
1384
|
+
canGoBack: z.ZodOptional<z.ZodBoolean>;
|
|
1385
|
+
canGoForward: z.ZodOptional<z.ZodBoolean>;
|
|
1386
|
+
}, z.core.$strip>>;
|
|
1387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1388
|
+
command: z.ZodLiteral<"list_downloads">;
|
|
1389
|
+
downloads: z.ZodArray<z.ZodObject<{
|
|
1390
|
+
id: z.ZodString;
|
|
1391
|
+
browserId: z.ZodNullable<z.ZodString>;
|
|
1392
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
1393
|
+
serverId: z.ZodNullable<z.ZodString>;
|
|
1394
|
+
status: z.ZodEnum<{
|
|
1395
|
+
completed: "completed";
|
|
1396
|
+
failed: "failed";
|
|
1397
|
+
cancelled: "cancelled";
|
|
1398
|
+
}>;
|
|
1399
|
+
path: z.ZodNullable<z.ZodString>;
|
|
1400
|
+
url: z.ZodString;
|
|
1401
|
+
filename: z.ZodString;
|
|
1402
|
+
bytes: z.ZodNumber;
|
|
1403
|
+
mimeType: z.ZodString;
|
|
1404
|
+
finishedAt: z.ZodString;
|
|
1405
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
}, z.core.$strip>>;
|
|
1407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1408
|
+
command: z.ZodLiteral<"new_tab">;
|
|
1409
|
+
browserId: z.ZodString;
|
|
1410
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1411
|
+
url: z.ZodString;
|
|
1412
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1413
|
+
command: z.ZodLiteral<"snapshot">;
|
|
1414
|
+
browserId: z.ZodString;
|
|
1415
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1416
|
+
url: z.ZodString;
|
|
1417
|
+
title: z.ZodString;
|
|
1418
|
+
format: z.ZodLiteral<"aria-yaml">;
|
|
1419
|
+
snapshot: z.ZodString;
|
|
1420
|
+
truncated: z.ZodBoolean;
|
|
1421
|
+
stats: z.ZodObject<{
|
|
1422
|
+
nodeCount: z.ZodNumber;
|
|
1423
|
+
refCount: z.ZodNumber;
|
|
1424
|
+
textLength: z.ZodNumber;
|
|
1425
|
+
iframeCount: z.ZodOptional<z.ZodNumber>;
|
|
1426
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
1427
|
+
}, z.core.$strict>;
|
|
1428
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1429
|
+
command: z.ZodLiteral<"click">;
|
|
1430
|
+
browserId: z.ZodString;
|
|
1431
|
+
ref: z.ZodString;
|
|
1432
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1433
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1434
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1435
|
+
command: z.ZodLiteral<"fill">;
|
|
1436
|
+
browserId: z.ZodString;
|
|
1437
|
+
ref: z.ZodString;
|
|
1438
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1439
|
+
command: z.ZodLiteral<"wait">;
|
|
1440
|
+
browserId: z.ZodString;
|
|
1441
|
+
matched: z.ZodEnum<{
|
|
1442
|
+
text: "text";
|
|
1443
|
+
url: "url";
|
|
1444
|
+
}>;
|
|
1445
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1446
|
+
command: z.ZodLiteral<"type">;
|
|
1447
|
+
browserId: z.ZodString;
|
|
1448
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1449
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1450
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1452
|
+
command: z.ZodLiteral<"keypress">;
|
|
1453
|
+
browserId: z.ZodString;
|
|
1454
|
+
key: z.ZodString;
|
|
1455
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1457
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1458
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1459
|
+
command: z.ZodLiteral<"navigate">;
|
|
1460
|
+
browserId: z.ZodString;
|
|
1461
|
+
url: z.ZodString;
|
|
1462
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1463
|
+
command: z.ZodLiteral<"back">;
|
|
1464
|
+
browserId: z.ZodString;
|
|
1465
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1466
|
+
command: z.ZodLiteral<"forward">;
|
|
1467
|
+
browserId: z.ZodString;
|
|
1468
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1469
|
+
command: z.ZodLiteral<"reload">;
|
|
1470
|
+
browserId: z.ZodString;
|
|
1471
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1472
|
+
command: z.ZodLiteral<"screenshot">;
|
|
1473
|
+
browserId: z.ZodString;
|
|
1474
|
+
mimeType: z.ZodLiteral<"image/png">;
|
|
1475
|
+
dataBase64: z.ZodString;
|
|
1476
|
+
width: z.ZodNumber;
|
|
1477
|
+
height: z.ZodNumber;
|
|
1478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1479
|
+
command: z.ZodLiteral<"upload">;
|
|
1480
|
+
browserId: z.ZodString;
|
|
1481
|
+
ref: z.ZodString;
|
|
1482
|
+
filePaths: z.ZodArray<z.ZodString>;
|
|
1483
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1484
|
+
command: z.ZodLiteral<"select">;
|
|
1485
|
+
browserId: z.ZodString;
|
|
1486
|
+
ref: z.ZodString;
|
|
1487
|
+
value: z.ZodString;
|
|
1488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1489
|
+
command: z.ZodLiteral<"hover">;
|
|
1490
|
+
browserId: z.ZodString;
|
|
1491
|
+
ref: z.ZodString;
|
|
1492
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1493
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1494
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1495
|
+
command: z.ZodLiteral<"drag">;
|
|
1496
|
+
browserId: z.ZodString;
|
|
1497
|
+
sourceRef: z.ZodString;
|
|
1498
|
+
targetRef: z.ZodString;
|
|
1499
|
+
sourceX: z.ZodOptional<z.ZodNumber>;
|
|
1500
|
+
sourceY: z.ZodOptional<z.ZodNumber>;
|
|
1501
|
+
targetX: z.ZodOptional<z.ZodNumber>;
|
|
1502
|
+
targetY: z.ZodOptional<z.ZodNumber>;
|
|
1503
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1504
|
+
command: z.ZodLiteral<"logs">;
|
|
1505
|
+
browserId: z.ZodString;
|
|
1506
|
+
console: z.ZodArray<z.ZodObject<{
|
|
1507
|
+
level: z.ZodString;
|
|
1508
|
+
message: z.ZodString;
|
|
1509
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1511
|
+
timestamp: z.ZodNumber;
|
|
1512
|
+
}, z.core.$strip>>;
|
|
1513
|
+
network: z.ZodArray<z.ZodObject<{
|
|
1514
|
+
url: z.ZodString;
|
|
1515
|
+
method: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
1517
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1518
|
+
startTime: z.ZodNumber;
|
|
1519
|
+
duration: z.ZodNumber;
|
|
1520
|
+
transferSize: z.ZodOptional<z.ZodNumber>;
|
|
1521
|
+
}, z.core.$strip>>;
|
|
1522
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1523
|
+
command: z.ZodLiteral<"evaluate">;
|
|
1524
|
+
browserId: z.ZodString;
|
|
1525
|
+
resultJson: z.ZodString;
|
|
1526
|
+
truncated: z.ZodBoolean;
|
|
1527
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1528
|
+
command: z.ZodLiteral<"scroll">;
|
|
1529
|
+
browserId: z.ZodString;
|
|
1530
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
deltaX: z.ZodNumber;
|
|
1532
|
+
deltaY: z.ZodNumber;
|
|
1533
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1534
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1536
|
+
command: z.ZodLiteral<"resize">;
|
|
1537
|
+
browserId: z.ZodString;
|
|
1538
|
+
width: z.ZodNumber;
|
|
1539
|
+
height: z.ZodNumber;
|
|
1540
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1541
|
+
command: z.ZodLiteral<"close_tab">;
|
|
1542
|
+
browserId: z.ZodString;
|
|
1543
|
+
}, z.core.$strip>], "command">;
|
|
1544
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1545
|
+
type: z.ZodEnum<{
|
|
1546
|
+
prompt: "prompt";
|
|
1547
|
+
alert: "alert";
|
|
1548
|
+
confirm: "confirm";
|
|
1549
|
+
beforeunload: "beforeunload";
|
|
1550
|
+
}>;
|
|
1551
|
+
message: z.ZodString;
|
|
1552
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1553
|
+
action: z.ZodEnum<{
|
|
1554
|
+
accepted: "accepted";
|
|
1555
|
+
dismissed: "dismissed";
|
|
1556
|
+
}>;
|
|
1557
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
1558
|
+
timestamp: z.ZodNumber;
|
|
1559
|
+
}, z.core.$strip>>>;
|
|
1560
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1561
|
+
requestId: z.ZodString;
|
|
1562
|
+
ok: z.ZodLiteral<false>;
|
|
1563
|
+
error: z.ZodObject<{
|
|
1564
|
+
code: z.ZodEnum<{
|
|
1565
|
+
browser_disabled: "browser_disabled";
|
|
1566
|
+
browser_no_host: "browser_no_host";
|
|
1567
|
+
browser_tab_not_found: "browser_tab_not_found";
|
|
1568
|
+
browser_tab_closed: "browser_tab_closed";
|
|
1569
|
+
browser_timeout: "browser_timeout";
|
|
1570
|
+
screenshot_no_frame: "screenshot_no_frame";
|
|
1571
|
+
browser_denied: "browser_denied";
|
|
1572
|
+
browser_unsupported: "browser_unsupported";
|
|
1573
|
+
browser_stale_ref: "browser_stale_ref";
|
|
1574
|
+
browser_unknown_error: "browser_unknown_error";
|
|
1575
|
+
}>;
|
|
1576
|
+
message: z.ZodString;
|
|
1577
|
+
retryable: z.ZodDefault<z.ZodBoolean>;
|
|
1578
|
+
}, z.core.$strip>;
|
|
1579
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1580
|
+
type: z.ZodEnum<{
|
|
1581
|
+
prompt: "prompt";
|
|
1582
|
+
alert: "alert";
|
|
1583
|
+
confirm: "confirm";
|
|
1584
|
+
beforeunload: "beforeunload";
|
|
1585
|
+
}>;
|
|
1586
|
+
message: z.ZodString;
|
|
1587
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1588
|
+
action: z.ZodEnum<{
|
|
1589
|
+
accepted: "accepted";
|
|
1590
|
+
dismissed: "dismissed";
|
|
1591
|
+
}>;
|
|
1592
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
1593
|
+
timestamp: z.ZodNumber;
|
|
1594
|
+
}, z.core.$strip>>>;
|
|
1595
|
+
}, z.core.$strip>]>;
|
|
1596
|
+
export declare const PluginBrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
1597
|
+
type: z.ZodLiteral<"plugin.browser.automation.execute.response">;
|
|
1598
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
1599
|
+
requestId: z.ZodString;
|
|
1600
|
+
ok: z.ZodLiteral<true>;
|
|
1601
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1602
|
+
command: z.ZodLiteral<"list_tabs">;
|
|
1603
|
+
tabs: z.ZodArray<z.ZodObject<{
|
|
1604
|
+
browserId: z.ZodString;
|
|
1605
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1606
|
+
url: z.ZodString;
|
|
1607
|
+
title: z.ZodString;
|
|
1608
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
1609
|
+
isLoading: z.ZodDefault<z.ZodBoolean>;
|
|
1610
|
+
canGoBack: z.ZodOptional<z.ZodBoolean>;
|
|
1611
|
+
canGoForward: z.ZodOptional<z.ZodBoolean>;
|
|
1612
|
+
}, z.core.$strip>>;
|
|
1613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1614
|
+
command: z.ZodLiteral<"list_downloads">;
|
|
1615
|
+
downloads: z.ZodArray<z.ZodObject<{
|
|
1616
|
+
id: z.ZodString;
|
|
1617
|
+
browserId: z.ZodNullable<z.ZodString>;
|
|
1618
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
1619
|
+
serverId: z.ZodNullable<z.ZodString>;
|
|
1620
|
+
status: z.ZodEnum<{
|
|
1621
|
+
completed: "completed";
|
|
1622
|
+
failed: "failed";
|
|
1623
|
+
cancelled: "cancelled";
|
|
1624
|
+
}>;
|
|
1625
|
+
path: z.ZodNullable<z.ZodString>;
|
|
1626
|
+
url: z.ZodString;
|
|
1627
|
+
filename: z.ZodString;
|
|
1628
|
+
bytes: z.ZodNumber;
|
|
1629
|
+
mimeType: z.ZodString;
|
|
1630
|
+
finishedAt: z.ZodString;
|
|
1631
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1632
|
+
}, z.core.$strip>>;
|
|
1633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1634
|
+
command: z.ZodLiteral<"new_tab">;
|
|
1635
|
+
browserId: z.ZodString;
|
|
1636
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1637
|
+
url: z.ZodString;
|
|
1638
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1639
|
+
command: z.ZodLiteral<"snapshot">;
|
|
1640
|
+
browserId: z.ZodString;
|
|
1641
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1642
|
+
url: z.ZodString;
|
|
1643
|
+
title: z.ZodString;
|
|
1644
|
+
format: z.ZodLiteral<"aria-yaml">;
|
|
1645
|
+
snapshot: z.ZodString;
|
|
1646
|
+
truncated: z.ZodBoolean;
|
|
1647
|
+
stats: z.ZodObject<{
|
|
1648
|
+
nodeCount: z.ZodNumber;
|
|
1649
|
+
refCount: z.ZodNumber;
|
|
1650
|
+
textLength: z.ZodNumber;
|
|
1651
|
+
iframeCount: z.ZodOptional<z.ZodNumber>;
|
|
1652
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
1653
|
+
}, z.core.$strict>;
|
|
1654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1655
|
+
command: z.ZodLiteral<"click">;
|
|
1656
|
+
browserId: z.ZodString;
|
|
1657
|
+
ref: z.ZodString;
|
|
1658
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1659
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1660
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1661
|
+
command: z.ZodLiteral<"fill">;
|
|
1662
|
+
browserId: z.ZodString;
|
|
1663
|
+
ref: z.ZodString;
|
|
1664
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1665
|
+
command: z.ZodLiteral<"wait">;
|
|
1666
|
+
browserId: z.ZodString;
|
|
1667
|
+
matched: z.ZodEnum<{
|
|
1668
|
+
text: "text";
|
|
1669
|
+
url: "url";
|
|
1670
|
+
}>;
|
|
1671
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1672
|
+
command: z.ZodLiteral<"type">;
|
|
1673
|
+
browserId: z.ZodString;
|
|
1674
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1675
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1676
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1677
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1678
|
+
command: z.ZodLiteral<"keypress">;
|
|
1679
|
+
browserId: z.ZodString;
|
|
1680
|
+
key: z.ZodString;
|
|
1681
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1683
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1684
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1685
|
+
command: z.ZodLiteral<"navigate">;
|
|
1686
|
+
browserId: z.ZodString;
|
|
1687
|
+
url: z.ZodString;
|
|
1688
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1689
|
+
command: z.ZodLiteral<"back">;
|
|
1690
|
+
browserId: z.ZodString;
|
|
1691
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1692
|
+
command: z.ZodLiteral<"forward">;
|
|
1693
|
+
browserId: z.ZodString;
|
|
1694
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1695
|
+
command: z.ZodLiteral<"reload">;
|
|
1696
|
+
browserId: z.ZodString;
|
|
1697
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1698
|
+
command: z.ZodLiteral<"screenshot">;
|
|
1699
|
+
browserId: z.ZodString;
|
|
1700
|
+
mimeType: z.ZodLiteral<"image/png">;
|
|
1701
|
+
dataBase64: z.ZodString;
|
|
1702
|
+
width: z.ZodNumber;
|
|
1703
|
+
height: z.ZodNumber;
|
|
1704
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1705
|
+
command: z.ZodLiteral<"upload">;
|
|
1706
|
+
browserId: z.ZodString;
|
|
1707
|
+
ref: z.ZodString;
|
|
1708
|
+
filePaths: z.ZodArray<z.ZodString>;
|
|
1709
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1710
|
+
command: z.ZodLiteral<"select">;
|
|
1711
|
+
browserId: z.ZodString;
|
|
1712
|
+
ref: z.ZodString;
|
|
1713
|
+
value: z.ZodString;
|
|
1714
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1715
|
+
command: z.ZodLiteral<"hover">;
|
|
1716
|
+
browserId: z.ZodString;
|
|
1717
|
+
ref: z.ZodString;
|
|
1718
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1719
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1720
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1721
|
+
command: z.ZodLiteral<"drag">;
|
|
1722
|
+
browserId: z.ZodString;
|
|
1723
|
+
sourceRef: z.ZodString;
|
|
1724
|
+
targetRef: z.ZodString;
|
|
1725
|
+
sourceX: z.ZodOptional<z.ZodNumber>;
|
|
1726
|
+
sourceY: z.ZodOptional<z.ZodNumber>;
|
|
1727
|
+
targetX: z.ZodOptional<z.ZodNumber>;
|
|
1728
|
+
targetY: z.ZodOptional<z.ZodNumber>;
|
|
1729
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1730
|
+
command: z.ZodLiteral<"logs">;
|
|
1731
|
+
browserId: z.ZodString;
|
|
1732
|
+
console: z.ZodArray<z.ZodObject<{
|
|
1733
|
+
level: z.ZodString;
|
|
1734
|
+
message: z.ZodString;
|
|
1735
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1737
|
+
timestamp: z.ZodNumber;
|
|
1738
|
+
}, z.core.$strip>>;
|
|
1739
|
+
network: z.ZodArray<z.ZodObject<{
|
|
1740
|
+
url: z.ZodString;
|
|
1741
|
+
method: z.ZodOptional<z.ZodString>;
|
|
1742
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
1743
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1744
|
+
startTime: z.ZodNumber;
|
|
1745
|
+
duration: z.ZodNumber;
|
|
1746
|
+
transferSize: z.ZodOptional<z.ZodNumber>;
|
|
1747
|
+
}, z.core.$strip>>;
|
|
1748
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1749
|
+
command: z.ZodLiteral<"evaluate">;
|
|
1750
|
+
browserId: z.ZodString;
|
|
1751
|
+
resultJson: z.ZodString;
|
|
1752
|
+
truncated: z.ZodBoolean;
|
|
1753
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1754
|
+
command: z.ZodLiteral<"scroll">;
|
|
1755
|
+
browserId: z.ZodString;
|
|
1756
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1757
|
+
deltaX: z.ZodNumber;
|
|
1758
|
+
deltaY: z.ZodNumber;
|
|
1759
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1760
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1761
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1762
|
+
command: z.ZodLiteral<"resize">;
|
|
1763
|
+
browserId: z.ZodString;
|
|
1764
|
+
width: z.ZodNumber;
|
|
1765
|
+
height: z.ZodNumber;
|
|
1766
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1767
|
+
command: z.ZodLiteral<"close_tab">;
|
|
1768
|
+
browserId: z.ZodString;
|
|
1769
|
+
}, z.core.$strip>], "command">;
|
|
1770
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1771
|
+
type: z.ZodEnum<{
|
|
1772
|
+
prompt: "prompt";
|
|
1773
|
+
alert: "alert";
|
|
1774
|
+
confirm: "confirm";
|
|
1775
|
+
beforeunload: "beforeunload";
|
|
1776
|
+
}>;
|
|
1777
|
+
message: z.ZodString;
|
|
1778
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1779
|
+
action: z.ZodEnum<{
|
|
1780
|
+
accepted: "accepted";
|
|
1781
|
+
dismissed: "dismissed";
|
|
1782
|
+
}>;
|
|
1783
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
timestamp: z.ZodNumber;
|
|
1785
|
+
}, z.core.$strip>>>;
|
|
1786
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1787
|
+
requestId: z.ZodString;
|
|
1788
|
+
ok: z.ZodLiteral<false>;
|
|
1789
|
+
error: z.ZodObject<{
|
|
1790
|
+
code: z.ZodEnum<{
|
|
1791
|
+
browser_disabled: "browser_disabled";
|
|
1792
|
+
browser_no_host: "browser_no_host";
|
|
1793
|
+
browser_tab_not_found: "browser_tab_not_found";
|
|
1794
|
+
browser_tab_closed: "browser_tab_closed";
|
|
1795
|
+
browser_timeout: "browser_timeout";
|
|
1796
|
+
screenshot_no_frame: "screenshot_no_frame";
|
|
1797
|
+
browser_denied: "browser_denied";
|
|
1798
|
+
browser_unsupported: "browser_unsupported";
|
|
1799
|
+
browser_stale_ref: "browser_stale_ref";
|
|
1800
|
+
browser_unknown_error: "browser_unknown_error";
|
|
1801
|
+
}>;
|
|
1802
|
+
message: z.ZodString;
|
|
1803
|
+
retryable: z.ZodDefault<z.ZodBoolean>;
|
|
1804
|
+
}, z.core.$strip>;
|
|
1805
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1806
|
+
type: z.ZodEnum<{
|
|
1807
|
+
prompt: "prompt";
|
|
1808
|
+
alert: "alert";
|
|
1809
|
+
confirm: "confirm";
|
|
1810
|
+
beforeunload: "beforeunload";
|
|
1811
|
+
}>;
|
|
1812
|
+
message: z.ZodString;
|
|
1813
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1814
|
+
action: z.ZodEnum<{
|
|
1815
|
+
accepted: "accepted";
|
|
1816
|
+
dismissed: "dismissed";
|
|
1817
|
+
}>;
|
|
1818
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
1819
|
+
timestamp: z.ZodNumber;
|
|
1820
|
+
}, z.core.$strip>>>;
|
|
1821
|
+
}, z.core.$strip>]>;
|
|
1822
|
+
}, z.core.$strip>;
|
|
1215
1823
|
export type BrowserAutomationErrorCode = z.infer<typeof BrowserAutomationErrorCodeSchema>;
|
|
1216
1824
|
export type BrowserAutomationCommandName = z.infer<typeof BrowserAutomationCommandNameSchema>;
|
|
1217
1825
|
export type BrowserAutomationCommand = z.infer<typeof BrowserAutomationCommandSchema>;
|
|
1218
1826
|
export type BrowserAutomationResult = z.infer<typeof BrowserAutomationResultSchema>;
|
|
1827
|
+
export type BrowserAutomationTabInfo = z.infer<typeof BrowserAutomationTabInfoSchema>;
|
|
1219
1828
|
export type BrowserAutomationConsoleLogEntry = z.infer<typeof BrowserAutomationConsoleLogEntrySchema>;
|
|
1220
1829
|
export type BrowserAutomationNetworkLogEntry = z.infer<typeof BrowserAutomationNetworkLogEntrySchema>;
|
|
1221
1830
|
export type BrowserAutomationDialogEvent = z.infer<typeof BrowserAutomationDialogEventSchema>;
|
|
1222
1831
|
export type BrowserAutomationExecuteRequest = z.infer<typeof BrowserAutomationExecuteRequestSchema>;
|
|
1223
1832
|
export type BrowserAutomationExecuteResponse = z.infer<typeof BrowserAutomationExecuteResponseSchema>;
|
|
1833
|
+
export type PluginBrowserAutomationOutcome = z.infer<typeof PluginBrowserAutomationOutcomeSchema>;
|
|
1834
|
+
export type PluginBrowserAutomationExecuteRequest = z.infer<typeof PluginBrowserAutomationExecuteRequestSchema>;
|
|
1835
|
+
export type PluginBrowserAutomationExecuteResponse = z.infer<typeof PluginBrowserAutomationExecuteResponseSchema>;
|
|
1224
1836
|
//# sourceMappingURL=rpc-schemas.d.ts.map
|
|
@@ -272,7 +272,7 @@ export const BrowserAutomationListDownloadsResultSchema = z.object({
|
|
|
272
272
|
export const BrowserAutomationNewTabResultSchema = z.object({
|
|
273
273
|
command: z.literal("new_tab"),
|
|
274
274
|
browserId: BrowserAutomationBrowserIdSchema,
|
|
275
|
-
workspaceId: z.string().min(1),
|
|
275
|
+
workspaceId: z.string().min(1).optional(),
|
|
276
276
|
url: z.string().min(1),
|
|
277
277
|
});
|
|
278
278
|
export const BrowserAutomationSnapshotStatsSchema = z
|
|
@@ -494,4 +494,33 @@ export const BrowserAutomationExecuteResponseSchema = z.object({
|
|
|
494
494
|
}),
|
|
495
495
|
]),
|
|
496
496
|
});
|
|
497
|
+
export const PluginBrowserAutomationExecuteRequestSchema = z
|
|
498
|
+
.object({
|
|
499
|
+
type: z.literal("plugin.browser.automation.execute.request"),
|
|
500
|
+
requestId: z.string().min(1).max(512),
|
|
501
|
+
workspaceId: z.string().min(1).optional(),
|
|
502
|
+
command: BrowserAutomationCommandSchema,
|
|
503
|
+
timeoutMs: z.number().int().positive().max(120000).optional(),
|
|
504
|
+
})
|
|
505
|
+
.strict();
|
|
506
|
+
// zod-aot 0.20.4 emits string cases ("true"/"false") for boolean discriminators.
|
|
507
|
+
// Keep the structural union so the generated outbound validator accepts both branches.
|
|
508
|
+
export const PluginBrowserAutomationOutcomeSchema = z.union([
|
|
509
|
+
z.object({
|
|
510
|
+
requestId: z.string().min(1),
|
|
511
|
+
ok: z.literal(true),
|
|
512
|
+
result: BrowserAutomationResultSchema,
|
|
513
|
+
dialogs: z.array(BrowserAutomationDialogEventSchema).optional(),
|
|
514
|
+
}),
|
|
515
|
+
z.object({
|
|
516
|
+
requestId: z.string().min(1),
|
|
517
|
+
ok: z.literal(false),
|
|
518
|
+
error: BrowserAutomationErrorSchema,
|
|
519
|
+
dialogs: z.array(BrowserAutomationDialogEventSchema).optional(),
|
|
520
|
+
}),
|
|
521
|
+
]);
|
|
522
|
+
export const PluginBrowserAutomationExecuteResponseSchema = z.object({
|
|
523
|
+
type: z.literal("plugin.browser.automation.execute.response"),
|
|
524
|
+
payload: PluginBrowserAutomationOutcomeSchema,
|
|
525
|
+
});
|
|
497
526
|
//# sourceMappingURL=rpc-schemas.js.map
|