@onkernel/sdk 0.14.2 → 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 +9 -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 +4 -0
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +4 -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 +24 -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.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,C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ACnC;;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,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,iBAAiB,CACf,EAAU,EACV,OAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,sBAAsB,EAAE;YAClE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAClE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAU,EAAE,IAA8B,EAAE,OAAwB;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,uBAAuB,EAAE;YACnE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EA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AAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,IAA4B,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,gBAAgB,EAAE;YAC5D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAxID,4BAwIC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Computer extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Capture a screenshot of the browser instance
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response =
|
|
12
|
+
* await client.browsers.computer.captureScreenshot('id');
|
|
13
|
+
*
|
|
14
|
+
* const content = await response.blob();
|
|
15
|
+
* console.log(content);
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
captureScreenshot(id, body = {}, options) {
|
|
19
|
+
return this._client.post(path `/browsers/${id}/computer/screenshot`, {
|
|
20
|
+
body,
|
|
21
|
+
...options,
|
|
22
|
+
headers: buildHeaders([{ Accept: 'image/png' }, options?.headers]),
|
|
23
|
+
__binaryResponse: true,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Simulate a mouse click action on the browser instance
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* await client.browsers.computer.clickMouse('id', {
|
|
32
|
+
* x: 0,
|
|
33
|
+
* y: 0,
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
clickMouse(id, body, options) {
|
|
38
|
+
return this._client.post(path `/browsers/${id}/computer/click_mouse`, {
|
|
39
|
+
body,
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Drag the mouse along a path
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* await client.browsers.computer.dragMouse('id', {
|
|
50
|
+
* path: [
|
|
51
|
+
* [0, 0],
|
|
52
|
+
* [0, 0],
|
|
53
|
+
* ],
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
dragMouse(id, body, options) {
|
|
58
|
+
return this._client.post(path `/browsers/${id}/computer/drag_mouse`, {
|
|
59
|
+
body,
|
|
60
|
+
...options,
|
|
61
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Move the mouse cursor to the specified coordinates on the browser instance
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* await client.browsers.computer.moveMouse('id', {
|
|
70
|
+
* x: 0,
|
|
71
|
+
* y: 0,
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
moveMouse(id, body, options) {
|
|
76
|
+
return this._client.post(path `/browsers/${id}/computer/move_mouse`, {
|
|
77
|
+
body,
|
|
78
|
+
...options,
|
|
79
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Press one or more keys on the host computer
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* await client.browsers.computer.pressKey('id', {
|
|
88
|
+
* keys: ['string'],
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
pressKey(id, body, options) {
|
|
93
|
+
return this._client.post(path `/browsers/${id}/computer/press_key`, {
|
|
94
|
+
body,
|
|
95
|
+
...options,
|
|
96
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Scroll the mouse wheel at a position on the host computer
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* await client.browsers.computer.scroll('id', { x: 0, y: 0 });
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
scroll(id, body, options) {
|
|
108
|
+
return this._client.post(path `/browsers/${id}/computer/scroll`, {
|
|
109
|
+
body,
|
|
110
|
+
...options,
|
|
111
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Type text on the browser instance
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* await client.browsers.computer.typeText('id', {
|
|
120
|
+
* text: 'text',
|
|
121
|
+
* });
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
typeText(id, body, options) {
|
|
125
|
+
return this._client.post(path `/browsers/${id}/computer/type`, {
|
|
126
|
+
body,
|
|
127
|
+
...options,
|
|
128
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=computer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
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;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, type BrowserLoadExtensionsParams, } from "./browsers.mjs";
|
|
2
|
+
export { Computer, type ComputerCaptureScreenshotParams, type ComputerClickMouseParams, type ComputerDragMouseParams, type ComputerMoveMouseParams, type ComputerPressKeyParams, type ComputerScrollParams, type ComputerTypeTextParams, } from "./computer.mjs";
|
|
2
3
|
export { Fs, type FFileInfoResponse, type FListFilesResponse, type FCreateDirectoryParams, type FDeleteDirectoryParams, type FDeleteFileParams, type FDownloadDirZipParams, type FFileInfoParams, type FListFilesParams, type FMoveParams, type FReadFileParams, type FSetFilePermissionsParams, type FUploadParams, type FUploadZipParams, type FWriteFileParams, } from "./fs/index.mjs";
|
|
3
4
|
export { Logs, type LogStreamParams } from "./logs.mjs";
|
|
4
5
|
export { Process, type ProcessExecResponse, type ProcessKillResponse, type ProcessSpawnResponse, type ProcessStatusResponse, type ProcessStdinResponse, type ProcessStdoutStreamResponse, type ProcessExecParams, type ProcessKillParams, type ProcessSpawnParams, type ProcessStatusParams, type ProcessStdinParams, type ProcessStdoutStreamParams, } from "./process.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,EAAE,EACF,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE;OAC9B,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,QAAQ,EACR,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B;OACM,EACL,EAAE,EACF,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE;OAC9B,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, type BrowserLoadExtensionsParams, } from "./browsers.js";
|
|
2
|
+
export { Computer, type ComputerCaptureScreenshotParams, type ComputerClickMouseParams, type ComputerDragMouseParams, type ComputerMoveMouseParams, type ComputerPressKeyParams, type ComputerScrollParams, type ComputerTypeTextParams, } from "./computer.js";
|
|
2
3
|
export { Fs, type FFileInfoResponse, type FListFilesResponse, type FCreateDirectoryParams, type FDeleteDirectoryParams, type FDeleteFileParams, type FDownloadDirZipParams, type FFileInfoParams, type FListFilesParams, type FMoveParams, type FReadFileParams, type FSetFilePermissionsParams, type FUploadParams, type FUploadZipParams, type FWriteFileParams, } from "./fs/index.js";
|
|
3
4
|
export { Logs, type LogStreamParams } from "./logs.js";
|
|
4
5
|
export { Process, type ProcessExecResponse, type ProcessKillResponse, type ProcessSpawnResponse, type ProcessStatusResponse, type ProcessStdinResponse, type ProcessStdoutStreamResponse, type ProcessExecParams, type ProcessKillParams, type ProcessSpawnParams, type ProcessStatusParams, type ProcessStdinParams, type ProcessStdoutStreamParams, } from "./process.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,EAAE,EACF,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE;OAC9B,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,QAAQ,EACR,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B;OACM,EACL,EAAE,EACF,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE;OAC9B,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Replays = exports.Process = exports.Logs = exports.Fs = exports.Browsers = void 0;
|
|
4
|
+
exports.Replays = exports.Process = exports.Logs = exports.Fs = exports.Computer = exports.Browsers = void 0;
|
|
5
5
|
var browsers_1 = require("./browsers.js");
|
|
6
6
|
Object.defineProperty(exports, "Browsers", { enumerable: true, get: function () { return browsers_1.Browsers; } });
|
|
7
|
+
var computer_1 = require("./computer.js");
|
|
8
|
+
Object.defineProperty(exports, "Computer", { enumerable: true, get: function () { return computer_1.Computer; } });
|
|
7
9
|
var index_1 = require("./fs/index.js");
|
|
8
10
|
Object.defineProperty(exports, "Fs", { enumerable: true, get: function () { return index_1.Fs; } });
|
|
9
11
|
var logs_1 = require("./logs.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,uCAgBoB;AAflB,2FAAA,EAAE,OAAA;AAgBJ,kCAAoD;AAA3C,4FAAA,IAAI,OAAA;AACb,wCAcmB;AAbjB,kGAAA,OAAO,OAAA;AAcT,wCAOmB;AANjB,kGAAA,OAAO,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,uCAgBoB;AAflB,2FAAA,EAAE,OAAA;AAgBJ,kCAAoD;AAA3C,4FAAA,IAAI,OAAA;AACb,wCAcmB;AAbjB,kGAAA,OAAO,OAAA;AAcT,wCAOmB;AANjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Browsers, } from "./browsers.mjs";
|
|
3
|
+
export { Computer, } from "./computer.mjs";
|
|
3
4
|
export { Fs, } from "./fs/index.mjs";
|
|
4
5
|
export { Logs } from "./logs.mjs";
|
|
5
6
|
export { Process, } from "./process.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAST;OACM,EACL,EAAE,GAeH;OACM,EAAE,IAAI,EAAwB;OAC9B,EACL,OAAO,GAaR;OACM,EACL,OAAO,GAMR"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAST;OACM,EACL,QAAQ,GAQT;OACM,EACL,EAAE,GAeH;OACM,EAAE,IAAI,EAAwB;OAC9B,EACL,OAAO,GAaR;OACM,EACL,OAAO,GAMR"}
|