@onkernel/sdk 0.14.1 → 0.15.0
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/CHANGELOG.md +17 -0
- package/README.md +5 -17
- package/internal/uploads.js +20 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +20 -1
- package/internal/uploads.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browsers/browsers.d.mts +21 -0
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +21 -0
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +4 -0
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs +4 -0
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/computer.d.mts +232 -0
- package/resources/browsers/computer.d.mts.map +1 -0
- package/resources/browsers/computer.d.ts +232 -0
- package/resources/browsers/computer.d.ts.map +1 -0
- package/resources/browsers/computer.js +136 -0
- package/resources/browsers/computer.js.map +1 -0
- package/resources/browsers/computer.mjs +132 -0
- package/resources/browsers/computer.mjs.map +1 -0
- package/resources/browsers/index.d.mts +1 -0
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -0
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js +3 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs +1 -0
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/deployments.d.mts +58 -5
- package/resources/deployments.d.mts.map +1 -1
- package/resources/deployments.d.ts +58 -5
- package/resources/deployments.d.ts.map +1 -1
- package/resources/deployments.js +3 -0
- package/resources/deployments.js.map +1 -1
- package/resources/deployments.mjs +3 -0
- package/resources/deployments.mjs.map +1 -1
- package/src/internal/uploads.ts +21 -3
- package/src/resources/browsers/browsers.ts +45 -0
- package/src/resources/browsers/computer.ts +328 -0
- package/src/resources/browsers/index.ts +10 -0
- package/src/resources/deployments.ts +68 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Computer extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Capture a screenshot of the browser instance
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.browsers.computer.captureScreenshot('id');
|
|
12
|
+
*
|
|
13
|
+
* const content = await response.blob();
|
|
14
|
+
* console.log(content);
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
captureScreenshot(id: string, body?: ComputerCaptureScreenshotParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
18
|
+
/**
|
|
19
|
+
* Simulate a mouse click action on the browser instance
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* await client.browsers.computer.clickMouse('id', {
|
|
24
|
+
* x: 0,
|
|
25
|
+
* y: 0,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
clickMouse(id: string, body: ComputerClickMouseParams, options?: RequestOptions): APIPromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Drag the mouse along a path
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* await client.browsers.computer.dragMouse('id', {
|
|
36
|
+
* path: [
|
|
37
|
+
* [0, 0],
|
|
38
|
+
* [0, 0],
|
|
39
|
+
* ],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
dragMouse(id: string, body: ComputerDragMouseParams, options?: RequestOptions): APIPromise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Move the mouse cursor to the specified coordinates on the browser instance
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* await client.browsers.computer.moveMouse('id', {
|
|
50
|
+
* x: 0,
|
|
51
|
+
* y: 0,
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
moveMouse(id: string, body: ComputerMoveMouseParams, options?: RequestOptions): APIPromise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Press one or more keys on the host computer
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* await client.browsers.computer.pressKey('id', {
|
|
62
|
+
* keys: ['string'],
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
pressKey(id: string, body: ComputerPressKeyParams, options?: RequestOptions): APIPromise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Scroll the mouse wheel at a position on the host computer
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* await client.browsers.computer.scroll('id', { x: 0, y: 0 });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
scroll(id: string, body: ComputerScrollParams, options?: RequestOptions): APIPromise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Type text on the browser instance
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* await client.browsers.computer.typeText('id', {
|
|
82
|
+
* text: 'text',
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
typeText(id: string, body: ComputerTypeTextParams, options?: RequestOptions): APIPromise<void>;
|
|
87
|
+
}
|
|
88
|
+
export interface ComputerCaptureScreenshotParams {
|
|
89
|
+
region?: ComputerCaptureScreenshotParams.Region;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace ComputerCaptureScreenshotParams {
|
|
92
|
+
interface Region {
|
|
93
|
+
/**
|
|
94
|
+
* Height of the region in pixels
|
|
95
|
+
*/
|
|
96
|
+
height: number;
|
|
97
|
+
/**
|
|
98
|
+
* Width of the region in pixels
|
|
99
|
+
*/
|
|
100
|
+
width: number;
|
|
101
|
+
/**
|
|
102
|
+
* X coordinate of the region's top-left corner
|
|
103
|
+
*/
|
|
104
|
+
x: number;
|
|
105
|
+
/**
|
|
106
|
+
* Y coordinate of the region's top-left corner
|
|
107
|
+
*/
|
|
108
|
+
y: number;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
export interface ComputerClickMouseParams {
|
|
112
|
+
/**
|
|
113
|
+
* X coordinate of the click position
|
|
114
|
+
*/
|
|
115
|
+
x: number;
|
|
116
|
+
/**
|
|
117
|
+
* Y coordinate of the click position
|
|
118
|
+
*/
|
|
119
|
+
y: number;
|
|
120
|
+
/**
|
|
121
|
+
* Mouse button to interact with
|
|
122
|
+
*/
|
|
123
|
+
button?: 'left' | 'right' | 'middle' | 'back' | 'forward';
|
|
124
|
+
/**
|
|
125
|
+
* Type of click action
|
|
126
|
+
*/
|
|
127
|
+
click_type?: 'down' | 'up' | 'click';
|
|
128
|
+
/**
|
|
129
|
+
* Modifier keys to hold during the click
|
|
130
|
+
*/
|
|
131
|
+
hold_keys?: Array<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Number of times to repeat the click
|
|
134
|
+
*/
|
|
135
|
+
num_clicks?: number;
|
|
136
|
+
}
|
|
137
|
+
export interface ComputerDragMouseParams {
|
|
138
|
+
/**
|
|
139
|
+
* Ordered list of [x, y] coordinate pairs to move through while dragging. Must
|
|
140
|
+
* contain at least 2 points.
|
|
141
|
+
*/
|
|
142
|
+
path: Array<Array<number>>;
|
|
143
|
+
/**
|
|
144
|
+
* Mouse button to drag with
|
|
145
|
+
*/
|
|
146
|
+
button?: 'left' | 'middle' | 'right';
|
|
147
|
+
/**
|
|
148
|
+
* Delay in milliseconds between button down and starting to move along the path.
|
|
149
|
+
*/
|
|
150
|
+
delay?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Modifier keys to hold during the drag
|
|
153
|
+
*/
|
|
154
|
+
hold_keys?: Array<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Delay in milliseconds between relative steps while dragging (not the initial
|
|
157
|
+
* delay).
|
|
158
|
+
*/
|
|
159
|
+
step_delay_ms?: number;
|
|
160
|
+
/**
|
|
161
|
+
* Number of relative move steps per segment in the path. Minimum 1.
|
|
162
|
+
*/
|
|
163
|
+
steps_per_segment?: number;
|
|
164
|
+
}
|
|
165
|
+
export interface ComputerMoveMouseParams {
|
|
166
|
+
/**
|
|
167
|
+
* X coordinate to move the cursor to
|
|
168
|
+
*/
|
|
169
|
+
x: number;
|
|
170
|
+
/**
|
|
171
|
+
* Y coordinate to move the cursor to
|
|
172
|
+
*/
|
|
173
|
+
y: number;
|
|
174
|
+
/**
|
|
175
|
+
* Modifier keys to hold during the move
|
|
176
|
+
*/
|
|
177
|
+
hold_keys?: Array<string>;
|
|
178
|
+
}
|
|
179
|
+
export interface ComputerPressKeyParams {
|
|
180
|
+
/**
|
|
181
|
+
* List of key symbols to press. Each item should be a key symbol supported by
|
|
182
|
+
* xdotool (see X11 keysym definitions). Examples include "Return", "Shift",
|
|
183
|
+
* "Ctrl", "Alt", "F5". Items in this list could also be combinations, e.g.
|
|
184
|
+
* "Ctrl+t" or "Ctrl+Shift+Tab".
|
|
185
|
+
*/
|
|
186
|
+
keys: Array<string>;
|
|
187
|
+
/**
|
|
188
|
+
* Duration to hold the keys down in milliseconds. If omitted or 0, keys are
|
|
189
|
+
* tapped.
|
|
190
|
+
*/
|
|
191
|
+
duration?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Optional modifier keys to hold during the key press sequence.
|
|
194
|
+
*/
|
|
195
|
+
hold_keys?: Array<string>;
|
|
196
|
+
}
|
|
197
|
+
export interface ComputerScrollParams {
|
|
198
|
+
/**
|
|
199
|
+
* X coordinate at which to perform the scroll
|
|
200
|
+
*/
|
|
201
|
+
x: number;
|
|
202
|
+
/**
|
|
203
|
+
* Y coordinate at which to perform the scroll
|
|
204
|
+
*/
|
|
205
|
+
y: number;
|
|
206
|
+
/**
|
|
207
|
+
* Horizontal scroll amount. Positive scrolls right, negative scrolls left.
|
|
208
|
+
*/
|
|
209
|
+
delta_x?: number;
|
|
210
|
+
/**
|
|
211
|
+
* Vertical scroll amount. Positive scrolls down, negative scrolls up.
|
|
212
|
+
*/
|
|
213
|
+
delta_y?: number;
|
|
214
|
+
/**
|
|
215
|
+
* Modifier keys to hold during the scroll
|
|
216
|
+
*/
|
|
217
|
+
hold_keys?: Array<string>;
|
|
218
|
+
}
|
|
219
|
+
export interface ComputerTypeTextParams {
|
|
220
|
+
/**
|
|
221
|
+
* Text to type on the browser instance
|
|
222
|
+
*/
|
|
223
|
+
text: string;
|
|
224
|
+
/**
|
|
225
|
+
* Delay in milliseconds between keystrokes
|
|
226
|
+
*/
|
|
227
|
+
delay?: number;
|
|
228
|
+
}
|
|
229
|
+
export declare namespace Computer {
|
|
230
|
+
export { type ComputerCaptureScreenshotParams as ComputerCaptureScreenshotParams, type ComputerClickMouseParams as ComputerClickMouseParams, type ComputerDragMouseParams as ComputerDragMouseParams, type ComputerMoveMouseParams as ComputerMoveMouseParams, type ComputerPressKeyParams as ComputerPressKeyParams, type ComputerScrollParams as ComputerScrollParams, type ComputerTypeTextParams as ComputerTypeTextParams, };
|
|
231
|
+
}
|
|
232
|
+
//# sourceMappingURL=computer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computer.d.mts","sourceRoot":"","sources":["../../src/resources/browsers/computer.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,iBAAiB,CACf,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,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AAoB;IACnC;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Computer extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Capture a screenshot of the browser instance
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.browsers.computer.captureScreenshot('id');
|
|
12
|
+
*
|
|
13
|
+
* const content = await response.blob();
|
|
14
|
+
* console.log(content);
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
captureScreenshot(id: string, body?: ComputerCaptureScreenshotParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
18
|
+
/**
|
|
19
|
+
* Simulate a mouse click action on the browser instance
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* await client.browsers.computer.clickMouse('id', {
|
|
24
|
+
* x: 0,
|
|
25
|
+
* y: 0,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
clickMouse(id: string, body: ComputerClickMouseParams, options?: RequestOptions): APIPromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Drag the mouse along a path
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* await client.browsers.computer.dragMouse('id', {
|
|
36
|
+
* path: [
|
|
37
|
+
* [0, 0],
|
|
38
|
+
* [0, 0],
|
|
39
|
+
* ],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
dragMouse(id: string, body: ComputerDragMouseParams, options?: RequestOptions): APIPromise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Move the mouse cursor to the specified coordinates on the browser instance
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* await client.browsers.computer.moveMouse('id', {
|
|
50
|
+
* x: 0,
|
|
51
|
+
* y: 0,
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
moveMouse(id: string, body: ComputerMoveMouseParams, options?: RequestOptions): APIPromise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Press one or more keys on the host computer
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* await client.browsers.computer.pressKey('id', {
|
|
62
|
+
* keys: ['string'],
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
pressKey(id: string, body: ComputerPressKeyParams, options?: RequestOptions): APIPromise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Scroll the mouse wheel at a position on the host computer
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* await client.browsers.computer.scroll('id', { x: 0, y: 0 });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
scroll(id: string, body: ComputerScrollParams, options?: RequestOptions): APIPromise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Type text on the browser instance
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* await client.browsers.computer.typeText('id', {
|
|
82
|
+
* text: 'text',
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
typeText(id: string, body: ComputerTypeTextParams, options?: RequestOptions): APIPromise<void>;
|
|
87
|
+
}
|
|
88
|
+
export interface ComputerCaptureScreenshotParams {
|
|
89
|
+
region?: ComputerCaptureScreenshotParams.Region;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace ComputerCaptureScreenshotParams {
|
|
92
|
+
interface Region {
|
|
93
|
+
/**
|
|
94
|
+
* Height of the region in pixels
|
|
95
|
+
*/
|
|
96
|
+
height: number;
|
|
97
|
+
/**
|
|
98
|
+
* Width of the region in pixels
|
|
99
|
+
*/
|
|
100
|
+
width: number;
|
|
101
|
+
/**
|
|
102
|
+
* X coordinate of the region's top-left corner
|
|
103
|
+
*/
|
|
104
|
+
x: number;
|
|
105
|
+
/**
|
|
106
|
+
* Y coordinate of the region's top-left corner
|
|
107
|
+
*/
|
|
108
|
+
y: number;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
export interface ComputerClickMouseParams {
|
|
112
|
+
/**
|
|
113
|
+
* X coordinate of the click position
|
|
114
|
+
*/
|
|
115
|
+
x: number;
|
|
116
|
+
/**
|
|
117
|
+
* Y coordinate of the click position
|
|
118
|
+
*/
|
|
119
|
+
y: number;
|
|
120
|
+
/**
|
|
121
|
+
* Mouse button to interact with
|
|
122
|
+
*/
|
|
123
|
+
button?: 'left' | 'right' | 'middle' | 'back' | 'forward';
|
|
124
|
+
/**
|
|
125
|
+
* Type of click action
|
|
126
|
+
*/
|
|
127
|
+
click_type?: 'down' | 'up' | 'click';
|
|
128
|
+
/**
|
|
129
|
+
* Modifier keys to hold during the click
|
|
130
|
+
*/
|
|
131
|
+
hold_keys?: Array<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Number of times to repeat the click
|
|
134
|
+
*/
|
|
135
|
+
num_clicks?: number;
|
|
136
|
+
}
|
|
137
|
+
export interface ComputerDragMouseParams {
|
|
138
|
+
/**
|
|
139
|
+
* Ordered list of [x, y] coordinate pairs to move through while dragging. Must
|
|
140
|
+
* contain at least 2 points.
|
|
141
|
+
*/
|
|
142
|
+
path: Array<Array<number>>;
|
|
143
|
+
/**
|
|
144
|
+
* Mouse button to drag with
|
|
145
|
+
*/
|
|
146
|
+
button?: 'left' | 'middle' | 'right';
|
|
147
|
+
/**
|
|
148
|
+
* Delay in milliseconds between button down and starting to move along the path.
|
|
149
|
+
*/
|
|
150
|
+
delay?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Modifier keys to hold during the drag
|
|
153
|
+
*/
|
|
154
|
+
hold_keys?: Array<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Delay in milliseconds between relative steps while dragging (not the initial
|
|
157
|
+
* delay).
|
|
158
|
+
*/
|
|
159
|
+
step_delay_ms?: number;
|
|
160
|
+
/**
|
|
161
|
+
* Number of relative move steps per segment in the path. Minimum 1.
|
|
162
|
+
*/
|
|
163
|
+
steps_per_segment?: number;
|
|
164
|
+
}
|
|
165
|
+
export interface ComputerMoveMouseParams {
|
|
166
|
+
/**
|
|
167
|
+
* X coordinate to move the cursor to
|
|
168
|
+
*/
|
|
169
|
+
x: number;
|
|
170
|
+
/**
|
|
171
|
+
* Y coordinate to move the cursor to
|
|
172
|
+
*/
|
|
173
|
+
y: number;
|
|
174
|
+
/**
|
|
175
|
+
* Modifier keys to hold during the move
|
|
176
|
+
*/
|
|
177
|
+
hold_keys?: Array<string>;
|
|
178
|
+
}
|
|
179
|
+
export interface ComputerPressKeyParams {
|
|
180
|
+
/**
|
|
181
|
+
* List of key symbols to press. Each item should be a key symbol supported by
|
|
182
|
+
* xdotool (see X11 keysym definitions). Examples include "Return", "Shift",
|
|
183
|
+
* "Ctrl", "Alt", "F5". Items in this list could also be combinations, e.g.
|
|
184
|
+
* "Ctrl+t" or "Ctrl+Shift+Tab".
|
|
185
|
+
*/
|
|
186
|
+
keys: Array<string>;
|
|
187
|
+
/**
|
|
188
|
+
* Duration to hold the keys down in milliseconds. If omitted or 0, keys are
|
|
189
|
+
* tapped.
|
|
190
|
+
*/
|
|
191
|
+
duration?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Optional modifier keys to hold during the key press sequence.
|
|
194
|
+
*/
|
|
195
|
+
hold_keys?: Array<string>;
|
|
196
|
+
}
|
|
197
|
+
export interface ComputerScrollParams {
|
|
198
|
+
/**
|
|
199
|
+
* X coordinate at which to perform the scroll
|
|
200
|
+
*/
|
|
201
|
+
x: number;
|
|
202
|
+
/**
|
|
203
|
+
* Y coordinate at which to perform the scroll
|
|
204
|
+
*/
|
|
205
|
+
y: number;
|
|
206
|
+
/**
|
|
207
|
+
* Horizontal scroll amount. Positive scrolls right, negative scrolls left.
|
|
208
|
+
*/
|
|
209
|
+
delta_x?: number;
|
|
210
|
+
/**
|
|
211
|
+
* Vertical scroll amount. Positive scrolls down, negative scrolls up.
|
|
212
|
+
*/
|
|
213
|
+
delta_y?: number;
|
|
214
|
+
/**
|
|
215
|
+
* Modifier keys to hold during the scroll
|
|
216
|
+
*/
|
|
217
|
+
hold_keys?: Array<string>;
|
|
218
|
+
}
|
|
219
|
+
export interface ComputerTypeTextParams {
|
|
220
|
+
/**
|
|
221
|
+
* Text to type on the browser instance
|
|
222
|
+
*/
|
|
223
|
+
text: string;
|
|
224
|
+
/**
|
|
225
|
+
* Delay in milliseconds between keystrokes
|
|
226
|
+
*/
|
|
227
|
+
delay?: number;
|
|
228
|
+
}
|
|
229
|
+
export declare namespace Computer {
|
|
230
|
+
export { type ComputerCaptureScreenshotParams as ComputerCaptureScreenshotParams, type ComputerClickMouseParams as ComputerClickMouseParams, type ComputerDragMouseParams as ComputerDragMouseParams, type ComputerMoveMouseParams as ComputerMoveMouseParams, type ComputerPressKeyParams as ComputerPressKeyParams, type ComputerScrollParams as ComputerScrollParams, type ComputerTypeTextParams as ComputerTypeTextParams, };
|
|
231
|
+
}
|
|
232
|
+
//# sourceMappingURL=computer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computer.d.ts","sourceRoot":"","sources":["../../src/resources/browsers/computer.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,iBAAiB,CACf,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,QAAQ,CAAC;IASvB;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQlG;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQhG;;;;;;;;;;OAUG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQhG;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,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IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Computer = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Computer extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Capture a screenshot of the browser instance
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response =
|
|
15
|
+
* await client.browsers.computer.captureScreenshot('id');
|
|
16
|
+
*
|
|
17
|
+
* const content = await response.blob();
|
|
18
|
+
* console.log(content);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
captureScreenshot(id, body = {}, options) {
|
|
22
|
+
return this._client.post((0, path_1.path) `/browsers/${id}/computer/screenshot`, {
|
|
23
|
+
body,
|
|
24
|
+
...options,
|
|
25
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'image/png' }, options?.headers]),
|
|
26
|
+
__binaryResponse: true,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Simulate a mouse click action on the browser instance
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* await client.browsers.computer.clickMouse('id', {
|
|
35
|
+
* x: 0,
|
|
36
|
+
* y: 0,
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
clickMouse(id, body, options) {
|
|
41
|
+
return this._client.post((0, path_1.path) `/browsers/${id}/computer/click_mouse`, {
|
|
42
|
+
body,
|
|
43
|
+
...options,
|
|
44
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Drag the mouse along a path
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* await client.browsers.computer.dragMouse('id', {
|
|
53
|
+
* path: [
|
|
54
|
+
* [0, 0],
|
|
55
|
+
* [0, 0],
|
|
56
|
+
* ],
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
dragMouse(id, body, options) {
|
|
61
|
+
return this._client.post((0, path_1.path) `/browsers/${id}/computer/drag_mouse`, {
|
|
62
|
+
body,
|
|
63
|
+
...options,
|
|
64
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Move the mouse cursor to the specified coordinates on the browser instance
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* await client.browsers.computer.moveMouse('id', {
|
|
73
|
+
* x: 0,
|
|
74
|
+
* y: 0,
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
moveMouse(id, body, options) {
|
|
79
|
+
return this._client.post((0, path_1.path) `/browsers/${id}/computer/move_mouse`, {
|
|
80
|
+
body,
|
|
81
|
+
...options,
|
|
82
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Press one or more keys on the host computer
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* await client.browsers.computer.pressKey('id', {
|
|
91
|
+
* keys: ['string'],
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
pressKey(id, body, options) {
|
|
96
|
+
return this._client.post((0, path_1.path) `/browsers/${id}/computer/press_key`, {
|
|
97
|
+
body,
|
|
98
|
+
...options,
|
|
99
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Scroll the mouse wheel at a position on the host computer
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* await client.browsers.computer.scroll('id', { x: 0, y: 0 });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
scroll(id, body, options) {
|
|
111
|
+
return this._client.post((0, path_1.path) `/browsers/${id}/computer/scroll`, {
|
|
112
|
+
body,
|
|
113
|
+
...options,
|
|
114
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Type text on the browser instance
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* await client.browsers.computer.typeText('id', {
|
|
123
|
+
* text: 'text',
|
|
124
|
+
* });
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
typeText(id, body, options) {
|
|
128
|
+
return this._client.post((0, path_1.path) `/browsers/${id}/computer/type`, {
|
|
129
|
+
body,
|
|
130
|
+
...options,
|
|
131
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.Computer = Computer;
|
|
136
|
+
//# sourceMappingURL=computer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computer.js","sourceRoot":"","sources":["../../src/resources/browsers/computer.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;IACH,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