cyberdesk 2.2.8 → 2.2.10

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.
@@ -1,5 +1,5 @@
1
1
  import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
2
- import type { HealthCheckV1HealthGetData, DatabaseHealthCheckV1HealthDbGetData, ListMachinesV1MachinesGetData, CreateMachineV1MachinesPostData, DeleteMachineV1MachinesMachineIdDeleteData, GetMachineV1MachinesMachineIdGetData, UpdateMachineV1MachinesMachineIdPatchData, GetMachinePoolsV1MachinesMachineIdPoolsGetData, UpdateMachinePoolsV1MachinesMachineIdPoolsPutData, ListPoolsV1PoolsGetData, CreatePoolV1PoolsPostData, DeletePoolV1PoolsPoolIdDeleteData, GetPoolV1PoolsPoolIdGetData, UpdatePoolV1PoolsPoolIdPatchData, RemoveMachinesFromPoolV1PoolsPoolIdMachinesDeleteData, AddMachinesToPoolV1PoolsPoolIdMachinesPostData, ListWorkflowsV1WorkflowsGetData, CreateWorkflowV1WorkflowsPostData, DeleteWorkflowV1WorkflowsWorkflowIdDeleteData, GetWorkflowV1WorkflowsWorkflowIdGetData, UpdateWorkflowV1WorkflowsWorkflowIdPatchData, GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, ListRunsV1RunsGetData, CreateRunV1RunsPostData, DeleteRunV1RunsRunIdDeleteData, GetRunV1RunsRunIdGetData, UpdateRunV1RunsRunIdPatchData, CreateRunChainV1RunsChainPostData, BulkCreateRunsV1RunsBulkPostData, RetryRunV1RunsRunIdRetryPostData, ListRunAttachmentsV1RunAttachmentsGetData, CreateRunAttachmentV1RunAttachmentsPostData, DeleteRunAttachmentV1RunAttachmentsAttachmentIdDeleteData, GetRunAttachmentV1RunAttachmentsAttachmentIdGetData, UpdateRunAttachmentV1RunAttachmentsAttachmentIdPutData, GetRunAttachmentDownloadUrlV1RunAttachmentsAttachmentIdDownloadUrlGetData, DownloadRunAttachmentV1RunAttachmentsAttachmentIdDownloadGetData, ListConnectionsV1ConnectionsGetData, CreateConnectionV1ConnectionsPostData, DeleteConnectionV1ConnectionsConnectionIdDeleteData, GetConnectionV1ConnectionsConnectionIdGetData, UpdateConnectionV1ConnectionsConnectionIdPatchData, ListRequestLogsV1RequestLogsGetData, CreateRequestLogV1RequestLogsPostData, DeleteRequestLogV1RequestLogsLogIdDeleteData, GetRequestLogV1RequestLogsLogIdGetData, UpdateRequestLogV1RequestLogsLogIdPatchData, ListTrajectoriesV1TrajectoriesGetData, CreateTrajectoryV1TrajectoriesPostData, DeleteTrajectoryV1TrajectoriesTrajectoryIdDeleteData, GetTrajectoryV1TrajectoriesTrajectoryIdGetData, UpdateTrajectoryV1TrajectoriesTrajectoryIdPatchData, GetLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGetData, GetScreenshotV1ComputerMachineIdDisplayScreenshotGetData, GetDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGetData, KeyboardTypeV1ComputerMachineIdInputKeyboardTypePostData, KeyboardKeyV1ComputerMachineIdInputKeyboardKeyPostData, CopyToClipboardV1ComputerMachineIdCopyToClipboardPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, MouseScrollV1ComputerMachineIdInputMouseScrollPostData, MouseDragV1ComputerMachineIdInputMouseDragPostData, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, DummyTestEndpointV1TestPostData, DbPingInternalDebugDbPingGetData, RootGetData, HealthLiveHealthLiveGetData, HealthReadyHealthReadyGetData, 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, ListModelConfigurationsV1ModelConfigurationsGetData, CreateModelConfigurationV1ModelConfigurationsPostData, DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteData, GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetData, UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchData, 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, CopyToClipboardV1ComputerMachineIdCopyToClipboardPostData, GetMousePositionV1ComputerMachineIdInputMousePositionGetData, MouseMoveV1ComputerMachineIdInputMouseMovePostData, MouseClickV1ComputerMachineIdInputMouseClickPostData, MouseScrollV1ComputerMachineIdInputMouseScrollPostData, MouseDragV1ComputerMachineIdInputMouseDragPostData, FsListV1ComputerMachineIdFsListGetData, FsReadV1ComputerMachineIdFsReadGetData, FsWriteV1ComputerMachineIdFsWritePostData, PowershellExecV1ComputerMachineIdShellPowershellExecPostData, PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, DbPingInternalDebugDbPingGetData, RootGetData, HealthLiveHealthLiveGetData, HealthReadyHealthReadyGetData, 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
@@ -166,6 +166,26 @@ export declare const updateWorkflowV1WorkflowsWorkflowIdPatch: <ThrowOnError ext
166
166
  export declare const getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet: <ThrowOnError extends boolean = false>(options: Options<GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
167
167
  [key: string]: unknown;
168
168
  }[], import("./types.gen").HttpValidationError, ThrowOnError>;
169
+ /**
170
+ * List Model Configurations
171
+ */
172
+ export declare const listModelConfigurationsV1ModelConfigurationsGet: <ThrowOnError extends boolean = false>(options?: Options<ListModelConfigurationsV1ModelConfigurationsGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ModelConfigurationResponse[], unknown, ThrowOnError>;
173
+ /**
174
+ * Create Model Configuration
175
+ */
176
+ export declare const createModelConfigurationV1ModelConfigurationsPost: <ThrowOnError extends boolean = false>(options: Options<CreateModelConfigurationV1ModelConfigurationsPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ModelConfigurationResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
177
+ /**
178
+ * Delete Model Configuration
179
+ */
180
+ export declare const deleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDelete: <ThrowOnError extends boolean = false>(options: Options<DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").HttpValidationError, ThrowOnError>;
181
+ /**
182
+ * Get Model Configuration
183
+ */
184
+ export declare const getModelConfigurationV1ModelConfigurationsModelConfigurationIdGet: <ThrowOnError extends boolean = false>(options: Options<GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ModelConfigurationResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
185
+ /**
186
+ * Update Model Configuration
187
+ */
188
+ export declare const updateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatch: <ThrowOnError extends boolean = false>(options: Options<UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ModelConfigurationResponse, import("./types.gen").HttpValidationError, ThrowOnError>;
169
189
  /**
170
190
  * List Runs
171
191
  * List all runs for the authenticated organization.
@@ -505,18 +525,6 @@ export declare const powershellExecV1ComputerMachineIdShellPowershellExecPost: <
505
525
  export declare const powershellSessionV1ComputerMachineIdShellPowershellSessionPost: <ThrowOnError extends boolean = false>(options: Options<PowershellSessionV1ComputerMachineIdShellPowershellSessionPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
506
526
  [key: string]: unknown;
507
527
  }, import("./types.gen").HttpValidationError, ThrowOnError>;
508
- /**
509
- * Dummy Test Endpoint
510
- * Test endpoint that performs a sequence of actions:
511
- * 1. Click at three different places
512
- * 2. Right click
513
- * 3. Take a screenshot
514
- *
515
- * Returns all action results and the screenshot base64.
516
- */
517
- export declare const dummyTestEndpointV1TestPost: <ThrowOnError extends boolean = false>(options?: Options<DummyTestEndpointV1TestPostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
518
- [key: string]: unknown;
519
- }, unknown, ThrowOnError>;
520
528
  /**
521
529
  * Db Ping
522
530
  * Execute a lightweight `SELECT 1` to validate DB connectivity and expose pool stats.
@@ -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.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.healthReadyHealthReadyGet = exports.healthLiveHealthLiveGet = exports.rootGet = exports.dbPingInternalDebugDbPingGet = exports.dummyTestEndpointV1TestPost = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseDragV1ComputerMachineIdInputMouseDragPost = exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.copyToClipboardV1ComputerMachineIdCopyToClipboardPost = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = void 0;
4
+ 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.updateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatch = exports.getModelConfigurationV1ModelConfigurationsModelConfigurationIdGet = exports.deleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDelete = exports.createModelConfigurationV1ModelConfigurationsPost = exports.listModelConfigurationsV1ModelConfigurationsGet = 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.healthReadyHealthReadyGet = exports.healthLiveHealthLiveGet = exports.rootGet = exports.dbPingInternalDebugDbPingGet = exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = exports.powershellExecV1ComputerMachineIdShellPowershellExecPost = exports.fsWriteV1ComputerMachineIdFsWritePost = exports.fsReadV1ComputerMachineIdFsReadGet = exports.fsListV1ComputerMachineIdFsListGet = exports.mouseDragV1ComputerMachineIdInputMouseDragPost = exports.mouseScrollV1ComputerMachineIdInputMouseScrollPost = exports.mouseClickV1ComputerMachineIdInputMouseClickPost = exports.mouseMoveV1ComputerMachineIdInputMouseMovePost = exports.getMousePositionV1ComputerMachineIdInputMousePositionGet = exports.copyToClipboardV1ComputerMachineIdCopyToClipboardPost = exports.keyboardKeyV1ComputerMachineIdInputKeyboardKeyPost = exports.keyboardTypeV1ComputerMachineIdInputKeyboardTypePost = exports.getDisplayDimensionsV1ComputerMachineIdDisplayDimensionsGet = exports.getScreenshotV1ComputerMachineIdDisplayScreenshotGet = exports.getLatestTrajectoryForWorkflowV1WorkflowsWorkflowIdLatestTrajectoryGet = exports.updateTrajectoryV1TrajectoriesTrajectoryIdPatch = exports.getTrajectoryV1TrajectoriesTrajectoryIdGet = exports.deleteTrajectoryV1TrajectoriesTrajectoryIdDelete = exports.createTrajectoryV1TrajectoriesPost = exports.listTrajectoriesV1TrajectoriesGet = exports.updateRequestLogV1RequestLogsLogIdPatch = exports.getRequestLogV1RequestLogsLogIdGet = void 0;
6
6
  const client_gen_1 = require("./client.gen");
7
7
  /**
8
8
  * Health Check
@@ -341,6 +341,71 @@ const getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = (options) => {
341
341
  ], url: '/v1/workflows/{workflow_id}/versions' }, options));
342
342
  };
343
343
  exports.getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet = getWorkflowVersionsV1WorkflowsWorkflowIdVersionsGet;
344
+ /**
345
+ * List Model Configurations
346
+ */
347
+ const listModelConfigurationsV1ModelConfigurationsGet = (options) => {
348
+ var _a;
349
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
350
+ {
351
+ scheme: 'bearer',
352
+ type: 'http'
353
+ }
354
+ ], url: '/v1/model-configurations' }, options));
355
+ };
356
+ exports.listModelConfigurationsV1ModelConfigurationsGet = listModelConfigurationsV1ModelConfigurationsGet;
357
+ /**
358
+ * Create Model Configuration
359
+ */
360
+ const createModelConfigurationV1ModelConfigurationsPost = (options) => {
361
+ var _a;
362
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign(Object.assign({ security: [
363
+ {
364
+ scheme: 'bearer',
365
+ type: 'http'
366
+ }
367
+ ], url: '/v1/model-configurations' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
368
+ };
369
+ exports.createModelConfigurationV1ModelConfigurationsPost = createModelConfigurationV1ModelConfigurationsPost;
370
+ /**
371
+ * Delete Model Configuration
372
+ */
373
+ const deleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDelete = (options) => {
374
+ var _a;
375
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete(Object.assign({ security: [
376
+ {
377
+ scheme: 'bearer',
378
+ type: 'http'
379
+ }
380
+ ], url: '/v1/model-configurations/{model_configuration_id}' }, options));
381
+ };
382
+ exports.deleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDelete = deleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDelete;
383
+ /**
384
+ * Get Model Configuration
385
+ */
386
+ const getModelConfigurationV1ModelConfigurationsModelConfigurationIdGet = (options) => {
387
+ var _a;
388
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(Object.assign({ security: [
389
+ {
390
+ scheme: 'bearer',
391
+ type: 'http'
392
+ }
393
+ ], url: '/v1/model-configurations/{model_configuration_id}' }, options));
394
+ };
395
+ exports.getModelConfigurationV1ModelConfigurationsModelConfigurationIdGet = getModelConfigurationV1ModelConfigurationsModelConfigurationIdGet;
396
+ /**
397
+ * Update Model Configuration
398
+ */
399
+ const updateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatch = (options) => {
400
+ var _a;
401
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).patch(Object.assign(Object.assign({ security: [
402
+ {
403
+ scheme: 'bearer',
404
+ type: 'http'
405
+ }
406
+ ], url: '/v1/model-configurations/{model_configuration_id}' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
407
+ };
408
+ exports.updateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatch = updateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatch;
344
409
  /**
345
410
  * List Runs
346
411
  * List all runs for the authenticated organization.
@@ -1082,25 +1147,6 @@ const powershellSessionV1ComputerMachineIdShellPowershellSessionPost = (options)
1082
1147
  ], url: '/v1/computer/{machine_id}/shell/powershell/session' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers) }));
1083
1148
  };
1084
1149
  exports.powershellSessionV1ComputerMachineIdShellPowershellSessionPost = powershellSessionV1ComputerMachineIdShellPowershellSessionPost;
1085
- /**
1086
- * Dummy Test Endpoint
1087
- * Test endpoint that performs a sequence of actions:
1088
- * 1. Click at three different places
1089
- * 2. Right click
1090
- * 3. Take a screenshot
1091
- *
1092
- * Returns all action results and the screenshot base64.
1093
- */
1094
- const dummyTestEndpointV1TestPost = (options) => {
1095
- var _a;
1096
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post(Object.assign({ security: [
1097
- {
1098
- scheme: 'bearer',
1099
- type: 'http'
1100
- }
1101
- ], url: '/v1/test' }, options));
1102
- };
1103
- exports.dummyTestEndpointV1TestPost = dummyTestEndpointV1TestPost;
1104
1150
  /**
1105
1151
  * Db Ping
1106
1152
  * Execute a lightweight `SELECT 1` to validate DB connectivity and expose pool stats.
@@ -203,6 +203,114 @@ export type MachineUpdate = {
203
203
  [key: string]: string;
204
204
  } | null;
205
205
  };
206
+ /**
207
+ * Create a model configuration.
208
+ *
209
+ * `api_key` is the raw secret material; it will be stored in Basis Theory and only the alias is persisted.
210
+ * For providers that Cyberdesk does not provide keys for, `api_key` is required.
211
+ */
212
+ export type ModelConfigurationCreate = {
213
+ name: string;
214
+ description?: string | null;
215
+ /**
216
+ * LangChain provider name (e.g. 'anthropic', 'openai').
217
+ */
218
+ provider: string;
219
+ /**
220
+ * Provider model identifier (e.g. 'claude-sonnet-4-5-20250929').
221
+ */
222
+ model: string;
223
+ temperature?: number | null;
224
+ max_tokens?: number | null;
225
+ timeout_seconds?: number | null;
226
+ max_retries?: number | null;
227
+ /**
228
+ * Anthropic thinking budget (optional).
229
+ */
230
+ thinking_budget?: number | null;
231
+ /**
232
+ * Provider-specific kwargs passed through to LangChain.
233
+ */
234
+ additional_params?: {
235
+ [key: string]: unknown;
236
+ } | null;
237
+ /**
238
+ * True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents).
239
+ */
240
+ is_computer_use_model?: boolean;
241
+ /**
242
+ * Raw API key (stored in Basis Theory; never persisted directly).
243
+ */
244
+ api_key?: string | null;
245
+ };
246
+ /**
247
+ * API response schema for model configurations.
248
+ */
249
+ export type ModelConfigurationResponse = {
250
+ name: string;
251
+ description?: string | null;
252
+ /**
253
+ * LangChain provider name (e.g. 'anthropic', 'openai').
254
+ */
255
+ provider: string;
256
+ /**
257
+ * Provider model identifier (e.g. 'claude-sonnet-4-5-20250929').
258
+ */
259
+ model: string;
260
+ temperature?: number | null;
261
+ max_tokens?: number | null;
262
+ timeout_seconds?: number | null;
263
+ max_retries?: number | null;
264
+ /**
265
+ * Anthropic thinking budget (optional).
266
+ */
267
+ thinking_budget?: number | null;
268
+ /**
269
+ * Provider-specific kwargs passed through to LangChain.
270
+ */
271
+ additional_params?: {
272
+ [key: string]: unknown;
273
+ } | null;
274
+ /**
275
+ * True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents).
276
+ */
277
+ is_computer_use_model?: boolean;
278
+ id: string;
279
+ organization_id?: string | null;
280
+ /**
281
+ * Basis Theory token id (alias) used to resolve api_key at runtime.
282
+ */
283
+ api_key_alias?: string | null;
284
+ is_system_default: boolean;
285
+ created_at: string;
286
+ updated_at: string;
287
+ };
288
+ /**
289
+ * Update a model configuration (organization-owned only).
290
+ */
291
+ export type ModelConfigurationUpdate = {
292
+ name?: string | null;
293
+ description?: string | null;
294
+ provider?: string | null;
295
+ model?: string | null;
296
+ /**
297
+ * Raw API key; if provided, replaces the stored alias.
298
+ */
299
+ api_key?: string | null;
300
+ /**
301
+ * If true, clears any stored api_key_alias (reverts to Cyberdesk-provided key if supported).
302
+ */
303
+ clear_api_key?: boolean | null;
304
+ temperature?: number | null;
305
+ max_tokens?: number | null;
306
+ timeout_seconds?: number | null;
307
+ max_retries?: number | null;
308
+ thinking_budget?: number | null;
309
+ additional_params?: {
310
+ [key: string]: unknown;
311
+ } | null;
312
+ is_computer_use_model?: boolean | null;
313
+ };
206
314
  export type MouseClickRequest = {
207
315
  x?: number | null;
208
316
  y?: number | null;
@@ -822,6 +930,30 @@ export type WorkflowCreate = {
822
930
  * Send webhook on run completion
823
931
  */
824
932
  is_webhooks_enabled?: boolean;
933
+ /**
934
+ * Optional workflow-level model configuration metadata (main agent + fallbacks).
935
+ */
936
+ model_metadata?: WorkflowModelMetadata | null;
937
+ };
938
+ /**
939
+ * JSONB-backed workflow model configuration metadata.
940
+ *
941
+ * Stored on the Workflow row as `model_metadata` to avoid adding many FK columns.
942
+ * All fields are optional; when missing/null, the system falls back to Cyberdesk defaults.
943
+ */
944
+ export type WorkflowModelMetadata = {
945
+ /**
946
+ * ModelConfiguration.id used for the main agent. Null → Cyberdesk default.
947
+ */
948
+ main_agent_model_id?: string | null;
949
+ /**
950
+ * ModelConfiguration.id used as fallback 1 (global across agents).
951
+ */
952
+ fallback_model_1_id?: string | null;
953
+ /**
954
+ * ModelConfiguration.id used as fallback 2 (global across agents).
955
+ */
956
+ fallback_model_2_id?: string | null;
825
957
  };
826
958
  /**
827
959
  * Workflow response schema
@@ -841,6 +973,10 @@ export type WorkflowResponse = {
841
973
  * Send webhook on run completion
842
974
  */
843
975
  is_webhooks_enabled?: boolean;
976
+ /**
977
+ * Optional workflow-level model configuration metadata (main agent + fallbacks).
978
+ */
979
+ model_metadata?: WorkflowModelMetadata | null;
844
980
  id: string;
845
981
  user_id?: string | null;
846
982
  organization_id?: string | null;
@@ -869,6 +1005,10 @@ export type WorkflowUpdate = {
869
1005
  * Send webhook on run completion
870
1006
  */
871
1007
  is_webhooks_enabled?: boolean | null;
1008
+ /**
1009
+ * Optional workflow-level model configuration metadata (main agent + fallbacks).
1010
+ */
1011
+ model_metadata?: WorkflowModelMetadata | null;
872
1012
  };
873
1013
  export type HealthCheckV1HealthGetData = {
874
1014
  body?: never;
@@ -1441,6 +1581,123 @@ export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses = {
1441
1581
  }>;
1442
1582
  };
1443
1583
  export type GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponse = GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses[keyof GetWorkflowVersionsV1WorkflowsWorkflowIdVersionsGetResponses];
1584
+ export type ListModelConfigurationsV1ModelConfigurationsGetData = {
1585
+ body?: never;
1586
+ path?: never;
1587
+ query?: never;
1588
+ url: '/v1/model-configurations';
1589
+ };
1590
+ export type ListModelConfigurationsV1ModelConfigurationsGetResponses = {
1591
+ /**
1592
+ * Successful Response
1593
+ */
1594
+ 200: Array<ModelConfigurationResponse>;
1595
+ };
1596
+ export type ListModelConfigurationsV1ModelConfigurationsGetResponse = ListModelConfigurationsV1ModelConfigurationsGetResponses[keyof ListModelConfigurationsV1ModelConfigurationsGetResponses];
1597
+ export type CreateModelConfigurationV1ModelConfigurationsPostData = {
1598
+ body: ModelConfigurationCreate;
1599
+ headers?: {
1600
+ /**
1601
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1602
+ */
1603
+ 'Idempotency-Key'?: string;
1604
+ };
1605
+ path?: never;
1606
+ query?: never;
1607
+ url: '/v1/model-configurations';
1608
+ };
1609
+ export type CreateModelConfigurationV1ModelConfigurationsPostErrors = {
1610
+ /**
1611
+ * Validation Error
1612
+ */
1613
+ 422: HttpValidationError;
1614
+ };
1615
+ export type CreateModelConfigurationV1ModelConfigurationsPostError = CreateModelConfigurationV1ModelConfigurationsPostErrors[keyof CreateModelConfigurationV1ModelConfigurationsPostErrors];
1616
+ export type CreateModelConfigurationV1ModelConfigurationsPostResponses = {
1617
+ /**
1618
+ * Successful Response
1619
+ */
1620
+ 201: ModelConfigurationResponse;
1621
+ };
1622
+ export type CreateModelConfigurationV1ModelConfigurationsPostResponse = CreateModelConfigurationV1ModelConfigurationsPostResponses[keyof CreateModelConfigurationV1ModelConfigurationsPostResponses];
1623
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteData = {
1624
+ body?: never;
1625
+ headers?: {
1626
+ /**
1627
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1628
+ */
1629
+ 'Idempotency-Key'?: string;
1630
+ };
1631
+ path: {
1632
+ model_configuration_id: string;
1633
+ };
1634
+ query?: never;
1635
+ url: '/v1/model-configurations/{model_configuration_id}';
1636
+ };
1637
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteErrors = {
1638
+ /**
1639
+ * Validation Error
1640
+ */
1641
+ 422: HttpValidationError;
1642
+ };
1643
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteError = DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteErrors[keyof DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteErrors];
1644
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteResponses = {
1645
+ /**
1646
+ * Successful Response
1647
+ */
1648
+ 204: void;
1649
+ };
1650
+ export type DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteResponse = DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteResponses[keyof DeleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDeleteResponses];
1651
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetData = {
1652
+ body?: never;
1653
+ path: {
1654
+ model_configuration_id: string;
1655
+ };
1656
+ query?: never;
1657
+ url: '/v1/model-configurations/{model_configuration_id}';
1658
+ };
1659
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetErrors = {
1660
+ /**
1661
+ * Validation Error
1662
+ */
1663
+ 422: HttpValidationError;
1664
+ };
1665
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetError = GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetErrors[keyof GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetErrors];
1666
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetResponses = {
1667
+ /**
1668
+ * Successful Response
1669
+ */
1670
+ 200: ModelConfigurationResponse;
1671
+ };
1672
+ export type GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetResponse = GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetResponses[keyof GetModelConfigurationV1ModelConfigurationsModelConfigurationIdGetResponses];
1673
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchData = {
1674
+ body: ModelConfigurationUpdate;
1675
+ headers?: {
1676
+ /**
1677
+ * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
1678
+ */
1679
+ 'Idempotency-Key'?: string;
1680
+ };
1681
+ path: {
1682
+ model_configuration_id: string;
1683
+ };
1684
+ query?: never;
1685
+ url: '/v1/model-configurations/{model_configuration_id}';
1686
+ };
1687
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchErrors = {
1688
+ /**
1689
+ * Validation Error
1690
+ */
1691
+ 422: HttpValidationError;
1692
+ };
1693
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchError = UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchErrors[keyof UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchErrors];
1694
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchResponses = {
1695
+ /**
1696
+ * Successful Response
1697
+ */
1698
+ 200: ModelConfigurationResponse;
1699
+ };
1700
+ export type UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchResponse = UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchResponses[keyof UpdateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatchResponses];
1444
1701
  export type ListRunsV1RunsGetData = {
1445
1702
  body?: never;
1446
1703
  path?: never;
@@ -2712,27 +2969,6 @@ export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostRespon
2712
2969
  };
2713
2970
  };
2714
2971
  export type PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponse = PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponses[keyof PowershellSessionV1ComputerMachineIdShellPowershellSessionPostResponses];
2715
- export type DummyTestEndpointV1TestPostData = {
2716
- body?: never;
2717
- headers?: {
2718
- /**
2719
- * Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.
2720
- */
2721
- 'Idempotency-Key'?: string;
2722
- };
2723
- path?: never;
2724
- query?: never;
2725
- url: '/v1/test';
2726
- };
2727
- export type DummyTestEndpointV1TestPostResponses = {
2728
- /**
2729
- * Successful Response
2730
- */
2731
- 200: {
2732
- [key: string]: unknown;
2733
- };
2734
- };
2735
- export type DummyTestEndpointV1TestPostResponse = DummyTestEndpointV1TestPostResponses[keyof DummyTestEndpointV1TestPostResponses];
2736
2972
  export type DbPingInternalDebugDbPingGetData = {
2737
2973
  body?: never;
2738
2974
  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, type RunRetry, type RunField } 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, type ModelConfigurationCreate, type ModelConfigurationUpdate, type ModelConfigurationResponse } 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';
@@ -1097,5 +1097,98 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string,
1097
1097
  response: Response;
1098
1098
  }>;
1099
1099
  };
1100
+ model_configurations: {
1101
+ /**
1102
+ * List all model configurations for the organization
1103
+ *
1104
+ * Returns both system defaults and organization-owned configurations.
1105
+ *
1106
+ * @returns Array of model configurations
1107
+ */
1108
+ list: () => Promise<({
1109
+ data: ModelConfigurationResponse[];
1110
+ error: undefined;
1111
+ } | {
1112
+ data: undefined;
1113
+ error: unknown;
1114
+ }) & {
1115
+ request: Request;
1116
+ response: Response;
1117
+ }>;
1118
+ /**
1119
+ * Create a new model configuration
1120
+ *
1121
+ * @param data - ModelConfigurationCreate with:
1122
+ * - name: Display name for the configuration
1123
+ * - provider: LLM provider (openai, anthropic, google, azure, custom)
1124
+ * - model_id: The model identifier (e.g., 'gpt-4o', 'claude-sonnet-4-20250514')
1125
+ * - api_key: Optional API key (stored securely in Basis Theory)
1126
+ * - base_url: Optional custom base URL for the provider
1127
+ * - description: Optional description
1128
+ * @returns Created model configuration
1129
+ */
1130
+ create: (data: ModelConfigurationCreate) => Promise<({
1131
+ data: undefined;
1132
+ error: import("./client/types.gen").HttpValidationError;
1133
+ } | {
1134
+ data: ModelConfigurationResponse;
1135
+ error: undefined;
1136
+ }) & {
1137
+ request: Request;
1138
+ response: Response;
1139
+ }>;
1140
+ /**
1141
+ * Get a specific model configuration by ID
1142
+ *
1143
+ * @param modelConfigurationId - The ID of the model configuration
1144
+ * @returns Model configuration details
1145
+ */
1146
+ get: (modelConfigurationId: string) => Promise<({
1147
+ data: undefined;
1148
+ error: import("./client/types.gen").HttpValidationError;
1149
+ } | {
1150
+ data: ModelConfigurationResponse;
1151
+ error: undefined;
1152
+ }) & {
1153
+ request: Request;
1154
+ response: Response;
1155
+ }>;
1156
+ /**
1157
+ * Update a model configuration
1158
+ *
1159
+ * Note: Only organization-owned configurations can be updated. System defaults cannot be modified.
1160
+ *
1161
+ * @param modelConfigurationId - The ID of the model configuration to update
1162
+ * @param data - Update data
1163
+ * @returns Updated model configuration
1164
+ */
1165
+ update: (modelConfigurationId: string, data: ModelConfigurationUpdate) => Promise<({
1166
+ data: undefined;
1167
+ error: import("./client/types.gen").HttpValidationError;
1168
+ } | {
1169
+ data: ModelConfigurationResponse;
1170
+ error: undefined;
1171
+ }) & {
1172
+ request: Request;
1173
+ response: Response;
1174
+ }>;
1175
+ /**
1176
+ * Delete a model configuration
1177
+ *
1178
+ * Note: Only organization-owned configurations can be deleted. System defaults cannot be deleted.
1179
+ *
1180
+ * @param modelConfigurationId - The ID of the model configuration to delete
1181
+ */
1182
+ delete: (modelConfigurationId: string) => Promise<({
1183
+ data: undefined;
1184
+ error: import("./client/types.gen").HttpValidationError;
1185
+ } | {
1186
+ data: void;
1187
+ error: undefined;
1188
+ }) & {
1189
+ request: Request;
1190
+ response: Response;
1191
+ }>;
1192
+ };
1100
1193
  };
1101
- 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, };
1194
+ 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, ModelConfigurationCreate, ModelConfigurationUpdate, ModelConfigurationResponse, };
package/dist/index.js CHANGED
@@ -1096,5 +1096,77 @@ function createCyberdeskClient(apiKey, baseUrl, options) {
1096
1096
  });
1097
1097
  }),
1098
1098
  },
1099
+ // Model Configuration endpoints
1100
+ model_configurations: {
1101
+ /**
1102
+ * List all model configurations for the organization
1103
+ *
1104
+ * Returns both system defaults and organization-owned configurations.
1105
+ *
1106
+ * @returns Array of model configurations
1107
+ */
1108
+ list: () => __awaiter(this, void 0, void 0, function* () {
1109
+ return (0, sdk_gen_1.listModelConfigurationsV1ModelConfigurationsGet)({ client });
1110
+ }),
1111
+ /**
1112
+ * Create a new model configuration
1113
+ *
1114
+ * @param data - ModelConfigurationCreate with:
1115
+ * - name: Display name for the configuration
1116
+ * - provider: LLM provider (openai, anthropic, google, azure, custom)
1117
+ * - model_id: The model identifier (e.g., 'gpt-4o', 'claude-sonnet-4-20250514')
1118
+ * - api_key: Optional API key (stored securely in Basis Theory)
1119
+ * - base_url: Optional custom base URL for the provider
1120
+ * - description: Optional description
1121
+ * @returns Created model configuration
1122
+ */
1123
+ create: (data) => __awaiter(this, void 0, void 0, function* () {
1124
+ return (0, sdk_gen_1.createModelConfigurationV1ModelConfigurationsPost)({
1125
+ client,
1126
+ body: data,
1127
+ });
1128
+ }),
1129
+ /**
1130
+ * Get a specific model configuration by ID
1131
+ *
1132
+ * @param modelConfigurationId - The ID of the model configuration
1133
+ * @returns Model configuration details
1134
+ */
1135
+ get: (modelConfigurationId) => __awaiter(this, void 0, void 0, function* () {
1136
+ return (0, sdk_gen_1.getModelConfigurationV1ModelConfigurationsModelConfigurationIdGet)({
1137
+ client,
1138
+ path: { model_configuration_id: modelConfigurationId },
1139
+ });
1140
+ }),
1141
+ /**
1142
+ * Update a model configuration
1143
+ *
1144
+ * Note: Only organization-owned configurations can be updated. System defaults cannot be modified.
1145
+ *
1146
+ * @param modelConfigurationId - The ID of the model configuration to update
1147
+ * @param data - Update data
1148
+ * @returns Updated model configuration
1149
+ */
1150
+ update: (modelConfigurationId, data) => __awaiter(this, void 0, void 0, function* () {
1151
+ return (0, sdk_gen_1.updateModelConfigurationV1ModelConfigurationsModelConfigurationIdPatch)({
1152
+ client,
1153
+ path: { model_configuration_id: modelConfigurationId },
1154
+ body: data,
1155
+ });
1156
+ }),
1157
+ /**
1158
+ * Delete a model configuration
1159
+ *
1160
+ * Note: Only organization-owned configurations can be deleted. System defaults cannot be deleted.
1161
+ *
1162
+ * @param modelConfigurationId - The ID of the model configuration to delete
1163
+ */
1164
+ delete: (modelConfigurationId) => __awaiter(this, void 0, void 0, function* () {
1165
+ return (0, sdk_gen_1.deleteModelConfigurationV1ModelConfigurationsModelConfigurationIdDelete)({
1166
+ client,
1167
+ path: { model_configuration_id: modelConfigurationId },
1168
+ });
1169
+ }),
1170
+ },
1099
1171
  };
1100
1172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "2.2.8",
3
+ "version": "2.2.10",
4
4
  "description": "The official TypeScript SDK for Cyberdesk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",