cyberdesk 1.10.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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, 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';
2
+ import type { HealthCheckV1HealthGetData, DatabaseHealthCheckV1HealthDbGetData, ListMachinesV1MachinesGetData, CreateMachineV1MachinesPostData, DeleteMachineV1MachinesMachineIdDeleteData, GetMachineV1MachinesMachineIdGetData, UpdateMachineV1MachinesMachineIdPatchData, ListWorkflowsV1WorkflowsGetData, CreateWorkflowV1WorkflowsPostData, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, ListRunsV1RunsGetData, CreateRunV1RunsPostData, DeleteRunV1RunsRunIdDeleteData, GetRunV1RunsRunIdGetData, UpdateRunV1RunsRunIdPatchData, BulkCreateRunsV1RunsBulkPostData, 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
@@ -33,7 +33,7 @@ export declare const databaseHealthCheckV1HealthDbGet: <ThrowOnError extends boo
33
33
  }, unknown, ThrowOnError>;
34
34
  /**
35
35
  * List Machines
36
- * List all machines for the authenticated user.
36
+ * List all machines for the authenticated organization.
37
37
  *
38
38
  * Supports pagination and filtering by status.
39
39
  */
@@ -42,7 +42,7 @@ export declare const listMachinesV1MachinesGet: <ThrowOnError extends boolean =
42
42
  * Create Machine
43
43
  * Create a new machine.
44
44
  *
45
- * The machine will be associated with the authenticated user.
45
+ * The machine will be associated with the authenticated organization.
46
46
  */
47
47
  export declare const createMachineV1MachinesPost: <ThrowOnError extends boolean = false>(options: Options<CreateMachineV1MachinesPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").MachineResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
48
48
  /**
@@ -50,14 +50,14 @@ export declare const createMachineV1MachinesPost: <ThrowOnError extends boolean
50
50
  * Delete a machine.
51
51
  *
52
52
  * This will also delete all associated connections, request logs, and runs.
53
- * The machine must belong to the authenticated user.
53
+ * The machine must belong to the authenticated organization.
54
54
  */
55
55
  export declare const deleteMachineV1MachinesMachineIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteMachineV1MachinesMachineIdDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
56
56
  /**
57
57
  * Get Machine
58
58
  * Get a specific machine by ID.
59
59
  *
60
- * The machine must belong to the authenticated user.
60
+ * The machine must belong to the authenticated organization.
61
61
  */
62
62
  export declare const getMachineV1MachinesMachineIdGet: <ThrowOnError extends boolean = false>(options: Options<GetMachineV1MachinesMachineIdGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").MachineResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
63
63
  /**
@@ -65,12 +65,12 @@ export declare const getMachineV1MachinesMachineIdGet: <ThrowOnError extends boo
65
65
  * Update a machine's information.
66
66
  *
67
67
  * Only the fields provided in the request body will be updated.
68
- * The machine must belong to the authenticated user.
68
+ * The machine must belong to the authenticated organization.
69
69
  */
70
70
  export declare const updateMachineV1MachinesMachineIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateMachineV1MachinesMachineIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").MachineResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
71
71
  /**
72
72
  * List Workflows
73
- * List all workflows for the authenticated user.
73
+ * List all workflows for the authenticated organization.
74
74
  *
75
75
  * Supports pagination and returns workflows ordered by updated_at descending.
76
76
  */
@@ -79,7 +79,7 @@ export declare const listWorkflowsV1WorkflowsGet: <ThrowOnError extends boolean
79
79
  * Create Workflow
80
80
  * Create a new workflow.
81
81
  *
82
- * The workflow will be associated with the authenticated user.
82
+ * The workflow will be associated with the authenticated organization.
83
83
  */
84
84
  export declare const createWorkflowV1WorkflowsPost: <ThrowOnError extends boolean = false>(options: Options<CreateWorkflowV1WorkflowsPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").WorkflowResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
85
85
  /**
@@ -87,14 +87,14 @@ export declare const createWorkflowV1WorkflowsPost: <ThrowOnError extends boolea
87
87
  * Delete a workflow.
88
88
  *
89
89
  * This will also delete all associated runs and trajectories.
90
- * The workflow must belong to the authenticated user.
90
+ * The workflow must belong to the authenticated organization.
91
91
  */
92
92
  export declare const deleteWorkflowV1WorkflowsWorkflowIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
93
93
  /**
94
94
  * Get Workflow
95
95
  * Get a specific workflow by ID.
96
96
  *
97
- * The workflow must belong to the authenticated user.
97
+ * The workflow must belong to the authenticated organization.
98
98
  */
99
99
  export declare const getWorkflowV1WorkflowsWorkflowIdGet: <ThrowOnError extends boolean = false>(options: Options<GetWorkflowV1WorkflowsWorkflowIdGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").WorkflowResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
100
100
  /**
@@ -103,7 +103,7 @@ export declare const getWorkflowV1WorkflowsWorkflowIdGet: <ThrowOnError extends
103
103
  *
104
104
  * The current version will be saved to the version history.
105
105
  * Only the fields provided in the request body will be updated.
106
- * The workflow must belong to the authenticated user.
106
+ * The workflow must belong to the authenticated organization.
107
107
  */
108
108
  export declare const updateWorkflowV1WorkflowsWorkflowIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkflowV1WorkflowsWorkflowIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").WorkflowResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
109
109
  /**
@@ -111,14 +111,14 @@ export declare const updateWorkflowV1WorkflowsWorkflowIdPatch: <ThrowOnError ext
111
111
  * Get the version history of a workflow.
112
112
  *
113
113
  * Returns a list of previous versions with their prompts and timestamps.
114
- * The workflow must belong to the authenticated user.
114
+ * The workflow must belong to the authenticated organization.
115
115
  */
116
116
  export declare const getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet: <ThrowOnError extends boolean = false>(options: Options<GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
117
117
  [key: string]: unknown;
118
118
  }[], import("./types.gen").HttpValidationError, ThrowOnError>;
119
119
  /**
120
120
  * List Runs
121
- * List all runs for the authenticated user.
121
+ * List all runs for the authenticated organization.
122
122
  *
123
123
  * Supports pagination and filtering by workflow, machine, and status.
124
124
  * Returns runs with their associated workflow and machine data.
@@ -128,38 +128,50 @@ export declare const listRunsV1RunsGet: <ThrowOnError extends boolean = false>(o
128
128
  * Create Run
129
129
  * Create a new run.
130
130
  *
131
- * The workflow must exist and belong to the authenticated user.
131
+ * The workflow must exist and belong to the authenticated organization.
132
132
  * If machine_id is not provided, an available machine will be automatically selected.
133
- * The run will be created with SCHEDULING status and a Temporal workflow will be started.
133
+ * The run will be created with SCHEDULING status and a Temporal workflow will be started asynchronously.
134
134
  */
135
135
  export declare const createRunV1RunsPost: <ThrowOnError extends boolean = false>(options: Options<CreateRunV1RunsPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
136
136
  /**
137
137
  * Delete Run
138
138
  * Delete a run.
139
139
  *
140
- * The run must belong to the authenticated user.
140
+ * This will also delete all associated attachments and their files.
141
+ * The run must belong to the authenticated organization.
141
142
  */
142
143
  export declare const deleteRunV1RunsRunIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteRunV1RunsRunIdDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
143
144
  /**
144
145
  * Get Run
145
146
  * Get a specific run by ID.
146
147
  *
148
+ * The run must belong to the authenticated organization.
147
149
  * Returns the run with its associated workflow and machine data.
148
- * The run must belong to the authenticated user.
149
150
  */
150
151
  export declare const getRunV1RunsRunIdGet: <ThrowOnError extends boolean = false>(options: Options<GetRunV1RunsRunIdGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
151
152
  /**
152
153
  * Update Run
153
- * Update a run's status and data.
154
+ * Update a run's data.
154
155
  *
155
- * Can update status, error messages, output data, attachments, and message history.
156
156
  * Only the fields provided in the request body will be updated.
157
- * The run must belong to the authenticated user.
157
+ * The run must belong to the authenticated organization.
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
+ * Bulk Create Runs
162
+ * Create multiple runs with the same configuration.
163
+ *
164
+ * This endpoint creates multiple runs efficiently:
165
+ * - All runs are created in a single database transaction
166
+ * - Temporal workflows are started asynchronously
167
+ * - Returns immediately with created run details
168
+ *
169
+ * Maximum 1000 runs can be created in a single request.
170
+ */
171
+ export declare const bulkCreateRunsV1RunsBulkPost: <ThrowOnError extends boolean = false>(options: Options<BulkCreateRunsV1RunsBulkPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunBulkCreateResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
160
172
  /**
161
173
  * List Run Attachments
162
- * List all run attachments for the authenticated user.
174
+ * List all run attachments for the authenticated organization.
163
175
  *
164
176
  * Supports pagination and filtering by run ID and attachment type.
165
177
  */
@@ -213,7 +225,7 @@ export declare const getRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDown
213
225
  export declare const downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet: <ThrowOnError extends boolean = false>(options: Options<DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, import("./types.gen").HttpValidationError, ThrowOnError>;
214
226
  /**
215
227
  * List Connections
216
- * List all connections for the authenticated user's machines.
228
+ * List all connections for the authenticated organization's machines.
217
229
  *
218
230
  * Supports pagination and filtering by machine and status.
219
231
  * Returns connections with their associated machine data.
@@ -223,21 +235,21 @@ export declare const listConnectionsV1ConnectionsGet: <ThrowOnError extends bool
223
235
  * Create Connection
224
236
  * Create a new connection (typically done by the WebSocket handler).
225
237
  *
226
- * The machine must exist and belong to the authenticated user.
238
+ * The machine must exist and belong to the authenticated organization.
227
239
  */
228
240
  export declare const createConnectionV1ConnectionsPost: <ThrowOnError extends boolean = false>(options: Options<CreateConnectionV1ConnectionsPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ConnectionResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
229
241
  /**
230
242
  * Delete Connection
231
243
  * Delete a connection (not typically used - connections are managed automatically).
232
244
  *
233
- * The connection must belong to a machine owned by the authenticated user.
245
+ * The connection must belong to a machine owned by the authenticated organization.
234
246
  */
235
247
  export declare const deleteConnectionV1ConnectionsConnectionIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteConnectionV1ConnectionsConnectionIdDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
236
248
  /**
237
249
  * Get Connection
238
250
  * Get a specific connection by ID.
239
251
  *
240
- * The connection must belong to a machine owned by the authenticated user.
252
+ * The connection must belong to a machine owned by the authenticated organization.
241
253
  */
242
254
  export declare const getConnectionV1ConnectionsConnectionIdGet: <ThrowOnError extends boolean = false>(options: Options<GetConnectionV1ConnectionsConnectionIdGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ConnectionResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
243
255
  /**
@@ -245,12 +257,12 @@ export declare const getConnectionV1ConnectionsConnectionIdGet: <ThrowOnError ex
245
257
  * Update a connection's status or timestamps.
246
258
  *
247
259
  * Only the fields provided in the request body will be updated.
248
- * The connection must belong to a machine owned by the authenticated user.
260
+ * The connection must belong to a machine owned by the authenticated organization.
249
261
  */
250
262
  export declare const updateConnectionV1ConnectionsConnectionIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateConnectionV1ConnectionsConnectionIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ConnectionResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
251
263
  /**
252
264
  * List Request Logs
253
- * List all request logs for the authenticated user's machines.
265
+ * List all request logs for the authenticated organization's machines.
254
266
  *
255
267
  * Supports pagination and filtering by machine, HTTP method, and status code.
256
268
  */
@@ -259,7 +271,7 @@ export declare const listRequestLogsV1RequestLogsGet: <ThrowOnError extends bool
259
271
  * Create Request Log
260
272
  * Create a new request log.
261
273
  *
262
- * The machine must exist and belong to the authenticated user.
274
+ * The machine must exist and belong to the authenticated organization.
263
275
  * This is typically called when a request is initiated.
264
276
  */
265
277
  export declare const createRequestLogV1RequestLogsPost: <ThrowOnError extends boolean = false>(options: Options<CreateRequestLogV1RequestLogsPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RequestLogResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
@@ -267,14 +279,14 @@ export declare const createRequestLogV1RequestLogsPost: <ThrowOnError extends bo
267
279
  * Delete Request Log
268
280
  * Delete a request log (not typically used - logs are kept for analytics).
269
281
  *
270
- * The log must belong to a machine owned by the authenticated user.
282
+ * The log must belong to a machine owned by the authenticated organization.
271
283
  */
272
284
  export declare const deleteRequestLogV1RequestLogsLogIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteRequestLogV1RequestLogsLogIdDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
273
285
  /**
274
286
  * Get Request Log
275
287
  * Get a specific request log by ID.
276
288
  *
277
- * The log must belong to a machine owned by the authenticated user.
289
+ * The log must belong to a machine owned by the authenticated organization.
278
290
  */
279
291
  export declare const getRequestLogV1RequestLogsLogIdGet: <ThrowOnError extends boolean = false>(options: Options<GetRequestLogV1RequestLogsLogIdGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RequestLogResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
280
292
  /**
@@ -283,12 +295,12 @@ export declare const getRequestLogV1RequestLogsLogIdGet: <ThrowOnError extends b
283
295
  *
284
296
  * This is typically called when a request completes to add the response details.
285
297
  * Only the fields provided in the request body will be updated.
286
- * The log must belong to a machine owned by the authenticated user.
298
+ * The log must belong to a machine owned by the authenticated organization.
287
299
  */
288
300
  export declare const updateRequestLogV1RequestLogsLogIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateRequestLogV1RequestLogsLogIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RequestLogResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
289
301
  /**
290
302
  * List Trajectories
291
- * List all trajectories for the authenticated user.
303
+ * List all trajectories for the authenticated organization.
292
304
  *
293
305
  * Supports pagination and filtering by workflow.
294
306
  * Returns trajectories with their associated workflow data.
@@ -298,7 +310,7 @@ export declare const listTrajectoriesV1TrajectoriesGet: <ThrowOnError extends bo
298
310
  * Create Trajectory
299
311
  * Create a new trajectory for a workflow.
300
312
  *
301
- * The workflow must exist and belong to the authenticated user.
313
+ * The workflow must exist and belong to the authenticated organization.
302
314
  * The trajectory_data must contain at least one item.
303
315
  */
304
316
  export declare const createTrajectoryV1TrajectoriesPost: <ThrowOnError extends boolean = false>(options: Options<CreateTrajectoryV1TrajectoriesPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").TrajectoryResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
@@ -306,7 +318,7 @@ export declare const createTrajectoryV1TrajectoriesPost: <ThrowOnError extends b
306
318
  * Delete Trajectory
307
319
  * Delete a trajectory.
308
320
  *
309
- * The trajectory must belong to the authenticated user.
321
+ * The trajectory must belong to the authenticated organization.
310
322
  */
311
323
  export declare const deleteTrajectoryV1TrajectoriesTrajectoryIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
312
324
  /**
@@ -314,7 +326,7 @@ export declare const deleteTrajectoryV1TrajectoriesTrajectoryIdDelete: <ThrowOnE
314
326
  * Get a specific trajectory by ID.
315
327
  *
316
328
  * Returns the trajectory with its associated workflow data.
317
- * The trajectory must belong to the authenticated user.
329
+ * The trajectory must belong to the authenticated organization.
318
330
  */
319
331
  export declare const getTrajectoryV1TrajectoriesTrajectoryIdGet: <ThrowOnError extends boolean = false>(options: Options<GetTrajectoryV1TrajectoriesTrajectoryIdGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").TrajectoryResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
320
332
  /**
@@ -322,7 +334,7 @@ export declare const getTrajectoryV1TrajectoriesTrajectoryIdGet: <ThrowOnError e
322
334
  * Update a trajectory's data.
323
335
  *
324
336
  * Only the fields provided in the request body will be updated.
325
- * The trajectory must belong to the authenticated user.
337
+ * The trajectory must belong to the authenticated organization.
326
338
  */
327
339
  export declare const updateTrajectoryV1TrajectoriesTrajectoryIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").TrajectoryResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
328
340
  /**
@@ -330,7 +342,7 @@ export declare const updateTrajectoryV1TrajectoriesTrajectoryIdPatch: <ThrowOnEr
330
342
  * Get the latest trajectory for a specific workflow.
331
343
  *
332
344
  * Returns the most recently updated trajectory for the workflow.
333
- * The workflow must belong to the authenticated user.
345
+ * The workflow must belong to the authenticated organization.
334
346
  */
335
347
  export declare const getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet: <ThrowOnError extends boolean = false>(options: Options<GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").TrajectoryResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
336
348
  /**
@@ -1,8 +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.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;
4
+ 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.bulkCreateRunsV1RunsBulkPost = 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 = exports.fsReadV1ComputerMachineIdFsReadGet = void 0;
6
6
  const client_gen_1 = require("./client.gen");
7
7
  /**
8
8
  * Health Check
@@ -28,7 +28,7 @@ const databaseHealthCheckV1HealthDbGet = (options) => {
28
28
  exports.databaseHealthCheckV1HealthDbGet = databaseHealthCheckV1HealthDbGet;
29
29
  /**
30
30
  * List Machines
31
- * List all machines for the authenticated user.
31
+ * List all machines for the authenticated organization.
32
32
  *
33
33
  * Supports pagination and filtering by status.
34
34
  */
@@ -46,7 +46,7 @@ exports.listMachinesV1MachinesGet = listMachinesV1MachinesGet;
46
46
  * Create Machine
47
47
  * Create a new machine.
48
48
  *
49
- * The machine will be associated with the authenticated user.
49
+ * The machine will be associated with the authenticated organization.
50
50
  */
51
51
  const createMachineV1MachinesPost = (options) => {
52
52
  var _a;
@@ -63,7 +63,7 @@ exports.createMachineV1MachinesPost = createMachineV1MachinesPost;
63
63
  * Delete a machine.
64
64
  *
65
65
  * This will also delete all associated connections, request logs, and runs.
66
- * The machine must belong to the authenticated user.
66
+ * The machine must belong to the authenticated organization.
67
67
  */
68
68
  const deleteMachineV1MachinesMachineIdDelete = (options) => {
69
69
  var _a;
@@ -79,7 +79,7 @@ exports.deleteMachineV1MachinesMachineIdDelete = deleteMachineV1MachinesMachineI
79
79
  * Get Machine
80
80
  * Get a specific machine by ID.
81
81
  *
82
- * The machine must belong to the authenticated user.
82
+ * The machine must belong to the authenticated organization.
83
83
  */
84
84
  const getMachineV1MachinesMachineIdGet = (options) => {
85
85
  var _a;
@@ -96,7 +96,7 @@ exports.getMachineV1MachinesMachineIdGet = getMachineV1MachinesMachineIdGet;
96
96
  * Update a machine's information.
97
97
  *
98
98
  * Only the fields provided in the request body will be updated.
99
- * The machine must belong to the authenticated user.
99
+ * The machine must belong to the authenticated organization.
100
100
  */
101
101
  const updateMachineV1MachinesMachineIdPatch = (options) => {
102
102
  var _a;
@@ -110,7 +110,7 @@ const updateMachineV1MachinesMachineIdPatch = (options) => {
110
110
  exports.updateMachineV1MachinesMachineIdPatch = updateMachineV1MachinesMachineIdPatch;
111
111
  /**
112
112
  * List Workflows
113
- * List all workflows for the authenticated user.
113
+ * List all workflows for the authenticated organization.
114
114
  *
115
115
  * Supports pagination and returns workflows ordered by updated_at descending.
116
116
  */
@@ -128,7 +128,7 @@ exports.listWorkflowsV1WorkflowsGet = listWorkflowsV1WorkflowsGet;
128
128
  * Create Workflow
129
129
  * Create a new workflow.
130
130
  *
131
- * The workflow will be associated with the authenticated user.
131
+ * The workflow will be associated with the authenticated organization.
132
132
  */
133
133
  const createWorkflowV1WorkflowsPost = (options) => {
134
134
  var _a;
@@ -145,7 +145,7 @@ exports.createWorkflowV1WorkflowsPost = createWorkflowV1WorkflowsPost;
145
145
  * Delete a workflow.
146
146
  *
147
147
  * This will also delete all associated runs and trajectories.
148
- * The workflow must belong to the authenticated user.
148
+ * The workflow must belong to the authenticated organization.
149
149
  */
150
150
  const deleteWorkflowV1WorkflowsWorkflowIdDelete = (options) => {
151
151
  var _a;
@@ -161,7 +161,7 @@ exports.deleteWorkflowV1WorkflowsWorkflowIdDelete = deleteWorkflowV1WorkflowsWor
161
161
  * Get Workflow
162
162
  * Get a specific workflow by ID.
163
163
  *
164
- * The workflow must belong to the authenticated user.
164
+ * The workflow must belong to the authenticated organization.
165
165
  */
166
166
  const getWorkflowV1WorkflowsWorkflowIdGet = (options) => {
167
167
  var _a;
@@ -179,7 +179,7 @@ exports.getWorkflowV1WorkflowsWorkflowIdGet = getWorkflowV1WorkflowsWorkflowIdGe
179
179
  *
180
180
  * The current version will be saved to the version history.
181
181
  * Only the fields provided in the request body will be updated.
182
- * The workflow must belong to the authenticated user.
182
+ * The workflow must belong to the authenticated organization.
183
183
  */
184
184
  const updateWorkflowV1WorkflowsWorkflowIdPatch = (options) => {
185
185
  var _a;
@@ -196,7 +196,7 @@ exports.updateWorkflowV1WorkflowsWorkflowIdPatch = updateWorkflowV1WorkflowsWork
196
196
  * Get the version history of a workflow.
197
197
  *
198
198
  * Returns a list of previous versions with their prompts and timestamps.
199
- * The workflow must belong to the authenticated user.
199
+ * The workflow must belong to the authenticated organization.
200
200
  */
201
201
  const getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = (options) => {
202
202
  var _a;
@@ -210,7 +210,7 @@ const getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = (options) => {
210
210
  exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet;
211
211
  /**
212
212
  * List Runs
213
- * List all runs for the authenticated user.
213
+ * List all runs for the authenticated organization.
214
214
  *
215
215
  * Supports pagination and filtering by workflow, machine, and status.
216
216
  * Returns runs with their associated workflow and machine data.
@@ -229,9 +229,9 @@ exports.listRunsV1RunsGet = listRunsV1RunsGet;
229
229
  * Create Run
230
230
  * Create a new run.
231
231
  *
232
- * The workflow must exist and belong to the authenticated user.
232
+ * The workflow must exist and belong to the authenticated organization.
233
233
  * If machine_id is not provided, an available machine will be automatically selected.
234
- * The run will be created with SCHEDULING status and a Temporal workflow will be started.
234
+ * The run will be created with SCHEDULING status and a Temporal workflow will be started asynchronously.
235
235
  */
236
236
  const createRunV1RunsPost = (options) => {
237
237
  var _a;
@@ -247,7 +247,8 @@ exports.createRunV1RunsPost = createRunV1RunsPost;
247
247
  * Delete Run
248
248
  * Delete a run.
249
249
  *
250
- * The run must belong to the authenticated user.
250
+ * This will also delete all associated attachments and their files.
251
+ * The run must belong to the authenticated organization.
251
252
  */
252
253
  const deleteRunV1RunsRunIdDelete = (options) => {
253
254
  var _a;
@@ -263,8 +264,8 @@ exports.deleteRunV1RunsRunIdDelete = deleteRunV1RunsRunIdDelete;
263
264
  * Get Run
264
265
  * Get a specific run by ID.
265
266
  *
267
+ * The run must belong to the authenticated organization.
266
268
  * Returns the run with its associated workflow and machine data.
267
- * The run must belong to the authenticated user.
268
269
  */
269
270
  const getRunV1RunsRunIdGet = (options) => {
270
271
  var _a;
@@ -278,11 +279,10 @@ const getRunV1RunsRunIdGet = (options) => {
278
279
  exports.getRunV1RunsRunIdGet = getRunV1RunsRunIdGet;
279
280
  /**
280
281
  * Update Run
281
- * Update a run's status and data.
282
+ * Update a run's data.
282
283
  *
283
- * Can update status, error messages, output data, attachments, and message history.
284
284
  * Only the fields provided in the request body will be updated.
285
- * The run must belong to the authenticated user.
285
+ * The run must belong to the authenticated organization.
286
286
  */
287
287
  const updateRunV1RunsRunIdPatch = (options) => {
288
288
  var _a;
@@ -294,9 +294,30 @@ const updateRunV1RunsRunIdPatch = (options) => {
294
294
  ], url: '/v1/runs/{run_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
295
295
  };
296
296
  exports.updateRunV1RunsRunIdPatch = updateRunV1RunsRunIdPatch;
297
+ /**
298
+ * Bulk Create Runs
299
+ * Create multiple runs with the same configuration.
300
+ *
301
+ * This endpoint creates multiple runs efficiently:
302
+ * - All runs are created in a single database transaction
303
+ * - Temporal workflows are started asynchronously
304
+ * - Returns immediately with created run details
305
+ *
306
+ * Maximum 1000 runs can be created in a single request.
307
+ */
308
+ const bulkCreateRunsV1RunsBulkPost = (options) => {
309
+ var _a;
310
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
311
+ {
312
+ scheme: 'bearer',
313
+ type: 'http'
314
+ }
315
+ ], url: '/v1/runs/bulk' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
316
+ };
317
+ exports.bulkCreateRunsV1RunsBulkPost = bulkCreateRunsV1RunsBulkPost;
297
318
  /**
298
319
  * List Run Attachments
299
- * List all run attachments for the authenticated user.
320
+ * List all run attachments for the authenticated organization.
300
321
  *
301
322
  * Supports pagination and filtering by run ID and attachment type.
302
323
  */
@@ -413,7 +434,7 @@ const downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet = (options) =
413
434
  exports.downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet = downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet;
414
435
  /**
415
436
  * List Connections
416
- * List all connections for the authenticated user's machines.
437
+ * List all connections for the authenticated organization's machines.
417
438
  *
418
439
  * Supports pagination and filtering by machine and status.
419
440
  * Returns connections with their associated machine data.
@@ -432,7 +453,7 @@ exports.listConnectionsV1ConnectionsGet = listConnectionsV1ConnectionsGet;
432
453
  * Create Connection
433
454
  * Create a new connection (typically done by the WebSocket handler).
434
455
  *
435
- * The machine must exist and belong to the authenticated user.
456
+ * The machine must exist and belong to the authenticated organization.
436
457
  */
437
458
  const createConnectionV1ConnectionsPost = (options) => {
438
459
  var _a;
@@ -448,7 +469,7 @@ exports.createConnectionV1ConnectionsPost = createConnectionV1ConnectionsPost;
448
469
  * Delete Connection
449
470
  * Delete a connection (not typically used - connections are managed automatically).
450
471
  *
451
- * The connection must belong to a machine owned by the authenticated user.
472
+ * The connection must belong to a machine owned by the authenticated organization.
452
473
  */
453
474
  const deleteConnectionV1ConnectionsConnectionIdDelete = (options) => {
454
475
  var _a;
@@ -464,7 +485,7 @@ exports.deleteConnectionV1ConnectionsConnectionIdDelete = deleteConnectionV1Conn
464
485
  * Get Connection
465
486
  * Get a specific connection by ID.
466
487
  *
467
- * The connection must belong to a machine owned by the authenticated user.
488
+ * The connection must belong to a machine owned by the authenticated organization.
468
489
  */
469
490
  const getConnectionV1ConnectionsConnectionIdGet = (options) => {
470
491
  var _a;
@@ -481,7 +502,7 @@ exports.getConnectionV1ConnectionsConnectionIdGet = getConnectionV1ConnectionsCo
481
502
  * Update a connection's status or timestamps.
482
503
  *
483
504
  * Only the fields provided in the request body will be updated.
484
- * The connection must belong to a machine owned by the authenticated user.
505
+ * The connection must belong to a machine owned by the authenticated organization.
485
506
  */
486
507
  const updateConnectionV1ConnectionsConnectionIdPatch = (options) => {
487
508
  var _a;
@@ -495,7 +516,7 @@ const updateConnectionV1ConnectionsConnectionIdPatch = (options) => {
495
516
  exports.updateConnectionV1ConnectionsConnectionIdPatch = updateConnectionV1ConnectionsConnectionIdPatch;
496
517
  /**
497
518
  * List Request Logs
498
- * List all request logs for the authenticated user's machines.
519
+ * List all request logs for the authenticated organization's machines.
499
520
  *
500
521
  * Supports pagination and filtering by machine, HTTP method, and status code.
501
522
  */
@@ -513,7 +534,7 @@ exports.listRequestLogsV1RequestLogsGet = listRequestLogsV1RequestLogsGet;
513
534
  * Create Request Log
514
535
  * Create a new request log.
515
536
  *
516
- * The machine must exist and belong to the authenticated user.
537
+ * The machine must exist and belong to the authenticated organization.
517
538
  * This is typically called when a request is initiated.
518
539
  */
519
540
  const createRequestLogV1RequestLogsPost = (options) => {
@@ -530,7 +551,7 @@ exports.createRequestLogV1RequestLogsPost = createRequestLogV1RequestLogsPost;
530
551
  * Delete Request Log
531
552
  * Delete a request log (not typically used - logs are kept for analytics).
532
553
  *
533
- * The log must belong to a machine owned by the authenticated user.
554
+ * The log must belong to a machine owned by the authenticated organization.
534
555
  */
535
556
  const deleteRequestLogV1RequestLogsLogIdDelete = (options) => {
536
557
  var _a;
@@ -546,7 +567,7 @@ exports.deleteRequestLogV1RequestLogsLogIdDelete = deleteRequestLogV1RequestLogs
546
567
  * Get Request Log
547
568
  * Get a specific request log by ID.
548
569
  *
549
- * The log must belong to a machine owned by the authenticated user.
570
+ * The log must belong to a machine owned by the authenticated organization.
550
571
  */
551
572
  const getRequestLogV1RequestLogsLogIdGet = (options) => {
552
573
  var _a;
@@ -564,7 +585,7 @@ exports.getRequestLogV1RequestLogsLogIdGet = getRequestLogV1RequestLogsLogIdGet;
564
585
  *
565
586
  * This is typically called when a request completes to add the response details.
566
587
  * Only the fields provided in the request body will be updated.
567
- * The log must belong to a machine owned by the authenticated user.
588
+ * The log must belong to a machine owned by the authenticated organization.
568
589
  */
569
590
  const updateRequestLogV1RequestLogsLogIdPatch = (options) => {
570
591
  var _a;
@@ -578,7 +599,7 @@ const updateRequestLogV1RequestLogsLogIdPatch = (options) => {
578
599
  exports.updateRequestLogV1RequestLogsLogIdPatch = updateRequestLogV1RequestLogsLogIdPatch;
579
600
  /**
580
601
  * List Trajectories
581
- * List all trajectories for the authenticated user.
602
+ * List all trajectories for the authenticated organization.
582
603
  *
583
604
  * Supports pagination and filtering by workflow.
584
605
  * Returns trajectories with their associated workflow data.
@@ -597,7 +618,7 @@ exports.listTrajectoriesV1TrajectoriesGet = listTrajectoriesV1TrajectoriesGet;
597
618
  * Create Trajectory
598
619
  * Create a new trajectory for a workflow.
599
620
  *
600
- * The workflow must exist and belong to the authenticated user.
621
+ * The workflow must exist and belong to the authenticated organization.
601
622
  * The trajectory_data must contain at least one item.
602
623
  */
603
624
  const createTrajectoryV1TrajectoriesPost = (options) => {
@@ -614,7 +635,7 @@ exports.createTrajectoryV1TrajectoriesPost = createTrajectoryV1TrajectoriesPost;
614
635
  * Delete Trajectory
615
636
  * Delete a trajectory.
616
637
  *
617
- * The trajectory must belong to the authenticated user.
638
+ * The trajectory must belong to the authenticated organization.
618
639
  */
619
640
  const deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = (options) => {
620
641
  var _a;
@@ -631,7 +652,7 @@ exports.deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = deleteTrajectoryV1Tra
631
652
  * Get a specific trajectory by ID.
632
653
  *
633
654
  * Returns the trajectory with its associated workflow data.
634
- * The trajectory must belong to the authenticated user.
655
+ * The trajectory must belong to the authenticated organization.
635
656
  */
636
657
  const getTrajectoryV1TrajectoriesTrajectoryIdGet = (options) => {
637
658
  var _a;
@@ -648,7 +669,7 @@ exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = getTrajectoryV1Trajectories
648
669
  * Update a trajectory's data.
649
670
  *
650
671
  * Only the fields provided in the request body will be updated.
651
- * The trajectory must belong to the authenticated user.
672
+ * The trajectory must belong to the authenticated organization.
652
673
  */
653
674
  const updateTrajectoryV1TrajectoriesTrajectoryIdPatch = (options) => {
654
675
  var _a;
@@ -665,7 +686,7 @@ exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = updateTrajectoryV1Traj
665
686
  * Get the latest trajectory for a specific workflow.
666
687
  *
667
688
  * Returns the most recently updated trajectory for the workflow.
668
- * The workflow must belong to the authenticated user.
689
+ * The workflow must belong to the authenticated organization.
669
690
  */
670
691
  const getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = (options) => {
671
692
  var _a;
@@ -89,7 +89,8 @@ export type MachineResponse = {
89
89
  hostname?: string | null;
90
90
  os_info?: string | null;
91
91
  id: string;
92
- user_id: string;
92
+ user_id?: string | null;
93
+ organization_id?: string | null;
93
94
  unkey_key_id: string;
94
95
  status: MachineStatus;
95
96
  is_available: boolean;
@@ -227,6 +228,7 @@ export type RequestLogResponse = {
227
228
  error_message?: string | null;
228
229
  id: string;
229
230
  machine_id: string;
231
+ organization_id?: string | null;
230
232
  created_at: string;
231
233
  completed_at: string | null;
232
234
  };
@@ -279,7 +281,8 @@ export type RunAttachmentResponse = {
279
281
  target_path?: string | null;
280
282
  cleanup_imports_after_run?: boolean;
281
283
  id: string;
282
- user_id: string;
284
+ user_id?: string | null;
285
+ organization_id?: string | null;
283
286
  run_id: string;
284
287
  size_bytes: number;
285
288
  storage_path: string;
@@ -292,6 +295,38 @@ export type RunAttachmentResponse = {
292
295
  export type RunAttachmentUpdate = {
293
296
  expires_at?: string | null;
294
297
  };
298
+ /**
299
+ * Schema for bulk creating runs
300
+ */
301
+ export type RunBulkCreate = {
302
+ workflow_id: string;
303
+ /**
304
+ * Machine ID. If not provided, an available machine will be automatically selected.
305
+ */
306
+ machine_id?: string | null;
307
+ /**
308
+ * Input values for workflow variables
309
+ */
310
+ input_values?: {
311
+ [key: string]: unknown;
312
+ } | null;
313
+ /**
314
+ * Files to upload to the machine
315
+ */
316
+ file_inputs?: Array<FileInput> | null;
317
+ /**
318
+ * Number of runs to create (max 1000)
319
+ */
320
+ count: number;
321
+ };
322
+ /**
323
+ * Response for bulk run creation
324
+ */
325
+ export type RunBulkCreateResponse = {
326
+ created_runs: Array<RunResponse>;
327
+ failed_count?: number;
328
+ errors?: Array<string>;
329
+ };
295
330
  /**
296
331
  * Schema for creating a run
297
332
  */
@@ -319,7 +354,8 @@ export type RunResponse = {
319
354
  workflow_id: string;
320
355
  machine_id: string | null;
321
356
  id: string;
322
- user_id: string;
357
+ user_id?: string | null;
358
+ organization_id?: string | null;
323
359
  status: RunStatus;
324
360
  error: Array<string> | null;
325
361
  output_data: {
@@ -395,7 +431,8 @@ export type TrajectoryResponse = {
395
431
  [key: string]: unknown;
396
432
  } | null;
397
433
  id: string;
398
- user_id: string;
434
+ user_id?: string | null;
435
+ organization_id?: string | null;
399
436
  created_at: string;
400
437
  updated_at: string;
401
438
  };
@@ -442,7 +479,8 @@ export type WorkflowResponse = {
442
479
  */
443
480
  includes_file_exports?: boolean;
444
481
  id: string;
445
- user_id: string;
482
+ user_id?: string | null;
483
+ organization_id?: string | null;
446
484
  includes_input_variables?: boolean;
447
485
  old_versions?: Array<{
448
486
  [key: string]: unknown;
@@ -862,6 +900,26 @@ export type UpdateRunV1RunsRunIdPatchResponses = {
862
900
  200: RunResponse;
863
901
  };
864
902
  export type UpdateRunV1RunsRunIdPatchResponse = UpdateRunV1RunsRunIdPatchResponses[keyof UpdateRunV1RunsRunIdPatchResponses];
903
+ export type BulkCreateRunsV1RunsBulkPostData = {
904
+ body: RunBulkCreate;
905
+ path?: never;
906
+ query?: never;
907
+ url: '/v1/runs/bulk';
908
+ };
909
+ export type BulkCreateRunsV1RunsBulkPostErrors = {
910
+ /**
911
+ * Validation Error
912
+ */
913
+ 422: HttpValidationError;
914
+ };
915
+ export type BulkCreateRunsV1RunsBulkPostError = BulkCreateRunsV1RunsBulkPostErrors[keyof BulkCreateRunsV1RunsBulkPostErrors];
916
+ export type BulkCreateRunsV1RunsBulkPostResponses = {
917
+ /**
918
+ * Successful Response
919
+ */
920
+ 201: RunBulkCreateResponse;
921
+ };
922
+ export type BulkCreateRunsV1RunsBulkPostResponse = BulkCreateRunsV1RunsBulkPostResponses[keyof BulkCreateRunsV1RunsBulkPostResponses];
865
923
  export type ListRunAttachmentsV1RunAttachmentsGetData = {
866
924
  body?: never;
867
925
  path?: never;
@@ -1705,5 +1763,5 @@ export type RootGetResponses = {
1705
1763
  200: unknown;
1706
1764
  };
1707
1765
  export type ClientOptions = {
1708
- baseUrl: 'https://api.cyberdesk.io' | (string & {});
1766
+ baseUrl: 'https://api.cyberdesk.io' | 'https://cyberdesk-api-dev.fly.dev' | (string & {});
1709
1767
  };
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@
25
25
  * });
26
26
  * ```
27
27
  */
28
- import { type MachineResponse, type WorkflowResponse, type RunResponse, type ConnectionResponse, type TrajectoryResponse, type PaginatedResponseMachineResponse, type PaginatedResponseWorkflowResponse, type PaginatedResponseRunResponse, type PaginatedResponseConnectionResponse, type PaginatedResponseTrajectoryResponse, type MachineStatus, type RunStatus, type ConnectionStatus, type MachineCreate, type WorkflowCreate, type RunCreate, type FileInput, type ConnectionCreate, type TrajectoryCreate, type MachineUpdate, type WorkflowUpdate, type RunUpdate, type TrajectoryUpdate, type RunAttachmentCreate, type RunAttachmentUpdate, type RunAttachmentResponse, type RunAttachmentDownloadUrlResponse, type AttachmentType, type PaginatedResponseRunAttachmentResponse } from './client/types.gen';
28
+ import { type MachineResponse, type WorkflowResponse, type RunResponse, type ConnectionResponse, type TrajectoryResponse, type PaginatedResponseMachineResponse, type PaginatedResponseWorkflowResponse, type PaginatedResponseRunResponse, type PaginatedResponseConnectionResponse, type PaginatedResponseTrajectoryResponse, type MachineStatus, type RunStatus, type ConnectionStatus, type MachineCreate, type WorkflowCreate, type RunCreate, type RunBulkCreate, type RunBulkCreateResponse, type FileInput, type ConnectionCreate, type TrajectoryCreate, type MachineUpdate, type WorkflowUpdate, type RunUpdate, type TrajectoryUpdate, type RunAttachmentCreate, type RunAttachmentUpdate, type RunAttachmentResponse, type RunAttachmentDownloadUrlResponse, type AttachmentType, type PaginatedResponseRunAttachmentResponse } from './client/types.gen';
29
29
  export * from './client/types.gen';
30
30
  export * from './client/sdk.gen';
31
31
  export * from './client/client.gen';
@@ -230,6 +230,46 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
230
230
  data?: RunResponse;
231
231
  error?: any;
232
232
  }>;
233
+ /**
234
+ * Create multiple runs with the same configuration
235
+ *
236
+ * This method efficiently creates multiple runs in bulk:
237
+ * - All runs are created in a single database transaction
238
+ * - Temporal workflows are started asynchronously
239
+ * - Returns immediately with created run details
240
+ *
241
+ * @param data - Bulk run configuration
242
+ * @param data.count - Number of runs to create (1-1000)
243
+ * @param data.workflow_id - The workflow to run
244
+ * @param data.machine_id - Optional machine ID (auto-selected if not provided)
245
+ * @param data.input_values - Optional input values for workflow variables
246
+ * @param data.file_inputs - Optional files to upload to the machine
247
+ * @returns Details about created runs and any failures
248
+ *
249
+ * @example
250
+ * ```typescript
251
+ * const result = await client.runs.bulkCreate({
252
+ * count: 100,
253
+ * workflow_id: 'workflow-id',
254
+ * input_values: { prompt: 'Bulk task' },
255
+ * file_inputs: [{
256
+ * filename: 'data.txt',
257
+ * content: 'base64-encoded-content',
258
+ * target_path: '~/CyberdeskTransfers/',
259
+ * cleanup_imports_after_run: true
260
+ * }]
261
+ * });
262
+ *
263
+ * if (result.data) {
264
+ * console.log(`Created ${result.data.created_runs.length} runs`);
265
+ * console.log(`Failed: ${result.data.failed_count}`);
266
+ * }
267
+ * ```
268
+ */
269
+ bulkCreate: (data: RunBulkCreate) => Promise<{
270
+ data?: RunBulkCreateResponse;
271
+ error?: any;
272
+ }>;
233
273
  /**
234
274
  * Get a specific run by ID
235
275
  *
@@ -494,4 +534,4 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
494
534
  }>;
495
535
  };
496
536
  };
497
- export type { MachineResponse, WorkflowResponse, RunResponse, ConnectionResponse, TrajectoryResponse, RunAttachmentResponse, RunAttachmentDownloadUrlResponse, FileInput, AttachmentType, PaginatedResponseMachineResponse, PaginatedResponseWorkflowResponse, PaginatedResponseRunResponse, PaginatedResponseConnectionResponse, PaginatedResponseTrajectoryResponse, PaginatedResponseRunAttachmentResponse, };
537
+ export type { MachineResponse, WorkflowResponse, RunResponse, RunBulkCreate, RunBulkCreateResponse, ConnectionResponse, TrajectoryResponse, RunAttachmentResponse, RunAttachmentDownloadUrlResponse, FileInput, AttachmentType, PaginatedResponseMachineResponse, PaginatedResponseWorkflowResponse, PaginatedResponseRunResponse, PaginatedResponseConnectionResponse, PaginatedResponseTrajectoryResponse, PaginatedResponseRunAttachmentResponse, };
package/dist/index.js CHANGED
@@ -286,6 +286,48 @@ function createCyberdeskClient(apiKey, baseUrl) {
286
286
  body: data,
287
287
  });
288
288
  }),
289
+ /**
290
+ * Create multiple runs with the same configuration
291
+ *
292
+ * This method efficiently creates multiple runs in bulk:
293
+ * - All runs are created in a single database transaction
294
+ * - Temporal workflows are started asynchronously
295
+ * - Returns immediately with created run details
296
+ *
297
+ * @param data - Bulk run configuration
298
+ * @param data.count - Number of runs to create (1-1000)
299
+ * @param data.workflow_id - The workflow to run
300
+ * @param data.machine_id - Optional machine ID (auto-selected if not provided)
301
+ * @param data.input_values - Optional input values for workflow variables
302
+ * @param data.file_inputs - Optional files to upload to the machine
303
+ * @returns Details about created runs and any failures
304
+ *
305
+ * @example
306
+ * ```typescript
307
+ * const result = await client.runs.bulkCreate({
308
+ * count: 100,
309
+ * workflow_id: 'workflow-id',
310
+ * input_values: { prompt: 'Bulk task' },
311
+ * file_inputs: [{
312
+ * filename: 'data.txt',
313
+ * content: 'base64-encoded-content',
314
+ * target_path: '~/CyberdeskTransfers/',
315
+ * cleanup_imports_after_run: true
316
+ * }]
317
+ * });
318
+ *
319
+ * if (result.data) {
320
+ * console.log(`Created ${result.data.created_runs.length} runs`);
321
+ * console.log(`Failed: ${result.data.failed_count}`);
322
+ * }
323
+ * ```
324
+ */
325
+ bulkCreate: (data) => __awaiter(this, void 0, void 0, function* () {
326
+ return (0, sdk_gen_1.bulkCreateRunsV1RunsBulkPost)({
327
+ client,
328
+ body: data,
329
+ });
330
+ }),
289
331
  /**
290
332
  * Get a specific run by ID
291
333
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "1.10.0",
3
+ "version": "2.0.0",
4
4
  "description": "The official TypeScript SDK for Cyberdesk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",