@dhbw-cloud/llm-client 0.2.0-test.3 → 0.2.1-test.3
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 +32 -54
- package/dist/sdk.gen.d.ts +29 -37
- package/dist/types.gen.d.ts +234 -219
- 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, 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, 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, WorkspaceTreeBudget, WorkspaceTreeProject, WorkspaceTreeStatus, WorkspaceTreeUse } 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",
|
|
@@ -865,11 +837,6 @@ var unblockMachine = (options) => (options.client ?? client).post({
|
|
|
865
837
|
url: "/v1/fleet/{serial}/unblock",
|
|
866
838
|
...options
|
|
867
839
|
});
|
|
868
|
-
var listGpuTiers = (options) => (options?.client ?? client).get({
|
|
869
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
870
|
-
url: "/v1/gpu-tiers",
|
|
871
|
-
...options
|
|
872
|
-
});
|
|
873
840
|
var listGpuEnvironments = (options) => (options?.client ?? client).get({
|
|
874
841
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
875
842
|
url: "/v1/gpu/environments",
|
|
@@ -937,6 +904,15 @@ var createKey = (options) => (options.client ?? client).post({
|
|
|
937
904
|
...options.headers
|
|
938
905
|
}
|
|
939
906
|
});
|
|
907
|
+
var setDefaultProject = (options) => (options.client ?? client).put({
|
|
908
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
909
|
+
url: "/v1/keys/default-project",
|
|
910
|
+
...options,
|
|
911
|
+
headers: {
|
|
912
|
+
"Content-Type": "application/json",
|
|
913
|
+
...options.headers
|
|
914
|
+
}
|
|
915
|
+
});
|
|
940
916
|
var deleteKey = (options) => (options.client ?? client).delete({
|
|
941
917
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
942
918
|
url: "/v1/keys/{id}",
|
|
@@ -947,16 +923,30 @@ var getMe = (options) => (options?.client ?? client).get({
|
|
|
947
923
|
url: "/v1/me",
|
|
948
924
|
...options
|
|
949
925
|
});
|
|
950
|
-
var
|
|
926
|
+
var getTreeCatalog = (options) => (options?.client ?? client).get({
|
|
951
927
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
952
|
-
url: "/v1/
|
|
928
|
+
url: "/v1/tree/catalog",
|
|
953
929
|
...options
|
|
954
930
|
});
|
|
955
|
-
var
|
|
931
|
+
var listTreeProjects = (options) => (options?.client ?? client).get({
|
|
956
932
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
957
|
-
url: "/v1/
|
|
933
|
+
url: "/v1/tree/projects",
|
|
958
934
|
...options
|
|
959
935
|
});
|
|
936
|
+
var deleteTreeProject = (options) => (options.client ?? client).delete({
|
|
937
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
938
|
+
url: "/v1/tree/projects/{node}",
|
|
939
|
+
...options
|
|
940
|
+
});
|
|
941
|
+
var putTreeProject = (options) => (options.client ?? client).put({
|
|
942
|
+
security: [{ name: "Authorization", type: "apiKey" }],
|
|
943
|
+
url: "/v1/tree/projects/{node}",
|
|
944
|
+
...options,
|
|
945
|
+
headers: {
|
|
946
|
+
"Content-Type": "application/json",
|
|
947
|
+
...options.headers
|
|
948
|
+
}
|
|
949
|
+
});
|
|
960
950
|
var getUsage = (options) => (options?.client ?? client).get({
|
|
961
951
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
962
952
|
url: "/v1/usage",
|
|
@@ -972,15 +962,6 @@ var listWorkspaceProjects = (options) => (options?.client ?? client).get({
|
|
|
972
962
|
url: "/v1/workspaces/projects",
|
|
973
963
|
...options
|
|
974
964
|
});
|
|
975
|
-
var createWorkspaceProject = (options) => (options.client ?? client).post({
|
|
976
|
-
security: [{ name: "Authorization", type: "apiKey" }],
|
|
977
|
-
url: "/v1/workspaces/projects",
|
|
978
|
-
...options,
|
|
979
|
-
headers: {
|
|
980
|
-
"Content-Type": "application/json",
|
|
981
|
-
...options.headers
|
|
982
|
-
}
|
|
983
|
-
});
|
|
984
965
|
var deleteWorkspaceProject = (options) => (options.client ?? client).delete({
|
|
985
966
|
security: [{ name: "Authorization", type: "apiKey" }],
|
|
986
967
|
url: "/v1/workspaces/projects/{slug}",
|
|
@@ -1008,14 +989,12 @@ var getMyWorkspaceUsage = (options) => (options?.client ?? client).get({
|
|
|
1008
989
|
export {
|
|
1009
990
|
blockMachine,
|
|
1010
991
|
client,
|
|
1011
|
-
createAccessRule,
|
|
1012
992
|
createGpuEnvironment,
|
|
1013
993
|
createKey,
|
|
1014
|
-
createWorkspaceProject,
|
|
1015
|
-
deleteAccessRule,
|
|
1016
994
|
deleteFleetPackage,
|
|
1017
995
|
deleteGpuEnvironment,
|
|
1018
996
|
deleteKey,
|
|
997
|
+
deleteTreeProject,
|
|
1019
998
|
deleteWorkspaceProject,
|
|
1020
999
|
forgetMachine,
|
|
1021
1000
|
getFleet,
|
|
@@ -1028,21 +1007,20 @@ export {
|
|
|
1028
1007
|
getGpuEnvironmentLog,
|
|
1029
1008
|
getMe,
|
|
1030
1009
|
getMyWorkspaceUsage,
|
|
1010
|
+
getTreeCatalog,
|
|
1031
1011
|
getUsage,
|
|
1032
1012
|
getWorkspaceCatalog,
|
|
1033
1013
|
getWorkspaceUsage,
|
|
1034
|
-
listAccessRules,
|
|
1035
1014
|
listGpuEnvironments,
|
|
1036
1015
|
listGpuServers,
|
|
1037
|
-
listGpuTiers,
|
|
1038
1016
|
listKeys,
|
|
1039
|
-
|
|
1017
|
+
listTreeProjects,
|
|
1040
1018
|
listWorkspaceProjects,
|
|
1019
|
+
putTreeProject,
|
|
1041
1020
|
rebuildGpuEnvironment,
|
|
1042
|
-
|
|
1021
|
+
setDefaultProject,
|
|
1043
1022
|
startGpuEnvironment,
|
|
1044
1023
|
stopGpuServer,
|
|
1045
1024
|
unblockMachine,
|
|
1046
|
-
updateAccessRule,
|
|
1047
1025
|
updateWorkspaceProject
|
|
1048
1026
|
};
|
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, 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
|
*
|
|
@@ -81,12 +63,6 @@ export declare const blockMachine: <ThrowOnError extends boolean = false>(option
|
|
|
81
63
|
* Unblock a machine
|
|
82
64
|
*/
|
|
83
65
|
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
66
|
/**
|
|
91
67
|
* My environments
|
|
92
68
|
*
|
|
@@ -142,9 +118,15 @@ export declare const listKeys: <ThrowOnError extends boolean = false>(options?:
|
|
|
142
118
|
/**
|
|
143
119
|
* Create an API key
|
|
144
120
|
*
|
|
145
|
-
* The name is required and unique per person. The secret is returned exactly once.
|
|
121
|
+
* 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
122
|
*/
|
|
147
123
|
export declare const createKey: <ThrowOnError extends boolean = false>(options: Options<CreateKeyData, ThrowOnError>) => RequestResult<CreateKeyResponses, CreateKeyErrors, ThrowOnError>;
|
|
124
|
+
/**
|
|
125
|
+
* Set the caller's default project
|
|
126
|
+
*
|
|
127
|
+
* 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.
|
|
128
|
+
*/
|
|
129
|
+
export declare const setDefaultProject: <ThrowOnError extends boolean = false>(options: Options<SetDefaultProjectData, ThrowOnError>) => RequestResult<SetDefaultProjectResponses, SetDefaultProjectErrors, ThrowOnError>;
|
|
148
130
|
/**
|
|
149
131
|
* Delete one of the caller's API keys
|
|
150
132
|
*/
|
|
@@ -152,23 +134,37 @@ 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
|
|
142
|
+
*
|
|
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.
|
|
144
|
+
*/
|
|
145
|
+
export declare const getTreeCatalog: <ThrowOnError extends boolean = false>(options?: Options<GetTreeCatalogData, ThrowOnError>) => RequestResult<GetTreeCatalogResponses, GetTreeCatalogErrors, ThrowOnError>;
|
|
146
|
+
/**
|
|
147
|
+
* Projects of the budget tree
|
|
160
148
|
*
|
|
161
|
-
*
|
|
149
|
+
* 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.
|
|
162
150
|
*/
|
|
163
|
-
export declare const
|
|
151
|
+
export declare const listTreeProjects: <ThrowOnError extends boolean = false>(options?: Options<ListTreeProjectsData, ThrowOnError>) => RequestResult<ListTreeProjectsResponses, ListTreeProjectsErrors, ThrowOnError>;
|
|
164
152
|
/**
|
|
165
|
-
*
|
|
153
|
+
* Delete a project of the budget tree
|
|
154
|
+
*
|
|
155
|
+
* Removes the node's project; its usage stays booked. 404 when there is none.
|
|
156
|
+
*/
|
|
157
|
+
export declare const deleteTreeProject: <ThrowOnError extends boolean = false>(options: Options<DeleteTreeProjectData, ThrowOnError>) => RequestResult<DeleteTreeProjectResponses, DeleteTreeProjectErrors, ThrowOnError>;
|
|
158
|
+
/**
|
|
159
|
+
* Create or update a project of the budget tree
|
|
160
|
+
*
|
|
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.
|
|
166
162
|
*/
|
|
167
|
-
export declare const
|
|
163
|
+
export declare const putTreeProject: <ThrowOnError extends boolean = false>(options: Options<PutTreeProjectData, ThrowOnError>) => RequestResult<PutTreeProjectResponses, PutTreeProjectErrors, ThrowOnError>;
|
|
168
164
|
/**
|
|
169
165
|
* Quota, limits and keys of the caller
|
|
170
166
|
*
|
|
171
|
-
*
|
|
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.
|
|
172
168
|
*/
|
|
173
169
|
export declare const getUsage: <ThrowOnError extends boolean = false>(options?: Options<GetUsageData, ThrowOnError>) => RequestResult<GetUsageResponses, GetUsageErrors, ThrowOnError>;
|
|
174
170
|
/**
|
|
@@ -183,10 +179,6 @@ export declare const getWorkspaceCatalog: <ThrowOnError extends boolean = false>
|
|
|
183
179
|
* The caller's active projects with their role. Admins with all=true: every project, also ended ones.
|
|
184
180
|
*/
|
|
185
181
|
export declare const listWorkspaceProjects: <ThrowOnError extends boolean = false>(options?: Options<ListWorkspaceProjectsData, ThrowOnError>) => RequestResult<ListWorkspaceProjectsResponses, unknown, ThrowOnError>;
|
|
186
|
-
/**
|
|
187
|
-
* Create a workspace project
|
|
188
|
-
*/
|
|
189
|
-
export declare const createWorkspaceProject: <ThrowOnError extends boolean = false>(options: Options<CreateWorkspaceProjectData, ThrowOnError>) => RequestResult<CreateWorkspaceProjectResponses, CreateWorkspaceProjectErrors, ThrowOnError>;
|
|
190
182
|
/**
|
|
191
183
|
* Delete a workspace project
|
|
192
184
|
*
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -1,23 +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
|
-
gpu_tier?: string;
|
|
14
|
-
id?: number;
|
|
15
|
-
role?: AccessRole;
|
|
16
|
-
tier?: string;
|
|
17
|
-
token?: string;
|
|
18
|
-
updated_at?: string;
|
|
19
|
-
updated_by?: string;
|
|
20
|
-
};
|
|
4
|
+
export type AccessRole = 'user' | 'fleet-admin' | 'admin';
|
|
21
5
|
export type FleetFleetView = {
|
|
22
6
|
allowed_serials?: number;
|
|
23
7
|
capacity?: number;
|
|
@@ -146,28 +130,31 @@ export type KeysKeyView = {
|
|
|
146
130
|
chat?: boolean;
|
|
147
131
|
id?: string;
|
|
148
132
|
name?: string;
|
|
133
|
+
project?: string;
|
|
134
|
+
project_name?: string;
|
|
149
135
|
reset_at?: string;
|
|
150
136
|
spend?: number;
|
|
151
137
|
};
|
|
152
|
-
export type
|
|
138
|
+
export type KeysProjectUsage = {
|
|
153
139
|
budget?: number;
|
|
154
140
|
budget_duration?: string;
|
|
155
|
-
|
|
156
|
-
|
|
141
|
+
default?: boolean;
|
|
142
|
+
key_budget?: number;
|
|
143
|
+
key_budget_duration?: string;
|
|
157
144
|
models?: Array<string>;
|
|
158
|
-
|
|
145
|
+
mtokens?: number;
|
|
146
|
+
name?: string;
|
|
159
147
|
reset_at?: string;
|
|
160
148
|
rpm?: number;
|
|
149
|
+
slug?: string;
|
|
161
150
|
spend?: number;
|
|
162
151
|
tpm?: number;
|
|
163
152
|
};
|
|
164
|
-
export type
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
label?: string;
|
|
170
|
-
token?: string;
|
|
153
|
+
export type KeysUsage = {
|
|
154
|
+
keys?: Array<KeysKeyView>;
|
|
155
|
+
max_keys?: number;
|
|
156
|
+
own_keys?: number;
|
|
157
|
+
projects?: Array<KeysProjectUsage>;
|
|
171
158
|
};
|
|
172
159
|
export type UsageReport = {
|
|
173
160
|
entries?: Array<UsageTotal>;
|
|
@@ -203,10 +190,23 @@ export type WebserverBuildLogResponse = {
|
|
|
203
190
|
};
|
|
204
191
|
export type WebserverCreateKeyRequest = {
|
|
205
192
|
name: string;
|
|
193
|
+
/**
|
|
194
|
+
* Project is the slug of one of the caller's projects with LLM tokens; empty = the caller's default project.
|
|
195
|
+
*/
|
|
196
|
+
project?: string;
|
|
206
197
|
};
|
|
207
198
|
export type WebserverCreateKeyResponse = {
|
|
208
199
|
key?: string;
|
|
209
200
|
name?: string;
|
|
201
|
+
project?: string;
|
|
202
|
+
project_name?: string;
|
|
203
|
+
};
|
|
204
|
+
export type WebserverDefaultProjectRequest = {
|
|
205
|
+
project: string;
|
|
206
|
+
};
|
|
207
|
+
export type WebserverDefaultProjectResponse = {
|
|
208
|
+
project?: string;
|
|
209
|
+
project_name?: string;
|
|
210
210
|
};
|
|
211
211
|
export type WebserverEnvironmentRequest = {
|
|
212
212
|
git_url: string;
|
|
@@ -227,6 +227,10 @@ export type WebserverErrorResponse = {
|
|
|
227
227
|
error?: string;
|
|
228
228
|
};
|
|
229
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;
|
|
230
234
|
/**
|
|
231
235
|
* Only for admins: autologin link to the LiteLLM admin UI.
|
|
232
236
|
*/
|
|
@@ -235,31 +239,22 @@ export type WebserverMeResponse = {
|
|
|
235
239
|
chat_url?: string;
|
|
236
240
|
email?: string;
|
|
237
241
|
/**
|
|
238
|
-
*
|
|
242
|
+
* JupyterHub, only with a project (and the GPU part enabled).
|
|
239
243
|
*/
|
|
240
|
-
gpu_tier?: string;
|
|
241
244
|
jupyter_url?: string;
|
|
242
|
-
matched_token?: string;
|
|
243
|
-
role?: 'user' | 'fleet-admin' | 'admin';
|
|
244
|
-
tier?: string;
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
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).
|
|
247
247
|
*/
|
|
248
|
-
|
|
249
|
-
};
|
|
250
|
-
export type WebserverPrincipalSearchResponse = {
|
|
251
|
-
groups?: Array<RoleproviderGroup>;
|
|
252
|
-
users?: Array<string>;
|
|
253
|
-
};
|
|
254
|
-
export type WebserverRuleRequest = {
|
|
255
|
-
comment?: string;
|
|
248
|
+
llm_mtokens?: number;
|
|
256
249
|
/**
|
|
257
|
-
*
|
|
250
|
+
* MayActAs: the signed-in person may act on behalf of others with the X-Act-As header (an admin).
|
|
258
251
|
*/
|
|
259
|
-
|
|
260
|
-
role
|
|
261
|
-
|
|
262
|
-
|
|
252
|
+
may_act_as?: boolean;
|
|
253
|
+
role?: 'user' | 'fleet-admin' | 'admin';
|
|
254
|
+
/**
|
|
255
|
+
* Workspaces: number of active projects the caller belongs to.
|
|
256
|
+
*/
|
|
257
|
+
workspace_projects?: number;
|
|
263
258
|
};
|
|
264
259
|
export type WebserverStartRequest = {
|
|
265
260
|
/**
|
|
@@ -275,6 +270,13 @@ export type WebserverStartResponse = {
|
|
|
275
270
|
server?: string;
|
|
276
271
|
url?: string;
|
|
277
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
|
+
};
|
|
278
280
|
export type WorkspaceBudget = {
|
|
279
281
|
amount?: number;
|
|
280
282
|
/**
|
|
@@ -282,6 +284,7 @@ export type WorkspaceBudget = {
|
|
|
282
284
|
*/
|
|
283
285
|
gpu_class?: string;
|
|
284
286
|
per_person?: boolean;
|
|
287
|
+
tree?: boolean;
|
|
285
288
|
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours';
|
|
286
289
|
window?: '24h' | '7d' | '30d' | 'total';
|
|
287
290
|
};
|
|
@@ -293,15 +296,12 @@ export type WorkspaceBudgetStatus = {
|
|
|
293
296
|
*/
|
|
294
297
|
gpu_class?: string;
|
|
295
298
|
per_person?: boolean;
|
|
299
|
+
tree?: boolean;
|
|
296
300
|
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours';
|
|
297
301
|
used?: number;
|
|
298
302
|
window?: '24h' | '7d' | '30d' | 'total';
|
|
299
303
|
};
|
|
300
304
|
export type WorkspaceConfig = {
|
|
301
|
-
/**
|
|
302
|
-
* Tokens of the members of the project "pilot" created when there is none (bootstrap admins), with every profile and GPU class.
|
|
303
|
-
*/
|
|
304
|
-
bootstrapMembers?: Array<string>;
|
|
305
305
|
gpuClasses?: Array<string>;
|
|
306
306
|
profiles?: Array<WorkspaceProfile>;
|
|
307
307
|
};
|
|
@@ -314,10 +314,6 @@ export type WorkspaceLimits = {
|
|
|
314
314
|
* requested cores of all running servers of a person in the project
|
|
315
315
|
*/
|
|
316
316
|
cpu_per_person?: number;
|
|
317
|
-
/**
|
|
318
|
-
* the whole project at the same time; 0 = no limit
|
|
319
|
-
*/
|
|
320
|
-
gpus?: number;
|
|
321
317
|
/**
|
|
322
318
|
* GPU servers and GPU kernels together
|
|
323
319
|
*/
|
|
@@ -347,9 +343,28 @@ export type WorkspaceMine = {
|
|
|
347
343
|
*/
|
|
348
344
|
free_images?: boolean;
|
|
349
345
|
gpu_classes?: Array<string>;
|
|
346
|
+
/**
|
|
347
|
+
* 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.
|
|
348
|
+
*/
|
|
349
|
+
gpus_by_class?: {
|
|
350
|
+
[key: string]: number;
|
|
351
|
+
};
|
|
350
352
|
id?: number;
|
|
351
353
|
images?: Array<WorkspaceImage>;
|
|
352
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>;
|
|
359
|
+
/**
|
|
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.
|
|
361
|
+
*/
|
|
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;
|
|
353
368
|
members?: Array<WorkspaceMember>;
|
|
354
369
|
name?: string;
|
|
355
370
|
profiles?: Array<string>;
|
|
@@ -359,7 +374,7 @@ export type WorkspaceMine = {
|
|
|
359
374
|
*/
|
|
360
375
|
slug?: string;
|
|
361
376
|
/**
|
|
362
|
-
*
|
|
377
|
+
* 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
|
|
363
378
|
*/
|
|
364
379
|
tree_node?: string;
|
|
365
380
|
updated_at?: string;
|
|
@@ -384,9 +399,28 @@ export type WorkspaceProject = {
|
|
|
384
399
|
*/
|
|
385
400
|
free_images?: boolean;
|
|
386
401
|
gpu_classes?: Array<string>;
|
|
402
|
+
/**
|
|
403
|
+
* 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.
|
|
404
|
+
*/
|
|
405
|
+
gpus_by_class?: {
|
|
406
|
+
[key: string]: number;
|
|
407
|
+
};
|
|
387
408
|
id?: number;
|
|
388
409
|
images?: Array<WorkspaceImage>;
|
|
389
410
|
limits?: WorkspaceLimits;
|
|
411
|
+
/**
|
|
412
|
+
* LLMModels are model groups the tree granted the project on top of the base models.
|
|
413
|
+
*/
|
|
414
|
+
llm_models?: Array<string>;
|
|
415
|
+
/**
|
|
416
|
+
* 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.
|
|
417
|
+
*/
|
|
418
|
+
llm_mtokens?: number;
|
|
419
|
+
/**
|
|
420
|
+
* LLMRPM and LLMTPM are the project's requests and tokens per minute for all members together, from the budget tree; 0 = the configured default.
|
|
421
|
+
*/
|
|
422
|
+
llm_rpm?: number;
|
|
423
|
+
llm_tpm?: number;
|
|
390
424
|
members?: Array<WorkspaceMember>;
|
|
391
425
|
name?: string;
|
|
392
426
|
profiles?: Array<string>;
|
|
@@ -395,118 +429,49 @@ export type WorkspaceProject = {
|
|
|
395
429
|
*/
|
|
396
430
|
slug?: string;
|
|
397
431
|
/**
|
|
398
|
-
*
|
|
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 the LLM tokens, rate limits and models
|
|
399
433
|
*/
|
|
400
434
|
tree_node?: string;
|
|
401
435
|
updated_at?: string;
|
|
402
436
|
updated_by?: string;
|
|
403
437
|
};
|
|
404
|
-
export type
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
query?: never;
|
|
410
|
-
url: '/v1/access-rules';
|
|
411
|
-
};
|
|
412
|
-
export type ListAccessRulesErrors = {
|
|
413
|
-
/**
|
|
414
|
-
* Forbidden
|
|
415
|
-
*/
|
|
416
|
-
403: WebserverErrorResponse;
|
|
417
|
-
};
|
|
418
|
-
export type ListAccessRulesError = ListAccessRulesErrors[keyof ListAccessRulesErrors];
|
|
419
|
-
export type ListAccessRulesResponses = {
|
|
420
|
-
/**
|
|
421
|
-
* OK
|
|
422
|
-
*/
|
|
423
|
-
200: Array<AccessRule>;
|
|
424
|
-
};
|
|
425
|
-
export type ListAccessRulesResponse = ListAccessRulesResponses[keyof ListAccessRulesResponses];
|
|
426
|
-
export type CreateAccessRuleData = {
|
|
427
|
-
/**
|
|
428
|
-
* Rule
|
|
429
|
-
*/
|
|
430
|
-
body: WebserverRuleRequest2;
|
|
431
|
-
path?: never;
|
|
432
|
-
query?: never;
|
|
433
|
-
url: '/v1/access-rules';
|
|
434
|
-
};
|
|
435
|
-
export type CreateAccessRuleErrors = {
|
|
436
|
-
/**
|
|
437
|
-
* Bad Request
|
|
438
|
-
*/
|
|
439
|
-
400: WebserverErrorResponse;
|
|
440
|
-
/**
|
|
441
|
-
* Conflict
|
|
442
|
-
*/
|
|
443
|
-
409: WebserverErrorResponse;
|
|
444
|
-
};
|
|
445
|
-
export type CreateAccessRuleError = CreateAccessRuleErrors[keyof CreateAccessRuleErrors];
|
|
446
|
-
export type CreateAccessRuleResponses = {
|
|
447
|
-
/**
|
|
448
|
-
* Created
|
|
449
|
-
*/
|
|
450
|
-
201: AccessRule;
|
|
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';
|
|
451
443
|
};
|
|
452
|
-
export type
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
* Rule id
|
|
458
|
-
*/
|
|
459
|
-
id: number;
|
|
444
|
+
export type WorkspaceTreeProject = {
|
|
445
|
+
budgets?: Array<WorkspaceTreeBudget>;
|
|
446
|
+
ends_at?: string;
|
|
447
|
+
gpus_by_class?: {
|
|
448
|
+
[key: string]: number;
|
|
460
449
|
};
|
|
461
|
-
query?: never;
|
|
462
|
-
url: '/v1/access-rules/{id}';
|
|
463
|
-
};
|
|
464
|
-
export type DeleteAccessRuleErrors = {
|
|
465
|
-
/**
|
|
466
|
-
* Not Found
|
|
467
|
-
*/
|
|
468
|
-
404: WebserverErrorResponse;
|
|
469
|
-
};
|
|
470
|
-
export type DeleteAccessRuleError = DeleteAccessRuleErrors[keyof DeleteAccessRuleErrors];
|
|
471
|
-
export type DeleteAccessRuleResponses = {
|
|
472
450
|
/**
|
|
473
|
-
*
|
|
451
|
+
* LLMModels are model groups the project was granted on top of the base models every project has.
|
|
474
452
|
*/
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
export type DeleteAccessRuleResponse = DeleteAccessRuleResponses[keyof DeleteAccessRuleResponses];
|
|
478
|
-
export type UpdateAccessRuleData = {
|
|
453
|
+
llm_models?: Array<string>;
|
|
454
|
+
llm_mtokens?: number;
|
|
479
455
|
/**
|
|
480
|
-
*
|
|
456
|
+
* LLMRPM and LLMTPM are the project's requests and tokens per minute, for all its members together; 0 = not set (the configured default then).
|
|
481
457
|
*/
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
*/
|
|
487
|
-
id: number;
|
|
488
|
-
};
|
|
489
|
-
query?: never;
|
|
490
|
-
url: '/v1/access-rules/{id}';
|
|
458
|
+
llm_rpm?: number;
|
|
459
|
+
llm_tpm?: number;
|
|
460
|
+
members?: Array<WorkspaceMember>;
|
|
461
|
+
name?: string;
|
|
491
462
|
};
|
|
492
|
-
export type
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
400: WebserverErrorResponse;
|
|
497
|
-
/**
|
|
498
|
-
* Not Found
|
|
499
|
-
*/
|
|
500
|
-
404: WebserverErrorResponse;
|
|
463
|
+
export type WorkspaceTreeStatus = {
|
|
464
|
+
node?: string;
|
|
465
|
+
slug?: string;
|
|
466
|
+
used?: Array<WorkspaceTreeUse>;
|
|
501
467
|
};
|
|
502
|
-
export type
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
468
|
+
export type WorkspaceTreeUse = {
|
|
469
|
+
amount?: number;
|
|
470
|
+
gpu_class?: string;
|
|
471
|
+
unit?: 'server_hours' | 'vcpu_hours' | 'ram_gb_hours' | 'gpu_hours' | 'llm_mtokens';
|
|
472
|
+
used?: number;
|
|
473
|
+
window?: '24h' | '7d' | '30d';
|
|
508
474
|
};
|
|
509
|
-
export type UpdateAccessRuleResponse = UpdateAccessRuleResponses[keyof UpdateAccessRuleResponses];
|
|
510
475
|
export type GetFleetData = {
|
|
511
476
|
body?: never;
|
|
512
477
|
path?: never;
|
|
@@ -707,19 +672,6 @@ export type UnblockMachineResponses = {
|
|
|
707
672
|
204: void;
|
|
708
673
|
};
|
|
709
674
|
export type UnblockMachineResponse = UnblockMachineResponses[keyof UnblockMachineResponses];
|
|
710
|
-
export type ListGpuTiersData = {
|
|
711
|
-
body?: never;
|
|
712
|
-
path?: never;
|
|
713
|
-
query?: never;
|
|
714
|
-
url: '/v1/gpu-tiers';
|
|
715
|
-
};
|
|
716
|
-
export type ListGpuTiersResponses = {
|
|
717
|
-
/**
|
|
718
|
-
* OK
|
|
719
|
-
*/
|
|
720
|
-
200: Array<string>;
|
|
721
|
-
};
|
|
722
|
-
export type ListGpuTiersResponse = ListGpuTiersResponses[keyof ListGpuTiersResponses];
|
|
723
675
|
export type ListGpuEnvironmentsData = {
|
|
724
676
|
body?: never;
|
|
725
677
|
path?: never;
|
|
@@ -974,6 +926,10 @@ export type CreateKeyErrors = {
|
|
|
974
926
|
* Bad Request
|
|
975
927
|
*/
|
|
976
928
|
400: WebserverErrorResponse;
|
|
929
|
+
/**
|
|
930
|
+
* Forbidden
|
|
931
|
+
*/
|
|
932
|
+
403: WebserverErrorResponse;
|
|
977
933
|
/**
|
|
978
934
|
* Conflict
|
|
979
935
|
*/
|
|
@@ -987,6 +943,33 @@ export type CreateKeyResponses = {
|
|
|
987
943
|
201: WebserverCreateKeyResponse;
|
|
988
944
|
};
|
|
989
945
|
export type CreateKeyResponse = CreateKeyResponses[keyof CreateKeyResponses];
|
|
946
|
+
export type SetDefaultProjectData = {
|
|
947
|
+
/**
|
|
948
|
+
* Project
|
|
949
|
+
*/
|
|
950
|
+
body: WebserverDefaultProjectRequest;
|
|
951
|
+
path?: never;
|
|
952
|
+
query?: never;
|
|
953
|
+
url: '/v1/keys/default-project';
|
|
954
|
+
};
|
|
955
|
+
export type SetDefaultProjectErrors = {
|
|
956
|
+
/**
|
|
957
|
+
* Bad Request
|
|
958
|
+
*/
|
|
959
|
+
400: WebserverErrorResponse;
|
|
960
|
+
/**
|
|
961
|
+
* Forbidden
|
|
962
|
+
*/
|
|
963
|
+
403: WebserverErrorResponse;
|
|
964
|
+
};
|
|
965
|
+
export type SetDefaultProjectError = SetDefaultProjectErrors[keyof SetDefaultProjectErrors];
|
|
966
|
+
export type SetDefaultProjectResponses = {
|
|
967
|
+
/**
|
|
968
|
+
* OK
|
|
969
|
+
*/
|
|
970
|
+
200: WebserverDefaultProjectResponse;
|
|
971
|
+
};
|
|
972
|
+
export type SetDefaultProjectResponse = SetDefaultProjectResponses[keyof SetDefaultProjectResponses];
|
|
990
973
|
export type DeleteKeyData = {
|
|
991
974
|
body?: never;
|
|
992
975
|
path: {
|
|
@@ -1032,48 +1015,107 @@ export type GetMeResponses = {
|
|
|
1032
1015
|
200: WebserverMeResponse;
|
|
1033
1016
|
};
|
|
1034
1017
|
export type GetMeResponse = GetMeResponses[keyof GetMeResponses];
|
|
1035
|
-
export type
|
|
1018
|
+
export type GetTreeCatalogData = {
|
|
1036
1019
|
body?: never;
|
|
1037
1020
|
path?: never;
|
|
1038
|
-
query?:
|
|
1039
|
-
|
|
1040
|
-
* Search text
|
|
1041
|
-
*/
|
|
1042
|
-
q?: string;
|
|
1043
|
-
/**
|
|
1044
|
-
* Maximum entries per kind (default 10, at most 50)
|
|
1045
|
-
*/
|
|
1046
|
-
limit?: number;
|
|
1047
|
-
};
|
|
1048
|
-
url: '/v1/principals/search';
|
|
1021
|
+
query?: never;
|
|
1022
|
+
url: '/v1/tree/catalog';
|
|
1049
1023
|
};
|
|
1050
|
-
export type
|
|
1024
|
+
export type GetTreeCatalogErrors = {
|
|
1051
1025
|
/**
|
|
1052
|
-
*
|
|
1026
|
+
* Unauthorized
|
|
1053
1027
|
*/
|
|
1054
|
-
|
|
1028
|
+
401: WebserverErrorResponse;
|
|
1055
1029
|
};
|
|
1056
|
-
export type
|
|
1057
|
-
export type
|
|
1030
|
+
export type GetTreeCatalogError = GetTreeCatalogErrors[keyof GetTreeCatalogErrors];
|
|
1031
|
+
export type GetTreeCatalogResponses = {
|
|
1058
1032
|
/**
|
|
1059
1033
|
* OK
|
|
1060
1034
|
*/
|
|
1061
|
-
200:
|
|
1035
|
+
200: WebserverTreeCatalog;
|
|
1062
1036
|
};
|
|
1063
|
-
export type
|
|
1064
|
-
export type
|
|
1037
|
+
export type GetTreeCatalogResponse = GetTreeCatalogResponses[keyof GetTreeCatalogResponses];
|
|
1038
|
+
export type ListTreeProjectsData = {
|
|
1065
1039
|
body?: never;
|
|
1066
1040
|
path?: never;
|
|
1067
1041
|
query?: never;
|
|
1068
|
-
url: '/v1/
|
|
1042
|
+
url: '/v1/tree/projects';
|
|
1043
|
+
};
|
|
1044
|
+
export type ListTreeProjectsErrors = {
|
|
1045
|
+
/**
|
|
1046
|
+
* Unauthorized
|
|
1047
|
+
*/
|
|
1048
|
+
401: WebserverErrorResponse;
|
|
1049
|
+
};
|
|
1050
|
+
export type ListTreeProjectsError = ListTreeProjectsErrors[keyof ListTreeProjectsErrors];
|
|
1051
|
+
export type ListTreeProjectsResponses = {
|
|
1052
|
+
/**
|
|
1053
|
+
* OK
|
|
1054
|
+
*/
|
|
1055
|
+
200: Array<WorkspaceTreeStatus>;
|
|
1056
|
+
};
|
|
1057
|
+
export type ListTreeProjectsResponse = ListTreeProjectsResponses[keyof ListTreeProjectsResponses];
|
|
1058
|
+
export type DeleteTreeProjectData = {
|
|
1059
|
+
body?: never;
|
|
1060
|
+
path: {
|
|
1061
|
+
/**
|
|
1062
|
+
* the project's node in the budget tree
|
|
1063
|
+
*/
|
|
1064
|
+
node: string;
|
|
1065
|
+
};
|
|
1066
|
+
query?: never;
|
|
1067
|
+
url: '/v1/tree/projects/{node}';
|
|
1069
1068
|
};
|
|
1070
|
-
export type
|
|
1069
|
+
export type DeleteTreeProjectErrors = {
|
|
1070
|
+
/**
|
|
1071
|
+
* Unauthorized
|
|
1072
|
+
*/
|
|
1073
|
+
401: WebserverErrorResponse;
|
|
1074
|
+
/**
|
|
1075
|
+
* Not Found
|
|
1076
|
+
*/
|
|
1077
|
+
404: WebserverErrorResponse;
|
|
1078
|
+
};
|
|
1079
|
+
export type DeleteTreeProjectError = DeleteTreeProjectErrors[keyof DeleteTreeProjectErrors];
|
|
1080
|
+
export type DeleteTreeProjectResponses = {
|
|
1081
|
+
/**
|
|
1082
|
+
* No Content
|
|
1083
|
+
*/
|
|
1084
|
+
204: void;
|
|
1085
|
+
};
|
|
1086
|
+
export type DeleteTreeProjectResponse = DeleteTreeProjectResponses[keyof DeleteTreeProjectResponses];
|
|
1087
|
+
export type PutTreeProjectData = {
|
|
1088
|
+
/**
|
|
1089
|
+
* what the tree says
|
|
1090
|
+
*/
|
|
1091
|
+
body: WorkspaceTreeProject;
|
|
1092
|
+
path: {
|
|
1093
|
+
/**
|
|
1094
|
+
* the project's node in the budget tree
|
|
1095
|
+
*/
|
|
1096
|
+
node: string;
|
|
1097
|
+
};
|
|
1098
|
+
query?: never;
|
|
1099
|
+
url: '/v1/tree/projects/{node}';
|
|
1100
|
+
};
|
|
1101
|
+
export type PutTreeProjectErrors = {
|
|
1102
|
+
/**
|
|
1103
|
+
* Bad Request
|
|
1104
|
+
*/
|
|
1105
|
+
400: WebserverErrorResponse;
|
|
1106
|
+
/**
|
|
1107
|
+
* Unauthorized
|
|
1108
|
+
*/
|
|
1109
|
+
401: WebserverErrorResponse;
|
|
1110
|
+
};
|
|
1111
|
+
export type PutTreeProjectError = PutTreeProjectErrors[keyof PutTreeProjectErrors];
|
|
1112
|
+
export type PutTreeProjectResponses = {
|
|
1071
1113
|
/**
|
|
1072
1114
|
* OK
|
|
1073
1115
|
*/
|
|
1074
|
-
200:
|
|
1116
|
+
200: WorkspaceTreeStatus;
|
|
1075
1117
|
};
|
|
1076
|
-
export type
|
|
1118
|
+
export type PutTreeProjectResponse = PutTreeProjectResponses[keyof PutTreeProjectResponses];
|
|
1077
1119
|
export type GetUsageData = {
|
|
1078
1120
|
body?: never;
|
|
1079
1121
|
path?: never;
|
|
@@ -1132,33 +1174,6 @@ export type ListWorkspaceProjectsResponses = {
|
|
|
1132
1174
|
200: Array<WorkspaceMine>;
|
|
1133
1175
|
};
|
|
1134
1176
|
export type ListWorkspaceProjectsResponse = ListWorkspaceProjectsResponses[keyof ListWorkspaceProjectsResponses];
|
|
1135
|
-
export type CreateWorkspaceProjectData = {
|
|
1136
|
-
/**
|
|
1137
|
-
* the project
|
|
1138
|
-
*/
|
|
1139
|
-
body: WorkspaceProject2;
|
|
1140
|
-
path?: never;
|
|
1141
|
-
query?: never;
|
|
1142
|
-
url: '/v1/workspaces/projects';
|
|
1143
|
-
};
|
|
1144
|
-
export type CreateWorkspaceProjectErrors = {
|
|
1145
|
-
/**
|
|
1146
|
-
* Bad Request
|
|
1147
|
-
*/
|
|
1148
|
-
400: WebserverErrorResponse;
|
|
1149
|
-
/**
|
|
1150
|
-
* Forbidden
|
|
1151
|
-
*/
|
|
1152
|
-
403: WebserverErrorResponse;
|
|
1153
|
-
};
|
|
1154
|
-
export type CreateWorkspaceProjectError = CreateWorkspaceProjectErrors[keyof CreateWorkspaceProjectErrors];
|
|
1155
|
-
export type CreateWorkspaceProjectResponses = {
|
|
1156
|
-
/**
|
|
1157
|
-
* Created
|
|
1158
|
-
*/
|
|
1159
|
-
201: WorkspaceProject;
|
|
1160
|
-
};
|
|
1161
|
-
export type CreateWorkspaceProjectResponse = CreateWorkspaceProjectResponses[keyof CreateWorkspaceProjectResponses];
|
|
1162
1177
|
export type DeleteWorkspaceProjectData = {
|
|
1163
1178
|
body?: never;
|
|
1164
1179
|
path: {
|
|
@@ -1192,7 +1207,7 @@ export type UpdateWorkspaceProjectData = {
|
|
|
1192
1207
|
/**
|
|
1193
1208
|
* the project
|
|
1194
1209
|
*/
|
|
1195
|
-
body:
|
|
1210
|
+
body: WorkspaceProject;
|
|
1196
1211
|
path: {
|
|
1197
1212
|
/**
|
|
1198
1213
|
* short name
|