cyberdesk 2.2.30 → 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, 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
@@ -424,6 +424,27 @@ export declare const getRunV1RunsRunIdGet: <ThrowOnError extends boolean = false
424
424
  * The run must belong to the authenticated organization.
425
425
  */
426
426
  export declare const updateRunV1RunsRunIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateRunV1RunsRunIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
427
+ /**
428
+ * Get Run Trajectory
429
+ * Get the latest trajectory associated with a run.
430
+ *
431
+ * Returns generated and non-generated trajectories so run details can expose
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.
437
+ */
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>;
439
+ /**
440
+ * Generate Run Trajectory
441
+ * Mark the latest trajectory for a run as generated.
442
+ *
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.
446
+ */
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>;
427
448
  /**
428
449
  * Create Run Chain
429
450
  * Create a multi-step chain that runs on a single reserved session/machine.
@@ -592,7 +613,7 @@ export declare const updateRequestLogV1RequestLogsLogIdPatch: <ThrowOnError exte
592
613
  * List Trajectories
593
614
  * List all trajectories for the authenticated organization.
594
615
  *
595
- * Supports pagination and filtering by workflow and approval status.
616
+ * Supports pagination and filtering by workflow, run, approval, and generated status.
596
617
  * Only approved trajectories are used during workflow execution.
597
618
  * Returns trajectories with their associated workflow data.
598
619
  *
@@ -741,6 +762,13 @@ export declare const powershellExecV1ComputerMachineIdShellPowershellExecPost: <
741
762
  export declare const powershellSessionV1ComputerMachineIdShellPowershellSessionPost: <ThrowOnError extends boolean = false>(options: Options<PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
742
763
  [key: string]: unknown;
743
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>;
744
772
  /**
745
773
  * Get Usage Aggregate
746
774
  * Aggregate usage (agentic and cached steps) for a given date range.
@@ -753,13 +781,6 @@ export declare const powershellSessionV1ComputerMachineIdShellPowershellSessionP
753
781
  * Use this for customers on active Stripe billing.
754
782
  */
755
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>;
756
- /**
757
- * Db Ping
758
- * Execute a lightweight `SELECT 1` to validate DB connectivity and expose pool stats.
759
- *
760
- * Returns JSON payload with `ok` boolean, pool metrics, and optional error metadata.
761
- */
762
- export declare const dbPingInternalDebugDbPingGet: <ThrowOnError extends boolean = false>(options?: Options<DbPingInternalDebugDbPingGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
763
784
  /**
764
785
  * Root
765
786
  * Root endpoint with service information
@@ -790,3 +811,12 @@ export declare const healthHealthGet: <ThrowOnError extends boolean = false>(opt
790
811
  * Legacy endpoint - checks database only.
791
812
  */
792
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>;
@@ -2,8 +2,8 @@
2
2
  // This file is auto-generated by @hey-api/openapi-ts
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
- 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;
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.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
  /**
@@ -907,6 +907,45 @@ const updateRunV1RunsRunIdPatch = (options) => {
907
907
  ], url: '/v1/runs/{run_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
908
908
  };
909
909
  exports.updateRunV1RunsRunIdPatch = updateRunV1RunsRunIdPatch;
910
+ /**
911
+ * Get Run Trajectory
912
+ * Get the latest trajectory associated with a run.
913
+ *
914
+ * Returns generated and non-generated trajectories so run details can expose
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.
920
+ */
921
+ const getRunTrajectoryV1RunsRunIdTrajectoryGet = (options) => {
922
+ var _a;
923
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
924
+ {
925
+ scheme: 'bearer',
926
+ type: 'http'
927
+ }
928
+ ], url: '/v1/runs/{run_id}/trajectory' }, options));
929
+ };
930
+ exports.getRunTrajectoryV1RunsRunIdTrajectoryGet = getRunTrajectoryV1RunsRunIdTrajectoryGet;
931
+ /**
932
+ * Generate Run Trajectory
933
+ * Mark the latest trajectory for a run as generated.
934
+ *
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.
938
+ */
939
+ const generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost = (options) => {
940
+ var _a;
941
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign({ security: [
942
+ {
943
+ scheme: 'bearer',
944
+ type: 'http'
945
+ }
946
+ ], url: '/v1/runs/{run_id}/generate-trajectory' }, options));
947
+ };
948
+ exports.generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost = generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost;
910
949
  /**
911
950
  * Create Run Chain
912
951
  * Create a multi-step chain that runs on a single reserved session/machine.
@@ -1255,7 +1294,7 @@ exports.updateRequestLogV1RequestLogsLogIdPatch = updateRequestLogV1RequestLogsL
1255
1294
  * List Trajectories
1256
1295
  * List all trajectories for the authenticated organization.
1257
1296
  *
1258
- * Supports pagination and filtering by workflow and approval status.
1297
+ * Supports pagination and filtering by workflow, run, approval, and generated status.
1259
1298
  * Only approved trajectories are used during workflow execution.
1260
1299
  * Returns trajectories with their associated workflow data.
1261
1300
  *
@@ -1590,6 +1629,20 @@ const powershellSessionV1ComputerMachineIdShellPowershellSessionPost = (options)
1590
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) }));
1591
1630
  };
1592
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;
1593
1646
  /**
1594
1647
  * Get Usage Aggregate
1595
1648
  * Aggregate usage (agentic and cached steps) for a given date range.
@@ -1611,17 +1664,6 @@ const getUsageAggregateV1UsageAggregateGet = (options) => {
1611
1664
  ], url: '/v1/usage/aggregate' }, options));
1612
1665
  };
1613
1666
  exports.getUsageAggregateV1UsageAggregateGet = getUsageAggregateV1UsageAggregateGet;
1614
- /**
1615
- * Db Ping
1616
- * Execute a lightweight `SELECT 1` to validate DB connectivity and expose pool stats.
1617
- *
1618
- * Returns JSON payload with `ok` boolean, pool metrics, and optional error metadata.
1619
- */
1620
- const dbPingInternalDebugDbPingGet = (options) => {
1621
- var _a;
1622
- 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));
1623
- };
1624
- exports.dbPingInternalDebugDbPingGet = dbPingInternalDebugDbPingGet;
1625
1667
  /**
1626
1668
  * Root
1627
1669
  * Root endpoint with service information
@@ -1672,3 +1714,21 @@ const healthDbHealthDbGet = (options) => {
1672
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));
1673
1715
  };
1674
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,12 +1029,20 @@ 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;
1002
1040
  description?: string | null;
1003
1041
  workflow_id: string;
1042
+ /**
1043
+ * Optional run that created this trajectory
1044
+ */
1045
+ run_id?: string | null;
1004
1046
  trajectory_data: Array<{
1005
1047
  [key: string]: unknown;
1006
1048
  }>;
@@ -1028,6 +1070,10 @@ export type TrajectoryResponse = {
1028
1070
  name?: string | null;
1029
1071
  description?: string | null;
1030
1072
  workflow_id: string;
1073
+ /**
1074
+ * Optional run that created this trajectory
1075
+ */
1076
+ run_id?: string | null;
1031
1077
  trajectory_data: Array<{
1032
1078
  [key: string]: unknown;
1033
1079
  }>;
@@ -1044,6 +1090,7 @@ export type TrajectoryResponse = {
1044
1090
  [key: string]: unknown;
1045
1091
  } | null;
1046
1092
  is_approved: boolean;
1093
+ is_generated: boolean;
1047
1094
  id: string;
1048
1095
  user_id?: string | null;
1049
1096
  organization_id?: string | null;
@@ -1056,11 +1103,13 @@ export type TrajectoryResponse = {
1056
1103
  export type TrajectoryResponseWithIncludes = {
1057
1104
  id: string;
1058
1105
  workflow_id: string;
1106
+ run_id?: string | null;
1059
1107
  user_id?: string | null;
1060
1108
  organization_id?: string | null;
1061
1109
  name?: string | null;
1062
1110
  description?: string | null;
1063
1111
  is_approved: boolean;
1112
+ is_generated: boolean;
1064
1113
  trajectory_data?: Array<{
1065
1114
  [key: string]: unknown;
1066
1115
  }> | null;
@@ -1195,6 +1244,23 @@ export type WorkflowInternalMetadata = {
1195
1244
  */
1196
1245
  last_errored_run_uuid?: string | null;
1197
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
+ };
1198
1264
  /**
1199
1265
  * Schema for merging workflows
1200
1266
  */
@@ -1454,6 +1520,10 @@ export type WorkflowUpdate = {
1454
1520
  * Optional workflow-level model configuration metadata (main agent + fallbacks).
1455
1521
  */
1456
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;
1457
1527
  };
1458
1528
  export type HealthCheckV1HealthGetData = {
1459
1529
  body?: never;
@@ -2962,6 +3032,56 @@ export type UpdateRunV1RunsRunIdPatchResponses = {
2962
3032
  200: RunResponse;
2963
3033
  };
2964
3034
  export type UpdateRunV1RunsRunIdPatchResponse = UpdateRunV1RunsRunIdPatchResponses[keyof UpdateRunV1RunsRunIdPatchResponses];
3035
+ export type GetRunTrajectoryV1RunsRunIdTrajectoryGetData = {
3036
+ body?: never;
3037
+ path: {
3038
+ run_id: string;
3039
+ };
3040
+ query?: never;
3041
+ url: '/v1/runs/{run_id}/trajectory';
3042
+ };
3043
+ export type GetRunTrajectoryV1RunsRunIdTrajectoryGetErrors = {
3044
+ /**
3045
+ * Validation Error
3046
+ */
3047
+ 422: HttpValidationError;
3048
+ };
3049
+ export type GetRunTrajectoryV1RunsRunIdTrajectoryGetError = GetRunTrajectoryV1RunsRunIdTrajectoryGetErrors[keyof GetRunTrajectoryV1RunsRunIdTrajectoryGetErrors];
3050
+ export type GetRunTrajectoryV1RunsRunIdTrajectoryGetResponses = {
3051
+ /**
3052
+ * Successful Response
3053
+ */
3054
+ 200: TrajectoryResponse;
3055
+ };
3056
+ export type GetRunTrajectoryV1RunsRunIdTrajectoryGetResponse = GetRunTrajectoryV1RunsRunIdTrajectoryGetResponses[keyof GetRunTrajectoryV1RunsRunIdTrajectoryGetResponses];
3057
+ export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostData = {
3058
+ body?: never;
3059
+ headers?: {
3060
+ /**
3061
+ * 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.
3062
+ */
3063
+ 'Idempotency-Key'?: string;
3064
+ };
3065
+ path: {
3066
+ run_id: string;
3067
+ };
3068
+ query?: never;
3069
+ url: '/v1/runs/{run_id}/generate-trajectory';
3070
+ };
3071
+ export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostErrors = {
3072
+ /**
3073
+ * Validation Error
3074
+ */
3075
+ 422: HttpValidationError;
3076
+ };
3077
+ export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostError = GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostErrors[keyof GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostErrors];
3078
+ export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostResponses = {
3079
+ /**
3080
+ * Successful Response
3081
+ */
3082
+ 200: TrajectoryResponse;
3083
+ };
3084
+ export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostResponse = GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostResponses[keyof GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostResponses];
2965
3085
  export type CreateRunChainV1RunsChainPostData = {
2966
3086
  body: WorkflowChainCreate;
2967
3087
  headers?: {
@@ -3512,10 +3632,18 @@ export type ListTrajectoriesV1TrajectoriesGetData = {
3512
3632
  * Filter by workflow ID
3513
3633
  */
3514
3634
  workflow_id?: string | null;
3635
+ /**
3636
+ * Filter by run ID
3637
+ */
3638
+ run_id?: string | null;
3515
3639
  /**
3516
3640
  * Filter by approval status (true=approved, false=not approved)
3517
3641
  */
3518
3642
  is_approved?: boolean | null;
3643
+ /**
3644
+ * Filter by generated status (true=generated, false=pending generation). Defaults to true.
3645
+ */
3646
+ is_generated?: boolean | null;
3519
3647
  /**
3520
3648
  * Filter trajectories created at or after this ISO timestamp (UTC)
3521
3649
  */
@@ -4119,6 +4247,40 @@ export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostRespon
4119
4247
  };
4120
4248
  };
4121
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];
4122
4284
  export type GetUsageAggregateV1UsageAggregateGetData = {
4123
4285
  body?: never;
4124
4286
  path?: never;
@@ -4152,18 +4314,6 @@ export type GetUsageAggregateV1UsageAggregateGetResponses = {
4152
4314
  200: UsageAggregateResponse;
4153
4315
  };
4154
4316
  export type GetUsageAggregateV1UsageAggregateGetResponse = GetUsageAggregateV1UsageAggregateGetResponses[keyof GetUsageAggregateV1UsageAggregateGetResponses];
4155
- export type DbPingInternalDebugDbPingGetData = {
4156
- body?: never;
4157
- path?: never;
4158
- query?: never;
4159
- url: '/internal/debug/db-ping';
4160
- };
4161
- export type DbPingInternalDebugDbPingGetResponses = {
4162
- /**
4163
- * Successful Response
4164
- */
4165
- 200: unknown;
4166
- };
4167
4317
  export type RootGetData = {
4168
4318
  body?: never;
4169
4319
  path?: never;
@@ -4224,6 +4374,26 @@ export type HealthDbHealthDbGetResponses = {
4224
4374
  */
4225
4375
  200: unknown;
4226
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];
4227
4397
  export type ClientOptions = {
4228
4398
  baseUrl: 'https://api.cyberdesk.io' | 'https://cyberdesk-api-dev.fly.dev' | (string & {});
4229
4399
  };
package/dist/index.d.ts CHANGED
@@ -1187,6 +1187,42 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1187
1187
  request: Request;
1188
1188
  response: Response;
1189
1189
  }>;
1190
+ /**
1191
+ * Get the latest trajectory associated with a run.
1192
+ *
1193
+ * Returns generated and non-generated trajectories so run details can expose
1194
+ * generation state.
1195
+ *
1196
+ * @param runId - The ID of the run
1197
+ */
1198
+ getTrajectory: (runId: string) => Promise<({
1199
+ data: undefined;
1200
+ error: import("./client/types.gen").HttpValidationError;
1201
+ } | {
1202
+ data: TrajectoryResponse;
1203
+ error: undefined;
1204
+ }) & {
1205
+ request: Request;
1206
+ response: Response;
1207
+ }>;
1208
+ /**
1209
+ * Promote the latest run trajectory to generated/user-visible state.
1210
+ *
1211
+ * @param runId - The ID of the run
1212
+ * @param params - Optional idempotency key override
1213
+ */
1214
+ generateTrajectory: (runId: string, params?: {
1215
+ idempotencyKey?: string;
1216
+ }) => Promise<({
1217
+ data: undefined;
1218
+ error: import("./client/types.gen").HttpValidationError;
1219
+ } | {
1220
+ data: TrajectoryResponse;
1221
+ error: undefined;
1222
+ }) & {
1223
+ request: Request;
1224
+ response: Response;
1225
+ }>;
1190
1226
  /**
1191
1227
  * Update a run
1192
1228
  *
@@ -1291,7 +1327,9 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1291
1327
  * @param params.limit - Maximum number of items to return
1292
1328
  * @param params.search - Search trajectories by name or description (case-insensitive substring match)
1293
1329
  * @param params.workflow_id - Filter by workflow ID
1330
+ * @param params.run_id - Filter by run ID
1294
1331
  * @param params.is_approved - Filter by approval status (true=approved, false=not approved, undefined=all)
1332
+ * @param params.is_generated - Filter by generated status (true=generated, false=pending generation)
1295
1333
  * @param params.created_at_from - Filter created at or after this date
1296
1334
  * @param params.created_at_to - Filter created at or before this date
1297
1335
  * @param params.updated_at_from - Filter updated at or after this date
@@ -1301,7 +1339,8 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1301
1339
  * @returns Paginated list of trajectories
1302
1340
  *
1303
1341
  * @remarks
1304
- * By default returns both approved and unapproved trajectories.
1342
+ * By default, only generated trajectories are returned unless `is_generated` is explicitly set.
1343
+ * Results still include both approved and unapproved trajectories unless filtered via `is_approved`.
1305
1344
  * Only approved trajectories are used during workflow execution.
1306
1345
  */
1307
1346
  list: (params?: {
@@ -1309,7 +1348,9 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1309
1348
  limit?: number;
1310
1349
  search?: string;
1311
1350
  workflow_id?: string;
1351
+ run_id?: string;
1312
1352
  is_approved?: boolean;
1353
+ is_generated?: boolean;
1313
1354
  created_at_from?: string | Date;
1314
1355
  created_at_to?: string | Date;
1315
1356
  updated_at_from?: string | Date;
@@ -1600,6 +1641,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1600
1641
  * List all model configurations for the organization
1601
1642
  *
1602
1643
  * Returns both system defaults and organization-owned configurations.
1644
+ * Use each item's `is_archived` flag to distinguish archived entries.
1603
1645
  *
1604
1646
  * @returns Array of model configurations
1605
1647
  */
@@ -1619,10 +1661,10 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1619
1661
  * @param data - ModelConfigurationCreate with:
1620
1662
  * - name: Display name for the configuration
1621
1663
  * - provider: LLM provider (openai, anthropic, google, azure, custom)
1622
- * - 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')
1623
1665
  * - api_key: Optional API key (stored securely in Basis Theory)
1624
- * - base_url: Optional custom base URL for the provider
1625
1666
  * - description: Optional description
1667
+ * - is_archived: Optional flag to archive the configuration
1626
1668
  * @returns Created model configuration
1627
1669
  */
1628
1670
  create: (data: ModelConfigurationCreate) => Promise<({
@@ -1655,6 +1697,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1655
1697
  * Update a model configuration
1656
1698
  *
1657
1699
  * Note: Only organization-owned configurations can be updated. System defaults cannot be modified.
1700
+ * Supports toggling `is_archived` for soft-archiving model configurations.
1658
1701
  *
1659
1702
  * @param modelConfigurationId - The ID of the model configuration to update
1660
1703
  * @param data - Update data
package/dist/index.js CHANGED
@@ -1196,6 +1196,35 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1196
1196
  query: { include: (_a = params === null || params === void 0 ? void 0 : params.include) === null || _a === void 0 ? void 0 : _a.join(',') },
1197
1197
  });
1198
1198
  }),
1199
+ /**
1200
+ * Get the latest trajectory associated with a run.
1201
+ *
1202
+ * Returns generated and non-generated trajectories so run details can expose
1203
+ * generation state.
1204
+ *
1205
+ * @param runId - The ID of the run
1206
+ */
1207
+ getTrajectory: (runId) => __awaiter(this, void 0, void 0, function* () {
1208
+ return (0, sdk_gen_1.getRunTrajectoryV1RunsRunIdTrajectoryGet)({
1209
+ client,
1210
+ path: { run_id: runId },
1211
+ });
1212
+ }),
1213
+ /**
1214
+ * Promote the latest run trajectory to generated/user-visible state.
1215
+ *
1216
+ * @param runId - The ID of the run
1217
+ * @param params - Optional idempotency key override
1218
+ */
1219
+ generateTrajectory: (runId, params) => __awaiter(this, void 0, void 0, function* () {
1220
+ return (0, sdk_gen_1.generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost)({
1221
+ client,
1222
+ path: { run_id: runId },
1223
+ headers: (params === null || params === void 0 ? void 0 : params.idempotencyKey)
1224
+ ? { 'Idempotency-Key': params.idempotencyKey }
1225
+ : undefined,
1226
+ });
1227
+ }),
1199
1228
  /**
1200
1229
  * Update a run
1201
1230
  *
@@ -1279,7 +1308,9 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1279
1308
  * @param params.limit - Maximum number of items to return
1280
1309
  * @param params.search - Search trajectories by name or description (case-insensitive substring match)
1281
1310
  * @param params.workflow_id - Filter by workflow ID
1311
+ * @param params.run_id - Filter by run ID
1282
1312
  * @param params.is_approved - Filter by approval status (true=approved, false=not approved, undefined=all)
1313
+ * @param params.is_generated - Filter by generated status (true=generated, false=pending generation)
1283
1314
  * @param params.created_at_from - Filter created at or after this date
1284
1315
  * @param params.created_at_to - Filter created at or before this date
1285
1316
  * @param params.updated_at_from - Filter updated at or after this date
@@ -1289,22 +1320,25 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1289
1320
  * @returns Paginated list of trajectories
1290
1321
  *
1291
1322
  * @remarks
1292
- * By default returns both approved and unapproved trajectories.
1323
+ * By default, only generated trajectories are returned unless `is_generated` is explicitly set.
1324
+ * Results still include both approved and unapproved trajectories unless filtered via `is_approved`.
1293
1325
  * Only approved trajectories are used during workflow execution.
1294
1326
  */
1295
1327
  list: (params) => __awaiter(this, void 0, void 0, function* () {
1296
- var _a, _b, _c;
1328
+ var _a, _b, _c, _d;
1297
1329
  const query = {
1298
1330
  skip: params === null || params === void 0 ? void 0 : params.skip,
1299
1331
  limit: params === null || params === void 0 ? void 0 : params.limit,
1300
1332
  search: params === null || params === void 0 ? void 0 : params.search,
1301
1333
  workflow_id: (_a = params === null || params === void 0 ? void 0 : params.workflow_id) !== null && _a !== void 0 ? _a : undefined,
1302
- is_approved: (_b = params === null || params === void 0 ? void 0 : params.is_approved) !== null && _b !== void 0 ? _b : undefined,
1334
+ run_id: (_b = params === null || params === void 0 ? void 0 : params.run_id) !== null && _b !== void 0 ? _b : undefined,
1335
+ is_approved: (_c = params === null || params === void 0 ? void 0 : params.is_approved) !== null && _c !== void 0 ? _c : undefined,
1336
+ is_generated: params === null || params === void 0 ? void 0 : params.is_generated,
1303
1337
  created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
1304
1338
  created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
1305
1339
  updated_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.updated_at_from),
1306
1340
  updated_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.updated_at_to),
1307
- include: (_c = params === null || params === void 0 ? void 0 : params.include) === null || _c === void 0 ? void 0 : _c.join(','),
1341
+ include: (_d = params === null || params === void 0 ? void 0 : params.include) === null || _d === void 0 ? void 0 : _d.join(','),
1308
1342
  };
1309
1343
  return (0, sdk_gen_1.listTrajectoriesV1TrajectoriesGet)({ client, query });
1310
1344
  }),
@@ -1531,6 +1565,7 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1531
1565
  * List all model configurations for the organization
1532
1566
  *
1533
1567
  * Returns both system defaults and organization-owned configurations.
1568
+ * Use each item's `is_archived` flag to distinguish archived entries.
1534
1569
  *
1535
1570
  * @returns Array of model configurations
1536
1571
  */
@@ -1543,10 +1578,10 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1543
1578
  * @param data - ModelConfigurationCreate with:
1544
1579
  * - name: Display name for the configuration
1545
1580
  * - provider: LLM provider (openai, anthropic, google, azure, custom)
1546
- * - 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')
1547
1582
  * - api_key: Optional API key (stored securely in Basis Theory)
1548
- * - base_url: Optional custom base URL for the provider
1549
1583
  * - description: Optional description
1584
+ * - is_archived: Optional flag to archive the configuration
1550
1585
  * @returns Created model configuration
1551
1586
  */
1552
1587
  create: (data) => __awaiter(this, void 0, void 0, function* () {
@@ -1571,6 +1606,7 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1571
1606
  * Update a model configuration
1572
1607
  *
1573
1608
  * Note: Only organization-owned configurations can be updated. System defaults cannot be modified.
1609
+ * Supports toggling `is_archived` for soft-archiving model configurations.
1574
1610
  *
1575
1611
  * @param modelConfigurationId - The ID of the model configuration to update
1576
1612
  * @param data - Update data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "2.2.30",
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",