cyberdesk 2.1.13 → 2.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/sdk.gen.d.ts +8 -2
- package/dist/client/sdk.gen.js +17 -2
- package/dist/client/types.gen.d.ts +52 -0
- package/dist/index.d.ts +20 -2
- package/dist/index.js +21 -3
- package/package.json +1 -1
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, 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, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, 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, GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData, GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData, KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, MouseScrollV1ComputerMachineIdInputMouseScrollPostData, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, DummyTestEndpointV1TestPostData, RootGetData, 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, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, 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, GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData, GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData, KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, MouseScrollV1ComputerMachineIdInputMouseScrollPostData, MouseDragV1ComputerMachineIdInputMouseDragPostData, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, DummyTestEndpointV1TestPostData, RootGetData, 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
|
|
@@ -368,7 +368,8 @@ export declare const updateRequestLogV1RequestLogsLogIdPatch: <ThrowOnError exte
|
|
|
368
368
|
* List Trajectories
|
|
369
369
|
* List all trajectories for the authenticated organization.
|
|
370
370
|
*
|
|
371
|
-
* Supports pagination and filtering by workflow.
|
|
371
|
+
* Supports pagination and filtering by workflow and approval status.
|
|
372
|
+
* Only approved trajectories are used during workflow execution.
|
|
372
373
|
* Returns trajectories with their associated workflow data.
|
|
373
374
|
*/
|
|
374
375
|
export declare const listTrajectoriesV1TrajectoriesGet: <ThrowOnError extends boolean = false>(options?: Options<ListTrajectoriesV1TrajectoriesGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PaginatedResponseTrajectoryResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
@@ -453,6 +454,11 @@ export declare const mouseClickV1ComputerMachineIdInputMouseClickPost: <ThrowOnE
|
|
|
453
454
|
* Optionally moves to (x, y) before scrolling.
|
|
454
455
|
*/
|
|
455
456
|
export declare const mouseScrollV1ComputerMachineIdInputMouseScrollPost: <ThrowOnError extends boolean = false>(options: Options<MouseScrollV1ComputerMachineIdInputMouseScrollPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
457
|
+
/**
|
|
458
|
+
* Drag mouse (native)
|
|
459
|
+
* Perform a drag operation using absolute coordinates with required start and optional duration.
|
|
460
|
+
*/
|
|
461
|
+
export declare const mouseDragV1ComputerMachineIdInputMouseDragPost: <ThrowOnError extends boolean = false>(options: Options<MouseDragV1ComputerMachineIdInputMouseDragPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
456
462
|
/**
|
|
457
463
|
* List directory contents
|
|
458
464
|
* List directory contents on the machine.
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
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.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = exports.updateWorkflowV1WorkflowsWorkflowIdPatch = exports.getWorkflowV1WorkflowsWorkflowIdGet = exports.deleteWorkflowV1WorkflowsWorkflowIdDelete = 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.healthDbHealthDbGet = exports.healthHealthGet = exports.rootGet = exports.dummyTestEndpointV1TestPost = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = void 0;
|
|
5
|
+
exports.healthDbHealthDbGet = exports.healthHealthGet = exports.rootGet = exports.dummyTestEndpointV1TestPost = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseDragV1ComputerMachineIdInputMouseDragPost = exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = void 0;
|
|
6
6
|
const client_gen_1 = require("./client.gen");
|
|
7
7
|
/**
|
|
8
8
|
* Health Check
|
|
@@ -766,7 +766,8 @@ exports.updateRequestLogV1RequestLogsLogIdPatch = updateRequestLogV1RequestLogsL
|
|
|
766
766
|
* List Trajectories
|
|
767
767
|
* List all trajectories for the authenticated organization.
|
|
768
768
|
*
|
|
769
|
-
* Supports pagination and filtering by workflow.
|
|
769
|
+
* Supports pagination and filtering by workflow and approval status.
|
|
770
|
+
* Only approved trajectories are used during workflow execution.
|
|
770
771
|
* Returns trajectories with their associated workflow data.
|
|
771
772
|
*/
|
|
772
773
|
const listTrajectoriesV1TrajectoriesGet = (options) => {
|
|
@@ -977,6 +978,20 @@ const mouseScrollV1ComputerMachineIdInputMouseScrollPost = (options) => {
|
|
|
977
978
|
], url: '/v1/computer/{machine_id}/input/mouse/scroll' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
978
979
|
};
|
|
979
980
|
exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = mouseScrollV1ComputerMachineIdInputMouseScrollPost;
|
|
981
|
+
/**
|
|
982
|
+
* Drag mouse (native)
|
|
983
|
+
* Perform a drag operation using absolute coordinates with required start and optional duration.
|
|
984
|
+
*/
|
|
985
|
+
const mouseDragV1ComputerMachineIdInputMouseDragPost = (options) => {
|
|
986
|
+
var _a;
|
|
987
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
988
|
+
{
|
|
989
|
+
scheme: 'bearer',
|
|
990
|
+
type: 'http'
|
|
991
|
+
}
|
|
992
|
+
], url: '/v1/computer/{machine_id}/input/mouse/drag' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
993
|
+
};
|
|
994
|
+
exports.mouseDragV1ComputerMachineIdInputMouseDragPost = mouseDragV1ComputerMachineIdInputMouseDragPost;
|
|
980
995
|
/**
|
|
981
996
|
* List directory contents
|
|
982
997
|
* List directory contents on the machine.
|
|
@@ -14,6 +14,12 @@ export type ChainStep = {
|
|
|
14
14
|
inputs?: {
|
|
15
15
|
[key: string]: string | RefValue;
|
|
16
16
|
} | null;
|
|
17
|
+
/**
|
|
18
|
+
* Step-specific sensitive inputs that override or extend shared_sensitive_inputs
|
|
19
|
+
*/
|
|
20
|
+
sensitive_inputs?: {
|
|
21
|
+
[key: string]: string;
|
|
22
|
+
} | null;
|
|
17
23
|
};
|
|
18
24
|
/**
|
|
19
25
|
* Schema for creating a connection
|
|
@@ -160,6 +166,17 @@ export type MouseClickRequest = {
|
|
|
160
166
|
*/
|
|
161
167
|
down?: boolean | null;
|
|
162
168
|
};
|
|
169
|
+
export type MouseDragRequest = {
|
|
170
|
+
to_x: number;
|
|
171
|
+
to_y: number;
|
|
172
|
+
start_x: number;
|
|
173
|
+
start_y: number;
|
|
174
|
+
duration?: number | null;
|
|
175
|
+
/**
|
|
176
|
+
* 'left' | 'right' | 'middle'
|
|
177
|
+
*/
|
|
178
|
+
button?: string | null;
|
|
179
|
+
};
|
|
163
180
|
export type MouseMoveRequest = {
|
|
164
181
|
x: number;
|
|
165
182
|
y: number;
|
|
@@ -647,6 +664,10 @@ export type TrajectoryCreate = {
|
|
|
647
664
|
original_input_values?: {
|
|
648
665
|
[key: string]: unknown;
|
|
649
666
|
} | null;
|
|
667
|
+
/**
|
|
668
|
+
* Whether this trajectory is approved for use
|
|
669
|
+
*/
|
|
670
|
+
is_approved?: boolean;
|
|
650
671
|
};
|
|
651
672
|
/**
|
|
652
673
|
* Trajectory response schema
|
|
@@ -670,6 +691,7 @@ export type TrajectoryResponse = {
|
|
|
670
691
|
original_input_values?: {
|
|
671
692
|
[key: string]: unknown;
|
|
672
693
|
} | null;
|
|
694
|
+
is_approved: boolean;
|
|
673
695
|
id: string;
|
|
674
696
|
user_id?: string | null;
|
|
675
697
|
organization_id?: string | null;
|
|
@@ -685,6 +707,10 @@ export type TrajectoryUpdate = {
|
|
|
685
707
|
trajectory_data?: Array<{
|
|
686
708
|
[key: string]: unknown;
|
|
687
709
|
}> | null;
|
|
710
|
+
/**
|
|
711
|
+
* Whether this trajectory is approved for use
|
|
712
|
+
*/
|
|
713
|
+
is_approved?: boolean | null;
|
|
688
714
|
};
|
|
689
715
|
export type ValidationError = {
|
|
690
716
|
loc: Array<string | number>;
|
|
@@ -1896,6 +1922,10 @@ export type ListTrajectoriesV1TrajectoriesGetData = {
|
|
|
1896
1922
|
* Filter by workflow ID
|
|
1897
1923
|
*/
|
|
1898
1924
|
workflow_id?: string | null;
|
|
1925
|
+
/**
|
|
1926
|
+
* Filter by approval status (true=approved, false=not approved)
|
|
1927
|
+
*/
|
|
1928
|
+
is_approved?: boolean | null;
|
|
1899
1929
|
/**
|
|
1900
1930
|
* Filter trajectories created at or after this ISO timestamp (UTC)
|
|
1901
1931
|
*/
|
|
@@ -2214,6 +2244,28 @@ export type MouseScrollV1ComputerMachineIdInputMouseScrollPostResponses = {
|
|
|
2214
2244
|
204: void;
|
|
2215
2245
|
};
|
|
2216
2246
|
export type MouseScrollV1ComputerMachineIdInputMouseScrollPostResponse = MouseScrollV1ComputerMachineIdInputMouseScrollPostResponses[keyof MouseScrollV1ComputerMachineIdInputMouseScrollPostResponses];
|
|
2247
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostData = {
|
|
2248
|
+
body: MouseDragRequest;
|
|
2249
|
+
path: {
|
|
2250
|
+
machine_id: string;
|
|
2251
|
+
};
|
|
2252
|
+
query?: never;
|
|
2253
|
+
url: '/v1/computer/{machine_id}/input/mouse/drag';
|
|
2254
|
+
};
|
|
2255
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostErrors = {
|
|
2256
|
+
/**
|
|
2257
|
+
* Validation Error
|
|
2258
|
+
*/
|
|
2259
|
+
422: HttpValidationError;
|
|
2260
|
+
};
|
|
2261
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostError = MouseDragV1ComputerMachineIdInputMouseDragPostErrors[keyof MouseDragV1ComputerMachineIdInputMouseDragPostErrors];
|
|
2262
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostResponses = {
|
|
2263
|
+
/**
|
|
2264
|
+
* Successful Response
|
|
2265
|
+
*/
|
|
2266
|
+
204: void;
|
|
2267
|
+
};
|
|
2268
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostResponse = MouseDragV1ComputerMachineIdInputMouseDragPostResponses[keyof MouseDragV1ComputerMachineIdInputMouseDragPostResponses];
|
|
2217
2269
|
export type FsListV1ComputerMachineIdFsListGetData = {
|
|
2218
2270
|
body?: never;
|
|
2219
2271
|
path: {
|
package/dist/index.d.ts
CHANGED
|
@@ -558,7 +558,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
558
558
|
/**
|
|
559
559
|
* Create a chained run sequence on a single reserved machine session.
|
|
560
560
|
*
|
|
561
|
-
* @param data - WorkflowChainCreate with steps (session_alias, inputs),
|
|
561
|
+
* @param data - WorkflowChainCreate with steps (session_alias, inputs, sensitive_inputs),
|
|
562
562
|
* optional shared inputs/sensitive/file inputs, and either
|
|
563
563
|
* session_id to join or machine_id/pool_ids to start a session.
|
|
564
564
|
* @returns WorkflowChainResponse containing session_id and run_ids
|
|
@@ -692,12 +692,22 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
692
692
|
* @param params.skip - Number of items to skip (for pagination)
|
|
693
693
|
* @param params.limit - Maximum number of items to return
|
|
694
694
|
* @param params.workflow_id - Filter by workflow ID
|
|
695
|
+
* @param params.is_approved - Filter by approval status (true=approved, false=not approved, undefined=all)
|
|
696
|
+
* @param params.created_at_from - Filter created at or after this date
|
|
697
|
+
* @param params.created_at_to - Filter created at or before this date
|
|
698
|
+
* @param params.updated_at_from - Filter updated at or after this date
|
|
699
|
+
* @param params.updated_at_to - Filter updated at or before this date
|
|
695
700
|
* @returns Paginated list of trajectories
|
|
701
|
+
*
|
|
702
|
+
* @remarks
|
|
703
|
+
* By default returns both approved and unapproved trajectories.
|
|
704
|
+
* Only approved trajectories are used during workflow execution.
|
|
696
705
|
*/
|
|
697
706
|
list: (params?: {
|
|
698
707
|
skip?: number;
|
|
699
708
|
limit?: number;
|
|
700
709
|
workflow_id?: string;
|
|
710
|
+
is_approved?: boolean;
|
|
701
711
|
created_at_from?: string | Date;
|
|
702
712
|
created_at_to?: string | Date;
|
|
703
713
|
updated_at_from?: string | Date;
|
|
@@ -723,6 +733,10 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
723
733
|
* @param data.dimensions - Display dimensions when trajectory was recorded
|
|
724
734
|
* @param data.original_input_values - Input values used during recording
|
|
725
735
|
* @returns Created trajectory details
|
|
736
|
+
*
|
|
737
|
+
* @remarks
|
|
738
|
+
* Trajectories are created with is_approved=false by default.
|
|
739
|
+
* You must explicitly approve them before they can be used during workflow execution.
|
|
726
740
|
*/
|
|
727
741
|
create: (data: TrajectoryCreate) => Promise<({
|
|
728
742
|
data: undefined;
|
|
@@ -754,8 +768,12 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
754
768
|
* Update a trajectory
|
|
755
769
|
*
|
|
756
770
|
* @param trajectoryId - The ID of the trajectory to update
|
|
757
|
-
* @param data - Update data (trajectory_data)
|
|
771
|
+
* @param data - Update data (name, description, trajectory_data, is_approved)
|
|
758
772
|
* @returns Updated trajectory details
|
|
773
|
+
*
|
|
774
|
+
* @remarks
|
|
775
|
+
* You can update trajectory metadata, trajectory data (steps), and approval status.
|
|
776
|
+
* Only approved trajectories are used during workflow execution.
|
|
759
777
|
*/
|
|
760
778
|
update: (trajectoryId: string, data: TrajectoryUpdate) => Promise<({
|
|
761
779
|
data: undefined;
|
package/dist/index.js
CHANGED
|
@@ -535,7 +535,7 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
535
535
|
/**
|
|
536
536
|
* Create a chained run sequence on a single reserved machine session.
|
|
537
537
|
*
|
|
538
|
-
* @param data - WorkflowChainCreate with steps (session_alias, inputs),
|
|
538
|
+
* @param data - WorkflowChainCreate with steps (session_alias, inputs, sensitive_inputs),
|
|
539
539
|
* optional shared inputs/sensitive/file inputs, and either
|
|
540
540
|
* session_id to join or machine_id/pool_ids to start a session.
|
|
541
541
|
* @returns WorkflowChainResponse containing session_id and run_ids
|
|
@@ -640,14 +640,24 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
640
640
|
* @param params.skip - Number of items to skip (for pagination)
|
|
641
641
|
* @param params.limit - Maximum number of items to return
|
|
642
642
|
* @param params.workflow_id - Filter by workflow ID
|
|
643
|
+
* @param params.is_approved - Filter by approval status (true=approved, false=not approved, undefined=all)
|
|
644
|
+
* @param params.created_at_from - Filter created at or after this date
|
|
645
|
+
* @param params.created_at_to - Filter created at or before this date
|
|
646
|
+
* @param params.updated_at_from - Filter updated at or after this date
|
|
647
|
+
* @param params.updated_at_to - Filter updated at or before this date
|
|
643
648
|
* @returns Paginated list of trajectories
|
|
649
|
+
*
|
|
650
|
+
* @remarks
|
|
651
|
+
* By default returns both approved and unapproved trajectories.
|
|
652
|
+
* Only approved trajectories are used during workflow execution.
|
|
644
653
|
*/
|
|
645
654
|
list: (params) => __awaiter(this, void 0, void 0, function* () {
|
|
646
|
-
var _a;
|
|
655
|
+
var _a, _b;
|
|
647
656
|
const query = {
|
|
648
657
|
skip: params === null || params === void 0 ? void 0 : params.skip,
|
|
649
658
|
limit: params === null || params === void 0 ? void 0 : params.limit,
|
|
650
659
|
workflow_id: (_a = params === null || params === void 0 ? void 0 : params.workflow_id) !== null && _a !== void 0 ? _a : undefined,
|
|
660
|
+
is_approved: (_b = params === null || params === void 0 ? void 0 : params.is_approved) !== null && _b !== void 0 ? _b : undefined,
|
|
651
661
|
created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
|
|
652
662
|
created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
|
|
653
663
|
updated_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.updated_at_from),
|
|
@@ -666,6 +676,10 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
666
676
|
* @param data.dimensions - Display dimensions when trajectory was recorded
|
|
667
677
|
* @param data.original_input_values - Input values used during recording
|
|
668
678
|
* @returns Created trajectory details
|
|
679
|
+
*
|
|
680
|
+
* @remarks
|
|
681
|
+
* Trajectories are created with is_approved=false by default.
|
|
682
|
+
* You must explicitly approve them before they can be used during workflow execution.
|
|
669
683
|
*/
|
|
670
684
|
create: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
671
685
|
return (0, sdk_gen_1.createTrajectoryV1TrajectoriesPost)({
|
|
@@ -689,8 +703,12 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
689
703
|
* Update a trajectory
|
|
690
704
|
*
|
|
691
705
|
* @param trajectoryId - The ID of the trajectory to update
|
|
692
|
-
* @param data - Update data (trajectory_data)
|
|
706
|
+
* @param data - Update data (name, description, trajectory_data, is_approved)
|
|
693
707
|
* @returns Updated trajectory details
|
|
708
|
+
*
|
|
709
|
+
* @remarks
|
|
710
|
+
* You can update trajectory metadata, trajectory data (steps), and approval status.
|
|
711
|
+
* Only approved trajectories are used during workflow execution.
|
|
694
712
|
*/
|
|
695
713
|
update: (trajectoryId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
696
714
|
return (0, sdk_gen_1.updateTrajectoryV1TrajectoriesTrajectoryIdPatch)({
|