@dhbw-cloud/llm-client 0.0.0-stage → 0.1.0-test.11
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 +924 -0
- package/dist/sdk.gen.d.ts +113 -0
- package/dist/types.gen.d.ts +595 -0
- package/package.json +10 -4
- package/README.md +0 -3
|
@@ -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, SearchPrincipalsData, SearchPrincipalsErrors, SearchPrincipalsResponses, 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
|
+
* The caller's API keys
|
|
80
|
+
*/
|
|
81
|
+
export declare const listKeys: <ThrowOnError extends boolean = false>(options?: Options<ListKeysData, ThrowOnError>) => RequestResult<ListKeysResponses, ListKeysErrors, ThrowOnError>;
|
|
82
|
+
/**
|
|
83
|
+
* Create an API key
|
|
84
|
+
*
|
|
85
|
+
* The name is required and unique per person. The secret is returned exactly once.
|
|
86
|
+
*/
|
|
87
|
+
export declare const createKey: <ThrowOnError extends boolean = false>(options: Options<CreateKeyData, ThrowOnError>) => RequestResult<CreateKeyResponses, CreateKeyErrors, ThrowOnError>;
|
|
88
|
+
/**
|
|
89
|
+
* Delete one of the caller's API keys
|
|
90
|
+
*/
|
|
91
|
+
export declare const deleteKey: <ThrowOnError extends boolean = false>(options: Options<DeleteKeyData, ThrowOnError>) => RequestResult<DeleteKeyResponses, DeleteKeyErrors, ThrowOnError>;
|
|
92
|
+
/**
|
|
93
|
+
* Who am I, and what may I do?
|
|
94
|
+
*
|
|
95
|
+
* Always 200 for an authenticated caller. Without access, role is empty.
|
|
96
|
+
*/
|
|
97
|
+
export declare const getMe: <ThrowOnError extends boolean = false>(options?: Options<GetMeData, ThrowOnError>) => RequestResult<GetMeResponses, GetMeErrors, ThrowOnError>;
|
|
98
|
+
/**
|
|
99
|
+
* Search groups and users
|
|
100
|
+
*
|
|
101
|
+
* For the access-rule editor. Groups match on ID, display name or description; users on their EMAIL ADDRESS ONLY and only once q is non-empty — the directory is not browsable by person or name.
|
|
102
|
+
*/
|
|
103
|
+
export declare const searchPrincipals: <ThrowOnError extends boolean = false>(options?: Options<SearchPrincipalsData, ThrowOnError>) => RequestResult<SearchPrincipalsResponses, SearchPrincipalsErrors, 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,595 @@
|
|
|
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
|
+
description?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Display name, left out when it only repeats the group ID (imported groups).
|
|
114
|
+
*/
|
|
115
|
+
label?: string;
|
|
116
|
+
token?: string;
|
|
117
|
+
};
|
|
118
|
+
export type WebserverCreateKeyRequest = {
|
|
119
|
+
name: string;
|
|
120
|
+
};
|
|
121
|
+
export type WebserverCreateKeyResponse = {
|
|
122
|
+
key?: string;
|
|
123
|
+
name?: string;
|
|
124
|
+
};
|
|
125
|
+
export type WebserverErrorResponse = {
|
|
126
|
+
/**
|
|
127
|
+
* Stable machine-readable reason.
|
|
128
|
+
*/
|
|
129
|
+
code?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Readable text, in the field the self-service-ui reads (as with the other DHBW Cloud APIs).
|
|
132
|
+
*/
|
|
133
|
+
error?: string;
|
|
134
|
+
};
|
|
135
|
+
export type WebserverMeResponse = {
|
|
136
|
+
/**
|
|
137
|
+
* Only for admins: autologin link to the LiteLLM admin UI.
|
|
138
|
+
*/
|
|
139
|
+
admin_ui_url?: string;
|
|
140
|
+
api_url?: string;
|
|
141
|
+
chat_url?: string;
|
|
142
|
+
email?: string;
|
|
143
|
+
matched_token?: string;
|
|
144
|
+
role?: 'user' | 'fleet-admin' | 'admin';
|
|
145
|
+
tier?: string;
|
|
146
|
+
};
|
|
147
|
+
export type WebserverPrincipalSearchResponse = {
|
|
148
|
+
groups?: Array<RoleproviderGroup>;
|
|
149
|
+
users?: Array<string>;
|
|
150
|
+
};
|
|
151
|
+
export type WebserverRuleRequest = {
|
|
152
|
+
comment?: string;
|
|
153
|
+
role: 'user' | 'fleet-admin' | 'admin';
|
|
154
|
+
tier: string;
|
|
155
|
+
token: string;
|
|
156
|
+
};
|
|
157
|
+
export type WebserverRuleRequest2 = WebserverRuleRequest;
|
|
158
|
+
export type ListAccessRulesData = {
|
|
159
|
+
body?: never;
|
|
160
|
+
path?: never;
|
|
161
|
+
query?: never;
|
|
162
|
+
url: '/v1/access-rules';
|
|
163
|
+
};
|
|
164
|
+
export type ListAccessRulesErrors = {
|
|
165
|
+
/**
|
|
166
|
+
* Forbidden
|
|
167
|
+
*/
|
|
168
|
+
403: WebserverErrorResponse;
|
|
169
|
+
};
|
|
170
|
+
export type ListAccessRulesError = ListAccessRulesErrors[keyof ListAccessRulesErrors];
|
|
171
|
+
export type ListAccessRulesResponses = {
|
|
172
|
+
/**
|
|
173
|
+
* OK
|
|
174
|
+
*/
|
|
175
|
+
200: Array<AccessRule>;
|
|
176
|
+
};
|
|
177
|
+
export type ListAccessRulesResponse = ListAccessRulesResponses[keyof ListAccessRulesResponses];
|
|
178
|
+
export type CreateAccessRuleData = {
|
|
179
|
+
/**
|
|
180
|
+
* Rule
|
|
181
|
+
*/
|
|
182
|
+
body: WebserverRuleRequest2;
|
|
183
|
+
path?: never;
|
|
184
|
+
query?: never;
|
|
185
|
+
url: '/v1/access-rules';
|
|
186
|
+
};
|
|
187
|
+
export type CreateAccessRuleErrors = {
|
|
188
|
+
/**
|
|
189
|
+
* Bad Request
|
|
190
|
+
*/
|
|
191
|
+
400: WebserverErrorResponse;
|
|
192
|
+
/**
|
|
193
|
+
* Conflict
|
|
194
|
+
*/
|
|
195
|
+
409: WebserverErrorResponse;
|
|
196
|
+
};
|
|
197
|
+
export type CreateAccessRuleError = CreateAccessRuleErrors[keyof CreateAccessRuleErrors];
|
|
198
|
+
export type CreateAccessRuleResponses = {
|
|
199
|
+
/**
|
|
200
|
+
* Created
|
|
201
|
+
*/
|
|
202
|
+
201: AccessRule;
|
|
203
|
+
};
|
|
204
|
+
export type CreateAccessRuleResponse = CreateAccessRuleResponses[keyof CreateAccessRuleResponses];
|
|
205
|
+
export type DeleteAccessRuleData = {
|
|
206
|
+
body?: never;
|
|
207
|
+
path: {
|
|
208
|
+
/**
|
|
209
|
+
* Rule id
|
|
210
|
+
*/
|
|
211
|
+
id: number;
|
|
212
|
+
};
|
|
213
|
+
query?: never;
|
|
214
|
+
url: '/v1/access-rules/{id}';
|
|
215
|
+
};
|
|
216
|
+
export type DeleteAccessRuleErrors = {
|
|
217
|
+
/**
|
|
218
|
+
* Not Found
|
|
219
|
+
*/
|
|
220
|
+
404: WebserverErrorResponse;
|
|
221
|
+
};
|
|
222
|
+
export type DeleteAccessRuleError = DeleteAccessRuleErrors[keyof DeleteAccessRuleErrors];
|
|
223
|
+
export type DeleteAccessRuleResponses = {
|
|
224
|
+
/**
|
|
225
|
+
* No Content
|
|
226
|
+
*/
|
|
227
|
+
204: void;
|
|
228
|
+
};
|
|
229
|
+
export type DeleteAccessRuleResponse = DeleteAccessRuleResponses[keyof DeleteAccessRuleResponses];
|
|
230
|
+
export type UpdateAccessRuleData = {
|
|
231
|
+
/**
|
|
232
|
+
* Rule
|
|
233
|
+
*/
|
|
234
|
+
body: WebserverRuleRequest2;
|
|
235
|
+
path: {
|
|
236
|
+
/**
|
|
237
|
+
* Rule id
|
|
238
|
+
*/
|
|
239
|
+
id: number;
|
|
240
|
+
};
|
|
241
|
+
query?: never;
|
|
242
|
+
url: '/v1/access-rules/{id}';
|
|
243
|
+
};
|
|
244
|
+
export type UpdateAccessRuleErrors = {
|
|
245
|
+
/**
|
|
246
|
+
* Bad Request
|
|
247
|
+
*/
|
|
248
|
+
400: WebserverErrorResponse;
|
|
249
|
+
/**
|
|
250
|
+
* Not Found
|
|
251
|
+
*/
|
|
252
|
+
404: WebserverErrorResponse;
|
|
253
|
+
};
|
|
254
|
+
export type UpdateAccessRuleError = UpdateAccessRuleErrors[keyof UpdateAccessRuleErrors];
|
|
255
|
+
export type UpdateAccessRuleResponses = {
|
|
256
|
+
/**
|
|
257
|
+
* OK
|
|
258
|
+
*/
|
|
259
|
+
200: AccessRule;
|
|
260
|
+
};
|
|
261
|
+
export type UpdateAccessRuleResponse = UpdateAccessRuleResponses[keyof UpdateAccessRuleResponses];
|
|
262
|
+
export type GetFleetData = {
|
|
263
|
+
body?: never;
|
|
264
|
+
path?: never;
|
|
265
|
+
query?: never;
|
|
266
|
+
url: '/v1/fleet';
|
|
267
|
+
};
|
|
268
|
+
export type GetFleetErrors = {
|
|
269
|
+
/**
|
|
270
|
+
* Forbidden
|
|
271
|
+
*/
|
|
272
|
+
403: WebserverErrorResponse;
|
|
273
|
+
};
|
|
274
|
+
export type GetFleetError = GetFleetErrors[keyof GetFleetErrors];
|
|
275
|
+
export type GetFleetResponses = {
|
|
276
|
+
/**
|
|
277
|
+
* OK
|
|
278
|
+
*/
|
|
279
|
+
200: FleetFleetView;
|
|
280
|
+
};
|
|
281
|
+
export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
|
|
282
|
+
export type GetFleetInventoryCsvData = {
|
|
283
|
+
body?: never;
|
|
284
|
+
path?: never;
|
|
285
|
+
query?: never;
|
|
286
|
+
url: '/v1/fleet/inventory.csv';
|
|
287
|
+
};
|
|
288
|
+
export type GetFleetInventoryCsvResponses = {
|
|
289
|
+
/**
|
|
290
|
+
* OK
|
|
291
|
+
*/
|
|
292
|
+
200: string;
|
|
293
|
+
};
|
|
294
|
+
export type GetFleetInventoryCsvResponse = GetFleetInventoryCsvResponses[keyof GetFleetInventoryCsvResponses];
|
|
295
|
+
export type DeleteFleetPackageData = {
|
|
296
|
+
body?: never;
|
|
297
|
+
path?: never;
|
|
298
|
+
query?: never;
|
|
299
|
+
url: '/v1/fleet/package';
|
|
300
|
+
};
|
|
301
|
+
export type DeleteFleetPackageResponses = {
|
|
302
|
+
/**
|
|
303
|
+
* No Content
|
|
304
|
+
*/
|
|
305
|
+
204: void;
|
|
306
|
+
};
|
|
307
|
+
export type DeleteFleetPackageResponse = DeleteFleetPackageResponses[keyof DeleteFleetPackageResponses];
|
|
308
|
+
export type GetFleetPackageData = {
|
|
309
|
+
body?: never;
|
|
310
|
+
path?: never;
|
|
311
|
+
query?: never;
|
|
312
|
+
url: '/v1/fleet/package';
|
|
313
|
+
};
|
|
314
|
+
export type GetFleetPackageErrors = {
|
|
315
|
+
/**
|
|
316
|
+
* Not Found
|
|
317
|
+
*/
|
|
318
|
+
404: WebserverErrorResponse;
|
|
319
|
+
};
|
|
320
|
+
export type GetFleetPackageError = GetFleetPackageErrors[keyof GetFleetPackageErrors];
|
|
321
|
+
export type GetFleetPackageResponses = {
|
|
322
|
+
/**
|
|
323
|
+
* OK
|
|
324
|
+
*/
|
|
325
|
+
200: Blob | File;
|
|
326
|
+
};
|
|
327
|
+
export type GetFleetPackageResponse = GetFleetPackageResponses[keyof GetFleetPackageResponses];
|
|
328
|
+
export type GetFleetProfileData = {
|
|
329
|
+
body?: never;
|
|
330
|
+
path?: never;
|
|
331
|
+
query?: {
|
|
332
|
+
/**
|
|
333
|
+
* Standort
|
|
334
|
+
*/
|
|
335
|
+
location?: string;
|
|
336
|
+
/**
|
|
337
|
+
* Betreiber
|
|
338
|
+
*/
|
|
339
|
+
operator?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Kontakt
|
|
342
|
+
*/
|
|
343
|
+
contact?: string;
|
|
344
|
+
};
|
|
345
|
+
url: '/v1/fleet/profile';
|
|
346
|
+
};
|
|
347
|
+
export type GetFleetProfileResponses = {
|
|
348
|
+
/**
|
|
349
|
+
* OK
|
|
350
|
+
*/
|
|
351
|
+
200: string;
|
|
352
|
+
};
|
|
353
|
+
export type GetFleetProfileResponse = GetFleetProfileResponses[keyof GetFleetProfileResponses];
|
|
354
|
+
export type GetFleetReadmeData = {
|
|
355
|
+
body?: never;
|
|
356
|
+
path?: never;
|
|
357
|
+
query?: never;
|
|
358
|
+
url: '/v1/fleet/readme';
|
|
359
|
+
};
|
|
360
|
+
export type GetFleetReadmeResponses = {
|
|
361
|
+
/**
|
|
362
|
+
* OK
|
|
363
|
+
*/
|
|
364
|
+
200: string;
|
|
365
|
+
};
|
|
366
|
+
export type GetFleetReadmeResponse = GetFleetReadmeResponses[keyof GetFleetReadmeResponses];
|
|
367
|
+
export type ForgetMachineData = {
|
|
368
|
+
body?: never;
|
|
369
|
+
path: {
|
|
370
|
+
/**
|
|
371
|
+
* Serial number
|
|
372
|
+
*/
|
|
373
|
+
serial: string;
|
|
374
|
+
};
|
|
375
|
+
query?: never;
|
|
376
|
+
url: '/v1/fleet/{serial}';
|
|
377
|
+
};
|
|
378
|
+
export type ForgetMachineErrors = {
|
|
379
|
+
/**
|
|
380
|
+
* Not Found
|
|
381
|
+
*/
|
|
382
|
+
404: WebserverErrorResponse;
|
|
383
|
+
};
|
|
384
|
+
export type ForgetMachineError = ForgetMachineErrors[keyof ForgetMachineErrors];
|
|
385
|
+
export type ForgetMachineResponses = {
|
|
386
|
+
/**
|
|
387
|
+
* No Content
|
|
388
|
+
*/
|
|
389
|
+
204: void;
|
|
390
|
+
};
|
|
391
|
+
export type ForgetMachineResponse = ForgetMachineResponses[keyof ForgetMachineResponses];
|
|
392
|
+
export type BlockMachineData = {
|
|
393
|
+
body?: never;
|
|
394
|
+
path: {
|
|
395
|
+
/**
|
|
396
|
+
* Serial number
|
|
397
|
+
*/
|
|
398
|
+
serial: string;
|
|
399
|
+
};
|
|
400
|
+
query?: never;
|
|
401
|
+
url: '/v1/fleet/{serial}/block';
|
|
402
|
+
};
|
|
403
|
+
export type BlockMachineErrors = {
|
|
404
|
+
/**
|
|
405
|
+
* Not Found
|
|
406
|
+
*/
|
|
407
|
+
404: WebserverErrorResponse;
|
|
408
|
+
};
|
|
409
|
+
export type BlockMachineError = BlockMachineErrors[keyof BlockMachineErrors];
|
|
410
|
+
export type BlockMachineResponses = {
|
|
411
|
+
/**
|
|
412
|
+
* No Content
|
|
413
|
+
*/
|
|
414
|
+
204: void;
|
|
415
|
+
};
|
|
416
|
+
export type BlockMachineResponse = BlockMachineResponses[keyof BlockMachineResponses];
|
|
417
|
+
export type UnblockMachineData = {
|
|
418
|
+
body?: never;
|
|
419
|
+
path: {
|
|
420
|
+
/**
|
|
421
|
+
* Serial number
|
|
422
|
+
*/
|
|
423
|
+
serial: string;
|
|
424
|
+
};
|
|
425
|
+
query?: never;
|
|
426
|
+
url: '/v1/fleet/{serial}/unblock';
|
|
427
|
+
};
|
|
428
|
+
export type UnblockMachineErrors = {
|
|
429
|
+
/**
|
|
430
|
+
* Not Found
|
|
431
|
+
*/
|
|
432
|
+
404: WebserverErrorResponse;
|
|
433
|
+
};
|
|
434
|
+
export type UnblockMachineError = UnblockMachineErrors[keyof UnblockMachineErrors];
|
|
435
|
+
export type UnblockMachineResponses = {
|
|
436
|
+
/**
|
|
437
|
+
* No Content
|
|
438
|
+
*/
|
|
439
|
+
204: void;
|
|
440
|
+
};
|
|
441
|
+
export type UnblockMachineResponse = UnblockMachineResponses[keyof UnblockMachineResponses];
|
|
442
|
+
export type ListKeysData = {
|
|
443
|
+
body?: never;
|
|
444
|
+
path?: never;
|
|
445
|
+
query?: never;
|
|
446
|
+
url: '/v1/keys';
|
|
447
|
+
};
|
|
448
|
+
export type ListKeysErrors = {
|
|
449
|
+
/**
|
|
450
|
+
* Forbidden
|
|
451
|
+
*/
|
|
452
|
+
403: WebserverErrorResponse;
|
|
453
|
+
};
|
|
454
|
+
export type ListKeysError = ListKeysErrors[keyof ListKeysErrors];
|
|
455
|
+
export type ListKeysResponses = {
|
|
456
|
+
/**
|
|
457
|
+
* OK
|
|
458
|
+
*/
|
|
459
|
+
200: Array<KeysKeyView>;
|
|
460
|
+
};
|
|
461
|
+
export type ListKeysResponse = ListKeysResponses[keyof ListKeysResponses];
|
|
462
|
+
export type CreateKeyData = {
|
|
463
|
+
/**
|
|
464
|
+
* Key
|
|
465
|
+
*/
|
|
466
|
+
body: WebserverCreateKeyRequest;
|
|
467
|
+
path?: never;
|
|
468
|
+
query?: never;
|
|
469
|
+
url: '/v1/keys';
|
|
470
|
+
};
|
|
471
|
+
export type CreateKeyErrors = {
|
|
472
|
+
/**
|
|
473
|
+
* Bad Request
|
|
474
|
+
*/
|
|
475
|
+
400: WebserverErrorResponse;
|
|
476
|
+
/**
|
|
477
|
+
* Conflict
|
|
478
|
+
*/
|
|
479
|
+
409: WebserverErrorResponse;
|
|
480
|
+
};
|
|
481
|
+
export type CreateKeyError = CreateKeyErrors[keyof CreateKeyErrors];
|
|
482
|
+
export type CreateKeyResponses = {
|
|
483
|
+
/**
|
|
484
|
+
* Created
|
|
485
|
+
*/
|
|
486
|
+
201: WebserverCreateKeyResponse;
|
|
487
|
+
};
|
|
488
|
+
export type CreateKeyResponse = CreateKeyResponses[keyof CreateKeyResponses];
|
|
489
|
+
export type DeleteKeyData = {
|
|
490
|
+
body?: never;
|
|
491
|
+
path: {
|
|
492
|
+
/**
|
|
493
|
+
* Key id (from the key list, not the secret)
|
|
494
|
+
*/
|
|
495
|
+
id: string;
|
|
496
|
+
};
|
|
497
|
+
query?: never;
|
|
498
|
+
url: '/v1/keys/{id}';
|
|
499
|
+
};
|
|
500
|
+
export type DeleteKeyErrors = {
|
|
501
|
+
/**
|
|
502
|
+
* Not Found
|
|
503
|
+
*/
|
|
504
|
+
404: WebserverErrorResponse;
|
|
505
|
+
};
|
|
506
|
+
export type DeleteKeyError = DeleteKeyErrors[keyof DeleteKeyErrors];
|
|
507
|
+
export type DeleteKeyResponses = {
|
|
508
|
+
/**
|
|
509
|
+
* No Content
|
|
510
|
+
*/
|
|
511
|
+
204: void;
|
|
512
|
+
};
|
|
513
|
+
export type DeleteKeyResponse = DeleteKeyResponses[keyof DeleteKeyResponses];
|
|
514
|
+
export type GetMeData = {
|
|
515
|
+
body?: never;
|
|
516
|
+
path?: never;
|
|
517
|
+
query?: never;
|
|
518
|
+
url: '/v1/me';
|
|
519
|
+
};
|
|
520
|
+
export type GetMeErrors = {
|
|
521
|
+
/**
|
|
522
|
+
* Unauthorized
|
|
523
|
+
*/
|
|
524
|
+
401: WebserverErrorResponse;
|
|
525
|
+
};
|
|
526
|
+
export type GetMeError = GetMeErrors[keyof GetMeErrors];
|
|
527
|
+
export type GetMeResponses = {
|
|
528
|
+
/**
|
|
529
|
+
* OK
|
|
530
|
+
*/
|
|
531
|
+
200: WebserverMeResponse;
|
|
532
|
+
};
|
|
533
|
+
export type GetMeResponse = GetMeResponses[keyof GetMeResponses];
|
|
534
|
+
export type SearchPrincipalsData = {
|
|
535
|
+
body?: never;
|
|
536
|
+
path?: never;
|
|
537
|
+
query?: {
|
|
538
|
+
/**
|
|
539
|
+
* Search text
|
|
540
|
+
*/
|
|
541
|
+
q?: string;
|
|
542
|
+
/**
|
|
543
|
+
* Maximum entries per kind (default 10, at most 50)
|
|
544
|
+
*/
|
|
545
|
+
limit?: number;
|
|
546
|
+
};
|
|
547
|
+
url: '/v1/principals/search';
|
|
548
|
+
};
|
|
549
|
+
export type SearchPrincipalsErrors = {
|
|
550
|
+
/**
|
|
551
|
+
* Bad Gateway
|
|
552
|
+
*/
|
|
553
|
+
502: WebserverErrorResponse;
|
|
554
|
+
};
|
|
555
|
+
export type SearchPrincipalsError = SearchPrincipalsErrors[keyof SearchPrincipalsErrors];
|
|
556
|
+
export type SearchPrincipalsResponses = {
|
|
557
|
+
/**
|
|
558
|
+
* OK
|
|
559
|
+
*/
|
|
560
|
+
200: WebserverPrincipalSearchResponse;
|
|
561
|
+
};
|
|
562
|
+
export type SearchPrincipalsResponse = SearchPrincipalsResponses[keyof SearchPrincipalsResponses];
|
|
563
|
+
export type ListTiersData = {
|
|
564
|
+
body?: never;
|
|
565
|
+
path?: never;
|
|
566
|
+
query?: never;
|
|
567
|
+
url: '/v1/tiers';
|
|
568
|
+
};
|
|
569
|
+
export type ListTiersResponses = {
|
|
570
|
+
/**
|
|
571
|
+
* OK
|
|
572
|
+
*/
|
|
573
|
+
200: Array<string>;
|
|
574
|
+
};
|
|
575
|
+
export type ListTiersResponse = ListTiersResponses[keyof ListTiersResponses];
|
|
576
|
+
export type GetUsageData = {
|
|
577
|
+
body?: never;
|
|
578
|
+
path?: never;
|
|
579
|
+
query?: never;
|
|
580
|
+
url: '/v1/usage';
|
|
581
|
+
};
|
|
582
|
+
export type GetUsageErrors = {
|
|
583
|
+
/**
|
|
584
|
+
* Forbidden
|
|
585
|
+
*/
|
|
586
|
+
403: WebserverErrorResponse;
|
|
587
|
+
};
|
|
588
|
+
export type GetUsageError = GetUsageErrors[keyof GetUsageErrors];
|
|
589
|
+
export type GetUsageResponses = {
|
|
590
|
+
/**
|
|
591
|
+
* OK
|
|
592
|
+
*/
|
|
593
|
+
200: KeysUsage;
|
|
594
|
+
};
|
|
595
|
+
export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
|