cyberdesk 2.2.21 → 2.2.24

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, type TDataShape, type Client } from '@hey-api/client-fetch';
2
- import type { HealthCheckV1HealthGetData, DatabaseHealthCheckV1HealthDbGetData, ListMachinesV1MachinesGetData, CreateMachineV1MachinesPostData, DeleteMachineV1MachinesMachineIdDeleteData, GetMachineV1MachinesMachineIdGetData, UpdateMachineV1MachinesMachineIdPatchData, GetMachinePoolsV1MachinesMachineIdPoolsGetData, UpdateMachinePoolsV1MachinesMachineIdPoolsPutData, ListPoolsV1PoolsGetData, CreatePoolV1PoolsPostData, DeletePoolV1PoolsPoolIdDeleteData, GetPoolV1PoolsPoolIdGetData, UpdatePoolV1PoolsPoolIdPatchData, RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteData, AddMachinesToPoolV1PoolsPoolIdMachinesPostData, ListWorkflowsV1WorkflowsGetData, CreateWorkflowV1WorkflowsPostData, BulkAddTagsToWorkflowsV1WorkflowsBulkTagsPostData, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteData, UploadWorkflowPromptImageV1WorkflowsPromptImagePostData, ListWorkflowPromptImagesV1WorkflowsPromptImagesGetData, GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetData, GetWorkflowTagsV1WorkflowsWorkflowIdTagsGetData, AddTagsToWorkflowV1WorkflowsWorkflowIdTagsPostData, RemoveTagFromWorkflowV1WorkflowsWorkflowIdTagsTagIdDeleteData, ListTagsV1WorkflowTagsGetData, CreateTagV1WorkflowTagsPostData, DeleteTagV1WorkflowTagsTagIdDeleteData, GetTagV1WorkflowTagsTagIdGetData, UpdateTagV1WorkflowTagsTagIdPatchData, ArchiveTagV1WorkflowTagsTagIdArchivePostData, UnarchiveTagV1WorkflowTagsTagIdUnarchivePostData, ReorderTagsV1WorkflowTagsReorderPutData, ListTagGroupsV1WorkflowTagGroupsGetData, CreateTagGroupV1WorkflowTagGroupsPostData, DeleteTagGroupV1WorkflowTagGroupsGroupIdDeleteData, GetTagGroupV1WorkflowTagGroupsGroupIdGetData, UpdateTagGroupV1WorkflowTagGroupsGroupIdPatchData, ReorderTagGroupsV1WorkflowTagGroupsReorderPutData, ListModelConfigurationsV1ModelConfigurationsGetData, CreateModelConfigurationV1ModelConfigurationsPostData, DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteData, GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetData, UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchData, ListRunsV1RunsGetData, CreateRunV1RunsPostData, DeleteRunV1RunsRunIdDeleteData, GetRunV1RunsRunIdGetData, UpdateRunV1RunsRunIdPatchData, CreateRunChainV1RunsChainPostData, BulkCreateRunsV1RunsBulkPostData, RetryRunV1RunsRunIdRetryPostData, ListRunAttachmentsV1RunAttachmentsGetData, CreateRunAttachmentV1RunAttachmentsPostData, DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteData, GetRunAttachmentV1RunAttachmentsAttachmentIdGetData, UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutData, GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetData, DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetData, ListConnectionsV1ConnectionsGetData, CreateConnectionV1ConnectionsPostData, DeleteConnectionV1ConnectionsConnectionIdDeleteData, GetConnectionV1ConnectionsConnectionIdGetData, UpdateConnectionV1ConnectionsConnectionIdPatchData, ListRequestLogsV1RequestLogsGetData, CreateRequestLogV1RequestLogsPostData, DeleteRequestLogV1RequestLogsLogIdDeleteData, GetRequestLogV1RequestLogsLogIdGetData, UpdateRequestLogV1RequestLogsLogIdPatchData, ListTrajectoriesV1TrajectoriesGetData, CreateTrajectoryV1TrajectoriesPostData, DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData, GetTrajectoryV1TrajectoriesTrajectoryIdGetData, UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData, DuplicateTrajectoryV1TrajectoriesTrajectoryIdDuplicatePostData, GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData, GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData, KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, CopyToClipboardV1ComputerMachineIdCopyToClipboardPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, MouseScrollV1ComputerMachineIdInputMouseScrollPostData, MouseDragV1ComputerMachineIdInputMouseDragPostData, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, GetUsageAggregateV1UsageAggregateGetData, DbPingInternalDebugDbPingGetData, RootGetData, HealthLiveHealthLiveGetData, HealthReadyHealthReadyGetData, HealthHealthGetData, HealthDbHealthDbGetData } from './types.gen';
2
+ import type { HealthCheckV1HealthGetData, DatabaseHealthCheckV1HealthDbGetData, ListMachinesV1MachinesGetData, CreateMachineV1MachinesPostData, DeleteMachineV1MachinesMachineIdDeleteData, GetMachineV1MachinesMachineIdGetData, UpdateMachineV1MachinesMachineIdPatchData, GetMachinePoolsV1MachinesMachineIdPoolsGetData, UpdateMachinePoolsV1MachinesMachineIdPoolsPutData, ListPoolsV1PoolsGetData, CreatePoolV1PoolsPostData, DeletePoolV1PoolsPoolIdDeleteData, GetPoolV1PoolsPoolIdGetData, UpdatePoolV1PoolsPoolIdPatchData, RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteData, AddMachinesToPoolV1PoolsPoolIdMachinesPostData, ListWorkflowsV1WorkflowsGetData, CreateWorkflowV1WorkflowsPostData, BulkAddTagsToWorkflowsV1WorkflowsBulkTagsPostData, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostData, MergeWorkflowV1WorkflowsWorkflowIdMergePostData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, DeleteWorkflowPromptImageV1WorkflowsPromptImageDeleteData, UploadWorkflowPromptImageV1WorkflowsPromptImagePostData, ListWorkflowPromptImagesV1WorkflowsPromptImagesGetData, GetWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGetData, GetWorkflowTagsV1WorkflowsWorkflowIdTagsGetData, AddTagsToWorkflowV1WorkflowsWorkflowIdTagsPostData, RemoveTagFromWorkflowV1WorkflowsWorkflowIdTagsTagIdDeleteData, ListTagsV1WorkflowTagsGetData, CreateTagV1WorkflowTagsPostData, DeleteTagV1WorkflowTagsTagIdDeleteData, GetTagV1WorkflowTagsTagIdGetData, UpdateTagV1WorkflowTagsTagIdPatchData, ArchiveTagV1WorkflowTagsTagIdArchivePostData, UnarchiveTagV1WorkflowTagsTagIdUnarchivePostData, ReorderTagsV1WorkflowTagsReorderPutData, ListTagGroupsV1WorkflowTagGroupsGetData, CreateTagGroupV1WorkflowTagGroupsPostData, DeleteTagGroupV1WorkflowTagGroupsGroupIdDeleteData, GetTagGroupV1WorkflowTagGroupsGroupIdGetData, UpdateTagGroupV1WorkflowTagGroupsGroupIdPatchData, ReorderTagGroupsV1WorkflowTagGroupsReorderPutData, ListModelConfigurationsV1ModelConfigurationsGetData, CreateModelConfigurationV1ModelConfigurationsPostData, DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteData, GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetData, UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchData, ListRunsV1RunsGetData, CreateRunV1RunsPostData, DeleteRunV1RunsRunIdDeleteData, GetRunV1RunsRunIdGetData, UpdateRunV1RunsRunIdPatchData, CreateRunChainV1RunsChainPostData, BulkCreateRunsV1RunsBulkPostData, RetryRunV1RunsRunIdRetryPostData, ListRunAttachmentsV1RunAttachmentsGetData, CreateRunAttachmentV1RunAttachmentsPostData, DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteData, GetRunAttachmentV1RunAttachmentsAttachmentIdGetData, UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutData, GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetData, DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetData, ListConnectionsV1ConnectionsGetData, CreateConnectionV1ConnectionsPostData, DeleteConnectionV1ConnectionsConnectionIdDeleteData, GetConnectionV1ConnectionsConnectionIdGetData, UpdateConnectionV1ConnectionsConnectionIdPatchData, ListRequestLogsV1RequestLogsGetData, CreateRequestLogV1RequestLogsPostData, DeleteRequestLogV1RequestLogsLogIdDeleteData, GetRequestLogV1RequestLogsLogIdGetData, UpdateRequestLogV1RequestLogsLogIdPatchData, ListTrajectoriesV1TrajectoriesGetData, CreateTrajectoryV1TrajectoriesPostData, DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData, GetTrajectoryV1TrajectoriesTrajectoryIdGetData, UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData, DuplicateTrajectoryV1TrajectoriesTrajectoryIdDuplicatePostData, GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData, GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData, KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, CopyToClipboardV1ComputerMachineIdCopyToClipboardPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, MouseScrollV1ComputerMachineIdInputMouseScrollPostData, MouseDragV1ComputerMachineIdInputMouseDragPostData, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, GetUsageAggregateV1UsageAggregateGetData, DbPingInternalDebugDbPingGetData, RootGetData, HealthLiveHealthLiveGetData, HealthReadyHealthReadyGetData, HealthHealthGetData, HealthDbHealthDbGetData } 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
@@ -181,6 +181,21 @@ export declare const getWorkflowV1WorkflowsWorkflowIdGet: <ThrowOnError extends
181
181
  * The workflow must belong to the authenticated organization.
182
182
  */
183
183
  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>;
184
+ /**
185
+ * Duplicate Workflow
186
+ * Duplicate a workflow, including trajectories and prompt images.
187
+ *
188
+ * Copies everything except version history, and prefixes the name with "(Copy)".
189
+ */
190
+ export declare const duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost: <ThrowOnError extends boolean = false>(options: Options<DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").WorkflowResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
191
+ /**
192
+ * Merge Workflow
193
+ * Merge the current workflow into another workflow.
194
+ *
195
+ * Updates the target workflow with all data from the source workflow (except version history),
196
+ * optionally copies trajectories, and deletes the source workflow.
197
+ */
198
+ export declare const mergeWorkflowV1WorkflowsWorkflowIdMergePost: <ThrowOnError extends boolean = false>(options: Options<MergeWorkflowV1WorkflowsWorkflowIdMergePostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").WorkflowResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
184
199
  /**
185
200
  * Get Workflow Versions
186
201
  * Get the version history of a workflow.
@@ -1,9 +1,9 @@
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.listRunsV1RunsGet = exports.updateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatch = exports.getModelConfigurationV1ModelConfigurationsModelConfigurationIdGet = exports.deleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDelete = exports.createModelConfigurationV1ModelConfigurationsPost = exports.listModelConfigurationsV1ModelConfigurationsGet = exports.reorderTagGroupsV1WorkflowTagGroupsReorderPut = exports.updateTagGroupV1WorkflowTagGroupsGroupIdPatch = exports.getTagGroupV1WorkflowTagGroupsGroupIdGet = exports.deleteTagGroupV1WorkflowTagGroupsGroupIdDelete = exports.createTagGroupV1WorkflowTagGroupsPost = exports.listTagGroupsV1WorkflowTagGroupsGet = exports.reorderTagsV1WorkflowTagsReorderPut = exports.unarchiveTagV1WorkflowTagsTagIdUnarchivePost = exports.archiveTagV1WorkflowTagsTagIdArchivePost = exports.updateTagV1WorkflowTagsTagIdPatch = exports.getTagV1WorkflowTagsTagIdGet = exports.deleteTagV1WorkflowTagsTagIdDelete = exports.createTagV1WorkflowTagsPost = exports.listTagsV1WorkflowTagsGet = exports.removeTagFromWorkflowV1WorkflowsWorkflowIdTagsTagIdDelete = exports.addTagsToWorkflowV1WorkflowsWorkflowIdTagsPost = exports.getWorkflowTagsV1WorkflowsWorkflowIdTagsGet = exports.getWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGet = exports.listWorkflowPromptImagesV1WorkflowsPromptImagesGet = exports.uploadWorkflowPromptImageV1WorkflowsPromptImagePost = exports.deleteWorkflowPromptImageV1WorkflowsPromptImageDelete = exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = exports.updateWorkflowV1WorkflowsWorkflowIdPatch = exports.getWorkflowV1WorkflowsWorkflowIdGet = exports.deleteWorkflowV1WorkflowsWorkflowIdDelete = exports.bulkAddTagsToWorkflowsV1WorkflowsBulkTagsPost = exports.createWorkflowV1WorkflowsPost = exports.listWorkflowsV1WorkflowsGet = exports.addMachinesToPoolV1PoolsPoolIdMachinesPost = exports.removeMachinesFromPoolV1PoolsPoolIdMachinesDelete = exports.updatePoolV1PoolsPoolIdPatch = exports.getPoolV1PoolsPoolIdGet = exports.deletePoolV1PoolsPoolIdDelete = exports.createPoolV1PoolsPost = exports.listPoolsV1PoolsGet = exports.updateMachinePoolsV1MachinesMachineIdPoolsPut = exports.getMachinePoolsV1MachinesMachineIdPoolsGet = exports.updateMachineV1MachinesMachineIdPatch = exports.getMachineV1MachinesMachineIdGet = exports.deleteMachineV1MachinesMachineIdDelete = exports.createMachineV1MachinesPost = exports.listMachinesV1MachinesGet = exports.databaseHealthCheckV1HealthDbGet = exports.healthCheckV1HealthGet = void 0;
5
- exports.healthLiveHealthLiveGet = exports.rootGet = exports.dbPingInternalDebugDbPingGet = exports.getUsageAggregateV1UsageAggregateGet = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseDragV1ComputerMachineIdInputMouseDragPost = exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.copyToClipboardV1ComputerMachineIdCopyToClipboardPost = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.duplicateTrajectoryV1TrajectoriesTrajectoryIdDuplicatePost = 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.retryRunV1RunsRunIdRetryPost = exports.bulkCreateRunsV1RunsBulkPost = exports.createRunChainV1RunsChainPost = exports.updateRunV1RunsRunIdPatch = exports.getRunV1RunsRunIdGet = exports.deleteRunV1RunsRunIdDelete = exports.createRunV1RunsPost = void 0;
6
- exports.healthDbHealthDbGet = exports.healthHealthGet = exports.healthReadyHealthReadyGet = void 0;
4
+ exports.getModelConfigurationV1ModelConfigurationsModelConfigurationIdGet = exports.deleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDelete = exports.createModelConfigurationV1ModelConfigurationsPost = exports.listModelConfigurationsV1ModelConfigurationsGet = exports.reorderTagGroupsV1WorkflowTagGroupsReorderPut = exports.updateTagGroupV1WorkflowTagGroupsGroupIdPatch = exports.getTagGroupV1WorkflowTagGroupsGroupIdGet = exports.deleteTagGroupV1WorkflowTagGroupsGroupIdDelete = exports.createTagGroupV1WorkflowTagGroupsPost = exports.listTagGroupsV1WorkflowTagGroupsGet = exports.reorderTagsV1WorkflowTagsReorderPut = exports.unarchiveTagV1WorkflowTagsTagIdUnarchivePost = exports.archiveTagV1WorkflowTagsTagIdArchivePost = exports.updateTagV1WorkflowTagsTagIdPatch = exports.getTagV1WorkflowTagsTagIdGet = exports.deleteTagV1WorkflowTagsTagIdDelete = exports.createTagV1WorkflowTagsPost = exports.listTagsV1WorkflowTagsGet = exports.removeTagFromWorkflowV1WorkflowsWorkflowIdTagsTagIdDelete = exports.addTagsToWorkflowV1WorkflowsWorkflowIdTagsPost = exports.getWorkflowTagsV1WorkflowsWorkflowIdTagsGet = exports.getWorkflowPromptImageSignedUrlV1WorkflowsPromptImageSignedUrlGet = exports.listWorkflowPromptImagesV1WorkflowsPromptImagesGet = exports.uploadWorkflowPromptImageV1WorkflowsPromptImagePost = exports.deleteWorkflowPromptImageV1WorkflowsPromptImageDelete = exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = exports.mergeWorkflowV1WorkflowsWorkflowIdMergePost = exports.duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost = exports.updateWorkflowV1WorkflowsWorkflowIdPatch = exports.getWorkflowV1WorkflowsWorkflowIdGet = exports.deleteWorkflowV1WorkflowsWorkflowIdDelete = exports.bulkAddTagsToWorkflowsV1WorkflowsBulkTagsPost = exports.createWorkflowV1WorkflowsPost = exports.listWorkflowsV1WorkflowsGet = exports.addMachinesToPoolV1PoolsPoolIdMachinesPost = exports.removeMachinesFromPoolV1PoolsPoolIdMachinesDelete = exports.updatePoolV1PoolsPoolIdPatch = exports.getPoolV1PoolsPoolIdGet = exports.deletePoolV1PoolsPoolIdDelete = exports.createPoolV1PoolsPost = exports.listPoolsV1PoolsGet = exports.updateMachinePoolsV1MachinesMachineIdPoolsPut = exports.getMachinePoolsV1MachinesMachineIdPoolsGet = exports.updateMachineV1MachinesMachineIdPatch = exports.getMachineV1MachinesMachineIdGet = exports.deleteMachineV1MachinesMachineIdDelete = exports.createMachineV1MachinesPost = exports.listMachinesV1MachinesGet = exports.databaseHealthCheckV1HealthDbGet = exports.healthCheckV1HealthGet = void 0;
5
+ exports.dbPingInternalDebugDbPingGet = exports.getUsageAggregateV1UsageAggregateGet = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseDragV1ComputerMachineIdInputMouseDragPost = exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.copyToClipboardV1ComputerMachineIdCopyToClipboardPost = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.duplicateTrajectoryV1TrajectoriesTrajectoryIdDuplicatePost = 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.retryRunV1RunsRunIdRetryPost = exports.bulkCreateRunsV1RunsBulkPost = exports.createRunChainV1RunsChainPost = exports.updateRunV1RunsRunIdPatch = exports.getRunV1RunsRunIdGet = exports.deleteRunV1RunsRunIdDelete = exports.createRunV1RunsPost = exports.listRunsV1RunsGet = exports.updateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatch = void 0;
6
+ exports.healthDbHealthDbGet = exports.healthHealthGet = exports.healthReadyHealthReadyGet = exports.healthLiveHealthLiveGet = exports.rootGet = void 0;
7
7
  const client_fetch_1 = require("@hey-api/client-fetch");
8
8
  const client_gen_1 = require("./client.gen");
9
9
  /**
@@ -360,6 +360,39 @@ const updateWorkflowV1WorkflowsWorkflowIdPatch = (options) => {
360
360
  ], url: '/v1/workflows/{workflow_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
361
361
  };
362
362
  exports.updateWorkflowV1WorkflowsWorkflowIdPatch = updateWorkflowV1WorkflowsWorkflowIdPatch;
363
+ /**
364
+ * Duplicate Workflow
365
+ * Duplicate a workflow, including trajectories and prompt images.
366
+ *
367
+ * Copies everything except version history, and prefixes the name with "(Copy)".
368
+ */
369
+ const duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost = (options) => {
370
+ var _a;
371
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign({ security: [
372
+ {
373
+ scheme: 'bearer',
374
+ type: 'http'
375
+ }
376
+ ], url: '/v1/workflows/{workflow_id}/duplicate' }, options));
377
+ };
378
+ exports.duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost = duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost;
379
+ /**
380
+ * Merge Workflow
381
+ * Merge the current workflow into another workflow.
382
+ *
383
+ * Updates the target workflow with all data from the source workflow (except version history),
384
+ * optionally copies trajectories, and deletes the source workflow.
385
+ */
386
+ const mergeWorkflowV1WorkflowsWorkflowIdMergePost = (options) => {
387
+ var _a;
388
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
389
+ {
390
+ scheme: 'bearer',
391
+ type: 'http'
392
+ }
393
+ ], url: '/v1/workflows/{workflow_id}/merge' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
394
+ };
395
+ exports.mergeWorkflowV1WorkflowsWorkflowIdMergePost = mergeWorkflowV1WorkflowsWorkflowIdMergePost;
363
396
  /**
364
397
  * Get Workflow Versions
365
398
  * Get the version history of a workflow.
@@ -956,6 +956,14 @@ export type RunRetry = {
956
956
  * Set/override session_id for this retry
957
957
  */
958
958
  session_id?: string | null;
959
+ /**
960
+ * Start a fresh new session for this retry (creates new session_id)
961
+ */
962
+ start_session?: boolean | null;
963
+ /**
964
+ * Set/override session_alias for this retry (used with start_session or session_id)
965
+ */
966
+ session_alias?: string | null;
959
967
  /**
960
968
  * Override release_session_after behavior for this retry
961
969
  */
@@ -1161,6 +1169,19 @@ export type WorkflowCreate = {
1161
1169
  */
1162
1170
  model_metadata?: WorkflowModelMetadata | null;
1163
1171
  };
1172
+ /**
1173
+ * Schema for merging workflows
1174
+ */
1175
+ export type WorkflowMergeRequest = {
1176
+ /**
1177
+ * Workflow ID to merge into
1178
+ */
1179
+ target_workflow_id: string;
1180
+ /**
1181
+ * Whether to copy trajectories to the target workflow
1182
+ */
1183
+ copy_trajectories?: boolean;
1184
+ };
1164
1185
  /**
1165
1186
  * JSONB-backed workflow model configuration metadata.
1166
1187
  *
@@ -1428,7 +1449,7 @@ export type ListMachinesV1MachinesGetData = {
1428
1449
  path?: never;
1429
1450
  query?: {
1430
1451
  /**
1431
- * Search machines by name or hostname (case-insensitive substring match)
1452
+ * Search machines by id, name, or hostname (case-insensitive substring match)
1432
1453
  */
1433
1454
  search?: string | null;
1434
1455
  /**
@@ -1826,7 +1847,7 @@ export type ListWorkflowsV1WorkflowsGetData = {
1826
1847
  path?: never;
1827
1848
  query?: {
1828
1849
  /**
1829
- * Search workflows by name (case-insensitive substring match)
1850
+ * Search workflows by id or name (case-insensitive substring match)
1830
1851
  */
1831
1852
  search?: string | null;
1832
1853
  /**
@@ -2002,6 +2023,62 @@ export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses = {
2002
2023
  200: WorkflowResponse;
2003
2024
  };
2004
2025
  export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponse = UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses[keyof UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses];
2026
+ export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostData = {
2027
+ body?: never;
2028
+ headers?: {
2029
+ /**
2030
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2031
+ */
2032
+ 'Idempotency-Key'?: string;
2033
+ };
2034
+ path: {
2035
+ workflow_id: string;
2036
+ };
2037
+ query?: never;
2038
+ url: '/v1/workflows/{workflow_id}/duplicate';
2039
+ };
2040
+ export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostErrors = {
2041
+ /**
2042
+ * Validation Error
2043
+ */
2044
+ 422: HttpValidationError;
2045
+ };
2046
+ export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostError = DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostErrors[keyof DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostErrors];
2047
+ export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostResponses = {
2048
+ /**
2049
+ * Successful Response
2050
+ */
2051
+ 201: WorkflowResponse;
2052
+ };
2053
+ export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostResponse = DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostResponses[keyof DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostResponses];
2054
+ export type MergeWorkflowV1WorkflowsWorkflowIdMergePostData = {
2055
+ body: WorkflowMergeRequest;
2056
+ headers?: {
2057
+ /**
2058
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2059
+ */
2060
+ 'Idempotency-Key'?: string;
2061
+ };
2062
+ path: {
2063
+ workflow_id: string;
2064
+ };
2065
+ query?: never;
2066
+ url: '/v1/workflows/{workflow_id}/merge';
2067
+ };
2068
+ export type MergeWorkflowV1WorkflowsWorkflowIdMergePostErrors = {
2069
+ /**
2070
+ * Validation Error
2071
+ */
2072
+ 422: HttpValidationError;
2073
+ };
2074
+ export type MergeWorkflowV1WorkflowsWorkflowIdMergePostError = MergeWorkflowV1WorkflowsWorkflowIdMergePostErrors[keyof MergeWorkflowV1WorkflowsWorkflowIdMergePostErrors];
2075
+ export type MergeWorkflowV1WorkflowsWorkflowIdMergePostResponses = {
2076
+ /**
2077
+ * Successful Response
2078
+ */
2079
+ 200: WorkflowResponse;
2080
+ };
2081
+ export type MergeWorkflowV1WorkflowsWorkflowIdMergePostResponse = MergeWorkflowV1WorkflowsWorkflowIdMergePostResponses[keyof MergeWorkflowV1WorkflowsWorkflowIdMergePostResponses];
2005
2082
  export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData = {
2006
2083
  body?: never;
2007
2084
  path: {
@@ -2700,7 +2777,7 @@ export type ListRunsV1RunsGetData = {
2700
2777
  */
2701
2778
  created_at_to?: string | null;
2702
2779
  /**
2703
- * Search runs by input_values, output_data, error, session_alias (case-insensitive substring match)
2780
+ * Search runs by id, input_values, output_data, error, session_alias (case-insensitive substring match)
2704
2781
  */
2705
2782
  search?: string | null;
2706
2783
  /**
@@ -3386,7 +3463,7 @@ export type ListTrajectoriesV1TrajectoriesGetData = {
3386
3463
  path?: never;
3387
3464
  query?: {
3388
3465
  /**
3389
- * Search trajectories by name or description (case-insensitive substring match)
3466
+ * Search trajectories by id, name, or description (case-insensitive substring match)
3390
3467
  */
3391
3468
  search?: string | null;
3392
3469
  /**
package/dist/index.d.ts CHANGED
@@ -581,6 +581,42 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
581
581
  request: Request;
582
582
  response: Response;
583
583
  }>;
584
+ /**
585
+ * Duplicate a workflow
586
+ *
587
+ * @param workflowId - The ID of the workflow to duplicate
588
+ * @returns Duplicated workflow details
589
+ */
590
+ duplicate: (workflowId: string) => Promise<({
591
+ data: undefined;
592
+ error: import("./client/types.gen").HttpValidationError;
593
+ } | {
594
+ data: WorkflowResponse;
595
+ error: undefined;
596
+ }) & {
597
+ request: Request;
598
+ response: Response;
599
+ }>;
600
+ /**
601
+ * Merge a workflow into another workflow
602
+ *
603
+ * @param workflowId - The ID of the workflow to merge (source)
604
+ * @param data - Merge request with target workflow ID and options
605
+ * @returns Updated target workflow details
606
+ */
607
+ merge: (workflowId: string, data: {
608
+ target_workflow_id: string;
609
+ copy_trajectories?: boolean;
610
+ }) => Promise<({
611
+ data: undefined;
612
+ error: import("./client/types.gen").HttpValidationError;
613
+ } | {
614
+ data: WorkflowResponse;
615
+ error: undefined;
616
+ }) & {
617
+ request: Request;
618
+ response: Response;
619
+ }>;
584
620
  };
585
621
  workflow_tag_groups: {
586
622
  /**
package/dist/index.js CHANGED
@@ -692,6 +692,32 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
692
692
  path: { workflow_id: workflowId },
693
693
  });
694
694
  }),
695
+ /**
696
+ * Duplicate a workflow
697
+ *
698
+ * @param workflowId - The ID of the workflow to duplicate
699
+ * @returns Duplicated workflow details
700
+ */
701
+ duplicate: (workflowId) => __awaiter(this, void 0, void 0, function* () {
702
+ return (0, sdk_gen_1.duplicateWorkflowV1WorkflowsWorkflowIdDuplicatePost)({
703
+ client,
704
+ path: { workflow_id: workflowId },
705
+ });
706
+ }),
707
+ /**
708
+ * Merge a workflow into another workflow
709
+ *
710
+ * @param workflowId - The ID of the workflow to merge (source)
711
+ * @param data - Merge request with target workflow ID and options
712
+ * @returns Updated target workflow details
713
+ */
714
+ merge: (workflowId, data) => __awaiter(this, void 0, void 0, function* () {
715
+ return (0, sdk_gen_1.mergeWorkflowV1WorkflowsWorkflowIdMergePost)({
716
+ client,
717
+ path: { workflow_id: workflowId },
718
+ body: data,
719
+ });
720
+ }),
695
721
  },
696
722
  // Workflow Tag Group endpoints
697
723
  workflow_tag_groups: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "2.2.21",
3
+ "version": "2.2.24",
4
4
  "description": "The official TypeScript SDK for Cyberdesk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",