cyberdesk 2.2.30 → 2.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/sdk.gen.d.ts +17 -2
- package/dist/client/sdk.gen.js +36 -3
- package/dist/client/types.gen.d.ts +77 -0
- package/dist/index.d.ts +42 -1
- package/dist/index.js +38 -4
- package/package.json +1 -1
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Options as ClientOptions, type TDataShape, type Client } from '@hey-api/client-fetch';
|
|
2
|
-
import type { HealthCheckV1HealthGetData, DatabaseHealthCheckV1HealthDbGetData, ListMachinesV1MachinesGetData, CreateMachineV1MachinesPostData, DeleteMachineV1MachinesMachineIdDeleteData, GetMachineV1MachinesMachineIdGetData, UpdateMachineV1MachinesMachineIdPatchData, GetMachinePoolsV1MachinesMachineIdPoolsGetData, UpdateMachinePoolsV1MachinesMachineIdPoolsPutData, ListPoolsV1PoolsGetData, CreatePoolV1PoolsPostData, DeletePoolV1PoolsPoolIdDeleteData, GetPoolV1PoolsPoolIdGetData, UpdatePoolV1PoolsPoolIdPatchData, RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteData, AddMachinesToPoolV1PoolsPoolIdMachinesPostData, ListWorkflowsV1WorkflowsGetData, CreateWorkflowV1WorkflowsPostData, BulkAddTagsToWorkflowsV1WorkflowsBulkTagsPostData, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, 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, GetUsageAggregateV1UsageAggregateGetData, DbPingInternalDebugDbPingGetData, RootGetData, HealthLiveHealthLiveGetData, HealthReadyHealthReadyGetData, HealthHealthGetData, HealthDbHealthDbGetData } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -424,6 +424,21 @@ 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
|
+
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
|
+
/**
|
|
436
|
+
* Generate Run Trajectory
|
|
437
|
+
* Mark the latest trajectory for a run as generated.
|
|
438
|
+
*
|
|
439
|
+
* This promotes an auto-saved trajectory into the user-visible trajectories table.
|
|
440
|
+
*/
|
|
441
|
+
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
442
|
/**
|
|
428
443
|
* Create Run Chain
|
|
429
444
|
* Create a multi-step chain that runs on a single reserved session/machine.
|
|
@@ -592,7 +607,7 @@ export declare const updateRequestLogV1RequestLogsLogIdPatch: <ThrowOnError exte
|
|
|
592
607
|
* List Trajectories
|
|
593
608
|
* List all trajectories for the authenticated organization.
|
|
594
609
|
*
|
|
595
|
-
* Supports pagination and filtering by workflow
|
|
610
|
+
* Supports pagination and filtering by workflow, run, approval, and generated status.
|
|
596
611
|
* Only approved trajectories are used during workflow execution.
|
|
597
612
|
* Returns trajectories with their associated workflow data.
|
|
598
613
|
*
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -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.
|
|
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.healthDbHealthDbGet = exports.healthHealthGet = exports.healthReadyHealthReadyGet = exports.healthLiveHealthLiveGet = exports.rootGet = exports.dbPingInternalDebugDbPingGet = exports.getUsageAggregateV1UsageAggregateGet = 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,39 @@ 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
|
+
const getRunTrajectoryV1RunsRunIdTrajectoryGet = (options) => {
|
|
918
|
+
var _a;
|
|
919
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
920
|
+
{
|
|
921
|
+
scheme: 'bearer',
|
|
922
|
+
type: 'http'
|
|
923
|
+
}
|
|
924
|
+
], url: '/v1/runs/{run_id}/trajectory' }, options));
|
|
925
|
+
};
|
|
926
|
+
exports.getRunTrajectoryV1RunsRunIdTrajectoryGet = getRunTrajectoryV1RunsRunIdTrajectoryGet;
|
|
927
|
+
/**
|
|
928
|
+
* Generate Run Trajectory
|
|
929
|
+
* Mark the latest trajectory for a run as generated.
|
|
930
|
+
*
|
|
931
|
+
* This promotes an auto-saved trajectory into the user-visible trajectories table.
|
|
932
|
+
*/
|
|
933
|
+
const generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost = (options) => {
|
|
934
|
+
var _a;
|
|
935
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign({ security: [
|
|
936
|
+
{
|
|
937
|
+
scheme: 'bearer',
|
|
938
|
+
type: 'http'
|
|
939
|
+
}
|
|
940
|
+
], url: '/v1/runs/{run_id}/generate-trajectory' }, options));
|
|
941
|
+
};
|
|
942
|
+
exports.generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost = generateRunTrajectoryV1RunsRunIdGenerateTrajectoryPost;
|
|
910
943
|
/**
|
|
911
944
|
* Create Run Chain
|
|
912
945
|
* Create a multi-step chain that runs on a single reserved session/machine.
|
|
@@ -1255,7 +1288,7 @@ exports.updateRequestLogV1RequestLogsLogIdPatch = updateRequestLogV1RequestLogsL
|
|
|
1255
1288
|
* List Trajectories
|
|
1256
1289
|
* List all trajectories for the authenticated organization.
|
|
1257
1290
|
*
|
|
1258
|
-
* Supports pagination and filtering by workflow
|
|
1291
|
+
* Supports pagination and filtering by workflow, run, approval, and generated status.
|
|
1259
1292
|
* Only approved trajectories are used during workflow execution.
|
|
1260
1293
|
* Returns trajectories with their associated workflow data.
|
|
1261
1294
|
*
|
|
@@ -1001,6 +1001,10 @@ export type TrajectoryCreate = {
|
|
|
1001
1001
|
name?: string | null;
|
|
1002
1002
|
description?: string | null;
|
|
1003
1003
|
workflow_id: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Optional run that created this trajectory
|
|
1006
|
+
*/
|
|
1007
|
+
run_id?: string | null;
|
|
1004
1008
|
trajectory_data: Array<{
|
|
1005
1009
|
[key: string]: unknown;
|
|
1006
1010
|
}>;
|
|
@@ -1020,6 +1024,10 @@ export type TrajectoryCreate = {
|
|
|
1020
1024
|
* Whether this trajectory is approved for use
|
|
1021
1025
|
*/
|
|
1022
1026
|
is_approved?: boolean;
|
|
1027
|
+
/**
|
|
1028
|
+
* Whether this trajectory has been generated/promoted for display in the trajectories table
|
|
1029
|
+
*/
|
|
1030
|
+
is_generated?: boolean;
|
|
1023
1031
|
};
|
|
1024
1032
|
/**
|
|
1025
1033
|
* Trajectory response schema
|
|
@@ -1028,6 +1036,10 @@ export type TrajectoryResponse = {
|
|
|
1028
1036
|
name?: string | null;
|
|
1029
1037
|
description?: string | null;
|
|
1030
1038
|
workflow_id: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* Optional run that created this trajectory
|
|
1041
|
+
*/
|
|
1042
|
+
run_id?: string | null;
|
|
1031
1043
|
trajectory_data: Array<{
|
|
1032
1044
|
[key: string]: unknown;
|
|
1033
1045
|
}>;
|
|
@@ -1044,6 +1056,7 @@ export type TrajectoryResponse = {
|
|
|
1044
1056
|
[key: string]: unknown;
|
|
1045
1057
|
} | null;
|
|
1046
1058
|
is_approved: boolean;
|
|
1059
|
+
is_generated: boolean;
|
|
1047
1060
|
id: string;
|
|
1048
1061
|
user_id?: string | null;
|
|
1049
1062
|
organization_id?: string | null;
|
|
@@ -1056,11 +1069,13 @@ export type TrajectoryResponse = {
|
|
|
1056
1069
|
export type TrajectoryResponseWithIncludes = {
|
|
1057
1070
|
id: string;
|
|
1058
1071
|
workflow_id: string;
|
|
1072
|
+
run_id?: string | null;
|
|
1059
1073
|
user_id?: string | null;
|
|
1060
1074
|
organization_id?: string | null;
|
|
1061
1075
|
name?: string | null;
|
|
1062
1076
|
description?: string | null;
|
|
1063
1077
|
is_approved: boolean;
|
|
1078
|
+
is_generated: boolean;
|
|
1064
1079
|
trajectory_data?: Array<{
|
|
1065
1080
|
[key: string]: unknown;
|
|
1066
1081
|
}> | null;
|
|
@@ -1096,6 +1111,10 @@ export type TrajectoryUpdate = {
|
|
|
1096
1111
|
* Whether this trajectory is approved for use
|
|
1097
1112
|
*/
|
|
1098
1113
|
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;
|
|
1099
1118
|
};
|
|
1100
1119
|
/**
|
|
1101
1120
|
* Response schema for usage aggregation.
|
|
@@ -2962,6 +2981,56 @@ export type UpdateRunV1RunsRunIdPatchResponses = {
|
|
|
2962
2981
|
200: RunResponse;
|
|
2963
2982
|
};
|
|
2964
2983
|
export type UpdateRunV1RunsRunIdPatchResponse = UpdateRunV1RunsRunIdPatchResponses[keyof UpdateRunV1RunsRunIdPatchResponses];
|
|
2984
|
+
export type GetRunTrajectoryV1RunsRunIdTrajectoryGetData = {
|
|
2985
|
+
body?: never;
|
|
2986
|
+
path: {
|
|
2987
|
+
run_id: string;
|
|
2988
|
+
};
|
|
2989
|
+
query?: never;
|
|
2990
|
+
url: '/v1/runs/{run_id}/trajectory';
|
|
2991
|
+
};
|
|
2992
|
+
export type GetRunTrajectoryV1RunsRunIdTrajectoryGetErrors = {
|
|
2993
|
+
/**
|
|
2994
|
+
* Validation Error
|
|
2995
|
+
*/
|
|
2996
|
+
422: HttpValidationError;
|
|
2997
|
+
};
|
|
2998
|
+
export type GetRunTrajectoryV1RunsRunIdTrajectoryGetError = GetRunTrajectoryV1RunsRunIdTrajectoryGetErrors[keyof GetRunTrajectoryV1RunsRunIdTrajectoryGetErrors];
|
|
2999
|
+
export type GetRunTrajectoryV1RunsRunIdTrajectoryGetResponses = {
|
|
3000
|
+
/**
|
|
3001
|
+
* Successful Response
|
|
3002
|
+
*/
|
|
3003
|
+
200: TrajectoryResponse;
|
|
3004
|
+
};
|
|
3005
|
+
export type GetRunTrajectoryV1RunsRunIdTrajectoryGetResponse = GetRunTrajectoryV1RunsRunIdTrajectoryGetResponses[keyof GetRunTrajectoryV1RunsRunIdTrajectoryGetResponses];
|
|
3006
|
+
export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostData = {
|
|
3007
|
+
body?: never;
|
|
3008
|
+
headers?: {
|
|
3009
|
+
/**
|
|
3010
|
+
* 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.
|
|
3011
|
+
*/
|
|
3012
|
+
'Idempotency-Key'?: string;
|
|
3013
|
+
};
|
|
3014
|
+
path: {
|
|
3015
|
+
run_id: string;
|
|
3016
|
+
};
|
|
3017
|
+
query?: never;
|
|
3018
|
+
url: '/v1/runs/{run_id}/generate-trajectory';
|
|
3019
|
+
};
|
|
3020
|
+
export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostErrors = {
|
|
3021
|
+
/**
|
|
3022
|
+
* Validation Error
|
|
3023
|
+
*/
|
|
3024
|
+
422: HttpValidationError;
|
|
3025
|
+
};
|
|
3026
|
+
export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostError = GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostErrors[keyof GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostErrors];
|
|
3027
|
+
export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostResponses = {
|
|
3028
|
+
/**
|
|
3029
|
+
* Successful Response
|
|
3030
|
+
*/
|
|
3031
|
+
200: TrajectoryResponse;
|
|
3032
|
+
};
|
|
3033
|
+
export type GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostResponse = GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostResponses[keyof GenerateRunTrajectoryV1RunsRunIdGenerateTrajectoryPostResponses];
|
|
2965
3034
|
export type CreateRunChainV1RunsChainPostData = {
|
|
2966
3035
|
body: WorkflowChainCreate;
|
|
2967
3036
|
headers?: {
|
|
@@ -3512,10 +3581,18 @@ export type ListTrajectoriesV1TrajectoriesGetData = {
|
|
|
3512
3581
|
* Filter by workflow ID
|
|
3513
3582
|
*/
|
|
3514
3583
|
workflow_id?: string | null;
|
|
3584
|
+
/**
|
|
3585
|
+
* Filter by run ID
|
|
3586
|
+
*/
|
|
3587
|
+
run_id?: string | null;
|
|
3515
3588
|
/**
|
|
3516
3589
|
* Filter by approval status (true=approved, false=not approved)
|
|
3517
3590
|
*/
|
|
3518
3591
|
is_approved?: boolean | null;
|
|
3592
|
+
/**
|
|
3593
|
+
* Filter by generated status (true=generated, false=pending generation). Defaults to true.
|
|
3594
|
+
*/
|
|
3595
|
+
is_generated?: boolean | null;
|
|
3519
3596
|
/**
|
|
3520
3597
|
* Filter trajectories created at or after this ISO timestamp (UTC)
|
|
3521
3598
|
*/
|
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
|
|
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;
|
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
|
|
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
|
-
|
|
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: (
|
|
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
|
}),
|