cyberdesk 1.11.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.
@@ -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,33 +128,33 @@ 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
160
  /**
@@ -171,7 +171,7 @@ export declare const updateRunV1RunsRunIdPatch: <ThrowOnError extends boolean =
171
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>;
172
172
  /**
173
173
  * List Run Attachments
174
- * List all run attachments for the authenticated user.
174
+ * List all run attachments for the authenticated organization.
175
175
  *
176
176
  * Supports pagination and filtering by run ID and attachment type.
177
177
  */
@@ -225,7 +225,7 @@ export declare const getRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDown
225
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>;
226
226
  /**
227
227
  * List Connections
228
- * List all connections for the authenticated user's machines.
228
+ * List all connections for the authenticated organization's machines.
229
229
  *
230
230
  * Supports pagination and filtering by machine and status.
231
231
  * Returns connections with their associated machine data.
@@ -235,21 +235,21 @@ export declare const listConnectionsV1ConnectionsGet: <ThrowOnError extends bool
235
235
  * Create Connection
236
236
  * Create a new connection (typically done by the WebSocket handler).
237
237
  *
238
- * The machine must exist and belong to the authenticated user.
238
+ * The machine must exist and belong to the authenticated organization.
239
239
  */
240
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>;
241
241
  /**
242
242
  * Delete Connection
243
243
  * Delete a connection (not typically used - connections are managed automatically).
244
244
  *
245
- * 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.
246
246
  */
247
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>;
248
248
  /**
249
249
  * Get Connection
250
250
  * Get a specific connection by ID.
251
251
  *
252
- * 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.
253
253
  */
254
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>;
255
255
  /**
@@ -257,12 +257,12 @@ export declare const getConnectionV1ConnectionsConnectionIdGet: <ThrowOnError ex
257
257
  * Update a connection's status or timestamps.
258
258
  *
259
259
  * Only the fields provided in the request body will be updated.
260
- * 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.
261
261
  */
262
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>;
263
263
  /**
264
264
  * List Request Logs
265
- * List all request logs for the authenticated user's machines.
265
+ * List all request logs for the authenticated organization's machines.
266
266
  *
267
267
  * Supports pagination and filtering by machine, HTTP method, and status code.
268
268
  */
@@ -271,7 +271,7 @@ export declare const listRequestLogsV1RequestLogsGet: <ThrowOnError extends bool
271
271
  * Create Request Log
272
272
  * Create a new request log.
273
273
  *
274
- * The machine must exist and belong to the authenticated user.
274
+ * The machine must exist and belong to the authenticated organization.
275
275
  * This is typically called when a request is initiated.
276
276
  */
277
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>;
@@ -279,14 +279,14 @@ export declare const createRequestLogV1RequestLogsPost: <ThrowOnError extends bo
279
279
  * Delete Request Log
280
280
  * Delete a request log (not typically used - logs are kept for analytics).
281
281
  *
282
- * 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.
283
283
  */
284
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>;
285
285
  /**
286
286
  * Get Request Log
287
287
  * Get a specific request log by ID.
288
288
  *
289
- * 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.
290
290
  */
291
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>;
292
292
  /**
@@ -295,12 +295,12 @@ export declare const getRequestLogV1RequestLogsLogIdGet: <ThrowOnError extends b
295
295
  *
296
296
  * This is typically called when a request completes to add the response details.
297
297
  * Only the fields provided in the request body will be updated.
298
- * 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.
299
299
  */
300
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>;
301
301
  /**
302
302
  * List Trajectories
303
- * List all trajectories for the authenticated user.
303
+ * List all trajectories for the authenticated organization.
304
304
  *
305
305
  * Supports pagination and filtering by workflow.
306
306
  * Returns trajectories with their associated workflow data.
@@ -310,7 +310,7 @@ export declare const listTrajectoriesV1TrajectoriesGet: <ThrowOnError extends bo
310
310
  * Create Trajectory
311
311
  * Create a new trajectory for a workflow.
312
312
  *
313
- * The workflow must exist and belong to the authenticated user.
313
+ * The workflow must exist and belong to the authenticated organization.
314
314
  * The trajectory_data must contain at least one item.
315
315
  */
316
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>;
@@ -318,7 +318,7 @@ export declare const createTrajectoryV1TrajectoriesPost: <ThrowOnError extends b
318
318
  * Delete Trajectory
319
319
  * Delete a trajectory.
320
320
  *
321
- * The trajectory must belong to the authenticated user.
321
+ * The trajectory must belong to the authenticated organization.
322
322
  */
323
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>;
324
324
  /**
@@ -326,7 +326,7 @@ export declare const deleteTrajectoryV1TrajectoriesTrajectoryIdDelete: <ThrowOnE
326
326
  * Get a specific trajectory by ID.
327
327
  *
328
328
  * Returns the trajectory with its associated workflow data.
329
- * The trajectory must belong to the authenticated user.
329
+ * The trajectory must belong to the authenticated organization.
330
330
  */
331
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>;
332
332
  /**
@@ -334,7 +334,7 @@ export declare const getTrajectoryV1TrajectoriesTrajectoryIdGet: <ThrowOnError e
334
334
  * Update a trajectory's data.
335
335
  *
336
336
  * Only the fields provided in the request body will be updated.
337
- * The trajectory must belong to the authenticated user.
337
+ * The trajectory must belong to the authenticated organization.
338
338
  */
339
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>;
340
340
  /**
@@ -342,7 +342,7 @@ export declare const updateTrajectoryV1TrajectoriesTrajectoryIdPatch: <ThrowOnEr
342
342
  * Get the latest trajectory for a specific workflow.
343
343
  *
344
344
  * Returns the most recently updated trajectory for the workflow.
345
- * The workflow must belong to the authenticated user.
345
+ * The workflow must belong to the authenticated organization.
346
346
  */
347
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>;
348
348
  /**
@@ -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;
@@ -317,7 +317,7 @@ const bulkCreateRunsV1RunsBulkPost = (options) => {
317
317
  exports.bulkCreateRunsV1RunsBulkPost = bulkCreateRunsV1RunsBulkPost;
318
318
  /**
319
319
  * List Run Attachments
320
- * List all run attachments for the authenticated user.
320
+ * List all run attachments for the authenticated organization.
321
321
  *
322
322
  * Supports pagination and filtering by run ID and attachment type.
323
323
  */
@@ -434,7 +434,7 @@ const downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet = (options) =
434
434
  exports.downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet = downloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGet;
435
435
  /**
436
436
  * List Connections
437
- * List all connections for the authenticated user's machines.
437
+ * List all connections for the authenticated organization's machines.
438
438
  *
439
439
  * Supports pagination and filtering by machine and status.
440
440
  * Returns connections with their associated machine data.
@@ -453,7 +453,7 @@ exports.listConnectionsV1ConnectionsGet = listConnectionsV1ConnectionsGet;
453
453
  * Create Connection
454
454
  * Create a new connection (typically done by the WebSocket handler).
455
455
  *
456
- * The machine must exist and belong to the authenticated user.
456
+ * The machine must exist and belong to the authenticated organization.
457
457
  */
458
458
  const createConnectionV1ConnectionsPost = (options) => {
459
459
  var _a;
@@ -469,7 +469,7 @@ exports.createConnectionV1ConnectionsPost = createConnectionV1ConnectionsPost;
469
469
  * Delete Connection
470
470
  * Delete a connection (not typically used - connections are managed automatically).
471
471
  *
472
- * 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.
473
473
  */
474
474
  const deleteConnectionV1ConnectionsConnectionIdDelete = (options) => {
475
475
  var _a;
@@ -485,7 +485,7 @@ exports.deleteConnectionV1ConnectionsConnectionIdDelete = deleteConnectionV1Conn
485
485
  * Get Connection
486
486
  * Get a specific connection by ID.
487
487
  *
488
- * 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.
489
489
  */
490
490
  const getConnectionV1ConnectionsConnectionIdGet = (options) => {
491
491
  var _a;
@@ -502,7 +502,7 @@ exports.getConnectionV1ConnectionsConnectionIdGet = getConnectionV1ConnectionsCo
502
502
  * Update a connection's status or timestamps.
503
503
  *
504
504
  * Only the fields provided in the request body will be updated.
505
- * 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.
506
506
  */
507
507
  const updateConnectionV1ConnectionsConnectionIdPatch = (options) => {
508
508
  var _a;
@@ -516,7 +516,7 @@ const updateConnectionV1ConnectionsConnectionIdPatch = (options) => {
516
516
  exports.updateConnectionV1ConnectionsConnectionIdPatch = updateConnectionV1ConnectionsConnectionIdPatch;
517
517
  /**
518
518
  * List Request Logs
519
- * List all request logs for the authenticated user's machines.
519
+ * List all request logs for the authenticated organization's machines.
520
520
  *
521
521
  * Supports pagination and filtering by machine, HTTP method, and status code.
522
522
  */
@@ -534,7 +534,7 @@ exports.listRequestLogsV1RequestLogsGet = listRequestLogsV1RequestLogsGet;
534
534
  * Create Request Log
535
535
  * Create a new request log.
536
536
  *
537
- * The machine must exist and belong to the authenticated user.
537
+ * The machine must exist and belong to the authenticated organization.
538
538
  * This is typically called when a request is initiated.
539
539
  */
540
540
  const createRequestLogV1RequestLogsPost = (options) => {
@@ -551,7 +551,7 @@ exports.createRequestLogV1RequestLogsPost = createRequestLogV1RequestLogsPost;
551
551
  * Delete Request Log
552
552
  * Delete a request log (not typically used - logs are kept for analytics).
553
553
  *
554
- * 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.
555
555
  */
556
556
  const deleteRequestLogV1RequestLogsLogIdDelete = (options) => {
557
557
  var _a;
@@ -567,7 +567,7 @@ exports.deleteRequestLogV1RequestLogsLogIdDelete = deleteRequestLogV1RequestLogs
567
567
  * Get Request Log
568
568
  * Get a specific request log by ID.
569
569
  *
570
- * 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.
571
571
  */
572
572
  const getRequestLogV1RequestLogsLogIdGet = (options) => {
573
573
  var _a;
@@ -585,7 +585,7 @@ exports.getRequestLogV1RequestLogsLogIdGet = getRequestLogV1RequestLogsLogIdGet;
585
585
  *
586
586
  * This is typically called when a request completes to add the response details.
587
587
  * Only the fields provided in the request body will be updated.
588
- * 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.
589
589
  */
590
590
  const updateRequestLogV1RequestLogsLogIdPatch = (options) => {
591
591
  var _a;
@@ -599,7 +599,7 @@ const updateRequestLogV1RequestLogsLogIdPatch = (options) => {
599
599
  exports.updateRequestLogV1RequestLogsLogIdPatch = updateRequestLogV1RequestLogsLogIdPatch;
600
600
  /**
601
601
  * List Trajectories
602
- * List all trajectories for the authenticated user.
602
+ * List all trajectories for the authenticated organization.
603
603
  *
604
604
  * Supports pagination and filtering by workflow.
605
605
  * Returns trajectories with their associated workflow data.
@@ -618,7 +618,7 @@ exports.listTrajectoriesV1TrajectoriesGet = listTrajectoriesV1TrajectoriesGet;
618
618
  * Create Trajectory
619
619
  * Create a new trajectory for a workflow.
620
620
  *
621
- * The workflow must exist and belong to the authenticated user.
621
+ * The workflow must exist and belong to the authenticated organization.
622
622
  * The trajectory_data must contain at least one item.
623
623
  */
624
624
  const createTrajectoryV1TrajectoriesPost = (options) => {
@@ -635,7 +635,7 @@ exports.createTrajectoryV1TrajectoriesPost = createTrajectoryV1TrajectoriesPost;
635
635
  * Delete Trajectory
636
636
  * Delete a trajectory.
637
637
  *
638
- * The trajectory must belong to the authenticated user.
638
+ * The trajectory must belong to the authenticated organization.
639
639
  */
640
640
  const deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = (options) => {
641
641
  var _a;
@@ -652,7 +652,7 @@ exports.deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = deleteTrajectoryV1Tra
652
652
  * Get a specific trajectory by ID.
653
653
  *
654
654
  * Returns the trajectory with its associated workflow data.
655
- * The trajectory must belong to the authenticated user.
655
+ * The trajectory must belong to the authenticated organization.
656
656
  */
657
657
  const getTrajectoryV1TrajectoriesTrajectoryIdGet = (options) => {
658
658
  var _a;
@@ -669,7 +669,7 @@ exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = getTrajectoryV1Trajectories
669
669
  * Update a trajectory's data.
670
670
  *
671
671
  * Only the fields provided in the request body will be updated.
672
- * The trajectory must belong to the authenticated user.
672
+ * The trajectory must belong to the authenticated organization.
673
673
  */
674
674
  const updateTrajectoryV1TrajectoriesTrajectoryIdPatch = (options) => {
675
675
  var _a;
@@ -686,7 +686,7 @@ exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = updateTrajectoryV1Traj
686
686
  * Get the latest trajectory for a specific workflow.
687
687
  *
688
688
  * Returns the most recently updated trajectory for the workflow.
689
- * The workflow must belong to the authenticated user.
689
+ * The workflow must belong to the authenticated organization.
690
690
  */
691
691
  const getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = (options) => {
692
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;
@@ -351,7 +354,8 @@ export type RunResponse = {
351
354
  workflow_id: string;
352
355
  machine_id: string | null;
353
356
  id: string;
354
- user_id: string;
357
+ user_id?: string | null;
358
+ organization_id?: string | null;
355
359
  status: RunStatus;
356
360
  error: Array<string> | null;
357
361
  output_data: {
@@ -427,7 +431,8 @@ export type TrajectoryResponse = {
427
431
  [key: string]: unknown;
428
432
  } | null;
429
433
  id: string;
430
- user_id: string;
434
+ user_id?: string | null;
435
+ organization_id?: string | null;
431
436
  created_at: string;
432
437
  updated_at: string;
433
438
  };
@@ -474,7 +479,8 @@ export type WorkflowResponse = {
474
479
  */
475
480
  includes_file_exports?: boolean;
476
481
  id: string;
477
- user_id: string;
482
+ user_id?: string | null;
483
+ organization_id?: string | null;
478
484
  includes_input_variables?: boolean;
479
485
  old_versions?: Array<{
480
486
  [key: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "1.11.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",