cyberdesk 2.0.0 → 2.1.0
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 +47 -1
- package/dist/client/sdk.gen.js +129 -2
- package/dist/client/types.gen.d.ts +281 -0
- package/dist/index.d.ts +144 -2
- package/dist/index.js +151 -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, 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 } 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
|
|
@@ -68,6 +68,52 @@ export declare const getMachineV1MachinesMachineIdGet: <ThrowOnError extends boo
|
|
|
68
68
|
* The machine must belong to the authenticated organization.
|
|
69
69
|
*/
|
|
70
70
|
export declare const updateMachineV1MachinesMachineIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateMachineV1MachinesMachineIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").MachineResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
71
|
+
/**
|
|
72
|
+
* Get Machine Pools
|
|
73
|
+
* Get all pools that a machine belongs to.
|
|
74
|
+
*/
|
|
75
|
+
export declare const getMachinePoolsV1MachinesMachineIdPoolsGet: <ThrowOnError extends boolean = false>(options: Options<GetMachinePoolsV1MachinesMachineIdPoolsGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PoolResponse[], import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
76
|
+
/**
|
|
77
|
+
* Update Machine Pools
|
|
78
|
+
* Update a machine's pool assignments.
|
|
79
|
+
* This replaces all existing pool assignments with the new ones.
|
|
80
|
+
*/
|
|
81
|
+
export declare const updateMachinePoolsV1MachinesMachineIdPoolsPut: <ThrowOnError extends boolean = false>(options: Options<UpdateMachinePoolsV1MachinesMachineIdPoolsPutData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").MachineResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
82
|
+
/**
|
|
83
|
+
* List Pools
|
|
84
|
+
* List all pools for the organization.
|
|
85
|
+
*/
|
|
86
|
+
export declare const listPoolsV1PoolsGet: <ThrowOnError extends boolean = false>(options?: Options<ListPoolsV1PoolsGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PaginatedResponsePoolResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
87
|
+
/**
|
|
88
|
+
* Create Pool
|
|
89
|
+
* Create a new pool for organizing machines.
|
|
90
|
+
*/
|
|
91
|
+
export declare const createPoolV1PoolsPost: <ThrowOnError extends boolean = false>(options: Options<CreatePoolV1PoolsPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PoolResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
92
|
+
/**
|
|
93
|
+
* Delete Pool
|
|
94
|
+
* Delete a pool. This will not delete the machines in the pool.
|
|
95
|
+
*/
|
|
96
|
+
export declare const deletePoolV1PoolsPoolIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeletePoolV1PoolsPoolIdDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
97
|
+
/**
|
|
98
|
+
* Get Pool
|
|
99
|
+
* Get a specific pool by ID.
|
|
100
|
+
*/
|
|
101
|
+
export declare const getPoolV1PoolsPoolIdGet: <ThrowOnError extends boolean = false>(options: Options<GetPoolV1PoolsPoolIdGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PoolWithMachines, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
102
|
+
/**
|
|
103
|
+
* Update Pool
|
|
104
|
+
* Update a pool's details.
|
|
105
|
+
*/
|
|
106
|
+
export declare const updatePoolV1PoolsPoolIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdatePoolV1PoolsPoolIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PoolResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
107
|
+
/**
|
|
108
|
+
* Remove Machines From Pool
|
|
109
|
+
* Remove machines from a pool.
|
|
110
|
+
*/
|
|
111
|
+
export declare const removeMachinesFromPoolV1PoolsPoolIdMachinesDelete: <ThrowOnError extends boolean = false>(options: Options<RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
112
|
+
/**
|
|
113
|
+
* Add Machines To Pool
|
|
114
|
+
* Add machines to a pool.
|
|
115
|
+
*/
|
|
116
|
+
export declare const addMachinesToPoolV1PoolsPoolIdMachinesPost: <ThrowOnError extends boolean = false>(options: Options<AddMachinesToPoolV1PoolsPoolIdMachinesPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").PoolWithMachines, import("./types.gen").HttpValidationError, ThrowOnError>;
|
|
71
117
|
/**
|
|
72
118
|
* List Workflows
|
|
73
119
|
* List all workflows 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.rootGet = exports.dummyTestEndpointV1TestPost = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = void 0;
|
|
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;
|
|
6
6
|
const client_gen_1 = require("./client.gen");
|
|
7
7
|
/**
|
|
8
8
|
* Health Check
|
|
@@ -108,6 +108,133 @@ const updateMachineV1MachinesMachineIdPatch = (options) => {
|
|
|
108
108
|
], url: '/v1/machines/{machine_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
109
109
|
};
|
|
110
110
|
exports.updateMachineV1MachinesMachineIdPatch = updateMachineV1MachinesMachineIdPatch;
|
|
111
|
+
/**
|
|
112
|
+
* Get Machine Pools
|
|
113
|
+
* Get all pools that a machine belongs to.
|
|
114
|
+
*/
|
|
115
|
+
const getMachinePoolsV1MachinesMachineIdPoolsGet = (options) => {
|
|
116
|
+
var _a;
|
|
117
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
118
|
+
{
|
|
119
|
+
scheme: 'bearer',
|
|
120
|
+
type: 'http'
|
|
121
|
+
}
|
|
122
|
+
], url: '/v1/machines/{machine_id}/pools' }, options));
|
|
123
|
+
};
|
|
124
|
+
exports.getMachinePoolsV1MachinesMachineIdPoolsGet = getMachinePoolsV1MachinesMachineIdPoolsGet;
|
|
125
|
+
/**
|
|
126
|
+
* Update Machine Pools
|
|
127
|
+
* Update a machine's pool assignments.
|
|
128
|
+
* This replaces all existing pool assignments with the new ones.
|
|
129
|
+
*/
|
|
130
|
+
const updateMachinePoolsV1MachinesMachineIdPoolsPut = (options) => {
|
|
131
|
+
var _a;
|
|
132
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put(Object.assign(Object.assign({ security: [
|
|
133
|
+
{
|
|
134
|
+
scheme: 'bearer',
|
|
135
|
+
type: 'http'
|
|
136
|
+
}
|
|
137
|
+
], url: '/v1/machines/{machine_id}/pools' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
138
|
+
};
|
|
139
|
+
exports.updateMachinePoolsV1MachinesMachineIdPoolsPut = updateMachinePoolsV1MachinesMachineIdPoolsPut;
|
|
140
|
+
/**
|
|
141
|
+
* List Pools
|
|
142
|
+
* List all pools for the organization.
|
|
143
|
+
*/
|
|
144
|
+
const listPoolsV1PoolsGet = (options) => {
|
|
145
|
+
var _a;
|
|
146
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
147
|
+
{
|
|
148
|
+
scheme: 'bearer',
|
|
149
|
+
type: 'http'
|
|
150
|
+
}
|
|
151
|
+
], url: '/v1/pools' }, options));
|
|
152
|
+
};
|
|
153
|
+
exports.listPoolsV1PoolsGet = listPoolsV1PoolsGet;
|
|
154
|
+
/**
|
|
155
|
+
* Create Pool
|
|
156
|
+
* Create a new pool for organizing machines.
|
|
157
|
+
*/
|
|
158
|
+
const createPoolV1PoolsPost = (options) => {
|
|
159
|
+
var _a;
|
|
160
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
161
|
+
{
|
|
162
|
+
scheme: 'bearer',
|
|
163
|
+
type: 'http'
|
|
164
|
+
}
|
|
165
|
+
], url: '/v1/pools' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
166
|
+
};
|
|
167
|
+
exports.createPoolV1PoolsPost = createPoolV1PoolsPost;
|
|
168
|
+
/**
|
|
169
|
+
* Delete Pool
|
|
170
|
+
* Delete a pool. This will not delete the machines in the pool.
|
|
171
|
+
*/
|
|
172
|
+
const deletePoolV1PoolsPoolIdDelete = (options) => {
|
|
173
|
+
var _a;
|
|
174
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
|
|
175
|
+
{
|
|
176
|
+
scheme: 'bearer',
|
|
177
|
+
type: 'http'
|
|
178
|
+
}
|
|
179
|
+
], url: '/v1/pools/{pool_id}' }, options));
|
|
180
|
+
};
|
|
181
|
+
exports.deletePoolV1PoolsPoolIdDelete = deletePoolV1PoolsPoolIdDelete;
|
|
182
|
+
/**
|
|
183
|
+
* Get Pool
|
|
184
|
+
* Get a specific pool by ID.
|
|
185
|
+
*/
|
|
186
|
+
const getPoolV1PoolsPoolIdGet = (options) => {
|
|
187
|
+
var _a;
|
|
188
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
|
|
189
|
+
{
|
|
190
|
+
scheme: 'bearer',
|
|
191
|
+
type: 'http'
|
|
192
|
+
}
|
|
193
|
+
], url: '/v1/pools/{pool_id}' }, options));
|
|
194
|
+
};
|
|
195
|
+
exports.getPoolV1PoolsPoolIdGet = getPoolV1PoolsPoolIdGet;
|
|
196
|
+
/**
|
|
197
|
+
* Update Pool
|
|
198
|
+
* Update a pool's details.
|
|
199
|
+
*/
|
|
200
|
+
const updatePoolV1PoolsPoolIdPatch = (options) => {
|
|
201
|
+
var _a;
|
|
202
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).patch(Object.assign(Object.assign({ security: [
|
|
203
|
+
{
|
|
204
|
+
scheme: 'bearer',
|
|
205
|
+
type: 'http'
|
|
206
|
+
}
|
|
207
|
+
], url: '/v1/pools/{pool_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
208
|
+
};
|
|
209
|
+
exports.updatePoolV1PoolsPoolIdPatch = updatePoolV1PoolsPoolIdPatch;
|
|
210
|
+
/**
|
|
211
|
+
* Remove Machines From Pool
|
|
212
|
+
* Remove machines from a pool.
|
|
213
|
+
*/
|
|
214
|
+
const removeMachinesFromPoolV1PoolsPoolIdMachinesDelete = (options) => {
|
|
215
|
+
var _a;
|
|
216
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign(Object.assign({ security: [
|
|
217
|
+
{
|
|
218
|
+
scheme: 'bearer',
|
|
219
|
+
type: 'http'
|
|
220
|
+
}
|
|
221
|
+
], url: '/v1/pools/{pool_id}/machines' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
222
|
+
};
|
|
223
|
+
exports.removeMachinesFromPoolV1PoolsPoolIdMachinesDelete = removeMachinesFromPoolV1PoolsPoolIdMachinesDelete;
|
|
224
|
+
/**
|
|
225
|
+
* Add Machines To Pool
|
|
226
|
+
* Add machines to a pool.
|
|
227
|
+
*/
|
|
228
|
+
const addMachinesToPoolV1PoolsPoolIdMachinesPost = (options) => {
|
|
229
|
+
var _a;
|
|
230
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
|
|
231
|
+
{
|
|
232
|
+
scheme: 'bearer',
|
|
233
|
+
type: 'http'
|
|
234
|
+
}
|
|
235
|
+
], url: '/v1/pools/{pool_id}/machines' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
|
|
236
|
+
};
|
|
237
|
+
exports.addMachinesToPoolV1PoolsPoolIdMachinesPost = addMachinesToPoolV1PoolsPoolIdMachinesPost;
|
|
111
238
|
/**
|
|
112
239
|
* List Workflows
|
|
113
240
|
* List all workflows for the authenticated organization.
|
|
@@ -79,6 +79,24 @@ export type MachineCreate = {
|
|
|
79
79
|
os_info?: string | null;
|
|
80
80
|
unkey_key_id: string;
|
|
81
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Schema for assigning machines to pools
|
|
84
|
+
*/
|
|
85
|
+
export type MachinePoolAssignment = {
|
|
86
|
+
/**
|
|
87
|
+
* List of machine IDs to assign to the pool
|
|
88
|
+
*/
|
|
89
|
+
machine_ids: Array<string>;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Schema for updating a machine's pool assignments
|
|
93
|
+
*/
|
|
94
|
+
export type MachinePoolUpdate = {
|
|
95
|
+
/**
|
|
96
|
+
* List of pool IDs to assign the machine to
|
|
97
|
+
*/
|
|
98
|
+
pool_ids: Array<string>;
|
|
99
|
+
};
|
|
82
100
|
/**
|
|
83
101
|
* Machine response schema
|
|
84
102
|
*/
|
|
@@ -96,6 +114,7 @@ export type MachineResponse = {
|
|
|
96
114
|
is_available: boolean;
|
|
97
115
|
created_at: string;
|
|
98
116
|
last_seen: string;
|
|
117
|
+
pools?: Array<PoolResponse> | null;
|
|
99
118
|
};
|
|
100
119
|
export type MachineStatus = 'connected' | 'disconnected' | 'error';
|
|
101
120
|
/**
|
|
@@ -148,6 +167,12 @@ export type PaginatedResponseMachineResponse = {
|
|
|
148
167
|
skip: number;
|
|
149
168
|
limit: number;
|
|
150
169
|
};
|
|
170
|
+
export type PaginatedResponsePoolResponse = {
|
|
171
|
+
items: Array<PoolResponse>;
|
|
172
|
+
total: number;
|
|
173
|
+
skip: number;
|
|
174
|
+
limit: number;
|
|
175
|
+
};
|
|
151
176
|
export type PaginatedResponseRunAttachmentResponse = {
|
|
152
177
|
items: Array<RunAttachmentResponse>;
|
|
153
178
|
total: number;
|
|
@@ -172,6 +197,51 @@ export type PaginatedResponseWorkflowResponse = {
|
|
|
172
197
|
skip: number;
|
|
173
198
|
limit: number;
|
|
174
199
|
};
|
|
200
|
+
/**
|
|
201
|
+
* Schema for creating a pool
|
|
202
|
+
*/
|
|
203
|
+
export type PoolCreate = {
|
|
204
|
+
name: string;
|
|
205
|
+
description?: string | null;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Pool response schema
|
|
209
|
+
*/
|
|
210
|
+
export type PoolResponse = {
|
|
211
|
+
name: string;
|
|
212
|
+
description?: string | null;
|
|
213
|
+
id: string;
|
|
214
|
+
organization_id: string;
|
|
215
|
+
created_at: string;
|
|
216
|
+
updated_at: string;
|
|
217
|
+
/**
|
|
218
|
+
* Number of machines in this pool
|
|
219
|
+
*/
|
|
220
|
+
machine_count?: number | null;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Schema for updating a pool
|
|
224
|
+
*/
|
|
225
|
+
export type PoolUpdate = {
|
|
226
|
+
name?: string | null;
|
|
227
|
+
description?: string | null;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Pool response with machines included
|
|
231
|
+
*/
|
|
232
|
+
export type PoolWithMachines = {
|
|
233
|
+
name: string;
|
|
234
|
+
description?: string | null;
|
|
235
|
+
id: string;
|
|
236
|
+
organization_id: string;
|
|
237
|
+
created_at: string;
|
|
238
|
+
updated_at: string;
|
|
239
|
+
/**
|
|
240
|
+
* Number of machines in this pool
|
|
241
|
+
*/
|
|
242
|
+
machine_count?: number | null;
|
|
243
|
+
machines?: Array<MachineResponse>;
|
|
244
|
+
};
|
|
175
245
|
export type PowerShellExecRequest = {
|
|
176
246
|
/**
|
|
177
247
|
* PowerShell command to execute
|
|
@@ -304,6 +374,10 @@ export type RunBulkCreate = {
|
|
|
304
374
|
* Machine ID. If not provided, an available machine will be automatically selected.
|
|
305
375
|
*/
|
|
306
376
|
machine_id?: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* Pool IDs to filter available machines. Machine must belong to at least one of these pools.
|
|
379
|
+
*/
|
|
380
|
+
pool_ids?: Array<string> | null;
|
|
307
381
|
/**
|
|
308
382
|
* Input values for workflow variables
|
|
309
383
|
*/
|
|
@@ -336,6 +410,10 @@ export type RunCreate = {
|
|
|
336
410
|
* Machine ID. If not provided, an available machine will be automatically selected.
|
|
337
411
|
*/
|
|
338
412
|
machine_id?: string | null;
|
|
413
|
+
/**
|
|
414
|
+
* Pool IDs to filter available machines. Machine must belong to at least one of these pools.
|
|
415
|
+
*/
|
|
416
|
+
pool_ids?: Array<string> | null;
|
|
339
417
|
/**
|
|
340
418
|
* Input values for workflow variables
|
|
341
419
|
*/
|
|
@@ -369,6 +447,7 @@ export type RunResponse = {
|
|
|
369
447
|
input_values: {
|
|
370
448
|
[key: string]: unknown;
|
|
371
449
|
} | null;
|
|
450
|
+
pool_ids?: Array<string> | null;
|
|
372
451
|
created_at: string;
|
|
373
452
|
};
|
|
374
453
|
export type RunStatus = 'scheduling' | 'running' | 'success' | 'cancelled' | 'error';
|
|
@@ -646,6 +725,208 @@ export type UpdateMachineV1MachinesMachineIdPatchResponses = {
|
|
|
646
725
|
200: MachineResponse;
|
|
647
726
|
};
|
|
648
727
|
export type UpdateMachineV1MachinesMachineIdPatchResponse = UpdateMachineV1MachinesMachineIdPatchResponses[keyof UpdateMachineV1MachinesMachineIdPatchResponses];
|
|
728
|
+
export type GetMachinePoolsV1MachinesMachineIdPoolsGetData = {
|
|
729
|
+
body?: never;
|
|
730
|
+
path: {
|
|
731
|
+
machine_id: string;
|
|
732
|
+
};
|
|
733
|
+
query?: never;
|
|
734
|
+
url: '/v1/machines/{machine_id}/pools';
|
|
735
|
+
};
|
|
736
|
+
export type GetMachinePoolsV1MachinesMachineIdPoolsGetErrors = {
|
|
737
|
+
/**
|
|
738
|
+
* Validation Error
|
|
739
|
+
*/
|
|
740
|
+
422: HttpValidationError;
|
|
741
|
+
};
|
|
742
|
+
export type GetMachinePoolsV1MachinesMachineIdPoolsGetError = GetMachinePoolsV1MachinesMachineIdPoolsGetErrors[keyof GetMachinePoolsV1MachinesMachineIdPoolsGetErrors];
|
|
743
|
+
export type GetMachinePoolsV1MachinesMachineIdPoolsGetResponses = {
|
|
744
|
+
/**
|
|
745
|
+
* Successful Response
|
|
746
|
+
*/
|
|
747
|
+
200: Array<PoolResponse>;
|
|
748
|
+
};
|
|
749
|
+
export type GetMachinePoolsV1MachinesMachineIdPoolsGetResponse = GetMachinePoolsV1MachinesMachineIdPoolsGetResponses[keyof GetMachinePoolsV1MachinesMachineIdPoolsGetResponses];
|
|
750
|
+
export type UpdateMachinePoolsV1MachinesMachineIdPoolsPutData = {
|
|
751
|
+
body: MachinePoolUpdate;
|
|
752
|
+
path: {
|
|
753
|
+
machine_id: string;
|
|
754
|
+
};
|
|
755
|
+
query?: never;
|
|
756
|
+
url: '/v1/machines/{machine_id}/pools';
|
|
757
|
+
};
|
|
758
|
+
export type UpdateMachinePoolsV1MachinesMachineIdPoolsPutErrors = {
|
|
759
|
+
/**
|
|
760
|
+
* Validation Error
|
|
761
|
+
*/
|
|
762
|
+
422: HttpValidationError;
|
|
763
|
+
};
|
|
764
|
+
export type UpdateMachinePoolsV1MachinesMachineIdPoolsPutError = UpdateMachinePoolsV1MachinesMachineIdPoolsPutErrors[keyof UpdateMachinePoolsV1MachinesMachineIdPoolsPutErrors];
|
|
765
|
+
export type UpdateMachinePoolsV1MachinesMachineIdPoolsPutResponses = {
|
|
766
|
+
/**
|
|
767
|
+
* Successful Response
|
|
768
|
+
*/
|
|
769
|
+
200: MachineResponse;
|
|
770
|
+
};
|
|
771
|
+
export type UpdateMachinePoolsV1MachinesMachineIdPoolsPutResponse = UpdateMachinePoolsV1MachinesMachineIdPoolsPutResponses[keyof UpdateMachinePoolsV1MachinesMachineIdPoolsPutResponses];
|
|
772
|
+
export type ListPoolsV1PoolsGetData = {
|
|
773
|
+
body?: never;
|
|
774
|
+
path?: never;
|
|
775
|
+
query?: {
|
|
776
|
+
skip?: number;
|
|
777
|
+
limit?: number;
|
|
778
|
+
};
|
|
779
|
+
url: '/v1/pools';
|
|
780
|
+
};
|
|
781
|
+
export type ListPoolsV1PoolsGetErrors = {
|
|
782
|
+
/**
|
|
783
|
+
* Validation Error
|
|
784
|
+
*/
|
|
785
|
+
422: HttpValidationError;
|
|
786
|
+
};
|
|
787
|
+
export type ListPoolsV1PoolsGetError = ListPoolsV1PoolsGetErrors[keyof ListPoolsV1PoolsGetErrors];
|
|
788
|
+
export type ListPoolsV1PoolsGetResponses = {
|
|
789
|
+
/**
|
|
790
|
+
* Successful Response
|
|
791
|
+
*/
|
|
792
|
+
200: PaginatedResponsePoolResponse;
|
|
793
|
+
};
|
|
794
|
+
export type ListPoolsV1PoolsGetResponse = ListPoolsV1PoolsGetResponses[keyof ListPoolsV1PoolsGetResponses];
|
|
795
|
+
export type CreatePoolV1PoolsPostData = {
|
|
796
|
+
body: PoolCreate;
|
|
797
|
+
path?: never;
|
|
798
|
+
query?: never;
|
|
799
|
+
url: '/v1/pools';
|
|
800
|
+
};
|
|
801
|
+
export type CreatePoolV1PoolsPostErrors = {
|
|
802
|
+
/**
|
|
803
|
+
* Validation Error
|
|
804
|
+
*/
|
|
805
|
+
422: HttpValidationError;
|
|
806
|
+
};
|
|
807
|
+
export type CreatePoolV1PoolsPostError = CreatePoolV1PoolsPostErrors[keyof CreatePoolV1PoolsPostErrors];
|
|
808
|
+
export type CreatePoolV1PoolsPostResponses = {
|
|
809
|
+
/**
|
|
810
|
+
* Successful Response
|
|
811
|
+
*/
|
|
812
|
+
201: PoolResponse;
|
|
813
|
+
};
|
|
814
|
+
export type CreatePoolV1PoolsPostResponse = CreatePoolV1PoolsPostResponses[keyof CreatePoolV1PoolsPostResponses];
|
|
815
|
+
export type DeletePoolV1PoolsPoolIdDeleteData = {
|
|
816
|
+
body?: never;
|
|
817
|
+
path: {
|
|
818
|
+
pool_id: string;
|
|
819
|
+
};
|
|
820
|
+
query?: never;
|
|
821
|
+
url: '/v1/pools/{pool_id}';
|
|
822
|
+
};
|
|
823
|
+
export type DeletePoolV1PoolsPoolIdDeleteErrors = {
|
|
824
|
+
/**
|
|
825
|
+
* Validation Error
|
|
826
|
+
*/
|
|
827
|
+
422: HttpValidationError;
|
|
828
|
+
};
|
|
829
|
+
export type DeletePoolV1PoolsPoolIdDeleteError = DeletePoolV1PoolsPoolIdDeleteErrors[keyof DeletePoolV1PoolsPoolIdDeleteErrors];
|
|
830
|
+
export type DeletePoolV1PoolsPoolIdDeleteResponses = {
|
|
831
|
+
/**
|
|
832
|
+
* Successful Response
|
|
833
|
+
*/
|
|
834
|
+
204: void;
|
|
835
|
+
};
|
|
836
|
+
export type DeletePoolV1PoolsPoolIdDeleteResponse = DeletePoolV1PoolsPoolIdDeleteResponses[keyof DeletePoolV1PoolsPoolIdDeleteResponses];
|
|
837
|
+
export type GetPoolV1PoolsPoolIdGetData = {
|
|
838
|
+
body?: never;
|
|
839
|
+
path: {
|
|
840
|
+
pool_id: string;
|
|
841
|
+
};
|
|
842
|
+
query?: {
|
|
843
|
+
/**
|
|
844
|
+
* Include full machine details
|
|
845
|
+
*/
|
|
846
|
+
include_machines?: boolean;
|
|
847
|
+
};
|
|
848
|
+
url: '/v1/pools/{pool_id}';
|
|
849
|
+
};
|
|
850
|
+
export type GetPoolV1PoolsPoolIdGetErrors = {
|
|
851
|
+
/**
|
|
852
|
+
* Validation Error
|
|
853
|
+
*/
|
|
854
|
+
422: HttpValidationError;
|
|
855
|
+
};
|
|
856
|
+
export type GetPoolV1PoolsPoolIdGetError = GetPoolV1PoolsPoolIdGetErrors[keyof GetPoolV1PoolsPoolIdGetErrors];
|
|
857
|
+
export type GetPoolV1PoolsPoolIdGetResponses = {
|
|
858
|
+
/**
|
|
859
|
+
* Successful Response
|
|
860
|
+
*/
|
|
861
|
+
200: PoolWithMachines;
|
|
862
|
+
};
|
|
863
|
+
export type GetPoolV1PoolsPoolIdGetResponse = GetPoolV1PoolsPoolIdGetResponses[keyof GetPoolV1PoolsPoolIdGetResponses];
|
|
864
|
+
export type UpdatePoolV1PoolsPoolIdPatchData = {
|
|
865
|
+
body: PoolUpdate;
|
|
866
|
+
path: {
|
|
867
|
+
pool_id: string;
|
|
868
|
+
};
|
|
869
|
+
query?: never;
|
|
870
|
+
url: '/v1/pools/{pool_id}';
|
|
871
|
+
};
|
|
872
|
+
export type UpdatePoolV1PoolsPoolIdPatchErrors = {
|
|
873
|
+
/**
|
|
874
|
+
* Validation Error
|
|
875
|
+
*/
|
|
876
|
+
422: HttpValidationError;
|
|
877
|
+
};
|
|
878
|
+
export type UpdatePoolV1PoolsPoolIdPatchError = UpdatePoolV1PoolsPoolIdPatchErrors[keyof UpdatePoolV1PoolsPoolIdPatchErrors];
|
|
879
|
+
export type UpdatePoolV1PoolsPoolIdPatchResponses = {
|
|
880
|
+
/**
|
|
881
|
+
* Successful Response
|
|
882
|
+
*/
|
|
883
|
+
200: PoolResponse;
|
|
884
|
+
};
|
|
885
|
+
export type UpdatePoolV1PoolsPoolIdPatchResponse = UpdatePoolV1PoolsPoolIdPatchResponses[keyof UpdatePoolV1PoolsPoolIdPatchResponses];
|
|
886
|
+
export type RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteData = {
|
|
887
|
+
body: MachinePoolAssignment;
|
|
888
|
+
path: {
|
|
889
|
+
pool_id: string;
|
|
890
|
+
};
|
|
891
|
+
query?: never;
|
|
892
|
+
url: '/v1/pools/{pool_id}/machines';
|
|
893
|
+
};
|
|
894
|
+
export type RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteErrors = {
|
|
895
|
+
/**
|
|
896
|
+
* Validation Error
|
|
897
|
+
*/
|
|
898
|
+
422: HttpValidationError;
|
|
899
|
+
};
|
|
900
|
+
export type RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteError = RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteErrors[keyof RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteErrors];
|
|
901
|
+
export type RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteResponses = {
|
|
902
|
+
/**
|
|
903
|
+
* Successful Response
|
|
904
|
+
*/
|
|
905
|
+
204: void;
|
|
906
|
+
};
|
|
907
|
+
export type RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteResponse = RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteResponses[keyof RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteResponses];
|
|
908
|
+
export type AddMachinesToPoolV1PoolsPoolIdMachinesPostData = {
|
|
909
|
+
body: MachinePoolAssignment;
|
|
910
|
+
path: {
|
|
911
|
+
pool_id: string;
|
|
912
|
+
};
|
|
913
|
+
query?: never;
|
|
914
|
+
url: '/v1/pools/{pool_id}/machines';
|
|
915
|
+
};
|
|
916
|
+
export type AddMachinesToPoolV1PoolsPoolIdMachinesPostErrors = {
|
|
917
|
+
/**
|
|
918
|
+
* Validation Error
|
|
919
|
+
*/
|
|
920
|
+
422: HttpValidationError;
|
|
921
|
+
};
|
|
922
|
+
export type AddMachinesToPoolV1PoolsPoolIdMachinesPostError = AddMachinesToPoolV1PoolsPoolIdMachinesPostErrors[keyof AddMachinesToPoolV1PoolsPoolIdMachinesPostErrors];
|
|
923
|
+
export type AddMachinesToPoolV1PoolsPoolIdMachinesPostResponses = {
|
|
924
|
+
/**
|
|
925
|
+
* Successful Response
|
|
926
|
+
*/
|
|
927
|
+
200: PoolWithMachines;
|
|
928
|
+
};
|
|
929
|
+
export type AddMachinesToPoolV1PoolsPoolIdMachinesPostResponse = AddMachinesToPoolV1PoolsPoolIdMachinesPostResponses[keyof AddMachinesToPoolV1PoolsPoolIdMachinesPostResponses];
|
|
649
930
|
export type ListWorkflowsV1WorkflowsGetData = {
|
|
650
931
|
body?: never;
|
|
651
932
|
path?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
import { type MachineResponse, type WorkflowResponse, type RunResponse, type ConnectionResponse, type TrajectoryResponse, type PaginatedResponseMachineResponse, 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 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 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';
|
|
29
29
|
export * from './client/types.gen';
|
|
30
30
|
export * from './client/sdk.gen';
|
|
31
31
|
export * from './client/client.gen';
|
|
@@ -107,6 +107,144 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
107
107
|
request: Request;
|
|
108
108
|
response: Response;
|
|
109
109
|
}>;
|
|
110
|
+
/**
|
|
111
|
+
* Get all pools that a machine belongs to
|
|
112
|
+
*
|
|
113
|
+
* @param machineId - The ID of the machine
|
|
114
|
+
* @returns List of pools the machine belongs to
|
|
115
|
+
*/
|
|
116
|
+
getPools: (machineId: string) => Promise<{
|
|
117
|
+
data?: PoolResponse[];
|
|
118
|
+
error?: any;
|
|
119
|
+
}>;
|
|
120
|
+
/**
|
|
121
|
+
* Update a machine's pool assignments
|
|
122
|
+
*
|
|
123
|
+
* This replaces all existing pool assignments with the new ones.
|
|
124
|
+
*
|
|
125
|
+
* @param machineId - The ID of the machine
|
|
126
|
+
* @param data - MachinePoolUpdate with pool_ids list
|
|
127
|
+
* @returns Updated machine details
|
|
128
|
+
*/
|
|
129
|
+
updatePools: (machineId: string, data: MachinePoolUpdate) => Promise<{
|
|
130
|
+
data?: MachineResponse;
|
|
131
|
+
error?: any;
|
|
132
|
+
}>;
|
|
133
|
+
};
|
|
134
|
+
pools: {
|
|
135
|
+
/**
|
|
136
|
+
* List pools for the organization
|
|
137
|
+
*
|
|
138
|
+
* @param params - Optional query parameters
|
|
139
|
+
* @param params.skip - Number of items to skip (for pagination)
|
|
140
|
+
* @param params.limit - Maximum number of items to return
|
|
141
|
+
* @returns Paginated list of pools
|
|
142
|
+
*/
|
|
143
|
+
list: (params?: {
|
|
144
|
+
skip?: number;
|
|
145
|
+
limit?: number;
|
|
146
|
+
}) => Promise<{
|
|
147
|
+
data?: PaginatedResponsePoolResponse;
|
|
148
|
+
error?: any;
|
|
149
|
+
}>;
|
|
150
|
+
/**
|
|
151
|
+
* Create a new pool
|
|
152
|
+
*
|
|
153
|
+
* @param data - Pool configuration
|
|
154
|
+
* @returns Created pool details
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```typescript
|
|
158
|
+
* const pool = await client.pools.create({
|
|
159
|
+
* name: 'Customer A',
|
|
160
|
+
* description: 'All Customer A machines'
|
|
161
|
+
* });
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
create: (data: PoolCreate) => Promise<{
|
|
165
|
+
data?: PoolResponse;
|
|
166
|
+
error?: any;
|
|
167
|
+
}>;
|
|
168
|
+
/**
|
|
169
|
+
* Get a specific pool by ID
|
|
170
|
+
*
|
|
171
|
+
* @param poolId - The ID of the pool
|
|
172
|
+
* @param includeMachines - Whether to include full machine details
|
|
173
|
+
* @returns Pool details, optionally with machine list
|
|
174
|
+
*/
|
|
175
|
+
get: (poolId: string, includeMachines?: boolean) => Promise<{
|
|
176
|
+
data?: PoolResponse | PoolWithMachines;
|
|
177
|
+
error?: any;
|
|
178
|
+
}>;
|
|
179
|
+
/**
|
|
180
|
+
* Update a pool's details
|
|
181
|
+
*
|
|
182
|
+
* @param poolId - The ID of the pool to update
|
|
183
|
+
* @param data - Update data (name, description)
|
|
184
|
+
* @returns Updated pool details
|
|
185
|
+
*/
|
|
186
|
+
update: (poolId: string, data: PoolUpdate) => Promise<{
|
|
187
|
+
data?: PoolResponse;
|
|
188
|
+
error?: any;
|
|
189
|
+
}>;
|
|
190
|
+
/**
|
|
191
|
+
* Delete a pool
|
|
192
|
+
*
|
|
193
|
+
* This will not delete the machines in the pool.
|
|
194
|
+
*
|
|
195
|
+
* @param poolId - The ID of the pool to delete
|
|
196
|
+
*/
|
|
197
|
+
delete: (poolId: string) => Promise<({
|
|
198
|
+
data: undefined;
|
|
199
|
+
error: import("./client/types.gen").HttpValidationError;
|
|
200
|
+
} | {
|
|
201
|
+
data: void;
|
|
202
|
+
error: undefined;
|
|
203
|
+
}) & {
|
|
204
|
+
request: Request;
|
|
205
|
+
response: Response;
|
|
206
|
+
}>;
|
|
207
|
+
/**
|
|
208
|
+
* Add machines to a pool
|
|
209
|
+
*
|
|
210
|
+
* @param poolId - The ID of the pool
|
|
211
|
+
* @param data - MachinePoolAssignment with machine_ids list
|
|
212
|
+
* @returns Pool with updated machine list
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```typescript
|
|
216
|
+
* await client.pools.addMachines('pool-id', {
|
|
217
|
+
* machine_ids: ['machine1-id', 'machine2-id']
|
|
218
|
+
* });
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
addMachines: (poolId: string, data: MachinePoolAssignment) => Promise<{
|
|
222
|
+
data?: PoolWithMachines;
|
|
223
|
+
error?: any;
|
|
224
|
+
}>;
|
|
225
|
+
/**
|
|
226
|
+
* Remove machines from a pool
|
|
227
|
+
*
|
|
228
|
+
* @param poolId - The ID of the pool
|
|
229
|
+
* @param data - MachinePoolAssignment with machine_ids list
|
|
230
|
+
*
|
|
231
|
+
* @example
|
|
232
|
+
* ```typescript
|
|
233
|
+
* await client.pools.removeMachines('pool-id', {
|
|
234
|
+
* machine_ids: ['machine1-id']
|
|
235
|
+
* });
|
|
236
|
+
* ```
|
|
237
|
+
*/
|
|
238
|
+
removeMachines: (poolId: string, data: MachinePoolAssignment) => Promise<({
|
|
239
|
+
data: undefined;
|
|
240
|
+
error: import("./client/types.gen").HttpValidationError;
|
|
241
|
+
} | {
|
|
242
|
+
data: void;
|
|
243
|
+
error: undefined;
|
|
244
|
+
}) & {
|
|
245
|
+
request: Request;
|
|
246
|
+
response: Response;
|
|
247
|
+
}>;
|
|
110
248
|
};
|
|
111
249
|
workflows: {
|
|
112
250
|
/**
|
|
@@ -208,6 +346,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
208
346
|
* @param data - Run configuration
|
|
209
347
|
* @param data.workflow_id - The workflow to run
|
|
210
348
|
* @param data.machine_id - Optional machine ID (auto-selected if not provided)
|
|
349
|
+
* @param data.pool_ids - Optional list of pool IDs (machine must be in ALL specified pools)
|
|
211
350
|
* @param data.input_values - Optional input values for workflow variables
|
|
212
351
|
* @param data.file_inputs - Optional files to upload to the machine
|
|
213
352
|
* @returns Created run details
|
|
@@ -216,6 +355,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
216
355
|
* ```typescript
|
|
217
356
|
* const run = await client.runs.create({
|
|
218
357
|
* workflow_id: 'workflow-id',
|
|
358
|
+
* pool_ids: ['pool1-id', 'pool2-id'], // Machine must be in both pools
|
|
219
359
|
* input_values: { prompt: 'Hello' },
|
|
220
360
|
* file_inputs: [{
|
|
221
361
|
* filename: 'data.txt',
|
|
@@ -242,6 +382,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
242
382
|
* @param data.count - Number of runs to create (1-1000)
|
|
243
383
|
* @param data.workflow_id - The workflow to run
|
|
244
384
|
* @param data.machine_id - Optional machine ID (auto-selected if not provided)
|
|
385
|
+
* @param data.pool_ids - Optional list of pool IDs (machine must be in ALL specified pools)
|
|
245
386
|
* @param data.input_values - Optional input values for workflow variables
|
|
246
387
|
* @param data.file_inputs - Optional files to upload to the machine
|
|
247
388
|
* @returns Details about created runs and any failures
|
|
@@ -251,6 +392,7 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
251
392
|
* const result = await client.runs.bulkCreate({
|
|
252
393
|
* count: 100,
|
|
253
394
|
* workflow_id: 'workflow-id',
|
|
395
|
+
* pool_ids: ['pool1-id'], // All runs require machines in this pool
|
|
254
396
|
* input_values: { prompt: 'Bulk task' },
|
|
255
397
|
* file_inputs: [{
|
|
256
398
|
* filename: 'data.txt',
|
|
@@ -534,4 +676,4 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
534
676
|
}>;
|
|
535
677
|
};
|
|
536
678
|
};
|
|
537
|
-
export type { MachineResponse, WorkflowResponse, RunResponse, RunBulkCreate, RunBulkCreateResponse, ConnectionResponse, TrajectoryResponse, RunAttachmentResponse, RunAttachmentDownloadUrlResponse, FileInput, AttachmentType, PaginatedResponseMachineResponse, PaginatedResponseWorkflowResponse, PaginatedResponseRunResponse, PaginatedResponseConnectionResponse, PaginatedResponseTrajectoryResponse, PaginatedResponseRunAttachmentResponse, };
|
|
679
|
+
export type { MachineResponse, MachinePoolUpdate, PoolResponse, PoolCreate, PoolUpdate, PoolWithMachines, MachinePoolAssignment, WorkflowResponse, RunResponse, RunBulkCreate, RunBulkCreateResponse, ConnectionResponse, TrajectoryResponse, RunAttachmentResponse, RunAttachmentDownloadUrlResponse, FileInput, AttachmentType, PaginatedResponseMachineResponse, PaginatedResponsePoolResponse, PaginatedResponseWorkflowResponse, PaginatedResponseRunResponse, PaginatedResponseConnectionResponse, PaginatedResponseTrajectoryResponse, PaginatedResponseRunAttachmentResponse, };
|
package/dist/index.js
CHANGED
|
@@ -161,6 +161,153 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
161
161
|
path: { machine_id: machineId },
|
|
162
162
|
});
|
|
163
163
|
}),
|
|
164
|
+
/**
|
|
165
|
+
* Get all pools that a machine belongs to
|
|
166
|
+
*
|
|
167
|
+
* @param machineId - The ID of the machine
|
|
168
|
+
* @returns List of pools the machine belongs to
|
|
169
|
+
*/
|
|
170
|
+
getPools: (machineId) => __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
return (0, sdk_gen_1.getMachinePoolsV1MachinesMachineIdPoolsGet)({
|
|
172
|
+
client,
|
|
173
|
+
path: { machine_id: machineId },
|
|
174
|
+
});
|
|
175
|
+
}),
|
|
176
|
+
/**
|
|
177
|
+
* Update a machine's pool assignments
|
|
178
|
+
*
|
|
179
|
+
* This replaces all existing pool assignments with the new ones.
|
|
180
|
+
*
|
|
181
|
+
* @param machineId - The ID of the machine
|
|
182
|
+
* @param data - MachinePoolUpdate with pool_ids list
|
|
183
|
+
* @returns Updated machine details
|
|
184
|
+
*/
|
|
185
|
+
updatePools: (machineId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
return (0, sdk_gen_1.updateMachinePoolsV1MachinesMachineIdPoolsPut)({
|
|
187
|
+
client,
|
|
188
|
+
path: { machine_id: machineId },
|
|
189
|
+
body: data,
|
|
190
|
+
});
|
|
191
|
+
}),
|
|
192
|
+
},
|
|
193
|
+
// Pool endpoints
|
|
194
|
+
pools: {
|
|
195
|
+
/**
|
|
196
|
+
* List pools for the organization
|
|
197
|
+
*
|
|
198
|
+
* @param params - Optional query parameters
|
|
199
|
+
* @param params.skip - Number of items to skip (for pagination)
|
|
200
|
+
* @param params.limit - Maximum number of items to return
|
|
201
|
+
* @returns Paginated list of pools
|
|
202
|
+
*/
|
|
203
|
+
list: (params) => __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
return (0, sdk_gen_1.listPoolsV1PoolsGet)({
|
|
205
|
+
client,
|
|
206
|
+
query: params,
|
|
207
|
+
});
|
|
208
|
+
}),
|
|
209
|
+
/**
|
|
210
|
+
* Create a new pool
|
|
211
|
+
*
|
|
212
|
+
* @param data - Pool configuration
|
|
213
|
+
* @returns Created pool details
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```typescript
|
|
217
|
+
* const pool = await client.pools.create({
|
|
218
|
+
* name: 'Customer A',
|
|
219
|
+
* description: 'All Customer A machines'
|
|
220
|
+
* });
|
|
221
|
+
* ```
|
|
222
|
+
*/
|
|
223
|
+
create: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
return (0, sdk_gen_1.createPoolV1PoolsPost)({
|
|
225
|
+
client,
|
|
226
|
+
body: data,
|
|
227
|
+
});
|
|
228
|
+
}),
|
|
229
|
+
/**
|
|
230
|
+
* Get a specific pool by ID
|
|
231
|
+
*
|
|
232
|
+
* @param poolId - The ID of the pool
|
|
233
|
+
* @param includeMachines - Whether to include full machine details
|
|
234
|
+
* @returns Pool details, optionally with machine list
|
|
235
|
+
*/
|
|
236
|
+
get: (poolId, includeMachines) => __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
return (0, sdk_gen_1.getPoolV1PoolsPoolIdGet)({
|
|
238
|
+
client,
|
|
239
|
+
path: { pool_id: poolId },
|
|
240
|
+
query: includeMachines ? { include_machines: includeMachines } : undefined,
|
|
241
|
+
});
|
|
242
|
+
}),
|
|
243
|
+
/**
|
|
244
|
+
* Update a pool's details
|
|
245
|
+
*
|
|
246
|
+
* @param poolId - The ID of the pool to update
|
|
247
|
+
* @param data - Update data (name, description)
|
|
248
|
+
* @returns Updated pool details
|
|
249
|
+
*/
|
|
250
|
+
update: (poolId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
return (0, sdk_gen_1.updatePoolV1PoolsPoolIdPatch)({
|
|
252
|
+
client,
|
|
253
|
+
path: { pool_id: poolId },
|
|
254
|
+
body: data,
|
|
255
|
+
});
|
|
256
|
+
}),
|
|
257
|
+
/**
|
|
258
|
+
* Delete a pool
|
|
259
|
+
*
|
|
260
|
+
* This will not delete the machines in the pool.
|
|
261
|
+
*
|
|
262
|
+
* @param poolId - The ID of the pool to delete
|
|
263
|
+
*/
|
|
264
|
+
delete: (poolId) => __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
return (0, sdk_gen_1.deletePoolV1PoolsPoolIdDelete)({
|
|
266
|
+
client,
|
|
267
|
+
path: { pool_id: poolId },
|
|
268
|
+
});
|
|
269
|
+
}),
|
|
270
|
+
/**
|
|
271
|
+
* Add machines to a pool
|
|
272
|
+
*
|
|
273
|
+
* @param poolId - The ID of the pool
|
|
274
|
+
* @param data - MachinePoolAssignment with machine_ids list
|
|
275
|
+
* @returns Pool with updated machine list
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```typescript
|
|
279
|
+
* await client.pools.addMachines('pool-id', {
|
|
280
|
+
* machine_ids: ['machine1-id', 'machine2-id']
|
|
281
|
+
* });
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
addMachines: (poolId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
285
|
+
return (0, sdk_gen_1.addMachinesToPoolV1PoolsPoolIdMachinesPost)({
|
|
286
|
+
client,
|
|
287
|
+
path: { pool_id: poolId },
|
|
288
|
+
body: data,
|
|
289
|
+
});
|
|
290
|
+
}),
|
|
291
|
+
/**
|
|
292
|
+
* Remove machines from a pool
|
|
293
|
+
*
|
|
294
|
+
* @param poolId - The ID of the pool
|
|
295
|
+
* @param data - MachinePoolAssignment with machine_ids list
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* ```typescript
|
|
299
|
+
* await client.pools.removeMachines('pool-id', {
|
|
300
|
+
* machine_ids: ['machine1-id']
|
|
301
|
+
* });
|
|
302
|
+
* ```
|
|
303
|
+
*/
|
|
304
|
+
removeMachines: (poolId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
return (0, sdk_gen_1.removeMachinesFromPoolV1PoolsPoolIdMachinesDelete)({
|
|
306
|
+
client,
|
|
307
|
+
path: { pool_id: poolId },
|
|
308
|
+
body: data,
|
|
309
|
+
});
|
|
310
|
+
}),
|
|
164
311
|
},
|
|
165
312
|
// Workflow endpoints
|
|
166
313
|
workflows: {
|
|
@@ -262,6 +409,7 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
262
409
|
* @param data - Run configuration
|
|
263
410
|
* @param data.workflow_id - The workflow to run
|
|
264
411
|
* @param data.machine_id - Optional machine ID (auto-selected if not provided)
|
|
412
|
+
* @param data.pool_ids - Optional list of pool IDs (machine must be in ALL specified pools)
|
|
265
413
|
* @param data.input_values - Optional input values for workflow variables
|
|
266
414
|
* @param data.file_inputs - Optional files to upload to the machine
|
|
267
415
|
* @returns Created run details
|
|
@@ -270,6 +418,7 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
270
418
|
* ```typescript
|
|
271
419
|
* const run = await client.runs.create({
|
|
272
420
|
* workflow_id: 'workflow-id',
|
|
421
|
+
* pool_ids: ['pool1-id', 'pool2-id'], // Machine must be in both pools
|
|
273
422
|
* input_values: { prompt: 'Hello' },
|
|
274
423
|
* file_inputs: [{
|
|
275
424
|
* filename: 'data.txt',
|
|
@@ -298,6 +447,7 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
298
447
|
* @param data.count - Number of runs to create (1-1000)
|
|
299
448
|
* @param data.workflow_id - The workflow to run
|
|
300
449
|
* @param data.machine_id - Optional machine ID (auto-selected if not provided)
|
|
450
|
+
* @param data.pool_ids - Optional list of pool IDs (machine must be in ALL specified pools)
|
|
301
451
|
* @param data.input_values - Optional input values for workflow variables
|
|
302
452
|
* @param data.file_inputs - Optional files to upload to the machine
|
|
303
453
|
* @returns Details about created runs and any failures
|
|
@@ -307,6 +457,7 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
307
457
|
* const result = await client.runs.bulkCreate({
|
|
308
458
|
* count: 100,
|
|
309
459
|
* workflow_id: 'workflow-id',
|
|
460
|
+
* pool_ids: ['pool1-id'], // All runs require machines in this pool
|
|
310
461
|
* input_values: { prompt: 'Bulk task' },
|
|
311
462
|
* file_inputs: [{
|
|
312
463
|
* filename: 'data.txt',
|