@dhbw-cloud/llm-client 0.0.0-stage → 0.1.0-test.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/client.gen.d.ts +2 -0
- package/dist/client/index.d.ts +10 -0
- package/dist/client/types.gen.d.ts +120 -0
- package/dist/client/utils.gen.d.ts +37 -0
- package/dist/client.gen.d.ts +12 -0
- package/dist/core/auth.gen.d.ts +25 -0
- package/dist/core/bodySerializer.gen.d.ts +25 -0
- package/dist/core/params.gen.d.ts +43 -0
- package/dist/core/pathSerializer.gen.d.ts +33 -0
- package/dist/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/core/types.gen.d.ts +83 -0
- package/dist/core/utils.gen.d.ts +19 -0
- package/dist/entry.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +992 -0
- package/dist/sdk.gen.d.ts +167 -0
- package/dist/types.gen.d.ts +882 -0
- package/package.json +10 -4
- package/README.md +0 -3
|
@@ -0,0 +1,882 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type AccessRole = '' | 'user' | 'fleet-admin' | 'admin';
|
|
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
|
+
};
|
|
21
|
+
export type FleetFleetView = {
|
|
22
|
+
allowed_serials?: number;
|
|
23
|
+
capacity?: number;
|
|
24
|
+
enabled?: boolean;
|
|
25
|
+
endpoint_v6?: string;
|
|
26
|
+
enroll_host?: string;
|
|
27
|
+
enroll_token?: string;
|
|
28
|
+
listen_port?: number;
|
|
29
|
+
package?: FleetPackageInfo;
|
|
30
|
+
package_id?: string;
|
|
31
|
+
peers?: Array<FleetPeerView>;
|
|
32
|
+
pool?: string;
|
|
33
|
+
profiles?: Array<FleetProfile>;
|
|
34
|
+
reenroll_seconds?: number;
|
|
35
|
+
self_update?: {
|
|
36
|
+
canary?: Array<string>;
|
|
37
|
+
mode?: string;
|
|
38
|
+
scripts?: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export type FleetPackageInfo = {
|
|
44
|
+
file?: string;
|
|
45
|
+
sha256?: string;
|
|
46
|
+
size?: number;
|
|
47
|
+
uploaded_at?: string;
|
|
48
|
+
version?: string;
|
|
49
|
+
};
|
|
50
|
+
export type FleetPeerView = {
|
|
51
|
+
address?: string;
|
|
52
|
+
api_base?: string;
|
|
53
|
+
blocked?: boolean;
|
|
54
|
+
busy?: boolean;
|
|
55
|
+
canary?: boolean;
|
|
56
|
+
contact?: string;
|
|
57
|
+
controls?: boolean;
|
|
58
|
+
enabled?: boolean;
|
|
59
|
+
gate?: string;
|
|
60
|
+
hardware?: string;
|
|
61
|
+
hostname?: string;
|
|
62
|
+
inference?: 'angehalten' | 'unbekannt' | 'nicht registriert' | 'erreichbar' | 'gestört' | 'teilweise';
|
|
63
|
+
inference_error?: string;
|
|
64
|
+
last_seen?: string;
|
|
65
|
+
location?: string;
|
|
66
|
+
model?: string;
|
|
67
|
+
model_state?: 'fremdverwaltet' | 'erfüllt' | 'abweichend' | 'unbekannt';
|
|
68
|
+
models?: Array<string>;
|
|
69
|
+
name?: string;
|
|
70
|
+
operator?: string;
|
|
71
|
+
os?: string;
|
|
72
|
+
pkg_version?: string;
|
|
73
|
+
profile?: string;
|
|
74
|
+
quiet_seconds?: number;
|
|
75
|
+
ram_gb?: number;
|
|
76
|
+
script_state?: string;
|
|
77
|
+
serial?: string;
|
|
78
|
+
serving?: Array<string>;
|
|
79
|
+
state?: 'aktiv' | 'ohne Rückmeldung' | 'gesperrt';
|
|
80
|
+
transport?: string;
|
|
81
|
+
};
|
|
82
|
+
export type FleetProfile = {
|
|
83
|
+
context?: number;
|
|
84
|
+
minRamMb?: number;
|
|
85
|
+
model?: string;
|
|
86
|
+
name?: string;
|
|
87
|
+
weight?: number;
|
|
88
|
+
wiredLimitMb?: number;
|
|
89
|
+
};
|
|
90
|
+
export type GpuEnvironment = {
|
|
91
|
+
branch?: string;
|
|
92
|
+
commit?: string;
|
|
93
|
+
created_at?: string;
|
|
94
|
+
git_url?: string;
|
|
95
|
+
id?: number;
|
|
96
|
+
image?: string;
|
|
97
|
+
message?: string;
|
|
98
|
+
name?: string;
|
|
99
|
+
owner?: string;
|
|
100
|
+
ref?: string;
|
|
101
|
+
status?: GpuStatus;
|
|
102
|
+
updated_at?: string;
|
|
103
|
+
};
|
|
104
|
+
export type GpuServer = {
|
|
105
|
+
image?: string;
|
|
106
|
+
name?: string;
|
|
107
|
+
pending?: string;
|
|
108
|
+
profile?: string;
|
|
109
|
+
ready?: boolean;
|
|
110
|
+
url?: string;
|
|
111
|
+
};
|
|
112
|
+
export type GpuStatus = 'building' | 'ready' | 'failed';
|
|
113
|
+
export type KeysKeyView = {
|
|
114
|
+
budget?: number;
|
|
115
|
+
budget_duration?: string;
|
|
116
|
+
chat?: boolean;
|
|
117
|
+
id?: string;
|
|
118
|
+
name?: string;
|
|
119
|
+
reset_at?: string;
|
|
120
|
+
spend?: number;
|
|
121
|
+
};
|
|
122
|
+
export type KeysUsage = {
|
|
123
|
+
budget?: number;
|
|
124
|
+
budget_duration?: string;
|
|
125
|
+
keys?: Array<KeysKeyView>;
|
|
126
|
+
max_keys?: number;
|
|
127
|
+
models?: Array<string>;
|
|
128
|
+
own_keys?: number;
|
|
129
|
+
reset_at?: string;
|
|
130
|
+
rpm?: number;
|
|
131
|
+
spend?: number;
|
|
132
|
+
tpm?: number;
|
|
133
|
+
};
|
|
134
|
+
export type RoleproviderGroup = {
|
|
135
|
+
description?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Display name, left out when it only repeats the group ID (imported groups).
|
|
138
|
+
*/
|
|
139
|
+
label?: string;
|
|
140
|
+
token?: string;
|
|
141
|
+
};
|
|
142
|
+
export type WebserverBuildLogResponse = {
|
|
143
|
+
log?: string;
|
|
144
|
+
};
|
|
145
|
+
export type WebserverCreateKeyRequest = {
|
|
146
|
+
name: string;
|
|
147
|
+
};
|
|
148
|
+
export type WebserverCreateKeyResponse = {
|
|
149
|
+
key?: string;
|
|
150
|
+
name?: string;
|
|
151
|
+
};
|
|
152
|
+
export type WebserverEnvironmentRequest = {
|
|
153
|
+
git_url: string;
|
|
154
|
+
name?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Branch, tag or commit; empty = default branch.
|
|
157
|
+
*/
|
|
158
|
+
ref?: string;
|
|
159
|
+
};
|
|
160
|
+
export type WebserverErrorResponse = {
|
|
161
|
+
/**
|
|
162
|
+
* Stable machine-readable reason.
|
|
163
|
+
*/
|
|
164
|
+
code?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Readable text, in the field the self-service-ui reads (as with the other DHBW Cloud APIs).
|
|
167
|
+
*/
|
|
168
|
+
error?: string;
|
|
169
|
+
};
|
|
170
|
+
export type WebserverMeResponse = {
|
|
171
|
+
/**
|
|
172
|
+
* Only for admins: autologin link to the LiteLLM admin UI.
|
|
173
|
+
*/
|
|
174
|
+
admin_ui_url?: string;
|
|
175
|
+
api_url?: string;
|
|
176
|
+
chat_url?: string;
|
|
177
|
+
email?: string;
|
|
178
|
+
/**
|
|
179
|
+
* GPU part: tier and JupyterHub, only with GPU access (and the GPU part enabled).
|
|
180
|
+
*/
|
|
181
|
+
gpu_tier?: string;
|
|
182
|
+
jupyter_url?: string;
|
|
183
|
+
matched_token?: string;
|
|
184
|
+
role?: 'user' | 'fleet-admin' | 'admin';
|
|
185
|
+
tier?: string;
|
|
186
|
+
};
|
|
187
|
+
export type WebserverPrincipalSearchResponse = {
|
|
188
|
+
groups?: Array<RoleproviderGroup>;
|
|
189
|
+
users?: Array<string>;
|
|
190
|
+
};
|
|
191
|
+
export type WebserverRuleRequest = {
|
|
192
|
+
comment?: string;
|
|
193
|
+
/**
|
|
194
|
+
* GPU tier (GPU notebooks and environments); empty = no GPU access.
|
|
195
|
+
*/
|
|
196
|
+
gpu_tier?: string;
|
|
197
|
+
role: 'user' | 'fleet-admin' | 'admin';
|
|
198
|
+
tier: string;
|
|
199
|
+
token: string;
|
|
200
|
+
};
|
|
201
|
+
export type WebserverStartRequest = {
|
|
202
|
+
/**
|
|
203
|
+
* With a GPU (waits in the queue if all GPUs are busy; counts against the GPU quota).
|
|
204
|
+
*/
|
|
205
|
+
gpu?: boolean;
|
|
206
|
+
};
|
|
207
|
+
export type WebserverStartResponse = {
|
|
208
|
+
server?: string;
|
|
209
|
+
url?: string;
|
|
210
|
+
};
|
|
211
|
+
export type WebserverRuleRequest2 = WebserverRuleRequest;
|
|
212
|
+
export type ListAccessRulesData = {
|
|
213
|
+
body?: never;
|
|
214
|
+
path?: never;
|
|
215
|
+
query?: never;
|
|
216
|
+
url: '/v1/access-rules';
|
|
217
|
+
};
|
|
218
|
+
export type ListAccessRulesErrors = {
|
|
219
|
+
/**
|
|
220
|
+
* Forbidden
|
|
221
|
+
*/
|
|
222
|
+
403: WebserverErrorResponse;
|
|
223
|
+
};
|
|
224
|
+
export type ListAccessRulesError = ListAccessRulesErrors[keyof ListAccessRulesErrors];
|
|
225
|
+
export type ListAccessRulesResponses = {
|
|
226
|
+
/**
|
|
227
|
+
* OK
|
|
228
|
+
*/
|
|
229
|
+
200: Array<AccessRule>;
|
|
230
|
+
};
|
|
231
|
+
export type ListAccessRulesResponse = ListAccessRulesResponses[keyof ListAccessRulesResponses];
|
|
232
|
+
export type CreateAccessRuleData = {
|
|
233
|
+
/**
|
|
234
|
+
* Rule
|
|
235
|
+
*/
|
|
236
|
+
body: WebserverRuleRequest2;
|
|
237
|
+
path?: never;
|
|
238
|
+
query?: never;
|
|
239
|
+
url: '/v1/access-rules';
|
|
240
|
+
};
|
|
241
|
+
export type CreateAccessRuleErrors = {
|
|
242
|
+
/**
|
|
243
|
+
* Bad Request
|
|
244
|
+
*/
|
|
245
|
+
400: WebserverErrorResponse;
|
|
246
|
+
/**
|
|
247
|
+
* Conflict
|
|
248
|
+
*/
|
|
249
|
+
409: WebserverErrorResponse;
|
|
250
|
+
};
|
|
251
|
+
export type CreateAccessRuleError = CreateAccessRuleErrors[keyof CreateAccessRuleErrors];
|
|
252
|
+
export type CreateAccessRuleResponses = {
|
|
253
|
+
/**
|
|
254
|
+
* Created
|
|
255
|
+
*/
|
|
256
|
+
201: AccessRule;
|
|
257
|
+
};
|
|
258
|
+
export type CreateAccessRuleResponse = CreateAccessRuleResponses[keyof CreateAccessRuleResponses];
|
|
259
|
+
export type DeleteAccessRuleData = {
|
|
260
|
+
body?: never;
|
|
261
|
+
path: {
|
|
262
|
+
/**
|
|
263
|
+
* Rule id
|
|
264
|
+
*/
|
|
265
|
+
id: number;
|
|
266
|
+
};
|
|
267
|
+
query?: never;
|
|
268
|
+
url: '/v1/access-rules/{id}';
|
|
269
|
+
};
|
|
270
|
+
export type DeleteAccessRuleErrors = {
|
|
271
|
+
/**
|
|
272
|
+
* Not Found
|
|
273
|
+
*/
|
|
274
|
+
404: WebserverErrorResponse;
|
|
275
|
+
};
|
|
276
|
+
export type DeleteAccessRuleError = DeleteAccessRuleErrors[keyof DeleteAccessRuleErrors];
|
|
277
|
+
export type DeleteAccessRuleResponses = {
|
|
278
|
+
/**
|
|
279
|
+
* No Content
|
|
280
|
+
*/
|
|
281
|
+
204: void;
|
|
282
|
+
};
|
|
283
|
+
export type DeleteAccessRuleResponse = DeleteAccessRuleResponses[keyof DeleteAccessRuleResponses];
|
|
284
|
+
export type UpdateAccessRuleData = {
|
|
285
|
+
/**
|
|
286
|
+
* Rule
|
|
287
|
+
*/
|
|
288
|
+
body: WebserverRuleRequest2;
|
|
289
|
+
path: {
|
|
290
|
+
/**
|
|
291
|
+
* Rule id
|
|
292
|
+
*/
|
|
293
|
+
id: number;
|
|
294
|
+
};
|
|
295
|
+
query?: never;
|
|
296
|
+
url: '/v1/access-rules/{id}';
|
|
297
|
+
};
|
|
298
|
+
export type UpdateAccessRuleErrors = {
|
|
299
|
+
/**
|
|
300
|
+
* Bad Request
|
|
301
|
+
*/
|
|
302
|
+
400: WebserverErrorResponse;
|
|
303
|
+
/**
|
|
304
|
+
* Not Found
|
|
305
|
+
*/
|
|
306
|
+
404: WebserverErrorResponse;
|
|
307
|
+
};
|
|
308
|
+
export type UpdateAccessRuleError = UpdateAccessRuleErrors[keyof UpdateAccessRuleErrors];
|
|
309
|
+
export type UpdateAccessRuleResponses = {
|
|
310
|
+
/**
|
|
311
|
+
* OK
|
|
312
|
+
*/
|
|
313
|
+
200: AccessRule;
|
|
314
|
+
};
|
|
315
|
+
export type UpdateAccessRuleResponse = UpdateAccessRuleResponses[keyof UpdateAccessRuleResponses];
|
|
316
|
+
export type GetFleetData = {
|
|
317
|
+
body?: never;
|
|
318
|
+
path?: never;
|
|
319
|
+
query?: never;
|
|
320
|
+
url: '/v1/fleet';
|
|
321
|
+
};
|
|
322
|
+
export type GetFleetErrors = {
|
|
323
|
+
/**
|
|
324
|
+
* Forbidden
|
|
325
|
+
*/
|
|
326
|
+
403: WebserverErrorResponse;
|
|
327
|
+
};
|
|
328
|
+
export type GetFleetError = GetFleetErrors[keyof GetFleetErrors];
|
|
329
|
+
export type GetFleetResponses = {
|
|
330
|
+
/**
|
|
331
|
+
* OK
|
|
332
|
+
*/
|
|
333
|
+
200: FleetFleetView;
|
|
334
|
+
};
|
|
335
|
+
export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
|
|
336
|
+
export type GetFleetInventoryCsvData = {
|
|
337
|
+
body?: never;
|
|
338
|
+
path?: never;
|
|
339
|
+
query?: never;
|
|
340
|
+
url: '/v1/fleet/inventory.csv';
|
|
341
|
+
};
|
|
342
|
+
export type GetFleetInventoryCsvResponses = {
|
|
343
|
+
/**
|
|
344
|
+
* OK
|
|
345
|
+
*/
|
|
346
|
+
200: string;
|
|
347
|
+
};
|
|
348
|
+
export type GetFleetInventoryCsvResponse = GetFleetInventoryCsvResponses[keyof GetFleetInventoryCsvResponses];
|
|
349
|
+
export type DeleteFleetPackageData = {
|
|
350
|
+
body?: never;
|
|
351
|
+
path?: never;
|
|
352
|
+
query?: never;
|
|
353
|
+
url: '/v1/fleet/package';
|
|
354
|
+
};
|
|
355
|
+
export type DeleteFleetPackageResponses = {
|
|
356
|
+
/**
|
|
357
|
+
* No Content
|
|
358
|
+
*/
|
|
359
|
+
204: void;
|
|
360
|
+
};
|
|
361
|
+
export type DeleteFleetPackageResponse = DeleteFleetPackageResponses[keyof DeleteFleetPackageResponses];
|
|
362
|
+
export type GetFleetPackageData = {
|
|
363
|
+
body?: never;
|
|
364
|
+
path?: never;
|
|
365
|
+
query?: never;
|
|
366
|
+
url: '/v1/fleet/package';
|
|
367
|
+
};
|
|
368
|
+
export type GetFleetPackageErrors = {
|
|
369
|
+
/**
|
|
370
|
+
* Not Found
|
|
371
|
+
*/
|
|
372
|
+
404: WebserverErrorResponse;
|
|
373
|
+
};
|
|
374
|
+
export type GetFleetPackageError = GetFleetPackageErrors[keyof GetFleetPackageErrors];
|
|
375
|
+
export type GetFleetPackageResponses = {
|
|
376
|
+
/**
|
|
377
|
+
* OK
|
|
378
|
+
*/
|
|
379
|
+
200: Blob | File;
|
|
380
|
+
};
|
|
381
|
+
export type GetFleetPackageResponse = GetFleetPackageResponses[keyof GetFleetPackageResponses];
|
|
382
|
+
export type GetFleetProfileData = {
|
|
383
|
+
body?: never;
|
|
384
|
+
path?: never;
|
|
385
|
+
query?: {
|
|
386
|
+
/**
|
|
387
|
+
* Standort
|
|
388
|
+
*/
|
|
389
|
+
location?: string;
|
|
390
|
+
/**
|
|
391
|
+
* Betreiber
|
|
392
|
+
*/
|
|
393
|
+
operator?: string;
|
|
394
|
+
/**
|
|
395
|
+
* Kontakt
|
|
396
|
+
*/
|
|
397
|
+
contact?: string;
|
|
398
|
+
};
|
|
399
|
+
url: '/v1/fleet/profile';
|
|
400
|
+
};
|
|
401
|
+
export type GetFleetProfileResponses = {
|
|
402
|
+
/**
|
|
403
|
+
* OK
|
|
404
|
+
*/
|
|
405
|
+
200: string;
|
|
406
|
+
};
|
|
407
|
+
export type GetFleetProfileResponse = GetFleetProfileResponses[keyof GetFleetProfileResponses];
|
|
408
|
+
export type GetFleetReadmeData = {
|
|
409
|
+
body?: never;
|
|
410
|
+
path?: never;
|
|
411
|
+
query?: never;
|
|
412
|
+
url: '/v1/fleet/readme';
|
|
413
|
+
};
|
|
414
|
+
export type GetFleetReadmeResponses = {
|
|
415
|
+
/**
|
|
416
|
+
* OK
|
|
417
|
+
*/
|
|
418
|
+
200: string;
|
|
419
|
+
};
|
|
420
|
+
export type GetFleetReadmeResponse = GetFleetReadmeResponses[keyof GetFleetReadmeResponses];
|
|
421
|
+
export type ForgetMachineData = {
|
|
422
|
+
body?: never;
|
|
423
|
+
path: {
|
|
424
|
+
/**
|
|
425
|
+
* Serial number
|
|
426
|
+
*/
|
|
427
|
+
serial: string;
|
|
428
|
+
};
|
|
429
|
+
query?: never;
|
|
430
|
+
url: '/v1/fleet/{serial}';
|
|
431
|
+
};
|
|
432
|
+
export type ForgetMachineErrors = {
|
|
433
|
+
/**
|
|
434
|
+
* Not Found
|
|
435
|
+
*/
|
|
436
|
+
404: WebserverErrorResponse;
|
|
437
|
+
};
|
|
438
|
+
export type ForgetMachineError = ForgetMachineErrors[keyof ForgetMachineErrors];
|
|
439
|
+
export type ForgetMachineResponses = {
|
|
440
|
+
/**
|
|
441
|
+
* No Content
|
|
442
|
+
*/
|
|
443
|
+
204: void;
|
|
444
|
+
};
|
|
445
|
+
export type ForgetMachineResponse = ForgetMachineResponses[keyof ForgetMachineResponses];
|
|
446
|
+
export type BlockMachineData = {
|
|
447
|
+
body?: never;
|
|
448
|
+
path: {
|
|
449
|
+
/**
|
|
450
|
+
* Serial number
|
|
451
|
+
*/
|
|
452
|
+
serial: string;
|
|
453
|
+
};
|
|
454
|
+
query?: never;
|
|
455
|
+
url: '/v1/fleet/{serial}/block';
|
|
456
|
+
};
|
|
457
|
+
export type BlockMachineErrors = {
|
|
458
|
+
/**
|
|
459
|
+
* Not Found
|
|
460
|
+
*/
|
|
461
|
+
404: WebserverErrorResponse;
|
|
462
|
+
};
|
|
463
|
+
export type BlockMachineError = BlockMachineErrors[keyof BlockMachineErrors];
|
|
464
|
+
export type BlockMachineResponses = {
|
|
465
|
+
/**
|
|
466
|
+
* No Content
|
|
467
|
+
*/
|
|
468
|
+
204: void;
|
|
469
|
+
};
|
|
470
|
+
export type BlockMachineResponse = BlockMachineResponses[keyof BlockMachineResponses];
|
|
471
|
+
export type UnblockMachineData = {
|
|
472
|
+
body?: never;
|
|
473
|
+
path: {
|
|
474
|
+
/**
|
|
475
|
+
* Serial number
|
|
476
|
+
*/
|
|
477
|
+
serial: string;
|
|
478
|
+
};
|
|
479
|
+
query?: never;
|
|
480
|
+
url: '/v1/fleet/{serial}/unblock';
|
|
481
|
+
};
|
|
482
|
+
export type UnblockMachineErrors = {
|
|
483
|
+
/**
|
|
484
|
+
* Not Found
|
|
485
|
+
*/
|
|
486
|
+
404: WebserverErrorResponse;
|
|
487
|
+
};
|
|
488
|
+
export type UnblockMachineError = UnblockMachineErrors[keyof UnblockMachineErrors];
|
|
489
|
+
export type UnblockMachineResponses = {
|
|
490
|
+
/**
|
|
491
|
+
* No Content
|
|
492
|
+
*/
|
|
493
|
+
204: void;
|
|
494
|
+
};
|
|
495
|
+
export type UnblockMachineResponse = UnblockMachineResponses[keyof UnblockMachineResponses];
|
|
496
|
+
export type ListGpuTiersData = {
|
|
497
|
+
body?: never;
|
|
498
|
+
path?: never;
|
|
499
|
+
query?: never;
|
|
500
|
+
url: '/v1/gpu-tiers';
|
|
501
|
+
};
|
|
502
|
+
export type ListGpuTiersResponses = {
|
|
503
|
+
/**
|
|
504
|
+
* OK
|
|
505
|
+
*/
|
|
506
|
+
200: Array<string>;
|
|
507
|
+
};
|
|
508
|
+
export type ListGpuTiersResponse = ListGpuTiersResponses[keyof ListGpuTiersResponses];
|
|
509
|
+
export type ListGpuEnvironmentsData = {
|
|
510
|
+
body?: never;
|
|
511
|
+
path?: never;
|
|
512
|
+
query?: never;
|
|
513
|
+
url: '/v1/gpu/environments';
|
|
514
|
+
};
|
|
515
|
+
export type ListGpuEnvironmentsErrors = {
|
|
516
|
+
/**
|
|
517
|
+
* Forbidden
|
|
518
|
+
*/
|
|
519
|
+
403: WebserverErrorResponse;
|
|
520
|
+
};
|
|
521
|
+
export type ListGpuEnvironmentsError = ListGpuEnvironmentsErrors[keyof ListGpuEnvironmentsErrors];
|
|
522
|
+
export type ListGpuEnvironmentsResponses = {
|
|
523
|
+
/**
|
|
524
|
+
* OK
|
|
525
|
+
*/
|
|
526
|
+
200: Array<GpuEnvironment>;
|
|
527
|
+
};
|
|
528
|
+
export type ListGpuEnvironmentsResponse = ListGpuEnvironmentsResponses[keyof ListGpuEnvironmentsResponses];
|
|
529
|
+
export type CreateGpuEnvironmentData = {
|
|
530
|
+
/**
|
|
531
|
+
* Repository
|
|
532
|
+
*/
|
|
533
|
+
body: WebserverEnvironmentRequest;
|
|
534
|
+
path?: never;
|
|
535
|
+
query?: never;
|
|
536
|
+
url: '/v1/gpu/environments';
|
|
537
|
+
};
|
|
538
|
+
export type CreateGpuEnvironmentErrors = {
|
|
539
|
+
/**
|
|
540
|
+
* Bad Request
|
|
541
|
+
*/
|
|
542
|
+
400: WebserverErrorResponse;
|
|
543
|
+
/**
|
|
544
|
+
* Bad Gateway
|
|
545
|
+
*/
|
|
546
|
+
502: WebserverErrorResponse;
|
|
547
|
+
};
|
|
548
|
+
export type CreateGpuEnvironmentError = CreateGpuEnvironmentErrors[keyof CreateGpuEnvironmentErrors];
|
|
549
|
+
export type CreateGpuEnvironmentResponses = {
|
|
550
|
+
/**
|
|
551
|
+
* Created
|
|
552
|
+
*/
|
|
553
|
+
201: GpuEnvironment;
|
|
554
|
+
};
|
|
555
|
+
export type CreateGpuEnvironmentResponse = CreateGpuEnvironmentResponses[keyof CreateGpuEnvironmentResponses];
|
|
556
|
+
export type DeleteGpuEnvironmentData = {
|
|
557
|
+
body?: never;
|
|
558
|
+
path: {
|
|
559
|
+
/**
|
|
560
|
+
* Environment id
|
|
561
|
+
*/
|
|
562
|
+
id: number;
|
|
563
|
+
};
|
|
564
|
+
query?: never;
|
|
565
|
+
url: '/v1/gpu/environments/{id}';
|
|
566
|
+
};
|
|
567
|
+
export type DeleteGpuEnvironmentErrors = {
|
|
568
|
+
/**
|
|
569
|
+
* Not Found
|
|
570
|
+
*/
|
|
571
|
+
404: WebserverErrorResponse;
|
|
572
|
+
};
|
|
573
|
+
export type DeleteGpuEnvironmentError = DeleteGpuEnvironmentErrors[keyof DeleteGpuEnvironmentErrors];
|
|
574
|
+
export type DeleteGpuEnvironmentResponses = {
|
|
575
|
+
/**
|
|
576
|
+
* No Content
|
|
577
|
+
*/
|
|
578
|
+
204: void;
|
|
579
|
+
};
|
|
580
|
+
export type DeleteGpuEnvironmentResponse = DeleteGpuEnvironmentResponses[keyof DeleteGpuEnvironmentResponses];
|
|
581
|
+
export type GetGpuEnvironmentData = {
|
|
582
|
+
body?: never;
|
|
583
|
+
path: {
|
|
584
|
+
/**
|
|
585
|
+
* Environment id
|
|
586
|
+
*/
|
|
587
|
+
id: number;
|
|
588
|
+
};
|
|
589
|
+
query?: never;
|
|
590
|
+
url: '/v1/gpu/environments/{id}';
|
|
591
|
+
};
|
|
592
|
+
export type GetGpuEnvironmentErrors = {
|
|
593
|
+
/**
|
|
594
|
+
* Not Found
|
|
595
|
+
*/
|
|
596
|
+
404: WebserverErrorResponse;
|
|
597
|
+
};
|
|
598
|
+
export type GetGpuEnvironmentError = GetGpuEnvironmentErrors[keyof GetGpuEnvironmentErrors];
|
|
599
|
+
export type GetGpuEnvironmentResponses = {
|
|
600
|
+
/**
|
|
601
|
+
* OK
|
|
602
|
+
*/
|
|
603
|
+
200: GpuEnvironment;
|
|
604
|
+
};
|
|
605
|
+
export type GetGpuEnvironmentResponse = GetGpuEnvironmentResponses[keyof GetGpuEnvironmentResponses];
|
|
606
|
+
export type GetGpuEnvironmentLogData = {
|
|
607
|
+
body?: never;
|
|
608
|
+
path: {
|
|
609
|
+
/**
|
|
610
|
+
* Environment id
|
|
611
|
+
*/
|
|
612
|
+
id: number;
|
|
613
|
+
};
|
|
614
|
+
query?: never;
|
|
615
|
+
url: '/v1/gpu/environments/{id}/log';
|
|
616
|
+
};
|
|
617
|
+
export type GetGpuEnvironmentLogErrors = {
|
|
618
|
+
/**
|
|
619
|
+
* Not Found
|
|
620
|
+
*/
|
|
621
|
+
404: WebserverErrorResponse;
|
|
622
|
+
};
|
|
623
|
+
export type GetGpuEnvironmentLogError = GetGpuEnvironmentLogErrors[keyof GetGpuEnvironmentLogErrors];
|
|
624
|
+
export type GetGpuEnvironmentLogResponses = {
|
|
625
|
+
/**
|
|
626
|
+
* OK
|
|
627
|
+
*/
|
|
628
|
+
200: WebserverBuildLogResponse;
|
|
629
|
+
};
|
|
630
|
+
export type GetGpuEnvironmentLogResponse = GetGpuEnvironmentLogResponses[keyof GetGpuEnvironmentLogResponses];
|
|
631
|
+
export type RebuildGpuEnvironmentData = {
|
|
632
|
+
body?: never;
|
|
633
|
+
path: {
|
|
634
|
+
/**
|
|
635
|
+
* Environment id
|
|
636
|
+
*/
|
|
637
|
+
id: number;
|
|
638
|
+
};
|
|
639
|
+
query?: never;
|
|
640
|
+
url: '/v1/gpu/environments/{id}/rebuild';
|
|
641
|
+
};
|
|
642
|
+
export type RebuildGpuEnvironmentErrors = {
|
|
643
|
+
/**
|
|
644
|
+
* Not Found
|
|
645
|
+
*/
|
|
646
|
+
404: WebserverErrorResponse;
|
|
647
|
+
};
|
|
648
|
+
export type RebuildGpuEnvironmentError = RebuildGpuEnvironmentErrors[keyof RebuildGpuEnvironmentErrors];
|
|
649
|
+
export type RebuildGpuEnvironmentResponses = {
|
|
650
|
+
/**
|
|
651
|
+
* OK
|
|
652
|
+
*/
|
|
653
|
+
200: GpuEnvironment;
|
|
654
|
+
};
|
|
655
|
+
export type RebuildGpuEnvironmentResponse = RebuildGpuEnvironmentResponses[keyof RebuildGpuEnvironmentResponses];
|
|
656
|
+
export type StartGpuEnvironmentData = {
|
|
657
|
+
/**
|
|
658
|
+
* Options
|
|
659
|
+
*/
|
|
660
|
+
body?: WebserverStartRequest;
|
|
661
|
+
path: {
|
|
662
|
+
/**
|
|
663
|
+
* Environment id
|
|
664
|
+
*/
|
|
665
|
+
id: number;
|
|
666
|
+
};
|
|
667
|
+
query?: never;
|
|
668
|
+
url: '/v1/gpu/environments/{id}/start';
|
|
669
|
+
};
|
|
670
|
+
export type StartGpuEnvironmentErrors = {
|
|
671
|
+
/**
|
|
672
|
+
* Conflict
|
|
673
|
+
*/
|
|
674
|
+
409: WebserverErrorResponse;
|
|
675
|
+
};
|
|
676
|
+
export type StartGpuEnvironmentError = StartGpuEnvironmentErrors[keyof StartGpuEnvironmentErrors];
|
|
677
|
+
export type StartGpuEnvironmentResponses = {
|
|
678
|
+
/**
|
|
679
|
+
* Accepted
|
|
680
|
+
*/
|
|
681
|
+
202: WebserverStartResponse;
|
|
682
|
+
};
|
|
683
|
+
export type StartGpuEnvironmentResponse = StartGpuEnvironmentResponses[keyof StartGpuEnvironmentResponses];
|
|
684
|
+
export type ListGpuServersData = {
|
|
685
|
+
body?: never;
|
|
686
|
+
path?: never;
|
|
687
|
+
query?: never;
|
|
688
|
+
url: '/v1/gpu/servers';
|
|
689
|
+
};
|
|
690
|
+
export type ListGpuServersErrors = {
|
|
691
|
+
/**
|
|
692
|
+
* Bad Gateway
|
|
693
|
+
*/
|
|
694
|
+
502: WebserverErrorResponse;
|
|
695
|
+
};
|
|
696
|
+
export type ListGpuServersError = ListGpuServersErrors[keyof ListGpuServersErrors];
|
|
697
|
+
export type ListGpuServersResponses = {
|
|
698
|
+
/**
|
|
699
|
+
* OK
|
|
700
|
+
*/
|
|
701
|
+
200: Array<GpuServer>;
|
|
702
|
+
};
|
|
703
|
+
export type ListGpuServersResponse = ListGpuServersResponses[keyof ListGpuServersResponses];
|
|
704
|
+
export type StopGpuServerData = {
|
|
705
|
+
body?: never;
|
|
706
|
+
path: {
|
|
707
|
+
/**
|
|
708
|
+
* Server name
|
|
709
|
+
*/
|
|
710
|
+
name: string;
|
|
711
|
+
};
|
|
712
|
+
query?: never;
|
|
713
|
+
url: '/v1/gpu/servers/{name}';
|
|
714
|
+
};
|
|
715
|
+
export type StopGpuServerErrors = {
|
|
716
|
+
/**
|
|
717
|
+
* Not Found
|
|
718
|
+
*/
|
|
719
|
+
404: WebserverErrorResponse;
|
|
720
|
+
};
|
|
721
|
+
export type StopGpuServerError = StopGpuServerErrors[keyof StopGpuServerErrors];
|
|
722
|
+
export type StopGpuServerResponses = {
|
|
723
|
+
/**
|
|
724
|
+
* No Content
|
|
725
|
+
*/
|
|
726
|
+
204: void;
|
|
727
|
+
};
|
|
728
|
+
export type StopGpuServerResponse = StopGpuServerResponses[keyof StopGpuServerResponses];
|
|
729
|
+
export type ListKeysData = {
|
|
730
|
+
body?: never;
|
|
731
|
+
path?: never;
|
|
732
|
+
query?: never;
|
|
733
|
+
url: '/v1/keys';
|
|
734
|
+
};
|
|
735
|
+
export type ListKeysErrors = {
|
|
736
|
+
/**
|
|
737
|
+
* Forbidden
|
|
738
|
+
*/
|
|
739
|
+
403: WebserverErrorResponse;
|
|
740
|
+
};
|
|
741
|
+
export type ListKeysError = ListKeysErrors[keyof ListKeysErrors];
|
|
742
|
+
export type ListKeysResponses = {
|
|
743
|
+
/**
|
|
744
|
+
* OK
|
|
745
|
+
*/
|
|
746
|
+
200: Array<KeysKeyView>;
|
|
747
|
+
};
|
|
748
|
+
export type ListKeysResponse = ListKeysResponses[keyof ListKeysResponses];
|
|
749
|
+
export type CreateKeyData = {
|
|
750
|
+
/**
|
|
751
|
+
* Key
|
|
752
|
+
*/
|
|
753
|
+
body: WebserverCreateKeyRequest;
|
|
754
|
+
path?: never;
|
|
755
|
+
query?: never;
|
|
756
|
+
url: '/v1/keys';
|
|
757
|
+
};
|
|
758
|
+
export type CreateKeyErrors = {
|
|
759
|
+
/**
|
|
760
|
+
* Bad Request
|
|
761
|
+
*/
|
|
762
|
+
400: WebserverErrorResponse;
|
|
763
|
+
/**
|
|
764
|
+
* Conflict
|
|
765
|
+
*/
|
|
766
|
+
409: WebserverErrorResponse;
|
|
767
|
+
};
|
|
768
|
+
export type CreateKeyError = CreateKeyErrors[keyof CreateKeyErrors];
|
|
769
|
+
export type CreateKeyResponses = {
|
|
770
|
+
/**
|
|
771
|
+
* Created
|
|
772
|
+
*/
|
|
773
|
+
201: WebserverCreateKeyResponse;
|
|
774
|
+
};
|
|
775
|
+
export type CreateKeyResponse = CreateKeyResponses[keyof CreateKeyResponses];
|
|
776
|
+
export type DeleteKeyData = {
|
|
777
|
+
body?: never;
|
|
778
|
+
path: {
|
|
779
|
+
/**
|
|
780
|
+
* Key id (from the key list, not the secret)
|
|
781
|
+
*/
|
|
782
|
+
id: string;
|
|
783
|
+
};
|
|
784
|
+
query?: never;
|
|
785
|
+
url: '/v1/keys/{id}';
|
|
786
|
+
};
|
|
787
|
+
export type DeleteKeyErrors = {
|
|
788
|
+
/**
|
|
789
|
+
* Not Found
|
|
790
|
+
*/
|
|
791
|
+
404: WebserverErrorResponse;
|
|
792
|
+
};
|
|
793
|
+
export type DeleteKeyError = DeleteKeyErrors[keyof DeleteKeyErrors];
|
|
794
|
+
export type DeleteKeyResponses = {
|
|
795
|
+
/**
|
|
796
|
+
* No Content
|
|
797
|
+
*/
|
|
798
|
+
204: void;
|
|
799
|
+
};
|
|
800
|
+
export type DeleteKeyResponse = DeleteKeyResponses[keyof DeleteKeyResponses];
|
|
801
|
+
export type GetMeData = {
|
|
802
|
+
body?: never;
|
|
803
|
+
path?: never;
|
|
804
|
+
query?: never;
|
|
805
|
+
url: '/v1/me';
|
|
806
|
+
};
|
|
807
|
+
export type GetMeErrors = {
|
|
808
|
+
/**
|
|
809
|
+
* Unauthorized
|
|
810
|
+
*/
|
|
811
|
+
401: WebserverErrorResponse;
|
|
812
|
+
};
|
|
813
|
+
export type GetMeError = GetMeErrors[keyof GetMeErrors];
|
|
814
|
+
export type GetMeResponses = {
|
|
815
|
+
/**
|
|
816
|
+
* OK
|
|
817
|
+
*/
|
|
818
|
+
200: WebserverMeResponse;
|
|
819
|
+
};
|
|
820
|
+
export type GetMeResponse = GetMeResponses[keyof GetMeResponses];
|
|
821
|
+
export type SearchPrincipalsData = {
|
|
822
|
+
body?: never;
|
|
823
|
+
path?: never;
|
|
824
|
+
query?: {
|
|
825
|
+
/**
|
|
826
|
+
* Search text
|
|
827
|
+
*/
|
|
828
|
+
q?: string;
|
|
829
|
+
/**
|
|
830
|
+
* Maximum entries per kind (default 10, at most 50)
|
|
831
|
+
*/
|
|
832
|
+
limit?: number;
|
|
833
|
+
};
|
|
834
|
+
url: '/v1/principals/search';
|
|
835
|
+
};
|
|
836
|
+
export type SearchPrincipalsErrors = {
|
|
837
|
+
/**
|
|
838
|
+
* Bad Gateway
|
|
839
|
+
*/
|
|
840
|
+
502: WebserverErrorResponse;
|
|
841
|
+
};
|
|
842
|
+
export type SearchPrincipalsError = SearchPrincipalsErrors[keyof SearchPrincipalsErrors];
|
|
843
|
+
export type SearchPrincipalsResponses = {
|
|
844
|
+
/**
|
|
845
|
+
* OK
|
|
846
|
+
*/
|
|
847
|
+
200: WebserverPrincipalSearchResponse;
|
|
848
|
+
};
|
|
849
|
+
export type SearchPrincipalsResponse = SearchPrincipalsResponses[keyof SearchPrincipalsResponses];
|
|
850
|
+
export type ListTiersData = {
|
|
851
|
+
body?: never;
|
|
852
|
+
path?: never;
|
|
853
|
+
query?: never;
|
|
854
|
+
url: '/v1/tiers';
|
|
855
|
+
};
|
|
856
|
+
export type ListTiersResponses = {
|
|
857
|
+
/**
|
|
858
|
+
* OK
|
|
859
|
+
*/
|
|
860
|
+
200: Array<string>;
|
|
861
|
+
};
|
|
862
|
+
export type ListTiersResponse = ListTiersResponses[keyof ListTiersResponses];
|
|
863
|
+
export type GetUsageData = {
|
|
864
|
+
body?: never;
|
|
865
|
+
path?: never;
|
|
866
|
+
query?: never;
|
|
867
|
+
url: '/v1/usage';
|
|
868
|
+
};
|
|
869
|
+
export type GetUsageErrors = {
|
|
870
|
+
/**
|
|
871
|
+
* Forbidden
|
|
872
|
+
*/
|
|
873
|
+
403: WebserverErrorResponse;
|
|
874
|
+
};
|
|
875
|
+
export type GetUsageError = GetUsageErrors[keyof GetUsageErrors];
|
|
876
|
+
export type GetUsageResponses = {
|
|
877
|
+
/**
|
|
878
|
+
* OK
|
|
879
|
+
*/
|
|
880
|
+
200: KeysUsage;
|
|
881
|
+
};
|
|
882
|
+
export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
|