@dhbw-cloud/llm-client 0.1.1 → 0.2.0-test.7
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 +79 -7
- package/dist/sdk.gen.d.ts +70 -10
- package/dist/types.gen.d.ts +540 -23
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { blockMachine, createAccessRule, createGpuEnvironment, createKey, deleteAccessRule, deleteFleetPackage, deleteGpuEnvironment, deleteKey, forgetMachine, getFleet, getFleetInference, getFleetInventoryCsv, getFleetPackage, getFleetProfile, getFleetReadme, getGpuEnvironment, getGpuEnvironmentLog, getMe, getUsage, listAccessRules, listGpuEnvironments, listGpuServers,
|
|
2
|
-
export type { AccessRole, AccessRule, BlockMachineData, BlockMachineError, BlockMachineErrors, BlockMachineResponse, BlockMachineResponses, ClientOptions, CreateAccessRuleData, CreateAccessRuleError, CreateAccessRuleErrors, CreateAccessRuleResponse, CreateAccessRuleResponses, CreateGpuEnvironmentData, CreateGpuEnvironmentError, CreateGpuEnvironmentErrors, CreateGpuEnvironmentResponse, CreateGpuEnvironmentResponses, CreateKeyData, CreateKeyError, CreateKeyErrors, CreateKeyResponse, CreateKeyResponses, DeleteAccessRuleData, DeleteAccessRuleError, DeleteAccessRuleErrors, DeleteAccessRuleResponse, DeleteAccessRuleResponses, DeleteFleetPackageData, DeleteFleetPackageResponse, DeleteFleetPackageResponses, DeleteGpuEnvironmentData, DeleteGpuEnvironmentError, DeleteGpuEnvironmentErrors, DeleteGpuEnvironmentResponse, DeleteGpuEnvironmentResponses, DeleteKeyData, DeleteKeyError, DeleteKeyErrors, DeleteKeyResponse, DeleteKeyResponses, 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, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GpuEnvironment, GpuInferencePod, GpuInferencePool, GpuServer, GpuStatus, KeysKeyView, KeysUsage, ListAccessRulesData, ListAccessRulesError, ListAccessRulesErrors, ListAccessRulesResponse, ListAccessRulesResponses, ListGpuEnvironmentsData, ListGpuEnvironmentsError, ListGpuEnvironmentsErrors, ListGpuEnvironmentsResponse, ListGpuEnvironmentsResponses, ListGpuServersData, ListGpuServersError, ListGpuServersErrors, ListGpuServersResponse, ListGpuServersResponses,
|
|
1
|
+
export { blockMachine, createAccessRule, createGpuEnvironment, createKey, deleteAccessRule, deleteFleetPackage, deleteGpuEnvironment, deleteKey, deleteTreeProject, deleteWorkspaceProject, forgetMachine, getFleet, getFleetInference, getFleetInventoryCsv, getFleetPackage, getFleetProfile, getFleetReadme, getGpuEnvironment, getGpuEnvironmentLog, getMe, getMyWorkspaceUsage, getTreeCatalog, getUsage, getWorkspaceCatalog, getWorkspaceUsage, listAccessRules, listGpuEnvironments, listGpuServers, listKeys, listTiers, listTreeProjects, listWorkspaceProjects, type Options, putTreeProject, rebuildGpuEnvironment, searchPrincipals, setDefaultProject, startGpuEnvironment, stopGpuServer, unblockMachine, updateAccessRule, updateWorkspaceProject } from './sdk.gen';
|
|
2
|
+
export type { AccessRole, AccessRule, BlockMachineData, BlockMachineError, BlockMachineErrors, BlockMachineResponse, BlockMachineResponses, ClientOptions, CreateAccessRuleData, CreateAccessRuleError, CreateAccessRuleErrors, CreateAccessRuleResponse, CreateAccessRuleResponses, CreateGpuEnvironmentData, CreateGpuEnvironmentError, CreateGpuEnvironmentErrors, CreateGpuEnvironmentResponse, CreateGpuEnvironmentResponses, CreateKeyData, CreateKeyError, CreateKeyErrors, CreateKeyResponse, CreateKeyResponses, DeleteAccessRuleData, DeleteAccessRuleError, DeleteAccessRuleErrors, DeleteAccessRuleResponse, DeleteAccessRuleResponses, 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, GetWorkspaceUsageData, GetWorkspaceUsageError, GetWorkspaceUsageErrors, GetWorkspaceUsageResponse, GetWorkspaceUsageResponses, GpuEnvironment, GpuInferencePod, GpuInferencePool, GpuServer, GpuStatus, KeysKeyView, KeysProjectUsage, KeysUsage, ListAccessRulesData, ListAccessRulesError, ListAccessRulesErrors, ListAccessRulesResponse, ListAccessRulesResponses, ListGpuEnvironmentsData, ListGpuEnvironmentsError, ListGpuEnvironmentsErrors, ListGpuEnvironmentsResponse, ListGpuEnvironmentsResponses, ListGpuServersData, ListGpuServersError, ListGpuServersErrors, ListGpuServersResponse, ListGpuServersResponses, ListKeysData, ListKeysError, ListKeysErrors, ListKeysResponse, ListKeysResponses, ListTiersData, ListTiersResponse, ListTiersResponses, ListTreeProjectsData, ListTreeProjectsError, ListTreeProjectsErrors, ListTreeProjectsResponse, ListTreeProjectsResponses, ListWorkspaceProjectsData, ListWorkspaceProjectsResponse, ListWorkspaceProjectsResponses, PutTreeProjectData, PutTreeProjectError, PutTreeProjectErrors, PutTreeProjectResponse, PutTreeProjectResponses, RebuildGpuEnvironmentData, RebuildGpuEnvironmentError, RebuildGpuEnvironmentErrors, RebuildGpuEnvironmentResponse, RebuildGpuEnvironmentResponses, RoleproviderGroup, SearchPrincipalsData, SearchPrincipalsError, SearchPrincipalsErrors, SearchPrincipalsResponse, SearchPrincipalsResponses, SetDefaultProjectData, SetDefaultProjectError, SetDefaultProjectErrors, SetDefaultProjectResponse, SetDefaultProjectResponses, StartGpuEnvironmentData, StartGpuEnvironmentError, StartGpuEnvironmentErrors, StartGpuEnvironmentResponse, StartGpuEnvironmentResponses, StopGpuServerData, StopGpuServerError, StopGpuServerErrors, StopGpuServerResponse, StopGpuServerResponses, UnblockMachineData, UnblockMachineError, UnblockMachineErrors, UnblockMachineResponse, UnblockMachineResponses, UpdateAccessRuleData, UpdateAccessRuleError, UpdateAccessRuleErrors, UpdateAccessRuleResponse, UpdateAccessRuleResponses, UpdateWorkspaceProjectData, UpdateWorkspaceProjectError, UpdateWorkspaceProjectErrors, UpdateWorkspaceProjectResponse, UpdateWorkspaceProjectResponses, UsageReport, UsageTotal, WebserverBuildLogResponse, WebserverCreateKeyRequest, WebserverCreateKeyResponse, WebserverDefaultProjectRequest, WebserverDefaultProjectResponse, WebserverEnvironmentRequest, WebserverErrorResponse, WebserverMeResponse, WebserverPrincipalSearchResponse, WebserverRuleRequest, WebserverRuleRequest2, WebserverStartRequest, WebserverStartResponse, WorkspaceBudget, WorkspaceBudgetStatus, WorkspaceConfig, WorkspaceImage, WorkspaceLimits, WorkspaceMember, WorkspaceMine, WorkspaceProfile, WorkspaceProject, WorkspaceTreeBudget, WorkspaceTreeProject, WorkspaceTreeStatus, WorkspaceTreeUse } from './types.gen';
|
package/dist/index.mjs
CHANGED
|
@@ -865,11 +865,6 @@ var unblockMachine = (options) => (options.client ?? client).post({
|
|
|
865
865
|
url: "/v1/fleet/{serial}/unblock",
|
|
866
866
|
...options
|
|
867
867
|
});
|
|
868
|
-
var listGpuTiers = (options) => (options?.client ?? client).get({
|
|
869
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
870
|
-
url: "/v1/gpu-tiers",
|
|
871
|
-
...options
|
|
872
|
-
});
|
|
873
868
|
var listGpuEnvironments = (options) => (options?.client ?? client).get({
|
|
874
869
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
875
870
|
url: "/v1/gpu/environments",
|
|
@@ -937,6 +932,15 @@ var createKey = (options) => (options.client ?? client).post({
|
|
|
937
932
|
...options.headers
|
|
938
933
|
}
|
|
939
934
|
});
|
|
935
|
+
var setDefaultProject = (options) => (options.client ?? client).put({
|
|
936
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
937
|
+
url: "/v1/keys/default-project",
|
|
938
|
+
...options,
|
|
939
|
+
headers: {
|
|
940
|
+
"Content-Type": "application/json",
|
|
941
|
+
...options.headers
|
|
942
|
+
}
|
|
943
|
+
});
|
|
940
944
|
var deleteKey = (options) => (options.client ?? client).delete({
|
|
941
945
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
942
946
|
url: "/v1/keys/{id}",
|
|
@@ -957,11 +961,69 @@ var listTiers = (options) => (options?.client ?? client).get({
|
|
|
957
961
|
url: "/v1/tiers",
|
|
958
962
|
...options
|
|
959
963
|
});
|
|
964
|
+
var getTreeCatalog = (options) => (options?.client ?? client).get({
|
|
965
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
966
|
+
url: "/v1/tree/catalog",
|
|
967
|
+
...options
|
|
968
|
+
});
|
|
969
|
+
var listTreeProjects = (options) => (options?.client ?? client).get({
|
|
970
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
971
|
+
url: "/v1/tree/projects",
|
|
972
|
+
...options
|
|
973
|
+
});
|
|
974
|
+
var deleteTreeProject = (options) => (options.client ?? client).delete({
|
|
975
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
976
|
+
url: "/v1/tree/projects/{node}",
|
|
977
|
+
...options
|
|
978
|
+
});
|
|
979
|
+
var putTreeProject = (options) => (options.client ?? client).put({
|
|
980
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
981
|
+
url: "/v1/tree/projects/{node}",
|
|
982
|
+
...options,
|
|
983
|
+
headers: {
|
|
984
|
+
"Content-Type": "application/json",
|
|
985
|
+
...options.headers
|
|
986
|
+
}
|
|
987
|
+
});
|
|
960
988
|
var getUsage = (options) => (options?.client ?? client).get({
|
|
961
989
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
962
990
|
url: "/v1/usage",
|
|
963
991
|
...options
|
|
964
992
|
});
|
|
993
|
+
var getWorkspaceCatalog = (options) => (options?.client ?? client).get({
|
|
994
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
995
|
+
url: "/v1/workspaces/catalog",
|
|
996
|
+
...options
|
|
997
|
+
});
|
|
998
|
+
var listWorkspaceProjects = (options) => (options?.client ?? client).get({
|
|
999
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
1000
|
+
url: "/v1/workspaces/projects",
|
|
1001
|
+
...options
|
|
1002
|
+
});
|
|
1003
|
+
var deleteWorkspaceProject = (options) => (options.client ?? client).delete({
|
|
1004
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
1005
|
+
url: "/v1/workspaces/projects/{slug}",
|
|
1006
|
+
...options
|
|
1007
|
+
});
|
|
1008
|
+
var updateWorkspaceProject = (options) => (options.client ?? client).put({
|
|
1009
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
1010
|
+
url: "/v1/workspaces/projects/{slug}",
|
|
1011
|
+
...options,
|
|
1012
|
+
headers: {
|
|
1013
|
+
"Content-Type": "application/json",
|
|
1014
|
+
...options.headers
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
var getWorkspaceUsage = (options) => (options?.client ?? client).get({
|
|
1018
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
1019
|
+
url: "/v1/workspaces/usage",
|
|
1020
|
+
...options
|
|
1021
|
+
});
|
|
1022
|
+
var getMyWorkspaceUsage = (options) => (options?.client ?? client).get({
|
|
1023
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
1024
|
+
url: "/v1/workspaces/usage/me",
|
|
1025
|
+
...options
|
|
1026
|
+
});
|
|
965
1027
|
export {
|
|
966
1028
|
blockMachine,
|
|
967
1029
|
client,
|
|
@@ -972,6 +1034,8 @@ export {
|
|
|
972
1034
|
deleteFleetPackage,
|
|
973
1035
|
deleteGpuEnvironment,
|
|
974
1036
|
deleteKey,
|
|
1037
|
+
deleteTreeProject,
|
|
1038
|
+
deleteWorkspaceProject,
|
|
975
1039
|
forgetMachine,
|
|
976
1040
|
getFleet,
|
|
977
1041
|
getFleetInference,
|
|
@@ -982,17 +1046,25 @@ export {
|
|
|
982
1046
|
getGpuEnvironment,
|
|
983
1047
|
getGpuEnvironmentLog,
|
|
984
1048
|
getMe,
|
|
1049
|
+
getMyWorkspaceUsage,
|
|
1050
|
+
getTreeCatalog,
|
|
985
1051
|
getUsage,
|
|
1052
|
+
getWorkspaceCatalog,
|
|
1053
|
+
getWorkspaceUsage,
|
|
986
1054
|
listAccessRules,
|
|
987
1055
|
listGpuEnvironments,
|
|
988
1056
|
listGpuServers,
|
|
989
|
-
listGpuTiers,
|
|
990
1057
|
listKeys,
|
|
991
1058
|
listTiers,
|
|
1059
|
+
listTreeProjects,
|
|
1060
|
+
listWorkspaceProjects,
|
|
1061
|
+
putTreeProject,
|
|
992
1062
|
rebuildGpuEnvironment,
|
|
993
1063
|
searchPrincipals,
|
|
1064
|
+
setDefaultProject,
|
|
994
1065
|
startGpuEnvironment,
|
|
995
1066
|
stopGpuServer,
|
|
996
1067
|
unblockMachine,
|
|
997
|
-
updateAccessRule
|
|
1068
|
+
updateAccessRule,
|
|
1069
|
+
updateWorkspaceProject
|
|
998
1070
|
};
|
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, CreateAccessRuleData, CreateAccessRuleErrors, CreateAccessRuleResponses, CreateGpuEnvironmentData, CreateGpuEnvironmentErrors, CreateGpuEnvironmentResponses, CreateKeyData, CreateKeyErrors, CreateKeyResponses, DeleteAccessRuleData, DeleteAccessRuleErrors, DeleteAccessRuleResponses, DeleteFleetPackageData, DeleteFleetPackageResponses, DeleteGpuEnvironmentData, DeleteGpuEnvironmentErrors, DeleteGpuEnvironmentResponses, DeleteKeyData, DeleteKeyErrors, DeleteKeyResponses, 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, GetUsageData, GetUsageErrors, GetUsageResponses, ListAccessRulesData, ListAccessRulesErrors, ListAccessRulesResponses, ListGpuEnvironmentsData, ListGpuEnvironmentsErrors, ListGpuEnvironmentsResponses, ListGpuServersData, ListGpuServersErrors, ListGpuServersResponses,
|
|
2
|
+
import type { BlockMachineData, BlockMachineErrors, BlockMachineResponses, CreateAccessRuleData, CreateAccessRuleErrors, CreateAccessRuleResponses, CreateGpuEnvironmentData, CreateGpuEnvironmentErrors, CreateGpuEnvironmentResponses, CreateKeyData, CreateKeyErrors, CreateKeyResponses, DeleteAccessRuleData, DeleteAccessRuleErrors, DeleteAccessRuleResponses, 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, GetWorkspaceUsageData, GetWorkspaceUsageErrors, GetWorkspaceUsageResponses, ListAccessRulesData, ListAccessRulesErrors, ListAccessRulesResponses, ListGpuEnvironmentsData, ListGpuEnvironmentsErrors, ListGpuEnvironmentsResponses, ListGpuServersData, ListGpuServersErrors, ListGpuServersResponses, ListKeysData, ListKeysErrors, ListKeysResponses, ListTiersData, ListTiersResponses, ListTreeProjectsData, ListTreeProjectsErrors, ListTreeProjectsResponses, ListWorkspaceProjectsData, ListWorkspaceProjectsResponses, PutTreeProjectData, PutTreeProjectErrors, PutTreeProjectResponses, RebuildGpuEnvironmentData, RebuildGpuEnvironmentErrors, RebuildGpuEnvironmentResponses, SearchPrincipalsData, SearchPrincipalsErrors, SearchPrincipalsResponses, SetDefaultProjectData, SetDefaultProjectErrors, SetDefaultProjectResponses, StartGpuEnvironmentData, StartGpuEnvironmentErrors, StartGpuEnvironmentResponses, StopGpuServerData, StopGpuServerErrors, StopGpuServerResponses, UnblockMachineData, UnblockMachineErrors, UnblockMachineResponses, UpdateAccessRuleData, UpdateAccessRuleErrors, UpdateAccessRuleResponses, 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
|
|
@@ -81,12 +81,6 @@ export declare const blockMachine: <ThrowOnError extends boolean = false>(option
|
|
|
81
81
|
* Unblock a machine
|
|
82
82
|
*/
|
|
83
83
|
export declare const unblockMachine: <ThrowOnError extends boolean = false>(options: Options<UnblockMachineData, ThrowOnError>) => RequestResult<UnblockMachineResponses, UnblockMachineErrors, ThrowOnError>;
|
|
84
|
-
/**
|
|
85
|
-
* GPU tiers a rule may use
|
|
86
|
-
*
|
|
87
|
-
* Empty when the GPU part is not enabled.
|
|
88
|
-
*/
|
|
89
|
-
export declare const listGpuTiers: <ThrowOnError extends boolean = false>(options?: Options<ListGpuTiersData, ThrowOnError>) => RequestResult<ListGpuTiersResponses, unknown, ThrowOnError>;
|
|
90
84
|
/**
|
|
91
85
|
* My environments
|
|
92
86
|
*
|
|
@@ -142,9 +136,15 @@ export declare const listKeys: <ThrowOnError extends boolean = false>(options?:
|
|
|
142
136
|
/**
|
|
143
137
|
* Create an API key
|
|
144
138
|
*
|
|
145
|
-
* The name is required and unique per person. The secret is returned exactly once.
|
|
139
|
+
* The name is required and unique per person. The key spends the LLM tokens of the given project (one of the caller's, see getUsage), of the caller's default project when none is given. The secret is returned exactly once.
|
|
146
140
|
*/
|
|
147
141
|
export declare const createKey: <ThrowOnError extends boolean = false>(options: Options<CreateKeyData, ThrowOnError>) => RequestResult<CreateKeyResponses, CreateKeyErrors, ThrowOnError>;
|
|
142
|
+
/**
|
|
143
|
+
* Set the caller's default project
|
|
144
|
+
*
|
|
145
|
+
* The project whose LLM tokens the chat and new API keys use when no project is named; one of the caller's projects with LLM tokens. The chat moves to it right away.
|
|
146
|
+
*/
|
|
147
|
+
export declare const setDefaultProject: <ThrowOnError extends boolean = false>(options: Options<SetDefaultProjectData, ThrowOnError>) => RequestResult<SetDefaultProjectResponses, SetDefaultProjectErrors, ThrowOnError>;
|
|
148
148
|
/**
|
|
149
149
|
* Delete one of the caller's API keys
|
|
150
150
|
*/
|
|
@@ -152,7 +152,7 @@ export declare const deleteKey: <ThrowOnError extends boolean = false>(options:
|
|
|
152
152
|
/**
|
|
153
153
|
* Who am I, and what may I do?
|
|
154
154
|
*
|
|
155
|
-
* Always 200 for an authenticated caller. Without access, role is empty.
|
|
155
|
+
* Always 200 for an authenticated caller. Without an access rule, role is empty; without LLM tokens from a project, llm_mtokens is 0 and the LLM links are missing.
|
|
156
156
|
*/
|
|
157
157
|
export declare const getMe: <ThrowOnError extends boolean = false>(options?: Options<GetMeData, ThrowOnError>) => RequestResult<GetMeResponses, GetMeErrors, ThrowOnError>;
|
|
158
158
|
/**
|
|
@@ -165,9 +165,69 @@ export declare const searchPrincipals: <ThrowOnError extends boolean = false>(op
|
|
|
165
165
|
* Quota tiers a rule may use
|
|
166
166
|
*/
|
|
167
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.
|
|
172
|
+
*/
|
|
173
|
+
export declare const getTreeCatalog: <ThrowOnError extends boolean = false>(options?: Options<GetTreeCatalogData, ThrowOnError>) => RequestResult<GetTreeCatalogResponses, GetTreeCatalogErrors, ThrowOnError>;
|
|
174
|
+
/**
|
|
175
|
+
* Projects of the budget tree
|
|
176
|
+
*
|
|
177
|
+
* Every project the budget tree manages, with what it used of its tree budgets in the current windows. For resource-management-api, with its own token.
|
|
178
|
+
*/
|
|
179
|
+
export declare const listTreeProjects: <ThrowOnError extends boolean = false>(options?: Options<ListTreeProjectsData, ThrowOnError>) => RequestResult<ListTreeProjectsResponses, ListTreeProjectsErrors, ThrowOnError>;
|
|
180
|
+
/**
|
|
181
|
+
* Delete a project of the budget tree
|
|
182
|
+
*
|
|
183
|
+
* Removes the node's project; its usage stays booked. 404 when there is none.
|
|
184
|
+
*/
|
|
185
|
+
export declare const deleteTreeProject: <ThrowOnError extends boolean = false>(options: Options<DeleteTreeProjectData, ThrowOnError>) => RequestResult<DeleteTreeProjectResponses, DeleteTreeProjectErrors, ThrowOnError>;
|
|
186
|
+
/**
|
|
187
|
+
* Create or update a project of the budget tree
|
|
188
|
+
*
|
|
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.
|
|
190
|
+
*/
|
|
191
|
+
export declare const putTreeProject: <ThrowOnError extends boolean = false>(options: Options<PutTreeProjectData, ThrowOnError>) => RequestResult<PutTreeProjectResponses, PutTreeProjectErrors, ThrowOnError>;
|
|
168
192
|
/**
|
|
169
193
|
* Quota, limits and keys of the caller
|
|
170
194
|
*
|
|
171
|
-
*
|
|
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, and which one is the caller's default —, the per-key short-term budgets, rate limits and allowed models.
|
|
172
196
|
*/
|
|
173
197
|
export declare const getUsage: <ThrowOnError extends boolean = false>(options?: Options<GetUsageData, ThrowOnError>) => RequestResult<GetUsageResponses, GetUsageErrors, ThrowOnError>;
|
|
198
|
+
/**
|
|
199
|
+
* Profiles and GPU classes
|
|
200
|
+
*
|
|
201
|
+
* What a project can allow: the JupyterHub profiles (with the GPU class they use) and the GPU classes.
|
|
202
|
+
*/
|
|
203
|
+
export declare const getWorkspaceCatalog: <ThrowOnError extends boolean = false>(options?: Options<GetWorkspaceCatalogData, ThrowOnError>) => RequestResult<GetWorkspaceCatalogResponses, GetWorkspaceCatalogErrors, ThrowOnError>;
|
|
204
|
+
/**
|
|
205
|
+
* Workspace projects
|
|
206
|
+
*
|
|
207
|
+
* The caller's active projects with their role. Admins with all=true: every project, also ended ones.
|
|
208
|
+
*/
|
|
209
|
+
export declare const listWorkspaceProjects: <ThrowOnError extends boolean = false>(options?: Options<ListWorkspaceProjectsData, ThrowOnError>) => RequestResult<ListWorkspaceProjectsResponses, unknown, ThrowOnError>;
|
|
210
|
+
/**
|
|
211
|
+
* Delete a workspace project
|
|
212
|
+
*
|
|
213
|
+
* Running servers keep running; usage stays booked to the project.
|
|
214
|
+
*/
|
|
215
|
+
export declare const deleteWorkspaceProject: <ThrowOnError extends boolean = false>(options: Options<DeleteWorkspaceProjectData, ThrowOnError>) => RequestResult<DeleteWorkspaceProjectResponses, DeleteWorkspaceProjectErrors, ThrowOnError>;
|
|
216
|
+
/**
|
|
217
|
+
* Change a workspace project
|
|
218
|
+
*
|
|
219
|
+
* Admins change everything; the project's managers only the description, the members and the images.
|
|
220
|
+
*/
|
|
221
|
+
export declare const updateWorkspaceProject: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkspaceProjectData, ThrowOnError>) => RequestResult<UpdateWorkspaceProjectResponses, UpdateWorkspaceProjectErrors, ThrowOnError>;
|
|
222
|
+
/**
|
|
223
|
+
* Usage of all workspaces
|
|
224
|
+
*
|
|
225
|
+
* What workspaces (Jupyter servers, GPU kernels) reserved per project, person, profile and GPU class: vCPU-h, RAM-GB-h, GPU-h, home GB-days, plus the measured use. Default period: the last 30 finished days. Admins see everything or one project; a project's managers see their project.
|
|
226
|
+
*/
|
|
227
|
+
export declare const getWorkspaceUsage: <ThrowOnError extends boolean = false>(options?: Options<GetWorkspaceUsageData, ThrowOnError>) => RequestResult<GetWorkspaceUsageResponses, GetWorkspaceUsageErrors, ThrowOnError>;
|
|
228
|
+
/**
|
|
229
|
+
* Own workspace usage
|
|
230
|
+
*
|
|
231
|
+
* The caller's own rows of the workspace usage, in every project. Default period: the last 30 finished days.
|
|
232
|
+
*/
|
|
233
|
+
export declare const getMyWorkspaceUsage: <ThrowOnError extends boolean = false>(options?: Options<GetMyWorkspaceUsageData, ThrowOnError>) => RequestResult<GetMyWorkspaceUsageResponses, GetMyWorkspaceUsageErrors, ThrowOnError>;
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export type AccessRule = {
|
|
|
10
10
|
*/
|
|
11
11
|
bootstrap?: boolean;
|
|
12
12
|
comment?: string;
|
|
13
|
-
gpu_tier?: string;
|
|
14
13
|
id?: number;
|
|
15
14
|
role?: AccessRole;
|
|
16
15
|
tier?: string;
|
|
@@ -22,6 +21,10 @@ export type FleetFleetView = {
|
|
|
22
21
|
allowed_serials?: number;
|
|
23
22
|
capacity?: number;
|
|
24
23
|
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* the name machines dial (IPv4 name when set), without port
|
|
26
|
+
*/
|
|
27
|
+
endpoint?: string;
|
|
25
28
|
endpoint_v6?: string;
|
|
26
29
|
enroll_host?: string;
|
|
27
30
|
enroll_token?: string;
|
|
@@ -142,19 +145,28 @@ export type KeysKeyView = {
|
|
|
142
145
|
chat?: boolean;
|
|
143
146
|
id?: string;
|
|
144
147
|
name?: string;
|
|
148
|
+
project?: string;
|
|
149
|
+
project_name?: string;
|
|
145
150
|
reset_at?: string;
|
|
146
151
|
spend?: number;
|
|
147
152
|
};
|
|
148
|
-
export type
|
|
153
|
+
export type KeysProjectUsage = {
|
|
149
154
|
budget?: number;
|
|
150
155
|
budget_duration?: string;
|
|
156
|
+
default?: boolean;
|
|
157
|
+
mtokens?: number;
|
|
158
|
+
name?: string;
|
|
159
|
+
reset_at?: string;
|
|
160
|
+
slug?: string;
|
|
161
|
+
spend?: number;
|
|
162
|
+
};
|
|
163
|
+
export type KeysUsage = {
|
|
151
164
|
keys?: Array<KeysKeyView>;
|
|
152
165
|
max_keys?: number;
|
|
153
166
|
models?: Array<string>;
|
|
154
167
|
own_keys?: number;
|
|
155
|
-
|
|
168
|
+
projects?: Array<KeysProjectUsage>;
|
|
156
169
|
rpm?: number;
|
|
157
|
-
spend?: number;
|
|
158
170
|
tpm?: number;
|
|
159
171
|
};
|
|
160
172
|
export type RoleproviderGroup = {
|
|
@@ -165,15 +177,57 @@ export type RoleproviderGroup = {
|
|
|
165
177
|
label?: string;
|
|
166
178
|
token?: string;
|
|
167
179
|
};
|
|
180
|
+
export type UsageReport = {
|
|
181
|
+
entries?: Array<UsageTotal>;
|
|
182
|
+
from?: string;
|
|
183
|
+
per_day?: Array<UsageTotal>;
|
|
184
|
+
to?: string;
|
|
185
|
+
total?: UsageTotal;
|
|
186
|
+
};
|
|
187
|
+
export type UsageTotal = {
|
|
188
|
+
cpu_used_hours?: number;
|
|
189
|
+
day?: string;
|
|
190
|
+
/**
|
|
191
|
+
* days with usage
|
|
192
|
+
*/
|
|
193
|
+
days?: number;
|
|
194
|
+
gpu_class?: string;
|
|
195
|
+
gpu_hours?: number;
|
|
196
|
+
/**
|
|
197
|
+
* sum over days of the day's home size
|
|
198
|
+
*/
|
|
199
|
+
home_gb_days?: number;
|
|
200
|
+
last_active?: string;
|
|
201
|
+
person?: string;
|
|
202
|
+
profile?: string;
|
|
203
|
+
project?: string;
|
|
204
|
+
ram_gb_hours?: number;
|
|
205
|
+
ram_used_gb_hours?: number;
|
|
206
|
+
server_hours?: number;
|
|
207
|
+
vcpu_hours?: number;
|
|
208
|
+
};
|
|
168
209
|
export type WebserverBuildLogResponse = {
|
|
169
210
|
log?: string;
|
|
170
211
|
};
|
|
171
212
|
export type WebserverCreateKeyRequest = {
|
|
172
213
|
name: string;
|
|
214
|
+
/**
|
|
215
|
+
* Project is the slug of one of the caller's projects with LLM tokens; empty = the caller's default project.
|
|
216
|
+
*/
|
|
217
|
+
project?: string;
|
|
173
218
|
};
|
|
174
219
|
export type WebserverCreateKeyResponse = {
|
|
175
220
|
key?: string;
|
|
176
221
|
name?: string;
|
|
222
|
+
project?: string;
|
|
223
|
+
project_name?: string;
|
|
224
|
+
};
|
|
225
|
+
export type WebserverDefaultProjectRequest = {
|
|
226
|
+
project: string;
|
|
227
|
+
};
|
|
228
|
+
export type WebserverDefaultProjectResponse = {
|
|
229
|
+
project?: string;
|
|
230
|
+
project_name?: string;
|
|
177
231
|
};
|
|
178
232
|
export type WebserverEnvironmentRequest = {
|
|
179
233
|
git_url: string;
|
|
@@ -202,13 +256,20 @@ export type WebserverMeResponse = {
|
|
|
202
256
|
chat_url?: string;
|
|
203
257
|
email?: string;
|
|
204
258
|
/**
|
|
205
|
-
*
|
|
259
|
+
* JupyterHub, only with a project (and the GPU part enabled).
|
|
206
260
|
*/
|
|
207
|
-
gpu_tier?: string;
|
|
208
261
|
jupyter_url?: string;
|
|
262
|
+
/**
|
|
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; tier, chat and API only when it is more than 0.
|
|
264
|
+
*/
|
|
265
|
+
llm_mtokens?: number;
|
|
209
266
|
matched_token?: string;
|
|
210
267
|
role?: 'user' | 'fleet-admin' | 'admin';
|
|
211
268
|
tier?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Workspaces: number of active projects the caller belongs to.
|
|
271
|
+
*/
|
|
272
|
+
workspace_projects?: number;
|
|
212
273
|
};
|
|
213
274
|
export type WebserverPrincipalSearchResponse = {
|
|
214
275
|
groups?: Array<RoleproviderGroup>;
|
|
@@ -216,10 +277,6 @@ export type WebserverPrincipalSearchResponse = {
|
|
|
216
277
|
};
|
|
217
278
|
export type WebserverRuleRequest = {
|
|
218
279
|
comment?: string;
|
|
219
|
-
/**
|
|
220
|
-
* GPU tier (GPU notebooks and environments); empty = no GPU access.
|
|
221
|
-
*/
|
|
222
|
-
gpu_tier?: string;
|
|
223
280
|
role: 'user' | 'fleet-admin' | 'admin';
|
|
224
281
|
tier: string;
|
|
225
282
|
token: string;
|
|
@@ -229,11 +286,183 @@ export type WebserverStartRequest = {
|
|
|
229
286
|
* With a GPU (waits in the queue if all GPUs are busy; counts against the GPU quota).
|
|
230
287
|
*/
|
|
231
288
|
gpu?: boolean;
|
|
289
|
+
/**
|
|
290
|
+
* Project the server runs in (its slug); empty = the first of the caller's projects that allows the profile.
|
|
291
|
+
*/
|
|
292
|
+
project?: string;
|
|
232
293
|
};
|
|
233
294
|
export type WebserverStartResponse = {
|
|
234
295
|
server?: string;
|
|
235
296
|
url?: string;
|
|
236
297
|
};
|
|
298
|
+
export type WorkspaceBudget = {
|
|
299
|
+
amount?: number;
|
|
300
|
+
/**
|
|
301
|
+
* only for gpu_hours; empty = all classes
|
|
302
|
+
*/
|
|
303
|
+
gpu_class?: string;
|
|
304
|
+
per_person?: boolean;
|
|
305
|
+
tree?: boolean;
|
|
306
|
+
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours';
|
|
307
|
+
window?: '24h' | '7d' | '30d' | 'total';
|
|
308
|
+
};
|
|
309
|
+
export type WorkspaceBudgetStatus = {
|
|
310
|
+
amount?: number;
|
|
311
|
+
exhausted?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* only for gpu_hours; empty = all classes
|
|
314
|
+
*/
|
|
315
|
+
gpu_class?: string;
|
|
316
|
+
per_person?: boolean;
|
|
317
|
+
tree?: boolean;
|
|
318
|
+
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours';
|
|
319
|
+
used?: number;
|
|
320
|
+
window?: '24h' | '7d' | '30d' | 'total';
|
|
321
|
+
};
|
|
322
|
+
export type WorkspaceConfig = {
|
|
323
|
+
gpuClasses?: Array<string>;
|
|
324
|
+
profiles?: Array<WorkspaceProfile>;
|
|
325
|
+
};
|
|
326
|
+
export type WorkspaceImage = {
|
|
327
|
+
image?: string;
|
|
328
|
+
name?: string;
|
|
329
|
+
};
|
|
330
|
+
export type WorkspaceLimits = {
|
|
331
|
+
/**
|
|
332
|
+
* requested cores of all running servers of a person in the project
|
|
333
|
+
*/
|
|
334
|
+
cpu_per_person?: number;
|
|
335
|
+
/**
|
|
336
|
+
* GPU servers and GPU kernels together
|
|
337
|
+
*/
|
|
338
|
+
gpus_per_person?: number;
|
|
339
|
+
/**
|
|
340
|
+
* requested GiB
|
|
341
|
+
*/
|
|
342
|
+
ram_gb_per_person?: number;
|
|
343
|
+
servers_per_person?: number;
|
|
344
|
+
};
|
|
345
|
+
export type WorkspaceMember = {
|
|
346
|
+
role?: 'member' | 'manager';
|
|
347
|
+
token?: string;
|
|
348
|
+
};
|
|
349
|
+
export type WorkspaceMine = {
|
|
350
|
+
budget_status?: Array<WorkspaceBudgetStatus>;
|
|
351
|
+
budgets?: Array<WorkspaceBudget>;
|
|
352
|
+
created_at?: string;
|
|
353
|
+
created_by?: string;
|
|
354
|
+
description?: string;
|
|
355
|
+
/**
|
|
356
|
+
* after this day nobody can start in the project
|
|
357
|
+
*/
|
|
358
|
+
ends_at?: string;
|
|
359
|
+
/**
|
|
360
|
+
* W3: any image, CPU only, without home
|
|
361
|
+
*/
|
|
362
|
+
free_images?: boolean;
|
|
363
|
+
gpu_classes?: Array<string>;
|
|
364
|
+
/**
|
|
365
|
+
* 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.
|
|
366
|
+
*/
|
|
367
|
+
gpus_by_class?: {
|
|
368
|
+
[key: string]: number;
|
|
369
|
+
};
|
|
370
|
+
id?: number;
|
|
371
|
+
images?: Array<WorkspaceImage>;
|
|
372
|
+
limits?: WorkspaceLimits;
|
|
373
|
+
/**
|
|
374
|
+
* 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
|
+
*/
|
|
376
|
+
llm_mtokens?: number;
|
|
377
|
+
members?: Array<WorkspaceMember>;
|
|
378
|
+
name?: string;
|
|
379
|
+
profiles?: Array<string>;
|
|
380
|
+
role?: 'member' | 'manager' | 'admin';
|
|
381
|
+
/**
|
|
382
|
+
* short name, also the pod label dhbw.cloud/project
|
|
383
|
+
*/
|
|
384
|
+
slug?: string;
|
|
385
|
+
/**
|
|
386
|
+
* the project's node in the budget tree (resource-management-api); set = the tree manages members, end, the project's budgets and GPUs, and LLM tokens
|
|
387
|
+
*/
|
|
388
|
+
tree_node?: string;
|
|
389
|
+
updated_at?: string;
|
|
390
|
+
updated_by?: string;
|
|
391
|
+
};
|
|
392
|
+
export type WorkspaceProfile = {
|
|
393
|
+
gpu_class?: string;
|
|
394
|
+
name?: string;
|
|
395
|
+
slug?: string;
|
|
396
|
+
};
|
|
397
|
+
export type WorkspaceProject = {
|
|
398
|
+
budgets?: Array<WorkspaceBudget>;
|
|
399
|
+
created_at?: string;
|
|
400
|
+
created_by?: string;
|
|
401
|
+
description?: string;
|
|
402
|
+
/**
|
|
403
|
+
* after this day nobody can start in the project
|
|
404
|
+
*/
|
|
405
|
+
ends_at?: string;
|
|
406
|
+
/**
|
|
407
|
+
* W3: any image, CPU only, without home
|
|
408
|
+
*/
|
|
409
|
+
free_images?: boolean;
|
|
410
|
+
gpu_classes?: Array<string>;
|
|
411
|
+
/**
|
|
412
|
+
* 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.
|
|
413
|
+
*/
|
|
414
|
+
gpus_by_class?: {
|
|
415
|
+
[key: string]: number;
|
|
416
|
+
};
|
|
417
|
+
id?: number;
|
|
418
|
+
images?: Array<WorkspaceImage>;
|
|
419
|
+
limits?: WorkspaceLimits;
|
|
420
|
+
/**
|
|
421
|
+
* 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
|
+
*/
|
|
423
|
+
llm_mtokens?: number;
|
|
424
|
+
members?: Array<WorkspaceMember>;
|
|
425
|
+
name?: string;
|
|
426
|
+
profiles?: Array<string>;
|
|
427
|
+
/**
|
|
428
|
+
* short name, also the pod label dhbw.cloud/project
|
|
429
|
+
*/
|
|
430
|
+
slug?: string;
|
|
431
|
+
/**
|
|
432
|
+
* the project's node in the budget tree (resource-management-api); set = the tree manages members, end, the project's budgets and GPUs, and LLM tokens
|
|
433
|
+
*/
|
|
434
|
+
tree_node?: string;
|
|
435
|
+
updated_at?: string;
|
|
436
|
+
updated_by?: string;
|
|
437
|
+
};
|
|
438
|
+
export type WorkspaceTreeBudget = {
|
|
439
|
+
amount?: number;
|
|
440
|
+
gpu_class?: string;
|
|
441
|
+
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours' | 'llm_mtokens';
|
|
442
|
+
window?: '24h' | '7d' | '30d';
|
|
443
|
+
};
|
|
444
|
+
export type WorkspaceTreeProject = {
|
|
445
|
+
budgets?: Array<WorkspaceTreeBudget>;
|
|
446
|
+
ends_at?: string;
|
|
447
|
+
gpus_by_class?: {
|
|
448
|
+
[key: string]: number;
|
|
449
|
+
};
|
|
450
|
+
llm_mtokens?: number;
|
|
451
|
+
members?: Array<WorkspaceMember>;
|
|
452
|
+
name?: string;
|
|
453
|
+
};
|
|
454
|
+
export type WorkspaceTreeStatus = {
|
|
455
|
+
node?: string;
|
|
456
|
+
slug?: string;
|
|
457
|
+
used?: Array<WorkspaceTreeUse>;
|
|
458
|
+
};
|
|
459
|
+
export type WorkspaceTreeUse = {
|
|
460
|
+
amount?: number;
|
|
461
|
+
gpu_class?: string;
|
|
462
|
+
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours' | 'llm_mtokens';
|
|
463
|
+
used?: number;
|
|
464
|
+
window?: '24h' | '7d' | '30d';
|
|
465
|
+
};
|
|
237
466
|
export type WebserverRuleRequest2 = WebserverRuleRequest;
|
|
238
467
|
export type ListAccessRulesData = {
|
|
239
468
|
body?: never;
|
|
@@ -539,19 +768,6 @@ export type UnblockMachineResponses = {
|
|
|
539
768
|
204: void;
|
|
540
769
|
};
|
|
541
770
|
export type UnblockMachineResponse = UnblockMachineResponses[keyof UnblockMachineResponses];
|
|
542
|
-
export type ListGpuTiersData = {
|
|
543
|
-
body?: never;
|
|
544
|
-
path?: never;
|
|
545
|
-
query?: never;
|
|
546
|
-
url: '/v1/gpu-tiers';
|
|
547
|
-
};
|
|
548
|
-
export type ListGpuTiersResponses = {
|
|
549
|
-
/**
|
|
550
|
-
* OK
|
|
551
|
-
*/
|
|
552
|
-
200: Array<string>;
|
|
553
|
-
};
|
|
554
|
-
export type ListGpuTiersResponse = ListGpuTiersResponses[keyof ListGpuTiersResponses];
|
|
555
771
|
export type ListGpuEnvironmentsData = {
|
|
556
772
|
body?: never;
|
|
557
773
|
path?: never;
|
|
@@ -806,6 +1022,10 @@ export type CreateKeyErrors = {
|
|
|
806
1022
|
* Bad Request
|
|
807
1023
|
*/
|
|
808
1024
|
400: WebserverErrorResponse;
|
|
1025
|
+
/**
|
|
1026
|
+
* Forbidden
|
|
1027
|
+
*/
|
|
1028
|
+
403: WebserverErrorResponse;
|
|
809
1029
|
/**
|
|
810
1030
|
* Conflict
|
|
811
1031
|
*/
|
|
@@ -819,6 +1039,33 @@ export type CreateKeyResponses = {
|
|
|
819
1039
|
201: WebserverCreateKeyResponse;
|
|
820
1040
|
};
|
|
821
1041
|
export type CreateKeyResponse = CreateKeyResponses[keyof CreateKeyResponses];
|
|
1042
|
+
export type SetDefaultProjectData = {
|
|
1043
|
+
/**
|
|
1044
|
+
* Project
|
|
1045
|
+
*/
|
|
1046
|
+
body: WebserverDefaultProjectRequest;
|
|
1047
|
+
path?: never;
|
|
1048
|
+
query?: never;
|
|
1049
|
+
url: '/v1/keys/default-project';
|
|
1050
|
+
};
|
|
1051
|
+
export type SetDefaultProjectErrors = {
|
|
1052
|
+
/**
|
|
1053
|
+
* Bad Request
|
|
1054
|
+
*/
|
|
1055
|
+
400: WebserverErrorResponse;
|
|
1056
|
+
/**
|
|
1057
|
+
* Forbidden
|
|
1058
|
+
*/
|
|
1059
|
+
403: WebserverErrorResponse;
|
|
1060
|
+
};
|
|
1061
|
+
export type SetDefaultProjectError = SetDefaultProjectErrors[keyof SetDefaultProjectErrors];
|
|
1062
|
+
export type SetDefaultProjectResponses = {
|
|
1063
|
+
/**
|
|
1064
|
+
* OK
|
|
1065
|
+
*/
|
|
1066
|
+
200: WebserverDefaultProjectResponse;
|
|
1067
|
+
};
|
|
1068
|
+
export type SetDefaultProjectResponse = SetDefaultProjectResponses[keyof SetDefaultProjectResponses];
|
|
822
1069
|
export type DeleteKeyData = {
|
|
823
1070
|
body?: never;
|
|
824
1071
|
path: {
|
|
@@ -906,6 +1153,107 @@ export type ListTiersResponses = {
|
|
|
906
1153
|
200: Array<string>;
|
|
907
1154
|
};
|
|
908
1155
|
export type ListTiersResponse = ListTiersResponses[keyof ListTiersResponses];
|
|
1156
|
+
export type GetTreeCatalogData = {
|
|
1157
|
+
body?: never;
|
|
1158
|
+
path?: never;
|
|
1159
|
+
query?: never;
|
|
1160
|
+
url: '/v1/tree/catalog';
|
|
1161
|
+
};
|
|
1162
|
+
export type GetTreeCatalogErrors = {
|
|
1163
|
+
/**
|
|
1164
|
+
* Unauthorized
|
|
1165
|
+
*/
|
|
1166
|
+
401: WebserverErrorResponse;
|
|
1167
|
+
};
|
|
1168
|
+
export type GetTreeCatalogError = GetTreeCatalogErrors[keyof GetTreeCatalogErrors];
|
|
1169
|
+
export type GetTreeCatalogResponses = {
|
|
1170
|
+
/**
|
|
1171
|
+
* OK
|
|
1172
|
+
*/
|
|
1173
|
+
200: WorkspaceConfig;
|
|
1174
|
+
};
|
|
1175
|
+
export type GetTreeCatalogResponse = GetTreeCatalogResponses[keyof GetTreeCatalogResponses];
|
|
1176
|
+
export type ListTreeProjectsData = {
|
|
1177
|
+
body?: never;
|
|
1178
|
+
path?: never;
|
|
1179
|
+
query?: never;
|
|
1180
|
+
url: '/v1/tree/projects';
|
|
1181
|
+
};
|
|
1182
|
+
export type ListTreeProjectsErrors = {
|
|
1183
|
+
/**
|
|
1184
|
+
* Unauthorized
|
|
1185
|
+
*/
|
|
1186
|
+
401: WebserverErrorResponse;
|
|
1187
|
+
};
|
|
1188
|
+
export type ListTreeProjectsError = ListTreeProjectsErrors[keyof ListTreeProjectsErrors];
|
|
1189
|
+
export type ListTreeProjectsResponses = {
|
|
1190
|
+
/**
|
|
1191
|
+
* OK
|
|
1192
|
+
*/
|
|
1193
|
+
200: Array<WorkspaceTreeStatus>;
|
|
1194
|
+
};
|
|
1195
|
+
export type ListTreeProjectsResponse = ListTreeProjectsResponses[keyof ListTreeProjectsResponses];
|
|
1196
|
+
export type DeleteTreeProjectData = {
|
|
1197
|
+
body?: never;
|
|
1198
|
+
path: {
|
|
1199
|
+
/**
|
|
1200
|
+
* the project's node in the budget tree
|
|
1201
|
+
*/
|
|
1202
|
+
node: string;
|
|
1203
|
+
};
|
|
1204
|
+
query?: never;
|
|
1205
|
+
url: '/v1/tree/projects/{node}';
|
|
1206
|
+
};
|
|
1207
|
+
export type DeleteTreeProjectErrors = {
|
|
1208
|
+
/**
|
|
1209
|
+
* Unauthorized
|
|
1210
|
+
*/
|
|
1211
|
+
401: WebserverErrorResponse;
|
|
1212
|
+
/**
|
|
1213
|
+
* Not Found
|
|
1214
|
+
*/
|
|
1215
|
+
404: WebserverErrorResponse;
|
|
1216
|
+
};
|
|
1217
|
+
export type DeleteTreeProjectError = DeleteTreeProjectErrors[keyof DeleteTreeProjectErrors];
|
|
1218
|
+
export type DeleteTreeProjectResponses = {
|
|
1219
|
+
/**
|
|
1220
|
+
* No Content
|
|
1221
|
+
*/
|
|
1222
|
+
204: void;
|
|
1223
|
+
};
|
|
1224
|
+
export type DeleteTreeProjectResponse = DeleteTreeProjectResponses[keyof DeleteTreeProjectResponses];
|
|
1225
|
+
export type PutTreeProjectData = {
|
|
1226
|
+
/**
|
|
1227
|
+
* what the tree says
|
|
1228
|
+
*/
|
|
1229
|
+
body: WorkspaceTreeProject;
|
|
1230
|
+
path: {
|
|
1231
|
+
/**
|
|
1232
|
+
* the project's node in the budget tree
|
|
1233
|
+
*/
|
|
1234
|
+
node: string;
|
|
1235
|
+
};
|
|
1236
|
+
query?: never;
|
|
1237
|
+
url: '/v1/tree/projects/{node}';
|
|
1238
|
+
};
|
|
1239
|
+
export type PutTreeProjectErrors = {
|
|
1240
|
+
/**
|
|
1241
|
+
* Bad Request
|
|
1242
|
+
*/
|
|
1243
|
+
400: WebserverErrorResponse;
|
|
1244
|
+
/**
|
|
1245
|
+
* Unauthorized
|
|
1246
|
+
*/
|
|
1247
|
+
401: WebserverErrorResponse;
|
|
1248
|
+
};
|
|
1249
|
+
export type PutTreeProjectError = PutTreeProjectErrors[keyof PutTreeProjectErrors];
|
|
1250
|
+
export type PutTreeProjectResponses = {
|
|
1251
|
+
/**
|
|
1252
|
+
* OK
|
|
1253
|
+
*/
|
|
1254
|
+
200: WorkspaceTreeStatus;
|
|
1255
|
+
};
|
|
1256
|
+
export type PutTreeProjectResponse = PutTreeProjectResponses[keyof PutTreeProjectResponses];
|
|
909
1257
|
export type GetUsageData = {
|
|
910
1258
|
body?: never;
|
|
911
1259
|
path?: never;
|
|
@@ -926,3 +1274,172 @@ export type GetUsageResponses = {
|
|
|
926
1274
|
200: KeysUsage;
|
|
927
1275
|
};
|
|
928
1276
|
export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
|
|
1277
|
+
export type GetWorkspaceCatalogData = {
|
|
1278
|
+
body?: never;
|
|
1279
|
+
path?: never;
|
|
1280
|
+
query?: never;
|
|
1281
|
+
url: '/v1/workspaces/catalog';
|
|
1282
|
+
};
|
|
1283
|
+
export type GetWorkspaceCatalogErrors = {
|
|
1284
|
+
/**
|
|
1285
|
+
* Forbidden
|
|
1286
|
+
*/
|
|
1287
|
+
403: WebserverErrorResponse;
|
|
1288
|
+
};
|
|
1289
|
+
export type GetWorkspaceCatalogError = GetWorkspaceCatalogErrors[keyof GetWorkspaceCatalogErrors];
|
|
1290
|
+
export type GetWorkspaceCatalogResponses = {
|
|
1291
|
+
/**
|
|
1292
|
+
* OK
|
|
1293
|
+
*/
|
|
1294
|
+
200: WorkspaceConfig;
|
|
1295
|
+
};
|
|
1296
|
+
export type GetWorkspaceCatalogResponse = GetWorkspaceCatalogResponses[keyof GetWorkspaceCatalogResponses];
|
|
1297
|
+
export type ListWorkspaceProjectsData = {
|
|
1298
|
+
body?: never;
|
|
1299
|
+
path?: never;
|
|
1300
|
+
query?: {
|
|
1301
|
+
/**
|
|
1302
|
+
* every project (admins)
|
|
1303
|
+
*/
|
|
1304
|
+
all?: boolean;
|
|
1305
|
+
};
|
|
1306
|
+
url: '/v1/workspaces/projects';
|
|
1307
|
+
};
|
|
1308
|
+
export type ListWorkspaceProjectsResponses = {
|
|
1309
|
+
/**
|
|
1310
|
+
* OK
|
|
1311
|
+
*/
|
|
1312
|
+
200: Array<WorkspaceMine>;
|
|
1313
|
+
};
|
|
1314
|
+
export type ListWorkspaceProjectsResponse = ListWorkspaceProjectsResponses[keyof ListWorkspaceProjectsResponses];
|
|
1315
|
+
export type DeleteWorkspaceProjectData = {
|
|
1316
|
+
body?: never;
|
|
1317
|
+
path: {
|
|
1318
|
+
/**
|
|
1319
|
+
* short name
|
|
1320
|
+
*/
|
|
1321
|
+
slug: string;
|
|
1322
|
+
};
|
|
1323
|
+
query?: never;
|
|
1324
|
+
url: '/v1/workspaces/projects/{slug}';
|
|
1325
|
+
};
|
|
1326
|
+
export type DeleteWorkspaceProjectErrors = {
|
|
1327
|
+
/**
|
|
1328
|
+
* Forbidden
|
|
1329
|
+
*/
|
|
1330
|
+
403: WebserverErrorResponse;
|
|
1331
|
+
/**
|
|
1332
|
+
* Not Found
|
|
1333
|
+
*/
|
|
1334
|
+
404: WebserverErrorResponse;
|
|
1335
|
+
};
|
|
1336
|
+
export type DeleteWorkspaceProjectError = DeleteWorkspaceProjectErrors[keyof DeleteWorkspaceProjectErrors];
|
|
1337
|
+
export type DeleteWorkspaceProjectResponses = {
|
|
1338
|
+
/**
|
|
1339
|
+
* No Content
|
|
1340
|
+
*/
|
|
1341
|
+
204: void;
|
|
1342
|
+
};
|
|
1343
|
+
export type DeleteWorkspaceProjectResponse = DeleteWorkspaceProjectResponses[keyof DeleteWorkspaceProjectResponses];
|
|
1344
|
+
export type UpdateWorkspaceProjectData = {
|
|
1345
|
+
/**
|
|
1346
|
+
* the project
|
|
1347
|
+
*/
|
|
1348
|
+
body: WorkspaceProject;
|
|
1349
|
+
path: {
|
|
1350
|
+
/**
|
|
1351
|
+
* short name
|
|
1352
|
+
*/
|
|
1353
|
+
slug: string;
|
|
1354
|
+
};
|
|
1355
|
+
query?: never;
|
|
1356
|
+
url: '/v1/workspaces/projects/{slug}';
|
|
1357
|
+
};
|
|
1358
|
+
export type UpdateWorkspaceProjectErrors = {
|
|
1359
|
+
/**
|
|
1360
|
+
* Bad Request
|
|
1361
|
+
*/
|
|
1362
|
+
400: WebserverErrorResponse;
|
|
1363
|
+
/**
|
|
1364
|
+
* Forbidden
|
|
1365
|
+
*/
|
|
1366
|
+
403: WebserverErrorResponse;
|
|
1367
|
+
/**
|
|
1368
|
+
* Not Found
|
|
1369
|
+
*/
|
|
1370
|
+
404: WebserverErrorResponse;
|
|
1371
|
+
};
|
|
1372
|
+
export type UpdateWorkspaceProjectError = UpdateWorkspaceProjectErrors[keyof UpdateWorkspaceProjectErrors];
|
|
1373
|
+
export type UpdateWorkspaceProjectResponses = {
|
|
1374
|
+
/**
|
|
1375
|
+
* OK
|
|
1376
|
+
*/
|
|
1377
|
+
200: WorkspaceProject;
|
|
1378
|
+
};
|
|
1379
|
+
export type UpdateWorkspaceProjectResponse = UpdateWorkspaceProjectResponses[keyof UpdateWorkspaceProjectResponses];
|
|
1380
|
+
export type GetWorkspaceUsageData = {
|
|
1381
|
+
body?: never;
|
|
1382
|
+
path?: never;
|
|
1383
|
+
query?: {
|
|
1384
|
+
/**
|
|
1385
|
+
* first day (YYYY-MM-DD)
|
|
1386
|
+
*/
|
|
1387
|
+
from?: string;
|
|
1388
|
+
/**
|
|
1389
|
+
* last day (YYYY-MM-DD), included
|
|
1390
|
+
*/
|
|
1391
|
+
to?: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* only this project (required for managers)
|
|
1394
|
+
*/
|
|
1395
|
+
project?: string;
|
|
1396
|
+
};
|
|
1397
|
+
url: '/v1/workspaces/usage';
|
|
1398
|
+
};
|
|
1399
|
+
export type GetWorkspaceUsageErrors = {
|
|
1400
|
+
/**
|
|
1401
|
+
* Bad Request
|
|
1402
|
+
*/
|
|
1403
|
+
400: WebserverErrorResponse;
|
|
1404
|
+
/**
|
|
1405
|
+
* Forbidden
|
|
1406
|
+
*/
|
|
1407
|
+
403: WebserverErrorResponse;
|
|
1408
|
+
};
|
|
1409
|
+
export type GetWorkspaceUsageError = GetWorkspaceUsageErrors[keyof GetWorkspaceUsageErrors];
|
|
1410
|
+
export type GetWorkspaceUsageResponses = {
|
|
1411
|
+
/**
|
|
1412
|
+
* OK
|
|
1413
|
+
*/
|
|
1414
|
+
200: UsageReport;
|
|
1415
|
+
};
|
|
1416
|
+
export type GetWorkspaceUsageResponse = GetWorkspaceUsageResponses[keyof GetWorkspaceUsageResponses];
|
|
1417
|
+
export type GetMyWorkspaceUsageData = {
|
|
1418
|
+
body?: never;
|
|
1419
|
+
path?: never;
|
|
1420
|
+
query?: {
|
|
1421
|
+
/**
|
|
1422
|
+
* first day (YYYY-MM-DD)
|
|
1423
|
+
*/
|
|
1424
|
+
from?: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* last day (YYYY-MM-DD), included
|
|
1427
|
+
*/
|
|
1428
|
+
to?: string;
|
|
1429
|
+
};
|
|
1430
|
+
url: '/v1/workspaces/usage/me';
|
|
1431
|
+
};
|
|
1432
|
+
export type GetMyWorkspaceUsageErrors = {
|
|
1433
|
+
/**
|
|
1434
|
+
* Bad Request
|
|
1435
|
+
*/
|
|
1436
|
+
400: WebserverErrorResponse;
|
|
1437
|
+
};
|
|
1438
|
+
export type GetMyWorkspaceUsageError = GetMyWorkspaceUsageErrors[keyof GetMyWorkspaceUsageErrors];
|
|
1439
|
+
export type GetMyWorkspaceUsageResponses = {
|
|
1440
|
+
/**
|
|
1441
|
+
* OK
|
|
1442
|
+
*/
|
|
1443
|
+
200: UsageReport;
|
|
1444
|
+
};
|
|
1445
|
+
export type GetMyWorkspaceUsageResponse = GetMyWorkspaceUsageResponses[keyof GetMyWorkspaceUsageResponses];
|