@homeflare/distilled-proxmox-backup 0.2.0
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/LICENSE +201 -0
- package/README.md +102 -0
- package/dist/credentials.d.ts +50 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/credentials.js +105 -0
- package/dist/credentials.js.map +1 -0
- package/dist/errors.d.ts +100 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +73 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +19 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +158 -0
- package/dist/protocol.js.map +1 -0
- package/dist/protocol.test.d.ts +2 -0
- package/dist/protocol.test.d.ts.map +1 -0
- package/dist/protocol.test.js +75 -0
- package/dist/protocol.test.js.map +1 -0
- package/dist/retry.d.ts +53 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +46 -0
- package/dist/retry.js.map +1 -0
- package/dist/services/access.d.ts +587 -0
- package/dist/services/access.d.ts.map +1 -0
- package/dist/services/access.js +787 -0
- package/dist/services/access.js.map +1 -0
- package/dist/services/admin.d.ts +1110 -0
- package/dist/services/admin.d.ts.map +1 -0
- package/dist/services/admin.js +1428 -0
- package/dist/services/admin.js.map +1 -0
- package/dist/services/backup.d.ts +224 -0
- package/dist/services/backup.d.ts.map +1 -0
- package/dist/services/backup.js +325 -0
- package/dist/services/backup.js.map +1 -0
- package/dist/services/config.d.ts +3662 -0
- package/dist/services/config.d.ts.map +1 -0
- package/dist/services/config.js +4445 -0
- package/dist/services/config.js.map +1 -0
- package/dist/services/index.d.ts +14 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +15 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/nodes.d.ts +1441 -0
- package/dist/services/nodes.d.ts.map +1 -0
- package/dist/services/nodes.js +1829 -0
- package/dist/services/nodes.js.map +1 -0
- package/dist/services/ping.d.ts +15 -0
- package/dist/services/ping.d.ts.map +1 -0
- package/dist/services/ping.js +21 -0
- package/dist/services/ping.js.map +1 -0
- package/dist/services/pull.d.ts +54 -0
- package/dist/services/pull.d.ts.map +1 -0
- package/dist/services/pull.js +47 -0
- package/dist/services/pull.js.map +1 -0
- package/dist/services/push.d.ts +50 -0
- package/dist/services/push.d.ts.map +1 -0
- package/dist/services/push.js +45 -0
- package/dist/services/push.js.map +1 -0
- package/dist/services/reader.d.ts +68 -0
- package/dist/services/reader.d.ts.map +1 -0
- package/dist/services/reader.js +89 -0
- package/dist/services/reader.js.map +1 -0
- package/dist/services/root.d.ts +14 -0
- package/dist/services/root.d.ts.map +1 -0
- package/dist/services/root.js +19 -0
- package/dist/services/root.js.map +1 -0
- package/dist/services/status.d.ts +78 -0
- package/dist/services/status.d.ts.map +1 -0
- package/dist/services/status.js +97 -0
- package/dist/services/status.js.map +1 -0
- package/dist/services/tape.d.ts +711 -0
- package/dist/services/tape.d.ts.map +1 -0
- package/dist/services/tape.js +986 -0
- package/dist/services/tape.js.map +1 -0
- package/dist/services/version.d.ts +17 -0
- package/dist/services/version.d.ts.map +1 -0
- package/dist/services/version.js +25 -0
- package/dist/services/version.js.map +1 -0
- package/dist/task.d.ts +48 -0
- package/dist/task.d.ts.map +1 -0
- package/dist/task.js +57 -0
- package/dist/task.js.map +1 -0
- package/dist/traits.d.ts +13 -0
- package/dist/traits.d.ts.map +1 -0
- package/dist/traits.js +15 -0
- package/dist/traits.js.map +1 -0
- package/package.json +81 -0
- package/src/credentials.ts +139 -0
- package/src/errors.ts +126 -0
- package/src/index.ts +36 -0
- package/src/protocol.test.ts +128 -0
- package/src/protocol.ts +196 -0
- package/src/retry.ts +79 -0
- package/src/services/access.ts +1787 -0
- package/src/services/admin.ts +3258 -0
- package/src/services/backup.ts +698 -0
- package/src/services/config.ts +10561 -0
- package/src/services/index.ts +14 -0
- package/src/services/nodes.ts +4313 -0
- package/src/services/ping.ts +43 -0
- package/src/services/pull.ts +118 -0
- package/src/services/push.ts +108 -0
- package/src/services/reader.ts +196 -0
- package/src/services/root.ts +39 -0
- package/src/services/status.ts +233 -0
- package/src/services/tape.ts +2257 -0
- package/src/services/version.ts +49 -0
- package/src/task.ts +84 -0
- package/src/traits.ts +46 -0
|
@@ -0,0 +1,1787 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (apidoc.js, via scripts/apidoc.ts — see its header). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
ProxmoxBackupProtocol,
|
|
7
|
+
type ProxmoxBackupOpError,
|
|
8
|
+
type ProxmoxBackupOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import * as Retry from "../retry.ts";
|
|
11
|
+
|
|
12
|
+
export type { ProxmoxBackupOpError, ProxmoxBackupOpContext };
|
|
13
|
+
|
|
14
|
+
export interface CreateAccessOpenidAuthUrlRequest {
|
|
15
|
+
/** Realm name. */
|
|
16
|
+
realm: string;
|
|
17
|
+
/** Redirection Url. The client should set this to used server url. */
|
|
18
|
+
redirect_url: string;
|
|
19
|
+
}
|
|
20
|
+
export const CreateAccessOpenidAuthUrlRequest = /*@__PURE__*/ S.suspend(() =>
|
|
21
|
+
S.Struct({
|
|
22
|
+
realm: S.String,
|
|
23
|
+
redirect_url: S.String.pipe(T.Body("redirect-url")),
|
|
24
|
+
}).pipe(
|
|
25
|
+
T.Http({
|
|
26
|
+
method: "POST",
|
|
27
|
+
uri: "/access/openid/auth-url",
|
|
28
|
+
code: 200,
|
|
29
|
+
contentType: "form-urlencoded",
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
).annotate({
|
|
33
|
+
identifier: "CreateAccessOpenidAuthUrlRequest",
|
|
34
|
+
}) as any as S.Schema<CreateAccessOpenidAuthUrlRequest>;
|
|
35
|
+
|
|
36
|
+
export type CreateAccessOpenidAuthUrlResponse = string;
|
|
37
|
+
export const CreateAccessOpenidAuthUrlResponse = /*@__PURE__*/ S.suspend(() =>
|
|
38
|
+
S.String.pipe(T.RawResponseRoot()),
|
|
39
|
+
).annotate({
|
|
40
|
+
identifier: "CreateAccessOpenidAuthUrlResponse",
|
|
41
|
+
}) as any as S.Schema<CreateAccessOpenidAuthUrlResponse>;
|
|
42
|
+
|
|
43
|
+
export interface CreateAccessTicketRequest {
|
|
44
|
+
/** Whether the HttpOnly authentication flow should be used. */
|
|
45
|
+
http_only?: string;
|
|
46
|
+
/** The secret password. This can also be a valid ticket. Only optional if the ticket is provided in a cookie header and only if the endpoint supports this. */
|
|
47
|
+
password?: string;
|
|
48
|
+
/** Verify ticket, and check if user have access 'privs' on 'path'. */
|
|
49
|
+
path?: string;
|
|
50
|
+
/** Port for verifying terminal tickets. */
|
|
51
|
+
port?: string;
|
|
52
|
+
/** Verify ticket, and check if user have access 'privs' on 'path'. */
|
|
53
|
+
privs?: string;
|
|
54
|
+
/** The signed TFA challenge string the user wants to respond to. */
|
|
55
|
+
tfa_challenge?: string;
|
|
56
|
+
/** User ID */
|
|
57
|
+
username: string;
|
|
58
|
+
}
|
|
59
|
+
export const CreateAccessTicketRequest = /*@__PURE__*/ S.suspend(() =>
|
|
60
|
+
S.Struct({
|
|
61
|
+
http_only: S.optional(S.String.pipe(T.Body("http-only"))),
|
|
62
|
+
password: S.optional(S.String),
|
|
63
|
+
path: S.optional(S.String),
|
|
64
|
+
port: S.optional(S.String),
|
|
65
|
+
privs: S.optional(S.String),
|
|
66
|
+
tfa_challenge: S.optional(S.String.pipe(T.Body("tfa-challenge"))),
|
|
67
|
+
username: S.String,
|
|
68
|
+
}).pipe(
|
|
69
|
+
T.Http({
|
|
70
|
+
method: "POST",
|
|
71
|
+
uri: "/access/ticket",
|
|
72
|
+
code: 200,
|
|
73
|
+
contentType: "form-urlencoded",
|
|
74
|
+
}),
|
|
75
|
+
),
|
|
76
|
+
).annotate({
|
|
77
|
+
identifier: "CreateAccessTicketRequest",
|
|
78
|
+
}) as any as S.Schema<CreateAccessTicketRequest>;
|
|
79
|
+
|
|
80
|
+
export interface CreateAccessTicketResponse {
|
|
81
|
+
CSRFPreventionToken?: string;
|
|
82
|
+
ticket?: string;
|
|
83
|
+
ticket_info?: string;
|
|
84
|
+
username: string;
|
|
85
|
+
}
|
|
86
|
+
export const CreateAccessTicketResponse = /*@__PURE__*/ S.suspend(() =>
|
|
87
|
+
S.Struct({
|
|
88
|
+
CSRFPreventionToken: S.optional(S.String),
|
|
89
|
+
ticket: S.optional(S.String),
|
|
90
|
+
ticket_info: S.optional(S.String.pipe(T.Body("ticket-info"))),
|
|
91
|
+
username: S.String,
|
|
92
|
+
}),
|
|
93
|
+
).annotate({
|
|
94
|
+
identifier: "CreateAccessTicketResponse",
|
|
95
|
+
}) as any as S.Schema<CreateAccessTicketResponse>;
|
|
96
|
+
|
|
97
|
+
export interface CreateAccessUserRequest {
|
|
98
|
+
/** Comment. */
|
|
99
|
+
comment?: string;
|
|
100
|
+
/** E-Mail Address. */
|
|
101
|
+
email?: string;
|
|
102
|
+
/** Enable the account (default). You can set this to '0' to disable the account. */
|
|
103
|
+
enable?: string;
|
|
104
|
+
/** Account expiration date (seconds since epoch). '0' means no expiration date. */
|
|
105
|
+
expire?: string;
|
|
106
|
+
/** First name. */
|
|
107
|
+
firstname?: string;
|
|
108
|
+
/** Last name. */
|
|
109
|
+
lastname?: string;
|
|
110
|
+
/** User Password. */
|
|
111
|
+
password?: string;
|
|
112
|
+
/** User ID */
|
|
113
|
+
userid: string;
|
|
114
|
+
}
|
|
115
|
+
export const CreateAccessUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
116
|
+
S.Struct({
|
|
117
|
+
comment: S.optional(S.String),
|
|
118
|
+
email: S.optional(S.String),
|
|
119
|
+
enable: S.optional(S.String),
|
|
120
|
+
expire: S.optional(S.String),
|
|
121
|
+
firstname: S.optional(S.String),
|
|
122
|
+
lastname: S.optional(S.String),
|
|
123
|
+
password: S.optional(S.String),
|
|
124
|
+
userid: S.String,
|
|
125
|
+
}).pipe(
|
|
126
|
+
T.Http({
|
|
127
|
+
method: "POST",
|
|
128
|
+
uri: "/access/users",
|
|
129
|
+
code: 200,
|
|
130
|
+
contentType: "form-urlencoded",
|
|
131
|
+
}),
|
|
132
|
+
),
|
|
133
|
+
).annotate({
|
|
134
|
+
identifier: "CreateAccessUserRequest",
|
|
135
|
+
}) as any as S.Schema<CreateAccessUserRequest>;
|
|
136
|
+
|
|
137
|
+
export interface CreateAccessUserResponse {}
|
|
138
|
+
export const CreateAccessUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
139
|
+
S.Struct({}),
|
|
140
|
+
).annotate({
|
|
141
|
+
identifier: "CreateAccessUserResponse",
|
|
142
|
+
}) as any as S.Schema<CreateAccessUserResponse>;
|
|
143
|
+
|
|
144
|
+
export interface CreateAccessVncticketRequest {
|
|
145
|
+
/** Authentication ID */
|
|
146
|
+
authid: string;
|
|
147
|
+
/** Verify ticket, and check if user have access 'privs' on 'path'. */
|
|
148
|
+
path: string;
|
|
149
|
+
/** Port for verifying terminal tickets. */
|
|
150
|
+
port?: string;
|
|
151
|
+
/** Verify ticket, and check if user have access 'privs' on 'path'. */
|
|
152
|
+
privs: string;
|
|
153
|
+
/** The VNC ticket */
|
|
154
|
+
vncticket: string;
|
|
155
|
+
}
|
|
156
|
+
export const CreateAccessVncticketRequest = /*@__PURE__*/ S.suspend(() =>
|
|
157
|
+
S.Struct({
|
|
158
|
+
authid: S.String,
|
|
159
|
+
path: S.String,
|
|
160
|
+
port: S.optional(S.String),
|
|
161
|
+
privs: S.String,
|
|
162
|
+
vncticket: S.String,
|
|
163
|
+
}).pipe(
|
|
164
|
+
T.Http({
|
|
165
|
+
method: "POST",
|
|
166
|
+
uri: "/access/vncticket",
|
|
167
|
+
code: 200,
|
|
168
|
+
contentType: "form-urlencoded",
|
|
169
|
+
}),
|
|
170
|
+
),
|
|
171
|
+
).annotate({
|
|
172
|
+
identifier: "CreateAccessVncticketRequest",
|
|
173
|
+
}) as any as S.Schema<CreateAccessVncticketRequest>;
|
|
174
|
+
|
|
175
|
+
export interface CreateAccessVncticketResponse {}
|
|
176
|
+
export const CreateAccessVncticketResponse = /*@__PURE__*/ S.suspend(() =>
|
|
177
|
+
S.Struct({}),
|
|
178
|
+
).annotate({
|
|
179
|
+
identifier: "CreateAccessVncticketResponse",
|
|
180
|
+
}) as any as S.Schema<CreateAccessVncticketResponse>;
|
|
181
|
+
|
|
182
|
+
export interface DeleteAccessTfaRequest {
|
|
183
|
+
userid: string;
|
|
184
|
+
id: string;
|
|
185
|
+
/** Password. */
|
|
186
|
+
password?: string;
|
|
187
|
+
}
|
|
188
|
+
export const DeleteAccessTfaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
189
|
+
S.Struct({
|
|
190
|
+
userid: S.String.pipe(T.Label()),
|
|
191
|
+
id: S.String.pipe(T.Label()),
|
|
192
|
+
password: S.optional(S.String),
|
|
193
|
+
}).pipe(
|
|
194
|
+
T.Http({
|
|
195
|
+
method: "DELETE",
|
|
196
|
+
uri: "/access/tfa/{userid}/{id}",
|
|
197
|
+
code: 200,
|
|
198
|
+
contentType: "form-urlencoded",
|
|
199
|
+
}),
|
|
200
|
+
),
|
|
201
|
+
).annotate({
|
|
202
|
+
identifier: "DeleteAccessTfaRequest",
|
|
203
|
+
}) as any as S.Schema<DeleteAccessTfaRequest>;
|
|
204
|
+
|
|
205
|
+
export interface DeleteAccessTfaResponse {}
|
|
206
|
+
export const DeleteAccessTfaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
207
|
+
S.Struct({}),
|
|
208
|
+
).annotate({
|
|
209
|
+
identifier: "DeleteAccessTfaResponse",
|
|
210
|
+
}) as any as S.Schema<DeleteAccessTfaResponse>;
|
|
211
|
+
|
|
212
|
+
export interface DeleteAccessTicketRequest {}
|
|
213
|
+
export const DeleteAccessTicketRequest = /*@__PURE__*/ S.suspend(() =>
|
|
214
|
+
S.Struct({}).pipe(
|
|
215
|
+
T.Http({ method: "DELETE", uri: "/access/ticket", code: 200 }),
|
|
216
|
+
),
|
|
217
|
+
).annotate({
|
|
218
|
+
identifier: "DeleteAccessTicketRequest",
|
|
219
|
+
}) as any as S.Schema<DeleteAccessTicketRequest>;
|
|
220
|
+
|
|
221
|
+
export interface DeleteAccessTicketResponse {}
|
|
222
|
+
export const DeleteAccessTicketResponse = /*@__PURE__*/ S.suspend(() =>
|
|
223
|
+
S.Struct({}),
|
|
224
|
+
).annotate({
|
|
225
|
+
identifier: "DeleteAccessTicketResponse",
|
|
226
|
+
}) as any as S.Schema<DeleteAccessTicketResponse>;
|
|
227
|
+
|
|
228
|
+
export interface DeleteAccessUserRequest {
|
|
229
|
+
userid: string;
|
|
230
|
+
/** Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications. */
|
|
231
|
+
digest?: string;
|
|
232
|
+
}
|
|
233
|
+
export const DeleteAccessUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
234
|
+
S.Struct({
|
|
235
|
+
userid: S.String.pipe(T.Label()),
|
|
236
|
+
digest: S.optional(S.String),
|
|
237
|
+
}).pipe(
|
|
238
|
+
T.Http({
|
|
239
|
+
method: "DELETE",
|
|
240
|
+
uri: "/access/users/{userid}",
|
|
241
|
+
code: 200,
|
|
242
|
+
contentType: "form-urlencoded",
|
|
243
|
+
}),
|
|
244
|
+
),
|
|
245
|
+
).annotate({
|
|
246
|
+
identifier: "DeleteAccessUserRequest",
|
|
247
|
+
}) as any as S.Schema<DeleteAccessUserRequest>;
|
|
248
|
+
|
|
249
|
+
export interface DeleteAccessUserResponse {}
|
|
250
|
+
export const DeleteAccessUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
251
|
+
S.Struct({}),
|
|
252
|
+
).annotate({
|
|
253
|
+
identifier: "DeleteAccessUserResponse",
|
|
254
|
+
}) as any as S.Schema<DeleteAccessUserResponse>;
|
|
255
|
+
|
|
256
|
+
export interface DeleteAccessUserTokenRequest {
|
|
257
|
+
userid: string;
|
|
258
|
+
token_name: string;
|
|
259
|
+
/** Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications. */
|
|
260
|
+
digest?: string;
|
|
261
|
+
}
|
|
262
|
+
export const DeleteAccessUserTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
263
|
+
S.Struct({
|
|
264
|
+
userid: S.String.pipe(T.Label()),
|
|
265
|
+
token_name: S.String.pipe(T.Label()),
|
|
266
|
+
digest: S.optional(S.String),
|
|
267
|
+
}).pipe(
|
|
268
|
+
T.Http({
|
|
269
|
+
method: "DELETE",
|
|
270
|
+
uri: "/access/users/{userid}/token/{token-name}",
|
|
271
|
+
code: 200,
|
|
272
|
+
contentType: "form-urlencoded",
|
|
273
|
+
}),
|
|
274
|
+
),
|
|
275
|
+
).annotate({
|
|
276
|
+
identifier: "DeleteAccessUserTokenRequest",
|
|
277
|
+
}) as any as S.Schema<DeleteAccessUserTokenRequest>;
|
|
278
|
+
|
|
279
|
+
export interface DeleteAccessUserTokenResponse {}
|
|
280
|
+
export const DeleteAccessUserTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
281
|
+
S.Struct({}),
|
|
282
|
+
).annotate({
|
|
283
|
+
identifier: "DeleteAccessUserTokenResponse",
|
|
284
|
+
}) as any as S.Schema<DeleteAccessUserTokenResponse>;
|
|
285
|
+
|
|
286
|
+
export interface GetAccessRequest {}
|
|
287
|
+
export const GetAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
288
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/access", code: 200 })),
|
|
289
|
+
).annotate({
|
|
290
|
+
identifier: "GetAccessRequest",
|
|
291
|
+
}) as any as S.Schema<GetAccessRequest>;
|
|
292
|
+
|
|
293
|
+
export interface GetAccessResponse {}
|
|
294
|
+
export const GetAccessResponse = /*@__PURE__*/ S.suspend(() =>
|
|
295
|
+
S.Struct({}),
|
|
296
|
+
).annotate({
|
|
297
|
+
identifier: "GetAccessResponse",
|
|
298
|
+
}) as any as S.Schema<GetAccessResponse>;
|
|
299
|
+
|
|
300
|
+
export interface GetAccessOpenidRequest {}
|
|
301
|
+
export const GetAccessOpenidRequest = /*@__PURE__*/ S.suspend(() =>
|
|
302
|
+
S.Struct({}).pipe(
|
|
303
|
+
T.Http({ method: "GET", uri: "/access/openid", code: 200 }),
|
|
304
|
+
),
|
|
305
|
+
).annotate({
|
|
306
|
+
identifier: "GetAccessOpenidRequest",
|
|
307
|
+
}) as any as S.Schema<GetAccessOpenidRequest>;
|
|
308
|
+
|
|
309
|
+
export interface GetAccessOpenidResponse {}
|
|
310
|
+
export const GetAccessOpenidResponse = /*@__PURE__*/ S.suspend(() =>
|
|
311
|
+
S.Struct({}),
|
|
312
|
+
).annotate({
|
|
313
|
+
identifier: "GetAccessOpenidResponse",
|
|
314
|
+
}) as any as S.Schema<GetAccessOpenidResponse>;
|
|
315
|
+
|
|
316
|
+
export interface GetAccessPermissionsRequest {
|
|
317
|
+
/** Authentication ID */
|
|
318
|
+
auth_id?: string;
|
|
319
|
+
/** Access control path. */
|
|
320
|
+
path?: string;
|
|
321
|
+
}
|
|
322
|
+
export const GetAccessPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
323
|
+
S.Struct({
|
|
324
|
+
auth_id: S.optional(S.String.pipe(T.Query("auth-id"))),
|
|
325
|
+
path: S.optional(S.String.pipe(T.Query())),
|
|
326
|
+
}).pipe(T.Http({ method: "GET", uri: "/access/permissions", code: 200 })),
|
|
327
|
+
).annotate({
|
|
328
|
+
identifier: "GetAccessPermissionsRequest",
|
|
329
|
+
}) as any as S.Schema<GetAccessPermissionsRequest>;
|
|
330
|
+
|
|
331
|
+
export type GetAccessPermissionsResponse = unknown;
|
|
332
|
+
export const GetAccessPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
333
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
334
|
+
).annotate({
|
|
335
|
+
identifier: "GetAccessPermissionsResponse",
|
|
336
|
+
}) as any as S.Schema<GetAccessPermissionsResponse>;
|
|
337
|
+
|
|
338
|
+
export interface GetAccessTfaRequest {
|
|
339
|
+
userid: string;
|
|
340
|
+
}
|
|
341
|
+
export const GetAccessTfaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
342
|
+
S.Struct({
|
|
343
|
+
userid: S.String.pipe(T.Label()),
|
|
344
|
+
}).pipe(T.Http({ method: "GET", uri: "/access/tfa/{userid}", code: 200 })),
|
|
345
|
+
).annotate({
|
|
346
|
+
identifier: "GetAccessTfaRequest",
|
|
347
|
+
}) as any as S.Schema<GetAccessTfaRequest>;
|
|
348
|
+
|
|
349
|
+
export type GetAccessTfaResponseBodyItemType =
|
|
350
|
+
| "totp"
|
|
351
|
+
| "u2f"
|
|
352
|
+
| "webauthn"
|
|
353
|
+
| "recovery"
|
|
354
|
+
| "yubico";
|
|
355
|
+
export const GetAccessTfaResponseBodyItemType = S.String;
|
|
356
|
+
|
|
357
|
+
export interface GetAccessTfaResponseBodyItem {
|
|
358
|
+
created: number;
|
|
359
|
+
description: string;
|
|
360
|
+
enable: unknown;
|
|
361
|
+
id: string;
|
|
362
|
+
type: GetAccessTfaResponseBodyItemType;
|
|
363
|
+
}
|
|
364
|
+
export const GetAccessTfaResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
365
|
+
S.Struct({
|
|
366
|
+
created: S.Number,
|
|
367
|
+
description: S.String,
|
|
368
|
+
enable: S.Unknown,
|
|
369
|
+
id: S.String,
|
|
370
|
+
type: GetAccessTfaResponseBodyItemType,
|
|
371
|
+
}),
|
|
372
|
+
).annotate({
|
|
373
|
+
identifier: "GetAccessTfaResponseBodyItem",
|
|
374
|
+
}) as any as S.Schema<GetAccessTfaResponseBodyItem>;
|
|
375
|
+
|
|
376
|
+
export type GetAccessTfaResponseBodyList = Array<GetAccessTfaResponseBodyItem>;
|
|
377
|
+
export const GetAccessTfaResponseBodyList = /*@__PURE__*/ S.Array(
|
|
378
|
+
GetAccessTfaResponseBodyItem,
|
|
379
|
+
) as any as S.Schema<GetAccessTfaResponseBodyList>;
|
|
380
|
+
|
|
381
|
+
export type GetAccessTfaResponse = GetAccessTfaResponseBodyList;
|
|
382
|
+
export const GetAccessTfaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
383
|
+
GetAccessTfaResponseBodyList.pipe(T.RawResponseRoot()),
|
|
384
|
+
).annotate({
|
|
385
|
+
identifier: "GetAccessTfaResponse",
|
|
386
|
+
}) as any as S.Schema<GetAccessTfaResponse>;
|
|
387
|
+
|
|
388
|
+
export interface GetAccessTfa2Request {
|
|
389
|
+
userid: string;
|
|
390
|
+
id: string;
|
|
391
|
+
}
|
|
392
|
+
export const GetAccessTfa2Request = /*@__PURE__*/ S.suspend(() =>
|
|
393
|
+
S.Struct({
|
|
394
|
+
userid: S.String.pipe(T.Label()),
|
|
395
|
+
id: S.String.pipe(T.Label()),
|
|
396
|
+
}).pipe(
|
|
397
|
+
T.Http({ method: "GET", uri: "/access/tfa/{userid}/{id}", code: 200 }),
|
|
398
|
+
),
|
|
399
|
+
).annotate({
|
|
400
|
+
identifier: "GetAccessTfa2Request",
|
|
401
|
+
}) as any as S.Schema<GetAccessTfa2Request>;
|
|
402
|
+
|
|
403
|
+
export interface GetAccessTfa2Response {}
|
|
404
|
+
export const GetAccessTfa2Response = /*@__PURE__*/ S.suspend(() =>
|
|
405
|
+
S.Struct({}),
|
|
406
|
+
).annotate({
|
|
407
|
+
identifier: "GetAccessTfa2Response",
|
|
408
|
+
}) as any as S.Schema<GetAccessTfa2Response>;
|
|
409
|
+
|
|
410
|
+
export interface GetAccessUserRequest {
|
|
411
|
+
userid: string;
|
|
412
|
+
}
|
|
413
|
+
export const GetAccessUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
414
|
+
S.Struct({
|
|
415
|
+
userid: S.String.pipe(T.Label()),
|
|
416
|
+
}).pipe(T.Http({ method: "GET", uri: "/access/users/{userid}", code: 200 })),
|
|
417
|
+
).annotate({
|
|
418
|
+
identifier: "GetAccessUserRequest",
|
|
419
|
+
}) as any as S.Schema<GetAccessUserRequest>;
|
|
420
|
+
|
|
421
|
+
export interface GetAccessUserResponse {
|
|
422
|
+
comment?: string;
|
|
423
|
+
email?: string;
|
|
424
|
+
enable?: unknown;
|
|
425
|
+
expire?: number;
|
|
426
|
+
firstname?: string;
|
|
427
|
+
lastname?: string;
|
|
428
|
+
userid: string;
|
|
429
|
+
}
|
|
430
|
+
export const GetAccessUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
431
|
+
S.Struct({
|
|
432
|
+
comment: S.optional(S.String),
|
|
433
|
+
email: S.optional(S.String),
|
|
434
|
+
enable: S.optional(S.Unknown),
|
|
435
|
+
expire: S.optional(S.Number),
|
|
436
|
+
firstname: S.optional(S.String),
|
|
437
|
+
lastname: S.optional(S.String),
|
|
438
|
+
userid: S.String,
|
|
439
|
+
}),
|
|
440
|
+
).annotate({
|
|
441
|
+
identifier: "GetAccessUserResponse",
|
|
442
|
+
}) as any as S.Schema<GetAccessUserResponse>;
|
|
443
|
+
|
|
444
|
+
export interface GetAccessUserTokenRequest {
|
|
445
|
+
userid: string;
|
|
446
|
+
token_name: string;
|
|
447
|
+
}
|
|
448
|
+
export const GetAccessUserTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
449
|
+
S.Struct({
|
|
450
|
+
userid: S.String.pipe(T.Label()),
|
|
451
|
+
token_name: S.String.pipe(T.Label()),
|
|
452
|
+
}).pipe(
|
|
453
|
+
T.Http({
|
|
454
|
+
method: "GET",
|
|
455
|
+
uri: "/access/users/{userid}/token/{token-name}",
|
|
456
|
+
code: 200,
|
|
457
|
+
}),
|
|
458
|
+
),
|
|
459
|
+
).annotate({
|
|
460
|
+
identifier: "GetAccessUserTokenRequest",
|
|
461
|
+
}) as any as S.Schema<GetAccessUserTokenRequest>;
|
|
462
|
+
|
|
463
|
+
export interface GetAccessUserTokenResponse {
|
|
464
|
+
comment?: string;
|
|
465
|
+
enable?: unknown;
|
|
466
|
+
expire?: number;
|
|
467
|
+
tokenid: string;
|
|
468
|
+
}
|
|
469
|
+
export const GetAccessUserTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
470
|
+
S.Struct({
|
|
471
|
+
comment: S.optional(S.String),
|
|
472
|
+
enable: S.optional(S.Unknown),
|
|
473
|
+
expire: S.optional(S.Number),
|
|
474
|
+
tokenid: S.String,
|
|
475
|
+
}),
|
|
476
|
+
).annotate({
|
|
477
|
+
identifier: "GetAccessUserTokenResponse",
|
|
478
|
+
}) as any as S.Schema<GetAccessUserTokenResponse>;
|
|
479
|
+
|
|
480
|
+
export interface ListAccessAclRequest {
|
|
481
|
+
/** If set, returns only ACL for the exact path. */
|
|
482
|
+
exact?: string;
|
|
483
|
+
/** Access control path. */
|
|
484
|
+
path?: string;
|
|
485
|
+
}
|
|
486
|
+
export const ListAccessAclRequest = /*@__PURE__*/ S.suspend(() =>
|
|
487
|
+
S.Struct({
|
|
488
|
+
exact: S.optional(S.String.pipe(T.Query())),
|
|
489
|
+
path: S.optional(S.String.pipe(T.Query())),
|
|
490
|
+
}).pipe(T.Http({ method: "GET", uri: "/access/acl", code: 200 })),
|
|
491
|
+
).annotate({
|
|
492
|
+
identifier: "ListAccessAclRequest",
|
|
493
|
+
}) as any as S.Schema<ListAccessAclRequest>;
|
|
494
|
+
|
|
495
|
+
export type ListAccessAclResponseBodyItemRoleid =
|
|
496
|
+
| "Admin"
|
|
497
|
+
| "Audit"
|
|
498
|
+
| "NoAccess"
|
|
499
|
+
| "DatastoreAdmin"
|
|
500
|
+
| "DatastoreReader"
|
|
501
|
+
| "DatastoreBackup"
|
|
502
|
+
| "DatastorePowerUser"
|
|
503
|
+
| "DatastoreAudit"
|
|
504
|
+
| "RemoteAudit"
|
|
505
|
+
| "RemoteAdmin"
|
|
506
|
+
| "RemoteSyncOperator"
|
|
507
|
+
| "RemoteSyncPushOperator"
|
|
508
|
+
| "RemoteDatastorePowerUser"
|
|
509
|
+
| "RemoteDatastoreAdmin"
|
|
510
|
+
| "TapeAudit"
|
|
511
|
+
| "TapeAdmin"
|
|
512
|
+
| "TapeOperator"
|
|
513
|
+
| "TapeReader";
|
|
514
|
+
export const ListAccessAclResponseBodyItemRoleid = S.String;
|
|
515
|
+
|
|
516
|
+
export type ListAccessAclResponseBodyItemUgidType = "user" | "group";
|
|
517
|
+
export const ListAccessAclResponseBodyItemUgidType = S.String;
|
|
518
|
+
|
|
519
|
+
export interface ListAccessAclResponseBodyItem {
|
|
520
|
+
path: string;
|
|
521
|
+
propagate: unknown;
|
|
522
|
+
roleid: ListAccessAclResponseBodyItemRoleid;
|
|
523
|
+
ugid: string;
|
|
524
|
+
ugid_type: ListAccessAclResponseBodyItemUgidType;
|
|
525
|
+
}
|
|
526
|
+
export const ListAccessAclResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
527
|
+
S.Struct({
|
|
528
|
+
path: S.String,
|
|
529
|
+
propagate: S.Unknown,
|
|
530
|
+
roleid: ListAccessAclResponseBodyItemRoleid,
|
|
531
|
+
ugid: S.String,
|
|
532
|
+
ugid_type: ListAccessAclResponseBodyItemUgidType,
|
|
533
|
+
}),
|
|
534
|
+
).annotate({
|
|
535
|
+
identifier: "ListAccessAclResponseBodyItem",
|
|
536
|
+
}) as any as S.Schema<ListAccessAclResponseBodyItem>;
|
|
537
|
+
|
|
538
|
+
export type ListAccessAclResponseBodyList =
|
|
539
|
+
Array<ListAccessAclResponseBodyItem>;
|
|
540
|
+
export const ListAccessAclResponseBodyList = /*@__PURE__*/ S.Array(
|
|
541
|
+
ListAccessAclResponseBodyItem,
|
|
542
|
+
) as any as S.Schema<ListAccessAclResponseBodyList>;
|
|
543
|
+
|
|
544
|
+
export type ListAccessAclResponse = ListAccessAclResponseBodyList;
|
|
545
|
+
export const ListAccessAclResponse = /*@__PURE__*/ S.suspend(() =>
|
|
546
|
+
ListAccessAclResponseBodyList.pipe(T.RawResponseRoot()),
|
|
547
|
+
).annotate({
|
|
548
|
+
identifier: "ListAccessAclResponse",
|
|
549
|
+
}) as any as S.Schema<ListAccessAclResponse>;
|
|
550
|
+
|
|
551
|
+
export interface ListAccessDomainsRequest {}
|
|
552
|
+
export const ListAccessDomainsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
553
|
+
S.Struct({}).pipe(
|
|
554
|
+
T.Http({ method: "GET", uri: "/access/domains", code: 200 }),
|
|
555
|
+
),
|
|
556
|
+
).annotate({
|
|
557
|
+
identifier: "ListAccessDomainsRequest",
|
|
558
|
+
}) as any as S.Schema<ListAccessDomainsRequest>;
|
|
559
|
+
|
|
560
|
+
export type ListAccessDomainsResponseBodyItemType =
|
|
561
|
+
| "pam"
|
|
562
|
+
| "pbs"
|
|
563
|
+
| "openid"
|
|
564
|
+
| "ldap"
|
|
565
|
+
| "ad";
|
|
566
|
+
export const ListAccessDomainsResponseBodyItemType = S.String;
|
|
567
|
+
|
|
568
|
+
export interface ListAccessDomainsResponseBodyItem {
|
|
569
|
+
comment?: string;
|
|
570
|
+
default?: unknown;
|
|
571
|
+
realm: string;
|
|
572
|
+
type: ListAccessDomainsResponseBodyItemType;
|
|
573
|
+
}
|
|
574
|
+
export const ListAccessDomainsResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
575
|
+
S.Struct({
|
|
576
|
+
comment: S.optional(S.String),
|
|
577
|
+
default: S.optional(S.Unknown),
|
|
578
|
+
realm: S.String,
|
|
579
|
+
type: ListAccessDomainsResponseBodyItemType,
|
|
580
|
+
}),
|
|
581
|
+
).annotate({
|
|
582
|
+
identifier: "ListAccessDomainsResponseBodyItem",
|
|
583
|
+
}) as any as S.Schema<ListAccessDomainsResponseBodyItem>;
|
|
584
|
+
|
|
585
|
+
export type ListAccessDomainsResponseBodyList =
|
|
586
|
+
Array<ListAccessDomainsResponseBodyItem>;
|
|
587
|
+
export const ListAccessDomainsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
588
|
+
ListAccessDomainsResponseBodyItem,
|
|
589
|
+
) as any as S.Schema<ListAccessDomainsResponseBodyList>;
|
|
590
|
+
|
|
591
|
+
export type ListAccessDomainsResponse = ListAccessDomainsResponseBodyList;
|
|
592
|
+
export const ListAccessDomainsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
593
|
+
ListAccessDomainsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
594
|
+
).annotate({
|
|
595
|
+
identifier: "ListAccessDomainsResponse",
|
|
596
|
+
}) as any as S.Schema<ListAccessDomainsResponse>;
|
|
597
|
+
|
|
598
|
+
export interface ListAccessRolesRequest {}
|
|
599
|
+
export const ListAccessRolesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
600
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/access/roles", code: 200 })),
|
|
601
|
+
).annotate({
|
|
602
|
+
identifier: "ListAccessRolesRequest",
|
|
603
|
+
}) as any as S.Schema<ListAccessRolesRequest>;
|
|
604
|
+
|
|
605
|
+
export type ListAccessRolesResponseBodyItemPrivsList = Array<string>;
|
|
606
|
+
export const ListAccessRolesResponseBodyItemPrivsList = /*@__PURE__*/ S.Array(
|
|
607
|
+
S.String,
|
|
608
|
+
) as any as S.Schema<ListAccessRolesResponseBodyItemPrivsList>;
|
|
609
|
+
|
|
610
|
+
export type ListAccessRolesResponseBodyItemRoleid =
|
|
611
|
+
| "Admin"
|
|
612
|
+
| "Audit"
|
|
613
|
+
| "NoAccess"
|
|
614
|
+
| "DatastoreAdmin"
|
|
615
|
+
| "DatastoreReader"
|
|
616
|
+
| "DatastoreBackup"
|
|
617
|
+
| "DatastorePowerUser"
|
|
618
|
+
| "DatastoreAudit"
|
|
619
|
+
| "RemoteAudit"
|
|
620
|
+
| "RemoteAdmin"
|
|
621
|
+
| "RemoteSyncOperator"
|
|
622
|
+
| "RemoteSyncPushOperator"
|
|
623
|
+
| "RemoteDatastorePowerUser"
|
|
624
|
+
| "RemoteDatastoreAdmin"
|
|
625
|
+
| "TapeAudit"
|
|
626
|
+
| "TapeAdmin"
|
|
627
|
+
| "TapeOperator"
|
|
628
|
+
| "TapeReader";
|
|
629
|
+
export const ListAccessRolesResponseBodyItemRoleid = S.String;
|
|
630
|
+
|
|
631
|
+
export interface ListAccessRolesResponseBodyItem {
|
|
632
|
+
comment?: string;
|
|
633
|
+
privs: ListAccessRolesResponseBodyItemPrivsList;
|
|
634
|
+
roleid: ListAccessRolesResponseBodyItemRoleid;
|
|
635
|
+
}
|
|
636
|
+
export const ListAccessRolesResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
637
|
+
S.Struct({
|
|
638
|
+
comment: S.optional(S.String),
|
|
639
|
+
privs: ListAccessRolesResponseBodyItemPrivsList,
|
|
640
|
+
roleid: ListAccessRolesResponseBodyItemRoleid,
|
|
641
|
+
}),
|
|
642
|
+
).annotate({
|
|
643
|
+
identifier: "ListAccessRolesResponseBodyItem",
|
|
644
|
+
}) as any as S.Schema<ListAccessRolesResponseBodyItem>;
|
|
645
|
+
|
|
646
|
+
export type ListAccessRolesResponseBodyList =
|
|
647
|
+
Array<ListAccessRolesResponseBodyItem>;
|
|
648
|
+
export const ListAccessRolesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
649
|
+
ListAccessRolesResponseBodyItem,
|
|
650
|
+
) as any as S.Schema<ListAccessRolesResponseBodyList>;
|
|
651
|
+
|
|
652
|
+
export type ListAccessRolesResponse = ListAccessRolesResponseBodyList;
|
|
653
|
+
export const ListAccessRolesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
654
|
+
ListAccessRolesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
655
|
+
).annotate({
|
|
656
|
+
identifier: "ListAccessRolesResponse",
|
|
657
|
+
}) as any as S.Schema<ListAccessRolesResponse>;
|
|
658
|
+
|
|
659
|
+
export interface ListAccessTfaRequest {}
|
|
660
|
+
export const ListAccessTfaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
661
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/access/tfa", code: 200 })),
|
|
662
|
+
).annotate({
|
|
663
|
+
identifier: "ListAccessTfaRequest",
|
|
664
|
+
}) as any as S.Schema<ListAccessTfaRequest>;
|
|
665
|
+
|
|
666
|
+
export type ListAccessTfaResponseBodyItemEntriesItemType =
|
|
667
|
+
| "totp"
|
|
668
|
+
| "u2f"
|
|
669
|
+
| "webauthn"
|
|
670
|
+
| "recovery"
|
|
671
|
+
| "yubico";
|
|
672
|
+
export const ListAccessTfaResponseBodyItemEntriesItemType = S.String;
|
|
673
|
+
|
|
674
|
+
export interface ListAccessTfaResponseBodyItemEntriesItem {
|
|
675
|
+
created: number;
|
|
676
|
+
description: string;
|
|
677
|
+
enable: unknown;
|
|
678
|
+
id: string;
|
|
679
|
+
type: ListAccessTfaResponseBodyItemEntriesItemType;
|
|
680
|
+
}
|
|
681
|
+
export const ListAccessTfaResponseBodyItemEntriesItem = /*@__PURE__*/ S.suspend(
|
|
682
|
+
() =>
|
|
683
|
+
S.Struct({
|
|
684
|
+
created: S.Number,
|
|
685
|
+
description: S.String,
|
|
686
|
+
enable: S.Unknown,
|
|
687
|
+
id: S.String,
|
|
688
|
+
type: ListAccessTfaResponseBodyItemEntriesItemType,
|
|
689
|
+
}),
|
|
690
|
+
).annotate({
|
|
691
|
+
identifier: "ListAccessTfaResponseBodyItemEntriesItem",
|
|
692
|
+
}) as any as S.Schema<ListAccessTfaResponseBodyItemEntriesItem>;
|
|
693
|
+
|
|
694
|
+
export type ListAccessTfaResponseBodyItemEntriesList =
|
|
695
|
+
Array<ListAccessTfaResponseBodyItemEntriesItem>;
|
|
696
|
+
export const ListAccessTfaResponseBodyItemEntriesList = /*@__PURE__*/ S.Array(
|
|
697
|
+
ListAccessTfaResponseBodyItemEntriesItem,
|
|
698
|
+
) as any as S.Schema<ListAccessTfaResponseBodyItemEntriesList>;
|
|
699
|
+
|
|
700
|
+
export interface ListAccessTfaResponseBodyItem {
|
|
701
|
+
entries: ListAccessTfaResponseBodyItemEntriesList;
|
|
702
|
+
tfa_locked_until?: number;
|
|
703
|
+
totp_locked?: unknown;
|
|
704
|
+
userid: string;
|
|
705
|
+
}
|
|
706
|
+
export const ListAccessTfaResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
707
|
+
S.Struct({
|
|
708
|
+
entries: ListAccessTfaResponseBodyItemEntriesList,
|
|
709
|
+
tfa_locked_until: S.optional(S.Number.pipe(T.Body("tfa-locked-until"))),
|
|
710
|
+
totp_locked: S.optional(S.Unknown.pipe(T.Body("totp-locked"))),
|
|
711
|
+
userid: S.String,
|
|
712
|
+
}),
|
|
713
|
+
).annotate({
|
|
714
|
+
identifier: "ListAccessTfaResponseBodyItem",
|
|
715
|
+
}) as any as S.Schema<ListAccessTfaResponseBodyItem>;
|
|
716
|
+
|
|
717
|
+
export type ListAccessTfaResponseBodyList =
|
|
718
|
+
Array<ListAccessTfaResponseBodyItem>;
|
|
719
|
+
export const ListAccessTfaResponseBodyList = /*@__PURE__*/ S.Array(
|
|
720
|
+
ListAccessTfaResponseBodyItem,
|
|
721
|
+
) as any as S.Schema<ListAccessTfaResponseBodyList>;
|
|
722
|
+
|
|
723
|
+
export type ListAccessTfaResponse = ListAccessTfaResponseBodyList;
|
|
724
|
+
export const ListAccessTfaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
725
|
+
ListAccessTfaResponseBodyList.pipe(T.RawResponseRoot()),
|
|
726
|
+
).annotate({
|
|
727
|
+
identifier: "ListAccessTfaResponse",
|
|
728
|
+
}) as any as S.Schema<ListAccessTfaResponse>;
|
|
729
|
+
|
|
730
|
+
export interface ListAccessUsersRequest {
|
|
731
|
+
/** Include user's API tokens in returned list. */
|
|
732
|
+
include_tokens?: string;
|
|
733
|
+
}
|
|
734
|
+
export const ListAccessUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
735
|
+
S.Struct({
|
|
736
|
+
include_tokens: S.optional(S.String.pipe(T.Query())),
|
|
737
|
+
}).pipe(T.Http({ method: "GET", uri: "/access/users", code: 200 })),
|
|
738
|
+
).annotate({
|
|
739
|
+
identifier: "ListAccessUsersRequest",
|
|
740
|
+
}) as any as S.Schema<ListAccessUsersRequest>;
|
|
741
|
+
|
|
742
|
+
export interface ListAccessUsersResponseBodyItemTokensItem {
|
|
743
|
+
comment?: string;
|
|
744
|
+
enable?: unknown;
|
|
745
|
+
expire?: number;
|
|
746
|
+
tokenid: string;
|
|
747
|
+
}
|
|
748
|
+
export const ListAccessUsersResponseBodyItemTokensItem =
|
|
749
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
750
|
+
S.Struct({
|
|
751
|
+
comment: S.optional(S.String),
|
|
752
|
+
enable: S.optional(S.Unknown),
|
|
753
|
+
expire: S.optional(S.Number),
|
|
754
|
+
tokenid: S.String,
|
|
755
|
+
}),
|
|
756
|
+
).annotate({
|
|
757
|
+
identifier: "ListAccessUsersResponseBodyItemTokensItem",
|
|
758
|
+
}) as any as S.Schema<ListAccessUsersResponseBodyItemTokensItem>;
|
|
759
|
+
|
|
760
|
+
export type ListAccessUsersResponseBodyItemTokensList =
|
|
761
|
+
Array<ListAccessUsersResponseBodyItemTokensItem>;
|
|
762
|
+
export const ListAccessUsersResponseBodyItemTokensList = /*@__PURE__*/ S.Array(
|
|
763
|
+
ListAccessUsersResponseBodyItemTokensItem,
|
|
764
|
+
) as any as S.Schema<ListAccessUsersResponseBodyItemTokensList>;
|
|
765
|
+
|
|
766
|
+
export interface ListAccessUsersResponseBodyItem {
|
|
767
|
+
comment?: string;
|
|
768
|
+
email?: string;
|
|
769
|
+
enable?: unknown;
|
|
770
|
+
expire?: number;
|
|
771
|
+
firstname?: string;
|
|
772
|
+
lastname?: string;
|
|
773
|
+
tfa_locked_until?: number;
|
|
774
|
+
tokens?: ListAccessUsersResponseBodyItemTokensList;
|
|
775
|
+
totp_locked?: unknown;
|
|
776
|
+
userid: string;
|
|
777
|
+
}
|
|
778
|
+
export const ListAccessUsersResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
779
|
+
S.Struct({
|
|
780
|
+
comment: S.optional(S.String),
|
|
781
|
+
email: S.optional(S.String),
|
|
782
|
+
enable: S.optional(S.Unknown),
|
|
783
|
+
expire: S.optional(S.Number),
|
|
784
|
+
firstname: S.optional(S.String),
|
|
785
|
+
lastname: S.optional(S.String),
|
|
786
|
+
tfa_locked_until: S.optional(S.Number.pipe(T.Body("tfa-locked-until"))),
|
|
787
|
+
tokens: S.optional(ListAccessUsersResponseBodyItemTokensList),
|
|
788
|
+
totp_locked: S.optional(S.Unknown.pipe(T.Body("totp-locked"))),
|
|
789
|
+
userid: S.String,
|
|
790
|
+
}),
|
|
791
|
+
).annotate({
|
|
792
|
+
identifier: "ListAccessUsersResponseBodyItem",
|
|
793
|
+
}) as any as S.Schema<ListAccessUsersResponseBodyItem>;
|
|
794
|
+
|
|
795
|
+
export type ListAccessUsersResponseBodyList =
|
|
796
|
+
Array<ListAccessUsersResponseBodyItem>;
|
|
797
|
+
export const ListAccessUsersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
798
|
+
ListAccessUsersResponseBodyItem,
|
|
799
|
+
) as any as S.Schema<ListAccessUsersResponseBodyList>;
|
|
800
|
+
|
|
801
|
+
export type ListAccessUsersResponse = ListAccessUsersResponseBodyList;
|
|
802
|
+
export const ListAccessUsersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
803
|
+
ListAccessUsersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
804
|
+
).annotate({
|
|
805
|
+
identifier: "ListAccessUsersResponse",
|
|
806
|
+
}) as any as S.Schema<ListAccessUsersResponse>;
|
|
807
|
+
|
|
808
|
+
export interface ListAccessUserTokenRequest {
|
|
809
|
+
userid: string;
|
|
810
|
+
}
|
|
811
|
+
export const ListAccessUserTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
812
|
+
S.Struct({
|
|
813
|
+
userid: S.String.pipe(T.Label()),
|
|
814
|
+
}).pipe(
|
|
815
|
+
T.Http({ method: "GET", uri: "/access/users/{userid}/token", code: 200 }),
|
|
816
|
+
),
|
|
817
|
+
).annotate({
|
|
818
|
+
identifier: "ListAccessUserTokenRequest",
|
|
819
|
+
}) as any as S.Schema<ListAccessUserTokenRequest>;
|
|
820
|
+
|
|
821
|
+
export interface ListAccessUserTokenResponseBodyItem {
|
|
822
|
+
comment?: string;
|
|
823
|
+
enable?: unknown;
|
|
824
|
+
expire?: number;
|
|
825
|
+
token_name?: string;
|
|
826
|
+
tokenid: string;
|
|
827
|
+
}
|
|
828
|
+
export const ListAccessUserTokenResponseBodyItem = /*@__PURE__*/ S.suspend(() =>
|
|
829
|
+
S.Struct({
|
|
830
|
+
comment: S.optional(S.String),
|
|
831
|
+
enable: S.optional(S.Unknown),
|
|
832
|
+
expire: S.optional(S.Number),
|
|
833
|
+
token_name: S.optional(S.String.pipe(T.Body("token-name"))),
|
|
834
|
+
tokenid: S.String,
|
|
835
|
+
}),
|
|
836
|
+
).annotate({
|
|
837
|
+
identifier: "ListAccessUserTokenResponseBodyItem",
|
|
838
|
+
}) as any as S.Schema<ListAccessUserTokenResponseBodyItem>;
|
|
839
|
+
|
|
840
|
+
export type ListAccessUserTokenResponseBodyList =
|
|
841
|
+
Array<ListAccessUserTokenResponseBodyItem>;
|
|
842
|
+
export const ListAccessUserTokenResponseBodyList = /*@__PURE__*/ S.Array(
|
|
843
|
+
ListAccessUserTokenResponseBodyItem,
|
|
844
|
+
) as any as S.Schema<ListAccessUserTokenResponseBodyList>;
|
|
845
|
+
|
|
846
|
+
export type ListAccessUserTokenResponse = ListAccessUserTokenResponseBodyList;
|
|
847
|
+
export const ListAccessUserTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
848
|
+
ListAccessUserTokenResponseBodyList.pipe(T.RawResponseRoot()),
|
|
849
|
+
).annotate({
|
|
850
|
+
identifier: "ListAccessUserTokenResponse",
|
|
851
|
+
}) as any as S.Schema<ListAccessUserTokenResponse>;
|
|
852
|
+
|
|
853
|
+
export interface LoginAccessOpenidRequest {
|
|
854
|
+
/** OpenId authorization code. */
|
|
855
|
+
code: string;
|
|
856
|
+
/** Whether the HttpOnly authentication flow should be used. */
|
|
857
|
+
http_only?: string;
|
|
858
|
+
/** Redirection Url. The client should set this to used server url. */
|
|
859
|
+
redirect_url: string;
|
|
860
|
+
/** OpenId state. */
|
|
861
|
+
state: string;
|
|
862
|
+
}
|
|
863
|
+
export const LoginAccessOpenidRequest = /*@__PURE__*/ S.suspend(() =>
|
|
864
|
+
S.Struct({
|
|
865
|
+
code: S.String,
|
|
866
|
+
http_only: S.optional(S.String.pipe(T.Body("http-only"))),
|
|
867
|
+
redirect_url: S.String.pipe(T.Body("redirect-url")),
|
|
868
|
+
state: S.String,
|
|
869
|
+
}).pipe(
|
|
870
|
+
T.Http({
|
|
871
|
+
method: "POST",
|
|
872
|
+
uri: "/access/openid/login",
|
|
873
|
+
code: 200,
|
|
874
|
+
contentType: "form-urlencoded",
|
|
875
|
+
}),
|
|
876
|
+
),
|
|
877
|
+
).annotate({
|
|
878
|
+
identifier: "LoginAccessOpenidRequest",
|
|
879
|
+
}) as any as S.Schema<LoginAccessOpenidRequest>;
|
|
880
|
+
|
|
881
|
+
export interface LoginAccessOpenidResponse {
|
|
882
|
+
CSRFPreventionToken: string;
|
|
883
|
+
ticket?: string;
|
|
884
|
+
ticket_info?: string;
|
|
885
|
+
username: string;
|
|
886
|
+
}
|
|
887
|
+
export const LoginAccessOpenidResponse = /*@__PURE__*/ S.suspend(() =>
|
|
888
|
+
S.Struct({
|
|
889
|
+
CSRFPreventionToken: S.String,
|
|
890
|
+
ticket: S.optional(S.String),
|
|
891
|
+
ticket_info: S.optional(S.String.pipe(T.Body("ticket-info"))),
|
|
892
|
+
username: S.String,
|
|
893
|
+
}),
|
|
894
|
+
).annotate({
|
|
895
|
+
identifier: "LoginAccessOpenidResponse",
|
|
896
|
+
}) as any as S.Schema<LoginAccessOpenidResponse>;
|
|
897
|
+
|
|
898
|
+
export type PutAccessAclRequestRole =
|
|
899
|
+
| "Admin"
|
|
900
|
+
| "Audit"
|
|
901
|
+
| "NoAccess"
|
|
902
|
+
| "DatastoreAdmin"
|
|
903
|
+
| "DatastoreReader"
|
|
904
|
+
| "DatastoreBackup"
|
|
905
|
+
| "DatastorePowerUser"
|
|
906
|
+
| "DatastoreAudit"
|
|
907
|
+
| "RemoteAudit"
|
|
908
|
+
| "RemoteAdmin"
|
|
909
|
+
| "RemoteSyncOperator"
|
|
910
|
+
| "RemoteSyncPushOperator"
|
|
911
|
+
| "RemoteDatastorePowerUser"
|
|
912
|
+
| "RemoteDatastoreAdmin"
|
|
913
|
+
| "TapeAudit"
|
|
914
|
+
| "TapeAdmin"
|
|
915
|
+
| "TapeOperator"
|
|
916
|
+
| "TapeReader";
|
|
917
|
+
export const PutAccessAclRequestRole = S.String;
|
|
918
|
+
|
|
919
|
+
export interface PutAccessAclRequest {
|
|
920
|
+
/** Authentication ID */
|
|
921
|
+
auth_id?: string;
|
|
922
|
+
/** Remove permissions (instead of adding it). */
|
|
923
|
+
delete?: string;
|
|
924
|
+
/** Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications. */
|
|
925
|
+
digest?: string;
|
|
926
|
+
/** Group ID */
|
|
927
|
+
group?: string;
|
|
928
|
+
/** Access control path. */
|
|
929
|
+
path: string;
|
|
930
|
+
/** Allow to propagate (inherit) permissions. */
|
|
931
|
+
propagate?: string;
|
|
932
|
+
/** Enum representing roles via their [PRIVILEGES] combination. Since privileges are implemented as bitflags, each unique combination of privileges maps to a single, unique `u64` value that is used in this enum definition. */
|
|
933
|
+
role: PutAccessAclRequestRole | (string & {});
|
|
934
|
+
}
|
|
935
|
+
export const PutAccessAclRequest = /*@__PURE__*/ S.suspend(() =>
|
|
936
|
+
S.Struct({
|
|
937
|
+
auth_id: S.optional(S.String.pipe(T.Body("auth-id"))),
|
|
938
|
+
delete: S.optional(S.String),
|
|
939
|
+
digest: S.optional(S.String),
|
|
940
|
+
group: S.optional(S.String),
|
|
941
|
+
path: S.String,
|
|
942
|
+
propagate: S.optional(S.String),
|
|
943
|
+
role: PutAccessAclRequestRole,
|
|
944
|
+
}).pipe(
|
|
945
|
+
T.Http({
|
|
946
|
+
method: "PUT",
|
|
947
|
+
uri: "/access/acl",
|
|
948
|
+
code: 200,
|
|
949
|
+
contentType: "form-urlencoded",
|
|
950
|
+
}),
|
|
951
|
+
),
|
|
952
|
+
).annotate({
|
|
953
|
+
identifier: "PutAccessAclRequest",
|
|
954
|
+
}) as any as S.Schema<PutAccessAclRequest>;
|
|
955
|
+
|
|
956
|
+
export interface PutAccessAclResponse {}
|
|
957
|
+
export const PutAccessAclResponse = /*@__PURE__*/ S.suspend(() =>
|
|
958
|
+
S.Struct({}),
|
|
959
|
+
).annotate({
|
|
960
|
+
identifier: "PutAccessAclResponse",
|
|
961
|
+
}) as any as S.Schema<PutAccessAclResponse>;
|
|
962
|
+
|
|
963
|
+
export interface PutAccessPasswordRequest {
|
|
964
|
+
/** The current password for confirmation, unless logged in as root@pam */
|
|
965
|
+
confirmation_password?: string;
|
|
966
|
+
/** User Password. */
|
|
967
|
+
password: string;
|
|
968
|
+
/** User ID */
|
|
969
|
+
userid: string;
|
|
970
|
+
}
|
|
971
|
+
export const PutAccessPasswordRequest = /*@__PURE__*/ S.suspend(() =>
|
|
972
|
+
S.Struct({
|
|
973
|
+
confirmation_password: S.optional(
|
|
974
|
+
S.String.pipe(T.Body("confirmation-password")),
|
|
975
|
+
),
|
|
976
|
+
password: S.String,
|
|
977
|
+
userid: S.String,
|
|
978
|
+
}).pipe(
|
|
979
|
+
T.Http({
|
|
980
|
+
method: "PUT",
|
|
981
|
+
uri: "/access/password",
|
|
982
|
+
code: 200,
|
|
983
|
+
contentType: "form-urlencoded",
|
|
984
|
+
}),
|
|
985
|
+
),
|
|
986
|
+
).annotate({
|
|
987
|
+
identifier: "PutAccessPasswordRequest",
|
|
988
|
+
}) as any as S.Schema<PutAccessPasswordRequest>;
|
|
989
|
+
|
|
990
|
+
export interface PutAccessPasswordResponse {}
|
|
991
|
+
export const PutAccessPasswordResponse = /*@__PURE__*/ S.suspend(() =>
|
|
992
|
+
S.Struct({}),
|
|
993
|
+
).annotate({
|
|
994
|
+
identifier: "PutAccessPasswordResponse",
|
|
995
|
+
}) as any as S.Schema<PutAccessPasswordResponse>;
|
|
996
|
+
|
|
997
|
+
export interface PutAccessTfaRequest {
|
|
998
|
+
userid: string;
|
|
999
|
+
id: string;
|
|
1000
|
+
/** A description to distinguish multiple entries from one another */
|
|
1001
|
+
description?: string;
|
|
1002
|
+
/** Whether this entry should currently be enabled or disabled */
|
|
1003
|
+
enable?: string;
|
|
1004
|
+
/** Password. */
|
|
1005
|
+
password?: string;
|
|
1006
|
+
}
|
|
1007
|
+
export const PutAccessTfaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1008
|
+
S.Struct({
|
|
1009
|
+
userid: S.String.pipe(T.Label()),
|
|
1010
|
+
id: S.String.pipe(T.Label()),
|
|
1011
|
+
description: S.optional(S.String),
|
|
1012
|
+
enable: S.optional(S.String),
|
|
1013
|
+
password: S.optional(S.String),
|
|
1014
|
+
}).pipe(
|
|
1015
|
+
T.Http({
|
|
1016
|
+
method: "PUT",
|
|
1017
|
+
uri: "/access/tfa/{userid}/{id}",
|
|
1018
|
+
code: 200,
|
|
1019
|
+
contentType: "form-urlencoded",
|
|
1020
|
+
}),
|
|
1021
|
+
),
|
|
1022
|
+
).annotate({
|
|
1023
|
+
identifier: "PutAccessTfaRequest",
|
|
1024
|
+
}) as any as S.Schema<PutAccessTfaRequest>;
|
|
1025
|
+
|
|
1026
|
+
export interface PutAccessTfaResponse {}
|
|
1027
|
+
export const PutAccessTfaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1028
|
+
S.Struct({}),
|
|
1029
|
+
).annotate({
|
|
1030
|
+
identifier: "PutAccessTfaResponse",
|
|
1031
|
+
}) as any as S.Schema<PutAccessTfaResponse>;
|
|
1032
|
+
|
|
1033
|
+
export type PutAccessUserRequestDeleteItem =
|
|
1034
|
+
| "comment"
|
|
1035
|
+
| "firstname"
|
|
1036
|
+
| "lastname"
|
|
1037
|
+
| "email";
|
|
1038
|
+
export const PutAccessUserRequestDeleteItem = S.String;
|
|
1039
|
+
|
|
1040
|
+
export type PutAccessUserRequestDeleteList = Array<
|
|
1041
|
+
PutAccessUserRequestDeleteItem | (string & {})
|
|
1042
|
+
>;
|
|
1043
|
+
export const PutAccessUserRequestDeleteList = /*@__PURE__*/ S.Array(
|
|
1044
|
+
PutAccessUserRequestDeleteItem,
|
|
1045
|
+
) as any as S.Schema<PutAccessUserRequestDeleteList>;
|
|
1046
|
+
|
|
1047
|
+
export interface PutAccessUserRequest {
|
|
1048
|
+
userid: string;
|
|
1049
|
+
/** Comment. */
|
|
1050
|
+
comment?: string;
|
|
1051
|
+
/** List of properties to delete. */
|
|
1052
|
+
delete?: PutAccessUserRequestDeleteList;
|
|
1053
|
+
/** Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications. */
|
|
1054
|
+
digest?: string;
|
|
1055
|
+
/** E-Mail Address. */
|
|
1056
|
+
email?: string;
|
|
1057
|
+
/** Enable the account (default). You can set this to '0' to disable the account. */
|
|
1058
|
+
enable?: string;
|
|
1059
|
+
/** Account expiration date (seconds since epoch). '0' means no expiration date. */
|
|
1060
|
+
expire?: string;
|
|
1061
|
+
/** First name. */
|
|
1062
|
+
firstname?: string;
|
|
1063
|
+
/** Last name. */
|
|
1064
|
+
lastname?: string;
|
|
1065
|
+
/** This parameter is ignored, please use 'PUT /access/password' to change a user's password */
|
|
1066
|
+
password?: string;
|
|
1067
|
+
}
|
|
1068
|
+
export const PutAccessUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1069
|
+
S.Struct({
|
|
1070
|
+
userid: S.String.pipe(T.Label()),
|
|
1071
|
+
comment: S.optional(S.String),
|
|
1072
|
+
delete: S.optional(PutAccessUserRequestDeleteList),
|
|
1073
|
+
digest: S.optional(S.String),
|
|
1074
|
+
email: S.optional(S.String),
|
|
1075
|
+
enable: S.optional(S.String),
|
|
1076
|
+
expire: S.optional(S.String),
|
|
1077
|
+
firstname: S.optional(S.String),
|
|
1078
|
+
lastname: S.optional(S.String),
|
|
1079
|
+
password: S.optional(S.String),
|
|
1080
|
+
}).pipe(
|
|
1081
|
+
T.Http({
|
|
1082
|
+
method: "PUT",
|
|
1083
|
+
uri: "/access/users/{userid}",
|
|
1084
|
+
code: 200,
|
|
1085
|
+
contentType: "form-urlencoded",
|
|
1086
|
+
}),
|
|
1087
|
+
),
|
|
1088
|
+
).annotate({
|
|
1089
|
+
identifier: "PutAccessUserRequest",
|
|
1090
|
+
}) as any as S.Schema<PutAccessUserRequest>;
|
|
1091
|
+
|
|
1092
|
+
export interface PutAccessUserResponse {}
|
|
1093
|
+
export const PutAccessUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1094
|
+
S.Struct({}),
|
|
1095
|
+
).annotate({
|
|
1096
|
+
identifier: "PutAccessUserResponse",
|
|
1097
|
+
}) as any as S.Schema<PutAccessUserResponse>;
|
|
1098
|
+
|
|
1099
|
+
export type PutAccessUserTokenRequestDeleteItem = "comment";
|
|
1100
|
+
export const PutAccessUserTokenRequestDeleteItem = S.String;
|
|
1101
|
+
|
|
1102
|
+
export type PutAccessUserTokenRequestDeleteList = Array<
|
|
1103
|
+
PutAccessUserTokenRequestDeleteItem | (string & {})
|
|
1104
|
+
>;
|
|
1105
|
+
export const PutAccessUserTokenRequestDeleteList = /*@__PURE__*/ S.Array(
|
|
1106
|
+
PutAccessUserTokenRequestDeleteItem,
|
|
1107
|
+
) as any as S.Schema<PutAccessUserTokenRequestDeleteList>;
|
|
1108
|
+
|
|
1109
|
+
export interface PutAccessUserTokenRequest {
|
|
1110
|
+
userid: string;
|
|
1111
|
+
token_name: string;
|
|
1112
|
+
/** Comment. */
|
|
1113
|
+
comment?: string;
|
|
1114
|
+
/** List of properties to delete. */
|
|
1115
|
+
delete?: PutAccessUserTokenRequestDeleteList;
|
|
1116
|
+
/** Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications. */
|
|
1117
|
+
digest?: string;
|
|
1118
|
+
/** Enable the account (default). You can set this to '0' to disable the account. */
|
|
1119
|
+
enable?: string;
|
|
1120
|
+
/** Account expiration date (seconds since epoch). '0' means no expiration date. */
|
|
1121
|
+
expire?: string;
|
|
1122
|
+
/** Regenerate token secret while keeping permissions. */
|
|
1123
|
+
regenerate?: string;
|
|
1124
|
+
}
|
|
1125
|
+
export const PutAccessUserTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1126
|
+
S.Struct({
|
|
1127
|
+
userid: S.String.pipe(T.Label()),
|
|
1128
|
+
token_name: S.String.pipe(T.Label()),
|
|
1129
|
+
comment: S.optional(S.String),
|
|
1130
|
+
delete: S.optional(PutAccessUserTokenRequestDeleteList),
|
|
1131
|
+
digest: S.optional(S.String),
|
|
1132
|
+
enable: S.optional(S.String),
|
|
1133
|
+
expire: S.optional(S.String),
|
|
1134
|
+
regenerate: S.optional(S.String),
|
|
1135
|
+
}).pipe(
|
|
1136
|
+
T.Http({
|
|
1137
|
+
method: "PUT",
|
|
1138
|
+
uri: "/access/users/{userid}/token/{token-name}",
|
|
1139
|
+
code: 200,
|
|
1140
|
+
contentType: "form-urlencoded",
|
|
1141
|
+
}),
|
|
1142
|
+
),
|
|
1143
|
+
).annotate({
|
|
1144
|
+
identifier: "PutAccessUserTokenRequest",
|
|
1145
|
+
}) as any as S.Schema<PutAccessUserTokenRequest>;
|
|
1146
|
+
|
|
1147
|
+
export interface PutAccessUserTokenResponse {
|
|
1148
|
+
secret?: string;
|
|
1149
|
+
}
|
|
1150
|
+
export const PutAccessUserTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1151
|
+
S.Struct({
|
|
1152
|
+
secret: S.optional(S.String),
|
|
1153
|
+
}),
|
|
1154
|
+
).annotate({
|
|
1155
|
+
identifier: "PutAccessUserTokenResponse",
|
|
1156
|
+
}) as any as S.Schema<PutAccessUserTokenResponse>;
|
|
1157
|
+
|
|
1158
|
+
export interface PutAccessUserUnlockTfaRequest {
|
|
1159
|
+
userid: string;
|
|
1160
|
+
}
|
|
1161
|
+
export const PutAccessUserUnlockTfaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1162
|
+
S.Struct({
|
|
1163
|
+
userid: S.String.pipe(T.Label()),
|
|
1164
|
+
}).pipe(
|
|
1165
|
+
T.Http({
|
|
1166
|
+
method: "PUT",
|
|
1167
|
+
uri: "/access/users/{userid}/unlock-tfa",
|
|
1168
|
+
code: 200,
|
|
1169
|
+
}),
|
|
1170
|
+
),
|
|
1171
|
+
).annotate({
|
|
1172
|
+
identifier: "PutAccessUserUnlockTfaRequest",
|
|
1173
|
+
}) as any as S.Schema<PutAccessUserUnlockTfaRequest>;
|
|
1174
|
+
|
|
1175
|
+
export type PutAccessUserUnlockTfaResponse = unknown;
|
|
1176
|
+
export const PutAccessUserUnlockTfaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1177
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
1178
|
+
).annotate({
|
|
1179
|
+
identifier: "PutAccessUserUnlockTfaResponse",
|
|
1180
|
+
}) as any as S.Schema<PutAccessUserUnlockTfaResponse>;
|
|
1181
|
+
|
|
1182
|
+
export interface SyncAccessDomainRequest {
|
|
1183
|
+
realm: string;
|
|
1184
|
+
/** If set, do not create/delete anything */
|
|
1185
|
+
dry_run?: string;
|
|
1186
|
+
/** Enable newly synced users immediately */
|
|
1187
|
+
enable_new?: string;
|
|
1188
|
+
/** A semicolon-separated list of things to remove when they or the user vanishes during user synchronization. The following values are possible: ``entry`` removes the user when not returned from the sync; ``properties`` removes any properties on existing user that do not appear in the source. ``acl`` removes ACLs when the user is not returned from the sync. */
|
|
1189
|
+
remove_vanished?: string;
|
|
1190
|
+
}
|
|
1191
|
+
export const SyncAccessDomainRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1192
|
+
S.Struct({
|
|
1193
|
+
realm: S.String.pipe(T.Label()),
|
|
1194
|
+
dry_run: S.optional(S.String.pipe(T.Body("dry-run"))),
|
|
1195
|
+
enable_new: S.optional(S.String.pipe(T.Body("enable-new"))),
|
|
1196
|
+
remove_vanished: S.optional(S.String.pipe(T.Body("remove-vanished"))),
|
|
1197
|
+
}).pipe(
|
|
1198
|
+
T.Http({
|
|
1199
|
+
method: "POST",
|
|
1200
|
+
uri: "/access/domains/{realm}/sync",
|
|
1201
|
+
code: 200,
|
|
1202
|
+
contentType: "form-urlencoded",
|
|
1203
|
+
}),
|
|
1204
|
+
),
|
|
1205
|
+
).annotate({
|
|
1206
|
+
identifier: "SyncAccessDomainRequest",
|
|
1207
|
+
}) as any as S.Schema<SyncAccessDomainRequest>;
|
|
1208
|
+
|
|
1209
|
+
export type SyncAccessDomainResponse = string;
|
|
1210
|
+
export const SyncAccessDomainResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1211
|
+
S.String.pipe(T.RawResponseRoot()),
|
|
1212
|
+
).annotate({
|
|
1213
|
+
identifier: "SyncAccessDomainResponse",
|
|
1214
|
+
}) as any as S.Schema<SyncAccessDomainResponse>;
|
|
1215
|
+
|
|
1216
|
+
export type UpdateAccessTfaRequestType =
|
|
1217
|
+
| "totp"
|
|
1218
|
+
| "u2f"
|
|
1219
|
+
| "webauthn"
|
|
1220
|
+
| "recovery"
|
|
1221
|
+
| "yubico";
|
|
1222
|
+
export const UpdateAccessTfaRequestType = S.String;
|
|
1223
|
+
|
|
1224
|
+
export interface UpdateAccessTfaRequest {
|
|
1225
|
+
userid: string;
|
|
1226
|
+
/** When responding to a u2f challenge: the original challenge string */
|
|
1227
|
+
challenge?: string;
|
|
1228
|
+
/** A description to distinguish multiple entries from one another */
|
|
1229
|
+
description?: string;
|
|
1230
|
+
/** Password. */
|
|
1231
|
+
password?: string;
|
|
1232
|
+
/** A totp URI. */
|
|
1233
|
+
totp?: string;
|
|
1234
|
+
/** A TFA entry type. */
|
|
1235
|
+
type: UpdateAccessTfaRequestType | (string & {});
|
|
1236
|
+
/** The current value for the provided totp URI, or a Webauthn/U2F challenge response */
|
|
1237
|
+
value?: string;
|
|
1238
|
+
}
|
|
1239
|
+
export const UpdateAccessTfaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1240
|
+
S.Struct({
|
|
1241
|
+
userid: S.String.pipe(T.Label()),
|
|
1242
|
+
challenge: S.optional(S.String),
|
|
1243
|
+
description: S.optional(S.String),
|
|
1244
|
+
password: S.optional(S.String),
|
|
1245
|
+
totp: S.optional(S.String),
|
|
1246
|
+
type: UpdateAccessTfaRequestType,
|
|
1247
|
+
value: S.optional(S.String),
|
|
1248
|
+
}).pipe(
|
|
1249
|
+
T.Http({
|
|
1250
|
+
method: "POST",
|
|
1251
|
+
uri: "/access/tfa/{userid}",
|
|
1252
|
+
code: 200,
|
|
1253
|
+
contentType: "form-urlencoded",
|
|
1254
|
+
}),
|
|
1255
|
+
),
|
|
1256
|
+
).annotate({
|
|
1257
|
+
identifier: "UpdateAccessTfaRequest",
|
|
1258
|
+
}) as any as S.Schema<UpdateAccessTfaRequest>;
|
|
1259
|
+
|
|
1260
|
+
export type UpdateAccessTfaResponseRecoveryList = Array<number>;
|
|
1261
|
+
export const UpdateAccessTfaResponseRecoveryList = /*@__PURE__*/ S.Array(
|
|
1262
|
+
S.Number,
|
|
1263
|
+
) as any as S.Schema<UpdateAccessTfaResponseRecoveryList>;
|
|
1264
|
+
|
|
1265
|
+
export interface UpdateAccessTfaResponse {
|
|
1266
|
+
challenge?: string;
|
|
1267
|
+
id?: string;
|
|
1268
|
+
recovery: UpdateAccessTfaResponseRecoveryList;
|
|
1269
|
+
}
|
|
1270
|
+
export const UpdateAccessTfaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1271
|
+
S.Struct({
|
|
1272
|
+
challenge: S.optional(S.String),
|
|
1273
|
+
id: S.optional(S.String),
|
|
1274
|
+
recovery: UpdateAccessTfaResponseRecoveryList,
|
|
1275
|
+
}),
|
|
1276
|
+
).annotate({
|
|
1277
|
+
identifier: "UpdateAccessTfaResponse",
|
|
1278
|
+
}) as any as S.Schema<UpdateAccessTfaResponse>;
|
|
1279
|
+
|
|
1280
|
+
export interface UpdateAccessUserTokenRequest {
|
|
1281
|
+
userid: string;
|
|
1282
|
+
token_name: string;
|
|
1283
|
+
/** Comment. */
|
|
1284
|
+
comment?: string;
|
|
1285
|
+
/** Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications. */
|
|
1286
|
+
digest?: string;
|
|
1287
|
+
/** Enable the account (default). You can set this to '0' to disable the account. */
|
|
1288
|
+
enable?: string;
|
|
1289
|
+
/** Account expiration date (seconds since epoch). '0' means no expiration date. */
|
|
1290
|
+
expire?: string;
|
|
1291
|
+
}
|
|
1292
|
+
export const UpdateAccessUserTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1293
|
+
S.Struct({
|
|
1294
|
+
userid: S.String.pipe(T.Label()),
|
|
1295
|
+
token_name: S.String.pipe(T.Label()),
|
|
1296
|
+
comment: S.optional(S.String),
|
|
1297
|
+
digest: S.optional(S.String),
|
|
1298
|
+
enable: S.optional(S.String),
|
|
1299
|
+
expire: S.optional(S.String),
|
|
1300
|
+
}).pipe(
|
|
1301
|
+
T.Http({
|
|
1302
|
+
method: "POST",
|
|
1303
|
+
uri: "/access/users/{userid}/token/{token-name}",
|
|
1304
|
+
code: 200,
|
|
1305
|
+
contentType: "form-urlencoded",
|
|
1306
|
+
}),
|
|
1307
|
+
),
|
|
1308
|
+
).annotate({
|
|
1309
|
+
identifier: "UpdateAccessUserTokenRequest",
|
|
1310
|
+
}) as any as S.Schema<UpdateAccessUserTokenRequest>;
|
|
1311
|
+
|
|
1312
|
+
export interface UpdateAccessUserTokenResponse {
|
|
1313
|
+
tokenid: string;
|
|
1314
|
+
value: string;
|
|
1315
|
+
}
|
|
1316
|
+
export const UpdateAccessUserTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1317
|
+
S.Struct({
|
|
1318
|
+
tokenid: S.String,
|
|
1319
|
+
value: S.String,
|
|
1320
|
+
}),
|
|
1321
|
+
).annotate({
|
|
1322
|
+
identifier: "UpdateAccessUserTokenResponse",
|
|
1323
|
+
}) as any as S.Schema<UpdateAccessUserTokenResponse>;
|
|
1324
|
+
|
|
1325
|
+
export type CreateAccessOpenidAuthUrlError = ProxmoxBackupOpError;
|
|
1326
|
+
/** Create OpenID Redirect Session */
|
|
1327
|
+
export const createAccessOpenidAuthUrl: API.OperationMethod<
|
|
1328
|
+
CreateAccessOpenidAuthUrlRequest,
|
|
1329
|
+
CreateAccessOpenidAuthUrlResponse,
|
|
1330
|
+
CreateAccessOpenidAuthUrlError,
|
|
1331
|
+
ProxmoxBackupOpContext
|
|
1332
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1333
|
+
input: CreateAccessOpenidAuthUrlRequest,
|
|
1334
|
+
output: CreateAccessOpenidAuthUrlResponse,
|
|
1335
|
+
errors: [],
|
|
1336
|
+
protocol: ProxmoxBackupProtocol,
|
|
1337
|
+
retry: Retry.Retry,
|
|
1338
|
+
}));
|
|
1339
|
+
|
|
1340
|
+
export type CreateAccessTicketError = ProxmoxBackupOpError;
|
|
1341
|
+
/** Either create a new HttpOnly ticket or a regular ticket. */
|
|
1342
|
+
export const createAccessTicket: API.OperationMethod<
|
|
1343
|
+
CreateAccessTicketRequest,
|
|
1344
|
+
CreateAccessTicketResponse,
|
|
1345
|
+
CreateAccessTicketError,
|
|
1346
|
+
ProxmoxBackupOpContext
|
|
1347
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1348
|
+
input: CreateAccessTicketRequest,
|
|
1349
|
+
output: CreateAccessTicketResponse,
|
|
1350
|
+
errors: [],
|
|
1351
|
+
protocol: ProxmoxBackupProtocol,
|
|
1352
|
+
retry: Retry.Retry,
|
|
1353
|
+
}));
|
|
1354
|
+
|
|
1355
|
+
export type CreateAccessUserError = ProxmoxBackupOpError;
|
|
1356
|
+
/** Create new user. */
|
|
1357
|
+
export const createAccessUser: API.OperationMethod<
|
|
1358
|
+
CreateAccessUserRequest,
|
|
1359
|
+
CreateAccessUserResponse,
|
|
1360
|
+
CreateAccessUserError,
|
|
1361
|
+
ProxmoxBackupOpContext
|
|
1362
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1363
|
+
input: CreateAccessUserRequest,
|
|
1364
|
+
output: CreateAccessUserResponse,
|
|
1365
|
+
errors: [],
|
|
1366
|
+
protocol: ProxmoxBackupProtocol,
|
|
1367
|
+
retry: Retry.Retry,
|
|
1368
|
+
}));
|
|
1369
|
+
|
|
1370
|
+
export type CreateAccessVncticketError = ProxmoxBackupOpError;
|
|
1371
|
+
/** Verify that a VNC ticket is valid for a given Authid, path and privilege(s). */
|
|
1372
|
+
export const createAccessVncticket: API.OperationMethod<
|
|
1373
|
+
CreateAccessVncticketRequest,
|
|
1374
|
+
CreateAccessVncticketResponse,
|
|
1375
|
+
CreateAccessVncticketError,
|
|
1376
|
+
ProxmoxBackupOpContext
|
|
1377
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1378
|
+
input: CreateAccessVncticketRequest,
|
|
1379
|
+
output: CreateAccessVncticketResponse,
|
|
1380
|
+
errors: [],
|
|
1381
|
+
protocol: ProxmoxBackupProtocol,
|
|
1382
|
+
retry: Retry.Retry,
|
|
1383
|
+
}));
|
|
1384
|
+
|
|
1385
|
+
export type DeleteAccessTfaError = ProxmoxBackupOpError;
|
|
1386
|
+
/** Delete a single TFA entry. */
|
|
1387
|
+
export const deleteAccessTfa: API.OperationMethod<
|
|
1388
|
+
DeleteAccessTfaRequest,
|
|
1389
|
+
DeleteAccessTfaResponse,
|
|
1390
|
+
DeleteAccessTfaError,
|
|
1391
|
+
ProxmoxBackupOpContext
|
|
1392
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1393
|
+
input: DeleteAccessTfaRequest,
|
|
1394
|
+
output: DeleteAccessTfaResponse,
|
|
1395
|
+
errors: [],
|
|
1396
|
+
protocol: ProxmoxBackupProtocol,
|
|
1397
|
+
retry: Retry.Retry,
|
|
1398
|
+
}));
|
|
1399
|
+
|
|
1400
|
+
export type DeleteAccessTicketError = ProxmoxBackupOpError;
|
|
1401
|
+
export const deleteAccessTicket: API.OperationMethod<
|
|
1402
|
+
DeleteAccessTicketRequest,
|
|
1403
|
+
DeleteAccessTicketResponse,
|
|
1404
|
+
DeleteAccessTicketError,
|
|
1405
|
+
ProxmoxBackupOpContext
|
|
1406
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1407
|
+
input: DeleteAccessTicketRequest,
|
|
1408
|
+
output: DeleteAccessTicketResponse,
|
|
1409
|
+
errors: [],
|
|
1410
|
+
protocol: ProxmoxBackupProtocol,
|
|
1411
|
+
retry: Retry.Retry,
|
|
1412
|
+
}));
|
|
1413
|
+
|
|
1414
|
+
export type DeleteAccessUserError = ProxmoxBackupOpError;
|
|
1415
|
+
/** Remove a user from the configuration file. */
|
|
1416
|
+
export const deleteAccessUser: API.OperationMethod<
|
|
1417
|
+
DeleteAccessUserRequest,
|
|
1418
|
+
DeleteAccessUserResponse,
|
|
1419
|
+
DeleteAccessUserError,
|
|
1420
|
+
ProxmoxBackupOpContext
|
|
1421
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1422
|
+
input: DeleteAccessUserRequest,
|
|
1423
|
+
output: DeleteAccessUserResponse,
|
|
1424
|
+
errors: [],
|
|
1425
|
+
protocol: ProxmoxBackupProtocol,
|
|
1426
|
+
retry: Retry.Retry,
|
|
1427
|
+
}));
|
|
1428
|
+
|
|
1429
|
+
export type DeleteAccessUserTokenError = ProxmoxBackupOpError;
|
|
1430
|
+
/** Delete a user's API token */
|
|
1431
|
+
export const deleteAccessUserToken: API.OperationMethod<
|
|
1432
|
+
DeleteAccessUserTokenRequest,
|
|
1433
|
+
DeleteAccessUserTokenResponse,
|
|
1434
|
+
DeleteAccessUserTokenError,
|
|
1435
|
+
ProxmoxBackupOpContext
|
|
1436
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1437
|
+
input: DeleteAccessUserTokenRequest,
|
|
1438
|
+
output: DeleteAccessUserTokenResponse,
|
|
1439
|
+
errors: [],
|
|
1440
|
+
protocol: ProxmoxBackupProtocol,
|
|
1441
|
+
retry: Retry.Retry,
|
|
1442
|
+
}));
|
|
1443
|
+
|
|
1444
|
+
export type GetAccessError = ProxmoxBackupOpError;
|
|
1445
|
+
/** Directory index. */
|
|
1446
|
+
export const getAccess: API.OperationMethod<
|
|
1447
|
+
GetAccessRequest,
|
|
1448
|
+
GetAccessResponse,
|
|
1449
|
+
GetAccessError,
|
|
1450
|
+
ProxmoxBackupOpContext
|
|
1451
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1452
|
+
input: GetAccessRequest,
|
|
1453
|
+
output: GetAccessResponse,
|
|
1454
|
+
errors: [],
|
|
1455
|
+
protocol: ProxmoxBackupProtocol,
|
|
1456
|
+
retry: Retry.Retry,
|
|
1457
|
+
}));
|
|
1458
|
+
|
|
1459
|
+
export type GetAccessOpenidError = ProxmoxBackupOpError;
|
|
1460
|
+
/** Directory index. */
|
|
1461
|
+
export const getAccessOpenid: API.OperationMethod<
|
|
1462
|
+
GetAccessOpenidRequest,
|
|
1463
|
+
GetAccessOpenidResponse,
|
|
1464
|
+
GetAccessOpenidError,
|
|
1465
|
+
ProxmoxBackupOpContext
|
|
1466
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1467
|
+
input: GetAccessOpenidRequest,
|
|
1468
|
+
output: GetAccessOpenidResponse,
|
|
1469
|
+
errors: [],
|
|
1470
|
+
protocol: ProxmoxBackupProtocol,
|
|
1471
|
+
retry: Retry.Retry,
|
|
1472
|
+
}));
|
|
1473
|
+
|
|
1474
|
+
export type GetAccessPermissionsError = ProxmoxBackupOpError;
|
|
1475
|
+
/** List permissions of given or currently authenticated user / API token. Optionally limited to specific path. */
|
|
1476
|
+
export const getAccessPermissions: API.OperationMethod<
|
|
1477
|
+
GetAccessPermissionsRequest,
|
|
1478
|
+
GetAccessPermissionsResponse,
|
|
1479
|
+
GetAccessPermissionsError,
|
|
1480
|
+
ProxmoxBackupOpContext
|
|
1481
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1482
|
+
input: GetAccessPermissionsRequest,
|
|
1483
|
+
output: GetAccessPermissionsResponse,
|
|
1484
|
+
errors: [],
|
|
1485
|
+
protocol: ProxmoxBackupProtocol,
|
|
1486
|
+
retry: Retry.Retry,
|
|
1487
|
+
}));
|
|
1488
|
+
|
|
1489
|
+
export type GetAccessTfaError = ProxmoxBackupOpError;
|
|
1490
|
+
/** Add a TOTP secret to the user. */
|
|
1491
|
+
export const getAccessTfa: API.OperationMethod<
|
|
1492
|
+
GetAccessTfaRequest,
|
|
1493
|
+
GetAccessTfaResponse,
|
|
1494
|
+
GetAccessTfaError,
|
|
1495
|
+
ProxmoxBackupOpContext
|
|
1496
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1497
|
+
input: GetAccessTfaRequest,
|
|
1498
|
+
output: GetAccessTfaResponse,
|
|
1499
|
+
errors: [],
|
|
1500
|
+
protocol: ProxmoxBackupProtocol,
|
|
1501
|
+
retry: Retry.Retry,
|
|
1502
|
+
}));
|
|
1503
|
+
|
|
1504
|
+
export type GetAccessTfa2Error = ProxmoxBackupOpError;
|
|
1505
|
+
/** Get a single TFA entry. */
|
|
1506
|
+
export const getAccessTfa2: API.OperationMethod<
|
|
1507
|
+
GetAccessTfa2Request,
|
|
1508
|
+
GetAccessTfa2Response,
|
|
1509
|
+
GetAccessTfa2Error,
|
|
1510
|
+
ProxmoxBackupOpContext
|
|
1511
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1512
|
+
input: GetAccessTfa2Request,
|
|
1513
|
+
output: GetAccessTfa2Response,
|
|
1514
|
+
errors: [],
|
|
1515
|
+
protocol: ProxmoxBackupProtocol,
|
|
1516
|
+
retry: Retry.Retry,
|
|
1517
|
+
}));
|
|
1518
|
+
|
|
1519
|
+
export type GetAccessUserError = ProxmoxBackupOpError;
|
|
1520
|
+
/** Read user configuration data. */
|
|
1521
|
+
export const getAccessUser: API.OperationMethod<
|
|
1522
|
+
GetAccessUserRequest,
|
|
1523
|
+
GetAccessUserResponse,
|
|
1524
|
+
GetAccessUserError,
|
|
1525
|
+
ProxmoxBackupOpContext
|
|
1526
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1527
|
+
input: GetAccessUserRequest,
|
|
1528
|
+
output: GetAccessUserResponse,
|
|
1529
|
+
errors: [],
|
|
1530
|
+
protocol: ProxmoxBackupProtocol,
|
|
1531
|
+
retry: Retry.Retry,
|
|
1532
|
+
}));
|
|
1533
|
+
|
|
1534
|
+
export type GetAccessUserTokenError = ProxmoxBackupOpError;
|
|
1535
|
+
/** Read user's API token metadata */
|
|
1536
|
+
export const getAccessUserToken: API.OperationMethod<
|
|
1537
|
+
GetAccessUserTokenRequest,
|
|
1538
|
+
GetAccessUserTokenResponse,
|
|
1539
|
+
GetAccessUserTokenError,
|
|
1540
|
+
ProxmoxBackupOpContext
|
|
1541
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1542
|
+
input: GetAccessUserTokenRequest,
|
|
1543
|
+
output: GetAccessUserTokenResponse,
|
|
1544
|
+
errors: [],
|
|
1545
|
+
protocol: ProxmoxBackupProtocol,
|
|
1546
|
+
retry: Retry.Retry,
|
|
1547
|
+
}));
|
|
1548
|
+
|
|
1549
|
+
export type ListAccessAclError = ProxmoxBackupOpError;
|
|
1550
|
+
/** Read Access Control List (ACLs). */
|
|
1551
|
+
export const listAccessAcl: API.OperationMethod<
|
|
1552
|
+
ListAccessAclRequest,
|
|
1553
|
+
ListAccessAclResponse,
|
|
1554
|
+
ListAccessAclError,
|
|
1555
|
+
ProxmoxBackupOpContext
|
|
1556
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1557
|
+
input: ListAccessAclRequest,
|
|
1558
|
+
output: ListAccessAclResponse,
|
|
1559
|
+
errors: [],
|
|
1560
|
+
protocol: ProxmoxBackupProtocol,
|
|
1561
|
+
retry: Retry.Retry,
|
|
1562
|
+
}));
|
|
1563
|
+
|
|
1564
|
+
export type ListAccessDomainsError = ProxmoxBackupOpError;
|
|
1565
|
+
/** Authentication domain/realm index. */
|
|
1566
|
+
export const listAccessDomains: API.OperationMethod<
|
|
1567
|
+
ListAccessDomainsRequest,
|
|
1568
|
+
ListAccessDomainsResponse,
|
|
1569
|
+
ListAccessDomainsError,
|
|
1570
|
+
ProxmoxBackupOpContext
|
|
1571
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1572
|
+
input: ListAccessDomainsRequest,
|
|
1573
|
+
output: ListAccessDomainsResponse,
|
|
1574
|
+
errors: [],
|
|
1575
|
+
protocol: ProxmoxBackupProtocol,
|
|
1576
|
+
retry: Retry.Retry,
|
|
1577
|
+
}));
|
|
1578
|
+
|
|
1579
|
+
export type ListAccessRolesError = ProxmoxBackupOpError;
|
|
1580
|
+
/** Role list */
|
|
1581
|
+
export const listAccessRoles: API.OperationMethod<
|
|
1582
|
+
ListAccessRolesRequest,
|
|
1583
|
+
ListAccessRolesResponse,
|
|
1584
|
+
ListAccessRolesError,
|
|
1585
|
+
ProxmoxBackupOpContext
|
|
1586
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1587
|
+
input: ListAccessRolesRequest,
|
|
1588
|
+
output: ListAccessRolesResponse,
|
|
1589
|
+
errors: [],
|
|
1590
|
+
protocol: ProxmoxBackupProtocol,
|
|
1591
|
+
retry: Retry.Retry,
|
|
1592
|
+
}));
|
|
1593
|
+
|
|
1594
|
+
export type ListAccessTfaError = ProxmoxBackupOpError;
|
|
1595
|
+
/** List user TFA configuration. */
|
|
1596
|
+
export const listAccessTfa: API.OperationMethod<
|
|
1597
|
+
ListAccessTfaRequest,
|
|
1598
|
+
ListAccessTfaResponse,
|
|
1599
|
+
ListAccessTfaError,
|
|
1600
|
+
ProxmoxBackupOpContext
|
|
1601
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1602
|
+
input: ListAccessTfaRequest,
|
|
1603
|
+
output: ListAccessTfaResponse,
|
|
1604
|
+
errors: [],
|
|
1605
|
+
protocol: ProxmoxBackupProtocol,
|
|
1606
|
+
retry: Retry.Retry,
|
|
1607
|
+
}));
|
|
1608
|
+
|
|
1609
|
+
export type ListAccessUsersError = ProxmoxBackupOpError;
|
|
1610
|
+
/** List users */
|
|
1611
|
+
export const listAccessUsers: API.OperationMethod<
|
|
1612
|
+
ListAccessUsersRequest,
|
|
1613
|
+
ListAccessUsersResponse,
|
|
1614
|
+
ListAccessUsersError,
|
|
1615
|
+
ProxmoxBackupOpContext
|
|
1616
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1617
|
+
input: ListAccessUsersRequest,
|
|
1618
|
+
output: ListAccessUsersResponse,
|
|
1619
|
+
errors: [],
|
|
1620
|
+
protocol: ProxmoxBackupProtocol,
|
|
1621
|
+
retry: Retry.Retry,
|
|
1622
|
+
}));
|
|
1623
|
+
|
|
1624
|
+
export type ListAccessUserTokenError = ProxmoxBackupOpError;
|
|
1625
|
+
/** List user's API tokens */
|
|
1626
|
+
export const listAccessUserToken: API.OperationMethod<
|
|
1627
|
+
ListAccessUserTokenRequest,
|
|
1628
|
+
ListAccessUserTokenResponse,
|
|
1629
|
+
ListAccessUserTokenError,
|
|
1630
|
+
ProxmoxBackupOpContext
|
|
1631
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1632
|
+
input: ListAccessUserTokenRequest,
|
|
1633
|
+
output: ListAccessUserTokenResponse,
|
|
1634
|
+
errors: [],
|
|
1635
|
+
protocol: ProxmoxBackupProtocol,
|
|
1636
|
+
retry: Retry.Retry,
|
|
1637
|
+
}));
|
|
1638
|
+
|
|
1639
|
+
export type LoginAccessOpenidError = ProxmoxBackupOpError;
|
|
1640
|
+
/** Get a new ticket as an HttpOnly cookie. Supports tickets via cookies. */
|
|
1641
|
+
export const loginAccessOpenid: API.OperationMethod<
|
|
1642
|
+
LoginAccessOpenidRequest,
|
|
1643
|
+
LoginAccessOpenidResponse,
|
|
1644
|
+
LoginAccessOpenidError,
|
|
1645
|
+
ProxmoxBackupOpContext
|
|
1646
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1647
|
+
input: LoginAccessOpenidRequest,
|
|
1648
|
+
output: LoginAccessOpenidResponse,
|
|
1649
|
+
errors: [],
|
|
1650
|
+
protocol: ProxmoxBackupProtocol,
|
|
1651
|
+
retry: Retry.Retry,
|
|
1652
|
+
}));
|
|
1653
|
+
|
|
1654
|
+
export type PutAccessAclError = ProxmoxBackupOpError;
|
|
1655
|
+
/** Update Access Control List (ACLs). */
|
|
1656
|
+
export const putAccessAcl: API.OperationMethod<
|
|
1657
|
+
PutAccessAclRequest,
|
|
1658
|
+
PutAccessAclResponse,
|
|
1659
|
+
PutAccessAclError,
|
|
1660
|
+
ProxmoxBackupOpContext
|
|
1661
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1662
|
+
input: PutAccessAclRequest,
|
|
1663
|
+
output: PutAccessAclResponse,
|
|
1664
|
+
errors: [],
|
|
1665
|
+
protocol: ProxmoxBackupProtocol,
|
|
1666
|
+
retry: Retry.Retry,
|
|
1667
|
+
}));
|
|
1668
|
+
|
|
1669
|
+
export type PutAccessPasswordError = ProxmoxBackupOpError;
|
|
1670
|
+
/** Change user password Each user is allowed to change his own password. Superuser can change all passwords. */
|
|
1671
|
+
export const putAccessPassword: API.OperationMethod<
|
|
1672
|
+
PutAccessPasswordRequest,
|
|
1673
|
+
PutAccessPasswordResponse,
|
|
1674
|
+
PutAccessPasswordError,
|
|
1675
|
+
ProxmoxBackupOpContext
|
|
1676
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1677
|
+
input: PutAccessPasswordRequest,
|
|
1678
|
+
output: PutAccessPasswordResponse,
|
|
1679
|
+
errors: [],
|
|
1680
|
+
protocol: ProxmoxBackupProtocol,
|
|
1681
|
+
retry: Retry.Retry,
|
|
1682
|
+
}));
|
|
1683
|
+
|
|
1684
|
+
export type PutAccessTfaError = ProxmoxBackupOpError;
|
|
1685
|
+
/** Update user's TFA entry description. */
|
|
1686
|
+
export const putAccessTfa: API.OperationMethod<
|
|
1687
|
+
PutAccessTfaRequest,
|
|
1688
|
+
PutAccessTfaResponse,
|
|
1689
|
+
PutAccessTfaError,
|
|
1690
|
+
ProxmoxBackupOpContext
|
|
1691
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1692
|
+
input: PutAccessTfaRequest,
|
|
1693
|
+
output: PutAccessTfaResponse,
|
|
1694
|
+
errors: [],
|
|
1695
|
+
protocol: ProxmoxBackupProtocol,
|
|
1696
|
+
retry: Retry.Retry,
|
|
1697
|
+
}));
|
|
1698
|
+
|
|
1699
|
+
export type PutAccessUserError = ProxmoxBackupOpError;
|
|
1700
|
+
/** Update user configuration. To change a user's password use the 'PUT /access/password' endpoint. */
|
|
1701
|
+
export const putAccessUser: API.OperationMethod<
|
|
1702
|
+
PutAccessUserRequest,
|
|
1703
|
+
PutAccessUserResponse,
|
|
1704
|
+
PutAccessUserError,
|
|
1705
|
+
ProxmoxBackupOpContext
|
|
1706
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1707
|
+
input: PutAccessUserRequest,
|
|
1708
|
+
output: PutAccessUserResponse,
|
|
1709
|
+
errors: [],
|
|
1710
|
+
protocol: ProxmoxBackupProtocol,
|
|
1711
|
+
retry: Retry.Retry,
|
|
1712
|
+
}));
|
|
1713
|
+
|
|
1714
|
+
export type PutAccessUserTokenError = ProxmoxBackupOpError;
|
|
1715
|
+
/** Update user's API token metadata */
|
|
1716
|
+
export const putAccessUserToken: API.OperationMethod<
|
|
1717
|
+
PutAccessUserTokenRequest,
|
|
1718
|
+
PutAccessUserTokenResponse,
|
|
1719
|
+
PutAccessUserTokenError,
|
|
1720
|
+
ProxmoxBackupOpContext
|
|
1721
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1722
|
+
input: PutAccessUserTokenRequest,
|
|
1723
|
+
output: PutAccessUserTokenResponse,
|
|
1724
|
+
errors: [],
|
|
1725
|
+
protocol: ProxmoxBackupProtocol,
|
|
1726
|
+
retry: Retry.Retry,
|
|
1727
|
+
}));
|
|
1728
|
+
|
|
1729
|
+
export type PutAccessUserUnlockTfaError = ProxmoxBackupOpError;
|
|
1730
|
+
/** Unlock a user's TFA authentication. */
|
|
1731
|
+
export const putAccessUserUnlockTfa: API.OperationMethod<
|
|
1732
|
+
PutAccessUserUnlockTfaRequest,
|
|
1733
|
+
PutAccessUserUnlockTfaResponse,
|
|
1734
|
+
PutAccessUserUnlockTfaError,
|
|
1735
|
+
ProxmoxBackupOpContext
|
|
1736
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1737
|
+
input: PutAccessUserUnlockTfaRequest,
|
|
1738
|
+
output: PutAccessUserUnlockTfaResponse,
|
|
1739
|
+
errors: [],
|
|
1740
|
+
protocol: ProxmoxBackupProtocol,
|
|
1741
|
+
retry: Retry.Retry,
|
|
1742
|
+
}));
|
|
1743
|
+
|
|
1744
|
+
export type SyncAccessDomainError = ProxmoxBackupOpError;
|
|
1745
|
+
/** Synchronize users of a given realm */
|
|
1746
|
+
export const syncAccessDomain: API.OperationMethod<
|
|
1747
|
+
SyncAccessDomainRequest,
|
|
1748
|
+
SyncAccessDomainResponse,
|
|
1749
|
+
SyncAccessDomainError,
|
|
1750
|
+
ProxmoxBackupOpContext
|
|
1751
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1752
|
+
input: SyncAccessDomainRequest,
|
|
1753
|
+
output: SyncAccessDomainResponse,
|
|
1754
|
+
errors: [],
|
|
1755
|
+
protocol: ProxmoxBackupProtocol,
|
|
1756
|
+
retry: Retry.Retry,
|
|
1757
|
+
}));
|
|
1758
|
+
|
|
1759
|
+
export type UpdateAccessTfaError = ProxmoxBackupOpError;
|
|
1760
|
+
/** Add a TFA entry to the user. */
|
|
1761
|
+
export const updateAccessTfa: API.OperationMethod<
|
|
1762
|
+
UpdateAccessTfaRequest,
|
|
1763
|
+
UpdateAccessTfaResponse,
|
|
1764
|
+
UpdateAccessTfaError,
|
|
1765
|
+
ProxmoxBackupOpContext
|
|
1766
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1767
|
+
input: UpdateAccessTfaRequest,
|
|
1768
|
+
output: UpdateAccessTfaResponse,
|
|
1769
|
+
errors: [],
|
|
1770
|
+
protocol: ProxmoxBackupProtocol,
|
|
1771
|
+
retry: Retry.Retry,
|
|
1772
|
+
}));
|
|
1773
|
+
|
|
1774
|
+
export type UpdateAccessUserTokenError = ProxmoxBackupOpError;
|
|
1775
|
+
/** Generate a new API token with given metadata */
|
|
1776
|
+
export const updateAccessUserToken: API.OperationMethod<
|
|
1777
|
+
UpdateAccessUserTokenRequest,
|
|
1778
|
+
UpdateAccessUserTokenResponse,
|
|
1779
|
+
UpdateAccessUserTokenError,
|
|
1780
|
+
ProxmoxBackupOpContext
|
|
1781
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1782
|
+
input: UpdateAccessUserTokenRequest,
|
|
1783
|
+
output: UpdateAccessUserTokenResponse,
|
|
1784
|
+
errors: [],
|
|
1785
|
+
protocol: ProxmoxBackupProtocol,
|
|
1786
|
+
retry: Retry.Retry,
|
|
1787
|
+
}));
|