@nodetool-ai/browser 0.8.2 → 0.8.4-a13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.nodetool-build-stamp +1 -1
- package/dist/extension/client.d.ts +1 -0
- package/dist/extension/client.d.ts.map +1 -1
- package/dist/extension/client.js +6 -1
- package/dist/extension/client.js.map +1 -1
- package/dist/extension/install-native-host.d.ts +6 -0
- package/dist/extension/install-native-host.d.ts.map +1 -1
- package/dist/extension/install-native-host.js +17 -0
- package/dist/extension/install-native-host.js.map +1 -1
- package/dist/extension/native-host.d.ts +8 -7
- package/dist/extension/native-host.d.ts.map +1 -1
- package/dist/extension/native-host.js +55 -38
- package/dist/extension/native-host.js.map +1 -1
- package/dist/extension/page.d.ts +1 -0
- package/dist/extension/page.d.ts.map +1 -1
- package/dist/extension/page.js +5 -0
- package/dist/extension/page.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +82 -480
- package/dist/schemas.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/schemas.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BrowserViewInput: z.ZodObject<{
|
|
3
3
|
include_screenshot: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
-
},
|
|
5
|
-
include_screenshot?: boolean | undefined;
|
|
6
|
-
}, {
|
|
7
|
-
include_screenshot?: boolean | undefined;
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
export type BrowserViewInput = z.infer<typeof BrowserViewInput>;
|
|
10
6
|
export declare const BrowserElement: z.ZodObject<{
|
|
11
7
|
index: z.ZodNumber;
|
|
@@ -18,42 +14,8 @@ export declare const BrowserElement: z.ZodObject<{
|
|
|
18
14
|
y: z.ZodNumber;
|
|
19
15
|
width: z.ZodNumber;
|
|
20
16
|
height: z.ZodNumber;
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
y: number;
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
}, {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
}>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
index: number;
|
|
34
|
-
tag: string;
|
|
35
|
-
role: string | null;
|
|
36
|
-
text: string;
|
|
37
|
-
attributes: Record<string, string>;
|
|
38
|
-
bbox: {
|
|
39
|
-
x: number;
|
|
40
|
-
y: number;
|
|
41
|
-
width: number;
|
|
42
|
-
height: number;
|
|
43
|
-
};
|
|
44
|
-
}, {
|
|
45
|
-
index: number;
|
|
46
|
-
tag: string;
|
|
47
|
-
role: string | null;
|
|
48
|
-
text: string;
|
|
49
|
-
attributes: Record<string, string>;
|
|
50
|
-
bbox: {
|
|
51
|
-
x: number;
|
|
52
|
-
y: number;
|
|
53
|
-
width: number;
|
|
54
|
-
height: number;
|
|
55
|
-
};
|
|
56
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
}, z.core.$strip>;
|
|
57
19
|
export type BrowserElement = z.infer<typeof BrowserElement>;
|
|
58
20
|
export declare const BrowserViewOutput: z.ZodObject<{
|
|
59
21
|
url: z.ZodString;
|
|
@@ -61,13 +23,7 @@ export declare const BrowserViewOutput: z.ZodObject<{
|
|
|
61
23
|
viewport: z.ZodObject<{
|
|
62
24
|
width: z.ZodNumber;
|
|
63
25
|
height: z.ZodNumber;
|
|
64
|
-
},
|
|
65
|
-
width: number;
|
|
66
|
-
height: number;
|
|
67
|
-
}, {
|
|
68
|
-
width: number;
|
|
69
|
-
height: number;
|
|
70
|
-
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
71
27
|
elements: z.ZodArray<z.ZodObject<{
|
|
72
28
|
index: z.ZodNumber;
|
|
73
29
|
tag: z.ZodString;
|
|
@@ -79,111 +35,25 @@ export declare const BrowserViewOutput: z.ZodObject<{
|
|
|
79
35
|
y: z.ZodNumber;
|
|
80
36
|
width: z.ZodNumber;
|
|
81
37
|
height: z.ZodNumber;
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
y: number;
|
|
85
|
-
width: number;
|
|
86
|
-
height: number;
|
|
87
|
-
}, {
|
|
88
|
-
x: number;
|
|
89
|
-
y: number;
|
|
90
|
-
width: number;
|
|
91
|
-
height: number;
|
|
92
|
-
}>;
|
|
93
|
-
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
index: number;
|
|
95
|
-
tag: string;
|
|
96
|
-
role: string | null;
|
|
97
|
-
text: string;
|
|
98
|
-
attributes: Record<string, string>;
|
|
99
|
-
bbox: {
|
|
100
|
-
x: number;
|
|
101
|
-
y: number;
|
|
102
|
-
width: number;
|
|
103
|
-
height: number;
|
|
104
|
-
};
|
|
105
|
-
}, {
|
|
106
|
-
index: number;
|
|
107
|
-
tag: string;
|
|
108
|
-
role: string | null;
|
|
109
|
-
text: string;
|
|
110
|
-
attributes: Record<string, string>;
|
|
111
|
-
bbox: {
|
|
112
|
-
x: number;
|
|
113
|
-
y: number;
|
|
114
|
-
width: number;
|
|
115
|
-
height: number;
|
|
116
|
-
};
|
|
117
|
-
}>, "many">;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
118
40
|
screenshot_png_b64: z.ZodNullable<z.ZodString>;
|
|
119
|
-
},
|
|
120
|
-
url: string;
|
|
121
|
-
title: string;
|
|
122
|
-
viewport: {
|
|
123
|
-
width: number;
|
|
124
|
-
height: number;
|
|
125
|
-
};
|
|
126
|
-
elements: {
|
|
127
|
-
index: number;
|
|
128
|
-
tag: string;
|
|
129
|
-
role: string | null;
|
|
130
|
-
text: string;
|
|
131
|
-
attributes: Record<string, string>;
|
|
132
|
-
bbox: {
|
|
133
|
-
x: number;
|
|
134
|
-
y: number;
|
|
135
|
-
width: number;
|
|
136
|
-
height: number;
|
|
137
|
-
};
|
|
138
|
-
}[];
|
|
139
|
-
screenshot_png_b64: string | null;
|
|
140
|
-
}, {
|
|
141
|
-
url: string;
|
|
142
|
-
title: string;
|
|
143
|
-
viewport: {
|
|
144
|
-
width: number;
|
|
145
|
-
height: number;
|
|
146
|
-
};
|
|
147
|
-
elements: {
|
|
148
|
-
index: number;
|
|
149
|
-
tag: string;
|
|
150
|
-
role: string | null;
|
|
151
|
-
text: string;
|
|
152
|
-
attributes: Record<string, string>;
|
|
153
|
-
bbox: {
|
|
154
|
-
x: number;
|
|
155
|
-
y: number;
|
|
156
|
-
width: number;
|
|
157
|
-
height: number;
|
|
158
|
-
};
|
|
159
|
-
}[];
|
|
160
|
-
screenshot_png_b64: string | null;
|
|
161
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
162
42
|
export type BrowserViewOutput = z.infer<typeof BrowserViewOutput>;
|
|
163
43
|
export declare const BrowserNavigateInput: z.ZodObject<{
|
|
164
44
|
url: z.ZodString;
|
|
165
|
-
wait_until: z.ZodOptional<z.ZodEnum<
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
wait_until?: "domcontentloaded" | "load" | "networkidle" | undefined;
|
|
172
|
-
}>;
|
|
45
|
+
wait_until: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
domcontentloaded: "domcontentloaded";
|
|
47
|
+
load: "load";
|
|
48
|
+
networkidle: "networkidle";
|
|
49
|
+
}>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
173
51
|
export type BrowserNavigateInput = z.infer<typeof BrowserNavigateInput>;
|
|
174
52
|
export declare const BrowserNavigateOutput: z.ZodObject<{
|
|
175
53
|
url: z.ZodString;
|
|
176
54
|
title: z.ZodString;
|
|
177
55
|
status: z.ZodNullable<z.ZodNumber>;
|
|
178
|
-
},
|
|
179
|
-
url: string;
|
|
180
|
-
title: string;
|
|
181
|
-
status: number | null;
|
|
182
|
-
}, {
|
|
183
|
-
url: string;
|
|
184
|
-
title: string;
|
|
185
|
-
status: number | null;
|
|
186
|
-
}>;
|
|
56
|
+
}, z.core.$strip>;
|
|
187
57
|
export type BrowserNavigateOutput = z.infer<typeof BrowserNavigateOutput>;
|
|
188
58
|
/**
|
|
189
59
|
* `transport` is how a caller switches between the headless Chrome this
|
|
@@ -191,271 +61,123 @@ export type BrowserNavigateOutput = z.infer<typeof BrowserNavigateOutput>;
|
|
|
191
61
|
* relay. It only takes effect on a restart: the session is a process
|
|
192
62
|
* singleton, so switching means tearing the current one down.
|
|
193
63
|
*/
|
|
194
|
-
export declare const BrowserTransport: z.ZodEnum<
|
|
64
|
+
export declare const BrowserTransport: z.ZodEnum<{
|
|
65
|
+
extension: "extension";
|
|
66
|
+
local: "local";
|
|
67
|
+
}>;
|
|
195
68
|
export type BrowserTransport = z.infer<typeof BrowserTransport>;
|
|
196
69
|
export declare const BrowserRestartInput: z.ZodObject<{
|
|
197
70
|
url: z.ZodOptional<z.ZodString>;
|
|
198
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
url?: string | undefined;
|
|
204
|
-
transport?: "extension" | "local" | undefined;
|
|
205
|
-
}>;
|
|
71
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
extension: "extension";
|
|
73
|
+
local: "local";
|
|
74
|
+
}>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
206
76
|
export type BrowserRestartInput = z.infer<typeof BrowserRestartInput>;
|
|
207
77
|
export declare const BrowserRestartOutput: z.ZodObject<{
|
|
208
78
|
url: z.ZodString;
|
|
209
|
-
transport: z.ZodEnum<
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
},
|
|
214
|
-
url: string;
|
|
215
|
-
transport: "extension" | "local";
|
|
216
|
-
}>;
|
|
79
|
+
transport: z.ZodEnum<{
|
|
80
|
+
extension: "extension";
|
|
81
|
+
local: "local";
|
|
82
|
+
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
217
84
|
export type BrowserRestartOutput = z.infer<typeof BrowserRestartOutput>;
|
|
218
85
|
/** What `browser_status` answers without opening a session. */
|
|
219
86
|
export declare const BrowserStatusOutput: z.ZodObject<{
|
|
220
|
-
transport: z.ZodEnum<
|
|
221
|
-
|
|
87
|
+
transport: z.ZodEnum<{
|
|
88
|
+
extension: "extension";
|
|
89
|
+
local: "local";
|
|
90
|
+
}>;
|
|
222
91
|
session_open: z.ZodBoolean;
|
|
223
|
-
/**
|
|
224
|
-
* Whether a native host is currently accepting connections.
|
|
225
|
-
* `null` on the local transport, where the question does not apply.
|
|
226
|
-
*/
|
|
227
92
|
extension_connected: z.ZodNullable<z.ZodBoolean>;
|
|
228
93
|
url: z.ZodNullable<z.ZodString>;
|
|
229
94
|
title: z.ZodNullable<z.ZodString>;
|
|
230
|
-
/** What to do next when the session cannot be driven as configured. */
|
|
231
95
|
hint: z.ZodNullable<z.ZodString>;
|
|
232
|
-
},
|
|
233
|
-
transport: "extension" | "local";
|
|
234
|
-
session_open: boolean;
|
|
235
|
-
extension_connected: boolean | null;
|
|
236
|
-
url: string | null;
|
|
237
|
-
title: string | null;
|
|
238
|
-
hint: string | null;
|
|
239
|
-
}, {
|
|
240
|
-
transport: "extension" | "local";
|
|
241
|
-
session_open: boolean;
|
|
242
|
-
extension_connected: boolean | null;
|
|
243
|
-
url: string | null;
|
|
244
|
-
title: string | null;
|
|
245
|
-
hint: string | null;
|
|
246
|
-
}>;
|
|
96
|
+
}, z.core.$strip>;
|
|
247
97
|
export type BrowserStatusOutput = z.infer<typeof BrowserStatusOutput>;
|
|
248
|
-
export declare const BrowserClickInput: z.
|
|
98
|
+
export declare const BrowserClickInput: z.ZodObject<{
|
|
249
99
|
index: z.ZodOptional<z.ZodNumber>;
|
|
250
100
|
coordinate_x: z.ZodOptional<z.ZodNumber>;
|
|
251
101
|
coordinate_y: z.ZodOptional<z.ZodNumber>;
|
|
252
|
-
},
|
|
253
|
-
index?: number | undefined;
|
|
254
|
-
coordinate_x?: number | undefined;
|
|
255
|
-
coordinate_y?: number | undefined;
|
|
256
|
-
}, {
|
|
257
|
-
index?: number | undefined;
|
|
258
|
-
coordinate_x?: number | undefined;
|
|
259
|
-
coordinate_y?: number | undefined;
|
|
260
|
-
}>, {
|
|
261
|
-
index?: number | undefined;
|
|
262
|
-
coordinate_x?: number | undefined;
|
|
263
|
-
coordinate_y?: number | undefined;
|
|
264
|
-
}, {
|
|
265
|
-
index?: number | undefined;
|
|
266
|
-
coordinate_x?: number | undefined;
|
|
267
|
-
coordinate_y?: number | undefined;
|
|
268
|
-
}>;
|
|
102
|
+
}, z.core.$strip>;
|
|
269
103
|
export type BrowserClickInput = z.infer<typeof BrowserClickInput>;
|
|
270
104
|
export declare const BrowserClickOutput: z.ZodObject<{
|
|
271
105
|
clicked: z.ZodLiteral<true>;
|
|
272
|
-
},
|
|
273
|
-
clicked: true;
|
|
274
|
-
}, {
|
|
275
|
-
clicked: true;
|
|
276
|
-
}>;
|
|
106
|
+
}, z.core.$strip>;
|
|
277
107
|
export type BrowserClickOutput = z.infer<typeof BrowserClickOutput>;
|
|
278
|
-
export declare const BrowserInputTextInput: z.
|
|
108
|
+
export declare const BrowserInputTextInput: z.ZodObject<{
|
|
279
109
|
text: z.ZodString;
|
|
280
110
|
press_enter: z.ZodOptional<z.ZodBoolean>;
|
|
281
111
|
index: z.ZodOptional<z.ZodNumber>;
|
|
282
112
|
coordinate_x: z.ZodOptional<z.ZodNumber>;
|
|
283
113
|
coordinate_y: z.ZodOptional<z.ZodNumber>;
|
|
284
|
-
},
|
|
285
|
-
text: string;
|
|
286
|
-
press_enter?: boolean | undefined;
|
|
287
|
-
index?: number | undefined;
|
|
288
|
-
coordinate_x?: number | undefined;
|
|
289
|
-
coordinate_y?: number | undefined;
|
|
290
|
-
}, {
|
|
291
|
-
text: string;
|
|
292
|
-
press_enter?: boolean | undefined;
|
|
293
|
-
index?: number | undefined;
|
|
294
|
-
coordinate_x?: number | undefined;
|
|
295
|
-
coordinate_y?: number | undefined;
|
|
296
|
-
}>, {
|
|
297
|
-
text: string;
|
|
298
|
-
press_enter?: boolean | undefined;
|
|
299
|
-
index?: number | undefined;
|
|
300
|
-
coordinate_x?: number | undefined;
|
|
301
|
-
coordinate_y?: number | undefined;
|
|
302
|
-
}, {
|
|
303
|
-
text: string;
|
|
304
|
-
press_enter?: boolean | undefined;
|
|
305
|
-
index?: number | undefined;
|
|
306
|
-
coordinate_x?: number | undefined;
|
|
307
|
-
coordinate_y?: number | undefined;
|
|
308
|
-
}>;
|
|
114
|
+
}, z.core.$strip>;
|
|
309
115
|
export type BrowserInputTextInput = z.infer<typeof BrowserInputTextInput>;
|
|
310
116
|
export declare const BrowserInputTextOutput: z.ZodObject<{
|
|
311
117
|
typed: z.ZodLiteral<true>;
|
|
312
|
-
},
|
|
313
|
-
typed: true;
|
|
314
|
-
}, {
|
|
315
|
-
typed: true;
|
|
316
|
-
}>;
|
|
118
|
+
}, z.core.$strip>;
|
|
317
119
|
export type BrowserInputTextOutput = z.infer<typeof BrowserInputTextOutput>;
|
|
318
120
|
export declare const BrowserMoveMouseInput: z.ZodObject<{
|
|
319
121
|
coordinate_x: z.ZodNumber;
|
|
320
122
|
coordinate_y: z.ZodNumber;
|
|
321
|
-
},
|
|
322
|
-
coordinate_x: number;
|
|
323
|
-
coordinate_y: number;
|
|
324
|
-
}, {
|
|
325
|
-
coordinate_x: number;
|
|
326
|
-
coordinate_y: number;
|
|
327
|
-
}>;
|
|
123
|
+
}, z.core.$strip>;
|
|
328
124
|
export type BrowserMoveMouseInput = z.infer<typeof BrowserMoveMouseInput>;
|
|
329
125
|
export declare const BrowserMoveMouseOutput: z.ZodObject<{
|
|
330
126
|
moved: z.ZodLiteral<true>;
|
|
331
|
-
},
|
|
332
|
-
moved: true;
|
|
333
|
-
}, {
|
|
334
|
-
moved: true;
|
|
335
|
-
}>;
|
|
127
|
+
}, z.core.$strip>;
|
|
336
128
|
export type BrowserMoveMouseOutput = z.infer<typeof BrowserMoveMouseOutput>;
|
|
337
129
|
export declare const BrowserPressKeyInput: z.ZodObject<{
|
|
338
130
|
key: z.ZodString;
|
|
339
|
-
},
|
|
340
|
-
key: string;
|
|
341
|
-
}, {
|
|
342
|
-
key: string;
|
|
343
|
-
}>;
|
|
131
|
+
}, z.core.$strip>;
|
|
344
132
|
export type BrowserPressKeyInput = z.infer<typeof BrowserPressKeyInput>;
|
|
345
133
|
export declare const BrowserPressKeyOutput: z.ZodObject<{
|
|
346
134
|
pressed: z.ZodLiteral<true>;
|
|
347
|
-
},
|
|
348
|
-
pressed: true;
|
|
349
|
-
}, {
|
|
350
|
-
pressed: true;
|
|
351
|
-
}>;
|
|
135
|
+
}, z.core.$strip>;
|
|
352
136
|
export type BrowserPressKeyOutput = z.infer<typeof BrowserPressKeyOutput>;
|
|
353
137
|
export declare const BrowserSelectOptionInput: z.ZodObject<{
|
|
354
138
|
index: z.ZodNumber;
|
|
355
139
|
option: z.ZodString;
|
|
356
|
-
},
|
|
357
|
-
index: number;
|
|
358
|
-
option: string;
|
|
359
|
-
}, {
|
|
360
|
-
index: number;
|
|
361
|
-
option: string;
|
|
362
|
-
}>;
|
|
140
|
+
}, z.core.$strip>;
|
|
363
141
|
export type BrowserSelectOptionInput = z.infer<typeof BrowserSelectOptionInput>;
|
|
364
142
|
export declare const BrowserSelectOptionOutput: z.ZodObject<{
|
|
365
|
-
selected: z.ZodArray<z.ZodString
|
|
366
|
-
},
|
|
367
|
-
selected: string[];
|
|
368
|
-
}, {
|
|
369
|
-
selected: string[];
|
|
370
|
-
}>;
|
|
143
|
+
selected: z.ZodArray<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>;
|
|
371
145
|
export type BrowserSelectOptionOutput = z.infer<typeof BrowserSelectOptionOutput>;
|
|
372
146
|
export declare const BrowserScrollInput: z.ZodObject<{
|
|
373
147
|
to_top: z.ZodOptional<z.ZodBoolean>;
|
|
374
148
|
to_bottom: z.ZodOptional<z.ZodBoolean>;
|
|
375
149
|
pixels: z.ZodOptional<z.ZodNumber>;
|
|
376
|
-
},
|
|
377
|
-
to_top?: boolean | undefined;
|
|
378
|
-
to_bottom?: boolean | undefined;
|
|
379
|
-
pixels?: number | undefined;
|
|
380
|
-
}, {
|
|
381
|
-
to_top?: boolean | undefined;
|
|
382
|
-
to_bottom?: boolean | undefined;
|
|
383
|
-
pixels?: number | undefined;
|
|
384
|
-
}>;
|
|
150
|
+
}, z.core.$strip>;
|
|
385
151
|
export type BrowserScrollInput = z.infer<typeof BrowserScrollInput>;
|
|
386
152
|
export declare const BrowserScrollOutput: z.ZodObject<{
|
|
387
153
|
scroll_y: z.ZodNumber;
|
|
388
|
-
},
|
|
389
|
-
scroll_y: number;
|
|
390
|
-
}, {
|
|
391
|
-
scroll_y: number;
|
|
392
|
-
}>;
|
|
154
|
+
}, z.core.$strip>;
|
|
393
155
|
export type BrowserScrollOutput = z.infer<typeof BrowserScrollOutput>;
|
|
394
156
|
export declare const BrowserConsoleExecInput: z.ZodObject<{
|
|
395
157
|
javascript: z.ZodString;
|
|
396
|
-
},
|
|
397
|
-
javascript: string;
|
|
398
|
-
}, {
|
|
399
|
-
javascript: string;
|
|
400
|
-
}>;
|
|
158
|
+
}, z.core.$strip>;
|
|
401
159
|
export type BrowserConsoleExecInput = z.infer<typeof BrowserConsoleExecInput>;
|
|
402
160
|
export declare const BrowserConsoleExecOutput: z.ZodObject<{
|
|
403
161
|
result_json: z.ZodString;
|
|
404
|
-
},
|
|
405
|
-
result_json: string;
|
|
406
|
-
}, {
|
|
407
|
-
result_json: string;
|
|
408
|
-
}>;
|
|
162
|
+
}, z.core.$strip>;
|
|
409
163
|
export type BrowserConsoleExecOutput = z.infer<typeof BrowserConsoleExecOutput>;
|
|
410
164
|
export declare const BrowserConsoleViewInput: z.ZodObject<{
|
|
411
165
|
max_lines: z.ZodOptional<z.ZodNumber>;
|
|
412
|
-
},
|
|
413
|
-
max_lines?: number | undefined;
|
|
414
|
-
}, {
|
|
415
|
-
max_lines?: number | undefined;
|
|
416
|
-
}>;
|
|
166
|
+
}, z.core.$strip>;
|
|
417
167
|
export type BrowserConsoleViewInput = z.infer<typeof BrowserConsoleViewInput>;
|
|
418
168
|
export declare const BrowserConsoleMessage: z.ZodObject<{
|
|
419
169
|
type: z.ZodString;
|
|
420
170
|
text: z.ZodString;
|
|
421
171
|
timestamp: z.ZodNumber;
|
|
422
|
-
},
|
|
423
|
-
type: string;
|
|
424
|
-
text: string;
|
|
425
|
-
timestamp: number;
|
|
426
|
-
}, {
|
|
427
|
-
type: string;
|
|
428
|
-
text: string;
|
|
429
|
-
timestamp: number;
|
|
430
|
-
}>;
|
|
172
|
+
}, z.core.$strip>;
|
|
431
173
|
export type BrowserConsoleMessage = z.infer<typeof BrowserConsoleMessage>;
|
|
432
174
|
export declare const BrowserConsoleViewOutput: z.ZodObject<{
|
|
433
175
|
messages: z.ZodArray<z.ZodObject<{
|
|
434
176
|
type: z.ZodString;
|
|
435
177
|
text: z.ZodString;
|
|
436
178
|
timestamp: z.ZodNumber;
|
|
437
|
-
},
|
|
438
|
-
|
|
439
|
-
text: string;
|
|
440
|
-
timestamp: number;
|
|
441
|
-
}, {
|
|
442
|
-
type: string;
|
|
443
|
-
text: string;
|
|
444
|
-
timestamp: number;
|
|
445
|
-
}>, "many">;
|
|
446
|
-
}, "strip", z.ZodTypeAny, {
|
|
447
|
-
messages: {
|
|
448
|
-
type: string;
|
|
449
|
-
text: string;
|
|
450
|
-
timestamp: number;
|
|
451
|
-
}[];
|
|
452
|
-
}, {
|
|
453
|
-
messages: {
|
|
454
|
-
type: string;
|
|
455
|
-
text: string;
|
|
456
|
-
timestamp: number;
|
|
457
|
-
}[];
|
|
458
|
-
}>;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
}, z.core.$strip>;
|
|
459
181
|
export type BrowserConsoleViewOutput = z.infer<typeof BrowserConsoleViewOutput>;
|
|
460
182
|
/**
|
|
461
183
|
* Capture generated media (image/video/audio) from the current page into bytes.
|
|
@@ -471,32 +193,16 @@ export type BrowserConsoleViewOutput = z.infer<typeof BrowserConsoleViewOutput>;
|
|
|
471
193
|
* is an optional hint ("image" | "video" | "audio") that biases element
|
|
472
194
|
* resolution and the inferred MIME when the source doesn't declare one.
|
|
473
195
|
*/
|
|
474
|
-
export declare const BrowserCaptureMediaInput: z.
|
|
196
|
+
export declare const BrowserCaptureMediaInput: z.ZodObject<{
|
|
475
197
|
index: z.ZodOptional<z.ZodNumber>;
|
|
476
198
|
url: z.ZodOptional<z.ZodString>;
|
|
477
199
|
resource_url: z.ZodOptional<z.ZodString>;
|
|
478
|
-
media_type: z.ZodOptional<z.ZodEnum<
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
}, {
|
|
485
|
-
index?: number | undefined;
|
|
486
|
-
url?: string | undefined;
|
|
487
|
-
resource_url?: string | undefined;
|
|
488
|
-
media_type?: "audio" | "image" | "video" | undefined;
|
|
489
|
-
}>, {
|
|
490
|
-
index?: number | undefined;
|
|
491
|
-
url?: string | undefined;
|
|
492
|
-
resource_url?: string | undefined;
|
|
493
|
-
media_type?: "audio" | "image" | "video" | undefined;
|
|
494
|
-
}, {
|
|
495
|
-
index?: number | undefined;
|
|
496
|
-
url?: string | undefined;
|
|
497
|
-
resource_url?: string | undefined;
|
|
498
|
-
media_type?: "audio" | "image" | "video" | undefined;
|
|
499
|
-
}>;
|
|
200
|
+
media_type: z.ZodOptional<z.ZodEnum<{
|
|
201
|
+
audio: "audio";
|
|
202
|
+
image: "image";
|
|
203
|
+
video: "video";
|
|
204
|
+
}>>;
|
|
205
|
+
}, z.core.$strip>;
|
|
500
206
|
export type BrowserCaptureMediaInput = z.infer<typeof BrowserCaptureMediaInput>;
|
|
501
207
|
/**
|
|
502
208
|
* Raw capture result from the action. Carries the bytes as base64 plus the
|
|
@@ -505,25 +211,15 @@ export type BrowserCaptureMediaInput = z.infer<typeof BrowserCaptureMediaInput>;
|
|
|
505
211
|
* shape with a {@link BrowserCaptureMediaOutput} AssetRef.
|
|
506
212
|
*/
|
|
507
213
|
export declare const BrowserCaptureMediaRaw: z.ZodObject<{
|
|
508
|
-
/** Base64-encoded media bytes. */
|
|
509
214
|
media_b64: z.ZodString;
|
|
510
|
-
/** Resolved MIME type of the captured bytes. */
|
|
511
215
|
mime_type: z.ZodString;
|
|
512
|
-
/** The URL the bytes were read from (`blob:`/`http(s):`/element currentSrc). */
|
|
513
216
|
source_url: z.ZodNullable<z.ZodString>;
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
via: "downloads" | "in_page_fetch" | "response_body";
|
|
521
|
-
}, {
|
|
522
|
-
media_b64: string;
|
|
523
|
-
mime_type: string;
|
|
524
|
-
source_url: string | null;
|
|
525
|
-
via: "downloads" | "in_page_fetch" | "response_body";
|
|
526
|
-
}>;
|
|
217
|
+
via: z.ZodEnum<{
|
|
218
|
+
downloads: "downloads";
|
|
219
|
+
in_page_fetch: "in_page_fetch";
|
|
220
|
+
response_body: "response_body";
|
|
221
|
+
}>;
|
|
222
|
+
}, z.core.$strip>;
|
|
527
223
|
export type BrowserCaptureMediaRaw = z.infer<typeof BrowserCaptureMediaRaw>;
|
|
528
224
|
/**
|
|
529
225
|
* AssetRef-shaped capture output returned to the agent. Mirrors the `screenshot`
|
|
@@ -531,7 +227,11 @@ export type BrowserCaptureMediaRaw = z.infer<typeof BrowserCaptureMediaRaw>;
|
|
|
531
227
|
* (when the context exposes `createAsset`) or a workspace file `path`.
|
|
532
228
|
*/
|
|
533
229
|
export declare const BrowserCaptureMediaOutput: z.ZodObject<{
|
|
534
|
-
type: z.ZodEnum<
|
|
230
|
+
type: z.ZodEnum<{
|
|
231
|
+
audio: "audio";
|
|
232
|
+
image: "image";
|
|
233
|
+
video: "video";
|
|
234
|
+
}>;
|
|
535
235
|
asset_id: z.ZodOptional<z.ZodString>;
|
|
536
236
|
asset_uri: z.ZodOptional<z.ZodString>;
|
|
537
237
|
uri: z.ZodNullable<z.ZodString>;
|
|
@@ -539,25 +239,7 @@ export declare const BrowserCaptureMediaOutput: z.ZodObject<{
|
|
|
539
239
|
mime_type: z.ZodString;
|
|
540
240
|
bytes: z.ZodNumber;
|
|
541
241
|
source_url: z.ZodNullable<z.ZodString>;
|
|
542
|
-
},
|
|
543
|
-
type: "audio" | "image" | "video";
|
|
544
|
-
asset_id?: string | undefined;
|
|
545
|
-
asset_uri?: string | undefined;
|
|
546
|
-
uri: string | null;
|
|
547
|
-
path?: string | undefined;
|
|
548
|
-
mime_type: string;
|
|
549
|
-
bytes: number;
|
|
550
|
-
source_url: string | null;
|
|
551
|
-
}, {
|
|
552
|
-
type: "audio" | "image" | "video";
|
|
553
|
-
asset_id?: string | undefined;
|
|
554
|
-
asset_uri?: string | undefined;
|
|
555
|
-
uri: string | null;
|
|
556
|
-
path?: string | undefined;
|
|
557
|
-
mime_type: string;
|
|
558
|
-
bytes: number;
|
|
559
|
-
source_url: string | null;
|
|
560
|
-
}>;
|
|
242
|
+
}, z.core.$strip>;
|
|
561
243
|
export type BrowserCaptureMediaOutput = z.infer<typeof BrowserCaptureMediaOutput>;
|
|
562
244
|
/**
|
|
563
245
|
* Inject an existing NodeTool asset into a page `<input type="file">`.
|
|
@@ -573,56 +255,14 @@ export type BrowserCaptureMediaOutput = z.infer<typeof BrowserCaptureMediaOutput
|
|
|
573
255
|
* asset_id / uri, and at least one of index / (coordinate_x, coordinate_y),
|
|
574
256
|
* must be provided.
|
|
575
257
|
*/
|
|
576
|
-
export declare const BrowserUploadAssetInput: z.
|
|
258
|
+
export declare const BrowserUploadAssetInput: z.ZodObject<{
|
|
577
259
|
index: z.ZodOptional<z.ZodNumber>;
|
|
578
260
|
coordinate_x: z.ZodOptional<z.ZodNumber>;
|
|
579
261
|
coordinate_y: z.ZodOptional<z.ZodNumber>;
|
|
580
262
|
asset_id: z.ZodOptional<z.ZodString>;
|
|
581
263
|
uri: z.ZodOptional<z.ZodString>;
|
|
582
264
|
file_name: z.ZodOptional<z.ZodString>;
|
|
583
|
-
},
|
|
584
|
-
index?: number | undefined;
|
|
585
|
-
coordinate_x?: number | undefined;
|
|
586
|
-
coordinate_y?: number | undefined;
|
|
587
|
-
asset_id?: string | undefined;
|
|
588
|
-
uri?: string | undefined;
|
|
589
|
-
file_name?: string | undefined;
|
|
590
|
-
}, {
|
|
591
|
-
index?: number | undefined;
|
|
592
|
-
coordinate_x?: number | undefined;
|
|
593
|
-
coordinate_y?: number | undefined;
|
|
594
|
-
asset_id?: string | undefined;
|
|
595
|
-
uri?: string | undefined;
|
|
596
|
-
file_name?: string | undefined;
|
|
597
|
-
}>, {
|
|
598
|
-
index?: number | undefined;
|
|
599
|
-
coordinate_x?: number | undefined;
|
|
600
|
-
coordinate_y?: number | undefined;
|
|
601
|
-
asset_id?: string | undefined;
|
|
602
|
-
uri?: string | undefined;
|
|
603
|
-
file_name?: string | undefined;
|
|
604
|
-
}, {
|
|
605
|
-
index?: number | undefined;
|
|
606
|
-
coordinate_x?: number | undefined;
|
|
607
|
-
coordinate_y?: number | undefined;
|
|
608
|
-
asset_id?: string | undefined;
|
|
609
|
-
uri?: string | undefined;
|
|
610
|
-
file_name?: string | undefined;
|
|
611
|
-
}>, {
|
|
612
|
-
index?: number | undefined;
|
|
613
|
-
coordinate_x?: number | undefined;
|
|
614
|
-
coordinate_y?: number | undefined;
|
|
615
|
-
asset_id?: string | undefined;
|
|
616
|
-
uri?: string | undefined;
|
|
617
|
-
file_name?: string | undefined;
|
|
618
|
-
}, {
|
|
619
|
-
index?: number | undefined;
|
|
620
|
-
coordinate_x?: number | undefined;
|
|
621
|
-
coordinate_y?: number | undefined;
|
|
622
|
-
asset_id?: string | undefined;
|
|
623
|
-
uri?: string | undefined;
|
|
624
|
-
file_name?: string | undefined;
|
|
625
|
-
}>;
|
|
265
|
+
}, z.core.$strip>;
|
|
626
266
|
export type BrowserUploadAssetInput = z.infer<typeof BrowserUploadAssetInput>;
|
|
627
267
|
/**
|
|
628
268
|
* The wire input the upload_asset action actually consumes: the file input's
|
|
@@ -630,45 +270,14 @@ export type BrowserUploadAssetInput = z.infer<typeof BrowserUploadAssetInput>;
|
|
|
630
270
|
* name the website should see, and the MIME type. The host tool wrapper builds
|
|
631
271
|
* this from a {@link BrowserUploadAssetInput} after reading the asset.
|
|
632
272
|
*/
|
|
633
|
-
export declare const BrowserUploadAssetRaw: z.
|
|
273
|
+
export declare const BrowserUploadAssetRaw: z.ZodObject<{
|
|
634
274
|
index: z.ZodOptional<z.ZodNumber>;
|
|
635
275
|
coordinate_x: z.ZodOptional<z.ZodNumber>;
|
|
636
276
|
coordinate_y: z.ZodOptional<z.ZodNumber>;
|
|
637
|
-
/** Base64-encoded file bytes. */
|
|
638
277
|
file_b64: z.ZodString;
|
|
639
|
-
/** File name the website sees on the injected File. */
|
|
640
278
|
file_name: z.ZodString;
|
|
641
|
-
/** MIME type stamped on the injected File. */
|
|
642
279
|
mime_type: z.ZodString;
|
|
643
|
-
},
|
|
644
|
-
index?: number | undefined;
|
|
645
|
-
coordinate_x?: number | undefined;
|
|
646
|
-
coordinate_y?: number | undefined;
|
|
647
|
-
file_b64: string;
|
|
648
|
-
file_name: string;
|
|
649
|
-
mime_type: string;
|
|
650
|
-
}, {
|
|
651
|
-
index?: number | undefined;
|
|
652
|
-
coordinate_x?: number | undefined;
|
|
653
|
-
coordinate_y?: number | undefined;
|
|
654
|
-
file_b64: string;
|
|
655
|
-
file_name: string;
|
|
656
|
-
mime_type: string;
|
|
657
|
-
}>, {
|
|
658
|
-
index?: number | undefined;
|
|
659
|
-
coordinate_x?: number | undefined;
|
|
660
|
-
coordinate_y?: number | undefined;
|
|
661
|
-
file_b64: string;
|
|
662
|
-
file_name: string;
|
|
663
|
-
mime_type: string;
|
|
664
|
-
}, {
|
|
665
|
-
index?: number | undefined;
|
|
666
|
-
coordinate_x?: number | undefined;
|
|
667
|
-
coordinate_y?: number | undefined;
|
|
668
|
-
file_b64: string;
|
|
669
|
-
file_name: string;
|
|
670
|
-
mime_type: string;
|
|
671
|
-
}>;
|
|
280
|
+
}, z.core.$strip>;
|
|
672
281
|
export type BrowserUploadAssetRaw = z.infer<typeof BrowserUploadAssetRaw>;
|
|
673
282
|
/**
|
|
674
283
|
* Result of injecting an asset into a file input. `via` records which path
|
|
@@ -681,17 +290,10 @@ export declare const BrowserUploadAssetOutput: z.ZodObject<{
|
|
|
681
290
|
uploaded: z.ZodLiteral<true>;
|
|
682
291
|
file_name: z.ZodString;
|
|
683
292
|
bytes: z.ZodNumber;
|
|
684
|
-
via: z.ZodEnum<
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
via: "data_transfer" | "native";
|
|
690
|
-
}, {
|
|
691
|
-
uploaded: true;
|
|
692
|
-
file_name: string;
|
|
693
|
-
bytes: number;
|
|
694
|
-
via: "data_transfer" | "native";
|
|
695
|
-
}>;
|
|
293
|
+
via: z.ZodEnum<{
|
|
294
|
+
data_transfer: "data_transfer";
|
|
295
|
+
native: "native";
|
|
296
|
+
}>;
|
|
297
|
+
}, z.core.$strip>;
|
|
696
298
|
export type BrowserUploadAssetOutput = z.infer<typeof BrowserUploadAssetOutput>;
|
|
697
299
|
//# sourceMappingURL=schemas.d.ts.map
|