cyberdesk 2.1.10 → 2.1.12
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 +12 -1
- package/dist/client/sdk.gen.js +22 -2
- package/dist/client/types.gen.d.ts +80 -0
- package/dist/index.d.ts +25 -1
- package/dist/index.js +21 -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, CreateRunChainV1RunsChainPostData, 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, 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, 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
|
|
@@ -224,6 +224,17 @@ export declare const createRunChainV1RunsChainPost: <ThrowOnError extends boolea
|
|
|
224
224
|
* Maximum 1000 runs can be created in a single request.
|
|
225
225
|
*/
|
|
226
226
|
export declare const bulkCreateRunsV1RunsBulkPost: <ThrowOnError extends boolean = false>(options: Options<BulkCreateRunsV1RunsBulkPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunBulkCreateResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
227
|
+
/**
|
|
228
|
+
* Retry Run
|
|
229
|
+
* Retry an existing run in-place (same run_id).
|
|
230
|
+
*
|
|
231
|
+
* - Rejects if run is active (scheduling or running).
|
|
232
|
+
* - Always clears previous outputs/history/output attachments.
|
|
233
|
+
* - Replaces input attachments if `file_inputs` are provided.
|
|
234
|
+
* - Optionally overrides inputs, sensitive inputs, session/machine/pools.
|
|
235
|
+
* - Triggers immediate assignment attempt unless the session is busy.
|
|
236
|
+
*/
|
|
237
|
+
export declare const retryRunV1RunsRunIdRetryPost: <ThrowOnError extends boolean = false>(options: Options<RetryRunV1RunsRunIdRetryPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RunResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
227
238
|
/**
|
|
228
239
|
* List Run Attachments
|
|
229
240
|
* List all run attachments for the authenticated organization.
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
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 = void 0;
|
|
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;
|
|
6
6
|
const client_gen_1 = require("./client.gen");
|
|
7
7
|
/**
|
|
8
8
|
* Health Check
|
|
@@ -460,6 +460,26 @@ const bulkCreateRunsV1RunsBulkPost = (options) => {
|
|
|
460
460
|
], url: '/v1/runs/bulk' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
461
461
|
};
|
|
462
462
|
exports.bulkCreateRunsV1RunsBulkPost = bulkCreateRunsV1RunsBulkPost;
|
|
463
|
+
/**
|
|
464
|
+
* Retry Run
|
|
465
|
+
* Retry an existing run in-place (same run_id).
|
|
466
|
+
*
|
|
467
|
+
* - Rejects if run is active (scheduling or running).
|
|
468
|
+
* - Always clears previous outputs/history/output attachments.
|
|
469
|
+
* - Replaces input attachments if `file_inputs` are provided.
|
|
470
|
+
* - Optionally overrides inputs, sensitive inputs, session/machine/pools.
|
|
471
|
+
* - Triggers immediate assignment attempt unless the session is busy.
|
|
472
|
+
*/
|
|
473
|
+
const retryRunV1RunsRunIdRetryPost = (options) => {
|
|
474
|
+
var _a;
|
|
475
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
476
|
+
{
|
|
477
|
+
scheme: 'bearer',
|
|
478
|
+
type: 'http'
|
|
479
|
+
}
|
|
480
|
+
], url: '/v1/runs/{run_id}/retry' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
481
|
+
};
|
|
482
|
+
exports.retryRunV1RunsRunIdRetryPost = retryRunV1RunsRunIdRetryPost;
|
|
463
483
|
/**
|
|
464
484
|
* List Run Attachments
|
|
465
485
|
* List all run attachments for the authenticated organization.
|
|
@@ -129,6 +129,7 @@ export type MachineResponse = {
|
|
|
129
129
|
status: MachineStatus;
|
|
130
130
|
is_available: boolean;
|
|
131
131
|
reserved_session_id?: string | null;
|
|
132
|
+
linked_keepalive_machine_id?: string | null;
|
|
132
133
|
created_at: string;
|
|
133
134
|
last_seen: string;
|
|
134
135
|
pools?: Array<PoolResponse> | null;
|
|
@@ -522,6 +523,13 @@ export type RunCreate = {
|
|
|
522
523
|
*/
|
|
523
524
|
release_session_after?: boolean | null;
|
|
524
525
|
};
|
|
526
|
+
/**
|
|
527
|
+
* Selectable run fields for projection in list endpoints.
|
|
528
|
+
*
|
|
529
|
+
* These are optional fields beyond the essential identifiers that are always returned
|
|
530
|
+
* (id, workflow_id, machine_id, status, created_at).
|
|
531
|
+
*/
|
|
532
|
+
export type RunField = 'user_id' | 'organization_id' | 'error' | 'output_data' | 'input_attachment_ids' | 'output_attachment_ids' | 'run_message_history' | 'input_values' | 'pool_ids' | 'sensitive_input_aliases' | 'session_id' | 'session_alias' | 'release_session_after' | 'machine_id';
|
|
525
533
|
/**
|
|
526
534
|
* Run response schema
|
|
527
535
|
*/
|
|
@@ -553,6 +561,52 @@ export type RunResponse = {
|
|
|
553
561
|
release_session_after?: boolean | null;
|
|
554
562
|
created_at: string;
|
|
555
563
|
};
|
|
564
|
+
/**
|
|
565
|
+
* Options for retrying an existing run in-place (same run_id).
|
|
566
|
+
*
|
|
567
|
+
* Notes:
|
|
568
|
+
* - If `file_inputs` are provided, existing input attachments are replaced.
|
|
569
|
+
* - Prior outputs, history, and output attachments are always cleared as part of retry.
|
|
570
|
+
* - Retry is only allowed for terminal runs (success, error, or cancelled).
|
|
571
|
+
*/
|
|
572
|
+
export type RunRetry = {
|
|
573
|
+
/**
|
|
574
|
+
* Override input values for workflow variables
|
|
575
|
+
*/
|
|
576
|
+
input_values?: {
|
|
577
|
+
[key: string]: unknown;
|
|
578
|
+
} | null;
|
|
579
|
+
/**
|
|
580
|
+
* Provide new sensitive inputs; stored in vault and mapped to aliases
|
|
581
|
+
*/
|
|
582
|
+
sensitive_input_values?: {
|
|
583
|
+
[key: string]: string;
|
|
584
|
+
} | null;
|
|
585
|
+
/**
|
|
586
|
+
* Provide new input files for this retry; replaces existing input attachments
|
|
587
|
+
*/
|
|
588
|
+
file_inputs?: Array<FileInput> | null;
|
|
589
|
+
/**
|
|
590
|
+
* Override specific machine for this retry
|
|
591
|
+
*/
|
|
592
|
+
machine_id?: string | null;
|
|
593
|
+
/**
|
|
594
|
+
* Override pool filters if not using a specific machine
|
|
595
|
+
*/
|
|
596
|
+
pool_ids?: Array<string> | null;
|
|
597
|
+
/**
|
|
598
|
+
* Keep existing session_id. If false and no session_id provided, clears session fields
|
|
599
|
+
*/
|
|
600
|
+
reuse_session?: boolean | null;
|
|
601
|
+
/**
|
|
602
|
+
* Set/override session_id for this retry
|
|
603
|
+
*/
|
|
604
|
+
session_id?: string | null;
|
|
605
|
+
/**
|
|
606
|
+
* Override release_session_after behavior for this retry
|
|
607
|
+
*/
|
|
608
|
+
release_session_after?: boolean | null;
|
|
609
|
+
};
|
|
556
610
|
export type RunStatus = 'scheduling' | 'running' | 'success' | 'cancelled' | 'error';
|
|
557
611
|
/**
|
|
558
612
|
* Schema for updating a run
|
|
@@ -1260,6 +1314,10 @@ export type ListRunsV1RunsGetData = {
|
|
|
1260
1314
|
* Filter runs created at or before this ISO timestamp (UTC)
|
|
1261
1315
|
*/
|
|
1262
1316
|
created_at_to?: string | null;
|
|
1317
|
+
/**
|
|
1318
|
+
* Optional list of fields to include per run. Always includes: id, workflow_id, machine_id, status, created_at. Provide multiple 'fields=' params to include more.
|
|
1319
|
+
*/
|
|
1320
|
+
fields?: Array<RunField> | null;
|
|
1263
1321
|
skip?: number;
|
|
1264
1322
|
limit?: number;
|
|
1265
1323
|
};
|
|
@@ -1405,6 +1463,28 @@ export type BulkCreateRunsV1RunsBulkPostResponses = {
|
|
|
1405
1463
|
201: RunBulkCreateResponse;
|
|
1406
1464
|
};
|
|
1407
1465
|
export type BulkCreateRunsV1RunsBulkPostResponse = BulkCreateRunsV1RunsBulkPostResponses[keyof BulkCreateRunsV1RunsBulkPostResponses];
|
|
1466
|
+
export type RetryRunV1RunsRunIdRetryPostData = {
|
|
1467
|
+
body: RunRetry;
|
|
1468
|
+
path: {
|
|
1469
|
+
run_id: string;
|
|
1470
|
+
};
|
|
1471
|
+
query?: never;
|
|
1472
|
+
url: '/v1/runs/{run_id}/retry';
|
|
1473
|
+
};
|
|
1474
|
+
export type RetryRunV1RunsRunIdRetryPostErrors = {
|
|
1475
|
+
/**
|
|
1476
|
+
* Validation Error
|
|
1477
|
+
*/
|
|
1478
|
+
422: HttpValidationError;
|
|
1479
|
+
};
|
|
1480
|
+
export type RetryRunV1RunsRunIdRetryPostError = RetryRunV1RunsRunIdRetryPostErrors[keyof RetryRunV1RunsRunIdRetryPostErrors];
|
|
1481
|
+
export type RetryRunV1RunsRunIdRetryPostResponses = {
|
|
1482
|
+
/**
|
|
1483
|
+
* Successful Response
|
|
1484
|
+
*/
|
|
1485
|
+
200: RunResponse;
|
|
1486
|
+
};
|
|
1487
|
+
export type RetryRunV1RunsRunIdRetryPostResponse = RetryRunV1RunsRunIdRetryPostResponses[keyof RetryRunV1RunsRunIdRetryPostResponses];
|
|
1408
1488
|
export type ListRunAttachmentsV1RunAttachmentsGetData = {
|
|
1409
1489
|
body?: never;
|
|
1410
1490
|
path?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
import { type MachineResponse, type MachinePoolUpdate, type PoolResponse, type PoolCreate, type PoolUpdate, type PoolWithMachines, type MachinePoolAssignment, type WorkflowResponse, type RunResponse, type ConnectionResponse, type TrajectoryResponse, type PaginatedResponseMachineResponse, type PaginatedResponsePoolResponse, type PaginatedResponseWorkflowResponse, type PaginatedResponseRunResponse, type PaginatedResponseConnectionResponse, type PaginatedResponseTrajectoryResponse, type MachineStatus, type RunStatus, type ConnectionStatus, type MachineCreate, type WorkflowCreate, type RunCreate, type RunBulkCreate, type RunBulkCreateResponse, type WorkflowChainCreate, type WorkflowChainResponse, type FileInput, type ConnectionCreate, type TrajectoryCreate, type MachineUpdate, type WorkflowUpdate, type RunUpdate, type TrajectoryUpdate, type RunAttachmentCreate, type RunAttachmentUpdate, type RunAttachmentResponse, type RunAttachmentDownloadUrlResponse, type AttachmentType, type PaginatedResponseRunAttachmentResponse } from './client/types.gen';
|
|
28
|
+
import { type MachineResponse, type MachinePoolUpdate, type PoolResponse, type PoolCreate, type PoolUpdate, type PoolWithMachines, type MachinePoolAssignment, type WorkflowResponse, type RunResponse, type ConnectionResponse, type TrajectoryResponse, type PaginatedResponseMachineResponse, type PaginatedResponsePoolResponse, type PaginatedResponseWorkflowResponse, type PaginatedResponseRunResponse, type PaginatedResponseConnectionResponse, type PaginatedResponseTrajectoryResponse, type MachineStatus, type RunStatus, type ConnectionStatus, type MachineCreate, type WorkflowCreate, type RunCreate, type RunBulkCreate, type RunBulkCreateResponse, type WorkflowChainCreate, type WorkflowChainResponse, type FileInput, type ConnectionCreate, type TrajectoryCreate, type MachineUpdate, type WorkflowUpdate, type RunUpdate, type TrajectoryUpdate, type RunAttachmentCreate, type RunAttachmentUpdate, type RunAttachmentResponse, type RunAttachmentDownloadUrlResponse, type AttachmentType, type PaginatedResponseRunAttachmentResponse, type RunRetry, type RunField } from './client/types.gen';
|
|
29
29
|
export * from './client/types.gen';
|
|
30
30
|
export * from './client/sdk.gen';
|
|
31
31
|
export * from './client/client.gen';
|
|
@@ -106,6 +106,10 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
106
106
|
*
|
|
107
107
|
* @param machineId - The ID of the machine to update
|
|
108
108
|
* @param data - Update data (name, status, availability, etc.)
|
|
109
|
+
*
|
|
110
|
+
* Note: linked_keepalive_machine_id is not writable; it is managed by
|
|
111
|
+
* Cyberdriver link events and will be set/cleared automatically by the
|
|
112
|
+
* platform.
|
|
109
113
|
* @returns Updated machine details
|
|
110
114
|
*/
|
|
111
115
|
update: (machineId: string, data: MachineUpdate) => Promise<{
|
|
@@ -448,6 +452,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
448
452
|
session_id?: string;
|
|
449
453
|
created_at_from?: string | Date;
|
|
450
454
|
created_at_to?: string | Date;
|
|
455
|
+
fields?: RunField[];
|
|
451
456
|
}) => Promise<({
|
|
452
457
|
data: undefined;
|
|
453
458
|
error: import("./client/types.gen").HttpValidationError;
|
|
@@ -616,6 +621,25 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
616
621
|
request: Request;
|
|
617
622
|
response: Response;
|
|
618
623
|
}>;
|
|
624
|
+
/**
|
|
625
|
+
* Retry an existing run in-place (same run_id)
|
|
626
|
+
*
|
|
627
|
+
* Clears previous outputs/history/output attachments, optionally replaces inputs/files,
|
|
628
|
+
* and attempts immediate assignment unless the session is busy.
|
|
629
|
+
*
|
|
630
|
+
* @param runId - The ID of the run to retry
|
|
631
|
+
* @param data - Retry options (input overrides, sensitive inputs, file inputs, etc.)
|
|
632
|
+
*/
|
|
633
|
+
retry: (runId: string, data: RunRetry) => Promise<({
|
|
634
|
+
data: undefined;
|
|
635
|
+
error: import("./client/types.gen").HttpValidationError;
|
|
636
|
+
} | {
|
|
637
|
+
data: RunResponse;
|
|
638
|
+
error: undefined;
|
|
639
|
+
}) & {
|
|
640
|
+
request: Request;
|
|
641
|
+
response: Response;
|
|
642
|
+
}>;
|
|
619
643
|
};
|
|
620
644
|
connections: {
|
|
621
645
|
/**
|
package/dist/index.js
CHANGED
|
@@ -151,6 +151,10 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
151
151
|
*
|
|
152
152
|
* @param machineId - The ID of the machine to update
|
|
153
153
|
* @param data - Update data (name, status, availability, etc.)
|
|
154
|
+
*
|
|
155
|
+
* Note: linked_keepalive_machine_id is not writable; it is managed by
|
|
156
|
+
* Cyberdriver link events and will be set/cleared automatically by the
|
|
157
|
+
* platform.
|
|
154
158
|
* @returns Updated machine details
|
|
155
159
|
*/
|
|
156
160
|
update: (machineId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -440,6 +444,7 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
440
444
|
session_id: (_d = params === null || params === void 0 ? void 0 : params.session_id) !== null && _d !== void 0 ? _d : undefined,
|
|
441
445
|
created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
|
|
442
446
|
created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
|
|
447
|
+
fields: params === null || params === void 0 ? void 0 : params.fields,
|
|
443
448
|
};
|
|
444
449
|
return (0, sdk_gen_1.listRunsV1RunsGet)({ client, query });
|
|
445
450
|
}),
|
|
@@ -578,6 +583,22 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
578
583
|
path: { run_id: runId },
|
|
579
584
|
});
|
|
580
585
|
}),
|
|
586
|
+
/**
|
|
587
|
+
* Retry an existing run in-place (same run_id)
|
|
588
|
+
*
|
|
589
|
+
* Clears previous outputs/history/output attachments, optionally replaces inputs/files,
|
|
590
|
+
* and attempts immediate assignment unless the session is busy.
|
|
591
|
+
*
|
|
592
|
+
* @param runId - The ID of the run to retry
|
|
593
|
+
* @param data - Retry options (input overrides, sensitive inputs, file inputs, etc.)
|
|
594
|
+
*/
|
|
595
|
+
retry: (runId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
596
|
+
return (0, sdk_gen_1.retryRunV1RunsRunIdRetryPost)({
|
|
597
|
+
client,
|
|
598
|
+
path: { run_id: runId },
|
|
599
|
+
body: data,
|
|
600
|
+
});
|
|
601
|
+
}),
|
|
581
602
|
},
|
|
582
603
|
// Connection endpoints
|
|
583
604
|
connections: {
|