@dhbw-cloud/llm-client 0.2.7 → 0.2.14
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 +2 -2
- package/dist/index.mjs +24 -30
- package/dist/sdk.gen.d.ts +24 -28
- package/dist/types.gen.d.ts +266 -167
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { blockMachine,
|
|
2
|
-
export type { AccessRole, BlockMachineData, BlockMachineError, BlockMachineErrors, BlockMachineResponse, BlockMachineResponses, ClientOptions,
|
|
1
|
+
export { blockMachine, createKey, deleteFleetPackage, deleteGpuPool, deleteKey, deleteTreeProject, deleteWorkspaceProject, forgetMachine, getFleet, getFleetInference, getFleetInventoryCsv, getFleetPackage, getFleetProfile, getFleetReadme, getGpuFleet, getGpuHours, getMe, getMyWorkspaceUsage, getProjectImageLog, getTreeCatalog, getUsage, getWorkspaceCatalog, getWorkspaceStorage, getWorkspaceUsage, listGpuServers, listKeys, listTreeProjects, listWorkspaceProjects, type Options, putGpuNode, putGpuPool, putTreeProject, rebuildProjectImage, setDefaultProject, stopGpuServer, unblockMachine, updateWorkspaceProject } from './sdk.gen';
|
|
2
|
+
export type { AccessRole, BlockMachineData, BlockMachineError, BlockMachineErrors, BlockMachineResponse, BlockMachineResponses, ClientOptions, CreateKeyData, CreateKeyError, CreateKeyErrors, CreateKeyResponse, CreateKeyResponses, DeleteFleetPackageData, DeleteFleetPackageResponse, DeleteFleetPackageResponses, DeleteGpuPoolData, DeleteGpuPoolError, DeleteGpuPoolErrors, DeleteGpuPoolResponse, DeleteGpuPoolResponses, DeleteKeyData, DeleteKeyError, DeleteKeyErrors, DeleteKeyResponse, DeleteKeyResponses, DeleteTreeProjectData, DeleteTreeProjectError, DeleteTreeProjectErrors, DeleteTreeProjectResponse, DeleteTreeProjectResponses, DeleteWorkspaceProjectData, DeleteWorkspaceProjectError, DeleteWorkspaceProjectErrors, DeleteWorkspaceProjectResponse, DeleteWorkspaceProjectResponses, FleetFleetView, FleetPackageInfo, FleetPeerView, FleetProfile, ForgetMachineData, ForgetMachineError, ForgetMachineErrors, ForgetMachineResponse, ForgetMachineResponses, GetFleetData, GetFleetError, GetFleetErrors, GetFleetInferenceData, GetFleetInferenceError, GetFleetInferenceErrors, GetFleetInferenceResponse, GetFleetInferenceResponses, GetFleetInventoryCsvData, GetFleetInventoryCsvResponse, GetFleetInventoryCsvResponses, GetFleetPackageData, GetFleetPackageError, GetFleetPackageErrors, GetFleetPackageResponse, GetFleetPackageResponses, GetFleetProfileData, GetFleetProfileResponse, GetFleetProfileResponses, GetFleetReadmeData, GetFleetReadmeResponse, GetFleetReadmeResponses, GetFleetResponse, GetFleetResponses, GetGpuFleetData, GetGpuFleetError, GetGpuFleetErrors, GetGpuFleetResponse, GetGpuFleetResponses, GetGpuHoursData, GetGpuHoursError, GetGpuHoursErrors, GetGpuHoursResponse, GetGpuHoursResponses, GetMeData, GetMeError, GetMeErrors, GetMeResponse, GetMeResponses, GetMyWorkspaceUsageData, GetMyWorkspaceUsageError, GetMyWorkspaceUsageErrors, GetMyWorkspaceUsageResponse, GetMyWorkspaceUsageResponses, GetProjectImageLogData, GetProjectImageLogError, GetProjectImageLogErrors, GetProjectImageLogResponse, GetProjectImageLogResponses, GetTreeCatalogData, GetTreeCatalogError, GetTreeCatalogErrors, GetTreeCatalogResponse, GetTreeCatalogResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GetWorkspaceCatalogData, GetWorkspaceCatalogError, GetWorkspaceCatalogErrors, GetWorkspaceCatalogResponse, GetWorkspaceCatalogResponses, GetWorkspaceStorageData, GetWorkspaceStorageError, GetWorkspaceStorageErrors, GetWorkspaceStorageResponse, GetWorkspaceStorageResponses, GetWorkspaceUsageData, GetWorkspaceUsageError, GetWorkspaceUsageErrors, GetWorkspaceUsageResponse, GetWorkspaceUsageResponses, GpuClassInfo, GpuGpuNode, GpuInferencePod, GpuInferencePool, GpuNodeAssignment, GpuPool, GpuServer, GpuTier, KeysKeyView, KeysProjectUsage, KeysUsage, ListGpuServersData, ListGpuServersError, ListGpuServersErrors, ListGpuServersResponse, ListGpuServersResponses, ListKeysData, ListKeysError, ListKeysErrors, ListKeysResponse, ListKeysResponses, ListTreeProjectsData, ListTreeProjectsError, ListTreeProjectsErrors, ListTreeProjectsResponse, ListTreeProjectsResponses, ListWorkspaceProjectsData, ListWorkspaceProjectsResponse, ListWorkspaceProjectsResponses, PutGpuNodeData, PutGpuNodeError, PutGpuNodeErrors, PutGpuNodeResponse, PutGpuNodeResponses, PutGpuPoolData, PutGpuPoolError, PutGpuPoolErrors, PutGpuPoolResponse, PutGpuPoolResponses, PutTreeProjectData, PutTreeProjectError, PutTreeProjectErrors, PutTreeProjectResponse, PutTreeProjectResponses, RebuildProjectImageData, RebuildProjectImageError, RebuildProjectImageErrors, RebuildProjectImageResponse, RebuildProjectImageResponses, SetDefaultProjectData, SetDefaultProjectError, SetDefaultProjectErrors, SetDefaultProjectResponse, SetDefaultProjectResponses, StopGpuServerData, StopGpuServerError, StopGpuServerErrors, StopGpuServerResponse, StopGpuServerResponses, UnblockMachineData, UnblockMachineError, UnblockMachineErrors, UnblockMachineResponse, UnblockMachineResponses, UpdateWorkspaceProjectData, UpdateWorkspaceProjectError, UpdateWorkspaceProjectErrors, UpdateWorkspaceProjectResponse, UpdateWorkspaceProjectResponses, UsageGpuHour, UsageGpuHourPerson, UsageGpuReport, UsageReport, UsageTotal, WebserverBuildLogResponse, WebserverCreateKeyRequest, WebserverCreateKeyResponse, WebserverDefaultProjectRequest, WebserverDefaultProjectResponse, WebserverErrorResponse, WebserverGpuFleetResponse, WebserverGpuNodeRequest, WebserverGpuPoolRequest, WebserverMeResponse, WebserverTreeCatalog, WorkspaceBase, WorkspaceBudget, WorkspaceBudgetStatus, WorkspaceConfig, WorkspaceGpuClass, WorkspaceImageBuild, WorkspaceLimits, WorkspaceMember, WorkspaceMine, WorkspaceProfile, WorkspaceProject, WorkspaceStorageDir, WorkspaceStorageReport, WorkspaceTreeBudget, WorkspaceTreeProject, WorkspaceTreeStatus, WorkspaceTreeUse, WorkspaceValkeyMemory } from './types.gen';
|
package/dist/index.mjs
CHANGED
|
@@ -837,43 +837,28 @@ var unblockMachine = (options) => (options.client ?? client).post({
|
|
|
837
837
|
url: "/v1/fleet/{serial}/unblock",
|
|
838
838
|
...options
|
|
839
839
|
});
|
|
840
|
-
var
|
|
840
|
+
var getGpuFleet = (options) => (options?.client ?? client).get({
|
|
841
841
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
842
|
-
url: "/v1/gpu/
|
|
842
|
+
url: "/v1/gpu/fleet",
|
|
843
843
|
...options
|
|
844
844
|
});
|
|
845
|
-
var
|
|
845
|
+
var putGpuNode = (options) => (options.client ?? client).put({
|
|
846
846
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
847
|
-
url: "/v1/gpu/
|
|
847
|
+
url: "/v1/gpu/fleet/nodes/{name}",
|
|
848
848
|
...options,
|
|
849
849
|
headers: {
|
|
850
850
|
"Content-Type": "application/json",
|
|
851
851
|
...options.headers
|
|
852
852
|
}
|
|
853
853
|
});
|
|
854
|
-
var
|
|
854
|
+
var deleteGpuPool = (options) => (options.client ?? client).delete({
|
|
855
855
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
856
|
-
url: "/v1/gpu/
|
|
856
|
+
url: "/v1/gpu/fleet/pools/{id}",
|
|
857
857
|
...options
|
|
858
858
|
});
|
|
859
|
-
var
|
|
859
|
+
var putGpuPool = (options) => (options.client ?? client).put({
|
|
860
860
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
861
|
-
url: "/v1/gpu/
|
|
862
|
-
...options
|
|
863
|
-
});
|
|
864
|
-
var getGpuEnvironmentLog = (options) => (options.client ?? client).get({
|
|
865
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
866
|
-
url: "/v1/gpu/environments/{id}/log",
|
|
867
|
-
...options
|
|
868
|
-
});
|
|
869
|
-
var rebuildGpuEnvironment = (options) => (options.client ?? client).post({
|
|
870
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
871
|
-
url: "/v1/gpu/environments/{id}/rebuild",
|
|
872
|
-
...options
|
|
873
|
-
});
|
|
874
|
-
var startGpuEnvironment = (options) => (options.client ?? client).post({
|
|
875
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
876
|
-
url: "/v1/gpu/environments/{id}/start",
|
|
861
|
+
url: "/v1/gpu/fleet/pools/{id}",
|
|
877
862
|
...options,
|
|
878
863
|
headers: {
|
|
879
864
|
"Content-Type": "application/json",
|
|
@@ -981,6 +966,16 @@ var updateWorkspaceProject = (options) => (options.client ?? client).put({
|
|
|
981
966
|
...options.headers
|
|
982
967
|
}
|
|
983
968
|
});
|
|
969
|
+
var getProjectImageLog = (options) => (options.client ?? client).get({
|
|
970
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
971
|
+
url: "/v1/workspaces/projects/{slug}/image/log",
|
|
972
|
+
...options
|
|
973
|
+
});
|
|
974
|
+
var rebuildProjectImage = (options) => (options.client ?? client).post({
|
|
975
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
976
|
+
url: "/v1/workspaces/projects/{slug}/image/rebuild",
|
|
977
|
+
...options
|
|
978
|
+
});
|
|
984
979
|
var getWorkspaceStorage = (options) => (options?.client ?? client).get({
|
|
985
980
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
986
981
|
url: "/v1/workspaces/storage",
|
|
@@ -999,10 +994,9 @@ var getMyWorkspaceUsage = (options) => (options?.client ?? client).get({
|
|
|
999
994
|
export {
|
|
1000
995
|
blockMachine,
|
|
1001
996
|
client,
|
|
1002
|
-
createGpuEnvironment,
|
|
1003
997
|
createKey,
|
|
1004
998
|
deleteFleetPackage,
|
|
1005
|
-
|
|
999
|
+
deleteGpuPool,
|
|
1006
1000
|
deleteKey,
|
|
1007
1001
|
deleteTreeProject,
|
|
1008
1002
|
deleteWorkspaceProject,
|
|
@@ -1013,25 +1007,25 @@ export {
|
|
|
1013
1007
|
getFleetPackage,
|
|
1014
1008
|
getFleetProfile,
|
|
1015
1009
|
getFleetReadme,
|
|
1016
|
-
|
|
1017
|
-
getGpuEnvironmentLog,
|
|
1010
|
+
getGpuFleet,
|
|
1018
1011
|
getGpuHours,
|
|
1019
1012
|
getMe,
|
|
1020
1013
|
getMyWorkspaceUsage,
|
|
1014
|
+
getProjectImageLog,
|
|
1021
1015
|
getTreeCatalog,
|
|
1022
1016
|
getUsage,
|
|
1023
1017
|
getWorkspaceCatalog,
|
|
1024
1018
|
getWorkspaceStorage,
|
|
1025
1019
|
getWorkspaceUsage,
|
|
1026
|
-
listGpuEnvironments,
|
|
1027
1020
|
listGpuServers,
|
|
1028
1021
|
listKeys,
|
|
1029
1022
|
listTreeProjects,
|
|
1030
1023
|
listWorkspaceProjects,
|
|
1024
|
+
putGpuNode,
|
|
1025
|
+
putGpuPool,
|
|
1031
1026
|
putTreeProject,
|
|
1032
|
-
|
|
1027
|
+
rebuildProjectImage,
|
|
1033
1028
|
setDefaultProject,
|
|
1034
|
-
startGpuEnvironment,
|
|
1035
1029
|
stopGpuServer,
|
|
1036
1030
|
unblockMachine,
|
|
1037
1031
|
updateWorkspaceProject
|
package/dist/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
|
|
2
|
-
import type { BlockMachineData, BlockMachineErrors, BlockMachineResponses,
|
|
2
|
+
import type { BlockMachineData, BlockMachineErrors, BlockMachineResponses, CreateKeyData, CreateKeyErrors, CreateKeyResponses, DeleteFleetPackageData, DeleteFleetPackageResponses, DeleteGpuPoolData, DeleteGpuPoolErrors, DeleteGpuPoolResponses, DeleteKeyData, DeleteKeyErrors, DeleteKeyResponses, DeleteTreeProjectData, DeleteTreeProjectErrors, DeleteTreeProjectResponses, DeleteWorkspaceProjectData, DeleteWorkspaceProjectErrors, DeleteWorkspaceProjectResponses, ForgetMachineData, ForgetMachineErrors, ForgetMachineResponses, GetFleetData, GetFleetErrors, GetFleetInferenceData, GetFleetInferenceErrors, GetFleetInferenceResponses, GetFleetInventoryCsvData, GetFleetInventoryCsvResponses, GetFleetPackageData, GetFleetPackageErrors, GetFleetPackageResponses, GetFleetProfileData, GetFleetProfileResponses, GetFleetReadmeData, GetFleetReadmeResponses, GetFleetResponses, GetGpuFleetData, GetGpuFleetErrors, GetGpuFleetResponses, GetGpuHoursData, GetGpuHoursErrors, GetGpuHoursResponses, GetMeData, GetMeErrors, GetMeResponses, GetMyWorkspaceUsageData, GetMyWorkspaceUsageErrors, GetMyWorkspaceUsageResponses, GetProjectImageLogData, GetProjectImageLogErrors, GetProjectImageLogResponses, GetTreeCatalogData, GetTreeCatalogErrors, GetTreeCatalogResponses, GetUsageData, GetUsageErrors, GetUsageResponses, GetWorkspaceCatalogData, GetWorkspaceCatalogErrors, GetWorkspaceCatalogResponses, GetWorkspaceStorageData, GetWorkspaceStorageErrors, GetWorkspaceStorageResponses, GetWorkspaceUsageData, GetWorkspaceUsageErrors, GetWorkspaceUsageResponses, ListGpuServersData, ListGpuServersErrors, ListGpuServersResponses, ListKeysData, ListKeysErrors, ListKeysResponses, ListTreeProjectsData, ListTreeProjectsErrors, ListTreeProjectsResponses, ListWorkspaceProjectsData, ListWorkspaceProjectsResponses, PutGpuNodeData, PutGpuNodeErrors, PutGpuNodeResponses, PutGpuPoolData, PutGpuPoolErrors, PutGpuPoolResponses, PutTreeProjectData, PutTreeProjectErrors, PutTreeProjectResponses, RebuildProjectImageData, RebuildProjectImageErrors, RebuildProjectImageResponses, SetDefaultProjectData, SetDefaultProjectErrors, SetDefaultProjectResponses, StopGpuServerData, StopGpuServerErrors, StopGpuServerResponses, UnblockMachineData, UnblockMachineErrors, UnblockMachineResponses, UpdateWorkspaceProjectData, UpdateWorkspaceProjectErrors, UpdateWorkspaceProjectResponses } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -64,43 +64,29 @@ export declare const blockMachine: <ThrowOnError extends boolean = false>(option
|
|
|
64
64
|
*/
|
|
65
65
|
export declare const unblockMachine: <ThrowOnError extends boolean = false>(options: Options<UnblockMachineData, ThrowOnError>) => RequestResult<UnblockMachineResponses, UnblockMachineErrors, ThrowOnError>;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* GPU administration
|
|
68
68
|
*
|
|
69
|
-
*
|
|
69
|
+
* For admins: the GPU nodes of the cluster (type, GPU memory, ready) with their pool and tier, the pools, the tiers and the GPU classes. A node without pool runs no workspaces and no jobs. The tree grants classes (ws-gpus-<class>, ws-gpu-hours-<class>), so new nodes of an existing class need nothing there.
|
|
70
70
|
*/
|
|
71
|
-
export declare const
|
|
71
|
+
export declare const getGpuFleet: <ThrowOnError extends boolean = false>(options?: Options<GetGpuFleetData, ThrowOnError>) => RequestResult<GetGpuFleetResponses, GetGpuFleetErrors, ThrowOnError>;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Assign a GPU node
|
|
74
74
|
*
|
|
75
|
-
*
|
|
75
|
+
* For admins: puts a GPU node into a pool and tier (the class is created on first use) or, with an empty pool, takes it out. The cluster follows within a minute: node labels and the Kueue queues of the classes. Running pods stay where they are.
|
|
76
76
|
*/
|
|
77
|
-
export declare const
|
|
77
|
+
export declare const putGpuNode: <ThrowOnError extends boolean = false>(options: Options<PutGpuNodeData, ThrowOnError>) => RequestResult<PutGpuNodeResponses, PutGpuNodeErrors, ThrowOnError>;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Delete a GPU pool
|
|
80
80
|
*
|
|
81
|
-
*
|
|
81
|
+
* For admins: only a pool without classes (never used by a node) can go.
|
|
82
82
|
*/
|
|
83
|
-
export declare const
|
|
83
|
+
export declare const deleteGpuPool: <ThrowOnError extends boolean = false>(options: Options<DeleteGpuPoolData, ThrowOnError>) => RequestResult<DeleteGpuPoolResponses, DeleteGpuPoolErrors, ThrowOnError>;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
export declare const getGpuEnvironment: <ThrowOnError extends boolean = false>(options: Options<GetGpuEnvironmentData, ThrowOnError>) => RequestResult<GetGpuEnvironmentResponses, GetGpuEnvironmentErrors, ThrowOnError>;
|
|
88
|
-
/**
|
|
89
|
-
* Tail of the build log
|
|
90
|
-
*
|
|
91
|
-
* Available while the build job exists (one day after it finished).
|
|
92
|
-
*/
|
|
93
|
-
export declare const getGpuEnvironmentLog: <ThrowOnError extends boolean = false>(options: Options<GetGpuEnvironmentLogData, ThrowOnError>) => RequestResult<GetGpuEnvironmentLogResponses, GetGpuEnvironmentLogErrors, ThrowOnError>;
|
|
94
|
-
/**
|
|
95
|
-
* Build the environment again
|
|
96
|
-
*/
|
|
97
|
-
export declare const rebuildGpuEnvironment: <ThrowOnError extends boolean = false>(options: Options<RebuildGpuEnvironmentData, ThrowOnError>) => RequestResult<RebuildGpuEnvironmentResponses, RebuildGpuEnvironmentErrors, ThrowOnError>;
|
|
98
|
-
/**
|
|
99
|
-
* Start a JupyterHub server for the environment
|
|
85
|
+
* Create or rename a GPU pool
|
|
100
86
|
*
|
|
101
|
-
*
|
|
87
|
+
* For admins: a pool is who GPUs are for — "allgemein", or GPUs of one group, granted in the tree only to that group's budgets. The id is fixed once created (it becomes part of the tree resources).
|
|
102
88
|
*/
|
|
103
|
-
export declare const
|
|
89
|
+
export declare const putGpuPool: <ThrowOnError extends boolean = false>(options: Options<PutGpuPoolData, ThrowOnError>) => RequestResult<PutGpuPoolResponses, PutGpuPoolErrors, ThrowOnError>;
|
|
104
90
|
/**
|
|
105
91
|
* My JupyterHub servers
|
|
106
92
|
*/
|
|
@@ -194,9 +180,19 @@ export declare const deleteWorkspaceProject: <ThrowOnError extends boolean = fal
|
|
|
194
180
|
/**
|
|
195
181
|
* Change a workspace project
|
|
196
182
|
*
|
|
197
|
-
* Admins change everything; the project's managers only the description, the members and the
|
|
183
|
+
* Admins change everything; the project's managers only the description, the members and the project image (project_image, or image_git_url and image_git_ref to build it from Git).
|
|
198
184
|
*/
|
|
199
185
|
export declare const updateWorkspaceProject: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkspaceProjectData, ThrowOnError>) => RequestResult<UpdateWorkspaceProjectResponses, UpdateWorkspaceProjectErrors, ThrowOnError>;
|
|
186
|
+
/**
|
|
187
|
+
* Build log of a project image from Git
|
|
188
|
+
*/
|
|
189
|
+
export declare const getProjectImageLog: <ThrowOnError extends boolean = false>(options: Options<GetProjectImageLogData, ThrowOnError>) => RequestResult<GetProjectImageLogResponses, GetProjectImageLogErrors, ThrowOnError>;
|
|
190
|
+
/**
|
|
191
|
+
* Build a project image from Git again
|
|
192
|
+
*
|
|
193
|
+
* Resolves the project's ref again (a branch's newest commit) and builds it on notebook-base; a failed commit is built anew. The project keeps its image until the build is ready.
|
|
194
|
+
*/
|
|
195
|
+
export declare const rebuildProjectImage: <ThrowOnError extends boolean = false>(options: Options<RebuildProjectImageData, ThrowOnError>) => RequestResult<RebuildProjectImageResponses, RebuildProjectImageErrors, ThrowOnError>;
|
|
200
196
|
/**
|
|
201
197
|
* Workspace storage
|
|
202
198
|
*
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -79,19 +79,49 @@ export type FleetProfile = {
|
|
|
79
79
|
weight?: number;
|
|
80
80
|
wiredLimitMb?: number;
|
|
81
81
|
};
|
|
82
|
-
export type
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
id?:
|
|
88
|
-
image?: string;
|
|
89
|
-
message?: string;
|
|
82
|
+
export type GpuClassInfo = {
|
|
83
|
+
/**
|
|
84
|
+
* GPUs of the ready, schedulable assigned nodes
|
|
85
|
+
*/
|
|
86
|
+
gpus?: number;
|
|
87
|
+
id?: string;
|
|
90
88
|
name?: string;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
/**
|
|
90
|
+
* assigned nodes, ready or not
|
|
91
|
+
*/
|
|
92
|
+
nodes?: number;
|
|
93
|
+
pool?: string;
|
|
94
|
+
pool_name?: string;
|
|
95
|
+
/**
|
|
96
|
+
* GPU types of its nodes, e.g. "NVIDIA-L40S-12Q"
|
|
97
|
+
*/
|
|
98
|
+
products?: string;
|
|
99
|
+
tier?: string;
|
|
100
|
+
tier_name?: string;
|
|
101
|
+
};
|
|
102
|
+
export type GpuGpuNode = {
|
|
103
|
+
/**
|
|
104
|
+
* Assignment; nil = not assigned: it runs no workspaces and no jobs.
|
|
105
|
+
*/
|
|
106
|
+
assignment?: GpuNodeAssignment;
|
|
107
|
+
class?: string;
|
|
108
|
+
cpu?: number;
|
|
109
|
+
gpus?: number;
|
|
110
|
+
/**
|
|
111
|
+
* GPU memory per GPU
|
|
112
|
+
*/
|
|
113
|
+
memory_gb?: number;
|
|
114
|
+
memory_gi?: number;
|
|
115
|
+
name?: string;
|
|
116
|
+
product?: string;
|
|
117
|
+
/**
|
|
118
|
+
* ready and schedulable
|
|
119
|
+
*/
|
|
120
|
+
ready?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* SuggestedTier is the tier its GPU memory suggests.
|
|
123
|
+
*/
|
|
124
|
+
suggested_tier?: string;
|
|
95
125
|
};
|
|
96
126
|
export type GpuInferencePod = {
|
|
97
127
|
gpu_class?: string;
|
|
@@ -115,6 +145,27 @@ export type GpuInferencePool = {
|
|
|
115
145
|
pods?: Array<GpuInferencePod>;
|
|
116
146
|
url?: string;
|
|
117
147
|
};
|
|
148
|
+
export type GpuNodeAssignment = {
|
|
149
|
+
available_until?: string;
|
|
150
|
+
/**
|
|
151
|
+
* GapModel: the inference gap filler on this node; "" = the tier's default, "-" = none (not yet in effect, the gap fillers still come from the inventory).
|
|
152
|
+
*/
|
|
153
|
+
gap_model?: string;
|
|
154
|
+
node?: string;
|
|
155
|
+
pool?: string;
|
|
156
|
+
tier?: string;
|
|
157
|
+
updated_at?: string;
|
|
158
|
+
updated_by?: string;
|
|
159
|
+
};
|
|
160
|
+
export type GpuPool = {
|
|
161
|
+
created_at?: string;
|
|
162
|
+
id?: string;
|
|
163
|
+
/**
|
|
164
|
+
* idle GPUs of this pool may be used by the other pools of the tier (not yet in effect)
|
|
165
|
+
*/
|
|
166
|
+
lend?: boolean;
|
|
167
|
+
name?: string;
|
|
168
|
+
};
|
|
118
169
|
export type GpuServer = {
|
|
119
170
|
image?: string;
|
|
120
171
|
name?: string;
|
|
@@ -123,7 +174,14 @@ export type GpuServer = {
|
|
|
123
174
|
ready?: boolean;
|
|
124
175
|
url?: string;
|
|
125
176
|
};
|
|
126
|
-
export type
|
|
177
|
+
export type GpuTier = {
|
|
178
|
+
id?: string;
|
|
179
|
+
/**
|
|
180
|
+
* a node is suggested this tier from this much GPU memory on
|
|
181
|
+
*/
|
|
182
|
+
min_gb?: number;
|
|
183
|
+
name?: string;
|
|
184
|
+
};
|
|
127
185
|
export type KeysKeyView = {
|
|
128
186
|
budget?: number;
|
|
129
187
|
budget_duration?: string;
|
|
@@ -254,14 +312,6 @@ export type WebserverDefaultProjectResponse = {
|
|
|
254
312
|
project?: string;
|
|
255
313
|
project_name?: string;
|
|
256
314
|
};
|
|
257
|
-
export type WebserverEnvironmentRequest = {
|
|
258
|
-
git_url: string;
|
|
259
|
-
name?: string;
|
|
260
|
-
/**
|
|
261
|
-
* Branch, tag or commit; empty = default branch.
|
|
262
|
-
*/
|
|
263
|
-
ref?: string;
|
|
264
|
-
};
|
|
265
315
|
export type WebserverErrorResponse = {
|
|
266
316
|
/**
|
|
267
317
|
* Stable machine-readable reason.
|
|
@@ -272,6 +322,25 @@ export type WebserverErrorResponse = {
|
|
|
272
322
|
*/
|
|
273
323
|
error?: string;
|
|
274
324
|
};
|
|
325
|
+
export type WebserverGpuFleetResponse = {
|
|
326
|
+
classes?: Array<GpuClassInfo>;
|
|
327
|
+
nodes?: Array<GpuGpuNode>;
|
|
328
|
+
pools?: Array<GpuPool>;
|
|
329
|
+
tiers?: Array<GpuTier>;
|
|
330
|
+
};
|
|
331
|
+
export type WebserverGpuNodeRequest = {
|
|
332
|
+
available_until?: string;
|
|
333
|
+
/**
|
|
334
|
+
* GapModel: inference gap filler; "" = the tier's default, "-" = none.
|
|
335
|
+
*/
|
|
336
|
+
gap_model?: string;
|
|
337
|
+
pool?: string;
|
|
338
|
+
tier?: string;
|
|
339
|
+
};
|
|
340
|
+
export type WebserverGpuPoolRequest = {
|
|
341
|
+
lend?: boolean;
|
|
342
|
+
name?: string;
|
|
343
|
+
};
|
|
275
344
|
export type WebserverMeResponse = {
|
|
276
345
|
/**
|
|
277
346
|
* ActingAs is the person this request acted for (the e-mail above); empty without X-Act-As.
|
|
@@ -302,27 +371,20 @@ export type WebserverMeResponse = {
|
|
|
302
371
|
*/
|
|
303
372
|
workspace_projects?: number;
|
|
304
373
|
};
|
|
305
|
-
export type WebserverStartRequest = {
|
|
306
|
-
/**
|
|
307
|
-
* With a GPU (waits in the queue if all GPUs are busy; counts against the GPU quota).
|
|
308
|
-
*/
|
|
309
|
-
gpu?: boolean;
|
|
310
|
-
/**
|
|
311
|
-
* Project the server runs in (its slug); empty = the first of the caller's projects that allows the profile.
|
|
312
|
-
*/
|
|
313
|
-
project?: string;
|
|
314
|
-
};
|
|
315
|
-
export type WebserverStartResponse = {
|
|
316
|
-
server?: string;
|
|
317
|
-
url?: string;
|
|
318
|
-
};
|
|
319
374
|
export type WebserverTreeCatalog = {
|
|
320
|
-
|
|
375
|
+
bases?: Array<WorkspaceBase>;
|
|
376
|
+
gpuClasses?: Array<WorkspaceGpuClass>;
|
|
321
377
|
llm_base_models?: Array<string>;
|
|
322
378
|
llm_default_rpm?: number;
|
|
323
379
|
llm_default_tpm?: number;
|
|
324
380
|
profiles?: Array<WorkspaceProfile>;
|
|
325
381
|
};
|
|
382
|
+
export type WorkspaceBase = {
|
|
383
|
+
default?: boolean;
|
|
384
|
+
id?: string;
|
|
385
|
+
image?: string;
|
|
386
|
+
name?: string;
|
|
387
|
+
};
|
|
326
388
|
export type WorkspaceBudget = {
|
|
327
389
|
amount?: number;
|
|
328
390
|
/**
|
|
@@ -348,12 +410,31 @@ export type WorkspaceBudgetStatus = {
|
|
|
348
410
|
window?: '24h' | '7d' | '30d' | 'total';
|
|
349
411
|
};
|
|
350
412
|
export type WorkspaceConfig = {
|
|
351
|
-
|
|
413
|
+
bases?: Array<WorkspaceBase>;
|
|
414
|
+
gpuClasses?: Array<WorkspaceGpuClass>;
|
|
352
415
|
profiles?: Array<WorkspaceProfile>;
|
|
353
416
|
};
|
|
354
|
-
export type
|
|
355
|
-
|
|
417
|
+
export type WorkspaceGpuClass = {
|
|
418
|
+
/**
|
|
419
|
+
* GPUs of its ready nodes right now
|
|
420
|
+
*/
|
|
421
|
+
gpus?: number;
|
|
422
|
+
id?: string;
|
|
356
423
|
name?: string;
|
|
424
|
+
nodes?: number;
|
|
425
|
+
pool?: string;
|
|
426
|
+
pool_name?: string;
|
|
427
|
+
products?: string;
|
|
428
|
+
tier?: string;
|
|
429
|
+
tier_name?: string;
|
|
430
|
+
};
|
|
431
|
+
export type WorkspaceImageBuild = {
|
|
432
|
+
branch?: string;
|
|
433
|
+
commit?: string;
|
|
434
|
+
image?: string;
|
|
435
|
+
message?: string;
|
|
436
|
+
status?: 'building' | 'ready' | 'failed';
|
|
437
|
+
updated_at?: string;
|
|
357
438
|
};
|
|
358
439
|
export type WorkspaceLimits = {
|
|
359
440
|
/**
|
|
@@ -371,7 +452,7 @@ export type WorkspaceLimits = {
|
|
|
371
452
|
servers_per_person?: number;
|
|
372
453
|
};
|
|
373
454
|
export type WorkspaceMember = {
|
|
374
|
-
role?: 'member' | 'manager';
|
|
455
|
+
role?: 'reader' | 'member' | 'manager';
|
|
375
456
|
token?: string;
|
|
376
457
|
};
|
|
377
458
|
export type WorkspaceMine = {
|
|
@@ -388,10 +469,6 @@ export type WorkspaceMine = {
|
|
|
388
469
|
* after this day nobody can start in the project
|
|
389
470
|
*/
|
|
390
471
|
ends_at?: string;
|
|
391
|
-
/**
|
|
392
|
-
* W3: any image, CPU only, without home
|
|
393
|
-
*/
|
|
394
|
-
free_images?: boolean;
|
|
395
472
|
gpu_classes?: Array<string>;
|
|
396
473
|
/**
|
|
397
474
|
* GPUsByClass is how many GPUs of a class the whole project may use at the same time; a class without an entry has no such limit.
|
|
@@ -400,7 +477,23 @@ export type WorkspaceMine = {
|
|
|
400
477
|
[key: string]: number;
|
|
401
478
|
};
|
|
402
479
|
id?: number;
|
|
403
|
-
|
|
480
|
+
/**
|
|
481
|
+
* The project's environment, run by every profile but the free images (docs/bauplan.md 10.12; Service.EffectiveImage): ImageBase is the chosen base (Config.Bases, empty = the default). ProjectImage is a finished image derived from a base (label BaseLabel), or, with ImageGitURL, the last successful build from that repository on ImageBase; empty = the base itself.
|
|
482
|
+
*/
|
|
483
|
+
image_base?: string;
|
|
484
|
+
/**
|
|
485
|
+
* ImageBuild is the state of the project image's build from Git (ImageGitURL); nil = none.
|
|
486
|
+
*/
|
|
487
|
+
image_build?: WorkspaceImageBuild;
|
|
488
|
+
/**
|
|
489
|
+
* ImageDerived tells whether an existing ProjectImage is derived from a base (label BaseLabel, looked up on saving). Any image may be the project's; one that is not derived runs as it is (its own jupyterhub-singleuser), without the GPU kernel (Derived).
|
|
490
|
+
*/
|
|
491
|
+
image_derived?: boolean;
|
|
492
|
+
image_git_ref?: string;
|
|
493
|
+
/**
|
|
494
|
+
* ImageGitURL builds ProjectImage from a public repository (requirements.txt, environment.yml, apt.txt, postBuild) on ImageBase, rebuilt on its new releases; ImageGitRef is a branch, tag or commit (empty = default branch).
|
|
495
|
+
*/
|
|
496
|
+
image_git_url?: string;
|
|
404
497
|
limits?: WorkspaceLimits;
|
|
405
498
|
/**
|
|
406
499
|
* LLMModels are model groups the tree granted the project on top of the base models.
|
|
@@ -418,7 +511,8 @@ export type WorkspaceMine = {
|
|
|
418
511
|
members?: Array<WorkspaceMember>;
|
|
419
512
|
name?: string;
|
|
420
513
|
profiles?: Array<string>;
|
|
421
|
-
|
|
514
|
+
project_image?: string;
|
|
515
|
+
role?: 'reader' | 'member' | 'manager' | 'admin';
|
|
422
516
|
/**
|
|
423
517
|
* short name, also the pod label dhbw.cloud/project
|
|
424
518
|
*/
|
|
@@ -435,7 +529,7 @@ export type WorkspaceMine = {
|
|
|
435
529
|
updated_by?: string;
|
|
436
530
|
};
|
|
437
531
|
export type WorkspaceProfile = {
|
|
438
|
-
|
|
532
|
+
gpu?: boolean;
|
|
439
533
|
name?: string;
|
|
440
534
|
slug?: string;
|
|
441
535
|
};
|
|
@@ -452,10 +546,6 @@ export type WorkspaceProject = {
|
|
|
452
546
|
* after this day nobody can start in the project
|
|
453
547
|
*/
|
|
454
548
|
ends_at?: string;
|
|
455
|
-
/**
|
|
456
|
-
* W3: any image, CPU only, without home
|
|
457
|
-
*/
|
|
458
|
-
free_images?: boolean;
|
|
459
549
|
gpu_classes?: Array<string>;
|
|
460
550
|
/**
|
|
461
551
|
* GPUsByClass is how many GPUs of a class the whole project may use at the same time; a class without an entry has no such limit.
|
|
@@ -464,7 +554,19 @@ export type WorkspaceProject = {
|
|
|
464
554
|
[key: string]: number;
|
|
465
555
|
};
|
|
466
556
|
id?: number;
|
|
467
|
-
|
|
557
|
+
/**
|
|
558
|
+
* The project's environment, run by every profile but the free images (docs/bauplan.md 10.12; Service.EffectiveImage): ImageBase is the chosen base (Config.Bases, empty = the default). ProjectImage is a finished image derived from a base (label BaseLabel), or, with ImageGitURL, the last successful build from that repository on ImageBase; empty = the base itself.
|
|
559
|
+
*/
|
|
560
|
+
image_base?: string;
|
|
561
|
+
/**
|
|
562
|
+
* ImageDerived tells whether an existing ProjectImage is derived from a base (label BaseLabel, looked up on saving). Any image may be the project's; one that is not derived runs as it is (its own jupyterhub-singleuser), without the GPU kernel (Derived).
|
|
563
|
+
*/
|
|
564
|
+
image_derived?: boolean;
|
|
565
|
+
image_git_ref?: string;
|
|
566
|
+
/**
|
|
567
|
+
* ImageGitURL builds ProjectImage from a public repository (requirements.txt, environment.yml, apt.txt, postBuild) on ImageBase, rebuilt on its new releases; ImageGitRef is a branch, tag or commit (empty = default branch).
|
|
568
|
+
*/
|
|
569
|
+
image_git_url?: string;
|
|
468
570
|
limits?: WorkspaceLimits;
|
|
469
571
|
/**
|
|
470
572
|
* LLMModels are model groups the tree granted the project on top of the base models.
|
|
@@ -482,6 +584,7 @@ export type WorkspaceProject = {
|
|
|
482
584
|
members?: Array<WorkspaceMember>;
|
|
483
585
|
name?: string;
|
|
484
586
|
profiles?: Array<string>;
|
|
587
|
+
project_image?: string;
|
|
485
588
|
/**
|
|
486
589
|
* short name, also the pod label dhbw.cloud/project
|
|
487
590
|
*/
|
|
@@ -773,181 +876,119 @@ export type UnblockMachineResponses = {
|
|
|
773
876
|
204: void;
|
|
774
877
|
};
|
|
775
878
|
export type UnblockMachineResponse = UnblockMachineResponses[keyof UnblockMachineResponses];
|
|
776
|
-
export type
|
|
879
|
+
export type GetGpuFleetData = {
|
|
777
880
|
body?: never;
|
|
778
881
|
path?: never;
|
|
779
882
|
query?: never;
|
|
780
|
-
url: '/v1/gpu/
|
|
883
|
+
url: '/v1/gpu/fleet';
|
|
781
884
|
};
|
|
782
|
-
export type
|
|
885
|
+
export type GetGpuFleetErrors = {
|
|
783
886
|
/**
|
|
784
887
|
* Forbidden
|
|
785
888
|
*/
|
|
786
889
|
403: WebserverErrorResponse;
|
|
787
890
|
};
|
|
788
|
-
export type
|
|
789
|
-
export type
|
|
891
|
+
export type GetGpuFleetError = GetGpuFleetErrors[keyof GetGpuFleetErrors];
|
|
892
|
+
export type GetGpuFleetResponses = {
|
|
790
893
|
/**
|
|
791
894
|
* OK
|
|
792
895
|
*/
|
|
793
|
-
200:
|
|
794
|
-
};
|
|
795
|
-
export type ListGpuEnvironmentsResponse = ListGpuEnvironmentsResponses[keyof ListGpuEnvironmentsResponses];
|
|
796
|
-
export type CreateGpuEnvironmentData = {
|
|
797
|
-
/**
|
|
798
|
-
* Repository
|
|
799
|
-
*/
|
|
800
|
-
body: WebserverEnvironmentRequest;
|
|
801
|
-
path?: never;
|
|
802
|
-
query?: never;
|
|
803
|
-
url: '/v1/gpu/environments';
|
|
804
|
-
};
|
|
805
|
-
export type CreateGpuEnvironmentErrors = {
|
|
806
|
-
/**
|
|
807
|
-
* Bad Request
|
|
808
|
-
*/
|
|
809
|
-
400: WebserverErrorResponse;
|
|
810
|
-
/**
|
|
811
|
-
* Bad Gateway
|
|
812
|
-
*/
|
|
813
|
-
502: WebserverErrorResponse;
|
|
896
|
+
200: WebserverGpuFleetResponse;
|
|
814
897
|
};
|
|
815
|
-
export type
|
|
816
|
-
export type
|
|
898
|
+
export type GetGpuFleetResponse = GetGpuFleetResponses[keyof GetGpuFleetResponses];
|
|
899
|
+
export type PutGpuNodeData = {
|
|
817
900
|
/**
|
|
818
|
-
*
|
|
901
|
+
* assignment
|
|
819
902
|
*/
|
|
820
|
-
|
|
821
|
-
};
|
|
822
|
-
export type CreateGpuEnvironmentResponse = CreateGpuEnvironmentResponses[keyof CreateGpuEnvironmentResponses];
|
|
823
|
-
export type DeleteGpuEnvironmentData = {
|
|
824
|
-
body?: never;
|
|
903
|
+
body: WebserverGpuNodeRequest;
|
|
825
904
|
path: {
|
|
826
905
|
/**
|
|
827
|
-
*
|
|
906
|
+
* node name
|
|
828
907
|
*/
|
|
829
|
-
|
|
908
|
+
name: string;
|
|
830
909
|
};
|
|
831
910
|
query?: never;
|
|
832
|
-
url: '/v1/gpu/
|
|
911
|
+
url: '/v1/gpu/fleet/nodes/{name}';
|
|
833
912
|
};
|
|
834
|
-
export type
|
|
913
|
+
export type PutGpuNodeErrors = {
|
|
835
914
|
/**
|
|
836
|
-
*
|
|
837
|
-
*/
|
|
838
|
-
404: WebserverErrorResponse;
|
|
839
|
-
};
|
|
840
|
-
export type DeleteGpuEnvironmentError = DeleteGpuEnvironmentErrors[keyof DeleteGpuEnvironmentErrors];
|
|
841
|
-
export type DeleteGpuEnvironmentResponses = {
|
|
842
|
-
/**
|
|
843
|
-
* No Content
|
|
915
|
+
* Bad Request
|
|
844
916
|
*/
|
|
845
|
-
|
|
846
|
-
};
|
|
847
|
-
export type DeleteGpuEnvironmentResponse = DeleteGpuEnvironmentResponses[keyof DeleteGpuEnvironmentResponses];
|
|
848
|
-
export type GetGpuEnvironmentData = {
|
|
849
|
-
body?: never;
|
|
850
|
-
path: {
|
|
851
|
-
/**
|
|
852
|
-
* Environment id
|
|
853
|
-
*/
|
|
854
|
-
id: number;
|
|
855
|
-
};
|
|
856
|
-
query?: never;
|
|
857
|
-
url: '/v1/gpu/environments/{id}';
|
|
858
|
-
};
|
|
859
|
-
export type GetGpuEnvironmentErrors = {
|
|
917
|
+
400: WebserverErrorResponse;
|
|
860
918
|
/**
|
|
861
|
-
*
|
|
919
|
+
* Forbidden
|
|
862
920
|
*/
|
|
863
|
-
|
|
921
|
+
403: WebserverErrorResponse;
|
|
864
922
|
};
|
|
865
|
-
export type
|
|
866
|
-
export type
|
|
923
|
+
export type PutGpuNodeError = PutGpuNodeErrors[keyof PutGpuNodeErrors];
|
|
924
|
+
export type PutGpuNodeResponses = {
|
|
867
925
|
/**
|
|
868
926
|
* OK
|
|
869
927
|
*/
|
|
870
|
-
200:
|
|
928
|
+
200: WebserverGpuFleetResponse;
|
|
871
929
|
};
|
|
872
|
-
export type
|
|
873
|
-
export type
|
|
930
|
+
export type PutGpuNodeResponse = PutGpuNodeResponses[keyof PutGpuNodeResponses];
|
|
931
|
+
export type DeleteGpuPoolData = {
|
|
874
932
|
body?: never;
|
|
875
933
|
path: {
|
|
876
934
|
/**
|
|
877
|
-
*
|
|
935
|
+
* pool id
|
|
878
936
|
*/
|
|
879
|
-
id:
|
|
937
|
+
id: string;
|
|
880
938
|
};
|
|
881
939
|
query?: never;
|
|
882
|
-
url: '/v1/gpu/
|
|
883
|
-
};
|
|
884
|
-
export type GetGpuEnvironmentLogErrors = {
|
|
885
|
-
/**
|
|
886
|
-
* Not Found
|
|
887
|
-
*/
|
|
888
|
-
404: WebserverErrorResponse;
|
|
940
|
+
url: '/v1/gpu/fleet/pools/{id}';
|
|
889
941
|
};
|
|
890
|
-
export type
|
|
891
|
-
export type GetGpuEnvironmentLogResponses = {
|
|
942
|
+
export type DeleteGpuPoolErrors = {
|
|
892
943
|
/**
|
|
893
|
-
*
|
|
944
|
+
* Bad Request
|
|
894
945
|
*/
|
|
895
|
-
|
|
896
|
-
};
|
|
897
|
-
export type GetGpuEnvironmentLogResponse = GetGpuEnvironmentLogResponses[keyof GetGpuEnvironmentLogResponses];
|
|
898
|
-
export type RebuildGpuEnvironmentData = {
|
|
899
|
-
body?: never;
|
|
900
|
-
path: {
|
|
901
|
-
/**
|
|
902
|
-
* Environment id
|
|
903
|
-
*/
|
|
904
|
-
id: number;
|
|
905
|
-
};
|
|
906
|
-
query?: never;
|
|
907
|
-
url: '/v1/gpu/environments/{id}/rebuild';
|
|
908
|
-
};
|
|
909
|
-
export type RebuildGpuEnvironmentErrors = {
|
|
946
|
+
400: WebserverErrorResponse;
|
|
910
947
|
/**
|
|
911
|
-
*
|
|
948
|
+
* Forbidden
|
|
912
949
|
*/
|
|
913
|
-
|
|
950
|
+
403: WebserverErrorResponse;
|
|
914
951
|
};
|
|
915
|
-
export type
|
|
916
|
-
export type
|
|
952
|
+
export type DeleteGpuPoolError = DeleteGpuPoolErrors[keyof DeleteGpuPoolErrors];
|
|
953
|
+
export type DeleteGpuPoolResponses = {
|
|
917
954
|
/**
|
|
918
955
|
* OK
|
|
919
956
|
*/
|
|
920
|
-
200:
|
|
957
|
+
200: WebserverGpuFleetResponse;
|
|
921
958
|
};
|
|
922
|
-
export type
|
|
923
|
-
export type
|
|
959
|
+
export type DeleteGpuPoolResponse = DeleteGpuPoolResponses[keyof DeleteGpuPoolResponses];
|
|
960
|
+
export type PutGpuPoolData = {
|
|
924
961
|
/**
|
|
925
|
-
*
|
|
962
|
+
* pool
|
|
926
963
|
*/
|
|
927
|
-
body
|
|
964
|
+
body: WebserverGpuPoolRequest;
|
|
928
965
|
path: {
|
|
929
966
|
/**
|
|
930
|
-
*
|
|
967
|
+
* pool id (2–20 lower-case letters or digits)
|
|
931
968
|
*/
|
|
932
|
-
id:
|
|
969
|
+
id: string;
|
|
933
970
|
};
|
|
934
971
|
query?: never;
|
|
935
|
-
url: '/v1/gpu/
|
|
972
|
+
url: '/v1/gpu/fleet/pools/{id}';
|
|
936
973
|
};
|
|
937
|
-
export type
|
|
974
|
+
export type PutGpuPoolErrors = {
|
|
938
975
|
/**
|
|
939
|
-
*
|
|
976
|
+
* Bad Request
|
|
940
977
|
*/
|
|
941
|
-
|
|
978
|
+
400: WebserverErrorResponse;
|
|
979
|
+
/**
|
|
980
|
+
* Forbidden
|
|
981
|
+
*/
|
|
982
|
+
403: WebserverErrorResponse;
|
|
942
983
|
};
|
|
943
|
-
export type
|
|
944
|
-
export type
|
|
984
|
+
export type PutGpuPoolError = PutGpuPoolErrors[keyof PutGpuPoolErrors];
|
|
985
|
+
export type PutGpuPoolResponses = {
|
|
945
986
|
/**
|
|
946
|
-
*
|
|
987
|
+
* OK
|
|
947
988
|
*/
|
|
948
|
-
|
|
989
|
+
200: WebserverGpuFleetResponse;
|
|
949
990
|
};
|
|
950
|
-
export type
|
|
991
|
+
export type PutGpuPoolResponse = PutGpuPoolResponses[keyof PutGpuPoolResponses];
|
|
951
992
|
export type ListGpuServersData = {
|
|
952
993
|
body?: never;
|
|
953
994
|
path?: never;
|
|
@@ -1377,6 +1418,64 @@ export type UpdateWorkspaceProjectResponses = {
|
|
|
1377
1418
|
200: WorkspaceProject;
|
|
1378
1419
|
};
|
|
1379
1420
|
export type UpdateWorkspaceProjectResponse = UpdateWorkspaceProjectResponses[keyof UpdateWorkspaceProjectResponses];
|
|
1421
|
+
export type GetProjectImageLogData = {
|
|
1422
|
+
body?: never;
|
|
1423
|
+
path: {
|
|
1424
|
+
/**
|
|
1425
|
+
* short name
|
|
1426
|
+
*/
|
|
1427
|
+
slug: string;
|
|
1428
|
+
};
|
|
1429
|
+
query?: never;
|
|
1430
|
+
url: '/v1/workspaces/projects/{slug}/image/log';
|
|
1431
|
+
};
|
|
1432
|
+
export type GetProjectImageLogErrors = {
|
|
1433
|
+
/**
|
|
1434
|
+
* Forbidden
|
|
1435
|
+
*/
|
|
1436
|
+
403: WebserverErrorResponse;
|
|
1437
|
+
/**
|
|
1438
|
+
* Not Found
|
|
1439
|
+
*/
|
|
1440
|
+
404: WebserverErrorResponse;
|
|
1441
|
+
};
|
|
1442
|
+
export type GetProjectImageLogError = GetProjectImageLogErrors[keyof GetProjectImageLogErrors];
|
|
1443
|
+
export type GetProjectImageLogResponses = {
|
|
1444
|
+
/**
|
|
1445
|
+
* OK
|
|
1446
|
+
*/
|
|
1447
|
+
200: WebserverBuildLogResponse;
|
|
1448
|
+
};
|
|
1449
|
+
export type GetProjectImageLogResponse = GetProjectImageLogResponses[keyof GetProjectImageLogResponses];
|
|
1450
|
+
export type RebuildProjectImageData = {
|
|
1451
|
+
body?: never;
|
|
1452
|
+
path: {
|
|
1453
|
+
/**
|
|
1454
|
+
* short name
|
|
1455
|
+
*/
|
|
1456
|
+
slug: string;
|
|
1457
|
+
};
|
|
1458
|
+
query?: never;
|
|
1459
|
+
url: '/v1/workspaces/projects/{slug}/image/rebuild';
|
|
1460
|
+
};
|
|
1461
|
+
export type RebuildProjectImageErrors = {
|
|
1462
|
+
/**
|
|
1463
|
+
* Bad Request
|
|
1464
|
+
*/
|
|
1465
|
+
400: WebserverErrorResponse;
|
|
1466
|
+
/**
|
|
1467
|
+
* Forbidden
|
|
1468
|
+
*/
|
|
1469
|
+
403: WebserverErrorResponse;
|
|
1470
|
+
};
|
|
1471
|
+
export type RebuildProjectImageError = RebuildProjectImageErrors[keyof RebuildProjectImageErrors];
|
|
1472
|
+
export type RebuildProjectImageResponses = {
|
|
1473
|
+
/**
|
|
1474
|
+
* OK
|
|
1475
|
+
*/
|
|
1476
|
+
200: WorkspaceImageBuild;
|
|
1477
|
+
};
|
|
1478
|
+
export type RebuildProjectImageResponse = RebuildProjectImageResponses[keyof RebuildProjectImageResponses];
|
|
1380
1479
|
export type GetWorkspaceStorageData = {
|
|
1381
1480
|
body?: never;
|
|
1382
1481
|
path?: never;
|