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.
package/README.md CHANGED
@@ -10,28 +10,48 @@ npm install cyberdesk
10
10
 
11
11
  ## Quick Start
12
12
 
13
+ The most common use case is to execute workflows that you've created in the [Cyberdesk Dashboard](https://cyberdesk.io/dashboard).
14
+
13
15
  ```typescript
14
16
  import { createCyberdeskClient } from 'cyberdesk';
15
17
 
16
18
  // Initialize client with your API key
17
19
  const client = createCyberdeskClient('your-api-key');
18
20
 
19
- // List machines with full type safety
20
- const { data } = await client.machines.list({
21
- status: 'connected', // ✅ Typed enum
22
- limit: 10
23
- });
24
-
25
- // Create a workflow
26
- const workflow = await client.workflows.create({
27
- main_prompt: "Automate my tasks",
28
- cleanup_prompt: "Clean up afterwards"
21
+ // Create a run for your workflow
22
+ const { data: run } = await client.runs.create({
23
+ workflow_id: 'your-workflow-id',
24
+ machine_id: 'your-machine-id',
25
+ input_values: {
26
+ // Your workflow-specific input data
27
+ patient_id: '12345',
28
+ patient_first_name: 'John',
29
+ patient_last_name: 'Doe'
30
+ }
29
31
  });
30
32
 
31
- // All responses are fully typed!
32
- console.log(data?.items); // MachineResponse[]
33
+ // Wait for the run to complete
34
+ let status = run.status;
35
+ while (status === 'scheduling' || status === 'running') {
36
+ await new Promise(resolve => setTimeout(resolve, 5000)); // Wait 5 seconds
37
+ const { data: updatedRun } = await client.runs.get(run.id);
38
+ status = updatedRun.status;
39
+ }
40
+
41
+ // Get the output data
42
+ if (status === 'success') {
43
+ console.log('Result:', updatedRun.output_data);
44
+ } else {
45
+ console.error('Run failed:', updatedRun.error?.join(', '));
46
+ }
33
47
  ```
34
48
 
49
+ ## Full Documentation
50
+
51
+ For complete documentation including advanced usage, error handling, and all available methods, visit:
52
+
53
+ **[https://docs.cyberdesk.io/sdk-guides/typescript](https://docs.cyberdesk.io/sdk-guides/typescript)**
54
+
35
55
  ## Custom Base URL
36
56
 
37
57
  ```typescript
@@ -3,4 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.client = void 0;
5
5
  const client_fetch_1 = require("@hey-api/client-fetch");
6
- exports.client = (0, client_fetch_1.createClient)((0, client_fetch_1.createConfig)());
6
+ exports.client = (0, client_fetch_1.createClient)((0, client_fetch_1.createConfig)({
7
+ baseUrl: 'https://api.cyberdesk.io'
8
+ }));
@@ -1,5 +1,5 @@
1
1
  import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
2
- import type { HealthCheckV1HealthGetData, DatabaseHealthCheckV1HealthDbGetData, ListMachinesV1MachinesGetData, CreateMachineV1MachinesPostData, DeleteMachineV1MachinesMachineIdDeleteData, GetMachineV1MachinesMachineIdGetData, UpdateMachineV1MachinesMachineIdPatchData, ListWorkflowsV1WorkflowsGetData, CreateWorkflowV1WorkflowsPostData, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, ListRunsV1RunsGetData, CreateRunV1RunsPostData, DeleteRunV1RunsRunIdDeleteData, GetRunV1RunsRunIdGetData, UpdateRunV1RunsRunIdPatchData, ListConnectionsV1ConnectionsGetData, CreateConnectionV1ConnectionsPostData, DeleteConnectionV1ConnectionsConnectionIdDeleteData, GetConnectionV1ConnectionsConnectionIdGetData, UpdateConnectionV1ConnectionsConnectionIdPatchData, ListRequestLogsV1RequestLogsGetData, CreateRequestLogV1RequestLogsPostData, DeleteRequestLogV1RequestLogsLogIdDeleteData, GetRequestLogV1RequestLogsLogIdGetData, UpdateRequestLogV1RequestLogsLogIdPatchData, ListTrajectoriesV1TrajectoriesGetData, CreateTrajectoryV1TrajectoriesPostData, DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData, GetTrajectoryV1TrajectoriesTrajectoryIdGetData, UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData, GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData, GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData, KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, DummyTestEndpointV1TestPostData, RootGetData } from './types.gen';
2
+ import type { HealthCheckV1HealthGetData, DatabaseHealthCheckV1HealthDbGetData, ListMachinesV1MachinesGetData, CreateMachineV1MachinesPostData, DeleteMachineV1MachinesMachineIdDeleteData, GetMachineV1MachinesMachineIdGetData, UpdateMachineV1MachinesMachineIdPatchData, ListWorkflowsV1WorkflowsGetData, CreateWorkflowV1WorkflowsPostData, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, ListRunsV1RunsGetData, CreateRunV1RunsPostData, DeleteRunV1RunsRunIdDeleteData, GetRunV1RunsRunIdGetData, UpdateRunV1RunsRunIdPatchData, ListRunAttachmentsV1RunAttachmentsGetData, CreateRunAttachmentV1RunAttachmentsPostData, DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteData, GetRunAttachmentV1RunAttachmentsAttachmentIdGetData, UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutData, GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetData, DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetData, ListConnectionsV1ConnectionsGetData, CreateConnectionV1ConnectionsPostData, DeleteConnectionV1ConnectionsConnectionIdDeleteData, GetConnectionV1ConnectionsConnectionIdGetData, UpdateConnectionV1ConnectionsConnectionIdPatchData, ListRequestLogsV1RequestLogsGetData, CreateRequestLogV1RequestLogsPostData, DeleteRequestLogV1RequestLogsLogIdDeleteData, GetRequestLogV1RequestLogsLogIdGetData, UpdateRequestLogV1RequestLogsLogIdPatchData, ListTrajectoriesV1TrajectoriesGetData, CreateTrajectoryV1TrajectoriesPostData, DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData, GetTrajectoryV1TrajectoriesTrajectoryIdGetData, UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData, GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData, GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData, KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, DummyTestEndpointV1TestPostData, RootGetData } from './types.gen';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -157,6 +157,60 @@ export declare const getRunV1RunsRunIdGet: <ThrowOnError extends boolean = false
157
157
  * The run must belong to the authenticated user.
158
158
  */
159
159
  export declare const updateRunV1RunsRunIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateRunV1RunsRunIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
160
+ /**
161
+ * List Run Attachments
162
+ * List all run attachments for the authenticated user.
163
+ *
164
+ * Supports pagination and filtering by run ID and attachment type.
165
+ */
166
+ export declare const listRunAttachmentsV1RunAttachmentsGet: <ThrowOnError extends boolean = false>(options?: Options<ListRunAttachmentsV1RunAttachmentsGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PaginatedResponseRunAttachmentResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
167
+ /**
168
+ * Create Run Attachment
169
+ * Create a new run attachment.
170
+ *
171
+ * This endpoint is primarily for internal use. File uploads typically happen
172
+ * through the run creation endpoint.
173
+ */
174
+ export declare const createRunAttachmentV1RunAttachmentsPost: <ThrowOnError extends boolean = false>(options: Options<CreateRunAttachmentV1RunAttachmentsPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunAttachmentResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
175
+ /**
176
+ * Delete Run Attachment
177
+ * Delete a run attachment.
178
+ *
179
+ * This will remove both the database record and the file from Supabase storage.
180
+ */
181
+ export declare const deleteRunAttachmentV1RunAttachmentsAttachmentIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
182
+ /**
183
+ * Get Run Attachment
184
+ * Get a specific run attachment by ID.
185
+ *
186
+ * Returns attachment metadata only. Use the download endpoint to get file content.
187
+ */
188
+ export declare const getRunAttachmentV1RunAttachmentsAttachmentIdGet: <ThrowOnError extends boolean = false>(options: Options<GetRunAttachmentV1RunAttachmentsAttachmentIdGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunAttachmentResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
189
+ /**
190
+ * Update Run Attachment
191
+ * Update a run attachment.
192
+ *
193
+ * Currently only supports updating the expiration date.
194
+ */
195
+ export declare const updateRunAttachmentV1RunAttachmentsAttachmentIdPut: <ThrowOnError extends boolean = false>(options: Options<UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunAttachmentResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
196
+ /**
197
+ * Get Run Attachment Download Url
198
+ * Get a signed download URL for a run attachment file.
199
+ *
200
+ * Returns a signed URL that triggers automatic download when accessed.
201
+ *
202
+ * Args:
203
+ * attachment_id: The ID of the attachment to download
204
+ * expires_in: URL expiration time in seconds (10-3600). Default: 300 (5 minutes)
205
+ */
206
+ export declare const getRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGet: <ThrowOnError extends boolean = false>(options: Options<GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunAttachmentDownloadUrlResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
207
+ /**
208
+ * Download Run Attachment
209
+ * Download a run attachment file.
210
+ *
211
+ * Returns the raw file content as a streaming response.
212
+ */
213
+ export declare const downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet: <ThrowOnError extends boolean = false>(options: Options<DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, import("./types.gen").HttpValidationError, ThrowOnError>;
160
214
  /**
161
215
  * List Connections
162
216
  * List all connections for the authenticated user's machines.
@@ -315,6 +369,41 @@ export declare const mouseMoveV1ComputerMachineIdInputMouseMovePost: <ThrowOnErr
315
369
  * If coordinates are not provided, clicks at current position.
316
370
  */
317
371
  export declare const mouseClickV1ComputerMachineIdInputMouseClickPost: <ThrowOnError extends boolean = false>(options: Options<MouseClickV1ComputerMachineIdInputMouseClickPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
372
+ /**
373
+ * List directory contents
374
+ * List directory contents on the machine.
375
+ */
376
+ export declare const fsListV1ComputerMachineIdFsListGet: <ThrowOnError extends boolean = false>(options: Options<FsListV1ComputerMachineIdFsListGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
377
+ [key: string]: unknown;
378
+ }, import("./types.gen").HttpValidationError, ThrowOnError>;
379
+ /**
380
+ * Read file contents
381
+ * Read file contents from the machine (base64 encoded).
382
+ */
383
+ export declare const fsReadV1ComputerMachineIdFsReadGet: <ThrowOnError extends boolean = false>(options: Options<FsReadV1ComputerMachineIdFsReadGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
384
+ [key: string]: unknown;
385
+ }, import("./types.gen").HttpValidationError, ThrowOnError>;
386
+ /**
387
+ * Write file contents
388
+ * Write file contents to the machine.
389
+ */
390
+ export declare const fsWriteV1ComputerMachineIdFsWritePost: <ThrowOnError extends boolean = false>(options: Options<FsWriteV1ComputerMachineIdFsWritePostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
391
+ [key: string]: unknown;
392
+ }, import("./types.gen").HttpValidationError, ThrowOnError>;
393
+ /**
394
+ * Execute PowerShell command
395
+ * Execute PowerShell command on the machine.
396
+ */
397
+ export declare const powershellExecV1ComputerMachineIdShellPowershellExecPost: <ThrowOnError extends boolean = false>(options: Options<PowershellExecV1ComputerMachineIdShellPowershellExecPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
398
+ [key: string]: unknown;
399
+ }, import("./types.gen").HttpValidationError, ThrowOnError>;
400
+ /**
401
+ * Manage PowerShell session
402
+ * Create or destroy PowerShell sessions on the machine.
403
+ */
404
+ export declare const powershellSessionV1ComputerMachineIdShellPowershellSessionPost: <ThrowOnError extends boolean = false>(options: Options<PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
405
+ [key: string]: unknown;
406
+ }, import("./types.gen").HttpValidationError, ThrowOnError>;
318
407
  /**
319
408
  * Dummy Test Endpoint
320
409
  * Test endpoint that performs a sequence of actions:
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  // This file is auto-generated by @hey-api/openapi-ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.rootGet = exports.dummyTestEndpointV1TestPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = exports.deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = exports.createTrajectoryV1TrajectoriesPost = exports.listTrajectoriesV1TrajectoriesGet = exports.updateRequestLogV1RequestLogsLogIdPatch = exports.getRequestLogV1RequestLogsLogIdGet = exports.deleteRequestLogV1RequestLogsLogIdDelete = exports.createRequestLogV1RequestLogsPost = exports.listRequestLogsV1RequestLogsGet = exports.updateConnectionV1ConnectionsConnectionIdPatch = exports.getConnectionV1ConnectionsConnectionIdGet = exports.deleteConnectionV1ConnectionsConnectionIdDelete = exports.createConnectionV1ConnectionsPost = exports.listConnectionsV1ConnectionsGet = exports.updateRunV1RunsRunIdPatch = exports.getRunV1RunsRunIdGet = exports.deleteRunV1RunsRunIdDelete = exports.createRunV1RunsPost = exports.listRunsV1RunsGet = exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = exports.updateWorkflowV1WorkflowsWorkflowIdPatch = exports.getWorkflowV1WorkflowsWorkflowIdGet = exports.deleteWorkflowV1WorkflowsWorkflowIdDelete = exports.createWorkflowV1WorkflowsPost = exports.listWorkflowsV1WorkflowsGet = exports.updateMachineV1MachinesMachineIdPatch = exports.getMachineV1MachinesMachineIdGet = exports.deleteMachineV1MachinesMachineIdDelete = exports.createMachineV1MachinesPost = exports.listMachinesV1MachinesGet = exports.databaseHealthCheckV1HealthDbGet = exports.healthCheckV1HealthGet = void 0;
4
+ exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = exports.deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = exports.createTrajectoryV1TrajectoriesPost = exports.listTrajectoriesV1TrajectoriesGet = exports.updateRequestLogV1RequestLogsLogIdPatch = exports.getRequestLogV1RequestLogsLogIdGet = exports.deleteRequestLogV1RequestLogsLogIdDelete = exports.createRequestLogV1RequestLogsPost = exports.listRequestLogsV1RequestLogsGet = exports.updateConnectionV1ConnectionsConnectionIdPatch = exports.getConnectionV1ConnectionsConnectionIdGet = exports.deleteConnectionV1ConnectionsConnectionIdDelete = exports.createConnectionV1ConnectionsPost = exports.listConnectionsV1ConnectionsGet = exports.downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet = exports.getRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGet = exports.updateRunAttachmentV1RunAttachmentsAttachmentIdPut = exports.getRunAttachmentV1RunAttachmentsAttachmentIdGet = exports.deleteRunAttachmentV1RunAttachmentsAttachmentIdDelete = exports.createRunAttachmentV1RunAttachmentsPost = exports.listRunAttachmentsV1RunAttachmentsGet = exports.updateRunV1RunsRunIdPatch = exports.getRunV1RunsRunIdGet = exports.deleteRunV1RunsRunIdDelete = exports.createRunV1RunsPost = exports.listRunsV1RunsGet = exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = exports.updateWorkflowV1WorkflowsWorkflowIdPatch = exports.getWorkflowV1WorkflowsWorkflowIdGet = exports.deleteWorkflowV1WorkflowsWorkflowIdDelete = exports.createWorkflowV1WorkflowsPost = exports.listWorkflowsV1WorkflowsGet = exports.updateMachineV1MachinesMachineIdPatch = exports.getMachineV1MachinesMachineIdGet = exports.deleteMachineV1MachinesMachineIdDelete = exports.createMachineV1MachinesPost = exports.listMachinesV1MachinesGet = exports.databaseHealthCheckV1HealthDbGet = exports.healthCheckV1HealthGet = void 0;
5
+ exports.rootGet = exports.dummyTestEndpointV1TestPost = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = void 0;
5
6
  const client_gen_1 = require("./client.gen");
6
7
  /**
7
8
  * Health Check
@@ -293,6 +294,123 @@ const updateRunV1RunsRunIdPatch = (options) => {
293
294
  ], url: '/v1/runs/{run_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
294
295
  };
295
296
  exports.updateRunV1RunsRunIdPatch = updateRunV1RunsRunIdPatch;
297
+ /**
298
+ * List Run Attachments
299
+ * List all run attachments for the authenticated user.
300
+ *
301
+ * Supports pagination and filtering by run ID and attachment type.
302
+ */
303
+ const listRunAttachmentsV1RunAttachmentsGet = (options) => {
304
+ var _a;
305
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
306
+ {
307
+ scheme: 'bearer',
308
+ type: 'http'
309
+ }
310
+ ], url: '/v1/run-attachments' }, options));
311
+ };
312
+ exports.listRunAttachmentsV1RunAttachmentsGet = listRunAttachmentsV1RunAttachmentsGet;
313
+ /**
314
+ * Create Run Attachment
315
+ * Create a new run attachment.
316
+ *
317
+ * This endpoint is primarily for internal use. File uploads typically happen
318
+ * through the run creation endpoint.
319
+ */
320
+ const createRunAttachmentV1RunAttachmentsPost = (options) => {
321
+ var _a;
322
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
323
+ {
324
+ scheme: 'bearer',
325
+ type: 'http'
326
+ }
327
+ ], url: '/v1/run-attachments' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
328
+ };
329
+ exports.createRunAttachmentV1RunAttachmentsPost = createRunAttachmentV1RunAttachmentsPost;
330
+ /**
331
+ * Delete Run Attachment
332
+ * Delete a run attachment.
333
+ *
334
+ * This will remove both the database record and the file from Supabase storage.
335
+ */
336
+ const deleteRunAttachmentV1RunAttachmentsAttachmentIdDelete = (options) => {
337
+ var _a;
338
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
339
+ {
340
+ scheme: 'bearer',
341
+ type: 'http'
342
+ }
343
+ ], url: '/v1/run-attachments/{attachment_id}' }, options));
344
+ };
345
+ exports.deleteRunAttachmentV1RunAttachmentsAttachmentIdDelete = deleteRunAttachmentV1RunAttachmentsAttachmentIdDelete;
346
+ /**
347
+ * Get Run Attachment
348
+ * Get a specific run attachment by ID.
349
+ *
350
+ * Returns attachment metadata only. Use the download endpoint to get file content.
351
+ */
352
+ const getRunAttachmentV1RunAttachmentsAttachmentIdGet = (options) => {
353
+ var _a;
354
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
355
+ {
356
+ scheme: 'bearer',
357
+ type: 'http'
358
+ }
359
+ ], url: '/v1/run-attachments/{attachment_id}' }, options));
360
+ };
361
+ exports.getRunAttachmentV1RunAttachmentsAttachmentIdGet = getRunAttachmentV1RunAttachmentsAttachmentIdGet;
362
+ /**
363
+ * Update Run Attachment
364
+ * Update a run attachment.
365
+ *
366
+ * Currently only supports updating the expiration date.
367
+ */
368
+ const updateRunAttachmentV1RunAttachmentsAttachmentIdPut = (options) => {
369
+ var _a;
370
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put(Object.assign(Object.assign({ security: [
371
+ {
372
+ scheme: 'bearer',
373
+ type: 'http'
374
+ }
375
+ ], url: '/v1/run-attachments/{attachment_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
376
+ };
377
+ exports.updateRunAttachmentV1RunAttachmentsAttachmentIdPut = updateRunAttachmentV1RunAttachmentsAttachmentIdPut;
378
+ /**
379
+ * Get Run Attachment Download Url
380
+ * Get a signed download URL for a run attachment file.
381
+ *
382
+ * Returns a signed URL that triggers automatic download when accessed.
383
+ *
384
+ * Args:
385
+ * attachment_id: The ID of the attachment to download
386
+ * expires_in: URL expiration time in seconds (10-3600). Default: 300 (5 minutes)
387
+ */
388
+ const getRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGet = (options) => {
389
+ var _a;
390
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
391
+ {
392
+ scheme: 'bearer',
393
+ type: 'http'
394
+ }
395
+ ], url: '/v1/run-attachments/{attachment_id}/download-url' }, options));
396
+ };
397
+ exports.getRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGet = getRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGet;
398
+ /**
399
+ * Download Run Attachment
400
+ * Download a run attachment file.
401
+ *
402
+ * Returns the raw file content as a streaming response.
403
+ */
404
+ const downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet = (options) => {
405
+ var _a;
406
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
407
+ {
408
+ scheme: 'bearer',
409
+ type: 'http'
410
+ }
411
+ ], url: '/v1/run-attachments/{attachment_id}/download' }, options));
412
+ };
413
+ exports.downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet = downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet;
296
414
  /**
297
415
  * List Connections
298
416
  * List all connections for the authenticated user's machines.
@@ -658,6 +776,76 @@ const mouseClickV1ComputerMachineIdInputMouseClickPost = (options) => {
658
776
  ], url: '/v1/computer/{machine_id}/input/mouse/click' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
659
777
  };
660
778
  exports.mouseClickV1ComputerMachineIdInputMouseClickPost = mouseClickV1ComputerMachineIdInputMouseClickPost;
779
+ /**
780
+ * List directory contents
781
+ * List directory contents on the machine.
782
+ */
783
+ const fsListV1ComputerMachineIdFsListGet = (options) => {
784
+ var _a;
785
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
786
+ {
787
+ scheme: 'bearer',
788
+ type: 'http'
789
+ }
790
+ ], url: '/v1/computer/{machine_id}/fs/list' }, options));
791
+ };
792
+ exports.fsListV1ComputerMachineIdFsListGet = fsListV1ComputerMachineIdFsListGet;
793
+ /**
794
+ * Read file contents
795
+ * Read file contents from the machine (base64 encoded).
796
+ */
797
+ const fsReadV1ComputerMachineIdFsReadGet = (options) => {
798
+ var _a;
799
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
800
+ {
801
+ scheme: 'bearer',
802
+ type: 'http'
803
+ }
804
+ ], url: '/v1/computer/{machine_id}/fs/read' }, options));
805
+ };
806
+ exports.fsReadV1ComputerMachineIdFsReadGet = fsReadV1ComputerMachineIdFsReadGet;
807
+ /**
808
+ * Write file contents
809
+ * Write file contents to the machine.
810
+ */
811
+ const fsWriteV1ComputerMachineIdFsWritePost = (options) => {
812
+ var _a;
813
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
814
+ {
815
+ scheme: 'bearer',
816
+ type: 'http'
817
+ }
818
+ ], url: '/v1/computer/{machine_id}/fs/write' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
819
+ };
820
+ exports.fsWriteV1ComputerMachineIdFsWritePost = fsWriteV1ComputerMachineIdFsWritePost;
821
+ /**
822
+ * Execute PowerShell command
823
+ * Execute PowerShell command on the machine.
824
+ */
825
+ const powershellExecV1ComputerMachineIdShellPowershellExecPost = (options) => {
826
+ var _a;
827
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
828
+ {
829
+ scheme: 'bearer',
830
+ type: 'http'
831
+ }
832
+ ], url: '/v1/computer/{machine_id}/shell/powershell/exec' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
833
+ };
834
+ exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = powershellExecV1ComputerMachineIdShellPowershellExecPost;
835
+ /**
836
+ * Manage PowerShell session
837
+ * Create or destroy PowerShell sessions on the machine.
838
+ */
839
+ const powershellSessionV1ComputerMachineIdShellPowershellSessionPost = (options) => {
840
+ var _a;
841
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
842
+ {
843
+ scheme: 'bearer',
844
+ type: 'http'
845
+ }
846
+ ], url: '/v1/computer/{machine_id}/shell/powershell/session' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
847
+ };
848
+ exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = powershellSessionV1ComputerMachineIdShellPowershellSessionPost;
661
849
  /**
662
850
  * Dummy Test Endpoint
663
851
  * Test endpoint that performs a sequence of actions: