cyberdesk 1.8.0 → 1.10.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,3 +1,4 @@
1
+ export type AttachmentType = 'input' | 'output';
1
2
  /**
2
3
  * Schema for creating a connection
3
4
  */
@@ -26,6 +27,38 @@ export type DisplayDimensions = {
26
27
  width: number;
27
28
  height: number;
28
29
  };
30
+ /**
31
+ * File input for run creation
32
+ */
33
+ export type FileInput = {
34
+ filename: string;
35
+ /**
36
+ * Base64 encoded file content
37
+ */
38
+ content: string;
39
+ /**
40
+ * Optional path on machine, defaults to ~/CyberdeskTransfers/
41
+ */
42
+ target_path?: string | null;
43
+ /**
44
+ * Delete from machine after run completes
45
+ */
46
+ cleanup_imports_after_run?: boolean;
47
+ };
48
+ export type FileWriteRequest = {
49
+ /**
50
+ * Target file path
51
+ */
52
+ path: string;
53
+ /**
54
+ * Base64 encoded file content
55
+ */
56
+ content: string;
57
+ /**
58
+ * Write mode - 'write' or 'append'
59
+ */
60
+ mode?: string;
61
+ };
29
62
  export type HttpValidationError = {
30
63
  detail?: Array<ValidationError>;
31
64
  };
@@ -114,6 +147,12 @@ export type PaginatedResponseMachineResponse = {
114
147
  skip: number;
115
148
  limit: number;
116
149
  };
150
+ export type PaginatedResponseRunAttachmentResponse = {
151
+ items: Array<RunAttachmentResponse>;
152
+ total: number;
153
+ skip: number;
154
+ limit: number;
155
+ };
117
156
  export type PaginatedResponseRunResponse = {
118
157
  items: Array<RunResponse>;
119
158
  total: number;
@@ -132,6 +171,34 @@ export type PaginatedResponseWorkflowResponse = {
132
171
  skip: number;
133
172
  limit: number;
134
173
  };
174
+ export type PowerShellExecRequest = {
175
+ /**
176
+ * PowerShell command to execute
177
+ */
178
+ command: string;
179
+ /**
180
+ * Use persistent session
181
+ */
182
+ same_session?: boolean;
183
+ /**
184
+ * Working directory for new session
185
+ */
186
+ working_directory?: string | null;
187
+ /**
188
+ * Session ID to use
189
+ */
190
+ session_id?: string | null;
191
+ };
192
+ export type PowerShellSessionRequest = {
193
+ /**
194
+ * Action to perform - 'create' or 'destroy'
195
+ */
196
+ action: string;
197
+ /**
198
+ * Session ID for destroy action
199
+ */
200
+ session_id?: string | null;
201
+ };
135
202
  /**
136
203
  * Schema for creating a request log
137
204
  */
@@ -173,6 +240,58 @@ export type RequestLogUpdate = {
173
240
  duration_ms?: number | null;
174
241
  error_message?: string | null;
175
242
  };
243
+ /**
244
+ * Schema for creating a run attachment
245
+ */
246
+ export type RunAttachmentCreate = {
247
+ run_id: string;
248
+ filename: string;
249
+ /**
250
+ * Base64 encoded file content
251
+ */
252
+ content: string;
253
+ content_type: string;
254
+ attachment_type: AttachmentType;
255
+ target_path?: string | null;
256
+ cleanup_imports_after_run?: boolean;
257
+ expires_at?: string | null;
258
+ };
259
+ /**
260
+ * Response schema for run attachment download URL
261
+ */
262
+ export type RunAttachmentDownloadUrlResponse = {
263
+ /**
264
+ * Signed URL for downloading the attachment
265
+ */
266
+ url: string;
267
+ /**
268
+ * Seconds until the URL expires
269
+ */
270
+ expires_in: number;
271
+ };
272
+ /**
273
+ * Run attachment response schema
274
+ */
275
+ export type RunAttachmentResponse = {
276
+ filename: string;
277
+ content_type: string;
278
+ attachment_type: AttachmentType;
279
+ target_path?: string | null;
280
+ cleanup_imports_after_run?: boolean;
281
+ id: string;
282
+ user_id: string;
283
+ run_id: string;
284
+ size_bytes: number;
285
+ storage_path: string;
286
+ expires_at?: string | null;
287
+ created_at: string;
288
+ };
289
+ /**
290
+ * Schema for updating a run attachment
291
+ */
292
+ export type RunAttachmentUpdate = {
293
+ expires_at?: string | null;
294
+ };
176
295
  /**
177
296
  * Schema for creating a run
178
297
  */
@@ -188,6 +307,10 @@ export type RunCreate = {
188
307
  input_values?: {
189
308
  [key: string]: unknown;
190
309
  } | null;
310
+ /**
311
+ * Files to upload to the machine
312
+ */
313
+ file_inputs?: Array<FileInput> | null;
191
314
  };
192
315
  /**
193
316
  * Run response schema
@@ -202,6 +325,7 @@ export type RunResponse = {
202
325
  output_data: {
203
326
  [key: string]: unknown;
204
327
  } | null;
328
+ input_attachment_ids: Array<string> | null;
205
329
  output_attachment_ids: Array<string> | null;
206
330
  run_message_history: Array<{
207
331
  [key: string]: unknown;
@@ -298,6 +422,10 @@ export type WorkflowCreate = {
298
422
  * JSON schema for output data transformation
299
423
  */
300
424
  output_schema?: string | null;
425
+ /**
426
+ * Enable AI-based file export detection
427
+ */
428
+ includes_file_exports?: boolean;
301
429
  };
302
430
  /**
303
431
  * Workflow response schema
@@ -309,6 +437,10 @@ export type WorkflowResponse = {
309
437
  * JSON schema for output data transformation
310
438
  */
311
439
  output_schema?: string | null;
440
+ /**
441
+ * Enable AI-based file export detection
442
+ */
443
+ includes_file_exports?: boolean;
312
444
  id: string;
313
445
  user_id: string;
314
446
  includes_input_variables?: boolean;
@@ -328,6 +460,10 @@ export type WorkflowUpdate = {
328
460
  * JSON schema for output data transformation
329
461
  */
330
462
  output_schema?: string | null;
463
+ /**
464
+ * Enable AI-based file export detection
465
+ */
466
+ includes_file_exports?: boolean | null;
331
467
  };
332
468
  export type HealthCheckV1HealthGetData = {
333
469
  body?: never;
@@ -726,6 +862,171 @@ export type UpdateRunV1RunsRunIdPatchResponses = {
726
862
  200: RunResponse;
727
863
  };
728
864
  export type UpdateRunV1RunsRunIdPatchResponse = UpdateRunV1RunsRunIdPatchResponses[keyof UpdateRunV1RunsRunIdPatchResponses];
865
+ export type ListRunAttachmentsV1RunAttachmentsGetData = {
866
+ body?: never;
867
+ path?: never;
868
+ query?: {
869
+ /**
870
+ * Filter by run ID
871
+ */
872
+ run_id?: string | null;
873
+ /**
874
+ * Filter by attachment type
875
+ */
876
+ attachment_type?: AttachmentType | null;
877
+ skip?: number;
878
+ limit?: number;
879
+ };
880
+ url: '/v1/run-attachments';
881
+ };
882
+ export type ListRunAttachmentsV1RunAttachmentsGetErrors = {
883
+ /**
884
+ * Validation Error
885
+ */
886
+ 422: HttpValidationError;
887
+ };
888
+ export type ListRunAttachmentsV1RunAttachmentsGetError = ListRunAttachmentsV1RunAttachmentsGetErrors[keyof ListRunAttachmentsV1RunAttachmentsGetErrors];
889
+ export type ListRunAttachmentsV1RunAttachmentsGetResponses = {
890
+ /**
891
+ * Successful Response
892
+ */
893
+ 200: PaginatedResponseRunAttachmentResponse;
894
+ };
895
+ export type ListRunAttachmentsV1RunAttachmentsGetResponse = ListRunAttachmentsV1RunAttachmentsGetResponses[keyof ListRunAttachmentsV1RunAttachmentsGetResponses];
896
+ export type CreateRunAttachmentV1RunAttachmentsPostData = {
897
+ body: RunAttachmentCreate;
898
+ path?: never;
899
+ query?: never;
900
+ url: '/v1/run-attachments';
901
+ };
902
+ export type CreateRunAttachmentV1RunAttachmentsPostErrors = {
903
+ /**
904
+ * Validation Error
905
+ */
906
+ 422: HttpValidationError;
907
+ };
908
+ export type CreateRunAttachmentV1RunAttachmentsPostError = CreateRunAttachmentV1RunAttachmentsPostErrors[keyof CreateRunAttachmentV1RunAttachmentsPostErrors];
909
+ export type CreateRunAttachmentV1RunAttachmentsPostResponses = {
910
+ /**
911
+ * Successful Response
912
+ */
913
+ 201: RunAttachmentResponse;
914
+ };
915
+ export type CreateRunAttachmentV1RunAttachmentsPostResponse = CreateRunAttachmentV1RunAttachmentsPostResponses[keyof CreateRunAttachmentV1RunAttachmentsPostResponses];
916
+ export type DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteData = {
917
+ body?: never;
918
+ path: {
919
+ attachment_id: string;
920
+ };
921
+ query?: never;
922
+ url: '/v1/run-attachments/{attachment_id}';
923
+ };
924
+ export type DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteErrors = {
925
+ /**
926
+ * Validation Error
927
+ */
928
+ 422: HttpValidationError;
929
+ };
930
+ export type DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteError = DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteErrors[keyof DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteErrors];
931
+ export type DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteResponses = {
932
+ /**
933
+ * Successful Response
934
+ */
935
+ 204: void;
936
+ };
937
+ export type DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteResponse = DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteResponses[keyof DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteResponses];
938
+ export type GetRunAttachmentV1RunAttachmentsAttachmentIdGetData = {
939
+ body?: never;
940
+ path: {
941
+ attachment_id: string;
942
+ };
943
+ query?: never;
944
+ url: '/v1/run-attachments/{attachment_id}';
945
+ };
946
+ export type GetRunAttachmentV1RunAttachmentsAttachmentIdGetErrors = {
947
+ /**
948
+ * Validation Error
949
+ */
950
+ 422: HttpValidationError;
951
+ };
952
+ export type GetRunAttachmentV1RunAttachmentsAttachmentIdGetError = GetRunAttachmentV1RunAttachmentsAttachmentIdGetErrors[keyof GetRunAttachmentV1RunAttachmentsAttachmentIdGetErrors];
953
+ export type GetRunAttachmentV1RunAttachmentsAttachmentIdGetResponses = {
954
+ /**
955
+ * Successful Response
956
+ */
957
+ 200: RunAttachmentResponse;
958
+ };
959
+ export type GetRunAttachmentV1RunAttachmentsAttachmentIdGetResponse = GetRunAttachmentV1RunAttachmentsAttachmentIdGetResponses[keyof GetRunAttachmentV1RunAttachmentsAttachmentIdGetResponses];
960
+ export type UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutData = {
961
+ body: RunAttachmentUpdate;
962
+ path: {
963
+ attachment_id: string;
964
+ };
965
+ query?: never;
966
+ url: '/v1/run-attachments/{attachment_id}';
967
+ };
968
+ export type UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutErrors = {
969
+ /**
970
+ * Validation Error
971
+ */
972
+ 422: HttpValidationError;
973
+ };
974
+ export type UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutError = UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutErrors[keyof UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutErrors];
975
+ export type UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutResponses = {
976
+ /**
977
+ * Successful Response
978
+ */
979
+ 200: RunAttachmentResponse;
980
+ };
981
+ export type UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutResponse = UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutResponses[keyof UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutResponses];
982
+ export type GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetData = {
983
+ body?: never;
984
+ path: {
985
+ attachment_id: string;
986
+ };
987
+ query?: {
988
+ /**
989
+ * URL expiration time in seconds (10-3600)
990
+ */
991
+ expires_in?: number;
992
+ };
993
+ url: '/v1/run-attachments/{attachment_id}/download-url';
994
+ };
995
+ export type GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetErrors = {
996
+ /**
997
+ * Validation Error
998
+ */
999
+ 422: HttpValidationError;
1000
+ };
1001
+ export type GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetError = GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetErrors[keyof GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetErrors];
1002
+ export type GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetResponses = {
1003
+ /**
1004
+ * Successful Response
1005
+ */
1006
+ 200: RunAttachmentDownloadUrlResponse;
1007
+ };
1008
+ export type GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetResponse = GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetResponses[keyof GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetResponses];
1009
+ export type DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetData = {
1010
+ body?: never;
1011
+ path: {
1012
+ attachment_id: string;
1013
+ };
1014
+ query?: never;
1015
+ url: '/v1/run-attachments/{attachment_id}/download';
1016
+ };
1017
+ export type DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetErrors = {
1018
+ /**
1019
+ * Validation Error
1020
+ */
1021
+ 422: HttpValidationError;
1022
+ };
1023
+ export type DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetError = DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetErrors[keyof DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetErrors];
1024
+ export type DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetResponses = {
1025
+ /**
1026
+ * Successful Response
1027
+ */
1028
+ 200: unknown;
1029
+ };
729
1030
  export type ListConnectionsV1ConnectionsGetData = {
730
1031
  body?: never;
731
1032
  path?: never;
@@ -1252,6 +1553,130 @@ export type MouseClickV1ComputerMachineIdInputMouseClickPostResponses = {
1252
1553
  204: void;
1253
1554
  };
1254
1555
  export type MouseClickV1ComputerMachineIdInputMouseClickPostResponse = MouseClickV1ComputerMachineIdInputMouseClickPostResponses[keyof MouseClickV1ComputerMachineIdInputMouseClickPostResponses];
1556
+ export type FsListV1ComputerMachineIdFsListGetData = {
1557
+ body?: never;
1558
+ path: {
1559
+ machine_id: string;
1560
+ };
1561
+ query?: {
1562
+ path?: string;
1563
+ };
1564
+ url: '/v1/computer/{machine_id}/fs/list';
1565
+ };
1566
+ export type FsListV1ComputerMachineIdFsListGetErrors = {
1567
+ /**
1568
+ * Validation Error
1569
+ */
1570
+ 422: HttpValidationError;
1571
+ };
1572
+ export type FsListV1ComputerMachineIdFsListGetError = FsListV1ComputerMachineIdFsListGetErrors[keyof FsListV1ComputerMachineIdFsListGetErrors];
1573
+ export type FsListV1ComputerMachineIdFsListGetResponses = {
1574
+ /**
1575
+ * Successful Response
1576
+ */
1577
+ 200: {
1578
+ [key: string]: unknown;
1579
+ };
1580
+ };
1581
+ export type FsListV1ComputerMachineIdFsListGetResponse = FsListV1ComputerMachineIdFsListGetResponses[keyof FsListV1ComputerMachineIdFsListGetResponses];
1582
+ export type FsReadV1ComputerMachineIdFsReadGetData = {
1583
+ body?: never;
1584
+ path: {
1585
+ machine_id: string;
1586
+ };
1587
+ query: {
1588
+ path: string;
1589
+ };
1590
+ url: '/v1/computer/{machine_id}/fs/read';
1591
+ };
1592
+ export type FsReadV1ComputerMachineIdFsReadGetErrors = {
1593
+ /**
1594
+ * Validation Error
1595
+ */
1596
+ 422: HttpValidationError;
1597
+ };
1598
+ export type FsReadV1ComputerMachineIdFsReadGetError = FsReadV1ComputerMachineIdFsReadGetErrors[keyof FsReadV1ComputerMachineIdFsReadGetErrors];
1599
+ export type FsReadV1ComputerMachineIdFsReadGetResponses = {
1600
+ /**
1601
+ * Successful Response
1602
+ */
1603
+ 200: {
1604
+ [key: string]: unknown;
1605
+ };
1606
+ };
1607
+ export type FsReadV1ComputerMachineIdFsReadGetResponse = FsReadV1ComputerMachineIdFsReadGetResponses[keyof FsReadV1ComputerMachineIdFsReadGetResponses];
1608
+ export type FsWriteV1ComputerMachineIdFsWritePostData = {
1609
+ body: FileWriteRequest;
1610
+ path: {
1611
+ machine_id: string;
1612
+ };
1613
+ query?: never;
1614
+ url: '/v1/computer/{machine_id}/fs/write';
1615
+ };
1616
+ export type FsWriteV1ComputerMachineIdFsWritePostErrors = {
1617
+ /**
1618
+ * Validation Error
1619
+ */
1620
+ 422: HttpValidationError;
1621
+ };
1622
+ export type FsWriteV1ComputerMachineIdFsWritePostError = FsWriteV1ComputerMachineIdFsWritePostErrors[keyof FsWriteV1ComputerMachineIdFsWritePostErrors];
1623
+ export type FsWriteV1ComputerMachineIdFsWritePostResponses = {
1624
+ /**
1625
+ * Successful Response
1626
+ */
1627
+ 200: {
1628
+ [key: string]: unknown;
1629
+ };
1630
+ };
1631
+ export type FsWriteV1ComputerMachineIdFsWritePostResponse = FsWriteV1ComputerMachineIdFsWritePostResponses[keyof FsWriteV1ComputerMachineIdFsWritePostResponses];
1632
+ export type PowershellExecV1ComputerMachineIdShellPowershellExecPostData = {
1633
+ body: PowerShellExecRequest;
1634
+ path: {
1635
+ machine_id: string;
1636
+ };
1637
+ query?: never;
1638
+ url: '/v1/computer/{machine_id}/shell/powershell/exec';
1639
+ };
1640
+ export type PowershellExecV1ComputerMachineIdShellPowershellExecPostErrors = {
1641
+ /**
1642
+ * Validation Error
1643
+ */
1644
+ 422: HttpValidationError;
1645
+ };
1646
+ export type PowershellExecV1ComputerMachineIdShellPowershellExecPostError = PowershellExecV1ComputerMachineIdShellPowershellExecPostErrors[keyof PowershellExecV1ComputerMachineIdShellPowershellExecPostErrors];
1647
+ export type PowershellExecV1ComputerMachineIdShellPowershellExecPostResponses = {
1648
+ /**
1649
+ * Successful Response
1650
+ */
1651
+ 200: {
1652
+ [key: string]: unknown;
1653
+ };
1654
+ };
1655
+ export type PowershellExecV1ComputerMachineIdShellPowershellExecPostResponse = PowershellExecV1ComputerMachineIdShellPowershellExecPostResponses[keyof PowershellExecV1ComputerMachineIdShellPowershellExecPostResponses];
1656
+ export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData = {
1657
+ body: PowerShellSessionRequest;
1658
+ path: {
1659
+ machine_id: string;
1660
+ };
1661
+ query?: never;
1662
+ url: '/v1/computer/{machine_id}/shell/powershell/session';
1663
+ };
1664
+ export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostErrors = {
1665
+ /**
1666
+ * Validation Error
1667
+ */
1668
+ 422: HttpValidationError;
1669
+ };
1670
+ export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostError = PowershellSessionV1ComputerMachineIdShellPowershellSessionPostErrors[keyof PowershellSessionV1ComputerMachineIdShellPowershellSessionPostErrors];
1671
+ export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponses = {
1672
+ /**
1673
+ * Successful Response
1674
+ */
1675
+ 200: {
1676
+ [key: string]: unknown;
1677
+ };
1678
+ };
1679
+ export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponse = PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponses[keyof PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponses];
1255
1680
  export type DummyTestEndpointV1TestPostData = {
1256
1681
  body?: never;
1257
1682
  path?: never;
@@ -1280,5 +1705,5 @@ export type RootGetResponses = {
1280
1705
  200: unknown;
1281
1706
  };
1282
1707
  export type ClientOptions = {
1283
- baseUrl: `${string}://${string}` | (string & {});
1708
+ baseUrl: 'https://api.cyberdesk.io' | (string & {});
1284
1709
  };