cyberdesk 2.2.31 → 2.2.32

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, 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, GetRunTrajectoryV1RunsRunIdTrajectoryGetData, GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostData, 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, GetRunTrajectoryV1RunsRunIdTrajectoryGetData, GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostData, 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, CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostData, GetUsageAggregateV1UsageAggregateGetData, RootGetData, HealthLiveHealthLiveGetData, HealthReadyHealthReadyGetData, HealthHealthGetData, HealthDbHealthDbGetData, HealthMachinesV1HealthMachinesGetData } 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
@@ -430,13 +430,19 @@ export declare const updateRunV1RunsRunIdPatch: <ThrowOnError extends boolean =
430
430
  *
431
431
  * Returns generated and non-generated trajectories so run details can expose
432
432
  * generation state.
433
+ *
434
+ * Selection is based on newest `updated_at` for the run. If a duplicated
435
+ * trajectory linked to the run is now the latest row, this endpoint will
436
+ * return that duplicate.
433
437
  */
434
438
  export declare const getRunTrajectoryV1RunsRunIdTrajectoryGet: <ThrowOnError extends boolean = false>(options: Options<GetRunTrajectoryV1RunsRunIdTrajectoryGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").TrajectoryResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
435
439
  /**
436
440
  * Generate Run Trajectory
437
441
  * Mark the latest trajectory for a run as generated.
438
442
  *
439
- * This promotes an auto-saved trajectory into the user-visible trajectories table.
443
+ * This promotes whichever trajectory is currently latest by `updated_at`.
444
+ * If a duplicated trajectory tied to this run is the latest row, this
445
+ * endpoint may return/promote that duplicate.
440
446
  */
441
447
  export declare const generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost: <ThrowOnError extends boolean = false>(options: Options<GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").TrajectoryResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
442
448
  /**
@@ -756,6 +762,13 @@ export declare const powershellExecV1ComputerMachineIdShellPowershellExecPost: <
756
762
  export declare const powershellSessionV1ComputerMachineIdShellPowershellSessionPost: <ThrowOnError extends boolean = false>(options: Options<PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
757
763
  [key: string]: unknown;
758
764
  }, import("./types.gen").HttpValidationError, ThrowOnError>;
765
+ /**
766
+ * Shutdown Cyberdriver via tunnel
767
+ * Request CyberDriver process shutdown through the existing tunnel proxy path.
768
+ */
769
+ export declare const cyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPost: <ThrowOnError extends boolean = false>(options: Options<CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
770
+ [key: string]: unknown;
771
+ }, unknown, ThrowOnError>;
759
772
  /**
760
773
  * Get Usage Aggregate
761
774
  * Aggregate usage (agentic and cached steps) for a given date range.
@@ -768,13 +781,6 @@ export declare const powershellSessionV1ComputerMachineIdShellPowershellSessionP
768
781
  * Use this for customers on active Stripe billing.
769
782
  */
770
783
  export declare const getUsageAggregateV1UsageAggregateGet: <ThrowOnError extends boolean = false>(options: Options<GetUsageAggregateV1UsageAggregateGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").UsageAggregateResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
771
- /**
772
- * Db Ping
773
- * Execute a lightweight `SELECT 1` to validate DB connectivity and expose pool stats.
774
- *
775
- * Returns JSON payload with `ok` boolean, pool metrics, and optional error metadata.
776
- */
777
- export declare const dbPingInternalDebugDbPingGet: <ThrowOnError extends boolean = false>(options?: Options<DbPingInternalDebugDbPingGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
778
784
  /**
779
785
  * Root
780
786
  * Root endpoint with service information
@@ -805,3 +811,12 @@ export declare const healthHealthGet: <ThrowOnError extends boolean = false>(opt
805
811
  * Legacy endpoint - checks database only.
806
812
  */
807
813
  export declare const healthDbHealthDbGet: <ThrowOnError extends boolean = false>(options?: Options<HealthDbHealthDbGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
814
+ /**
815
+ * Health Machines
816
+ * Probe the dimensions endpoint for all connected machines in scope.
817
+ *
818
+ * Scope rules:
819
+ * - Standard keys/JWT: only machines in the authenticated organization
820
+ * - Cyberdesk root API key: machines across all organizations
821
+ */
822
+ export declare const healthMachinesV1HealthMachinesGet: <ThrowOnError extends boolean = false>(options?: Options<HealthMachinesV1HealthMachinesGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").MachinesHealthCheckResponse, import("./types.gen").MachinesHealthCheckResponse, ThrowOnError>;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
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
5
  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.generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost = exports.getRunTrajectoryV1RunsRunIdTrajectoryGet = 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 = exports.dbPingInternalDebugDbPingGet = exports.getUsageAggregateV1UsageAggregateGet = void 0;
6
+ exports.healthMachinesV1HealthMachinesGet = exports.healthDbHealthDbGet = exports.healthHealthGet = exports.healthReadyHealthReadyGet = exports.healthLiveHealthLiveGet = exports.rootGet = exports.getUsageAggregateV1UsageAggregateGet = exports.cyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPost = void 0;
7
7
  const client_fetch_1 = require("@hey-api/client-fetch");
8
8
  const client_gen_1 = require("./client.gen");
9
9
  /**
@@ -913,6 +913,10 @@ exports.updateRunV1RunsRunIdPatch = updateRunV1RunsRunIdPatch;
913
913
  *
914
914
  * Returns generated and non-generated trajectories so run details can expose
915
915
  * generation state.
916
+ *
917
+ * Selection is based on newest `updated_at` for the run. If a duplicated
918
+ * trajectory linked to the run is now the latest row, this endpoint will
919
+ * return that duplicate.
916
920
  */
917
921
  const getRunTrajectoryV1RunsRunIdTrajectoryGet = (options) => {
918
922
  var _a;
@@ -928,7 +932,9 @@ exports.getRunTrajectoryV1RunsRunIdTrajectoryGet = getRunTrajectoryV1RunsRunIdTr
928
932
  * Generate Run Trajectory
929
933
  * Mark the latest trajectory for a run as generated.
930
934
  *
931
- * This promotes an auto-saved trajectory into the user-visible trajectories table.
935
+ * This promotes whichever trajectory is currently latest by `updated_at`.
936
+ * If a duplicated trajectory tied to this run is the latest row, this
937
+ * endpoint may return/promote that duplicate.
932
938
  */
933
939
  const generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost = (options) => {
934
940
  var _a;
@@ -1623,6 +1629,20 @@ const powershellSessionV1ComputerMachineIdShellPowershellSessionPost = (options)
1623
1629
  ], url: '/v1/computer/{machine_id}/shell/powershell/session' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1624
1630
  };
1625
1631
  exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = powershellSessionV1ComputerMachineIdShellPowershellSessionPost;
1632
+ /**
1633
+ * Shutdown Cyberdriver via tunnel
1634
+ * Request CyberDriver process shutdown through the existing tunnel proxy path.
1635
+ */
1636
+ const cyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPost = (options) => {
1637
+ var _a;
1638
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
1639
+ {
1640
+ scheme: 'bearer',
1641
+ type: 'http'
1642
+ }
1643
+ ], url: '/v1/machines/{machine_id}/cyberdriver/shutdown' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1644
+ };
1645
+ exports.cyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPost = cyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPost;
1626
1646
  /**
1627
1647
  * Get Usage Aggregate
1628
1648
  * Aggregate usage (agentic and cached steps) for a given date range.
@@ -1644,17 +1664,6 @@ const getUsageAggregateV1UsageAggregateGet = (options) => {
1644
1664
  ], url: '/v1/usage/aggregate' }, options));
1645
1665
  };
1646
1666
  exports.getUsageAggregateV1UsageAggregateGet = getUsageAggregateV1UsageAggregateGet;
1647
- /**
1648
- * Db Ping
1649
- * Execute a lightweight `SELECT 1` to validate DB connectivity and expose pool stats.
1650
- *
1651
- * Returns JSON payload with `ok` boolean, pool metrics, and optional error metadata.
1652
- */
1653
- const dbPingInternalDebugDbPingGet = (options) => {
1654
- var _a;
1655
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ url: '/internal/debug/db-ping' }, options));
1656
- };
1657
- exports.dbPingInternalDebugDbPingGet = dbPingInternalDebugDbPingGet;
1658
1667
  /**
1659
1668
  * Root
1660
1669
  * Root endpoint with service information
@@ -1705,3 +1714,21 @@ const healthDbHealthDbGet = (options) => {
1705
1714
  return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ url: '/health/db' }, options));
1706
1715
  };
1707
1716
  exports.healthDbHealthDbGet = healthDbHealthDbGet;
1717
+ /**
1718
+ * Health Machines
1719
+ * Probe the dimensions endpoint for all connected machines in scope.
1720
+ *
1721
+ * Scope rules:
1722
+ * - Standard keys/JWT: only machines in the authenticated organization
1723
+ * - Cyberdesk root API key: machines across all organizations
1724
+ */
1725
+ const healthMachinesV1HealthMachinesGet = (options) => {
1726
+ var _a;
1727
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
1728
+ {
1729
+ scheme: 'bearer',
1730
+ type: 'http'
1731
+ }
1732
+ ], url: '/v1/health/machines' }, options));
1733
+ };
1734
+ exports.healthMachinesV1HealthMachinesGet = healthMachinesV1HealthMachinesGet;
@@ -79,6 +79,16 @@ export type CopyToClipboardRequest = {
79
79
  */
80
80
  text: string;
81
81
  };
82
+ export type CyberdriverShutdownRequest = {
83
+ /**
84
+ * Caller identifier for shutdown auditing
85
+ */
86
+ source?: string;
87
+ /**
88
+ * Reason for shutting down the CyberDriver process
89
+ */
90
+ reason?: string | null;
91
+ };
82
92
  export type DisplayDimensions = {
83
93
  width: number;
84
94
  height: number;
@@ -174,6 +184,13 @@ export type MachineCreate = {
174
184
  } | null;
175
185
  unkey_key_id: string;
176
186
  };
187
+ export type MachineHealthCheckError = {
188
+ machine_id: string;
189
+ organization_id?: string | null;
190
+ machine_name?: string | null;
191
+ status_code?: number | null;
192
+ error: string;
193
+ };
177
194
  /**
178
195
  * Schema for assigning machines to pools
179
196
  */
@@ -290,6 +307,14 @@ export type MachineUpdate = {
290
307
  [key: string]: string;
291
308
  } | null;
292
309
  };
310
+ export type MachinesHealthCheckResponse = {
311
+ status: 'ok' | 'error';
312
+ scope: 'organization' | 'all_organizations';
313
+ checked_machines: number;
314
+ healthy_machines: number;
315
+ errored_machines: Array<MachineHealthCheckError>;
316
+ message: string;
317
+ };
293
318
  /**
294
319
  * Create a model configuration.
295
320
  *
@@ -321,6 +346,10 @@ export type ModelConfigurationCreate = {
321
346
  * True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents.
322
347
  */
323
348
  is_computer_use_model?: boolean;
349
+ /**
350
+ * Whether this model configuration is archived and should generally be hidden behind archived-model UI affordances.
351
+ */
352
+ is_archived?: boolean;
324
353
  /**
325
354
  * Raw API key (stored in Basis Theory; never persisted directly).
326
355
  */
@@ -354,6 +383,10 @@ export type ModelConfigurationResponse = {
354
383
  * True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents.
355
384
  */
356
385
  is_computer_use_model?: boolean;
386
+ /**
387
+ * Whether this model configuration is archived and should generally be hidden behind archived-model UI affordances.
388
+ */
389
+ is_archived?: boolean;
357
390
  id: string;
358
391
  organization_id?: string | null;
359
392
  /**
@@ -388,6 +421,7 @@ export type ModelConfigurationUpdate = {
388
421
  [key: string]: unknown;
389
422
  } | null;
390
423
  is_computer_use_model?: boolean | null;
424
+ is_archived?: boolean | null;
391
425
  };
392
426
  export type MouseClickRequest = {
393
427
  x?: number | null;
@@ -995,7 +1029,11 @@ export type RunUpdate = {
995
1029
  release_session_after?: boolean | null;
996
1030
  };
997
1031
  /**
998
- * Schema for creating a trajectory
1032
+ * Schema for creating a trajectory.
1033
+ *
1034
+ * Note: `is_generated` is intentionally omitted here. New trajectories always
1035
+ * start as non-generated and must be promoted via
1036
+ * POST /runs/{run_id}/generate-trajectory.
999
1037
  */
1000
1038
  export type TrajectoryCreate = {
1001
1039
  name?: string | null;
@@ -1024,10 +1062,6 @@ export type TrajectoryCreate = {
1024
1062
  * Whether this trajectory is approved for use
1025
1063
  */
1026
1064
  is_approved?: boolean;
1027
- /**
1028
- * Whether this trajectory has been generated/promoted for display in the trajectories table
1029
- */
1030
- is_generated?: boolean;
1031
1065
  };
1032
1066
  /**
1033
1067
  * Trajectory response schema
@@ -1111,10 +1145,6 @@ export type TrajectoryUpdate = {
1111
1145
  * Whether this trajectory is approved for use
1112
1146
  */
1113
1147
  is_approved?: boolean | null;
1114
- /**
1115
- * Whether this trajectory has been generated/promoted for display in the trajectories table
1116
- */
1117
- is_generated?: boolean | null;
1118
1148
  };
1119
1149
  /**
1120
1150
  * Response schema for usage aggregation.
@@ -1214,6 +1244,23 @@ export type WorkflowInternalMetadata = {
1214
1244
  */
1215
1245
  last_errored_run_uuid?: string | null;
1216
1246
  };
1247
+ /**
1248
+ * Patchable workflow metadata fields for internal workflow maintenance.
1249
+ */
1250
+ export type WorkflowInternalMetadataUpdate = {
1251
+ /**
1252
+ * Set to false when workflow errors have been addressed.
1253
+ */
1254
+ has_unaddressed_error?: boolean | null;
1255
+ /**
1256
+ * Start timestamp of the most recent errored/task_failed run.
1257
+ */
1258
+ last_errored_run_start?: string | null;
1259
+ /**
1260
+ * Run UUID of the most recent errored/task_failed run.
1261
+ */
1262
+ last_errored_run_uuid?: string | null;
1263
+ };
1217
1264
  /**
1218
1265
  * Schema for merging workflows
1219
1266
  */
@@ -1473,6 +1520,10 @@ export type WorkflowUpdate = {
1473
1520
  * Optional workflow-level model configuration metadata (main agent + fallbacks).
1474
1521
  */
1475
1522
  model_metadata?: WorkflowModelMetadata | null;
1523
+ /**
1524
+ * Optional internal workflow metadata patch. Top-level null clears all workflow metadata. Omit this field to leave existing metadata unchanged. Set individual keys to null to remove only those keys.
1525
+ */
1526
+ workflow_metadata?: WorkflowInternalMetadataUpdate | null;
1476
1527
  };
1477
1528
  export type HealthCheckV1HealthGetData = {
1478
1529
  body?: never;
@@ -4196,6 +4247,40 @@ export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostRespon
4196
4247
  };
4197
4248
  };
4198
4249
  export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponse = PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponses[keyof PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponses];
4250
+ export type CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostData = {
4251
+ body?: CyberdriverShutdownRequest | null;
4252
+ headers?: {
4253
+ /**
4254
+ * 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.
4255
+ */
4256
+ 'Idempotency-Key'?: string;
4257
+ };
4258
+ path: {
4259
+ machine_id: string;
4260
+ };
4261
+ query?: never;
4262
+ url: '/v1/machines/{machine_id}/cyberdriver/shutdown';
4263
+ };
4264
+ export type CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostErrors = {
4265
+ /**
4266
+ * Tunnel-only endpoint rejected outside tunnel path
4267
+ */
4268
+ 403: unknown;
4269
+ /**
4270
+ * Validation Error
4271
+ */
4272
+ 422: HttpValidationError;
4273
+ };
4274
+ export type CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostError = CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostErrors[keyof CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostErrors];
4275
+ export type CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostResponses = {
4276
+ /**
4277
+ * Shutdown was accepted by CyberDriver
4278
+ */
4279
+ 200: {
4280
+ [key: string]: unknown;
4281
+ };
4282
+ };
4283
+ export type CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostResponse = CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostResponses[keyof CyberdriverShutdownV1MachinesMachineIdCyberdriverShutdownPostResponses];
4199
4284
  export type GetUsageAggregateV1UsageAggregateGetData = {
4200
4285
  body?: never;
4201
4286
  path?: never;
@@ -4229,18 +4314,6 @@ export type GetUsageAggregateV1UsageAggregateGetResponses = {
4229
4314
  200: UsageAggregateResponse;
4230
4315
  };
4231
4316
  export type GetUsageAggregateV1UsageAggregateGetResponse = GetUsageAggregateV1UsageAggregateGetResponses[keyof GetUsageAggregateV1UsageAggregateGetResponses];
4232
- export type DbPingInternalDebugDbPingGetData = {
4233
- body?: never;
4234
- path?: never;
4235
- query?: never;
4236
- url: '/internal/debug/db-ping';
4237
- };
4238
- export type DbPingInternalDebugDbPingGetResponses = {
4239
- /**
4240
- * Successful Response
4241
- */
4242
- 200: unknown;
4243
- };
4244
4317
  export type RootGetData = {
4245
4318
  body?: never;
4246
4319
  path?: never;
@@ -4301,6 +4374,26 @@ export type HealthDbHealthDbGetResponses = {
4301
4374
  */
4302
4375
  200: unknown;
4303
4376
  };
4377
+ export type HealthMachinesV1HealthMachinesGetData = {
4378
+ body?: never;
4379
+ path?: never;
4380
+ query?: never;
4381
+ url: '/v1/health/machines';
4382
+ };
4383
+ export type HealthMachinesV1HealthMachinesGetErrors = {
4384
+ /**
4385
+ * One or more connected machines failed dimensions health probes
4386
+ */
4387
+ 503: MachinesHealthCheckResponse;
4388
+ };
4389
+ export type HealthMachinesV1HealthMachinesGetError = HealthMachinesV1HealthMachinesGetErrors[keyof HealthMachinesV1HealthMachinesGetErrors];
4390
+ export type HealthMachinesV1HealthMachinesGetResponses = {
4391
+ /**
4392
+ * Successful Response
4393
+ */
4394
+ 200: MachinesHealthCheckResponse;
4395
+ };
4396
+ export type HealthMachinesV1HealthMachinesGetResponse = HealthMachinesV1HealthMachinesGetResponses[keyof HealthMachinesV1HealthMachinesGetResponses];
4304
4397
  export type ClientOptions = {
4305
4398
  baseUrl: 'https://api.cyberdesk.io' | 'https://cyberdesk-api-dev.fly.dev' | (string & {});
4306
4399
  };
package/dist/index.d.ts CHANGED
@@ -1641,6 +1641,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1641
1641
  * List all model configurations for the organization
1642
1642
  *
1643
1643
  * Returns both system defaults and organization-owned configurations.
1644
+ * Use each item's `is_archived` flag to distinguish archived entries.
1644
1645
  *
1645
1646
  * @returns Array of model configurations
1646
1647
  */
@@ -1660,10 +1661,10 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1660
1661
  * @param data - ModelConfigurationCreate with:
1661
1662
  * - name: Display name for the configuration
1662
1663
  * - provider: LLM provider (openai, anthropic, google, azure, custom)
1663
- * - model_id: The model identifier (e.g., 'gpt-4o', 'claude-sonnet-4-20250514')
1664
+ * - model: The model identifier (e.g., 'gpt-4o', 'claude-sonnet-4-20250514')
1664
1665
  * - api_key: Optional API key (stored securely in Basis Theory)
1665
- * - base_url: Optional custom base URL for the provider
1666
1666
  * - description: Optional description
1667
+ * - is_archived: Optional flag to archive the configuration
1667
1668
  * @returns Created model configuration
1668
1669
  */
1669
1670
  create: (data: ModelConfigurationCreate) => Promise<({
@@ -1696,6 +1697,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1696
1697
  * Update a model configuration
1697
1698
  *
1698
1699
  * Note: Only organization-owned configurations can be updated. System defaults cannot be modified.
1700
+ * Supports toggling `is_archived` for soft-archiving model configurations.
1699
1701
  *
1700
1702
  * @param modelConfigurationId - The ID of the model configuration to update
1701
1703
  * @param data - Update data
package/dist/index.js CHANGED
@@ -1565,6 +1565,7 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1565
1565
  * List all model configurations for the organization
1566
1566
  *
1567
1567
  * Returns both system defaults and organization-owned configurations.
1568
+ * Use each item's `is_archived` flag to distinguish archived entries.
1568
1569
  *
1569
1570
  * @returns Array of model configurations
1570
1571
  */
@@ -1577,10 +1578,10 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1577
1578
  * @param data - ModelConfigurationCreate with:
1578
1579
  * - name: Display name for the configuration
1579
1580
  * - provider: LLM provider (openai, anthropic, google, azure, custom)
1580
- * - model_id: The model identifier (e.g., 'gpt-4o', 'claude-sonnet-4-20250514')
1581
+ * - model: The model identifier (e.g., 'gpt-4o', 'claude-sonnet-4-20250514')
1581
1582
  * - api_key: Optional API key (stored securely in Basis Theory)
1582
- * - base_url: Optional custom base URL for the provider
1583
1583
  * - description: Optional description
1584
+ * - is_archived: Optional flag to archive the configuration
1584
1585
  * @returns Created model configuration
1585
1586
  */
1586
1587
  create: (data) => __awaiter(this, void 0, void 0, function* () {
@@ -1605,6 +1606,7 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1605
1606
  * Update a model configuration
1606
1607
  *
1607
1608
  * Note: Only organization-owned configurations can be updated. System defaults cannot be modified.
1609
+ * Supports toggling `is_archived` for soft-archiving model configurations.
1608
1610
  *
1609
1611
  * @param modelConfigurationId - The ID of the model configuration to update
1610
1612
  * @param data - Update data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "2.2.31",
3
+ "version": "2.2.32",
4
4
  "description": "The official TypeScript SDK for Cyberdesk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",