cyberdesk 0.2.1 → 1.1.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/README.md +64 -73
- package/dist/client/client.gen.js +1 -3
- package/dist/client/sdk.gen.d.ts +319 -44
- package/dist/client/sdk.gen.js +664 -26
- package/dist/client/types.gen.d.ts +1067 -554
- package/dist/index.d.ts +154 -36
- package/dist/index.js +190 -46
- package/package.json +1 -1
package/dist/client/sdk.gen.js
CHANGED
|
@@ -1,50 +1,688 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.rootGet = exports.dummyTestEndpointV1TestPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = exports.deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = exports.createTrajectoryV1TrajectoriesPost = exports.listTrajectoriesV1TrajectoriesGet = exports.updateRequestLogV1RequestLogsLogIdPatch = exports.getRequestLogV1RequestLogsLogIdGet = exports.deleteRequestLogV1RequestLogsLogIdDelete = exports.createRequestLogV1RequestLogsPost = exports.listRequestLogsV1RequestLogsGet = exports.updateConnectionV1ConnectionsConnectionIdPatch = exports.getConnectionV1ConnectionsConnectionIdGet = exports.deleteConnectionV1ConnectionsConnectionIdDelete = exports.createConnectionV1ConnectionsPost = exports.listConnectionsV1ConnectionsGet = exports.updateRunV1RunsRunIdPatch = exports.getRunV1RunsRunIdGet = exports.deleteRunV1RunsRunIdDelete = exports.createRunV1RunsPost = exports.listRunsV1RunsGet = exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = exports.updateWorkflowV1WorkflowsWorkflowIdPatch = exports.getWorkflowV1WorkflowsWorkflowIdGet = exports.deleteWorkflowV1WorkflowsWorkflowIdDelete = exports.createWorkflowV1WorkflowsPost = exports.listWorkflowsV1WorkflowsGet = exports.updateMachineV1MachinesMachineIdPatch = exports.getMachineV1MachinesMachineIdGet = exports.deleteMachineV1MachinesMachineIdDelete = exports.createMachineV1MachinesPost = exports.listMachinesV1MachinesGet = exports.databaseHealthCheckV1HealthDbGet = exports.healthCheckV1HealthGet = void 0;
|
|
5
5
|
const client_gen_1 = require("./client.gen");
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Health Check
|
|
8
|
+
* Basic health check endpoint.
|
|
9
|
+
*
|
|
10
|
+
* Returns the service status without authentication.
|
|
9
11
|
*/
|
|
10
|
-
const
|
|
12
|
+
const healthCheckV1HealthGet = (options) => {
|
|
11
13
|
var _a;
|
|
12
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ url: '/v1/
|
|
14
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ url: '/v1/health' }, options));
|
|
13
15
|
};
|
|
14
|
-
exports.
|
|
16
|
+
exports.healthCheckV1HealthGet = healthCheckV1HealthGet;
|
|
15
17
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
+
* Database Health Check
|
|
19
|
+
* Database health check endpoint.
|
|
20
|
+
*
|
|
21
|
+
* Verifies database connectivity without authentication.
|
|
18
22
|
*/
|
|
19
|
-
const
|
|
23
|
+
const databaseHealthCheckV1HealthDbGet = (options) => {
|
|
20
24
|
var _a;
|
|
21
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).
|
|
25
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ url: '/v1/health/db' }, options));
|
|
22
26
|
};
|
|
23
|
-
exports.
|
|
27
|
+
exports.databaseHealthCheckV1HealthDbGet = databaseHealthCheckV1HealthDbGet;
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
29
|
+
* List Machines
|
|
30
|
+
* List all machines for the authenticated user.
|
|
31
|
+
*
|
|
32
|
+
* Supports pagination and filtering by status.
|
|
27
33
|
*/
|
|
28
|
-
const
|
|
34
|
+
const listMachinesV1MachinesGet = (options) => {
|
|
29
35
|
var _a;
|
|
30
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).
|
|
36
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
37
|
+
{
|
|
38
|
+
scheme: 'bearer',
|
|
39
|
+
type: 'http'
|
|
40
|
+
}
|
|
41
|
+
], url: '/v1/machines' }, options));
|
|
31
42
|
};
|
|
32
|
-
exports.
|
|
43
|
+
exports.listMachinesV1MachinesGet = listMachinesV1MachinesGet;
|
|
33
44
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
45
|
+
* Create Machine
|
|
46
|
+
* Create a new machine.
|
|
47
|
+
*
|
|
48
|
+
* The machine will be associated with the authenticated user.
|
|
36
49
|
*/
|
|
37
|
-
const
|
|
50
|
+
const createMachineV1MachinesPost = (options) => {
|
|
38
51
|
var _a;
|
|
39
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({
|
|
52
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
53
|
+
{
|
|
54
|
+
scheme: 'bearer',
|
|
55
|
+
type: 'http'
|
|
56
|
+
}
|
|
57
|
+
], url: '/v1/machines' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
40
58
|
};
|
|
41
|
-
exports.
|
|
59
|
+
exports.createMachineV1MachinesPost = createMachineV1MachinesPost;
|
|
42
60
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
61
|
+
* Delete Machine
|
|
62
|
+
* Delete a machine.
|
|
63
|
+
*
|
|
64
|
+
* This will also delete all associated connections, request logs, and runs.
|
|
65
|
+
* The machine must belong to the authenticated user.
|
|
45
66
|
*/
|
|
46
|
-
const
|
|
67
|
+
const deleteMachineV1MachinesMachineIdDelete = (options) => {
|
|
47
68
|
var _a;
|
|
48
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).
|
|
69
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
|
|
70
|
+
{
|
|
71
|
+
scheme: 'bearer',
|
|
72
|
+
type: 'http'
|
|
73
|
+
}
|
|
74
|
+
], url: '/v1/machines/{machine_id}' }, options));
|
|
49
75
|
};
|
|
50
|
-
exports.
|
|
76
|
+
exports.deleteMachineV1MachinesMachineIdDelete = deleteMachineV1MachinesMachineIdDelete;
|
|
77
|
+
/**
|
|
78
|
+
* Get Machine
|
|
79
|
+
* Get a specific machine by ID.
|
|
80
|
+
*
|
|
81
|
+
* The machine must belong to the authenticated user.
|
|
82
|
+
*/
|
|
83
|
+
const getMachineV1MachinesMachineIdGet = (options) => {
|
|
84
|
+
var _a;
|
|
85
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
86
|
+
{
|
|
87
|
+
scheme: 'bearer',
|
|
88
|
+
type: 'http'
|
|
89
|
+
}
|
|
90
|
+
], url: '/v1/machines/{machine_id}' }, options));
|
|
91
|
+
};
|
|
92
|
+
exports.getMachineV1MachinesMachineIdGet = getMachineV1MachinesMachineIdGet;
|
|
93
|
+
/**
|
|
94
|
+
* Update Machine
|
|
95
|
+
* Update a machine's information.
|
|
96
|
+
*
|
|
97
|
+
* Only the fields provided in the request body will be updated.
|
|
98
|
+
* The machine must belong to the authenticated user.
|
|
99
|
+
*/
|
|
100
|
+
const updateMachineV1MachinesMachineIdPatch = (options) => {
|
|
101
|
+
var _a;
|
|
102
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).patch(Object.assign(Object.assign({ security: [
|
|
103
|
+
{
|
|
104
|
+
scheme: 'bearer',
|
|
105
|
+
type: 'http'
|
|
106
|
+
}
|
|
107
|
+
], url: '/v1/machines/{machine_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
108
|
+
};
|
|
109
|
+
exports.updateMachineV1MachinesMachineIdPatch = updateMachineV1MachinesMachineIdPatch;
|
|
110
|
+
/**
|
|
111
|
+
* List Workflows
|
|
112
|
+
* List all workflows for the authenticated user.
|
|
113
|
+
*
|
|
114
|
+
* Supports pagination and returns workflows ordered by updated_at descending.
|
|
115
|
+
*/
|
|
116
|
+
const listWorkflowsV1WorkflowsGet = (options) => {
|
|
117
|
+
var _a;
|
|
118
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
119
|
+
{
|
|
120
|
+
scheme: 'bearer',
|
|
121
|
+
type: 'http'
|
|
122
|
+
}
|
|
123
|
+
], url: '/v1/workflows' }, options));
|
|
124
|
+
};
|
|
125
|
+
exports.listWorkflowsV1WorkflowsGet = listWorkflowsV1WorkflowsGet;
|
|
126
|
+
/**
|
|
127
|
+
* Create Workflow
|
|
128
|
+
* Create a new workflow.
|
|
129
|
+
*
|
|
130
|
+
* The workflow will be associated with the authenticated user.
|
|
131
|
+
*/
|
|
132
|
+
const createWorkflowV1WorkflowsPost = (options) => {
|
|
133
|
+
var _a;
|
|
134
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
135
|
+
{
|
|
136
|
+
scheme: 'bearer',
|
|
137
|
+
type: 'http'
|
|
138
|
+
}
|
|
139
|
+
], url: '/v1/workflows' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
140
|
+
};
|
|
141
|
+
exports.createWorkflowV1WorkflowsPost = createWorkflowV1WorkflowsPost;
|
|
142
|
+
/**
|
|
143
|
+
* Delete Workflow
|
|
144
|
+
* Delete a workflow.
|
|
145
|
+
*
|
|
146
|
+
* This will also delete all associated runs and trajectories.
|
|
147
|
+
* The workflow must belong to the authenticated user.
|
|
148
|
+
*/
|
|
149
|
+
const deleteWorkflowV1WorkflowsWorkflowIdDelete = (options) => {
|
|
150
|
+
var _a;
|
|
151
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
|
|
152
|
+
{
|
|
153
|
+
scheme: 'bearer',
|
|
154
|
+
type: 'http'
|
|
155
|
+
}
|
|
156
|
+
], url: '/v1/workflows/{workflow_id}' }, options));
|
|
157
|
+
};
|
|
158
|
+
exports.deleteWorkflowV1WorkflowsWorkflowIdDelete = deleteWorkflowV1WorkflowsWorkflowIdDelete;
|
|
159
|
+
/**
|
|
160
|
+
* Get Workflow
|
|
161
|
+
* Get a specific workflow by ID.
|
|
162
|
+
*
|
|
163
|
+
* The workflow must belong to the authenticated user.
|
|
164
|
+
*/
|
|
165
|
+
const getWorkflowV1WorkflowsWorkflowIdGet = (options) => {
|
|
166
|
+
var _a;
|
|
167
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
168
|
+
{
|
|
169
|
+
scheme: 'bearer',
|
|
170
|
+
type: 'http'
|
|
171
|
+
}
|
|
172
|
+
], url: '/v1/workflows/{workflow_id}' }, options));
|
|
173
|
+
};
|
|
174
|
+
exports.getWorkflowV1WorkflowsWorkflowIdGet = getWorkflowV1WorkflowsWorkflowIdGet;
|
|
175
|
+
/**
|
|
176
|
+
* Update Workflow
|
|
177
|
+
* Update a workflow's prompts.
|
|
178
|
+
*
|
|
179
|
+
* The current version will be saved to the version history.
|
|
180
|
+
* Only the fields provided in the request body will be updated.
|
|
181
|
+
* The workflow must belong to the authenticated user.
|
|
182
|
+
*/
|
|
183
|
+
const updateWorkflowV1WorkflowsWorkflowIdPatch = (options) => {
|
|
184
|
+
var _a;
|
|
185
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).patch(Object.assign(Object.assign({ security: [
|
|
186
|
+
{
|
|
187
|
+
scheme: 'bearer',
|
|
188
|
+
type: 'http'
|
|
189
|
+
}
|
|
190
|
+
], url: '/v1/workflows/{workflow_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
191
|
+
};
|
|
192
|
+
exports.updateWorkflowV1WorkflowsWorkflowIdPatch = updateWorkflowV1WorkflowsWorkflowIdPatch;
|
|
193
|
+
/**
|
|
194
|
+
* Get Workflow Versions
|
|
195
|
+
* Get the version history of a workflow.
|
|
196
|
+
*
|
|
197
|
+
* Returns a list of previous versions with their prompts and timestamps.
|
|
198
|
+
* The workflow must belong to the authenticated user.
|
|
199
|
+
*/
|
|
200
|
+
const getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = (options) => {
|
|
201
|
+
var _a;
|
|
202
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
203
|
+
{
|
|
204
|
+
scheme: 'bearer',
|
|
205
|
+
type: 'http'
|
|
206
|
+
}
|
|
207
|
+
], url: '/v1/workflows/{workflow_id}/versions' }, options));
|
|
208
|
+
};
|
|
209
|
+
exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet;
|
|
210
|
+
/**
|
|
211
|
+
* List Runs
|
|
212
|
+
* List all runs for the authenticated user.
|
|
213
|
+
*
|
|
214
|
+
* Supports pagination and filtering by workflow, machine, and status.
|
|
215
|
+
* Returns runs with their associated workflow and machine data.
|
|
216
|
+
*/
|
|
217
|
+
const listRunsV1RunsGet = (options) => {
|
|
218
|
+
var _a;
|
|
219
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
220
|
+
{
|
|
221
|
+
scheme: 'bearer',
|
|
222
|
+
type: 'http'
|
|
223
|
+
}
|
|
224
|
+
], url: '/v1/runs' }, options));
|
|
225
|
+
};
|
|
226
|
+
exports.listRunsV1RunsGet = listRunsV1RunsGet;
|
|
227
|
+
/**
|
|
228
|
+
* Create Run
|
|
229
|
+
* Create a new run.
|
|
230
|
+
*
|
|
231
|
+
* The workflow must exist and belong to the authenticated user.
|
|
232
|
+
* If machine_id is not provided, an available machine will be automatically selected.
|
|
233
|
+
* The run will be created with SCHEDULING status and a Temporal workflow will be started.
|
|
234
|
+
*/
|
|
235
|
+
const createRunV1RunsPost = (options) => {
|
|
236
|
+
var _a;
|
|
237
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
238
|
+
{
|
|
239
|
+
scheme: 'bearer',
|
|
240
|
+
type: 'http'
|
|
241
|
+
}
|
|
242
|
+
], url: '/v1/runs' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
243
|
+
};
|
|
244
|
+
exports.createRunV1RunsPost = createRunV1RunsPost;
|
|
245
|
+
/**
|
|
246
|
+
* Delete Run
|
|
247
|
+
* Delete a run.
|
|
248
|
+
*
|
|
249
|
+
* The run must belong to the authenticated user.
|
|
250
|
+
*/
|
|
251
|
+
const deleteRunV1RunsRunIdDelete = (options) => {
|
|
252
|
+
var _a;
|
|
253
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
|
|
254
|
+
{
|
|
255
|
+
scheme: 'bearer',
|
|
256
|
+
type: 'http'
|
|
257
|
+
}
|
|
258
|
+
], url: '/v1/runs/{run_id}' }, options));
|
|
259
|
+
};
|
|
260
|
+
exports.deleteRunV1RunsRunIdDelete = deleteRunV1RunsRunIdDelete;
|
|
261
|
+
/**
|
|
262
|
+
* Get Run
|
|
263
|
+
* Get a specific run by ID.
|
|
264
|
+
*
|
|
265
|
+
* Returns the run with its associated workflow and machine data.
|
|
266
|
+
* The run must belong to the authenticated user.
|
|
267
|
+
*/
|
|
268
|
+
const getRunV1RunsRunIdGet = (options) => {
|
|
269
|
+
var _a;
|
|
270
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
271
|
+
{
|
|
272
|
+
scheme: 'bearer',
|
|
273
|
+
type: 'http'
|
|
274
|
+
}
|
|
275
|
+
], url: '/v1/runs/{run_id}' }, options));
|
|
276
|
+
};
|
|
277
|
+
exports.getRunV1RunsRunIdGet = getRunV1RunsRunIdGet;
|
|
278
|
+
/**
|
|
279
|
+
* Update Run
|
|
280
|
+
* Update a run's status and data.
|
|
281
|
+
*
|
|
282
|
+
* Can update status, error messages, output data, attachments, and message history.
|
|
283
|
+
* Only the fields provided in the request body will be updated.
|
|
284
|
+
* The run must belong to the authenticated user.
|
|
285
|
+
*/
|
|
286
|
+
const updateRunV1RunsRunIdPatch = (options) => {
|
|
287
|
+
var _a;
|
|
288
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).patch(Object.assign(Object.assign({ security: [
|
|
289
|
+
{
|
|
290
|
+
scheme: 'bearer',
|
|
291
|
+
type: 'http'
|
|
292
|
+
}
|
|
293
|
+
], url: '/v1/runs/{run_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
294
|
+
};
|
|
295
|
+
exports.updateRunV1RunsRunIdPatch = updateRunV1RunsRunIdPatch;
|
|
296
|
+
/**
|
|
297
|
+
* List Connections
|
|
298
|
+
* List all connections for the authenticated user's machines.
|
|
299
|
+
*
|
|
300
|
+
* Supports pagination and filtering by machine and status.
|
|
301
|
+
* Returns connections with their associated machine data.
|
|
302
|
+
*/
|
|
303
|
+
const listConnectionsV1ConnectionsGet = (options) => {
|
|
304
|
+
var _a;
|
|
305
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
306
|
+
{
|
|
307
|
+
scheme: 'bearer',
|
|
308
|
+
type: 'http'
|
|
309
|
+
}
|
|
310
|
+
], url: '/v1/connections' }, options));
|
|
311
|
+
};
|
|
312
|
+
exports.listConnectionsV1ConnectionsGet = listConnectionsV1ConnectionsGet;
|
|
313
|
+
/**
|
|
314
|
+
* Create Connection
|
|
315
|
+
* Create a new connection (typically done by the WebSocket handler).
|
|
316
|
+
*
|
|
317
|
+
* The machine must exist and belong to the authenticated user.
|
|
318
|
+
*/
|
|
319
|
+
const createConnectionV1ConnectionsPost = (options) => {
|
|
320
|
+
var _a;
|
|
321
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
322
|
+
{
|
|
323
|
+
scheme: 'bearer',
|
|
324
|
+
type: 'http'
|
|
325
|
+
}
|
|
326
|
+
], url: '/v1/connections' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
327
|
+
};
|
|
328
|
+
exports.createConnectionV1ConnectionsPost = createConnectionV1ConnectionsPost;
|
|
329
|
+
/**
|
|
330
|
+
* Delete Connection
|
|
331
|
+
* Delete a connection (not typically used - connections are managed automatically).
|
|
332
|
+
*
|
|
333
|
+
* The connection must belong to a machine owned by the authenticated user.
|
|
334
|
+
*/
|
|
335
|
+
const deleteConnectionV1ConnectionsConnectionIdDelete = (options) => {
|
|
336
|
+
var _a;
|
|
337
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
|
|
338
|
+
{
|
|
339
|
+
scheme: 'bearer',
|
|
340
|
+
type: 'http'
|
|
341
|
+
}
|
|
342
|
+
], url: '/v1/connections/{connection_id}' }, options));
|
|
343
|
+
};
|
|
344
|
+
exports.deleteConnectionV1ConnectionsConnectionIdDelete = deleteConnectionV1ConnectionsConnectionIdDelete;
|
|
345
|
+
/**
|
|
346
|
+
* Get Connection
|
|
347
|
+
* Get a specific connection by ID.
|
|
348
|
+
*
|
|
349
|
+
* The connection must belong to a machine owned by the authenticated user.
|
|
350
|
+
*/
|
|
351
|
+
const getConnectionV1ConnectionsConnectionIdGet = (options) => {
|
|
352
|
+
var _a;
|
|
353
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
354
|
+
{
|
|
355
|
+
scheme: 'bearer',
|
|
356
|
+
type: 'http'
|
|
357
|
+
}
|
|
358
|
+
], url: '/v1/connections/{connection_id}' }, options));
|
|
359
|
+
};
|
|
360
|
+
exports.getConnectionV1ConnectionsConnectionIdGet = getConnectionV1ConnectionsConnectionIdGet;
|
|
361
|
+
/**
|
|
362
|
+
* Update Connection
|
|
363
|
+
* Update a connection's status or timestamps.
|
|
364
|
+
*
|
|
365
|
+
* Only the fields provided in the request body will be updated.
|
|
366
|
+
* The connection must belong to a machine owned by the authenticated user.
|
|
367
|
+
*/
|
|
368
|
+
const updateConnectionV1ConnectionsConnectionIdPatch = (options) => {
|
|
369
|
+
var _a;
|
|
370
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).patch(Object.assign(Object.assign({ security: [
|
|
371
|
+
{
|
|
372
|
+
scheme: 'bearer',
|
|
373
|
+
type: 'http'
|
|
374
|
+
}
|
|
375
|
+
], url: '/v1/connections/{connection_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
376
|
+
};
|
|
377
|
+
exports.updateConnectionV1ConnectionsConnectionIdPatch = updateConnectionV1ConnectionsConnectionIdPatch;
|
|
378
|
+
/**
|
|
379
|
+
* List Request Logs
|
|
380
|
+
* List all request logs for the authenticated user's machines.
|
|
381
|
+
*
|
|
382
|
+
* Supports pagination and filtering by machine, HTTP method, and status code.
|
|
383
|
+
*/
|
|
384
|
+
const listRequestLogsV1RequestLogsGet = (options) => {
|
|
385
|
+
var _a;
|
|
386
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
387
|
+
{
|
|
388
|
+
scheme: 'bearer',
|
|
389
|
+
type: 'http'
|
|
390
|
+
}
|
|
391
|
+
], url: '/v1/request-logs' }, options));
|
|
392
|
+
};
|
|
393
|
+
exports.listRequestLogsV1RequestLogsGet = listRequestLogsV1RequestLogsGet;
|
|
394
|
+
/**
|
|
395
|
+
* Create Request Log
|
|
396
|
+
* Create a new request log.
|
|
397
|
+
*
|
|
398
|
+
* The machine must exist and belong to the authenticated user.
|
|
399
|
+
* This is typically called when a request is initiated.
|
|
400
|
+
*/
|
|
401
|
+
const createRequestLogV1RequestLogsPost = (options) => {
|
|
402
|
+
var _a;
|
|
403
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
404
|
+
{
|
|
405
|
+
scheme: 'bearer',
|
|
406
|
+
type: 'http'
|
|
407
|
+
}
|
|
408
|
+
], url: '/v1/request-logs' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
409
|
+
};
|
|
410
|
+
exports.createRequestLogV1RequestLogsPost = createRequestLogV1RequestLogsPost;
|
|
411
|
+
/**
|
|
412
|
+
* Delete Request Log
|
|
413
|
+
* Delete a request log (not typically used - logs are kept for analytics).
|
|
414
|
+
*
|
|
415
|
+
* The log must belong to a machine owned by the authenticated user.
|
|
416
|
+
*/
|
|
417
|
+
const deleteRequestLogV1RequestLogsLogIdDelete = (options) => {
|
|
418
|
+
var _a;
|
|
419
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
|
|
420
|
+
{
|
|
421
|
+
scheme: 'bearer',
|
|
422
|
+
type: 'http'
|
|
423
|
+
}
|
|
424
|
+
], url: '/v1/request-logs/{log_id}' }, options));
|
|
425
|
+
};
|
|
426
|
+
exports.deleteRequestLogV1RequestLogsLogIdDelete = deleteRequestLogV1RequestLogsLogIdDelete;
|
|
427
|
+
/**
|
|
428
|
+
* Get Request Log
|
|
429
|
+
* Get a specific request log by ID.
|
|
430
|
+
*
|
|
431
|
+
* The log must belong to a machine owned by the authenticated user.
|
|
432
|
+
*/
|
|
433
|
+
const getRequestLogV1RequestLogsLogIdGet = (options) => {
|
|
434
|
+
var _a;
|
|
435
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
436
|
+
{
|
|
437
|
+
scheme: 'bearer',
|
|
438
|
+
type: 'http'
|
|
439
|
+
}
|
|
440
|
+
], url: '/v1/request-logs/{log_id}' }, options));
|
|
441
|
+
};
|
|
442
|
+
exports.getRequestLogV1RequestLogsLogIdGet = getRequestLogV1RequestLogsLogIdGet;
|
|
443
|
+
/**
|
|
444
|
+
* Update Request Log
|
|
445
|
+
* Update a request log with response data.
|
|
446
|
+
*
|
|
447
|
+
* This is typically called when a request completes to add the response details.
|
|
448
|
+
* Only the fields provided in the request body will be updated.
|
|
449
|
+
* The log must belong to a machine owned by the authenticated user.
|
|
450
|
+
*/
|
|
451
|
+
const updateRequestLogV1RequestLogsLogIdPatch = (options) => {
|
|
452
|
+
var _a;
|
|
453
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).patch(Object.assign(Object.assign({ security: [
|
|
454
|
+
{
|
|
455
|
+
scheme: 'bearer',
|
|
456
|
+
type: 'http'
|
|
457
|
+
}
|
|
458
|
+
], url: '/v1/request-logs/{log_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
459
|
+
};
|
|
460
|
+
exports.updateRequestLogV1RequestLogsLogIdPatch = updateRequestLogV1RequestLogsLogIdPatch;
|
|
461
|
+
/**
|
|
462
|
+
* List Trajectories
|
|
463
|
+
* List all trajectories for the authenticated user.
|
|
464
|
+
*
|
|
465
|
+
* Supports pagination and filtering by workflow.
|
|
466
|
+
* Returns trajectories with their associated workflow data.
|
|
467
|
+
*/
|
|
468
|
+
const listTrajectoriesV1TrajectoriesGet = (options) => {
|
|
469
|
+
var _a;
|
|
470
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
471
|
+
{
|
|
472
|
+
scheme: 'bearer',
|
|
473
|
+
type: 'http'
|
|
474
|
+
}
|
|
475
|
+
], url: '/v1/trajectories' }, options));
|
|
476
|
+
};
|
|
477
|
+
exports.listTrajectoriesV1TrajectoriesGet = listTrajectoriesV1TrajectoriesGet;
|
|
478
|
+
/**
|
|
479
|
+
* Create Trajectory
|
|
480
|
+
* Create a new trajectory for a workflow.
|
|
481
|
+
*
|
|
482
|
+
* The workflow must exist and belong to the authenticated user.
|
|
483
|
+
* The trajectory_data must contain at least one item.
|
|
484
|
+
*/
|
|
485
|
+
const createTrajectoryV1TrajectoriesPost = (options) => {
|
|
486
|
+
var _a;
|
|
487
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
488
|
+
{
|
|
489
|
+
scheme: 'bearer',
|
|
490
|
+
type: 'http'
|
|
491
|
+
}
|
|
492
|
+
], url: '/v1/trajectories' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
493
|
+
};
|
|
494
|
+
exports.createTrajectoryV1TrajectoriesPost = createTrajectoryV1TrajectoriesPost;
|
|
495
|
+
/**
|
|
496
|
+
* Delete Trajectory
|
|
497
|
+
* Delete a trajectory.
|
|
498
|
+
*
|
|
499
|
+
* The trajectory must belong to the authenticated user.
|
|
500
|
+
*/
|
|
501
|
+
const deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = (options) => {
|
|
502
|
+
var _a;
|
|
503
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
|
|
504
|
+
{
|
|
505
|
+
scheme: 'bearer',
|
|
506
|
+
type: 'http'
|
|
507
|
+
}
|
|
508
|
+
], url: '/v1/trajectories/{trajectory_id}' }, options));
|
|
509
|
+
};
|
|
510
|
+
exports.deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = deleteTrajectoryV1TrajectoriesTrajectoryIdDelete;
|
|
511
|
+
/**
|
|
512
|
+
* Get Trajectory
|
|
513
|
+
* Get a specific trajectory by ID.
|
|
514
|
+
*
|
|
515
|
+
* Returns the trajectory with its associated workflow data.
|
|
516
|
+
* The trajectory must belong to the authenticated user.
|
|
517
|
+
*/
|
|
518
|
+
const getTrajectoryV1TrajectoriesTrajectoryIdGet = (options) => {
|
|
519
|
+
var _a;
|
|
520
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
521
|
+
{
|
|
522
|
+
scheme: 'bearer',
|
|
523
|
+
type: 'http'
|
|
524
|
+
}
|
|
525
|
+
], url: '/v1/trajectories/{trajectory_id}' }, options));
|
|
526
|
+
};
|
|
527
|
+
exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = getTrajectoryV1TrajectoriesTrajectoryIdGet;
|
|
528
|
+
/**
|
|
529
|
+
* Update Trajectory
|
|
530
|
+
* Update a trajectory's data.
|
|
531
|
+
*
|
|
532
|
+
* Only the fields provided in the request body will be updated.
|
|
533
|
+
* The trajectory must belong to the authenticated user.
|
|
534
|
+
*/
|
|
535
|
+
const updateTrajectoryV1TrajectoriesTrajectoryIdPatch = (options) => {
|
|
536
|
+
var _a;
|
|
537
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).patch(Object.assign(Object.assign({ security: [
|
|
538
|
+
{
|
|
539
|
+
scheme: 'bearer',
|
|
540
|
+
type: 'http'
|
|
541
|
+
}
|
|
542
|
+
], url: '/v1/trajectories/{trajectory_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
543
|
+
};
|
|
544
|
+
exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = updateTrajectoryV1TrajectoriesTrajectoryIdPatch;
|
|
545
|
+
/**
|
|
546
|
+
* Get Latest Trajectory For Workflow
|
|
547
|
+
* Get the latest trajectory for a specific workflow.
|
|
548
|
+
*
|
|
549
|
+
* Returns the most recently updated trajectory for the workflow.
|
|
550
|
+
* The workflow must belong to the authenticated user.
|
|
551
|
+
*/
|
|
552
|
+
const getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = (options) => {
|
|
553
|
+
var _a;
|
|
554
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
555
|
+
{
|
|
556
|
+
scheme: 'bearer',
|
|
557
|
+
type: 'http'
|
|
558
|
+
}
|
|
559
|
+
], url: '/v1/workflows/{workflow_id}/latest-trajectory' }, options));
|
|
560
|
+
};
|
|
561
|
+
exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet;
|
|
562
|
+
/**
|
|
563
|
+
* Take a screenshot
|
|
564
|
+
* Take a screenshot of the machine's display.
|
|
565
|
+
*/
|
|
566
|
+
const getScreenshotV1ComputerMachineIdDisplayScreenshotGet = (options) => {
|
|
567
|
+
var _a;
|
|
568
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
569
|
+
{
|
|
570
|
+
scheme: 'bearer',
|
|
571
|
+
type: 'http'
|
|
572
|
+
}
|
|
573
|
+
], url: '/v1/computer/{machine_id}/display/screenshot' }, options));
|
|
574
|
+
};
|
|
575
|
+
exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = getScreenshotV1ComputerMachineIdDisplayScreenshotGet;
|
|
576
|
+
/**
|
|
577
|
+
* Get display dimensions
|
|
578
|
+
* Get the display dimensions of the machine.
|
|
579
|
+
*/
|
|
580
|
+
const getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = (options) => {
|
|
581
|
+
var _a;
|
|
582
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
583
|
+
{
|
|
584
|
+
scheme: 'bearer',
|
|
585
|
+
type: 'http'
|
|
586
|
+
}
|
|
587
|
+
], url: '/v1/computer/{machine_id}/display/dimensions' }, options));
|
|
588
|
+
};
|
|
589
|
+
exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet;
|
|
590
|
+
/**
|
|
591
|
+
* Type text
|
|
592
|
+
* Type text on the machine's keyboard.
|
|
593
|
+
*/
|
|
594
|
+
const keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = (options) => {
|
|
595
|
+
var _a;
|
|
596
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
597
|
+
{
|
|
598
|
+
scheme: 'bearer',
|
|
599
|
+
type: 'http'
|
|
600
|
+
}
|
|
601
|
+
], url: '/v1/computer/{machine_id}/input/keyboard/type' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
602
|
+
};
|
|
603
|
+
exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = keyboardTypeV1ComputerMachineIdInputKeyboardTypePost;
|
|
604
|
+
/**
|
|
605
|
+
* Send key combination
|
|
606
|
+
* Send a key combination (e.g., 'ctrl+a', 'alt+tab'). Uses 'keys' field to match Piglet expectations.
|
|
607
|
+
*/
|
|
608
|
+
const keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = (options) => {
|
|
609
|
+
var _a;
|
|
610
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
611
|
+
{
|
|
612
|
+
scheme: 'bearer',
|
|
613
|
+
type: 'http'
|
|
614
|
+
}
|
|
615
|
+
], url: '/v1/computer/{machine_id}/input/keyboard/key' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
616
|
+
};
|
|
617
|
+
exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost;
|
|
618
|
+
/**
|
|
619
|
+
* Get mouse position
|
|
620
|
+
* Get the current mouse cursor position.
|
|
621
|
+
*/
|
|
622
|
+
const getMousePositionV1ComputerMachineIdInputMousePositionGet = (options) => {
|
|
623
|
+
var _a;
|
|
624
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
625
|
+
{
|
|
626
|
+
scheme: 'bearer',
|
|
627
|
+
type: 'http'
|
|
628
|
+
}
|
|
629
|
+
], url: '/v1/computer/{machine_id}/input/mouse/position' }, options));
|
|
630
|
+
};
|
|
631
|
+
exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = getMousePositionV1ComputerMachineIdInputMousePositionGet;
|
|
632
|
+
/**
|
|
633
|
+
* Move mouse cursor
|
|
634
|
+
* Move the mouse cursor to specified coordinates.
|
|
635
|
+
*/
|
|
636
|
+
const mouseMoveV1ComputerMachineIdInputMouseMovePost = (options) => {
|
|
637
|
+
var _a;
|
|
638
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
639
|
+
{
|
|
640
|
+
scheme: 'bearer',
|
|
641
|
+
type: 'http'
|
|
642
|
+
}
|
|
643
|
+
], url: '/v1/computer/{machine_id}/input/mouse/move' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
644
|
+
};
|
|
645
|
+
exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = mouseMoveV1ComputerMachineIdInputMouseMovePost;
|
|
646
|
+
/**
|
|
647
|
+
* Click mouse button
|
|
648
|
+
* Click the mouse button at specified coordinates.
|
|
649
|
+
* If coordinates are not provided, clicks at current position.
|
|
650
|
+
*/
|
|
651
|
+
const mouseClickV1ComputerMachineIdInputMouseClickPost = (options) => {
|
|
652
|
+
var _a;
|
|
653
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
654
|
+
{
|
|
655
|
+
scheme: 'bearer',
|
|
656
|
+
type: 'http'
|
|
657
|
+
}
|
|
658
|
+
], url: '/v1/computer/{machine_id}/input/mouse/click' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
659
|
+
};
|
|
660
|
+
exports.mouseClickV1ComputerMachineIdInputMouseClickPost = mouseClickV1ComputerMachineIdInputMouseClickPost;
|
|
661
|
+
/**
|
|
662
|
+
* Dummy Test Endpoint
|
|
663
|
+
* Test endpoint that performs a sequence of actions:
|
|
664
|
+
* 1. Click at three different places
|
|
665
|
+
* 2. Right click
|
|
666
|
+
* 3. Take a screenshot
|
|
667
|
+
*
|
|
668
|
+
* Returns all action results and the screenshot base64.
|
|
669
|
+
*/
|
|
670
|
+
const dummyTestEndpointV1TestPost = (options) => {
|
|
671
|
+
var _a;
|
|
672
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign({ security: [
|
|
673
|
+
{
|
|
674
|
+
scheme: 'bearer',
|
|
675
|
+
type: 'http'
|
|
676
|
+
}
|
|
677
|
+
], url: '/v1/test' }, options));
|
|
678
|
+
};
|
|
679
|
+
exports.dummyTestEndpointV1TestPost = dummyTestEndpointV1TestPost;
|
|
680
|
+
/**
|
|
681
|
+
* Root
|
|
682
|
+
* Root endpoint with service information
|
|
683
|
+
*/
|
|
684
|
+
const rootGet = (options) => {
|
|
685
|
+
var _a;
|
|
686
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ url: '/' }, options));
|
|
687
|
+
};
|
|
688
|
+
exports.rootGet = rootGet;
|