cyberdesk 2.1.2 → 2.1.4
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 +11 -1
- package/dist/client/sdk.gen.js +17 -1
- package/dist/client/types.gen.d.ts +66 -0
- 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, BulkCreateRunsV1RunsBulkPostData, 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, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, DummyTestEndpointV1TestPostData, RootGetData } 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, BulkCreateRunsV1RunsBulkPostData, 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, 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
|
|
@@ -479,3 +479,13 @@ export declare const dummyTestEndpointV1TestPost: <ThrowOnError extends boolean
|
|
|
479
479
|
* Root endpoint with service information
|
|
480
480
|
*/
|
|
481
481
|
export declare const rootGet: <ThrowOnError extends boolean = false>(options?: Options<RootGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
|
|
482
|
+
/**
|
|
483
|
+
* Health
|
|
484
|
+
*/
|
|
485
|
+
export declare const healthHealthGet: <ThrowOnError extends boolean = false>(options?: Options<HealthHealthGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
486
|
+
[key: string]: unknown;
|
|
487
|
+
}, unknown, ThrowOnError>;
|
|
488
|
+
/**
|
|
489
|
+
* Health Db
|
|
490
|
+
*/
|
|
491
|
+
export declare const healthDbHealthDbGet: <ThrowOnError extends boolean = false>(options?: Options<HealthDbHealthDbGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
|
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.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.bulkCreateRunsV1RunsBulkPost = 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.rootGet = exports.dummyTestEndpointV1TestPost = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = void 0;
|
|
5
|
+
exports.healthDbHealthDbGet = exports.healthHealthGet = exports.rootGet = exports.dummyTestEndpointV1TestPost = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = void 0;
|
|
6
6
|
const client_gen_1 = require("./client.gen");
|
|
7
7
|
/**
|
|
8
8
|
* Health Check
|
|
@@ -1022,3 +1022,19 @@ const rootGet = (options) => {
|
|
|
1022
1022
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ url: '/' }, options));
|
|
1023
1023
|
};
|
|
1024
1024
|
exports.rootGet = rootGet;
|
|
1025
|
+
/**
|
|
1026
|
+
* Health
|
|
1027
|
+
*/
|
|
1028
|
+
const healthHealthGet = (options) => {
|
|
1029
|
+
var _a;
|
|
1030
|
+
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' }, options));
|
|
1031
|
+
};
|
|
1032
|
+
exports.healthHealthGet = healthHealthGet;
|
|
1033
|
+
/**
|
|
1034
|
+
* Health Db
|
|
1035
|
+
*/
|
|
1036
|
+
const healthDbHealthDbGet = (options) => {
|
|
1037
|
+
var _a;
|
|
1038
|
+
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));
|
|
1039
|
+
};
|
|
1040
|
+
exports.healthDbHealthDbGet = healthDbHealthDbGet;
|
|
@@ -401,6 +401,27 @@ export type RunBulkCreateResponse = {
|
|
|
401
401
|
failed_count?: number;
|
|
402
402
|
errors?: Array<string>;
|
|
403
403
|
};
|
|
404
|
+
/**
|
|
405
|
+
* Payload sent for the run_complete webhook event.
|
|
406
|
+
*/
|
|
407
|
+
export type RunCompletedEvent = {
|
|
408
|
+
/**
|
|
409
|
+
* Unique event identifier for idempotency
|
|
410
|
+
*/
|
|
411
|
+
event_id?: string;
|
|
412
|
+
/**
|
|
413
|
+
* Event type key
|
|
414
|
+
*/
|
|
415
|
+
event_type?: string;
|
|
416
|
+
/**
|
|
417
|
+
* Time the event occurred (UTC)
|
|
418
|
+
*/
|
|
419
|
+
occurred_at?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The completed run data
|
|
422
|
+
*/
|
|
423
|
+
run: RunResponse;
|
|
424
|
+
};
|
|
404
425
|
/**
|
|
405
426
|
* Schema for creating a run
|
|
406
427
|
*/
|
|
@@ -472,6 +493,8 @@ export type RunUpdate = {
|
|
|
472
493
|
* Schema for creating a trajectory
|
|
473
494
|
*/
|
|
474
495
|
export type TrajectoryCreate = {
|
|
496
|
+
name?: string | null;
|
|
497
|
+
description?: string | null;
|
|
475
498
|
workflow_id: string;
|
|
476
499
|
trajectory_data: Array<{
|
|
477
500
|
[key: string]: unknown;
|
|
@@ -493,6 +516,8 @@ export type TrajectoryCreate = {
|
|
|
493
516
|
* Trajectory response schema
|
|
494
517
|
*/
|
|
495
518
|
export type TrajectoryResponse = {
|
|
519
|
+
name?: string | null;
|
|
520
|
+
description?: string | null;
|
|
496
521
|
workflow_id: string;
|
|
497
522
|
trajectory_data: Array<{
|
|
498
523
|
[key: string]: unknown;
|
|
@@ -519,6 +544,8 @@ export type TrajectoryResponse = {
|
|
|
519
544
|
* Schema for updating a trajectory
|
|
520
545
|
*/
|
|
521
546
|
export type TrajectoryUpdate = {
|
|
547
|
+
name?: string | null;
|
|
548
|
+
description?: string | null;
|
|
522
549
|
trajectory_data?: Array<{
|
|
523
550
|
[key: string]: unknown;
|
|
524
551
|
}> | null;
|
|
@@ -542,6 +569,10 @@ export type WorkflowCreate = {
|
|
|
542
569
|
* Enable AI-based file export detection
|
|
543
570
|
*/
|
|
544
571
|
includes_file_exports?: boolean;
|
|
572
|
+
/**
|
|
573
|
+
* Send webhook on run completion
|
|
574
|
+
*/
|
|
575
|
+
is_webhooks_enabled?: boolean;
|
|
545
576
|
};
|
|
546
577
|
/**
|
|
547
578
|
* Workflow response schema
|
|
@@ -557,6 +588,10 @@ export type WorkflowResponse = {
|
|
|
557
588
|
* Enable AI-based file export detection
|
|
558
589
|
*/
|
|
559
590
|
includes_file_exports?: boolean;
|
|
591
|
+
/**
|
|
592
|
+
* Send webhook on run completion
|
|
593
|
+
*/
|
|
594
|
+
is_webhooks_enabled?: boolean;
|
|
560
595
|
id: string;
|
|
561
596
|
user_id?: string | null;
|
|
562
597
|
organization_id?: string | null;
|
|
@@ -581,6 +616,10 @@ export type WorkflowUpdate = {
|
|
|
581
616
|
* Enable AI-based file export detection
|
|
582
617
|
*/
|
|
583
618
|
includes_file_exports?: boolean | null;
|
|
619
|
+
/**
|
|
620
|
+
* Send webhook on run completion
|
|
621
|
+
*/
|
|
622
|
+
is_webhooks_enabled?: boolean | null;
|
|
584
623
|
};
|
|
585
624
|
export type HealthCheckV1HealthGetData = {
|
|
586
625
|
body?: never;
|
|
@@ -2091,6 +2130,33 @@ export type RootGetResponses = {
|
|
|
2091
2130
|
*/
|
|
2092
2131
|
200: unknown;
|
|
2093
2132
|
};
|
|
2133
|
+
export type HealthHealthGetData = {
|
|
2134
|
+
body?: never;
|
|
2135
|
+
path?: never;
|
|
2136
|
+
query?: never;
|
|
2137
|
+
url: '/health';
|
|
2138
|
+
};
|
|
2139
|
+
export type HealthHealthGetResponses = {
|
|
2140
|
+
/**
|
|
2141
|
+
* Successful Response
|
|
2142
|
+
*/
|
|
2143
|
+
200: {
|
|
2144
|
+
[key: string]: unknown;
|
|
2145
|
+
};
|
|
2146
|
+
};
|
|
2147
|
+
export type HealthHealthGetResponse = HealthHealthGetResponses[keyof HealthHealthGetResponses];
|
|
2148
|
+
export type HealthDbHealthDbGetData = {
|
|
2149
|
+
body?: never;
|
|
2150
|
+
path?: never;
|
|
2151
|
+
query?: never;
|
|
2152
|
+
url: '/health/db';
|
|
2153
|
+
};
|
|
2154
|
+
export type HealthDbHealthDbGetResponses = {
|
|
2155
|
+
/**
|
|
2156
|
+
* Successful Response
|
|
2157
|
+
*/
|
|
2158
|
+
200: unknown;
|
|
2159
|
+
};
|
|
2094
2160
|
export type ClientOptions = {
|
|
2095
2161
|
baseUrl: 'https://api.cyberdesk.io' | 'https://cyberdesk-api-dev.fly.dev' | (string & {});
|
|
2096
2162
|
};
|