cyberdesk 2.2.20 → 2.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/sdk.gen.d.ts +8 -1
- package/dist/client/sdk.gen.js +19 -3
- package/dist/client/types.gen.d.ts +47 -3
- package/dist/index.d.ts +20 -0
- package/dist/index.js +16 -0
- package/package.json +1 -1
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -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, 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,13 @@ 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>;
|
|
184
191
|
/**
|
|
185
192
|
* Get Workflow Versions
|
|
186
193
|
* Get the version history of a workflow.
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -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.
|
|
5
|
-
exports.
|
|
6
|
-
exports.healthDbHealthDbGet = exports.healthHealthGet = exports.healthReadyHealthReadyGet = void 0;
|
|
4
|
+
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.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.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 = exports.listRunsV1RunsGet = void 0;
|
|
6
|
+
exports.healthDbHealthDbGet = exports.healthHealthGet = exports.healthReadyHealthReadyGet = exports.healthLiveHealthLiveGet = 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,22 @@ 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;
|
|
363
379
|
/**
|
|
364
380
|
* Get Workflow Versions
|
|
365
381
|
* 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
|
*/
|
|
@@ -1428,7 +1436,7 @@ export type ListMachinesV1MachinesGetData = {
|
|
|
1428
1436
|
path?: never;
|
|
1429
1437
|
query?: {
|
|
1430
1438
|
/**
|
|
1431
|
-
* Search machines by name or hostname (case-insensitive substring match)
|
|
1439
|
+
* Search machines by id, name, or hostname (case-insensitive substring match)
|
|
1432
1440
|
*/
|
|
1433
1441
|
search?: string | null;
|
|
1434
1442
|
/**
|
|
@@ -1826,7 +1834,7 @@ export type ListWorkflowsV1WorkflowsGetData = {
|
|
|
1826
1834
|
path?: never;
|
|
1827
1835
|
query?: {
|
|
1828
1836
|
/**
|
|
1829
|
-
* Search workflows by name (case-insensitive substring match)
|
|
1837
|
+
* Search workflows by id or name (case-insensitive substring match)
|
|
1830
1838
|
*/
|
|
1831
1839
|
search?: string | null;
|
|
1832
1840
|
/**
|
|
@@ -2002,6 +2010,34 @@ export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses = {
|
|
|
2002
2010
|
200: WorkflowResponse;
|
|
2003
2011
|
};
|
|
2004
2012
|
export type UpdateWorkflowV1WorkflowsWorkflowIdPatchResponse = UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses[keyof UpdateWorkflowV1WorkflowsWorkflowIdPatchResponses];
|
|
2013
|
+
export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostData = {
|
|
2014
|
+
body?: never;
|
|
2015
|
+
headers?: {
|
|
2016
|
+
/**
|
|
2017
|
+
* 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.
|
|
2018
|
+
*/
|
|
2019
|
+
'Idempotency-Key'?: string;
|
|
2020
|
+
};
|
|
2021
|
+
path: {
|
|
2022
|
+
workflow_id: string;
|
|
2023
|
+
};
|
|
2024
|
+
query?: never;
|
|
2025
|
+
url: '/v1/workflows/{workflow_id}/duplicate';
|
|
2026
|
+
};
|
|
2027
|
+
export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostErrors = {
|
|
2028
|
+
/**
|
|
2029
|
+
* Validation Error
|
|
2030
|
+
*/
|
|
2031
|
+
422: HttpValidationError;
|
|
2032
|
+
};
|
|
2033
|
+
export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostError = DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostErrors[keyof DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostErrors];
|
|
2034
|
+
export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostResponses = {
|
|
2035
|
+
/**
|
|
2036
|
+
* Successful Response
|
|
2037
|
+
*/
|
|
2038
|
+
201: WorkflowResponse;
|
|
2039
|
+
};
|
|
2040
|
+
export type DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostResponse = DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostResponses[keyof DuplicateWorkflowV1WorkflowsWorkflowIdDuplicatePostResponses];
|
|
2005
2041
|
export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData = {
|
|
2006
2042
|
body?: never;
|
|
2007
2043
|
path: {
|
|
@@ -2699,6 +2735,14 @@ export type ListRunsV1RunsGetData = {
|
|
|
2699
2735
|
* Filter runs created at or before this ISO timestamp (UTC)
|
|
2700
2736
|
*/
|
|
2701
2737
|
created_at_to?: string | null;
|
|
2738
|
+
/**
|
|
2739
|
+
* Search runs by id, input_values, output_data, error, session_alias (case-insensitive substring match)
|
|
2740
|
+
*/
|
|
2741
|
+
search?: string | null;
|
|
2742
|
+
/**
|
|
2743
|
+
* If true, also search run_message_history (slower but more comprehensive)
|
|
2744
|
+
*/
|
|
2745
|
+
deep_search?: boolean;
|
|
2702
2746
|
/**
|
|
2703
2747
|
* Optional list of fields to include per run. Always includes: id, workflow_id, machine_id, status, created_at. Provide multiple 'fields=' params to include more.
|
|
2704
2748
|
*/
|
|
@@ -3378,7 +3422,7 @@ export type ListTrajectoriesV1TrajectoriesGetData = {
|
|
|
3378
3422
|
path?: never;
|
|
3379
3423
|
query?: {
|
|
3380
3424
|
/**
|
|
3381
|
-
* Search trajectories by name or description (case-insensitive substring match)
|
|
3425
|
+
* Search trajectories by id, name, or description (case-insensitive substring match)
|
|
3382
3426
|
*/
|
|
3383
3427
|
search?: string | null;
|
|
3384
3428
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -581,6 +581,22 @@ 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
|
+
}>;
|
|
584
600
|
};
|
|
585
601
|
workflow_tag_groups: {
|
|
586
602
|
/**
|
|
@@ -979,6 +995,8 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
|
|
|
979
995
|
* @param params.workflow_id - Filter by workflow ID
|
|
980
996
|
* @param params.machine_id - Filter by machine ID
|
|
981
997
|
* @param params.session_id - Filter by session ID
|
|
998
|
+
* @param params.search - Search runs by input_values, output_data, error, session_alias (case-insensitive)
|
|
999
|
+
* @param params.deep_search - If true, also search run_message_history (slower but more comprehensive)
|
|
982
1000
|
* @param params.fields - Optional list of fields to include per run (projection). Available fields include:
|
|
983
1001
|
* started_at, ended_at, error, output_data, input_values, usage_metadata, and more.
|
|
984
1002
|
* @param params.include - Optional list of related resources to include. Available: ["workflow", "machine", "machine.pools"].
|
|
@@ -996,6 +1014,8 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
|
|
|
996
1014
|
workflow_id?: string;
|
|
997
1015
|
machine_id?: string;
|
|
998
1016
|
session_id?: string;
|
|
1017
|
+
search?: string;
|
|
1018
|
+
deep_search?: boolean;
|
|
999
1019
|
created_at_from?: string | Date;
|
|
1000
1020
|
created_at_to?: string | Date;
|
|
1001
1021
|
fields?: RunField[];
|
package/dist/index.js
CHANGED
|
@@ -692,6 +692,18 @@ 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
|
+
}),
|
|
695
707
|
},
|
|
696
708
|
// Workflow Tag Group endpoints
|
|
697
709
|
workflow_tag_groups: {
|
|
@@ -1019,6 +1031,8 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
|
|
|
1019
1031
|
* @param params.workflow_id - Filter by workflow ID
|
|
1020
1032
|
* @param params.machine_id - Filter by machine ID
|
|
1021
1033
|
* @param params.session_id - Filter by session ID
|
|
1034
|
+
* @param params.search - Search runs by input_values, output_data, error, session_alias (case-insensitive)
|
|
1035
|
+
* @param params.deep_search - If true, also search run_message_history (slower but more comprehensive)
|
|
1022
1036
|
* @param params.fields - Optional list of fields to include per run (projection). Available fields include:
|
|
1023
1037
|
* started_at, ended_at, error, output_data, input_values, usage_metadata, and more.
|
|
1024
1038
|
* @param params.include - Optional list of related resources to include. Available: ["workflow", "machine", "machine.pools"].
|
|
@@ -1038,6 +1052,8 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
|
|
|
1038
1052
|
workflow_id: (_b = params === null || params === void 0 ? void 0 : params.workflow_id) !== null && _b !== void 0 ? _b : undefined,
|
|
1039
1053
|
machine_id: (_c = params === null || params === void 0 ? void 0 : params.machine_id) !== null && _c !== void 0 ? _c : undefined,
|
|
1040
1054
|
session_id: (_d = params === null || params === void 0 ? void 0 : params.session_id) !== null && _d !== void 0 ? _d : undefined,
|
|
1055
|
+
search: params === null || params === void 0 ? void 0 : params.search,
|
|
1056
|
+
deep_search: params === null || params === void 0 ? void 0 : params.deep_search,
|
|
1041
1057
|
created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
|
|
1042
1058
|
created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
|
|
1043
1059
|
fields: params === null || params === void 0 ? void 0 : params.fields,
|