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