cyberdesk 2.2.9 → 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.
- package/dist/index.d.ts +95 -2
- package/dist/index.js +72 -0
- package/package.json +1 -1
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
|
}
|