cyberdesk 2.1.13 → 2.1.14
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 +6 -1
- package/dist/client/sdk.gen.js +15 -1
- package/dist/client/types.gen.d.ts +39 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- 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
|
|
@@ -453,6 +453,11 @@ export declare const mouseClickV1ComputerMachineIdInputMouseClickPost: <ThrowOnE
|
|
|
453
453
|
* Optionally moves to (x, y) before scrolling.
|
|
454
454
|
*/
|
|
455
455
|
export declare const mouseScrollV1ComputerMachineIdInputMouseScrollPost: <ThrowOnError extends boolean = false>(options: Options<MouseScrollV1ComputerMachineIdInputMouseScrollPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
456
|
+
/**
|
|
457
|
+
* Drag mouse (native)
|
|
458
|
+
* Perform a drag operation using absolute coordinates with required start and optional duration.
|
|
459
|
+
*/
|
|
460
|
+
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
461
|
/**
|
|
457
462
|
* List directory contents
|
|
458
463
|
* 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
|
|
@@ -977,6 +977,20 @@ const mouseScrollV1ComputerMachineIdInputMouseScrollPost = (options) => {
|
|
|
977
977
|
], 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
978
|
};
|
|
979
979
|
exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = mouseScrollV1ComputerMachineIdInputMouseScrollPost;
|
|
980
|
+
/**
|
|
981
|
+
* Drag mouse (native)
|
|
982
|
+
* Perform a drag operation using absolute coordinates with required start and optional duration.
|
|
983
|
+
*/
|
|
984
|
+
const mouseDragV1ComputerMachineIdInputMouseDragPost = (options) => {
|
|
985
|
+
var _a;
|
|
986
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
987
|
+
{
|
|
988
|
+
scheme: 'bearer',
|
|
989
|
+
type: 'http'
|
|
990
|
+
}
|
|
991
|
+
], 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) }));
|
|
992
|
+
};
|
|
993
|
+
exports.mouseDragV1ComputerMachineIdInputMouseDragPost = mouseDragV1ComputerMachineIdInputMouseDragPost;
|
|
980
994
|
/**
|
|
981
995
|
* List directory contents
|
|
982
996
|
* 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;
|
|
@@ -2214,6 +2231,28 @@ export type MouseScrollV1ComputerMachineIdInputMouseScrollPostResponses = {
|
|
|
2214
2231
|
204: void;
|
|
2215
2232
|
};
|
|
2216
2233
|
export type MouseScrollV1ComputerMachineIdInputMouseScrollPostResponse = MouseScrollV1ComputerMachineIdInputMouseScrollPostResponses[keyof MouseScrollV1ComputerMachineIdInputMouseScrollPostResponses];
|
|
2234
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostData = {
|
|
2235
|
+
body: MouseDragRequest;
|
|
2236
|
+
path: {
|
|
2237
|
+
machine_id: string;
|
|
2238
|
+
};
|
|
2239
|
+
query?: never;
|
|
2240
|
+
url: '/v1/computer/{machine_id}/input/mouse/drag';
|
|
2241
|
+
};
|
|
2242
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostErrors = {
|
|
2243
|
+
/**
|
|
2244
|
+
* Validation Error
|
|
2245
|
+
*/
|
|
2246
|
+
422: HttpValidationError;
|
|
2247
|
+
};
|
|
2248
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostError = MouseDragV1ComputerMachineIdInputMouseDragPostErrors[keyof MouseDragV1ComputerMachineIdInputMouseDragPostErrors];
|
|
2249
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostResponses = {
|
|
2250
|
+
/**
|
|
2251
|
+
* Successful Response
|
|
2252
|
+
*/
|
|
2253
|
+
204: void;
|
|
2254
|
+
};
|
|
2255
|
+
export type MouseDragV1ComputerMachineIdInputMouseDragPostResponse = MouseDragV1ComputerMachineIdInputMouseDragPostResponses[keyof MouseDragV1ComputerMachineIdInputMouseDragPostResponses];
|
|
2217
2256
|
export type FsListV1ComputerMachineIdFsListGetData = {
|
|
2218
2257
|
body?: never;
|
|
2219
2258
|
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
|
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
|