@dhbw-cloud/llm-client 0.0.0-stage → 0.1.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.
@@ -0,0 +1,113 @@
1
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
2
+ import type { BlockMachineData, BlockMachineErrors, BlockMachineResponses, CreateAccessRuleData, CreateAccessRuleErrors, CreateAccessRuleResponses, CreateKeyData, CreateKeyErrors, CreateKeyResponses, DeleteAccessRuleData, DeleteAccessRuleErrors, DeleteAccessRuleResponses, DeleteFleetPackageData, DeleteFleetPackageResponses, DeleteKeyData, DeleteKeyErrors, DeleteKeyResponses, ForgetMachineData, ForgetMachineErrors, ForgetMachineResponses, GetFleetData, GetFleetErrors, GetFleetInventoryCsvData, GetFleetInventoryCsvResponses, GetFleetPackageData, GetFleetPackageErrors, GetFleetPackageResponses, GetFleetProfileData, GetFleetProfileResponses, GetFleetReadmeData, GetFleetReadmeResponses, GetFleetResponses, GetMeData, GetMeErrors, GetMeResponses, GetUsageData, GetUsageErrors, GetUsageResponses, ListAccessRulesData, ListAccessRulesErrors, ListAccessRulesResponses, ListKeysData, ListKeysErrors, ListKeysResponses, ListTiersData, ListTiersResponses, SearchGroupsData, SearchGroupsErrors, SearchGroupsResponses, UnblockMachineData, UnblockMachineErrors, UnblockMachineResponses, UpdateAccessRuleData, UpdateAccessRuleErrors, UpdateAccessRuleResponses } from './types.gen';
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client?: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
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
+ /**
35
+ * The Mac fleet
36
+ *
37
+ * Machines with enrolment state, LiteLLM health, script state and the JAMF onboarding data.
38
+ */
39
+ export declare const getFleet: <ThrowOnError extends boolean = false>(options?: Options<GetFleetData, ThrowOnError>) => RequestResult<GetFleetResponses, GetFleetErrors, ThrowOnError>;
40
+ /**
41
+ * Fleet inventory as CSV
42
+ */
43
+ export declare const getFleetInventoryCsv: <ThrowOnError extends boolean = false>(options?: Options<GetFleetInventoryCsvData, ThrowOnError>) => RequestResult<GetFleetInventoryCsvResponses, unknown, ThrowOnError>;
44
+ /**
45
+ * Withdraw the uploaded JAMF package
46
+ *
47
+ * Admins only. The machines are unaffected; only the download disappears.
48
+ */
49
+ export declare const deleteFleetPackage: <ThrowOnError extends boolean = false>(options?: Options<DeleteFleetPackageData, ThrowOnError>) => RequestResult<DeleteFleetPackageResponses, unknown, ThrowOnError>;
50
+ /**
51
+ * The newest JAMF package
52
+ */
53
+ export declare const getFleetPackage: <ThrowOnError extends boolean = false>(options?: Options<GetFleetPackageData, ThrowOnError>) => RequestResult<GetFleetPackageResponses, GetFleetPackageErrors, ThrowOnError>;
54
+ /**
55
+ * JAMF configuration profile
56
+ *
57
+ * Optional location, operator and contact apply to every device in the profile's scope (one profile per device group).
58
+ */
59
+ export declare const getFleetProfile: <ThrowOnError extends boolean = false>(options?: Options<GetFleetProfileData, ThrowOnError>) => RequestResult<GetFleetProfileResponses, unknown, ThrowOnError>;
60
+ /**
61
+ * Fleet onboarding guide (Markdown)
62
+ */
63
+ export declare const getFleetReadme: <ThrowOnError extends boolean = false>(options?: Options<GetFleetReadmeData, ThrowOnError>) => RequestResult<GetFleetReadmeResponses, unknown, ThrowOnError>;
64
+ /**
65
+ * Remove a machine from the registry
66
+ *
67
+ * For decommissioned devices. A machine that boots again re-enrols with a NEW address; to keep it out, block it instead.
68
+ */
69
+ export declare const forgetMachine: <ThrowOnError extends boolean = false>(options: Options<ForgetMachineData, ThrowOnError>) => RequestResult<ForgetMachineResponses, ForgetMachineErrors, ThrowOnError>;
70
+ /**
71
+ * Block a machine (it is refused at the next enrolment)
72
+ */
73
+ export declare const blockMachine: <ThrowOnError extends boolean = false>(options: Options<BlockMachineData, ThrowOnError>) => RequestResult<BlockMachineResponses, BlockMachineErrors, ThrowOnError>;
74
+ /**
75
+ * Unblock a machine
76
+ */
77
+ export declare const unblockMachine: <ThrowOnError extends boolean = false>(options: Options<UnblockMachineData, ThrowOnError>) => RequestResult<UnblockMachineResponses, UnblockMachineErrors, ThrowOnError>;
78
+ /**
79
+ * Search role-provider groups
80
+ *
81
+ * For the access-rule editor: find group tokens by id or name.
82
+ */
83
+ export declare const searchGroups: <ThrowOnError extends boolean = false>(options: Options<SearchGroupsData, ThrowOnError>) => RequestResult<SearchGroupsResponses, SearchGroupsErrors, ThrowOnError>;
84
+ /**
85
+ * The caller's API keys
86
+ */
87
+ export declare const listKeys: <ThrowOnError extends boolean = false>(options?: Options<ListKeysData, ThrowOnError>) => RequestResult<ListKeysResponses, ListKeysErrors, ThrowOnError>;
88
+ /**
89
+ * Create an API key
90
+ *
91
+ * The name is required and unique per person. The secret is returned exactly once.
92
+ */
93
+ export declare const createKey: <ThrowOnError extends boolean = false>(options: Options<CreateKeyData, ThrowOnError>) => RequestResult<CreateKeyResponses, CreateKeyErrors, ThrowOnError>;
94
+ /**
95
+ * Delete one of the caller's API keys
96
+ */
97
+ export declare const deleteKey: <ThrowOnError extends boolean = false>(options: Options<DeleteKeyData, ThrowOnError>) => RequestResult<DeleteKeyResponses, DeleteKeyErrors, ThrowOnError>;
98
+ /**
99
+ * Who am I, and what may I do?
100
+ *
101
+ * Always 200 for an authenticated caller. Without access, role is empty.
102
+ */
103
+ export declare const getMe: <ThrowOnError extends boolean = false>(options?: Options<GetMeData, ThrowOnError>) => RequestResult<GetMeResponses, GetMeErrors, ThrowOnError>;
104
+ /**
105
+ * Quota tiers a rule may use
106
+ */
107
+ export declare const listTiers: <ThrowOnError extends boolean = false>(options?: Options<ListTiersData, ThrowOnError>) => RequestResult<ListTiersResponses, unknown, ThrowOnError>;
108
+ /**
109
+ * Quota, limits and keys of the caller
110
+ *
111
+ * Monthly budget over all keys, the per-key short-term budgets, rate limits and allowed models.
112
+ */
113
+ export declare const getUsage: <ThrowOnError extends boolean = false>(options?: Options<GetUsageData, ThrowOnError>) => RequestResult<GetUsageResponses, GetUsageErrors, ThrowOnError>;
@@ -0,0 +1,583 @@
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
+ id?: number;
14
+ role?: AccessRole;
15
+ tier?: string;
16
+ token?: string;
17
+ updated_at?: string;
18
+ updated_by?: string;
19
+ };
20
+ export type FleetFleetView = {
21
+ allowed_serials?: number;
22
+ capacity?: number;
23
+ enabled?: boolean;
24
+ endpoint_v6?: string;
25
+ enroll_host?: string;
26
+ enroll_token?: string;
27
+ listen_port?: number;
28
+ package?: FleetPackageInfo;
29
+ package_id?: string;
30
+ peers?: Array<FleetPeerView>;
31
+ pool?: string;
32
+ profiles?: Array<FleetProfile>;
33
+ reenroll_seconds?: number;
34
+ self_update?: {
35
+ canary?: Array<string>;
36
+ mode?: string;
37
+ scripts?: {
38
+ [key: string]: string;
39
+ };
40
+ };
41
+ };
42
+ export type FleetPackageInfo = {
43
+ file?: string;
44
+ sha256?: string;
45
+ size?: number;
46
+ uploaded_at?: string;
47
+ version?: string;
48
+ };
49
+ export type FleetPeerView = {
50
+ address?: string;
51
+ api_base?: string;
52
+ blocked?: boolean;
53
+ busy?: boolean;
54
+ canary?: boolean;
55
+ contact?: string;
56
+ controls?: boolean;
57
+ enabled?: boolean;
58
+ gate?: string;
59
+ hardware?: string;
60
+ hostname?: string;
61
+ inference?: 'angehalten' | 'unbekannt' | 'nicht registriert' | 'erreichbar' | 'gestört' | 'teilweise';
62
+ inference_error?: string;
63
+ last_seen?: string;
64
+ location?: string;
65
+ model?: string;
66
+ model_state?: 'fremdverwaltet' | 'erfüllt' | 'abweichend' | 'unbekannt';
67
+ models?: Array<string>;
68
+ name?: string;
69
+ operator?: string;
70
+ os?: string;
71
+ pkg_version?: string;
72
+ profile?: string;
73
+ quiet_seconds?: number;
74
+ ram_gb?: number;
75
+ script_state?: string;
76
+ serial?: string;
77
+ serving?: Array<string>;
78
+ state?: 'aktiv' | 'ohne Rückmeldung' | 'gesperrt';
79
+ transport?: string;
80
+ };
81
+ export type FleetProfile = {
82
+ context?: number;
83
+ minRamMb?: number;
84
+ model?: string;
85
+ name?: string;
86
+ weight?: number;
87
+ wiredLimitMb?: number;
88
+ };
89
+ export type KeysKeyView = {
90
+ budget?: number;
91
+ budget_duration?: string;
92
+ chat?: boolean;
93
+ id?: string;
94
+ name?: string;
95
+ reset_at?: string;
96
+ spend?: number;
97
+ };
98
+ export type KeysUsage = {
99
+ budget?: number;
100
+ budget_duration?: string;
101
+ keys?: Array<KeysKeyView>;
102
+ max_keys?: number;
103
+ models?: Array<string>;
104
+ own_keys?: number;
105
+ reset_at?: string;
106
+ rpm?: number;
107
+ spend?: number;
108
+ tpm?: number;
109
+ };
110
+ export type RoleproviderGroup = {
111
+ display_name?: string;
112
+ token?: string;
113
+ };
114
+ export type WebserverCreateKeyRequest = {
115
+ name: string;
116
+ };
117
+ export type WebserverCreateKeyResponse = {
118
+ key?: string;
119
+ name?: string;
120
+ };
121
+ export type WebserverErrorResponse = {
122
+ /**
123
+ * Stable machine-readable reason.
124
+ */
125
+ code?: string;
126
+ /**
127
+ * Readable text, in the field the self-service-ui reads (as with the other DHBW Cloud APIs).
128
+ */
129
+ error?: string;
130
+ };
131
+ export type WebserverMeResponse = {
132
+ /**
133
+ * Only for admins: autologin link to the LiteLLM admin UI.
134
+ */
135
+ admin_ui_url?: string;
136
+ api_url?: string;
137
+ chat_url?: string;
138
+ email?: string;
139
+ matched_token?: string;
140
+ role?: 'user' | 'fleet-admin' | 'admin';
141
+ tier?: string;
142
+ };
143
+ export type WebserverRuleRequest = {
144
+ comment?: string;
145
+ role: 'user' | 'fleet-admin' | 'admin';
146
+ tier: string;
147
+ token: string;
148
+ };
149
+ export type WebserverRuleRequest2 = WebserverRuleRequest;
150
+ export type ListAccessRulesData = {
151
+ body?: never;
152
+ path?: never;
153
+ query?: never;
154
+ url: '/v1/access-rules';
155
+ };
156
+ export type ListAccessRulesErrors = {
157
+ /**
158
+ * Forbidden
159
+ */
160
+ 403: WebserverErrorResponse;
161
+ };
162
+ export type ListAccessRulesError = ListAccessRulesErrors[keyof ListAccessRulesErrors];
163
+ export type ListAccessRulesResponses = {
164
+ /**
165
+ * OK
166
+ */
167
+ 200: Array<AccessRule>;
168
+ };
169
+ export type ListAccessRulesResponse = ListAccessRulesResponses[keyof ListAccessRulesResponses];
170
+ export type CreateAccessRuleData = {
171
+ /**
172
+ * Rule
173
+ */
174
+ body: WebserverRuleRequest2;
175
+ path?: never;
176
+ query?: never;
177
+ url: '/v1/access-rules';
178
+ };
179
+ export type CreateAccessRuleErrors = {
180
+ /**
181
+ * Bad Request
182
+ */
183
+ 400: WebserverErrorResponse;
184
+ /**
185
+ * Conflict
186
+ */
187
+ 409: WebserverErrorResponse;
188
+ };
189
+ export type CreateAccessRuleError = CreateAccessRuleErrors[keyof CreateAccessRuleErrors];
190
+ export type CreateAccessRuleResponses = {
191
+ /**
192
+ * Created
193
+ */
194
+ 201: AccessRule;
195
+ };
196
+ export type CreateAccessRuleResponse = CreateAccessRuleResponses[keyof CreateAccessRuleResponses];
197
+ export type DeleteAccessRuleData = {
198
+ body?: never;
199
+ path: {
200
+ /**
201
+ * Rule id
202
+ */
203
+ id: number;
204
+ };
205
+ query?: never;
206
+ url: '/v1/access-rules/{id}';
207
+ };
208
+ export type DeleteAccessRuleErrors = {
209
+ /**
210
+ * Not Found
211
+ */
212
+ 404: WebserverErrorResponse;
213
+ };
214
+ export type DeleteAccessRuleError = DeleteAccessRuleErrors[keyof DeleteAccessRuleErrors];
215
+ export type DeleteAccessRuleResponses = {
216
+ /**
217
+ * No Content
218
+ */
219
+ 204: void;
220
+ };
221
+ export type DeleteAccessRuleResponse = DeleteAccessRuleResponses[keyof DeleteAccessRuleResponses];
222
+ export type UpdateAccessRuleData = {
223
+ /**
224
+ * Rule
225
+ */
226
+ body: WebserverRuleRequest2;
227
+ path: {
228
+ /**
229
+ * Rule id
230
+ */
231
+ id: number;
232
+ };
233
+ query?: never;
234
+ url: '/v1/access-rules/{id}';
235
+ };
236
+ export type UpdateAccessRuleErrors = {
237
+ /**
238
+ * Bad Request
239
+ */
240
+ 400: WebserverErrorResponse;
241
+ /**
242
+ * Not Found
243
+ */
244
+ 404: WebserverErrorResponse;
245
+ };
246
+ export type UpdateAccessRuleError = UpdateAccessRuleErrors[keyof UpdateAccessRuleErrors];
247
+ export type UpdateAccessRuleResponses = {
248
+ /**
249
+ * OK
250
+ */
251
+ 200: AccessRule;
252
+ };
253
+ export type UpdateAccessRuleResponse = UpdateAccessRuleResponses[keyof UpdateAccessRuleResponses];
254
+ export type GetFleetData = {
255
+ body?: never;
256
+ path?: never;
257
+ query?: never;
258
+ url: '/v1/fleet';
259
+ };
260
+ export type GetFleetErrors = {
261
+ /**
262
+ * Forbidden
263
+ */
264
+ 403: WebserverErrorResponse;
265
+ };
266
+ export type GetFleetError = GetFleetErrors[keyof GetFleetErrors];
267
+ export type GetFleetResponses = {
268
+ /**
269
+ * OK
270
+ */
271
+ 200: FleetFleetView;
272
+ };
273
+ export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
274
+ export type GetFleetInventoryCsvData = {
275
+ body?: never;
276
+ path?: never;
277
+ query?: never;
278
+ url: '/v1/fleet/inventory.csv';
279
+ };
280
+ export type GetFleetInventoryCsvResponses = {
281
+ /**
282
+ * OK
283
+ */
284
+ 200: string;
285
+ };
286
+ export type GetFleetInventoryCsvResponse = GetFleetInventoryCsvResponses[keyof GetFleetInventoryCsvResponses];
287
+ export type DeleteFleetPackageData = {
288
+ body?: never;
289
+ path?: never;
290
+ query?: never;
291
+ url: '/v1/fleet/package';
292
+ };
293
+ export type DeleteFleetPackageResponses = {
294
+ /**
295
+ * No Content
296
+ */
297
+ 204: void;
298
+ };
299
+ export type DeleteFleetPackageResponse = DeleteFleetPackageResponses[keyof DeleteFleetPackageResponses];
300
+ export type GetFleetPackageData = {
301
+ body?: never;
302
+ path?: never;
303
+ query?: never;
304
+ url: '/v1/fleet/package';
305
+ };
306
+ export type GetFleetPackageErrors = {
307
+ /**
308
+ * Not Found
309
+ */
310
+ 404: WebserverErrorResponse;
311
+ };
312
+ export type GetFleetPackageError = GetFleetPackageErrors[keyof GetFleetPackageErrors];
313
+ export type GetFleetPackageResponses = {
314
+ /**
315
+ * OK
316
+ */
317
+ 200: Blob | File;
318
+ };
319
+ export type GetFleetPackageResponse = GetFleetPackageResponses[keyof GetFleetPackageResponses];
320
+ export type GetFleetProfileData = {
321
+ body?: never;
322
+ path?: never;
323
+ query?: {
324
+ /**
325
+ * Standort
326
+ */
327
+ location?: string;
328
+ /**
329
+ * Betreiber
330
+ */
331
+ operator?: string;
332
+ /**
333
+ * Kontakt
334
+ */
335
+ contact?: string;
336
+ };
337
+ url: '/v1/fleet/profile';
338
+ };
339
+ export type GetFleetProfileResponses = {
340
+ /**
341
+ * OK
342
+ */
343
+ 200: string;
344
+ };
345
+ export type GetFleetProfileResponse = GetFleetProfileResponses[keyof GetFleetProfileResponses];
346
+ export type GetFleetReadmeData = {
347
+ body?: never;
348
+ path?: never;
349
+ query?: never;
350
+ url: '/v1/fleet/readme';
351
+ };
352
+ export type GetFleetReadmeResponses = {
353
+ /**
354
+ * OK
355
+ */
356
+ 200: string;
357
+ };
358
+ export type GetFleetReadmeResponse = GetFleetReadmeResponses[keyof GetFleetReadmeResponses];
359
+ export type ForgetMachineData = {
360
+ body?: never;
361
+ path: {
362
+ /**
363
+ * Serial number
364
+ */
365
+ serial: string;
366
+ };
367
+ query?: never;
368
+ url: '/v1/fleet/{serial}';
369
+ };
370
+ export type ForgetMachineErrors = {
371
+ /**
372
+ * Not Found
373
+ */
374
+ 404: WebserverErrorResponse;
375
+ };
376
+ export type ForgetMachineError = ForgetMachineErrors[keyof ForgetMachineErrors];
377
+ export type ForgetMachineResponses = {
378
+ /**
379
+ * No Content
380
+ */
381
+ 204: void;
382
+ };
383
+ export type ForgetMachineResponse = ForgetMachineResponses[keyof ForgetMachineResponses];
384
+ export type BlockMachineData = {
385
+ body?: never;
386
+ path: {
387
+ /**
388
+ * Serial number
389
+ */
390
+ serial: string;
391
+ };
392
+ query?: never;
393
+ url: '/v1/fleet/{serial}/block';
394
+ };
395
+ export type BlockMachineErrors = {
396
+ /**
397
+ * Not Found
398
+ */
399
+ 404: WebserverErrorResponse;
400
+ };
401
+ export type BlockMachineError = BlockMachineErrors[keyof BlockMachineErrors];
402
+ export type BlockMachineResponses = {
403
+ /**
404
+ * No Content
405
+ */
406
+ 204: void;
407
+ };
408
+ export type BlockMachineResponse = BlockMachineResponses[keyof BlockMachineResponses];
409
+ export type UnblockMachineData = {
410
+ body?: never;
411
+ path: {
412
+ /**
413
+ * Serial number
414
+ */
415
+ serial: string;
416
+ };
417
+ query?: never;
418
+ url: '/v1/fleet/{serial}/unblock';
419
+ };
420
+ export type UnblockMachineErrors = {
421
+ /**
422
+ * Not Found
423
+ */
424
+ 404: WebserverErrorResponse;
425
+ };
426
+ export type UnblockMachineError = UnblockMachineErrors[keyof UnblockMachineErrors];
427
+ export type UnblockMachineResponses = {
428
+ /**
429
+ * No Content
430
+ */
431
+ 204: void;
432
+ };
433
+ export type UnblockMachineResponse = UnblockMachineResponses[keyof UnblockMachineResponses];
434
+ export type SearchGroupsData = {
435
+ body?: never;
436
+ path?: never;
437
+ query: {
438
+ /**
439
+ * Search text (min. 2 characters)
440
+ */
441
+ q: string;
442
+ };
443
+ url: '/v1/groups';
444
+ };
445
+ export type SearchGroupsErrors = {
446
+ /**
447
+ * Bad Gateway
448
+ */
449
+ 502: WebserverErrorResponse;
450
+ };
451
+ export type SearchGroupsError = SearchGroupsErrors[keyof SearchGroupsErrors];
452
+ export type SearchGroupsResponses = {
453
+ /**
454
+ * OK
455
+ */
456
+ 200: Array<RoleproviderGroup>;
457
+ };
458
+ export type SearchGroupsResponse = SearchGroupsResponses[keyof SearchGroupsResponses];
459
+ export type ListKeysData = {
460
+ body?: never;
461
+ path?: never;
462
+ query?: never;
463
+ url: '/v1/keys';
464
+ };
465
+ export type ListKeysErrors = {
466
+ /**
467
+ * Forbidden
468
+ */
469
+ 403: WebserverErrorResponse;
470
+ };
471
+ export type ListKeysError = ListKeysErrors[keyof ListKeysErrors];
472
+ export type ListKeysResponses = {
473
+ /**
474
+ * OK
475
+ */
476
+ 200: Array<KeysKeyView>;
477
+ };
478
+ export type ListKeysResponse = ListKeysResponses[keyof ListKeysResponses];
479
+ export type CreateKeyData = {
480
+ /**
481
+ * Key
482
+ */
483
+ body: WebserverCreateKeyRequest;
484
+ path?: never;
485
+ query?: never;
486
+ url: '/v1/keys';
487
+ };
488
+ export type CreateKeyErrors = {
489
+ /**
490
+ * Bad Request
491
+ */
492
+ 400: WebserverErrorResponse;
493
+ /**
494
+ * Conflict
495
+ */
496
+ 409: WebserverErrorResponse;
497
+ };
498
+ export type CreateKeyError = CreateKeyErrors[keyof CreateKeyErrors];
499
+ export type CreateKeyResponses = {
500
+ /**
501
+ * Created
502
+ */
503
+ 201: WebserverCreateKeyResponse;
504
+ };
505
+ export type CreateKeyResponse = CreateKeyResponses[keyof CreateKeyResponses];
506
+ export type DeleteKeyData = {
507
+ body?: never;
508
+ path: {
509
+ /**
510
+ * Key id (from the key list, not the secret)
511
+ */
512
+ id: string;
513
+ };
514
+ query?: never;
515
+ url: '/v1/keys/{id}';
516
+ };
517
+ export type DeleteKeyErrors = {
518
+ /**
519
+ * Not Found
520
+ */
521
+ 404: WebserverErrorResponse;
522
+ };
523
+ export type DeleteKeyError = DeleteKeyErrors[keyof DeleteKeyErrors];
524
+ export type DeleteKeyResponses = {
525
+ /**
526
+ * No Content
527
+ */
528
+ 204: void;
529
+ };
530
+ export type DeleteKeyResponse = DeleteKeyResponses[keyof DeleteKeyResponses];
531
+ export type GetMeData = {
532
+ body?: never;
533
+ path?: never;
534
+ query?: never;
535
+ url: '/v1/me';
536
+ };
537
+ export type GetMeErrors = {
538
+ /**
539
+ * Unauthorized
540
+ */
541
+ 401: WebserverErrorResponse;
542
+ };
543
+ export type GetMeError = GetMeErrors[keyof GetMeErrors];
544
+ export type GetMeResponses = {
545
+ /**
546
+ * OK
547
+ */
548
+ 200: WebserverMeResponse;
549
+ };
550
+ export type GetMeResponse = GetMeResponses[keyof GetMeResponses];
551
+ export type ListTiersData = {
552
+ body?: never;
553
+ path?: never;
554
+ query?: never;
555
+ url: '/v1/tiers';
556
+ };
557
+ export type ListTiersResponses = {
558
+ /**
559
+ * OK
560
+ */
561
+ 200: Array<string>;
562
+ };
563
+ export type ListTiersResponse = ListTiersResponses[keyof ListTiersResponses];
564
+ export type GetUsageData = {
565
+ body?: never;
566
+ path?: never;
567
+ query?: never;
568
+ url: '/v1/usage';
569
+ };
570
+ export type GetUsageErrors = {
571
+ /**
572
+ * Forbidden
573
+ */
574
+ 403: WebserverErrorResponse;
575
+ };
576
+ export type GetUsageError = GetUsageErrors[keyof GetUsageErrors];
577
+ export type GetUsageResponses = {
578
+ /**
579
+ * OK
580
+ */
581
+ 200: KeysUsage;
582
+ };
583
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "@dhbw-cloud/llm-client",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0-test.7",
4
+ "description": "Generated TypeScript client for the DHBW Cloud llm-management-api.",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "exports": { ".": { "types": "./dist/entry.d.ts", "default": "./dist/index.mjs" } },
8
+ "types": "./dist/entry.d.ts",
9
+ "files": ["dist"],
10
+ "publishConfig": { "access": "public" },
11
+ "repository": { "type": "git", "url": "git+https://github.com/pfisterer/llm-management-api.git" }
12
+ }