@getmateo/protocol 0.19.8 → 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
package/dist/messages.d.ts
CHANGED
|
@@ -4898,6 +4898,162 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
4898
4898
|
selector: z.ZodString;
|
|
4899
4899
|
filePath: z.ZodString;
|
|
4900
4900
|
}, z.core.$strict>], "op">;
|
|
4901
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4902
|
+
type: z.ZodLiteral<"plugin.browser.automation.execute.request">;
|
|
4903
|
+
requestId: z.ZodString;
|
|
4904
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
4905
|
+
command: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4906
|
+
command: z.ZodLiteral<"list_tabs">;
|
|
4907
|
+
args: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
|
|
4908
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4909
|
+
command: z.ZodLiteral<"list_downloads">;
|
|
4910
|
+
args: z.ZodObject<{}, z.core.$strict>;
|
|
4911
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4912
|
+
command: z.ZodLiteral<"new_tab">;
|
|
4913
|
+
args: z.ZodDefault<z.ZodObject<{
|
|
4914
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4915
|
+
}, z.core.$strict>>;
|
|
4916
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4917
|
+
command: z.ZodLiteral<"snapshot">;
|
|
4918
|
+
args: z.ZodObject<{
|
|
4919
|
+
browserId: z.ZodString;
|
|
4920
|
+
}, z.core.$strict>;
|
|
4921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4922
|
+
command: z.ZodLiteral<"click">;
|
|
4923
|
+
args: z.ZodObject<{
|
|
4924
|
+
browserId: z.ZodString;
|
|
4925
|
+
ref: z.ZodString;
|
|
4926
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
4927
|
+
left: "left";
|
|
4928
|
+
right: "right";
|
|
4929
|
+
middle: "middle";
|
|
4930
|
+
}>>;
|
|
4931
|
+
doubleClick: z.ZodDefault<z.ZodBoolean>;
|
|
4932
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
4933
|
+
Alt: "Alt";
|
|
4934
|
+
Control: "Control";
|
|
4935
|
+
Meta: "Meta";
|
|
4936
|
+
Shift: "Shift";
|
|
4937
|
+
}>>>;
|
|
4938
|
+
}, z.core.$strict>;
|
|
4939
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4940
|
+
command: z.ZodLiteral<"fill">;
|
|
4941
|
+
args: z.ZodObject<{
|
|
4942
|
+
browserId: z.ZodString;
|
|
4943
|
+
ref: z.ZodString;
|
|
4944
|
+
value: z.ZodString;
|
|
4945
|
+
}, z.core.$strict>;
|
|
4946
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4947
|
+
command: z.ZodLiteral<"wait">;
|
|
4948
|
+
args: z.ZodObject<{
|
|
4949
|
+
browserId: z.ZodString;
|
|
4950
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4951
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4952
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
4953
|
+
}, z.core.$strict>;
|
|
4954
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4955
|
+
command: z.ZodLiteral<"type">;
|
|
4956
|
+
args: z.ZodObject<{
|
|
4957
|
+
browserId: z.ZodString;
|
|
4958
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4959
|
+
text: z.ZodString;
|
|
4960
|
+
}, z.core.$strict>;
|
|
4961
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4962
|
+
command: z.ZodLiteral<"keypress">;
|
|
4963
|
+
args: z.ZodObject<{
|
|
4964
|
+
browserId: z.ZodString;
|
|
4965
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
4966
|
+
key: z.ZodString;
|
|
4967
|
+
}, z.core.$strict>;
|
|
4968
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4969
|
+
command: z.ZodLiteral<"navigate">;
|
|
4970
|
+
args: z.ZodObject<{
|
|
4971
|
+
browserId: z.ZodString;
|
|
4972
|
+
url: z.ZodString;
|
|
4973
|
+
}, z.core.$strict>;
|
|
4974
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4975
|
+
command: z.ZodLiteral<"back">;
|
|
4976
|
+
args: z.ZodObject<{
|
|
4977
|
+
browserId: z.ZodString;
|
|
4978
|
+
}, z.core.$strict>;
|
|
4979
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4980
|
+
command: z.ZodLiteral<"forward">;
|
|
4981
|
+
args: z.ZodObject<{
|
|
4982
|
+
browserId: z.ZodString;
|
|
4983
|
+
}, z.core.$strict>;
|
|
4984
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4985
|
+
command: z.ZodLiteral<"reload">;
|
|
4986
|
+
args: z.ZodObject<{
|
|
4987
|
+
browserId: z.ZodString;
|
|
4988
|
+
}, z.core.$strict>;
|
|
4989
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4990
|
+
command: z.ZodLiteral<"screenshot">;
|
|
4991
|
+
args: z.ZodObject<{
|
|
4992
|
+
browserId: z.ZodString;
|
|
4993
|
+
fullPage: z.ZodDefault<z.ZodBoolean>;
|
|
4994
|
+
}, z.core.$strict>;
|
|
4995
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4996
|
+
command: z.ZodLiteral<"upload">;
|
|
4997
|
+
args: z.ZodObject<{
|
|
4998
|
+
browserId: z.ZodString;
|
|
4999
|
+
ref: z.ZodString;
|
|
5000
|
+
filePaths: z.ZodArray<z.ZodString>;
|
|
5001
|
+
}, z.core.$strict>;
|
|
5002
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5003
|
+
command: z.ZodLiteral<"select">;
|
|
5004
|
+
args: z.ZodObject<{
|
|
5005
|
+
browserId: z.ZodString;
|
|
5006
|
+
ref: z.ZodString;
|
|
5007
|
+
value: z.ZodString;
|
|
5008
|
+
}, z.core.$strict>;
|
|
5009
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5010
|
+
command: z.ZodLiteral<"hover">;
|
|
5011
|
+
args: z.ZodObject<{
|
|
5012
|
+
browserId: z.ZodString;
|
|
5013
|
+
ref: z.ZodString;
|
|
5014
|
+
}, z.core.$strict>;
|
|
5015
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5016
|
+
command: z.ZodLiteral<"drag">;
|
|
5017
|
+
args: z.ZodObject<{
|
|
5018
|
+
browserId: z.ZodString;
|
|
5019
|
+
sourceRef: z.ZodString;
|
|
5020
|
+
targetRef: z.ZodString;
|
|
5021
|
+
}, z.core.$strict>;
|
|
5022
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5023
|
+
command: z.ZodLiteral<"logs">;
|
|
5024
|
+
args: z.ZodObject<{
|
|
5025
|
+
browserId: z.ZodString;
|
|
5026
|
+
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
5027
|
+
}, z.core.$strict>;
|
|
5028
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5029
|
+
command: z.ZodLiteral<"evaluate">;
|
|
5030
|
+
args: z.ZodObject<{
|
|
5031
|
+
browserId: z.ZodString;
|
|
5032
|
+
function: z.ZodString;
|
|
5033
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
5034
|
+
}, z.core.$strict>;
|
|
5035
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5036
|
+
command: z.ZodLiteral<"scroll">;
|
|
5037
|
+
args: z.ZodObject<{
|
|
5038
|
+
browserId: z.ZodString;
|
|
5039
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
5040
|
+
deltaX: z.ZodNumber;
|
|
5041
|
+
deltaY: z.ZodNumber;
|
|
5042
|
+
}, z.core.$strict>;
|
|
5043
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5044
|
+
command: z.ZodLiteral<"resize">;
|
|
5045
|
+
args: z.ZodObject<{
|
|
5046
|
+
browserId: z.ZodString;
|
|
5047
|
+
width: z.ZodNumber;
|
|
5048
|
+
height: z.ZodNumber;
|
|
5049
|
+
}, z.core.$strict>;
|
|
5050
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5051
|
+
command: z.ZodLiteral<"close_tab">;
|
|
5052
|
+
args: z.ZodObject<{
|
|
5053
|
+
browserId: z.ZodString;
|
|
5054
|
+
}, z.core.$strict>;
|
|
5055
|
+
}, z.core.$strip>], "command">;
|
|
5056
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
4901
5057
|
}, z.core.$strict>, z.ZodObject<{
|
|
4902
5058
|
type: z.ZodLiteral<"browser.plugin_host.execute.response">;
|
|
4903
5059
|
payload: z.ZodObject<{
|
|
@@ -5073,7 +5229,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
5073
5229
|
}, z.core.$strip>, z.ZodObject<{
|
|
5074
5230
|
command: z.ZodLiteral<"new_tab">;
|
|
5075
5231
|
browserId: z.ZodString;
|
|
5076
|
-
workspaceId: z.ZodString
|
|
5232
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
5077
5233
|
url: z.ZodString;
|
|
5078
5234
|
}, z.core.$strip>, z.ZodObject<{
|
|
5079
5235
|
command: z.ZodLiteral<"snapshot">;
|
|
@@ -8049,6 +8205,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
8049
8205
|
builtinPluginToggles: z.ZodOptional<z.ZodBoolean>;
|
|
8050
8206
|
browserDownloadReceipts: z.ZodOptional<z.ZodBoolean>;
|
|
8051
8207
|
pluginBrowserVersion: z.ZodOptional<z.ZodNumber>;
|
|
8208
|
+
pluginBrowserAutomation: z.ZodOptional<z.ZodBoolean>;
|
|
8052
8209
|
pluginThemes: z.ZodOptional<z.ZodBoolean>;
|
|
8053
8210
|
pluginSettings: z.ZodOptional<z.ZodBoolean>;
|
|
8054
8211
|
pluginTimelineItems: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8194,6 +8351,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
8194
8351
|
builtinPluginToggles?: boolean | undefined;
|
|
8195
8352
|
browserDownloadReceipts?: boolean | undefined;
|
|
8196
8353
|
pluginBrowserVersion?: number | undefined;
|
|
8354
|
+
pluginBrowserAutomation?: boolean | undefined;
|
|
8197
8355
|
pluginThemes?: boolean | undefined;
|
|
8198
8356
|
pluginSettings?: boolean | undefined;
|
|
8199
8357
|
pluginTimelineItems?: boolean | undefined;
|
|
@@ -8340,6 +8498,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
8340
8498
|
builtinPluginToggles?: boolean | undefined;
|
|
8341
8499
|
browserDownloadReceipts?: boolean | undefined;
|
|
8342
8500
|
pluginBrowserVersion?: number | undefined;
|
|
8501
|
+
pluginBrowserAutomation?: boolean | undefined;
|
|
8343
8502
|
pluginThemes?: boolean | undefined;
|
|
8344
8503
|
pluginSettings?: boolean | undefined;
|
|
8345
8504
|
pluginTimelineItems?: boolean | undefined;
|
|
@@ -24130,6 +24289,232 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
24130
24289
|
}>;
|
|
24131
24290
|
}, z.core.$strict>]>;
|
|
24132
24291
|
}, z.core.$strip>;
|
|
24292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24293
|
+
type: z.ZodLiteral<"plugin.browser.automation.execute.response">;
|
|
24294
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
24295
|
+
requestId: z.ZodString;
|
|
24296
|
+
ok: z.ZodLiteral<true>;
|
|
24297
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24298
|
+
command: z.ZodLiteral<"list_tabs">;
|
|
24299
|
+
tabs: z.ZodArray<z.ZodObject<{
|
|
24300
|
+
browserId: z.ZodString;
|
|
24301
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
24302
|
+
url: z.ZodString;
|
|
24303
|
+
title: z.ZodString;
|
|
24304
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
24305
|
+
isLoading: z.ZodDefault<z.ZodBoolean>;
|
|
24306
|
+
canGoBack: z.ZodOptional<z.ZodBoolean>;
|
|
24307
|
+
canGoForward: z.ZodOptional<z.ZodBoolean>;
|
|
24308
|
+
}, z.core.$strip>>;
|
|
24309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24310
|
+
command: z.ZodLiteral<"list_downloads">;
|
|
24311
|
+
downloads: z.ZodArray<z.ZodObject<{
|
|
24312
|
+
id: z.ZodString;
|
|
24313
|
+
browserId: z.ZodNullable<z.ZodString>;
|
|
24314
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
24315
|
+
serverId: z.ZodNullable<z.ZodString>;
|
|
24316
|
+
status: z.ZodEnum<{
|
|
24317
|
+
completed: "completed";
|
|
24318
|
+
failed: "failed";
|
|
24319
|
+
cancelled: "cancelled";
|
|
24320
|
+
}>;
|
|
24321
|
+
path: z.ZodNullable<z.ZodString>;
|
|
24322
|
+
url: z.ZodString;
|
|
24323
|
+
filename: z.ZodString;
|
|
24324
|
+
bytes: z.ZodNumber;
|
|
24325
|
+
mimeType: z.ZodString;
|
|
24326
|
+
finishedAt: z.ZodString;
|
|
24327
|
+
error: z.ZodOptional<z.ZodString>;
|
|
24328
|
+
}, z.core.$strip>>;
|
|
24329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24330
|
+
command: z.ZodLiteral<"new_tab">;
|
|
24331
|
+
browserId: z.ZodString;
|
|
24332
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
24333
|
+
url: z.ZodString;
|
|
24334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24335
|
+
command: z.ZodLiteral<"snapshot">;
|
|
24336
|
+
browserId: z.ZodString;
|
|
24337
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
24338
|
+
url: z.ZodString;
|
|
24339
|
+
title: z.ZodString;
|
|
24340
|
+
format: z.ZodLiteral<"aria-yaml">;
|
|
24341
|
+
snapshot: z.ZodString;
|
|
24342
|
+
truncated: z.ZodBoolean;
|
|
24343
|
+
stats: z.ZodObject<{
|
|
24344
|
+
nodeCount: z.ZodNumber;
|
|
24345
|
+
refCount: z.ZodNumber;
|
|
24346
|
+
textLength: z.ZodNumber;
|
|
24347
|
+
iframeCount: z.ZodOptional<z.ZodNumber>;
|
|
24348
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
24349
|
+
}, z.core.$strict>;
|
|
24350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24351
|
+
command: z.ZodLiteral<"click">;
|
|
24352
|
+
browserId: z.ZodString;
|
|
24353
|
+
ref: z.ZodString;
|
|
24354
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
24355
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
24356
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24357
|
+
command: z.ZodLiteral<"fill">;
|
|
24358
|
+
browserId: z.ZodString;
|
|
24359
|
+
ref: z.ZodString;
|
|
24360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24361
|
+
command: z.ZodLiteral<"wait">;
|
|
24362
|
+
browserId: z.ZodString;
|
|
24363
|
+
matched: z.ZodEnum<{
|
|
24364
|
+
text: "text";
|
|
24365
|
+
url: "url";
|
|
24366
|
+
}>;
|
|
24367
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24368
|
+
command: z.ZodLiteral<"type">;
|
|
24369
|
+
browserId: z.ZodString;
|
|
24370
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
24371
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
24372
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
24373
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24374
|
+
command: z.ZodLiteral<"keypress">;
|
|
24375
|
+
browserId: z.ZodString;
|
|
24376
|
+
key: z.ZodString;
|
|
24377
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
24378
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
24379
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
24380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24381
|
+
command: z.ZodLiteral<"navigate">;
|
|
24382
|
+
browserId: z.ZodString;
|
|
24383
|
+
url: z.ZodString;
|
|
24384
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24385
|
+
command: z.ZodLiteral<"back">;
|
|
24386
|
+
browserId: z.ZodString;
|
|
24387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24388
|
+
command: z.ZodLiteral<"forward">;
|
|
24389
|
+
browserId: z.ZodString;
|
|
24390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24391
|
+
command: z.ZodLiteral<"reload">;
|
|
24392
|
+
browserId: z.ZodString;
|
|
24393
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24394
|
+
command: z.ZodLiteral<"screenshot">;
|
|
24395
|
+
browserId: z.ZodString;
|
|
24396
|
+
mimeType: z.ZodLiteral<"image/png">;
|
|
24397
|
+
dataBase64: z.ZodString;
|
|
24398
|
+
width: z.ZodNumber;
|
|
24399
|
+
height: z.ZodNumber;
|
|
24400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24401
|
+
command: z.ZodLiteral<"upload">;
|
|
24402
|
+
browserId: z.ZodString;
|
|
24403
|
+
ref: z.ZodString;
|
|
24404
|
+
filePaths: z.ZodArray<z.ZodString>;
|
|
24405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24406
|
+
command: z.ZodLiteral<"select">;
|
|
24407
|
+
browserId: z.ZodString;
|
|
24408
|
+
ref: z.ZodString;
|
|
24409
|
+
value: z.ZodString;
|
|
24410
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24411
|
+
command: z.ZodLiteral<"hover">;
|
|
24412
|
+
browserId: z.ZodString;
|
|
24413
|
+
ref: z.ZodString;
|
|
24414
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
24415
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
24416
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24417
|
+
command: z.ZodLiteral<"drag">;
|
|
24418
|
+
browserId: z.ZodString;
|
|
24419
|
+
sourceRef: z.ZodString;
|
|
24420
|
+
targetRef: z.ZodString;
|
|
24421
|
+
sourceX: z.ZodOptional<z.ZodNumber>;
|
|
24422
|
+
sourceY: z.ZodOptional<z.ZodNumber>;
|
|
24423
|
+
targetX: z.ZodOptional<z.ZodNumber>;
|
|
24424
|
+
targetY: z.ZodOptional<z.ZodNumber>;
|
|
24425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24426
|
+
command: z.ZodLiteral<"logs">;
|
|
24427
|
+
browserId: z.ZodString;
|
|
24428
|
+
console: z.ZodArray<z.ZodObject<{
|
|
24429
|
+
level: z.ZodString;
|
|
24430
|
+
message: z.ZodString;
|
|
24431
|
+
source: z.ZodOptional<z.ZodString>;
|
|
24432
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
24433
|
+
timestamp: z.ZodNumber;
|
|
24434
|
+
}, z.core.$strip>>;
|
|
24435
|
+
network: z.ZodArray<z.ZodObject<{
|
|
24436
|
+
url: z.ZodString;
|
|
24437
|
+
method: z.ZodOptional<z.ZodString>;
|
|
24438
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
24439
|
+
type: z.ZodOptional<z.ZodString>;
|
|
24440
|
+
startTime: z.ZodNumber;
|
|
24441
|
+
duration: z.ZodNumber;
|
|
24442
|
+
transferSize: z.ZodOptional<z.ZodNumber>;
|
|
24443
|
+
}, z.core.$strip>>;
|
|
24444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24445
|
+
command: z.ZodLiteral<"evaluate">;
|
|
24446
|
+
browserId: z.ZodString;
|
|
24447
|
+
resultJson: z.ZodString;
|
|
24448
|
+
truncated: z.ZodBoolean;
|
|
24449
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24450
|
+
command: z.ZodLiteral<"scroll">;
|
|
24451
|
+
browserId: z.ZodString;
|
|
24452
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
24453
|
+
deltaX: z.ZodNumber;
|
|
24454
|
+
deltaY: z.ZodNumber;
|
|
24455
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
24456
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
24457
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24458
|
+
command: z.ZodLiteral<"resize">;
|
|
24459
|
+
browserId: z.ZodString;
|
|
24460
|
+
width: z.ZodNumber;
|
|
24461
|
+
height: z.ZodNumber;
|
|
24462
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24463
|
+
command: z.ZodLiteral<"close_tab">;
|
|
24464
|
+
browserId: z.ZodString;
|
|
24465
|
+
}, z.core.$strip>], "command">;
|
|
24466
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24467
|
+
type: z.ZodEnum<{
|
|
24468
|
+
prompt: "prompt";
|
|
24469
|
+
alert: "alert";
|
|
24470
|
+
confirm: "confirm";
|
|
24471
|
+
beforeunload: "beforeunload";
|
|
24472
|
+
}>;
|
|
24473
|
+
message: z.ZodString;
|
|
24474
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
24475
|
+
action: z.ZodEnum<{
|
|
24476
|
+
accepted: "accepted";
|
|
24477
|
+
dismissed: "dismissed";
|
|
24478
|
+
}>;
|
|
24479
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
24480
|
+
timestamp: z.ZodNumber;
|
|
24481
|
+
}, z.core.$strip>>>;
|
|
24482
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24483
|
+
requestId: z.ZodString;
|
|
24484
|
+
ok: z.ZodLiteral<false>;
|
|
24485
|
+
error: z.ZodObject<{
|
|
24486
|
+
code: z.ZodEnum<{
|
|
24487
|
+
browser_disabled: "browser_disabled";
|
|
24488
|
+
browser_no_host: "browser_no_host";
|
|
24489
|
+
browser_tab_not_found: "browser_tab_not_found";
|
|
24490
|
+
browser_tab_closed: "browser_tab_closed";
|
|
24491
|
+
browser_timeout: "browser_timeout";
|
|
24492
|
+
screenshot_no_frame: "screenshot_no_frame";
|
|
24493
|
+
browser_denied: "browser_denied";
|
|
24494
|
+
browser_unsupported: "browser_unsupported";
|
|
24495
|
+
browser_stale_ref: "browser_stale_ref";
|
|
24496
|
+
browser_unknown_error: "browser_unknown_error";
|
|
24497
|
+
}>;
|
|
24498
|
+
message: z.ZodString;
|
|
24499
|
+
retryable: z.ZodDefault<z.ZodBoolean>;
|
|
24500
|
+
}, z.core.$strip>;
|
|
24501
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24502
|
+
type: z.ZodEnum<{
|
|
24503
|
+
prompt: "prompt";
|
|
24504
|
+
alert: "alert";
|
|
24505
|
+
confirm: "confirm";
|
|
24506
|
+
beforeunload: "beforeunload";
|
|
24507
|
+
}>;
|
|
24508
|
+
message: z.ZodString;
|
|
24509
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
24510
|
+
action: z.ZodEnum<{
|
|
24511
|
+
accepted: "accepted";
|
|
24512
|
+
dismissed: "dismissed";
|
|
24513
|
+
}>;
|
|
24514
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
24515
|
+
timestamp: z.ZodNumber;
|
|
24516
|
+
}, z.core.$strip>>>;
|
|
24517
|
+
}, z.core.$strip>]>;
|
|
24133
24518
|
}, z.core.$strip>, z.ZodObject<{
|
|
24134
24519
|
type: z.ZodLiteral<"browser.plugin_host.execute.request">;
|
|
24135
24520
|
requestId: z.ZodString;
|
|
@@ -37420,6 +37805,162 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
37420
37805
|
selector: z.ZodString;
|
|
37421
37806
|
filePath: z.ZodString;
|
|
37422
37807
|
}, z.core.$strict>], "op">;
|
|
37808
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37809
|
+
type: z.ZodLiteral<"plugin.browser.automation.execute.request">;
|
|
37810
|
+
requestId: z.ZodString;
|
|
37811
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37812
|
+
command: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37813
|
+
command: z.ZodLiteral<"list_tabs">;
|
|
37814
|
+
args: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
|
|
37815
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37816
|
+
command: z.ZodLiteral<"list_downloads">;
|
|
37817
|
+
args: z.ZodObject<{}, z.core.$strict>;
|
|
37818
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37819
|
+
command: z.ZodLiteral<"new_tab">;
|
|
37820
|
+
args: z.ZodDefault<z.ZodObject<{
|
|
37821
|
+
url: z.ZodOptional<z.ZodString>;
|
|
37822
|
+
}, z.core.$strict>>;
|
|
37823
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37824
|
+
command: z.ZodLiteral<"snapshot">;
|
|
37825
|
+
args: z.ZodObject<{
|
|
37826
|
+
browserId: z.ZodString;
|
|
37827
|
+
}, z.core.$strict>;
|
|
37828
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37829
|
+
command: z.ZodLiteral<"click">;
|
|
37830
|
+
args: z.ZodObject<{
|
|
37831
|
+
browserId: z.ZodString;
|
|
37832
|
+
ref: z.ZodString;
|
|
37833
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
37834
|
+
left: "left";
|
|
37835
|
+
right: "right";
|
|
37836
|
+
middle: "middle";
|
|
37837
|
+
}>>;
|
|
37838
|
+
doubleClick: z.ZodDefault<z.ZodBoolean>;
|
|
37839
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
37840
|
+
Alt: "Alt";
|
|
37841
|
+
Control: "Control";
|
|
37842
|
+
Meta: "Meta";
|
|
37843
|
+
Shift: "Shift";
|
|
37844
|
+
}>>>;
|
|
37845
|
+
}, z.core.$strict>;
|
|
37846
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37847
|
+
command: z.ZodLiteral<"fill">;
|
|
37848
|
+
args: z.ZodObject<{
|
|
37849
|
+
browserId: z.ZodString;
|
|
37850
|
+
ref: z.ZodString;
|
|
37851
|
+
value: z.ZodString;
|
|
37852
|
+
}, z.core.$strict>;
|
|
37853
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37854
|
+
command: z.ZodLiteral<"wait">;
|
|
37855
|
+
args: z.ZodObject<{
|
|
37856
|
+
browserId: z.ZodString;
|
|
37857
|
+
text: z.ZodOptional<z.ZodString>;
|
|
37858
|
+
url: z.ZodOptional<z.ZodString>;
|
|
37859
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
37860
|
+
}, z.core.$strict>;
|
|
37861
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37862
|
+
command: z.ZodLiteral<"type">;
|
|
37863
|
+
args: z.ZodObject<{
|
|
37864
|
+
browserId: z.ZodString;
|
|
37865
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
37866
|
+
text: z.ZodString;
|
|
37867
|
+
}, z.core.$strict>;
|
|
37868
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37869
|
+
command: z.ZodLiteral<"keypress">;
|
|
37870
|
+
args: z.ZodObject<{
|
|
37871
|
+
browserId: z.ZodString;
|
|
37872
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
37873
|
+
key: z.ZodString;
|
|
37874
|
+
}, z.core.$strict>;
|
|
37875
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37876
|
+
command: z.ZodLiteral<"navigate">;
|
|
37877
|
+
args: z.ZodObject<{
|
|
37878
|
+
browserId: z.ZodString;
|
|
37879
|
+
url: z.ZodString;
|
|
37880
|
+
}, z.core.$strict>;
|
|
37881
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37882
|
+
command: z.ZodLiteral<"back">;
|
|
37883
|
+
args: z.ZodObject<{
|
|
37884
|
+
browserId: z.ZodString;
|
|
37885
|
+
}, z.core.$strict>;
|
|
37886
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37887
|
+
command: z.ZodLiteral<"forward">;
|
|
37888
|
+
args: z.ZodObject<{
|
|
37889
|
+
browserId: z.ZodString;
|
|
37890
|
+
}, z.core.$strict>;
|
|
37891
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37892
|
+
command: z.ZodLiteral<"reload">;
|
|
37893
|
+
args: z.ZodObject<{
|
|
37894
|
+
browserId: z.ZodString;
|
|
37895
|
+
}, z.core.$strict>;
|
|
37896
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37897
|
+
command: z.ZodLiteral<"screenshot">;
|
|
37898
|
+
args: z.ZodObject<{
|
|
37899
|
+
browserId: z.ZodString;
|
|
37900
|
+
fullPage: z.ZodDefault<z.ZodBoolean>;
|
|
37901
|
+
}, z.core.$strict>;
|
|
37902
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37903
|
+
command: z.ZodLiteral<"upload">;
|
|
37904
|
+
args: z.ZodObject<{
|
|
37905
|
+
browserId: z.ZodString;
|
|
37906
|
+
ref: z.ZodString;
|
|
37907
|
+
filePaths: z.ZodArray<z.ZodString>;
|
|
37908
|
+
}, z.core.$strict>;
|
|
37909
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37910
|
+
command: z.ZodLiteral<"select">;
|
|
37911
|
+
args: z.ZodObject<{
|
|
37912
|
+
browserId: z.ZodString;
|
|
37913
|
+
ref: z.ZodString;
|
|
37914
|
+
value: z.ZodString;
|
|
37915
|
+
}, z.core.$strict>;
|
|
37916
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37917
|
+
command: z.ZodLiteral<"hover">;
|
|
37918
|
+
args: z.ZodObject<{
|
|
37919
|
+
browserId: z.ZodString;
|
|
37920
|
+
ref: z.ZodString;
|
|
37921
|
+
}, z.core.$strict>;
|
|
37922
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37923
|
+
command: z.ZodLiteral<"drag">;
|
|
37924
|
+
args: z.ZodObject<{
|
|
37925
|
+
browserId: z.ZodString;
|
|
37926
|
+
sourceRef: z.ZodString;
|
|
37927
|
+
targetRef: z.ZodString;
|
|
37928
|
+
}, z.core.$strict>;
|
|
37929
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37930
|
+
command: z.ZodLiteral<"logs">;
|
|
37931
|
+
args: z.ZodObject<{
|
|
37932
|
+
browserId: z.ZodString;
|
|
37933
|
+
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
37934
|
+
}, z.core.$strict>;
|
|
37935
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37936
|
+
command: z.ZodLiteral<"evaluate">;
|
|
37937
|
+
args: z.ZodObject<{
|
|
37938
|
+
browserId: z.ZodString;
|
|
37939
|
+
function: z.ZodString;
|
|
37940
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
37941
|
+
}, z.core.$strict>;
|
|
37942
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37943
|
+
command: z.ZodLiteral<"scroll">;
|
|
37944
|
+
args: z.ZodObject<{
|
|
37945
|
+
browserId: z.ZodString;
|
|
37946
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
37947
|
+
deltaX: z.ZodNumber;
|
|
37948
|
+
deltaY: z.ZodNumber;
|
|
37949
|
+
}, z.core.$strict>;
|
|
37950
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37951
|
+
command: z.ZodLiteral<"resize">;
|
|
37952
|
+
args: z.ZodObject<{
|
|
37953
|
+
browserId: z.ZodString;
|
|
37954
|
+
width: z.ZodNumber;
|
|
37955
|
+
height: z.ZodNumber;
|
|
37956
|
+
}, z.core.$strict>;
|
|
37957
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37958
|
+
command: z.ZodLiteral<"close_tab">;
|
|
37959
|
+
args: z.ZodObject<{
|
|
37960
|
+
browserId: z.ZodString;
|
|
37961
|
+
}, z.core.$strict>;
|
|
37962
|
+
}, z.core.$strip>], "command">;
|
|
37963
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
37423
37964
|
}, z.core.$strict>, z.ZodObject<{
|
|
37424
37965
|
type: z.ZodLiteral<"browser.plugin_host.execute.response">;
|
|
37425
37966
|
payload: z.ZodObject<{
|
|
@@ -37595,7 +38136,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
37595
38136
|
}, z.core.$strip>, z.ZodObject<{
|
|
37596
38137
|
command: z.ZodLiteral<"new_tab">;
|
|
37597
38138
|
browserId: z.ZodString;
|
|
37598
|
-
workspaceId: z.ZodString
|
|
38139
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
37599
38140
|
url: z.ZodString;
|
|
37600
38141
|
}, z.core.$strip>, z.ZodObject<{
|
|
37601
38142
|
command: z.ZodLiteral<"snapshot">;
|
|
@@ -41078,6 +41619,232 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
41078
41619
|
}>;
|
|
41079
41620
|
}, z.core.$strict>]>;
|
|
41080
41621
|
}, z.core.$strip>;
|
|
41622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41623
|
+
type: z.ZodLiteral<"plugin.browser.automation.execute.response">;
|
|
41624
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
41625
|
+
requestId: z.ZodString;
|
|
41626
|
+
ok: z.ZodLiteral<true>;
|
|
41627
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41628
|
+
command: z.ZodLiteral<"list_tabs">;
|
|
41629
|
+
tabs: z.ZodArray<z.ZodObject<{
|
|
41630
|
+
browserId: z.ZodString;
|
|
41631
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
41632
|
+
url: z.ZodString;
|
|
41633
|
+
title: z.ZodString;
|
|
41634
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
41635
|
+
isLoading: z.ZodDefault<z.ZodBoolean>;
|
|
41636
|
+
canGoBack: z.ZodOptional<z.ZodBoolean>;
|
|
41637
|
+
canGoForward: z.ZodOptional<z.ZodBoolean>;
|
|
41638
|
+
}, z.core.$strip>>;
|
|
41639
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41640
|
+
command: z.ZodLiteral<"list_downloads">;
|
|
41641
|
+
downloads: z.ZodArray<z.ZodObject<{
|
|
41642
|
+
id: z.ZodString;
|
|
41643
|
+
browserId: z.ZodNullable<z.ZodString>;
|
|
41644
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
41645
|
+
serverId: z.ZodNullable<z.ZodString>;
|
|
41646
|
+
status: z.ZodEnum<{
|
|
41647
|
+
completed: "completed";
|
|
41648
|
+
failed: "failed";
|
|
41649
|
+
cancelled: "cancelled";
|
|
41650
|
+
}>;
|
|
41651
|
+
path: z.ZodNullable<z.ZodString>;
|
|
41652
|
+
url: z.ZodString;
|
|
41653
|
+
filename: z.ZodString;
|
|
41654
|
+
bytes: z.ZodNumber;
|
|
41655
|
+
mimeType: z.ZodString;
|
|
41656
|
+
finishedAt: z.ZodString;
|
|
41657
|
+
error: z.ZodOptional<z.ZodString>;
|
|
41658
|
+
}, z.core.$strip>>;
|
|
41659
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41660
|
+
command: z.ZodLiteral<"new_tab">;
|
|
41661
|
+
browserId: z.ZodString;
|
|
41662
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
41663
|
+
url: z.ZodString;
|
|
41664
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41665
|
+
command: z.ZodLiteral<"snapshot">;
|
|
41666
|
+
browserId: z.ZodString;
|
|
41667
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
41668
|
+
url: z.ZodString;
|
|
41669
|
+
title: z.ZodString;
|
|
41670
|
+
format: z.ZodLiteral<"aria-yaml">;
|
|
41671
|
+
snapshot: z.ZodString;
|
|
41672
|
+
truncated: z.ZodBoolean;
|
|
41673
|
+
stats: z.ZodObject<{
|
|
41674
|
+
nodeCount: z.ZodNumber;
|
|
41675
|
+
refCount: z.ZodNumber;
|
|
41676
|
+
textLength: z.ZodNumber;
|
|
41677
|
+
iframeCount: z.ZodOptional<z.ZodNumber>;
|
|
41678
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
41679
|
+
}, z.core.$strict>;
|
|
41680
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41681
|
+
command: z.ZodLiteral<"click">;
|
|
41682
|
+
browserId: z.ZodString;
|
|
41683
|
+
ref: z.ZodString;
|
|
41684
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
41685
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
41686
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41687
|
+
command: z.ZodLiteral<"fill">;
|
|
41688
|
+
browserId: z.ZodString;
|
|
41689
|
+
ref: z.ZodString;
|
|
41690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41691
|
+
command: z.ZodLiteral<"wait">;
|
|
41692
|
+
browserId: z.ZodString;
|
|
41693
|
+
matched: z.ZodEnum<{
|
|
41694
|
+
text: "text";
|
|
41695
|
+
url: "url";
|
|
41696
|
+
}>;
|
|
41697
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41698
|
+
command: z.ZodLiteral<"type">;
|
|
41699
|
+
browserId: z.ZodString;
|
|
41700
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
41701
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
41702
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
41703
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41704
|
+
command: z.ZodLiteral<"keypress">;
|
|
41705
|
+
browserId: z.ZodString;
|
|
41706
|
+
key: z.ZodString;
|
|
41707
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
41708
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
41709
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
41710
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41711
|
+
command: z.ZodLiteral<"navigate">;
|
|
41712
|
+
browserId: z.ZodString;
|
|
41713
|
+
url: z.ZodString;
|
|
41714
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41715
|
+
command: z.ZodLiteral<"back">;
|
|
41716
|
+
browserId: z.ZodString;
|
|
41717
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41718
|
+
command: z.ZodLiteral<"forward">;
|
|
41719
|
+
browserId: z.ZodString;
|
|
41720
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41721
|
+
command: z.ZodLiteral<"reload">;
|
|
41722
|
+
browserId: z.ZodString;
|
|
41723
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41724
|
+
command: z.ZodLiteral<"screenshot">;
|
|
41725
|
+
browserId: z.ZodString;
|
|
41726
|
+
mimeType: z.ZodLiteral<"image/png">;
|
|
41727
|
+
dataBase64: z.ZodString;
|
|
41728
|
+
width: z.ZodNumber;
|
|
41729
|
+
height: z.ZodNumber;
|
|
41730
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41731
|
+
command: z.ZodLiteral<"upload">;
|
|
41732
|
+
browserId: z.ZodString;
|
|
41733
|
+
ref: z.ZodString;
|
|
41734
|
+
filePaths: z.ZodArray<z.ZodString>;
|
|
41735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41736
|
+
command: z.ZodLiteral<"select">;
|
|
41737
|
+
browserId: z.ZodString;
|
|
41738
|
+
ref: z.ZodString;
|
|
41739
|
+
value: z.ZodString;
|
|
41740
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41741
|
+
command: z.ZodLiteral<"hover">;
|
|
41742
|
+
browserId: z.ZodString;
|
|
41743
|
+
ref: z.ZodString;
|
|
41744
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
41745
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
41746
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41747
|
+
command: z.ZodLiteral<"drag">;
|
|
41748
|
+
browserId: z.ZodString;
|
|
41749
|
+
sourceRef: z.ZodString;
|
|
41750
|
+
targetRef: z.ZodString;
|
|
41751
|
+
sourceX: z.ZodOptional<z.ZodNumber>;
|
|
41752
|
+
sourceY: z.ZodOptional<z.ZodNumber>;
|
|
41753
|
+
targetX: z.ZodOptional<z.ZodNumber>;
|
|
41754
|
+
targetY: z.ZodOptional<z.ZodNumber>;
|
|
41755
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41756
|
+
command: z.ZodLiteral<"logs">;
|
|
41757
|
+
browserId: z.ZodString;
|
|
41758
|
+
console: z.ZodArray<z.ZodObject<{
|
|
41759
|
+
level: z.ZodString;
|
|
41760
|
+
message: z.ZodString;
|
|
41761
|
+
source: z.ZodOptional<z.ZodString>;
|
|
41762
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
41763
|
+
timestamp: z.ZodNumber;
|
|
41764
|
+
}, z.core.$strip>>;
|
|
41765
|
+
network: z.ZodArray<z.ZodObject<{
|
|
41766
|
+
url: z.ZodString;
|
|
41767
|
+
method: z.ZodOptional<z.ZodString>;
|
|
41768
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
41769
|
+
type: z.ZodOptional<z.ZodString>;
|
|
41770
|
+
startTime: z.ZodNumber;
|
|
41771
|
+
duration: z.ZodNumber;
|
|
41772
|
+
transferSize: z.ZodOptional<z.ZodNumber>;
|
|
41773
|
+
}, z.core.$strip>>;
|
|
41774
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41775
|
+
command: z.ZodLiteral<"evaluate">;
|
|
41776
|
+
browserId: z.ZodString;
|
|
41777
|
+
resultJson: z.ZodString;
|
|
41778
|
+
truncated: z.ZodBoolean;
|
|
41779
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41780
|
+
command: z.ZodLiteral<"scroll">;
|
|
41781
|
+
browserId: z.ZodString;
|
|
41782
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
41783
|
+
deltaX: z.ZodNumber;
|
|
41784
|
+
deltaY: z.ZodNumber;
|
|
41785
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
41786
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
41787
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41788
|
+
command: z.ZodLiteral<"resize">;
|
|
41789
|
+
browserId: z.ZodString;
|
|
41790
|
+
width: z.ZodNumber;
|
|
41791
|
+
height: z.ZodNumber;
|
|
41792
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41793
|
+
command: z.ZodLiteral<"close_tab">;
|
|
41794
|
+
browserId: z.ZodString;
|
|
41795
|
+
}, z.core.$strip>], "command">;
|
|
41796
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41797
|
+
type: z.ZodEnum<{
|
|
41798
|
+
prompt: "prompt";
|
|
41799
|
+
alert: "alert";
|
|
41800
|
+
confirm: "confirm";
|
|
41801
|
+
beforeunload: "beforeunload";
|
|
41802
|
+
}>;
|
|
41803
|
+
message: z.ZodString;
|
|
41804
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
41805
|
+
action: z.ZodEnum<{
|
|
41806
|
+
accepted: "accepted";
|
|
41807
|
+
dismissed: "dismissed";
|
|
41808
|
+
}>;
|
|
41809
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
41810
|
+
timestamp: z.ZodNumber;
|
|
41811
|
+
}, z.core.$strip>>>;
|
|
41812
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41813
|
+
requestId: z.ZodString;
|
|
41814
|
+
ok: z.ZodLiteral<false>;
|
|
41815
|
+
error: z.ZodObject<{
|
|
41816
|
+
code: z.ZodEnum<{
|
|
41817
|
+
browser_disabled: "browser_disabled";
|
|
41818
|
+
browser_no_host: "browser_no_host";
|
|
41819
|
+
browser_tab_not_found: "browser_tab_not_found";
|
|
41820
|
+
browser_tab_closed: "browser_tab_closed";
|
|
41821
|
+
browser_timeout: "browser_timeout";
|
|
41822
|
+
screenshot_no_frame: "screenshot_no_frame";
|
|
41823
|
+
browser_denied: "browser_denied";
|
|
41824
|
+
browser_unsupported: "browser_unsupported";
|
|
41825
|
+
browser_stale_ref: "browser_stale_ref";
|
|
41826
|
+
browser_unknown_error: "browser_unknown_error";
|
|
41827
|
+
}>;
|
|
41828
|
+
message: z.ZodString;
|
|
41829
|
+
retryable: z.ZodDefault<z.ZodBoolean>;
|
|
41830
|
+
}, z.core.$strip>;
|
|
41831
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41832
|
+
type: z.ZodEnum<{
|
|
41833
|
+
prompt: "prompt";
|
|
41834
|
+
alert: "alert";
|
|
41835
|
+
confirm: "confirm";
|
|
41836
|
+
beforeunload: "beforeunload";
|
|
41837
|
+
}>;
|
|
41838
|
+
message: z.ZodString;
|
|
41839
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
41840
|
+
action: z.ZodEnum<{
|
|
41841
|
+
accepted: "accepted";
|
|
41842
|
+
dismissed: "dismissed";
|
|
41843
|
+
}>;
|
|
41844
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
41845
|
+
timestamp: z.ZodNumber;
|
|
41846
|
+
}, z.core.$strip>>>;
|
|
41847
|
+
}, z.core.$strip>]>;
|
|
41081
41848
|
}, z.core.$strip>, z.ZodObject<{
|
|
41082
41849
|
type: z.ZodLiteral<"browser.plugin_host.execute.request">;
|
|
41083
41850
|
requestId: z.ZodString;
|
|
@@ -54010,6 +54777,162 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
54010
54777
|
selector: z.ZodString;
|
|
54011
54778
|
filePath: z.ZodString;
|
|
54012
54779
|
}, z.core.$strict>], "op">;
|
|
54780
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54781
|
+
type: z.ZodLiteral<"plugin.browser.automation.execute.request">;
|
|
54782
|
+
requestId: z.ZodString;
|
|
54783
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
54784
|
+
command: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54785
|
+
command: z.ZodLiteral<"list_tabs">;
|
|
54786
|
+
args: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
|
|
54787
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54788
|
+
command: z.ZodLiteral<"list_downloads">;
|
|
54789
|
+
args: z.ZodObject<{}, z.core.$strict>;
|
|
54790
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54791
|
+
command: z.ZodLiteral<"new_tab">;
|
|
54792
|
+
args: z.ZodDefault<z.ZodObject<{
|
|
54793
|
+
url: z.ZodOptional<z.ZodString>;
|
|
54794
|
+
}, z.core.$strict>>;
|
|
54795
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54796
|
+
command: z.ZodLiteral<"snapshot">;
|
|
54797
|
+
args: z.ZodObject<{
|
|
54798
|
+
browserId: z.ZodString;
|
|
54799
|
+
}, z.core.$strict>;
|
|
54800
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54801
|
+
command: z.ZodLiteral<"click">;
|
|
54802
|
+
args: z.ZodObject<{
|
|
54803
|
+
browserId: z.ZodString;
|
|
54804
|
+
ref: z.ZodString;
|
|
54805
|
+
button: z.ZodDefault<z.ZodEnum<{
|
|
54806
|
+
left: "left";
|
|
54807
|
+
right: "right";
|
|
54808
|
+
middle: "middle";
|
|
54809
|
+
}>>;
|
|
54810
|
+
doubleClick: z.ZodDefault<z.ZodBoolean>;
|
|
54811
|
+
modifiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
54812
|
+
Alt: "Alt";
|
|
54813
|
+
Control: "Control";
|
|
54814
|
+
Meta: "Meta";
|
|
54815
|
+
Shift: "Shift";
|
|
54816
|
+
}>>>;
|
|
54817
|
+
}, z.core.$strict>;
|
|
54818
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54819
|
+
command: z.ZodLiteral<"fill">;
|
|
54820
|
+
args: z.ZodObject<{
|
|
54821
|
+
browserId: z.ZodString;
|
|
54822
|
+
ref: z.ZodString;
|
|
54823
|
+
value: z.ZodString;
|
|
54824
|
+
}, z.core.$strict>;
|
|
54825
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54826
|
+
command: z.ZodLiteral<"wait">;
|
|
54827
|
+
args: z.ZodObject<{
|
|
54828
|
+
browserId: z.ZodString;
|
|
54829
|
+
text: z.ZodOptional<z.ZodString>;
|
|
54830
|
+
url: z.ZodOptional<z.ZodString>;
|
|
54831
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
54832
|
+
}, z.core.$strict>;
|
|
54833
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54834
|
+
command: z.ZodLiteral<"type">;
|
|
54835
|
+
args: z.ZodObject<{
|
|
54836
|
+
browserId: z.ZodString;
|
|
54837
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
54838
|
+
text: z.ZodString;
|
|
54839
|
+
}, z.core.$strict>;
|
|
54840
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54841
|
+
command: z.ZodLiteral<"keypress">;
|
|
54842
|
+
args: z.ZodObject<{
|
|
54843
|
+
browserId: z.ZodString;
|
|
54844
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
54845
|
+
key: z.ZodString;
|
|
54846
|
+
}, z.core.$strict>;
|
|
54847
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54848
|
+
command: z.ZodLiteral<"navigate">;
|
|
54849
|
+
args: z.ZodObject<{
|
|
54850
|
+
browserId: z.ZodString;
|
|
54851
|
+
url: z.ZodString;
|
|
54852
|
+
}, z.core.$strict>;
|
|
54853
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54854
|
+
command: z.ZodLiteral<"back">;
|
|
54855
|
+
args: z.ZodObject<{
|
|
54856
|
+
browserId: z.ZodString;
|
|
54857
|
+
}, z.core.$strict>;
|
|
54858
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54859
|
+
command: z.ZodLiteral<"forward">;
|
|
54860
|
+
args: z.ZodObject<{
|
|
54861
|
+
browserId: z.ZodString;
|
|
54862
|
+
}, z.core.$strict>;
|
|
54863
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54864
|
+
command: z.ZodLiteral<"reload">;
|
|
54865
|
+
args: z.ZodObject<{
|
|
54866
|
+
browserId: z.ZodString;
|
|
54867
|
+
}, z.core.$strict>;
|
|
54868
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54869
|
+
command: z.ZodLiteral<"screenshot">;
|
|
54870
|
+
args: z.ZodObject<{
|
|
54871
|
+
browserId: z.ZodString;
|
|
54872
|
+
fullPage: z.ZodDefault<z.ZodBoolean>;
|
|
54873
|
+
}, z.core.$strict>;
|
|
54874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54875
|
+
command: z.ZodLiteral<"upload">;
|
|
54876
|
+
args: z.ZodObject<{
|
|
54877
|
+
browserId: z.ZodString;
|
|
54878
|
+
ref: z.ZodString;
|
|
54879
|
+
filePaths: z.ZodArray<z.ZodString>;
|
|
54880
|
+
}, z.core.$strict>;
|
|
54881
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54882
|
+
command: z.ZodLiteral<"select">;
|
|
54883
|
+
args: z.ZodObject<{
|
|
54884
|
+
browserId: z.ZodString;
|
|
54885
|
+
ref: z.ZodString;
|
|
54886
|
+
value: z.ZodString;
|
|
54887
|
+
}, z.core.$strict>;
|
|
54888
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54889
|
+
command: z.ZodLiteral<"hover">;
|
|
54890
|
+
args: z.ZodObject<{
|
|
54891
|
+
browserId: z.ZodString;
|
|
54892
|
+
ref: z.ZodString;
|
|
54893
|
+
}, z.core.$strict>;
|
|
54894
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54895
|
+
command: z.ZodLiteral<"drag">;
|
|
54896
|
+
args: z.ZodObject<{
|
|
54897
|
+
browserId: z.ZodString;
|
|
54898
|
+
sourceRef: z.ZodString;
|
|
54899
|
+
targetRef: z.ZodString;
|
|
54900
|
+
}, z.core.$strict>;
|
|
54901
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54902
|
+
command: z.ZodLiteral<"logs">;
|
|
54903
|
+
args: z.ZodObject<{
|
|
54904
|
+
browserId: z.ZodString;
|
|
54905
|
+
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
54906
|
+
}, z.core.$strict>;
|
|
54907
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54908
|
+
command: z.ZodLiteral<"evaluate">;
|
|
54909
|
+
args: z.ZodObject<{
|
|
54910
|
+
browserId: z.ZodString;
|
|
54911
|
+
function: z.ZodString;
|
|
54912
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
54913
|
+
}, z.core.$strict>;
|
|
54914
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54915
|
+
command: z.ZodLiteral<"scroll">;
|
|
54916
|
+
args: z.ZodObject<{
|
|
54917
|
+
browserId: z.ZodString;
|
|
54918
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
54919
|
+
deltaX: z.ZodNumber;
|
|
54920
|
+
deltaY: z.ZodNumber;
|
|
54921
|
+
}, z.core.$strict>;
|
|
54922
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54923
|
+
command: z.ZodLiteral<"resize">;
|
|
54924
|
+
args: z.ZodObject<{
|
|
54925
|
+
browserId: z.ZodString;
|
|
54926
|
+
width: z.ZodNumber;
|
|
54927
|
+
height: z.ZodNumber;
|
|
54928
|
+
}, z.core.$strict>;
|
|
54929
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54930
|
+
command: z.ZodLiteral<"close_tab">;
|
|
54931
|
+
args: z.ZodObject<{
|
|
54932
|
+
browserId: z.ZodString;
|
|
54933
|
+
}, z.core.$strict>;
|
|
54934
|
+
}, z.core.$strip>], "command">;
|
|
54935
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
54013
54936
|
}, z.core.$strict>, z.ZodObject<{
|
|
54014
54937
|
type: z.ZodLiteral<"browser.plugin_host.execute.response">;
|
|
54015
54938
|
payload: z.ZodObject<{
|
|
@@ -54185,7 +55108,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
54185
55108
|
}, z.core.$strip>, z.ZodObject<{
|
|
54186
55109
|
command: z.ZodLiteral<"new_tab">;
|
|
54187
55110
|
browserId: z.ZodString;
|
|
54188
|
-
workspaceId: z.ZodString
|
|
55111
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
54189
55112
|
url: z.ZodString;
|
|
54190
55113
|
}, z.core.$strip>, z.ZodObject<{
|
|
54191
55114
|
command: z.ZodLiteral<"snapshot">;
|
|
@@ -57670,6 +58593,232 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
57670
58593
|
}>;
|
|
57671
58594
|
}, z.core.$strict>]>;
|
|
57672
58595
|
}, z.core.$strip>;
|
|
58596
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58597
|
+
type: z.ZodLiteral<"plugin.browser.automation.execute.response">;
|
|
58598
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
58599
|
+
requestId: z.ZodString;
|
|
58600
|
+
ok: z.ZodLiteral<true>;
|
|
58601
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
58602
|
+
command: z.ZodLiteral<"list_tabs">;
|
|
58603
|
+
tabs: z.ZodArray<z.ZodObject<{
|
|
58604
|
+
browserId: z.ZodString;
|
|
58605
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
58606
|
+
url: z.ZodString;
|
|
58607
|
+
title: z.ZodString;
|
|
58608
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
58609
|
+
isLoading: z.ZodDefault<z.ZodBoolean>;
|
|
58610
|
+
canGoBack: z.ZodOptional<z.ZodBoolean>;
|
|
58611
|
+
canGoForward: z.ZodOptional<z.ZodBoolean>;
|
|
58612
|
+
}, z.core.$strip>>;
|
|
58613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58614
|
+
command: z.ZodLiteral<"list_downloads">;
|
|
58615
|
+
downloads: z.ZodArray<z.ZodObject<{
|
|
58616
|
+
id: z.ZodString;
|
|
58617
|
+
browserId: z.ZodNullable<z.ZodString>;
|
|
58618
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
58619
|
+
serverId: z.ZodNullable<z.ZodString>;
|
|
58620
|
+
status: z.ZodEnum<{
|
|
58621
|
+
completed: "completed";
|
|
58622
|
+
failed: "failed";
|
|
58623
|
+
cancelled: "cancelled";
|
|
58624
|
+
}>;
|
|
58625
|
+
path: z.ZodNullable<z.ZodString>;
|
|
58626
|
+
url: z.ZodString;
|
|
58627
|
+
filename: z.ZodString;
|
|
58628
|
+
bytes: z.ZodNumber;
|
|
58629
|
+
mimeType: z.ZodString;
|
|
58630
|
+
finishedAt: z.ZodString;
|
|
58631
|
+
error: z.ZodOptional<z.ZodString>;
|
|
58632
|
+
}, z.core.$strip>>;
|
|
58633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58634
|
+
command: z.ZodLiteral<"new_tab">;
|
|
58635
|
+
browserId: z.ZodString;
|
|
58636
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
58637
|
+
url: z.ZodString;
|
|
58638
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58639
|
+
command: z.ZodLiteral<"snapshot">;
|
|
58640
|
+
browserId: z.ZodString;
|
|
58641
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
58642
|
+
url: z.ZodString;
|
|
58643
|
+
title: z.ZodString;
|
|
58644
|
+
format: z.ZodLiteral<"aria-yaml">;
|
|
58645
|
+
snapshot: z.ZodString;
|
|
58646
|
+
truncated: z.ZodBoolean;
|
|
58647
|
+
stats: z.ZodObject<{
|
|
58648
|
+
nodeCount: z.ZodNumber;
|
|
58649
|
+
refCount: z.ZodNumber;
|
|
58650
|
+
textLength: z.ZodNumber;
|
|
58651
|
+
iframeCount: z.ZodOptional<z.ZodNumber>;
|
|
58652
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
58653
|
+
}, z.core.$strict>;
|
|
58654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58655
|
+
command: z.ZodLiteral<"click">;
|
|
58656
|
+
browserId: z.ZodString;
|
|
58657
|
+
ref: z.ZodString;
|
|
58658
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
58659
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
58660
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58661
|
+
command: z.ZodLiteral<"fill">;
|
|
58662
|
+
browserId: z.ZodString;
|
|
58663
|
+
ref: z.ZodString;
|
|
58664
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58665
|
+
command: z.ZodLiteral<"wait">;
|
|
58666
|
+
browserId: z.ZodString;
|
|
58667
|
+
matched: z.ZodEnum<{
|
|
58668
|
+
text: "text";
|
|
58669
|
+
url: "url";
|
|
58670
|
+
}>;
|
|
58671
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58672
|
+
command: z.ZodLiteral<"type">;
|
|
58673
|
+
browserId: z.ZodString;
|
|
58674
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
58675
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
58676
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
58677
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58678
|
+
command: z.ZodLiteral<"keypress">;
|
|
58679
|
+
browserId: z.ZodString;
|
|
58680
|
+
key: z.ZodString;
|
|
58681
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
58682
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
58683
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
58684
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58685
|
+
command: z.ZodLiteral<"navigate">;
|
|
58686
|
+
browserId: z.ZodString;
|
|
58687
|
+
url: z.ZodString;
|
|
58688
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58689
|
+
command: z.ZodLiteral<"back">;
|
|
58690
|
+
browserId: z.ZodString;
|
|
58691
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58692
|
+
command: z.ZodLiteral<"forward">;
|
|
58693
|
+
browserId: z.ZodString;
|
|
58694
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58695
|
+
command: z.ZodLiteral<"reload">;
|
|
58696
|
+
browserId: z.ZodString;
|
|
58697
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58698
|
+
command: z.ZodLiteral<"screenshot">;
|
|
58699
|
+
browserId: z.ZodString;
|
|
58700
|
+
mimeType: z.ZodLiteral<"image/png">;
|
|
58701
|
+
dataBase64: z.ZodString;
|
|
58702
|
+
width: z.ZodNumber;
|
|
58703
|
+
height: z.ZodNumber;
|
|
58704
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58705
|
+
command: z.ZodLiteral<"upload">;
|
|
58706
|
+
browserId: z.ZodString;
|
|
58707
|
+
ref: z.ZodString;
|
|
58708
|
+
filePaths: z.ZodArray<z.ZodString>;
|
|
58709
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58710
|
+
command: z.ZodLiteral<"select">;
|
|
58711
|
+
browserId: z.ZodString;
|
|
58712
|
+
ref: z.ZodString;
|
|
58713
|
+
value: z.ZodString;
|
|
58714
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58715
|
+
command: z.ZodLiteral<"hover">;
|
|
58716
|
+
browserId: z.ZodString;
|
|
58717
|
+
ref: z.ZodString;
|
|
58718
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
58719
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
58720
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58721
|
+
command: z.ZodLiteral<"drag">;
|
|
58722
|
+
browserId: z.ZodString;
|
|
58723
|
+
sourceRef: z.ZodString;
|
|
58724
|
+
targetRef: z.ZodString;
|
|
58725
|
+
sourceX: z.ZodOptional<z.ZodNumber>;
|
|
58726
|
+
sourceY: z.ZodOptional<z.ZodNumber>;
|
|
58727
|
+
targetX: z.ZodOptional<z.ZodNumber>;
|
|
58728
|
+
targetY: z.ZodOptional<z.ZodNumber>;
|
|
58729
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58730
|
+
command: z.ZodLiteral<"logs">;
|
|
58731
|
+
browserId: z.ZodString;
|
|
58732
|
+
console: z.ZodArray<z.ZodObject<{
|
|
58733
|
+
level: z.ZodString;
|
|
58734
|
+
message: z.ZodString;
|
|
58735
|
+
source: z.ZodOptional<z.ZodString>;
|
|
58736
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
58737
|
+
timestamp: z.ZodNumber;
|
|
58738
|
+
}, z.core.$strip>>;
|
|
58739
|
+
network: z.ZodArray<z.ZodObject<{
|
|
58740
|
+
url: z.ZodString;
|
|
58741
|
+
method: z.ZodOptional<z.ZodString>;
|
|
58742
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
58743
|
+
type: z.ZodOptional<z.ZodString>;
|
|
58744
|
+
startTime: z.ZodNumber;
|
|
58745
|
+
duration: z.ZodNumber;
|
|
58746
|
+
transferSize: z.ZodOptional<z.ZodNumber>;
|
|
58747
|
+
}, z.core.$strip>>;
|
|
58748
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58749
|
+
command: z.ZodLiteral<"evaluate">;
|
|
58750
|
+
browserId: z.ZodString;
|
|
58751
|
+
resultJson: z.ZodString;
|
|
58752
|
+
truncated: z.ZodBoolean;
|
|
58753
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58754
|
+
command: z.ZodLiteral<"scroll">;
|
|
58755
|
+
browserId: z.ZodString;
|
|
58756
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
58757
|
+
deltaX: z.ZodNumber;
|
|
58758
|
+
deltaY: z.ZodNumber;
|
|
58759
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
58760
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
58761
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58762
|
+
command: z.ZodLiteral<"resize">;
|
|
58763
|
+
browserId: z.ZodString;
|
|
58764
|
+
width: z.ZodNumber;
|
|
58765
|
+
height: z.ZodNumber;
|
|
58766
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58767
|
+
command: z.ZodLiteral<"close_tab">;
|
|
58768
|
+
browserId: z.ZodString;
|
|
58769
|
+
}, z.core.$strip>], "command">;
|
|
58770
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58771
|
+
type: z.ZodEnum<{
|
|
58772
|
+
prompt: "prompt";
|
|
58773
|
+
alert: "alert";
|
|
58774
|
+
confirm: "confirm";
|
|
58775
|
+
beforeunload: "beforeunload";
|
|
58776
|
+
}>;
|
|
58777
|
+
message: z.ZodString;
|
|
58778
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
58779
|
+
action: z.ZodEnum<{
|
|
58780
|
+
accepted: "accepted";
|
|
58781
|
+
dismissed: "dismissed";
|
|
58782
|
+
}>;
|
|
58783
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
58784
|
+
timestamp: z.ZodNumber;
|
|
58785
|
+
}, z.core.$strip>>>;
|
|
58786
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58787
|
+
requestId: z.ZodString;
|
|
58788
|
+
ok: z.ZodLiteral<false>;
|
|
58789
|
+
error: z.ZodObject<{
|
|
58790
|
+
code: z.ZodEnum<{
|
|
58791
|
+
browser_disabled: "browser_disabled";
|
|
58792
|
+
browser_no_host: "browser_no_host";
|
|
58793
|
+
browser_tab_not_found: "browser_tab_not_found";
|
|
58794
|
+
browser_tab_closed: "browser_tab_closed";
|
|
58795
|
+
browser_timeout: "browser_timeout";
|
|
58796
|
+
screenshot_no_frame: "screenshot_no_frame";
|
|
58797
|
+
browser_denied: "browser_denied";
|
|
58798
|
+
browser_unsupported: "browser_unsupported";
|
|
58799
|
+
browser_stale_ref: "browser_stale_ref";
|
|
58800
|
+
browser_unknown_error: "browser_unknown_error";
|
|
58801
|
+
}>;
|
|
58802
|
+
message: z.ZodString;
|
|
58803
|
+
retryable: z.ZodDefault<z.ZodBoolean>;
|
|
58804
|
+
}, z.core.$strip>;
|
|
58805
|
+
dialogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58806
|
+
type: z.ZodEnum<{
|
|
58807
|
+
prompt: "prompt";
|
|
58808
|
+
alert: "alert";
|
|
58809
|
+
confirm: "confirm";
|
|
58810
|
+
beforeunload: "beforeunload";
|
|
58811
|
+
}>;
|
|
58812
|
+
message: z.ZodString;
|
|
58813
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
58814
|
+
action: z.ZodEnum<{
|
|
58815
|
+
accepted: "accepted";
|
|
58816
|
+
dismissed: "dismissed";
|
|
58817
|
+
}>;
|
|
58818
|
+
promptText: z.ZodOptional<z.ZodString>;
|
|
58819
|
+
timestamp: z.ZodNumber;
|
|
58820
|
+
}, z.core.$strip>>>;
|
|
58821
|
+
}, z.core.$strip>]>;
|
|
57673
58822
|
}, z.core.$strip>, z.ZodObject<{
|
|
57674
58823
|
type: z.ZodLiteral<"browser.plugin_host.execute.request">;
|
|
57675
58824
|
requestId: z.ZodString;
|