@dhbw-cloud/llm-client 0.2.0-test.7 → 0.2.3-test.1
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 +6 -44
- package/dist/sdk.gen.d.ts +15 -37
- package/dist/types.gen.d.ts +113 -188
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { blockMachine,
|
|
2
|
-
export type { AccessRole,
|
|
1
|
+
export { blockMachine, createGpuEnvironment, createKey, deleteFleetPackage, deleteGpuEnvironment, deleteKey, deleteTreeProject, deleteWorkspaceProject, forgetMachine, getFleet, getFleetInference, getFleetInventoryCsv, getFleetPackage, getFleetProfile, getFleetReadme, getGpuEnvironment, getGpuEnvironmentLog, getMe, getMyWorkspaceUsage, getTreeCatalog, getUsage, getWorkspaceCatalog, getWorkspaceStorage, getWorkspaceUsage, listGpuEnvironments, listGpuServers, listKeys, listTreeProjects, listWorkspaceProjects, type Options, putTreeProject, rebuildGpuEnvironment, setDefaultProject, startGpuEnvironment, stopGpuServer, unblockMachine, updateWorkspaceProject } from './sdk.gen';
|
|
2
|
+
export type { AccessRole, BlockMachineData, BlockMachineError, BlockMachineErrors, BlockMachineResponse, BlockMachineResponses, ClientOptions, CreateGpuEnvironmentData, CreateGpuEnvironmentError, CreateGpuEnvironmentErrors, CreateGpuEnvironmentResponse, CreateGpuEnvironmentResponses, CreateKeyData, CreateKeyError, CreateKeyErrors, CreateKeyResponse, CreateKeyResponses, DeleteFleetPackageData, DeleteFleetPackageResponse, DeleteFleetPackageResponses, DeleteGpuEnvironmentData, DeleteGpuEnvironmentError, DeleteGpuEnvironmentErrors, DeleteGpuEnvironmentResponse, DeleteGpuEnvironmentResponses, 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, GetGpuEnvironmentData, GetGpuEnvironmentError, GetGpuEnvironmentErrors, GetGpuEnvironmentLogData, GetGpuEnvironmentLogError, GetGpuEnvironmentLogErrors, GetGpuEnvironmentLogResponse, GetGpuEnvironmentLogResponses, GetGpuEnvironmentResponse, GetGpuEnvironmentResponses, GetMeData, GetMeError, GetMeErrors, GetMeResponse, GetMeResponses, GetMyWorkspaceUsageData, GetMyWorkspaceUsageError, GetMyWorkspaceUsageErrors, GetMyWorkspaceUsageResponse, GetMyWorkspaceUsageResponses, 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, GpuEnvironment, GpuInferencePod, GpuInferencePool, GpuServer, GpuStatus, KeysKeyView, KeysProjectUsage, KeysUsage, ListGpuEnvironmentsData, ListGpuEnvironmentsError, ListGpuEnvironmentsErrors, ListGpuEnvironmentsResponse, ListGpuEnvironmentsResponses, ListGpuServersData, ListGpuServersError, ListGpuServersErrors, ListGpuServersResponse, ListGpuServersResponses, ListKeysData, ListKeysError, ListKeysErrors, ListKeysResponse, ListKeysResponses, ListTreeProjectsData, ListTreeProjectsError, ListTreeProjectsErrors, ListTreeProjectsResponse, ListTreeProjectsResponses, ListWorkspaceProjectsData, ListWorkspaceProjectsResponse, ListWorkspaceProjectsResponses, PutTreeProjectData, PutTreeProjectError, PutTreeProjectErrors, PutTreeProjectResponse, PutTreeProjectResponses, RebuildGpuEnvironmentData, RebuildGpuEnvironmentError, RebuildGpuEnvironmentErrors, RebuildGpuEnvironmentResponse, RebuildGpuEnvironmentResponses, SetDefaultProjectData, SetDefaultProjectError, SetDefaultProjectErrors, SetDefaultProjectResponse, SetDefaultProjectResponses, StartGpuEnvironmentData, StartGpuEnvironmentError, StartGpuEnvironmentErrors, StartGpuEnvironmentResponse, StartGpuEnvironmentResponses, StopGpuServerData, StopGpuServerError, StopGpuServerErrors, StopGpuServerResponse, StopGpuServerResponses, UnblockMachineData, UnblockMachineError, UnblockMachineErrors, UnblockMachineResponse, UnblockMachineResponses, UpdateWorkspaceProjectData, UpdateWorkspaceProjectError, UpdateWorkspaceProjectErrors, UpdateWorkspaceProjectResponse, UpdateWorkspaceProjectResponses, UsageReport, UsageTotal, WebserverBuildLogResponse, WebserverCreateKeyRequest, WebserverCreateKeyResponse, WebserverDefaultProjectRequest, WebserverDefaultProjectResponse, WebserverEnvironmentRequest, WebserverErrorResponse, WebserverMeResponse, WebserverStartRequest, WebserverStartResponse, WebserverTreeCatalog, WorkspaceBudget, WorkspaceBudgetStatus, WorkspaceConfig, WorkspaceImage, WorkspaceLimits, WorkspaceMember, WorkspaceMine, WorkspaceProfile, WorkspaceProject, WorkspaceStorageDir, WorkspaceStorageReport, WorkspaceTreeBudget, WorkspaceTreeProject, WorkspaceTreeStatus, WorkspaceTreeUse, WorkspaceValkeyMemory } from './types.gen';
|
package/dist/index.mjs
CHANGED
|
@@ -787,34 +787,6 @@ var createClient = (config = {}) => {
|
|
|
787
787
|
var client = createClient(createConfig({ baseUrl: "/" }));
|
|
788
788
|
|
|
789
789
|
// client-npm/src/sdk.gen.ts
|
|
790
|
-
var listAccessRules = (options) => (options?.client ?? client).get({
|
|
791
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
792
|
-
url: "/v1/access-rules",
|
|
793
|
-
...options
|
|
794
|
-
});
|
|
795
|
-
var createAccessRule = (options) => (options.client ?? client).post({
|
|
796
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
797
|
-
url: "/v1/access-rules",
|
|
798
|
-
...options,
|
|
799
|
-
headers: {
|
|
800
|
-
"Content-Type": "application/json",
|
|
801
|
-
...options.headers
|
|
802
|
-
}
|
|
803
|
-
});
|
|
804
|
-
var deleteAccessRule = (options) => (options.client ?? client).delete({
|
|
805
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
806
|
-
url: "/v1/access-rules/{id}",
|
|
807
|
-
...options
|
|
808
|
-
});
|
|
809
|
-
var updateAccessRule = (options) => (options.client ?? client).put({
|
|
810
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
811
|
-
url: "/v1/access-rules/{id}",
|
|
812
|
-
...options,
|
|
813
|
-
headers: {
|
|
814
|
-
"Content-Type": "application/json",
|
|
815
|
-
...options.headers
|
|
816
|
-
}
|
|
817
|
-
});
|
|
818
790
|
var getFleet = (options) => (options?.client ?? client).get({
|
|
819
791
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
820
792
|
url: "/v1/fleet",
|
|
@@ -951,16 +923,6 @@ var getMe = (options) => (options?.client ?? client).get({
|
|
|
951
923
|
url: "/v1/me",
|
|
952
924
|
...options
|
|
953
925
|
});
|
|
954
|
-
var searchPrincipals = (options) => (options?.client ?? client).get({
|
|
955
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
956
|
-
url: "/v1/principals/search",
|
|
957
|
-
...options
|
|
958
|
-
});
|
|
959
|
-
var listTiers = (options) => (options?.client ?? client).get({
|
|
960
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
961
|
-
url: "/v1/tiers",
|
|
962
|
-
...options
|
|
963
|
-
});
|
|
964
926
|
var getTreeCatalog = (options) => (options?.client ?? client).get({
|
|
965
927
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
966
928
|
url: "/v1/tree/catalog",
|
|
@@ -1014,6 +976,11 @@ var updateWorkspaceProject = (options) => (options.client ?? client).put({
|
|
|
1014
976
|
...options.headers
|
|
1015
977
|
}
|
|
1016
978
|
});
|
|
979
|
+
var getWorkspaceStorage = (options) => (options?.client ?? client).get({
|
|
980
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
981
|
+
url: "/v1/workspaces/storage",
|
|
982
|
+
...options
|
|
983
|
+
});
|
|
1017
984
|
var getWorkspaceUsage = (options) => (options?.client ?? client).get({
|
|
1018
985
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
1019
986
|
url: "/v1/workspaces/usage",
|
|
@@ -1027,10 +994,8 @@ var getMyWorkspaceUsage = (options) => (options?.client ?? client).get({
|
|
|
1027
994
|
export {
|
|
1028
995
|
blockMachine,
|
|
1029
996
|
client,
|
|
1030
|
-
createAccessRule,
|
|
1031
997
|
createGpuEnvironment,
|
|
1032
998
|
createKey,
|
|
1033
|
-
deleteAccessRule,
|
|
1034
999
|
deleteFleetPackage,
|
|
1035
1000
|
deleteGpuEnvironment,
|
|
1036
1001
|
deleteKey,
|
|
@@ -1050,21 +1015,18 @@ export {
|
|
|
1050
1015
|
getTreeCatalog,
|
|
1051
1016
|
getUsage,
|
|
1052
1017
|
getWorkspaceCatalog,
|
|
1018
|
+
getWorkspaceStorage,
|
|
1053
1019
|
getWorkspaceUsage,
|
|
1054
|
-
listAccessRules,
|
|
1055
1020
|
listGpuEnvironments,
|
|
1056
1021
|
listGpuServers,
|
|
1057
1022
|
listKeys,
|
|
1058
|
-
listTiers,
|
|
1059
1023
|
listTreeProjects,
|
|
1060
1024
|
listWorkspaceProjects,
|
|
1061
1025
|
putTreeProject,
|
|
1062
1026
|
rebuildGpuEnvironment,
|
|
1063
|
-
searchPrincipals,
|
|
1064
1027
|
setDefaultProject,
|
|
1065
1028
|
startGpuEnvironment,
|
|
1066
1029
|
stopGpuServer,
|
|
1067
1030
|
unblockMachine,
|
|
1068
|
-
updateAccessRule,
|
|
1069
1031
|
updateWorkspaceProject
|
|
1070
1032
|
};
|
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, CreateGpuEnvironmentData, CreateGpuEnvironmentErrors, CreateGpuEnvironmentResponses, CreateKeyData, CreateKeyErrors, CreateKeyResponses, DeleteFleetPackageData, DeleteFleetPackageResponses, DeleteGpuEnvironmentData, DeleteGpuEnvironmentErrors, DeleteGpuEnvironmentResponses, 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, GetGpuEnvironmentData, GetGpuEnvironmentErrors, GetGpuEnvironmentLogData, GetGpuEnvironmentLogErrors, GetGpuEnvironmentLogResponses, GetGpuEnvironmentResponses, GetMeData, GetMeErrors, GetMeResponses, GetMyWorkspaceUsageData, GetMyWorkspaceUsageErrors, GetMyWorkspaceUsageResponses, GetTreeCatalogData, GetTreeCatalogErrors, GetTreeCatalogResponses, GetUsageData, GetUsageErrors, GetUsageResponses, GetWorkspaceCatalogData, GetWorkspaceCatalogErrors, GetWorkspaceCatalogResponses, GetWorkspaceStorageData, GetWorkspaceStorageErrors, GetWorkspaceStorageResponses, GetWorkspaceUsageData, GetWorkspaceUsageErrors, GetWorkspaceUsageResponses, ListGpuEnvironmentsData, ListGpuEnvironmentsErrors, ListGpuEnvironmentsResponses, ListGpuServersData, ListGpuServersErrors, ListGpuServersResponses, ListKeysData, ListKeysErrors, ListKeysResponses, ListTreeProjectsData, ListTreeProjectsErrors, ListTreeProjectsResponses, ListWorkspaceProjectsData, ListWorkspaceProjectsResponses, PutTreeProjectData, PutTreeProjectErrors, PutTreeProjectResponses, RebuildGpuEnvironmentData, RebuildGpuEnvironmentErrors, RebuildGpuEnvironmentResponses, SetDefaultProjectData, SetDefaultProjectErrors, SetDefaultProjectResponses, StartGpuEnvironmentData, StartGpuEnvironmentErrors, StartGpuEnvironmentResponses, 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
|
|
@@ -13,24 +13,6 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
13
13
|
*/
|
|
14
14
|
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
17
|
-
* List the access rules
|
|
18
|
-
*
|
|
19
|
-
* Rules from the configuration come first and are marked bootstrap (read-only).
|
|
20
|
-
*/
|
|
21
|
-
export declare const listAccessRules: <ThrowOnError extends boolean = false>(options?: Options<ListAccessRulesData, ThrowOnError>) => RequestResult<ListAccessRulesResponses, ListAccessRulesErrors, ThrowOnError>;
|
|
22
|
-
/**
|
|
23
|
-
* Add an access rule
|
|
24
|
-
*/
|
|
25
|
-
export declare const createAccessRule: <ThrowOnError extends boolean = false>(options: Options<CreateAccessRuleData, ThrowOnError>) => RequestResult<CreateAccessRuleResponses, CreateAccessRuleErrors, ThrowOnError>;
|
|
26
|
-
/**
|
|
27
|
-
* Delete an access rule
|
|
28
|
-
*/
|
|
29
|
-
export declare const deleteAccessRule: <ThrowOnError extends boolean = false>(options: Options<DeleteAccessRuleData, ThrowOnError>) => RequestResult<DeleteAccessRuleResponses, DeleteAccessRuleErrors, ThrowOnError>;
|
|
30
|
-
/**
|
|
31
|
-
* Replace an access rule
|
|
32
|
-
*/
|
|
33
|
-
export declare const updateAccessRule: <ThrowOnError extends boolean = false>(options: Options<UpdateAccessRuleData, ThrowOnError>) => RequestResult<UpdateAccessRuleResponses, UpdateAccessRuleErrors, ThrowOnError>;
|
|
34
16
|
/**
|
|
35
17
|
* The Mac fleet
|
|
36
18
|
*
|
|
@@ -126,7 +108,7 @@ export declare const listGpuServers: <ThrowOnError extends boolean = false>(opti
|
|
|
126
108
|
/**
|
|
127
109
|
* Stop one of my servers
|
|
128
110
|
*
|
|
129
|
-
* Named servers are removed after stopping; the home stays.
|
|
111
|
+
* Named servers are removed after stopping; the home stays. The default server has no name and is addressed as "-".
|
|
130
112
|
*/
|
|
131
113
|
export declare const stopGpuServer: <ThrowOnError extends boolean = false>(options: Options<StopGpuServerData, ThrowOnError>) => RequestResult<StopGpuServerResponses, StopGpuServerErrors, ThrowOnError>;
|
|
132
114
|
/**
|
|
@@ -152,23 +134,13 @@ export declare const deleteKey: <ThrowOnError extends boolean = false>(options:
|
|
|
152
134
|
/**
|
|
153
135
|
* Who am I, and what may I do?
|
|
154
136
|
*
|
|
155
|
-
* Always 200 for an authenticated caller.
|
|
137
|
+
* Always 200 for an authenticated caller. Role is user unless the configuration makes the caller fleet-admin or admin; without LLM tokens from a project, llm_mtokens is 0 and the LLM links are missing.
|
|
156
138
|
*/
|
|
157
139
|
export declare const getMe: <ThrowOnError extends boolean = false>(options?: Options<GetMeData, ThrowOnError>) => RequestResult<GetMeResponses, GetMeErrors, ThrowOnError>;
|
|
158
140
|
/**
|
|
159
|
-
*
|
|
141
|
+
* GPU classes, profiles and LLM defaults, for the budget tree
|
|
160
142
|
*
|
|
161
|
-
*
|
|
162
|
-
*/
|
|
163
|
-
export declare const searchPrincipals: <ThrowOnError extends boolean = false>(options?: Options<SearchPrincipalsData, ThrowOnError>) => RequestResult<SearchPrincipalsResponses, SearchPrincipalsErrors, ThrowOnError>;
|
|
164
|
-
/**
|
|
165
|
-
* Quota tiers a rule may use
|
|
166
|
-
*/
|
|
167
|
-
export declare const listTiers: <ThrowOnError extends boolean = false>(options?: Options<ListTiersData, ThrowOnError>) => RequestResult<ListTiersResponses, unknown, ThrowOnError>;
|
|
168
|
-
/**
|
|
169
|
-
* GPU classes and profiles, for the budget tree
|
|
170
|
-
*
|
|
171
|
-
* What the tree can grant here: the GPU classes, and the profiles that use them.
|
|
143
|
+
* What the tree can grant here: the GPU classes, the profiles that use them, the LLM base models and the default requests and tokens per minute of a project.
|
|
172
144
|
*/
|
|
173
145
|
export declare const getTreeCatalog: <ThrowOnError extends boolean = false>(options?: Options<GetTreeCatalogData, ThrowOnError>) => RequestResult<GetTreeCatalogResponses, GetTreeCatalogErrors, ThrowOnError>;
|
|
174
146
|
/**
|
|
@@ -180,19 +152,19 @@ export declare const listTreeProjects: <ThrowOnError extends boolean = false>(op
|
|
|
180
152
|
/**
|
|
181
153
|
* Delete a project of the budget tree
|
|
182
154
|
*
|
|
183
|
-
* Removes the node's project; its usage stays booked. 404 when there is none.
|
|
155
|
+
* Removes the node's project; its usage stays booked. Within ten minutes its servers are ended and its workspace storage (the members' homes in the project and the shared folder) is deleted. 404 when there is none.
|
|
184
156
|
*/
|
|
185
157
|
export declare const deleteTreeProject: <ThrowOnError extends boolean = false>(options: Options<DeleteTreeProjectData, ThrowOnError>) => RequestResult<DeleteTreeProjectResponses, DeleteTreeProjectErrors, ThrowOnError>;
|
|
186
158
|
/**
|
|
187
159
|
* Create or update a project of the budget tree
|
|
188
160
|
*
|
|
189
|
-
* Sets what the tree owns of the node's project — name, members, end, the project's budgets per window, GPUs per class, LLM tokens — and creates the project when there is none. What its managers set (shares per person, shorter windows, profiles, images) stays.
|
|
161
|
+
* Sets what the tree owns of the node's project — name, members, end, the project's budgets per window, GPUs per class, LLM tokens, rate limits and models — and creates the project when there is none. What its managers set (shares per person, shorter windows, profiles, images) stays.
|
|
190
162
|
*/
|
|
191
163
|
export declare const putTreeProject: <ThrowOnError extends boolean = false>(options: Options<PutTreeProjectData, ThrowOnError>) => RequestResult<PutTreeProjectResponses, PutTreeProjectErrors, ThrowOnError>;
|
|
192
164
|
/**
|
|
193
165
|
* Quota, limits and keys of the caller
|
|
194
166
|
*
|
|
195
|
-
* The projects whose LLM tokens the caller may use — each one pool shared by all its members, with its spend, budget and window from LiteLLM,
|
|
167
|
+
* The projects whose LLM tokens the caller may use — each one pool shared by all its members, with its spend, budget and window from LiteLLM, which one is the caller's default, its requests and tokens per minute and models for all its members together, and the short-term budget of each key in it —, and the caller's keys.
|
|
196
168
|
*/
|
|
197
169
|
export declare const getUsage: <ThrowOnError extends boolean = false>(options?: Options<GetUsageData, ThrowOnError>) => RequestResult<GetUsageResponses, GetUsageErrors, ThrowOnError>;
|
|
198
170
|
/**
|
|
@@ -210,7 +182,7 @@ export declare const listWorkspaceProjects: <ThrowOnError extends boolean = fals
|
|
|
210
182
|
/**
|
|
211
183
|
* Delete a workspace project
|
|
212
184
|
*
|
|
213
|
-
*
|
|
185
|
+
* Usage stays booked to the project. Within ten minutes its servers are ended and its workspace storage (the members' homes in the project and the shared folder) is deleted.
|
|
214
186
|
*/
|
|
215
187
|
export declare const deleteWorkspaceProject: <ThrowOnError extends boolean = false>(options: Options<DeleteWorkspaceProjectData, ThrowOnError>) => RequestResult<DeleteWorkspaceProjectResponses, DeleteWorkspaceProjectErrors, ThrowOnError>;
|
|
216
188
|
/**
|
|
@@ -219,6 +191,12 @@ export declare const deleteWorkspaceProject: <ThrowOnError extends boolean = fal
|
|
|
219
191
|
* Admins change everything; the project's managers only the description, the members and the images.
|
|
220
192
|
*/
|
|
221
193
|
export declare const updateWorkspaceProject: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkspaceProjectData, ThrowOnError>) => RequestResult<UpdateWorkspaceProjectResponses, UpdateWorkspaceProjectErrors, ThrowOnError>;
|
|
194
|
+
/**
|
|
195
|
+
* Workspace storage
|
|
196
|
+
*
|
|
197
|
+
* For admins: how full the workspace storage is. The directories of the JuiceFS file system with their used space and quota, largest first (a project's volume names its project), and the memory of the Valkey that holds the file system's metadata. Both as reported last by the hourly job; missing before its first report after a restart.
|
|
198
|
+
*/
|
|
199
|
+
export declare const getWorkspaceStorage: <ThrowOnError extends boolean = false>(options?: Options<GetWorkspaceStorageData, ThrowOnError>) => RequestResult<GetWorkspaceStorageResponses, GetWorkspaceStorageErrors, ThrowOnError>;
|
|
222
200
|
/**
|
|
223
201
|
* Usage of all workspaces
|
|
224
202
|
*
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type AccessRole = '
|
|
5
|
-
export type AccessRule = {
|
|
6
|
-
/**
|
|
7
|
-
* Bootstrap rules come from the configuration, not from the database. They
|
|
8
|
-
* guarantee that someone can always administer the list, and they cannot be
|
|
9
|
-
* edited or deleted through the API.
|
|
10
|
-
*/
|
|
11
|
-
bootstrap?: boolean;
|
|
12
|
-
comment?: string;
|
|
13
|
-
id?: number;
|
|
14
|
-
role?: AccessRole;
|
|
15
|
-
tier?: string;
|
|
16
|
-
token?: string;
|
|
17
|
-
updated_at?: string;
|
|
18
|
-
updated_by?: string;
|
|
19
|
-
};
|
|
4
|
+
export type AccessRole = 'user' | 'fleet-admin' | 'admin';
|
|
20
5
|
export type FleetFleetView = {
|
|
21
6
|
allowed_serials?: number;
|
|
22
7
|
capacity?: number;
|
|
@@ -154,28 +139,22 @@ export type KeysProjectUsage = {
|
|
|
154
139
|
budget?: number;
|
|
155
140
|
budget_duration?: string;
|
|
156
141
|
default?: boolean;
|
|
142
|
+
key_budget?: number;
|
|
143
|
+
key_budget_duration?: string;
|
|
144
|
+
models?: Array<string>;
|
|
157
145
|
mtokens?: number;
|
|
158
146
|
name?: string;
|
|
159
147
|
reset_at?: string;
|
|
148
|
+
rpm?: number;
|
|
160
149
|
slug?: string;
|
|
161
150
|
spend?: number;
|
|
151
|
+
tpm?: number;
|
|
162
152
|
};
|
|
163
153
|
export type KeysUsage = {
|
|
164
154
|
keys?: Array<KeysKeyView>;
|
|
165
155
|
max_keys?: number;
|
|
166
|
-
models?: Array<string>;
|
|
167
156
|
own_keys?: number;
|
|
168
157
|
projects?: Array<KeysProjectUsage>;
|
|
169
|
-
rpm?: number;
|
|
170
|
-
tpm?: number;
|
|
171
|
-
};
|
|
172
|
-
export type RoleproviderGroup = {
|
|
173
|
-
description?: string;
|
|
174
|
-
/**
|
|
175
|
-
* Display name, left out when it only repeats the group ID (imported groups).
|
|
176
|
-
*/
|
|
177
|
-
label?: string;
|
|
178
|
-
token?: string;
|
|
179
158
|
};
|
|
180
159
|
export type UsageReport = {
|
|
181
160
|
entries?: Array<UsageTotal>;
|
|
@@ -248,6 +227,10 @@ export type WebserverErrorResponse = {
|
|
|
248
227
|
error?: string;
|
|
249
228
|
};
|
|
250
229
|
export type WebserverMeResponse = {
|
|
230
|
+
/**
|
|
231
|
+
* ActingAs is the person this request acted for (the e-mail above); empty without X-Act-As.
|
|
232
|
+
*/
|
|
233
|
+
acting_as?: string;
|
|
251
234
|
/**
|
|
252
235
|
* Only for admins: autologin link to the LiteLLM admin UI.
|
|
253
236
|
*/
|
|
@@ -260,27 +243,19 @@ export type WebserverMeResponse = {
|
|
|
260
243
|
*/
|
|
261
244
|
jupyter_url?: string;
|
|
262
245
|
/**
|
|
263
|
-
* LLM: tokens per 30 days in millions of the projects whose pools the caller may draw from, added up — each pool is shared with the project's other members, so this is no allowance of the caller's own;
|
|
246
|
+
* LLM: tokens per 30 days in millions of the projects whose pools the caller may draw from, added up — each pool is shared with the project's other members, so this is no allowance of the caller's own; chat and API only when it is more than 0. The limits are per project (getUsage).
|
|
264
247
|
*/
|
|
265
248
|
llm_mtokens?: number;
|
|
266
|
-
|
|
249
|
+
/**
|
|
250
|
+
* MayActAs: the signed-in person may act on behalf of others with the X-Act-As header (an admin).
|
|
251
|
+
*/
|
|
252
|
+
may_act_as?: boolean;
|
|
267
253
|
role?: 'user' | 'fleet-admin' | 'admin';
|
|
268
|
-
tier?: string;
|
|
269
254
|
/**
|
|
270
255
|
* Workspaces: number of active projects the caller belongs to.
|
|
271
256
|
*/
|
|
272
257
|
workspace_projects?: number;
|
|
273
258
|
};
|
|
274
|
-
export type WebserverPrincipalSearchResponse = {
|
|
275
|
-
groups?: Array<RoleproviderGroup>;
|
|
276
|
-
users?: Array<string>;
|
|
277
|
-
};
|
|
278
|
-
export type WebserverRuleRequest = {
|
|
279
|
-
comment?: string;
|
|
280
|
-
role: 'user' | 'fleet-admin' | 'admin';
|
|
281
|
-
tier: string;
|
|
282
|
-
token: string;
|
|
283
|
-
};
|
|
284
259
|
export type WebserverStartRequest = {
|
|
285
260
|
/**
|
|
286
261
|
* With a GPU (waits in the queue if all GPUs are busy; counts against the GPU quota).
|
|
@@ -295,6 +270,13 @@ export type WebserverStartResponse = {
|
|
|
295
270
|
server?: string;
|
|
296
271
|
url?: string;
|
|
297
272
|
};
|
|
273
|
+
export type WebserverTreeCatalog = {
|
|
274
|
+
gpuClasses?: Array<string>;
|
|
275
|
+
llm_base_models?: Array<string>;
|
|
276
|
+
llm_default_rpm?: number;
|
|
277
|
+
llm_default_tpm?: number;
|
|
278
|
+
profiles?: Array<WorkspaceProfile>;
|
|
279
|
+
};
|
|
298
280
|
export type WorkspaceBudget = {
|
|
299
281
|
amount?: number;
|
|
300
282
|
/**
|
|
@@ -370,10 +352,19 @@ export type WorkspaceMine = {
|
|
|
370
352
|
id?: number;
|
|
371
353
|
images?: Array<WorkspaceImage>;
|
|
372
354
|
limits?: WorkspaceLimits;
|
|
355
|
+
/**
|
|
356
|
+
* LLMModels are model groups the tree granted the project on top of the base models.
|
|
357
|
+
*/
|
|
358
|
+
llm_models?: Array<string>;
|
|
373
359
|
/**
|
|
374
360
|
* LLMMTokens is the project's LLM tokens per 30 days in millions, from the budget tree: one pool (a LiteLLM team) that all members draw from together, not an amount per member.
|
|
375
361
|
*/
|
|
376
362
|
llm_mtokens?: number;
|
|
363
|
+
/**
|
|
364
|
+
* LLMRPM and LLMTPM are the project's requests and tokens per minute for all members together, from the budget tree; 0 = the configured default.
|
|
365
|
+
*/
|
|
366
|
+
llm_rpm?: number;
|
|
367
|
+
llm_tpm?: number;
|
|
377
368
|
members?: Array<WorkspaceMember>;
|
|
378
369
|
name?: string;
|
|
379
370
|
profiles?: Array<string>;
|
|
@@ -383,7 +374,11 @@ export type WorkspaceMine = {
|
|
|
383
374
|
*/
|
|
384
375
|
slug?: string;
|
|
385
376
|
/**
|
|
386
|
-
* the project's
|
|
377
|
+
* StorageGB is the project's workspace storage in GB, from the budget tree: one volume for the homes of its members and their shared folder (StoragePVCPrefix); 0 = no volume, servers then start with an empty home that is lost when they end.
|
|
378
|
+
*/
|
|
379
|
+
storage_gb?: number;
|
|
380
|
+
/**
|
|
381
|
+
* the project's node in the budget tree (resource-management-api); set = the tree manages members, end, the project's budgets and GPUs, and the LLM tokens, rate limits and models
|
|
387
382
|
*/
|
|
388
383
|
tree_node?: string;
|
|
389
384
|
updated_at?: string;
|
|
@@ -417,10 +412,19 @@ export type WorkspaceProject = {
|
|
|
417
412
|
id?: number;
|
|
418
413
|
images?: Array<WorkspaceImage>;
|
|
419
414
|
limits?: WorkspaceLimits;
|
|
415
|
+
/**
|
|
416
|
+
* LLMModels are model groups the tree granted the project on top of the base models.
|
|
417
|
+
*/
|
|
418
|
+
llm_models?: Array<string>;
|
|
420
419
|
/**
|
|
421
420
|
* LLMMTokens is the project's LLM tokens per 30 days in millions, from the budget tree: one pool (a LiteLLM team) that all members draw from together, not an amount per member.
|
|
422
421
|
*/
|
|
423
422
|
llm_mtokens?: number;
|
|
423
|
+
/**
|
|
424
|
+
* LLMRPM and LLMTPM are the project's requests and tokens per minute for all members together, from the budget tree; 0 = the configured default.
|
|
425
|
+
*/
|
|
426
|
+
llm_rpm?: number;
|
|
427
|
+
llm_tpm?: number;
|
|
424
428
|
members?: Array<WorkspaceMember>;
|
|
425
429
|
name?: string;
|
|
426
430
|
profiles?: Array<string>;
|
|
@@ -429,16 +433,38 @@ export type WorkspaceProject = {
|
|
|
429
433
|
*/
|
|
430
434
|
slug?: string;
|
|
431
435
|
/**
|
|
432
|
-
* the project's
|
|
436
|
+
* StorageGB is the project's workspace storage in GB, from the budget tree: one volume for the homes of its members and their shared folder (StoragePVCPrefix); 0 = no volume, servers then start with an empty home that is lost when they end.
|
|
437
|
+
*/
|
|
438
|
+
storage_gb?: number;
|
|
439
|
+
/**
|
|
440
|
+
* the project's node in the budget tree (resource-management-api); set = the tree manages members, end, the project's budgets and GPUs, and the LLM tokens, rate limits and models
|
|
433
441
|
*/
|
|
434
442
|
tree_node?: string;
|
|
435
443
|
updated_at?: string;
|
|
436
444
|
updated_by?: string;
|
|
437
445
|
};
|
|
446
|
+
export type WorkspaceStorageDir = {
|
|
447
|
+
dir?: string;
|
|
448
|
+
inodes?: number;
|
|
449
|
+
name?: string;
|
|
450
|
+
project?: string;
|
|
451
|
+
/**
|
|
452
|
+
* 0 = no quota
|
|
453
|
+
*/
|
|
454
|
+
quota_gib?: number;
|
|
455
|
+
used_gib?: number;
|
|
456
|
+
};
|
|
457
|
+
export type WorkspaceStorageReport = {
|
|
458
|
+
dirs?: Array<WorkspaceStorageDir>;
|
|
459
|
+
dirs_at?: string;
|
|
460
|
+
used_gib?: number;
|
|
461
|
+
valkey?: WorkspaceValkeyMemory;
|
|
462
|
+
valkey_at?: string;
|
|
463
|
+
};
|
|
438
464
|
export type WorkspaceTreeBudget = {
|
|
439
465
|
amount?: number;
|
|
440
466
|
gpu_class?: string;
|
|
441
|
-
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours' | 'llm_mtokens';
|
|
467
|
+
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours' | 'llm_mtokens' | 'storage_gb';
|
|
442
468
|
window?: '24h' | '7d' | '30d';
|
|
443
469
|
};
|
|
444
470
|
export type WorkspaceTreeProject = {
|
|
@@ -447,9 +473,22 @@ export type WorkspaceTreeProject = {
|
|
|
447
473
|
gpus_by_class?: {
|
|
448
474
|
[key: string]: number;
|
|
449
475
|
};
|
|
476
|
+
/**
|
|
477
|
+
* LLMModels are model groups the project was granted on top of the base models every project has.
|
|
478
|
+
*/
|
|
479
|
+
llm_models?: Array<string>;
|
|
450
480
|
llm_mtokens?: number;
|
|
481
|
+
/**
|
|
482
|
+
* LLMRPM and LLMTPM are the project's requests and tokens per minute, for all its members together; 0 = not set (the configured default then).
|
|
483
|
+
*/
|
|
484
|
+
llm_rpm?: number;
|
|
485
|
+
llm_tpm?: number;
|
|
451
486
|
members?: Array<WorkspaceMember>;
|
|
452
487
|
name?: string;
|
|
488
|
+
/**
|
|
489
|
+
* StorageGB is the project's workspace storage (homes and shared folder together); 0 = none.
|
|
490
|
+
*/
|
|
491
|
+
storage_gb?: number;
|
|
453
492
|
};
|
|
454
493
|
export type WorkspaceTreeStatus = {
|
|
455
494
|
node?: string;
|
|
@@ -459,115 +498,23 @@ export type WorkspaceTreeStatus = {
|
|
|
459
498
|
export type WorkspaceTreeUse = {
|
|
460
499
|
amount?: number;
|
|
461
500
|
gpu_class?: string;
|
|
462
|
-
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours' | 'llm_mtokens';
|
|
501
|
+
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours' | 'llm_mtokens' | 'storage_gb';
|
|
463
502
|
used?: number;
|
|
464
503
|
window?: '24h' | '7d' | '30d';
|
|
465
504
|
};
|
|
466
|
-
export type
|
|
467
|
-
export type ListAccessRulesData = {
|
|
468
|
-
body?: never;
|
|
469
|
-
path?: never;
|
|
470
|
-
query?: never;
|
|
471
|
-
url: '/v1/access-rules';
|
|
472
|
-
};
|
|
473
|
-
export type ListAccessRulesErrors = {
|
|
505
|
+
export type WorkspaceValkeyMemory = {
|
|
474
506
|
/**
|
|
475
|
-
*
|
|
507
|
+
* maxmemory; 0 = none set
|
|
476
508
|
*/
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
export type ListAccessRulesResponses = {
|
|
509
|
+
max_bytes?: number;
|
|
510
|
+
peak_bytes?: number;
|
|
511
|
+
rss_bytes?: number;
|
|
481
512
|
/**
|
|
482
|
-
*
|
|
513
|
+
* RAM of the node
|
|
483
514
|
*/
|
|
484
|
-
|
|
515
|
+
system_bytes?: number;
|
|
516
|
+
used_bytes?: number;
|
|
485
517
|
};
|
|
486
|
-
export type ListAccessRulesResponse = ListAccessRulesResponses[keyof ListAccessRulesResponses];
|
|
487
|
-
export type CreateAccessRuleData = {
|
|
488
|
-
/**
|
|
489
|
-
* Rule
|
|
490
|
-
*/
|
|
491
|
-
body: WebserverRuleRequest2;
|
|
492
|
-
path?: never;
|
|
493
|
-
query?: never;
|
|
494
|
-
url: '/v1/access-rules';
|
|
495
|
-
};
|
|
496
|
-
export type CreateAccessRuleErrors = {
|
|
497
|
-
/**
|
|
498
|
-
* Bad Request
|
|
499
|
-
*/
|
|
500
|
-
400: WebserverErrorResponse;
|
|
501
|
-
/**
|
|
502
|
-
* Conflict
|
|
503
|
-
*/
|
|
504
|
-
409: WebserverErrorResponse;
|
|
505
|
-
};
|
|
506
|
-
export type CreateAccessRuleError = CreateAccessRuleErrors[keyof CreateAccessRuleErrors];
|
|
507
|
-
export type CreateAccessRuleResponses = {
|
|
508
|
-
/**
|
|
509
|
-
* Created
|
|
510
|
-
*/
|
|
511
|
-
201: AccessRule;
|
|
512
|
-
};
|
|
513
|
-
export type CreateAccessRuleResponse = CreateAccessRuleResponses[keyof CreateAccessRuleResponses];
|
|
514
|
-
export type DeleteAccessRuleData = {
|
|
515
|
-
body?: never;
|
|
516
|
-
path: {
|
|
517
|
-
/**
|
|
518
|
-
* Rule id
|
|
519
|
-
*/
|
|
520
|
-
id: number;
|
|
521
|
-
};
|
|
522
|
-
query?: never;
|
|
523
|
-
url: '/v1/access-rules/{id}';
|
|
524
|
-
};
|
|
525
|
-
export type DeleteAccessRuleErrors = {
|
|
526
|
-
/**
|
|
527
|
-
* Not Found
|
|
528
|
-
*/
|
|
529
|
-
404: WebserverErrorResponse;
|
|
530
|
-
};
|
|
531
|
-
export type DeleteAccessRuleError = DeleteAccessRuleErrors[keyof DeleteAccessRuleErrors];
|
|
532
|
-
export type DeleteAccessRuleResponses = {
|
|
533
|
-
/**
|
|
534
|
-
* No Content
|
|
535
|
-
*/
|
|
536
|
-
204: void;
|
|
537
|
-
};
|
|
538
|
-
export type DeleteAccessRuleResponse = DeleteAccessRuleResponses[keyof DeleteAccessRuleResponses];
|
|
539
|
-
export type UpdateAccessRuleData = {
|
|
540
|
-
/**
|
|
541
|
-
* Rule
|
|
542
|
-
*/
|
|
543
|
-
body: WebserverRuleRequest2;
|
|
544
|
-
path: {
|
|
545
|
-
/**
|
|
546
|
-
* Rule id
|
|
547
|
-
*/
|
|
548
|
-
id: number;
|
|
549
|
-
};
|
|
550
|
-
query?: never;
|
|
551
|
-
url: '/v1/access-rules/{id}';
|
|
552
|
-
};
|
|
553
|
-
export type UpdateAccessRuleErrors = {
|
|
554
|
-
/**
|
|
555
|
-
* Bad Request
|
|
556
|
-
*/
|
|
557
|
-
400: WebserverErrorResponse;
|
|
558
|
-
/**
|
|
559
|
-
* Not Found
|
|
560
|
-
*/
|
|
561
|
-
404: WebserverErrorResponse;
|
|
562
|
-
};
|
|
563
|
-
export type UpdateAccessRuleError = UpdateAccessRuleErrors[keyof UpdateAccessRuleErrors];
|
|
564
|
-
export type UpdateAccessRuleResponses = {
|
|
565
|
-
/**
|
|
566
|
-
* OK
|
|
567
|
-
*/
|
|
568
|
-
200: AccessRule;
|
|
569
|
-
};
|
|
570
|
-
export type UpdateAccessRuleResponse = UpdateAccessRuleResponses[keyof UpdateAccessRuleResponses];
|
|
571
518
|
export type GetFleetData = {
|
|
572
519
|
body?: never;
|
|
573
520
|
path?: never;
|
|
@@ -967,7 +914,7 @@ export type StopGpuServerData = {
|
|
|
967
914
|
body?: never;
|
|
968
915
|
path: {
|
|
969
916
|
/**
|
|
970
|
-
* Server name
|
|
917
|
+
* Server name, \
|
|
971
918
|
*/
|
|
972
919
|
name: string;
|
|
973
920
|
};
|
|
@@ -1111,48 +1058,6 @@ export type GetMeResponses = {
|
|
|
1111
1058
|
200: WebserverMeResponse;
|
|
1112
1059
|
};
|
|
1113
1060
|
export type GetMeResponse = GetMeResponses[keyof GetMeResponses];
|
|
1114
|
-
export type SearchPrincipalsData = {
|
|
1115
|
-
body?: never;
|
|
1116
|
-
path?: never;
|
|
1117
|
-
query?: {
|
|
1118
|
-
/**
|
|
1119
|
-
* Search text
|
|
1120
|
-
*/
|
|
1121
|
-
q?: string;
|
|
1122
|
-
/**
|
|
1123
|
-
* Maximum entries per kind (default 10, at most 50)
|
|
1124
|
-
*/
|
|
1125
|
-
limit?: number;
|
|
1126
|
-
};
|
|
1127
|
-
url: '/v1/principals/search';
|
|
1128
|
-
};
|
|
1129
|
-
export type SearchPrincipalsErrors = {
|
|
1130
|
-
/**
|
|
1131
|
-
* Bad Gateway
|
|
1132
|
-
*/
|
|
1133
|
-
502: WebserverErrorResponse;
|
|
1134
|
-
};
|
|
1135
|
-
export type SearchPrincipalsError = SearchPrincipalsErrors[keyof SearchPrincipalsErrors];
|
|
1136
|
-
export type SearchPrincipalsResponses = {
|
|
1137
|
-
/**
|
|
1138
|
-
* OK
|
|
1139
|
-
*/
|
|
1140
|
-
200: WebserverPrincipalSearchResponse;
|
|
1141
|
-
};
|
|
1142
|
-
export type SearchPrincipalsResponse = SearchPrincipalsResponses[keyof SearchPrincipalsResponses];
|
|
1143
|
-
export type ListTiersData = {
|
|
1144
|
-
body?: never;
|
|
1145
|
-
path?: never;
|
|
1146
|
-
query?: never;
|
|
1147
|
-
url: '/v1/tiers';
|
|
1148
|
-
};
|
|
1149
|
-
export type ListTiersResponses = {
|
|
1150
|
-
/**
|
|
1151
|
-
* OK
|
|
1152
|
-
*/
|
|
1153
|
-
200: Array<string>;
|
|
1154
|
-
};
|
|
1155
|
-
export type ListTiersResponse = ListTiersResponses[keyof ListTiersResponses];
|
|
1156
1061
|
export type GetTreeCatalogData = {
|
|
1157
1062
|
body?: never;
|
|
1158
1063
|
path?: never;
|
|
@@ -1170,7 +1075,7 @@ export type GetTreeCatalogResponses = {
|
|
|
1170
1075
|
/**
|
|
1171
1076
|
* OK
|
|
1172
1077
|
*/
|
|
1173
|
-
200:
|
|
1078
|
+
200: WebserverTreeCatalog;
|
|
1174
1079
|
};
|
|
1175
1080
|
export type GetTreeCatalogResponse = GetTreeCatalogResponses[keyof GetTreeCatalogResponses];
|
|
1176
1081
|
export type ListTreeProjectsData = {
|
|
@@ -1377,6 +1282,26 @@ export type UpdateWorkspaceProjectResponses = {
|
|
|
1377
1282
|
200: WorkspaceProject;
|
|
1378
1283
|
};
|
|
1379
1284
|
export type UpdateWorkspaceProjectResponse = UpdateWorkspaceProjectResponses[keyof UpdateWorkspaceProjectResponses];
|
|
1285
|
+
export type GetWorkspaceStorageData = {
|
|
1286
|
+
body?: never;
|
|
1287
|
+
path?: never;
|
|
1288
|
+
query?: never;
|
|
1289
|
+
url: '/v1/workspaces/storage';
|
|
1290
|
+
};
|
|
1291
|
+
export type GetWorkspaceStorageErrors = {
|
|
1292
|
+
/**
|
|
1293
|
+
* Forbidden
|
|
1294
|
+
*/
|
|
1295
|
+
403: WebserverErrorResponse;
|
|
1296
|
+
};
|
|
1297
|
+
export type GetWorkspaceStorageError = GetWorkspaceStorageErrors[keyof GetWorkspaceStorageErrors];
|
|
1298
|
+
export type GetWorkspaceStorageResponses = {
|
|
1299
|
+
/**
|
|
1300
|
+
* OK
|
|
1301
|
+
*/
|
|
1302
|
+
200: WorkspaceStorageReport;
|
|
1303
|
+
};
|
|
1304
|
+
export type GetWorkspaceStorageResponse = GetWorkspaceStorageResponses[keyof GetWorkspaceStorageResponses];
|
|
1380
1305
|
export type GetWorkspaceUsageData = {
|
|
1381
1306
|
body?: never;
|
|
1382
1307
|
path?: never;
|