cyberdesk 0.2.0 → 1.0.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.
@@ -1,724 +1,1207 @@
1
- export type GetV1DesktopIdData = {
1
+ /**
2
+ * Schema for creating a connection
3
+ */
4
+ export type ConnectionCreate = {
5
+ websocket_id: string;
6
+ ip_address?: string | null;
7
+ user_agent?: string | null;
8
+ machine_id: string;
9
+ };
10
+ /**
11
+ * Connection response schema
12
+ */
13
+ export type ConnectionResponse = {
14
+ websocket_id: string;
15
+ ip_address?: string | null;
16
+ user_agent?: string | null;
17
+ id: string;
18
+ machine_id: string;
19
+ connected_at: string;
20
+ disconnected_at: string | null;
21
+ last_ping: string;
22
+ status: ConnectionStatus;
23
+ };
24
+ export type ConnectionStatus = 'connected' | 'disconnected' | 'error';
25
+ /**
26
+ * Schema for updating a connection
27
+ */
28
+ export type ConnectionUpdate = {
29
+ status?: ConnectionStatus | null;
30
+ last_ping?: string | null;
31
+ disconnected_at?: string | null;
32
+ };
33
+ export type DisplayDimensions = {
34
+ width: number;
35
+ height: number;
36
+ };
37
+ export type HttpValidationError = {
38
+ detail?: Array<ValidationError>;
39
+ };
40
+ export type KeyboardKeyRequest = {
41
+ text: string;
42
+ };
43
+ export type KeyboardTypeRequest = {
44
+ text: string;
45
+ };
46
+ /**
47
+ * Schema for creating a machine
48
+ */
49
+ export type MachineCreate = {
50
+ fingerprint: string;
51
+ version?: string | null;
52
+ hostname?: string | null;
53
+ os_info?: string | null;
54
+ unkey_key_id: string;
55
+ };
56
+ /**
57
+ * Machine response schema
58
+ */
59
+ export type MachineResponse = {
60
+ fingerprint: string;
61
+ version?: string | null;
62
+ hostname?: string | null;
63
+ os_info?: string | null;
64
+ id: string;
65
+ user_id: string;
66
+ unkey_key_id: string;
67
+ status: MachineStatus;
68
+ is_available: boolean;
69
+ created_at: string;
70
+ last_seen: string;
71
+ };
72
+ export type MachineStatus = 'connected' | 'disconnected' | 'error';
73
+ /**
74
+ * Schema for updating a machine
75
+ */
76
+ export type MachineUpdate = {
77
+ version?: string | null;
78
+ hostname?: string | null;
79
+ os_info?: string | null;
80
+ status?: MachineStatus | null;
81
+ is_available?: boolean | null;
82
+ last_seen?: string | null;
83
+ };
84
+ export type MouseClickRequest = {
85
+ x?: number | null;
86
+ y?: number | null;
87
+ button?: string;
88
+ down?: boolean;
89
+ };
90
+ export type MouseMoveRequest = {
91
+ x: number;
92
+ y: number;
93
+ };
94
+ export type MousePosition = {
95
+ x: number;
96
+ y: number;
97
+ };
98
+ /**
99
+ * Paginated response wrapper
100
+ */
101
+ export type PaginatedResponse = {
102
+ items: Array<unknown>;
103
+ total: number;
104
+ skip: number;
105
+ limit: number;
106
+ };
107
+ /**
108
+ * Schema for creating a request log
109
+ */
110
+ export type RequestLogCreate = {
111
+ request_id: string;
112
+ method: string;
113
+ path: string;
114
+ status_code?: number | null;
115
+ request_size_bytes?: number | null;
116
+ response_size_bytes?: number | null;
117
+ duration_ms?: number | null;
118
+ error_message?: string | null;
119
+ machine_id: string;
120
+ };
121
+ /**
122
+ * Request log response schema
123
+ */
124
+ export type RequestLogResponse = {
125
+ request_id: string;
126
+ method: string;
127
+ path: string;
128
+ status_code?: number | null;
129
+ request_size_bytes?: number | null;
130
+ response_size_bytes?: number | null;
131
+ duration_ms?: number | null;
132
+ error_message?: string | null;
133
+ id: string;
134
+ machine_id: string;
135
+ created_at: string;
136
+ completed_at: string | null;
137
+ };
138
+ /**
139
+ * Schema for updating a request log
140
+ */
141
+ export type RequestLogUpdate = {
142
+ status_code?: number | null;
143
+ response_size_bytes?: number | null;
144
+ completed_at?: string | null;
145
+ duration_ms?: number | null;
146
+ error_message?: string | null;
147
+ };
148
+ /**
149
+ * Schema for creating a run
150
+ */
151
+ export type RunCreate = {
152
+ workflow_id: string;
153
+ /**
154
+ * Machine ID. If not provided, an available machine will be automatically selected.
155
+ */
156
+ machine_id?: string | null;
157
+ };
158
+ /**
159
+ * Run response schema
160
+ */
161
+ export type RunResponse = {
162
+ workflow_id: string;
163
+ machine_id: string;
164
+ id: string;
165
+ user_id: string;
166
+ status: RunStatus;
167
+ error: Array<string> | null;
168
+ output_data: {
169
+ [key: string]: unknown;
170
+ } | null;
171
+ output_attachment_ids: Array<string> | null;
172
+ run_message_history: Array<{
173
+ [key: string]: unknown;
174
+ }> | null;
175
+ created_at: string;
176
+ };
177
+ export type RunStatus = 'scheduling' | 'running' | 'success' | 'cancelled' | 'error';
178
+ /**
179
+ * Schema for updating a run
180
+ */
181
+ export type RunUpdate = {
182
+ status?: RunStatus | null;
183
+ error?: Array<string> | null;
184
+ output_data?: {
185
+ [key: string]: unknown;
186
+ } | null;
187
+ output_attachment_ids?: Array<string> | null;
188
+ run_message_history?: Array<{
189
+ [key: string]: unknown;
190
+ }> | null;
191
+ };
192
+ /**
193
+ * Schema for creating a trajectory
194
+ */
195
+ export type TrajectoryCreate = {
196
+ workflow_id: string;
197
+ trajectory_data: Array<{
198
+ [key: string]: unknown;
199
+ }>;
200
+ };
201
+ /**
202
+ * Trajectory response schema
203
+ */
204
+ export type TrajectoryResponse = {
205
+ workflow_id: string;
206
+ trajectory_data: Array<{
207
+ [key: string]: unknown;
208
+ }>;
209
+ id: string;
210
+ user_id: string;
211
+ created_at: string;
212
+ updated_at: string;
213
+ };
214
+ /**
215
+ * Schema for updating a trajectory
216
+ */
217
+ export type TrajectoryUpdate = {
218
+ trajectory_data?: Array<{
219
+ [key: string]: unknown;
220
+ }> | null;
221
+ };
222
+ export type ValidationError = {
223
+ loc: Array<string | number>;
224
+ msg: string;
225
+ type: string;
226
+ };
227
+ /**
228
+ * Schema for creating a workflow
229
+ */
230
+ export type WorkflowCreate = {
231
+ main_prompt: string;
232
+ cleanup_prompt?: string | null;
233
+ };
234
+ /**
235
+ * Workflow response schema
236
+ */
237
+ export type WorkflowResponse = {
238
+ main_prompt: string;
239
+ cleanup_prompt?: string | null;
240
+ id: string;
241
+ user_id: string;
242
+ old_versions?: Array<{
243
+ [key: string]: unknown;
244
+ }> | null;
245
+ created_at: string;
246
+ updated_at: string;
247
+ };
248
+ /**
249
+ * Schema for updating a workflow
250
+ */
251
+ export type WorkflowUpdate = {
252
+ main_prompt?: string | null;
253
+ cleanup_prompt?: string | null;
254
+ };
255
+ export type HealthCheckV1HealthGetData = {
2
256
  body?: never;
3
- headers: {
4
- /**
5
- * API key for authentication
6
- */
7
- 'x-api-key': string;
8
- };
9
- path: {
10
- /**
11
- * The UUID of the desktop instance to retrieve
12
- */
13
- id: string;
14
- };
257
+ path?: never;
15
258
  query?: never;
16
- url: '/v1/desktop/:id';
259
+ url: '/v1/health';
17
260
  };
18
- export type GetV1DesktopIdErrors = {
261
+ export type HealthCheckV1HealthGetResponses = {
19
262
  /**
20
- * The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
263
+ * Successful Response
21
264
  */
22
- 400: {
23
- status: 'error';
24
- /**
25
- * Error message detailing what went wrong
26
- */
27
- error: string;
265
+ 200: {
266
+ [key: string]: string;
28
267
  };
268
+ };
269
+ export type HealthCheckV1HealthGetResponse = HealthCheckV1HealthGetResponses[keyof HealthCheckV1HealthGetResponses];
270
+ export type DatabaseHealthCheckV1HealthDbGetData = {
271
+ body?: never;
272
+ path?: never;
273
+ query?: never;
274
+ url: '/v1/health/db';
275
+ };
276
+ export type DatabaseHealthCheckV1HealthDbGetResponses = {
29
277
  /**
30
- * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
278
+ * Successful Response
31
279
  */
32
- 401: {
33
- status: 'error';
280
+ 200: {
281
+ [key: string]: string;
282
+ };
283
+ };
284
+ export type DatabaseHealthCheckV1HealthDbGetResponse = DatabaseHealthCheckV1HealthDbGetResponses[keyof DatabaseHealthCheckV1HealthDbGetResponses];
285
+ export type ListMachinesV1MachinesGetData = {
286
+ body?: never;
287
+ path?: never;
288
+ query?: {
34
289
  /**
35
- * Error message detailing what went wrong
290
+ * Filter by machine status
36
291
  */
37
- error: string;
292
+ status?: MachineStatus | null;
293
+ skip?: number;
294
+ limit?: number;
38
295
  };
296
+ url: '/v1/machines';
297
+ };
298
+ export type ListMachinesV1MachinesGetErrors = {
39
299
  /**
40
- * The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
300
+ * Validation Error
41
301
  */
42
- 403: {
43
- status: 'error';
44
- /**
45
- * Error message detailing what went wrong
46
- */
47
- error: string;
48
- };
302
+ 422: HttpValidationError;
303
+ };
304
+ export type ListMachinesV1MachinesGetError = ListMachinesV1MachinesGetErrors[keyof ListMachinesV1MachinesGetErrors];
305
+ export type ListMachinesV1MachinesGetResponses = {
49
306
  /**
50
- * The server cannot find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client. This response code is probably the most well known due to its frequent occurrence on the web.
307
+ * Successful Response
51
308
  */
52
- 404: {
53
- status: 'error';
54
- /**
55
- * Error message detailing what went wrong
56
- */
57
- error: string;
58
- };
309
+ 200: PaginatedResponse;
310
+ };
311
+ export type ListMachinesV1MachinesGetResponse = ListMachinesV1MachinesGetResponses[keyof ListMachinesV1MachinesGetResponses];
312
+ export type CreateMachineV1MachinesPostData = {
313
+ body: MachineCreate;
314
+ path?: never;
315
+ query?: never;
316
+ url: '/v1/machines';
317
+ };
318
+ export type CreateMachineV1MachinesPostErrors = {
59
319
  /**
60
- * This response is sent when a request conflicts with the current state of the server.
320
+ * Validation Error
61
321
  */
62
- 409: {
63
- status: 'error';
64
- /**
65
- * Error message detailing what went wrong
66
- */
67
- error: string;
68
- };
322
+ 422: HttpValidationError;
323
+ };
324
+ export type CreateMachineV1MachinesPostError = CreateMachineV1MachinesPostErrors[keyof CreateMachineV1MachinesPostErrors];
325
+ export type CreateMachineV1MachinesPostResponses = {
69
326
  /**
70
- * The user has sent too many requests in a given amount of time ("rate limiting")
327
+ * Successful Response
71
328
  */
72
- 429: {
73
- status: 'error';
74
- /**
75
- * Error message detailing what went wrong
76
- */
77
- error: string;
329
+ 201: MachineResponse;
330
+ };
331
+ export type CreateMachineV1MachinesPostResponse = CreateMachineV1MachinesPostResponses[keyof CreateMachineV1MachinesPostResponses];
332
+ export type DeleteMachineV1MachinesMachineIdDeleteData = {
333
+ body?: never;
334
+ path: {
335
+ machine_id: string;
78
336
  };
337
+ query?: never;
338
+ url: '/v1/machines/{machine_id}';
339
+ };
340
+ export type DeleteMachineV1MachinesMachineIdDeleteErrors = {
79
341
  /**
80
- * The server has encountered a situation it does not know how to handle.
342
+ * Validation Error
81
343
  */
82
- 500: {
83
- status: 'error';
84
- /**
85
- * Error message detailing what went wrong
86
- */
87
- error: string;
88
- };
344
+ 422: HttpValidationError;
345
+ };
346
+ export type DeleteMachineV1MachinesMachineIdDeleteError = DeleteMachineV1MachinesMachineIdDeleteErrors[keyof DeleteMachineV1MachinesMachineIdDeleteErrors];
347
+ export type DeleteMachineV1MachinesMachineIdDeleteResponses = {
89
348
  /**
90
- * The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
349
+ * Successful Response
91
350
  */
92
- 502: {
93
- status: 'error';
94
- /**
95
- * Error message detailing what went wrong
96
- */
97
- error: string;
351
+ 204: void;
352
+ };
353
+ export type DeleteMachineV1MachinesMachineIdDeleteResponse = DeleteMachineV1MachinesMachineIdDeleteResponses[keyof DeleteMachineV1MachinesMachineIdDeleteResponses];
354
+ export type GetMachineV1MachinesMachineIdGetData = {
355
+ body?: never;
356
+ path: {
357
+ machine_id: string;
98
358
  };
359
+ query?: never;
360
+ url: '/v1/machines/{machine_id}';
99
361
  };
100
- export type GetV1DesktopIdError = GetV1DesktopIdErrors[keyof GetV1DesktopIdErrors];
101
- export type GetV1DesktopIdResponses = {
362
+ export type GetMachineV1MachinesMachineIdGetErrors = {
102
363
  /**
103
- * Desktop instance details retrieved successfully
364
+ * Validation Error
104
365
  */
105
- 200: {
106
- /**
107
- * Unique identifier for the desktop instance
108
- */
109
- id: string;
110
- /**
111
- * Current status of the desktop instance
112
- */
113
- status: 'pending' | 'running' | 'terminated' | 'error';
114
- /**
115
- * URL for the desktop stream (null if the desktop is not running)
116
- */
117
- stream_url: string;
118
- /**
119
- * Timestamp when the instance was created
120
- */
121
- created_at: string;
122
- /**
123
- * Timestamp when the instance will automatically time out
124
- */
125
- timeout_at: string;
126
- };
366
+ 422: HttpValidationError;
127
367
  };
128
- export type GetV1DesktopIdResponse = GetV1DesktopIdResponses[keyof GetV1DesktopIdResponses];
129
- export type PostV1DesktopData = {
130
- body?: {
131
- /**
132
- * Timeout in milliseconds for the desktop session
133
- */
134
- timeout_ms?: number;
368
+ export type GetMachineV1MachinesMachineIdGetError = GetMachineV1MachinesMachineIdGetErrors[keyof GetMachineV1MachinesMachineIdGetErrors];
369
+ export type GetMachineV1MachinesMachineIdGetResponses = {
370
+ /**
371
+ * Successful Response
372
+ */
373
+ 200: MachineResponse;
374
+ };
375
+ export type GetMachineV1MachinesMachineIdGetResponse = GetMachineV1MachinesMachineIdGetResponses[keyof GetMachineV1MachinesMachineIdGetResponses];
376
+ export type UpdateMachineV1MachinesMachineIdPatchData = {
377
+ body: MachineUpdate;
378
+ path: {
379
+ machine_id: string;
135
380
  };
136
- headers: {
137
- /**
138
- * API key for authentication
139
- */
140
- 'x-api-key': string;
381
+ query?: never;
382
+ url: '/v1/machines/{machine_id}';
383
+ };
384
+ export type UpdateMachineV1MachinesMachineIdPatchErrors = {
385
+ /**
386
+ * Validation Error
387
+ */
388
+ 422: HttpValidationError;
389
+ };
390
+ export type UpdateMachineV1MachinesMachineIdPatchError = UpdateMachineV1MachinesMachineIdPatchErrors[keyof UpdateMachineV1MachinesMachineIdPatchErrors];
391
+ export type UpdateMachineV1MachinesMachineIdPatchResponses = {
392
+ /**
393
+ * Successful Response
394
+ */
395
+ 200: MachineResponse;
396
+ };
397
+ export type UpdateMachineV1MachinesMachineIdPatchResponse = UpdateMachineV1MachinesMachineIdPatchResponses[keyof UpdateMachineV1MachinesMachineIdPatchResponses];
398
+ export type ListWorkflowsV1WorkflowsGetData = {
399
+ body?: never;
400
+ path?: never;
401
+ query?: {
402
+ skip?: number;
403
+ limit?: number;
141
404
  };
405
+ url: '/v1/workflows';
406
+ };
407
+ export type ListWorkflowsV1WorkflowsGetErrors = {
408
+ /**
409
+ * Validation Error
410
+ */
411
+ 422: HttpValidationError;
412
+ };
413
+ export type ListWorkflowsV1WorkflowsGetError = ListWorkflowsV1WorkflowsGetErrors[keyof ListWorkflowsV1WorkflowsGetErrors];
414
+ export type ListWorkflowsV1WorkflowsGetResponses = {
415
+ /**
416
+ * Successful Response
417
+ */
418
+ 200: PaginatedResponse;
419
+ };
420
+ export type ListWorkflowsV1WorkflowsGetResponse = ListWorkflowsV1WorkflowsGetResponses[keyof ListWorkflowsV1WorkflowsGetResponses];
421
+ export type CreateWorkflowV1WorkflowsPostData = {
422
+ body: WorkflowCreate;
142
423
  path?: never;
143
424
  query?: never;
144
- url: '/v1/desktop';
425
+ url: '/v1/workflows';
145
426
  };
146
- export type PostV1DesktopErrors = {
427
+ export type CreateWorkflowV1WorkflowsPostErrors = {
147
428
  /**
148
- * The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
429
+ * Validation Error
149
430
  */
150
- 400: {
151
- status: 'error';
152
- /**
153
- * Error message detailing what went wrong
154
- */
155
- error: string;
156
- };
431
+ 422: HttpValidationError;
432
+ };
433
+ export type CreateWorkflowV1WorkflowsPostError = CreateWorkflowV1WorkflowsPostErrors[keyof CreateWorkflowV1WorkflowsPostErrors];
434
+ export type CreateWorkflowV1WorkflowsPostResponses = {
157
435
  /**
158
- * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
436
+ * Successful Response
159
437
  */
160
- 401: {
161
- status: 'error';
162
- /**
163
- * Error message detailing what went wrong
164
- */
165
- error: string;
438
+ 201: WorkflowResponse;
439
+ };
440
+ export type CreateWorkflowV1WorkflowsPostResponse = CreateWorkflowV1WorkflowsPostResponses[keyof CreateWorkflowV1WorkflowsPostResponses];
441
+ export type DeleteWorkflowV1WorkflowsWorkflowIdDeleteData = {
442
+ body?: never;
443
+ path: {
444
+ workflow_id: string;
166
445
  };
446
+ query?: never;
447
+ url: '/v1/workflows/{workflow_id}';
448
+ };
449
+ export type DeleteWorkflowV1WorkflowsWorkflowIdDeleteErrors = {
167
450
  /**
168
- * The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
451
+ * Validation Error
169
452
  */
170
- 403: {
171
- status: 'error';
172
- /**
173
- * Error message detailing what went wrong
174
- */
175
- error: string;
176
- };
453
+ 422: HttpValidationError;
454
+ };
455
+ export type DeleteWorkflowV1WorkflowsWorkflowIdDeleteError = DeleteWorkflowV1WorkflowsWorkflowIdDeleteErrors[keyof DeleteWorkflowV1WorkflowsWorkflowIdDeleteErrors];
456
+ export type DeleteWorkflowV1WorkflowsWorkflowIdDeleteResponses = {
177
457
  /**
178
- * The server cannot find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client. This response code is probably the most well known due to its frequent occurrence on the web.
458
+ * Successful Response
179
459
  */
180
- 404: {
181
- status: 'error';
182
- /**
183
- * Error message detailing what went wrong
184
- */
185
- error: string;
460
+ 204: void;
461
+ };
462
+ export type DeleteWorkflowV1WorkflowsWorkflowIdDeleteResponse = DeleteWorkflowV1WorkflowsWorkflowIdDeleteResponses[keyof DeleteWorkflowV1WorkflowsWorkflowIdDeleteResponses];
463
+ export type GetWorkflowV1WorkflowsWorkflowIdGetData = {
464
+ body?: never;
465
+ path: {
466
+ workflow_id: string;
186
467
  };
468
+ query?: never;
469
+ url: '/v1/workflows/{workflow_id}';
470
+ };
471
+ export type GetWorkflowV1WorkflowsWorkflowIdGetErrors = {
187
472
  /**
188
- * This response is sent when a request conflicts with the current state of the server.
473
+ * Validation Error
189
474
  */
190
- 409: {
191
- status: 'error';
192
- /**
193
- * Error message detailing what went wrong
194
- */
195
- error: string;
196
- };
475
+ 422: HttpValidationError;
476
+ };
477
+ export type GetWorkflowV1WorkflowsWorkflowIdGetError = GetWorkflowV1WorkflowsWorkflowIdGetErrors[keyof GetWorkflowV1WorkflowsWorkflowIdGetErrors];
478
+ export type GetWorkflowV1WorkflowsWorkflowIdGetResponses = {
197
479
  /**
198
- * The user has sent too many requests in a given amount of time ("rate limiting")
480
+ * Successful Response
199
481
  */
200
- 429: {
201
- status: 'error';
202
- /**
203
- * Error message detailing what went wrong
204
- */
205
- error: string;
482
+ 200: WorkflowResponse;
483
+ };
484
+ export type GetWorkflowV1WorkflowsWorkflowIdGetResponse = GetWorkflowV1WorkflowsWorkflowIdGetResponses[keyof GetWorkflowV1WorkflowsWorkflowIdGetResponses];
485
+ export type UpdateWorkflowV1WorkflowsWorkflowIdPatchData = {
486
+ body: WorkflowUpdate;
487
+ path: {
488
+ workflow_id: string;
206
489
  };
490
+ query?: never;
491
+ url: '/v1/workflows/{workflow_id}';
492
+ };
493
+ export type UpdateWorkflowV1WorkflowsWorkflowIdPatchErrors = {
207
494
  /**
208
- * The server has encountered a situation it does not know how to handle.
495
+ * Validation Error
209
496
  */
210
- 500: {
211
- status: 'error';
212
- /**
213
- * Error message detailing what went wrong
214
- */
215
- error: string;
216
- };
497
+ 422: HttpValidationError;
498
+ };
499
+ export type UpdateWorkflowV1WorkflowsWorkflowIdPatchError = UpdateWorkflowV1WorkflowsWorkflowIdPatchErrors[keyof UpdateWorkflowV1WorkflowsWorkflowIdPatchErrors];
500
+ export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses = {
217
501
  /**
218
- * The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
502
+ * Successful Response
219
503
  */
220
- 502: {
221
- status: 'error';
222
- /**
223
- * Error message detailing what went wrong
224
- */
225
- error: string;
504
+ 200: WorkflowResponse;
505
+ };
506
+ export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponse = UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses[keyof UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses];
507
+ export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData = {
508
+ body?: never;
509
+ path: {
510
+ workflow_id: string;
226
511
  };
512
+ query?: never;
513
+ url: '/v1/workflows/{workflow_id}/versions';
227
514
  };
228
- export type PostV1DesktopError = PostV1DesktopErrors[keyof PostV1DesktopErrors];
229
- export type PostV1DesktopResponses = {
515
+ export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetErrors = {
230
516
  /**
231
- * Desktop creation initiated successfully
517
+ * Validation Error
232
518
  */
233
- 200: {
519
+ 422: HttpValidationError;
520
+ };
521
+ export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetError = GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetErrors[keyof GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetErrors];
522
+ export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses = {
523
+ /**
524
+ * Successful Response
525
+ */
526
+ 200: Array<{
527
+ [key: string]: unknown;
528
+ }>;
529
+ };
530
+ export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponse = GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses[keyof GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses];
531
+ export type ListRunsV1RunsGetData = {
532
+ body?: never;
533
+ path?: never;
534
+ query?: {
234
535
  /**
235
- * Unique identifier for the desktop instance
536
+ * Filter by workflow ID
236
537
  */
237
- id: string;
538
+ workflow_id?: string | null;
238
539
  /**
239
- * Initial status of the desktop instance after creation request
540
+ * Filter by machine ID
240
541
  */
241
- status: 'pending' | 'running' | 'terminated' | 'error';
242
- };
243
- };
244
- export type PostV1DesktopResponse = PostV1DesktopResponses[keyof PostV1DesktopResponses];
245
- export type PostV1DesktopIdStopData = {
246
- body?: never;
247
- headers: {
542
+ machine_id?: string | null;
248
543
  /**
249
- * API key for authentication
544
+ * Filter by run status
250
545
  */
251
- 'x-api-key': string;
546
+ status?: RunStatus | null;
547
+ skip?: number;
548
+ limit?: number;
252
549
  };
550
+ url: '/v1/runs';
551
+ };
552
+ export type ListRunsV1RunsGetErrors = {
553
+ /**
554
+ * Validation Error
555
+ */
556
+ 422: HttpValidationError;
557
+ };
558
+ export type ListRunsV1RunsGetError = ListRunsV1RunsGetErrors[keyof ListRunsV1RunsGetErrors];
559
+ export type ListRunsV1RunsGetResponses = {
560
+ /**
561
+ * Successful Response
562
+ */
563
+ 200: PaginatedResponse;
564
+ };
565
+ export type ListRunsV1RunsGetResponse = ListRunsV1RunsGetResponses[keyof ListRunsV1RunsGetResponses];
566
+ export type CreateRunV1RunsPostData = {
567
+ body: RunCreate;
568
+ path?: never;
569
+ query?: never;
570
+ url: '/v1/runs';
571
+ };
572
+ export type CreateRunV1RunsPostErrors = {
573
+ /**
574
+ * Validation Error
575
+ */
576
+ 422: HttpValidationError;
577
+ };
578
+ export type CreateRunV1RunsPostError = CreateRunV1RunsPostErrors[keyof CreateRunV1RunsPostErrors];
579
+ export type CreateRunV1RunsPostResponses = {
580
+ /**
581
+ * Successful Response
582
+ */
583
+ 201: RunResponse;
584
+ };
585
+ export type CreateRunV1RunsPostResponse = CreateRunV1RunsPostResponses[keyof CreateRunV1RunsPostResponses];
586
+ export type DeleteRunV1RunsRunIdDeleteData = {
587
+ body?: never;
253
588
  path: {
254
- /**
255
- * Desktop instance ID to stop
256
- */
257
- id: string;
589
+ run_id: string;
258
590
  };
259
591
  query?: never;
260
- url: '/v1/desktop/:id/stop';
592
+ url: '/v1/runs/{run_id}';
261
593
  };
262
- export type PostV1DesktopIdStopErrors = {
594
+ export type DeleteRunV1RunsRunIdDeleteErrors = {
263
595
  /**
264
- * The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
596
+ * Validation Error
265
597
  */
266
- 400: {
267
- status: 'error';
268
- /**
269
- * Error message detailing what went wrong
270
- */
271
- error: string;
272
- };
598
+ 422: HttpValidationError;
599
+ };
600
+ export type DeleteRunV1RunsRunIdDeleteError = DeleteRunV1RunsRunIdDeleteErrors[keyof DeleteRunV1RunsRunIdDeleteErrors];
601
+ export type DeleteRunV1RunsRunIdDeleteResponses = {
273
602
  /**
274
- * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
603
+ * Successful Response
275
604
  */
276
- 401: {
277
- status: 'error';
278
- /**
279
- * Error message detailing what went wrong
280
- */
281
- error: string;
605
+ 204: void;
606
+ };
607
+ export type DeleteRunV1RunsRunIdDeleteResponse = DeleteRunV1RunsRunIdDeleteResponses[keyof DeleteRunV1RunsRunIdDeleteResponses];
608
+ export type GetRunV1RunsRunIdGetData = {
609
+ body?: never;
610
+ path: {
611
+ run_id: string;
282
612
  };
613
+ query?: never;
614
+ url: '/v1/runs/{run_id}';
615
+ };
616
+ export type GetRunV1RunsRunIdGetErrors = {
283
617
  /**
284
- * The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
618
+ * Validation Error
285
619
  */
286
- 403: {
287
- status: 'error';
288
- /**
289
- * Error message detailing what went wrong
290
- */
291
- error: string;
292
- };
620
+ 422: HttpValidationError;
621
+ };
622
+ export type GetRunV1RunsRunIdGetError = GetRunV1RunsRunIdGetErrors[keyof GetRunV1RunsRunIdGetErrors];
623
+ export type GetRunV1RunsRunIdGetResponses = {
293
624
  /**
294
- * The server cannot find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client. This response code is probably the most well known due to its frequent occurrence on the web.
625
+ * Successful Response
295
626
  */
296
- 404: {
297
- status: 'error';
298
- /**
299
- * Error message detailing what went wrong
300
- */
301
- error: string;
627
+ 200: RunResponse;
628
+ };
629
+ export type GetRunV1RunsRunIdGetResponse = GetRunV1RunsRunIdGetResponses[keyof GetRunV1RunsRunIdGetResponses];
630
+ export type UpdateRunV1RunsRunIdPatchData = {
631
+ body: RunUpdate;
632
+ path: {
633
+ run_id: string;
302
634
  };
635
+ query?: never;
636
+ url: '/v1/runs/{run_id}';
637
+ };
638
+ export type UpdateRunV1RunsRunIdPatchErrors = {
303
639
  /**
304
- * This response is sent when a request conflicts with the current state of the server.
640
+ * Validation Error
305
641
  */
306
- 409: {
307
- status: 'error';
308
- /**
309
- * Error message detailing what went wrong
310
- */
311
- error: string;
312
- };
642
+ 422: HttpValidationError;
643
+ };
644
+ export type UpdateRunV1RunsRunIdPatchError = UpdateRunV1RunsRunIdPatchErrors[keyof UpdateRunV1RunsRunIdPatchErrors];
645
+ export type UpdateRunV1RunsRunIdPatchResponses = {
313
646
  /**
314
- * The user has sent too many requests in a given amount of time ("rate limiting")
647
+ * Successful Response
315
648
  */
316
- 429: {
317
- status: 'error';
649
+ 200: RunResponse;
650
+ };
651
+ export type UpdateRunV1RunsRunIdPatchResponse = UpdateRunV1RunsRunIdPatchResponses[keyof UpdateRunV1RunsRunIdPatchResponses];
652
+ export type ListConnectionsV1ConnectionsGetData = {
653
+ body?: never;
654
+ path?: never;
655
+ query?: {
656
+ /**
657
+ * Filter by machine ID
658
+ */
659
+ machine_id?: string | null;
318
660
  /**
319
- * Error message detailing what went wrong
661
+ * Filter by connection status
320
662
  */
321
- error: string;
663
+ status?: ConnectionStatus | null;
664
+ skip?: number;
665
+ limit?: number;
322
666
  };
667
+ url: '/v1/connections';
668
+ };
669
+ export type ListConnectionsV1ConnectionsGetErrors = {
323
670
  /**
324
- * The server has encountered a situation it does not know how to handle.
671
+ * Validation Error
325
672
  */
326
- 500: {
327
- status: 'error';
328
- /**
329
- * Error message detailing what went wrong
330
- */
331
- error: string;
673
+ 422: HttpValidationError;
674
+ };
675
+ export type ListConnectionsV1ConnectionsGetError = ListConnectionsV1ConnectionsGetErrors[keyof ListConnectionsV1ConnectionsGetErrors];
676
+ export type ListConnectionsV1ConnectionsGetResponses = {
677
+ /**
678
+ * Successful Response
679
+ */
680
+ 200: PaginatedResponse;
681
+ };
682
+ export type ListConnectionsV1ConnectionsGetResponse = ListConnectionsV1ConnectionsGetResponses[keyof ListConnectionsV1ConnectionsGetResponses];
683
+ export type CreateConnectionV1ConnectionsPostData = {
684
+ body: ConnectionCreate;
685
+ path?: never;
686
+ query?: never;
687
+ url: '/v1/connections';
688
+ };
689
+ export type CreateConnectionV1ConnectionsPostErrors = {
690
+ /**
691
+ * Validation Error
692
+ */
693
+ 422: HttpValidationError;
694
+ };
695
+ export type CreateConnectionV1ConnectionsPostError = CreateConnectionV1ConnectionsPostErrors[keyof CreateConnectionV1ConnectionsPostErrors];
696
+ export type CreateConnectionV1ConnectionsPostResponses = {
697
+ /**
698
+ * Successful Response
699
+ */
700
+ 201: ConnectionResponse;
701
+ };
702
+ export type CreateConnectionV1ConnectionsPostResponse = CreateConnectionV1ConnectionsPostResponses[keyof CreateConnectionV1ConnectionsPostResponses];
703
+ export type DeleteConnectionV1ConnectionsConnectionIdDeleteData = {
704
+ body?: never;
705
+ path: {
706
+ connection_id: string;
332
707
  };
708
+ query?: never;
709
+ url: '/v1/connections/{connection_id}';
710
+ };
711
+ export type DeleteConnectionV1ConnectionsConnectionIdDeleteErrors = {
333
712
  /**
334
- * The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
713
+ * Validation Error
335
714
  */
336
- 502: {
337
- status: 'error';
338
- /**
339
- * Error message detailing what went wrong
340
- */
341
- error: string;
715
+ 422: HttpValidationError;
716
+ };
717
+ export type DeleteConnectionV1ConnectionsConnectionIdDeleteError = DeleteConnectionV1ConnectionsConnectionIdDeleteErrors[keyof DeleteConnectionV1ConnectionsConnectionIdDeleteErrors];
718
+ export type DeleteConnectionV1ConnectionsConnectionIdDeleteResponses = {
719
+ /**
720
+ * Successful Response
721
+ */
722
+ 204: void;
723
+ };
724
+ export type DeleteConnectionV1ConnectionsConnectionIdDeleteResponse = DeleteConnectionV1ConnectionsConnectionIdDeleteResponses[keyof DeleteConnectionV1ConnectionsConnectionIdDeleteResponses];
725
+ export type GetConnectionV1ConnectionsConnectionIdGetData = {
726
+ body?: never;
727
+ path: {
728
+ connection_id: string;
342
729
  };
730
+ query?: never;
731
+ url: '/v1/connections/{connection_id}';
343
732
  };
344
- export type PostV1DesktopIdStopError = PostV1DesktopIdStopErrors[keyof PostV1DesktopIdStopErrors];
345
- export type PostV1DesktopIdStopResponses = {
733
+ export type GetConnectionV1ConnectionsConnectionIdGetErrors = {
346
734
  /**
347
- * Desktop stopped successfully
735
+ * Validation Error
348
736
  */
349
- 200: {
350
- /**
351
- * Status of the desktop instance after stopping
352
- */
353
- status: 'pending' | 'running' | 'terminated' | 'error';
737
+ 422: HttpValidationError;
738
+ };
739
+ export type GetConnectionV1ConnectionsConnectionIdGetError = GetConnectionV1ConnectionsConnectionIdGetErrors[keyof GetConnectionV1ConnectionsConnectionIdGetErrors];
740
+ export type GetConnectionV1ConnectionsConnectionIdGetResponses = {
741
+ /**
742
+ * Successful Response
743
+ */
744
+ 200: ConnectionResponse;
745
+ };
746
+ export type GetConnectionV1ConnectionsConnectionIdGetResponse = GetConnectionV1ConnectionsConnectionIdGetResponses[keyof GetConnectionV1ConnectionsConnectionIdGetResponses];
747
+ export type UpdateConnectionV1ConnectionsConnectionIdPatchData = {
748
+ body: ConnectionUpdate;
749
+ path: {
750
+ connection_id: string;
354
751
  };
752
+ query?: never;
753
+ url: '/v1/connections/{connection_id}';
355
754
  };
356
- export type PostV1DesktopIdStopResponse = PostV1DesktopIdStopResponses[keyof PostV1DesktopIdStopResponses];
357
- export type PostV1DesktopIdComputerActionData = {
358
- body?: {
359
- /**
360
- * Perform a mouse action: click, press (down), or release (up). Defaults to a single left click at the current position.
361
- */
362
- type: 'click_mouse';
363
- /**
364
- * X coordinate for the action (optional, uses current position if omitted)
365
- */
366
- x?: number;
367
- /**
368
- * Y coordinate for the action (optional, uses current position if omitted)
369
- */
370
- y?: number;
371
- /**
372
- * Mouse button to use (optional, defaults to 'left')
373
- */
374
- button?: 'left' | 'right' | 'middle';
375
- /**
376
- * Number of clicks to perform (optional, defaults to 1, only applicable for 'click' type)
377
- */
378
- num_of_clicks?: number;
379
- /**
380
- * Type of mouse action (optional, defaults to 'click')
381
- */
382
- click_type?: 'click' | 'down' | 'up';
383
- } | {
384
- /**
385
- * Scroll the mouse wheel in the specified direction
386
- */
387
- type: 'scroll';
388
- /**
389
- * Direction to scroll
390
- */
391
- direction: 'up' | 'down' | 'left' | 'right';
392
- /**
393
- * Amount to scroll in pixels
394
- */
395
- amount: number;
396
- } | {
397
- /**
398
- * Move the mouse cursor to the specified coordinates
399
- */
400
- type: 'move_mouse';
401
- /**
402
- * X coordinate to move to
403
- */
404
- x: number;
405
- /**
406
- * Y coordinate to move to
407
- */
408
- y: number;
409
- } | {
410
- /**
411
- * Drag the mouse from start to end coordinates
412
- */
413
- type: 'drag_mouse';
414
- /**
415
- * Starting coordinates for the drag operation
416
- */
417
- start: {
418
- /**
419
- * X coordinate on the screen
420
- */
421
- x: number;
422
- /**
423
- * Y coordinate on the screen
424
- */
425
- y: number;
426
- };
427
- /**
428
- * Ending coordinates for the drag operation
429
- */
430
- end: {
431
- /**
432
- * X coordinate on the screen
433
- */
434
- x: number;
435
- /**
436
- * Y coordinate on the screen
437
- */
438
- y: number;
439
- };
440
- } | {
441
- /**
442
- * Type text at the current cursor position
443
- */
444
- type: 'type';
445
- /**
446
- * Text to type
447
- */
448
- text: string;
449
- } | {
450
- /**
451
- * Press, hold down, or release one or more keyboard keys. Defaults to a single press and release.
452
- */
453
- type: 'press_keys';
454
- keys: string | Array<string>;
455
- /**
456
- * Type of key action (optional, defaults to 'press' which is a down and up action)
457
- */
458
- key_action_type?: 'press' | 'down' | 'up';
459
- } | {
460
- /**
461
- * Wait for the specified number of milliseconds
462
- */
463
- type: 'wait';
464
- /**
465
- * Time to wait in milliseconds
466
- */
467
- ms: number;
468
- } | {
755
+ export type UpdateConnectionV1ConnectionsConnectionIdPatchErrors = {
756
+ /**
757
+ * Validation Error
758
+ */
759
+ 422: HttpValidationError;
760
+ };
761
+ export type UpdateConnectionV1ConnectionsConnectionIdPatchError = UpdateConnectionV1ConnectionsConnectionIdPatchErrors[keyof UpdateConnectionV1ConnectionsConnectionIdPatchErrors];
762
+ export type UpdateConnectionV1ConnectionsConnectionIdPatchResponses = {
763
+ /**
764
+ * Successful Response
765
+ */
766
+ 200: ConnectionResponse;
767
+ };
768
+ export type UpdateConnectionV1ConnectionsConnectionIdPatchResponse = UpdateConnectionV1ConnectionsConnectionIdPatchResponses[keyof UpdateConnectionV1ConnectionsConnectionIdPatchResponses];
769
+ export type ListRequestLogsV1RequestLogsGetData = {
770
+ body?: never;
771
+ path?: never;
772
+ query?: {
469
773
  /**
470
- * Take a screenshot of the desktop
774
+ * Filter by machine ID
471
775
  */
472
- type: 'screenshot';
473
- } | {
776
+ machine_id?: string | null;
474
777
  /**
475
- * Get the current mouse cursor position
778
+ * Filter by HTTP method
476
779
  */
477
- type: 'get_cursor_position';
478
- };
479
- headers: {
780
+ method?: string | null;
480
781
  /**
481
- * API key for authentication
782
+ * Filter by status code
482
783
  */
483
- 'x-api-key': string;
784
+ status_code?: number | null;
785
+ skip?: number;
786
+ limit?: number;
484
787
  };
788
+ url: '/v1/request-logs';
789
+ };
790
+ export type ListRequestLogsV1RequestLogsGetErrors = {
791
+ /**
792
+ * Validation Error
793
+ */
794
+ 422: HttpValidationError;
795
+ };
796
+ export type ListRequestLogsV1RequestLogsGetError = ListRequestLogsV1RequestLogsGetErrors[keyof ListRequestLogsV1RequestLogsGetErrors];
797
+ export type ListRequestLogsV1RequestLogsGetResponses = {
798
+ /**
799
+ * Successful Response
800
+ */
801
+ 200: PaginatedResponse;
802
+ };
803
+ export type ListRequestLogsV1RequestLogsGetResponse = ListRequestLogsV1RequestLogsGetResponses[keyof ListRequestLogsV1RequestLogsGetResponses];
804
+ export type CreateRequestLogV1RequestLogsPostData = {
805
+ body: RequestLogCreate;
806
+ path?: never;
807
+ query?: never;
808
+ url: '/v1/request-logs';
809
+ };
810
+ export type CreateRequestLogV1RequestLogsPostErrors = {
811
+ /**
812
+ * Validation Error
813
+ */
814
+ 422: HttpValidationError;
815
+ };
816
+ export type CreateRequestLogV1RequestLogsPostError = CreateRequestLogV1RequestLogsPostErrors[keyof CreateRequestLogV1RequestLogsPostErrors];
817
+ export type CreateRequestLogV1RequestLogsPostResponses = {
818
+ /**
819
+ * Successful Response
820
+ */
821
+ 201: RequestLogResponse;
822
+ };
823
+ export type CreateRequestLogV1RequestLogsPostResponse = CreateRequestLogV1RequestLogsPostResponses[keyof CreateRequestLogV1RequestLogsPostResponses];
824
+ export type DeleteRequestLogV1RequestLogsLogIdDeleteData = {
825
+ body?: never;
485
826
  path: {
486
- /**
487
- * Desktop instance ID to perform the action on
488
- */
489
- id: string;
827
+ log_id: string;
490
828
  };
491
829
  query?: never;
492
- url: '/v1/desktop/:id/computer-action';
830
+ url: '/v1/request-logs/{log_id}';
493
831
  };
494
- export type PostV1DesktopIdComputerActionErrors = {
832
+ export type DeleteRequestLogV1RequestLogsLogIdDeleteErrors = {
495
833
  /**
496
- * The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
834
+ * Validation Error
497
835
  */
498
- 400: {
499
- status: 'error';
500
- /**
501
- * Error message detailing what went wrong
502
- */
503
- error: string;
504
- };
836
+ 422: HttpValidationError;
837
+ };
838
+ export type DeleteRequestLogV1RequestLogsLogIdDeleteError = DeleteRequestLogV1RequestLogsLogIdDeleteErrors[keyof DeleteRequestLogV1RequestLogsLogIdDeleteErrors];
839
+ export type DeleteRequestLogV1RequestLogsLogIdDeleteResponses = {
505
840
  /**
506
- * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
841
+ * Successful Response
507
842
  */
508
- 401: {
509
- status: 'error';
510
- /**
511
- * Error message detailing what went wrong
512
- */
513
- error: string;
843
+ 204: void;
844
+ };
845
+ export type DeleteRequestLogV1RequestLogsLogIdDeleteResponse = DeleteRequestLogV1RequestLogsLogIdDeleteResponses[keyof DeleteRequestLogV1RequestLogsLogIdDeleteResponses];
846
+ export type GetRequestLogV1RequestLogsLogIdGetData = {
847
+ body?: never;
848
+ path: {
849
+ log_id: string;
514
850
  };
851
+ query?: never;
852
+ url: '/v1/request-logs/{log_id}';
853
+ };
854
+ export type GetRequestLogV1RequestLogsLogIdGetErrors = {
515
855
  /**
516
- * The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
856
+ * Validation Error
517
857
  */
518
- 403: {
519
- status: 'error';
520
- /**
521
- * Error message detailing what went wrong
522
- */
523
- error: string;
524
- };
858
+ 422: HttpValidationError;
859
+ };
860
+ export type GetRequestLogV1RequestLogsLogIdGetError = GetRequestLogV1RequestLogsLogIdGetErrors[keyof GetRequestLogV1RequestLogsLogIdGetErrors];
861
+ export type GetRequestLogV1RequestLogsLogIdGetResponses = {
525
862
  /**
526
- * The server cannot find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client. This response code is probably the most well known due to its frequent occurrence on the web.
863
+ * Successful Response
527
864
  */
528
- 404: {
529
- status: 'error';
530
- /**
531
- * Error message detailing what went wrong
532
- */
533
- error: string;
865
+ 200: RequestLogResponse;
866
+ };
867
+ export type GetRequestLogV1RequestLogsLogIdGetResponse = GetRequestLogV1RequestLogsLogIdGetResponses[keyof GetRequestLogV1RequestLogsLogIdGetResponses];
868
+ export type UpdateRequestLogV1RequestLogsLogIdPatchData = {
869
+ body: RequestLogUpdate;
870
+ path: {
871
+ log_id: string;
534
872
  };
873
+ query?: never;
874
+ url: '/v1/request-logs/{log_id}';
875
+ };
876
+ export type UpdateRequestLogV1RequestLogsLogIdPatchErrors = {
535
877
  /**
536
- * This response is sent when a request conflicts with the current state of the server.
878
+ * Validation Error
537
879
  */
538
- 409: {
539
- status: 'error';
540
- /**
541
- * Error message detailing what went wrong
542
- */
543
- error: string;
544
- };
880
+ 422: HttpValidationError;
881
+ };
882
+ export type UpdateRequestLogV1RequestLogsLogIdPatchError = UpdateRequestLogV1RequestLogsLogIdPatchErrors[keyof UpdateRequestLogV1RequestLogsLogIdPatchErrors];
883
+ export type UpdateRequestLogV1RequestLogsLogIdPatchResponses = {
545
884
  /**
546
- * The user has sent too many requests in a given amount of time ("rate limiting")
885
+ * Successful Response
547
886
  */
548
- 429: {
549
- status: 'error';
887
+ 200: RequestLogResponse;
888
+ };
889
+ export type UpdateRequestLogV1RequestLogsLogIdPatchResponse = UpdateRequestLogV1RequestLogsLogIdPatchResponses[keyof UpdateRequestLogV1RequestLogsLogIdPatchResponses];
890
+ export type ListTrajectoriesV1TrajectoriesGetData = {
891
+ body?: never;
892
+ path?: never;
893
+ query?: {
550
894
  /**
551
- * Error message detailing what went wrong
895
+ * Filter by workflow ID
552
896
  */
553
- error: string;
897
+ workflow_id?: string | null;
898
+ skip?: number;
899
+ limit?: number;
554
900
  };
901
+ url: '/v1/trajectories';
902
+ };
903
+ export type ListTrajectoriesV1TrajectoriesGetErrors = {
555
904
  /**
556
- * The server has encountered a situation it does not know how to handle.
905
+ * Validation Error
557
906
  */
558
- 500: {
559
- status: 'error';
560
- /**
561
- * Error message detailing what went wrong
562
- */
563
- error: string;
564
- };
907
+ 422: HttpValidationError;
908
+ };
909
+ export type ListTrajectoriesV1TrajectoriesGetError = ListTrajectoriesV1TrajectoriesGetErrors[keyof ListTrajectoriesV1TrajectoriesGetErrors];
910
+ export type ListTrajectoriesV1TrajectoriesGetResponses = {
565
911
  /**
566
- * The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
912
+ * Successful Response
567
913
  */
568
- 502: {
569
- status: 'error';
570
- /**
571
- * Error message detailing what went wrong
572
- */
573
- error: string;
574
- };
914
+ 200: PaginatedResponse;
915
+ };
916
+ export type ListTrajectoriesV1TrajectoriesGetResponse = ListTrajectoriesV1TrajectoriesGetResponses[keyof ListTrajectoriesV1TrajectoriesGetResponses];
917
+ export type CreateTrajectoryV1TrajectoriesPostData = {
918
+ body: TrajectoryCreate;
919
+ path?: never;
920
+ query?: never;
921
+ url: '/v1/trajectories';
575
922
  };
576
- export type PostV1DesktopIdComputerActionError = PostV1DesktopIdComputerActionErrors[keyof PostV1DesktopIdComputerActionErrors];
577
- export type PostV1DesktopIdComputerActionResponses = {
923
+ export type CreateTrajectoryV1TrajectoriesPostErrors = {
578
924
  /**
579
- * Action executed successfully. Response may contain output or image data depending on the action.
925
+ * Validation Error
580
926
  */
581
- 200: {
582
- /**
583
- * Raw string output from the executed command (if any)
584
- */
585
- output?: string;
586
- /**
587
- * Error message if the operation failed (also indicated by non-2xx HTTP status)
588
- */
589
- error?: string;
590
- /**
591
- * Base64 encoded JPEG image data (only returned for screenshot actions)
592
- */
593
- base64_image?: string;
594
- };
927
+ 422: HttpValidationError;
595
928
  };
596
- export type PostV1DesktopIdComputerActionResponse = PostV1DesktopIdComputerActionResponses[keyof PostV1DesktopIdComputerActionResponses];
597
- export type PostV1DesktopIdBashActionData = {
598
- body?: {
599
- /**
600
- * Bash command to execute
601
- */
602
- command: string;
929
+ export type CreateTrajectoryV1TrajectoriesPostError = CreateTrajectoryV1TrajectoriesPostErrors[keyof CreateTrajectoryV1TrajectoriesPostErrors];
930
+ export type CreateTrajectoryV1TrajectoriesPostResponses = {
931
+ /**
932
+ * Successful Response
933
+ */
934
+ 201: TrajectoryResponse;
935
+ };
936
+ export type CreateTrajectoryV1TrajectoriesPostResponse = CreateTrajectoryV1TrajectoriesPostResponses[keyof CreateTrajectoryV1TrajectoriesPostResponses];
937
+ export type DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData = {
938
+ body?: never;
939
+ path: {
940
+ trajectory_id: string;
603
941
  };
604
- headers: {
605
- /**
606
- * API key for authentication
607
- */
608
- 'x-api-key': string;
942
+ query?: never;
943
+ url: '/v1/trajectories/{trajectory_id}';
944
+ };
945
+ export type DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteErrors = {
946
+ /**
947
+ * Validation Error
948
+ */
949
+ 422: HttpValidationError;
950
+ };
951
+ export type DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteError = DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteErrors[keyof DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteErrors];
952
+ export type DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteResponses = {
953
+ /**
954
+ * Successful Response
955
+ */
956
+ 204: void;
957
+ };
958
+ export type DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteResponse = DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteResponses[keyof DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteResponses];
959
+ export type GetTrajectoryV1TrajectoriesTrajectoryIdGetData = {
960
+ body?: never;
961
+ path: {
962
+ trajectory_id: string;
609
963
  };
964
+ query?: never;
965
+ url: '/v1/trajectories/{trajectory_id}';
966
+ };
967
+ export type GetTrajectoryV1TrajectoriesTrajectoryIdGetErrors = {
968
+ /**
969
+ * Validation Error
970
+ */
971
+ 422: HttpValidationError;
972
+ };
973
+ export type GetTrajectoryV1TrajectoriesTrajectoryIdGetError = GetTrajectoryV1TrajectoriesTrajectoryIdGetErrors[keyof GetTrajectoryV1TrajectoriesTrajectoryIdGetErrors];
974
+ export type GetTrajectoryV1TrajectoriesTrajectoryIdGetResponses = {
975
+ /**
976
+ * Successful Response
977
+ */
978
+ 200: TrajectoryResponse;
979
+ };
980
+ export type GetTrajectoryV1TrajectoriesTrajectoryIdGetResponse = GetTrajectoryV1TrajectoriesTrajectoryIdGetResponses[keyof GetTrajectoryV1TrajectoriesTrajectoryIdGetResponses];
981
+ export type UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData = {
982
+ body: TrajectoryUpdate;
610
983
  path: {
611
- /**
612
- * Desktop instance ID to run the command on
613
- */
614
- id: string;
984
+ trajectory_id: string;
615
985
  };
616
986
  query?: never;
617
- url: '/v1/desktop/:id/bash-action';
987
+ url: '/v1/trajectories/{trajectory_id}';
618
988
  };
619
- export type PostV1DesktopIdBashActionErrors = {
989
+ export type UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchErrors = {
620
990
  /**
621
- * The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
991
+ * Validation Error
622
992
  */
623
- 400: {
624
- status: 'error';
625
- /**
626
- * Error message detailing what went wrong
627
- */
628
- error: string;
993
+ 422: HttpValidationError;
994
+ };
995
+ export type UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchError = UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchErrors[keyof UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchErrors];
996
+ export type UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchResponses = {
997
+ /**
998
+ * Successful Response
999
+ */
1000
+ 200: TrajectoryResponse;
1001
+ };
1002
+ export type UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchResponse = UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchResponses[keyof UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchResponses];
1003
+ export type GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData = {
1004
+ body?: never;
1005
+ path: {
1006
+ workflow_id: string;
629
1007
  };
1008
+ query?: never;
1009
+ url: '/v1/workflows/{workflow_id}/latest-trajectory';
1010
+ };
1011
+ export type GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetErrors = {
630
1012
  /**
631
- * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
1013
+ * Validation Error
632
1014
  */
633
- 401: {
634
- status: 'error';
635
- /**
636
- * Error message detailing what went wrong
637
- */
638
- error: string;
1015
+ 422: HttpValidationError;
1016
+ };
1017
+ export type GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetError = GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetErrors[keyof GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetErrors];
1018
+ export type GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetResponses = {
1019
+ /**
1020
+ * Successful Response
1021
+ */
1022
+ 200: TrajectoryResponse;
1023
+ };
1024
+ export type GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetResponse = GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetResponses[keyof GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetResponses];
1025
+ export type GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData = {
1026
+ body?: never;
1027
+ path: {
1028
+ machine_id: string;
639
1029
  };
1030
+ query?: never;
1031
+ url: '/v1/computer/{machine_id}/display/screenshot';
1032
+ };
1033
+ export type GetScreenshotV1ComputerMachineIdDisplayScreenshotGetErrors = {
640
1034
  /**
641
- * The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
1035
+ * Validation Error
642
1036
  */
643
- 403: {
644
- status: 'error';
645
- /**
646
- * Error message detailing what went wrong
647
- */
648
- error: string;
1037
+ 422: HttpValidationError;
1038
+ };
1039
+ export type GetScreenshotV1ComputerMachineIdDisplayScreenshotGetError = GetScreenshotV1ComputerMachineIdDisplayScreenshotGetErrors[keyof GetScreenshotV1ComputerMachineIdDisplayScreenshotGetErrors];
1040
+ export type GetScreenshotV1ComputerMachineIdDisplayScreenshotGetResponses = {
1041
+ /**
1042
+ * PNG image of the screenshot
1043
+ */
1044
+ 200: unknown;
1045
+ };
1046
+ export type GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData = {
1047
+ body?: never;
1048
+ path: {
1049
+ machine_id: string;
649
1050
  };
1051
+ query?: never;
1052
+ url: '/v1/computer/{machine_id}/display/dimensions';
1053
+ };
1054
+ export type GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetErrors = {
650
1055
  /**
651
- * The server cannot find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client. This response code is probably the most well known due to its frequent occurrence on the web.
1056
+ * Validation Error
652
1057
  */
653
- 404: {
654
- status: 'error';
655
- /**
656
- * Error message detailing what went wrong
657
- */
658
- error: string;
1058
+ 422: HttpValidationError;
1059
+ };
1060
+ export type GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetError = GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetErrors[keyof GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetErrors];
1061
+ export type GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetResponses = {
1062
+ /**
1063
+ * Successful Response
1064
+ */
1065
+ 200: DisplayDimensions;
1066
+ };
1067
+ export type GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetResponse = GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetResponses[keyof GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetResponses];
1068
+ export type KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData = {
1069
+ body: KeyboardTypeRequest;
1070
+ path: {
1071
+ machine_id: string;
659
1072
  };
1073
+ query?: never;
1074
+ url: '/v1/computer/{machine_id}/input/keyboard/type';
1075
+ };
1076
+ export type KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostErrors = {
660
1077
  /**
661
- * This response is sent when a request conflicts with the current state of the server.
1078
+ * Validation Error
662
1079
  */
663
- 409: {
664
- status: 'error';
665
- /**
666
- * Error message detailing what went wrong
667
- */
668
- error: string;
1080
+ 422: HttpValidationError;
1081
+ };
1082
+ export type KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostError = KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostErrors[keyof KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostErrors];
1083
+ export type KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostResponses = {
1084
+ /**
1085
+ * Successful Response
1086
+ */
1087
+ 204: void;
1088
+ };
1089
+ export type KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostResponse = KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostResponses[keyof KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostResponses];
1090
+ export type KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData = {
1091
+ body: KeyboardKeyRequest;
1092
+ path: {
1093
+ machine_id: string;
669
1094
  };
1095
+ query?: never;
1096
+ url: '/v1/computer/{machine_id}/input/keyboard/key';
1097
+ };
1098
+ export type KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostErrors = {
670
1099
  /**
671
- * The user has sent too many requests in a given amount of time ("rate limiting")
1100
+ * Validation Error
672
1101
  */
673
- 429: {
674
- status: 'error';
675
- /**
676
- * Error message detailing what went wrong
677
- */
678
- error: string;
1102
+ 422: HttpValidationError;
1103
+ };
1104
+ export type KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostError = KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostErrors[keyof KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostErrors];
1105
+ export type KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostResponses = {
1106
+ /**
1107
+ * Successful Response
1108
+ */
1109
+ 204: void;
1110
+ };
1111
+ export type KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostResponse = KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostResponses[keyof KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostResponses];
1112
+ export type GetMousePositionV1ComputerMachineIdInputMousePositionGetData = {
1113
+ body?: never;
1114
+ path: {
1115
+ machine_id: string;
679
1116
  };
1117
+ query?: never;
1118
+ url: '/v1/computer/{machine_id}/input/mouse/position';
1119
+ };
1120
+ export type GetMousePositionV1ComputerMachineIdInputMousePositionGetErrors = {
680
1121
  /**
681
- * The server has encountered a situation it does not know how to handle.
1122
+ * Validation Error
682
1123
  */
683
- 500: {
684
- status: 'error';
685
- /**
686
- * Error message detailing what went wrong
687
- */
688
- error: string;
1124
+ 422: HttpValidationError;
1125
+ };
1126
+ export type GetMousePositionV1ComputerMachineIdInputMousePositionGetError = GetMousePositionV1ComputerMachineIdInputMousePositionGetErrors[keyof GetMousePositionV1ComputerMachineIdInputMousePositionGetErrors];
1127
+ export type GetMousePositionV1ComputerMachineIdInputMousePositionGetResponses = {
1128
+ /**
1129
+ * Successful Response
1130
+ */
1131
+ 200: MousePosition;
1132
+ };
1133
+ export type GetMousePositionV1ComputerMachineIdInputMousePositionGetResponse = GetMousePositionV1ComputerMachineIdInputMousePositionGetResponses[keyof GetMousePositionV1ComputerMachineIdInputMousePositionGetResponses];
1134
+ export type MouseMoveV1ComputerMachineIdInputMouseMovePostData = {
1135
+ body: MouseMoveRequest;
1136
+ path: {
1137
+ machine_id: string;
689
1138
  };
1139
+ query?: never;
1140
+ url: '/v1/computer/{machine_id}/input/mouse/move';
1141
+ };
1142
+ export type MouseMoveV1ComputerMachineIdInputMouseMovePostErrors = {
690
1143
  /**
691
- * The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
1144
+ * Validation Error
692
1145
  */
693
- 502: {
694
- status: 'error';
695
- /**
696
- * Error message detailing what went wrong
697
- */
698
- error: string;
1146
+ 422: HttpValidationError;
1147
+ };
1148
+ export type MouseMoveV1ComputerMachineIdInputMouseMovePostError = MouseMoveV1ComputerMachineIdInputMouseMovePostErrors[keyof MouseMoveV1ComputerMachineIdInputMouseMovePostErrors];
1149
+ export type MouseMoveV1ComputerMachineIdInputMouseMovePostResponses = {
1150
+ /**
1151
+ * Successful Response
1152
+ */
1153
+ 204: void;
1154
+ };
1155
+ export type MouseMoveV1ComputerMachineIdInputMouseMovePostResponse = MouseMoveV1ComputerMachineIdInputMouseMovePostResponses[keyof MouseMoveV1ComputerMachineIdInputMouseMovePostResponses];
1156
+ export type MouseClickV1ComputerMachineIdInputMouseClickPostData = {
1157
+ body: MouseClickRequest;
1158
+ path: {
1159
+ machine_id: string;
699
1160
  };
1161
+ query?: never;
1162
+ url: '/v1/computer/{machine_id}/input/mouse/click';
700
1163
  };
701
- export type PostV1DesktopIdBashActionError = PostV1DesktopIdBashActionErrors[keyof PostV1DesktopIdBashActionErrors];
702
- export type PostV1DesktopIdBashActionResponses = {
1164
+ export type MouseClickV1ComputerMachineIdInputMouseClickPostErrors = {
703
1165
  /**
704
- * Command executed successfully. Response contains command output.
1166
+ * Validation Error
1167
+ */
1168
+ 422: HttpValidationError;
1169
+ };
1170
+ export type MouseClickV1ComputerMachineIdInputMouseClickPostError = MouseClickV1ComputerMachineIdInputMouseClickPostErrors[keyof MouseClickV1ComputerMachineIdInputMouseClickPostErrors];
1171
+ export type MouseClickV1ComputerMachineIdInputMouseClickPostResponses = {
1172
+ /**
1173
+ * Successful Response
1174
+ */
1175
+ 204: void;
1176
+ };
1177
+ export type MouseClickV1ComputerMachineIdInputMouseClickPostResponse = MouseClickV1ComputerMachineIdInputMouseClickPostResponses[keyof MouseClickV1ComputerMachineIdInputMouseClickPostResponses];
1178
+ export type DummyTestEndpointV1TestPostData = {
1179
+ body?: never;
1180
+ path?: never;
1181
+ query?: never;
1182
+ url: '/v1/test';
1183
+ };
1184
+ export type DummyTestEndpointV1TestPostResponses = {
1185
+ /**
1186
+ * Successful Response
705
1187
  */
706
1188
  200: {
707
- /**
708
- * Raw string output from the executed command (if any)
709
- */
710
- output?: string;
711
- /**
712
- * Error message if the operation failed (also indicated by non-2xx HTTP status)
713
- */
714
- error?: string;
715
- /**
716
- * Base64 encoded JPEG image data (only returned for screenshot actions)
717
- */
718
- base64_image?: string;
1189
+ [key: string]: unknown;
719
1190
  };
720
1191
  };
721
- export type PostV1DesktopIdBashActionResponse = PostV1DesktopIdBashActionResponses[keyof PostV1DesktopIdBashActionResponses];
1192
+ export type DummyTestEndpointV1TestPostResponse = DummyTestEndpointV1TestPostResponses[keyof DummyTestEndpointV1TestPostResponses];
1193
+ export type RootGetData = {
1194
+ body?: never;
1195
+ path?: never;
1196
+ query?: never;
1197
+ url: '/';
1198
+ };
1199
+ export type RootGetResponses = {
1200
+ /**
1201
+ * Successful Response
1202
+ */
1203
+ 200: unknown;
1204
+ };
722
1205
  export type ClientOptions = {
723
- baseUrl: 'https://api.cyberdesk.io' | (string & {});
1206
+ baseUrl: `${string}://${string}` | (string & {});
724
1207
  };