@goauthentik/api 2024.8.3-1729166675 → 2024.8.3-1729167001
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/.openapi-generator/FILES +1 -0
- package/dist/apis/AdminApi.d.ts +26 -1
- package/dist/apis/AdminApi.js +79 -0
- package/dist/esm/apis/AdminApi.d.ts +26 -1
- package/dist/esm/apis/AdminApi.js +80 -1
- package/dist/esm/models/VersionHistory.d.ts +49 -0
- package/dist/esm/models/VersionHistory.js +51 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/VersionHistory.d.ts +49 -0
- package/dist/models/VersionHistory.js +58 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +102 -0
- package/src/models/VersionHistory.ts +92 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -666,6 +666,7 @@ src/models/UserWriteStage.ts
|
|
|
666
666
|
src/models/UserWriteStageRequest.ts
|
|
667
667
|
src/models/ValidationError.ts
|
|
668
668
|
src/models/Version.ts
|
|
669
|
+
src/models/VersionHistory.ts
|
|
669
670
|
src/models/WebAuthnDevice.ts
|
|
670
671
|
src/models/WebAuthnDeviceRequest.ts
|
|
671
672
|
src/models/WebAuthnDeviceType.ts
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,13 +10,22 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { App, LoginMetrics, PatchedSettingsRequest, Settings, SettingsRequest, SystemInfo, Version, Workers } from '../models';
|
|
13
|
+
import type { App, LoginMetrics, PatchedSettingsRequest, Settings, SettingsRequest, SystemInfo, Version, VersionHistory, Workers } from '../models';
|
|
14
14
|
export interface AdminSettingsPartialUpdateRequest {
|
|
15
15
|
patchedSettingsRequest?: PatchedSettingsRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface AdminSettingsUpdateRequest {
|
|
18
18
|
settingsRequest?: SettingsRequest;
|
|
19
19
|
}
|
|
20
|
+
export interface AdminVersionHistoryListRequest {
|
|
21
|
+
build?: string;
|
|
22
|
+
ordering?: string;
|
|
23
|
+
search?: string;
|
|
24
|
+
version?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AdminVersionHistoryRetrieveRequest {
|
|
27
|
+
id: number;
|
|
28
|
+
}
|
|
20
29
|
/**
|
|
21
30
|
*
|
|
22
31
|
*/
|
|
@@ -85,6 +94,22 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
85
94
|
* Get system information.
|
|
86
95
|
*/
|
|
87
96
|
adminSystemRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo>;
|
|
97
|
+
/**
|
|
98
|
+
* VersionHistory Viewset
|
|
99
|
+
*/
|
|
100
|
+
adminVersionHistoryListRaw(requestParameters: AdminVersionHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<VersionHistory>>>;
|
|
101
|
+
/**
|
|
102
|
+
* VersionHistory Viewset
|
|
103
|
+
*/
|
|
104
|
+
adminVersionHistoryList(requestParameters?: AdminVersionHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<VersionHistory>>;
|
|
105
|
+
/**
|
|
106
|
+
* VersionHistory Viewset
|
|
107
|
+
*/
|
|
108
|
+
adminVersionHistoryRetrieveRaw(requestParameters: AdminVersionHistoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionHistory>>;
|
|
109
|
+
/**
|
|
110
|
+
* VersionHistory Viewset
|
|
111
|
+
*/
|
|
112
|
+
adminVersionHistoryRetrieve(requestParameters: AdminVersionHistoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionHistory>;
|
|
88
113
|
/**
|
|
89
114
|
* Get running and latest version.
|
|
90
115
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -289,6 +289,85 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
289
289
|
return yield response.value();
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* VersionHistory Viewset
|
|
294
|
+
*/
|
|
295
|
+
adminVersionHistoryListRaw(requestParameters, initOverrides) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
const queryParameters = {};
|
|
298
|
+
if (requestParameters.build !== undefined) {
|
|
299
|
+
queryParameters['build'] = requestParameters.build;
|
|
300
|
+
}
|
|
301
|
+
if (requestParameters.ordering !== undefined) {
|
|
302
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
303
|
+
}
|
|
304
|
+
if (requestParameters.search !== undefined) {
|
|
305
|
+
queryParameters['search'] = requestParameters.search;
|
|
306
|
+
}
|
|
307
|
+
if (requestParameters.version !== undefined) {
|
|
308
|
+
queryParameters['version'] = requestParameters.version;
|
|
309
|
+
}
|
|
310
|
+
const headerParameters = {};
|
|
311
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
312
|
+
const token = this.configuration.accessToken;
|
|
313
|
+
const tokenString = yield token("authentik", []);
|
|
314
|
+
if (tokenString) {
|
|
315
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
const response = yield this.request({
|
|
319
|
+
path: `/admin/version/history/`,
|
|
320
|
+
method: 'GET',
|
|
321
|
+
headers: headerParameters,
|
|
322
|
+
query: queryParameters,
|
|
323
|
+
}, initOverrides);
|
|
324
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.VersionHistoryFromJSON));
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* VersionHistory Viewset
|
|
329
|
+
*/
|
|
330
|
+
adminVersionHistoryList(requestParameters = {}, initOverrides) {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
const response = yield this.adminVersionHistoryListRaw(requestParameters, initOverrides);
|
|
333
|
+
return yield response.value();
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* VersionHistory Viewset
|
|
338
|
+
*/
|
|
339
|
+
adminVersionHistoryRetrieveRaw(requestParameters, initOverrides) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
342
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling adminVersionHistoryRetrieve.');
|
|
343
|
+
}
|
|
344
|
+
const queryParameters = {};
|
|
345
|
+
const headerParameters = {};
|
|
346
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
347
|
+
const token = this.configuration.accessToken;
|
|
348
|
+
const tokenString = yield token("authentik", []);
|
|
349
|
+
if (tokenString) {
|
|
350
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
const response = yield this.request({
|
|
354
|
+
path: `/admin/version/history/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
355
|
+
method: 'GET',
|
|
356
|
+
headers: headerParameters,
|
|
357
|
+
query: queryParameters,
|
|
358
|
+
}, initOverrides);
|
|
359
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.VersionHistoryFromJSON)(jsonValue));
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* VersionHistory Viewset
|
|
364
|
+
*/
|
|
365
|
+
adminVersionHistoryRetrieve(requestParameters, initOverrides) {
|
|
366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
const response = yield this.adminVersionHistoryRetrieveRaw(requestParameters, initOverrides);
|
|
368
|
+
return yield response.value();
|
|
369
|
+
});
|
|
370
|
+
}
|
|
292
371
|
/**
|
|
293
372
|
* Get running and latest version.
|
|
294
373
|
*/
|
|
@@ -10,13 +10,22 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { App, LoginMetrics, PatchedSettingsRequest, Settings, SettingsRequest, SystemInfo, Version, Workers } from '../models';
|
|
13
|
+
import type { App, LoginMetrics, PatchedSettingsRequest, Settings, SettingsRequest, SystemInfo, Version, VersionHistory, Workers } from '../models';
|
|
14
14
|
export interface AdminSettingsPartialUpdateRequest {
|
|
15
15
|
patchedSettingsRequest?: PatchedSettingsRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface AdminSettingsUpdateRequest {
|
|
18
18
|
settingsRequest?: SettingsRequest;
|
|
19
19
|
}
|
|
20
|
+
export interface AdminVersionHistoryListRequest {
|
|
21
|
+
build?: string;
|
|
22
|
+
ordering?: string;
|
|
23
|
+
search?: string;
|
|
24
|
+
version?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AdminVersionHistoryRetrieveRequest {
|
|
27
|
+
id: number;
|
|
28
|
+
}
|
|
20
29
|
/**
|
|
21
30
|
*
|
|
22
31
|
*/
|
|
@@ -85,6 +94,22 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
85
94
|
* Get system information.
|
|
86
95
|
*/
|
|
87
96
|
adminSystemRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo>;
|
|
97
|
+
/**
|
|
98
|
+
* VersionHistory Viewset
|
|
99
|
+
*/
|
|
100
|
+
adminVersionHistoryListRaw(requestParameters: AdminVersionHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<VersionHistory>>>;
|
|
101
|
+
/**
|
|
102
|
+
* VersionHistory Viewset
|
|
103
|
+
*/
|
|
104
|
+
adminVersionHistoryList(requestParameters?: AdminVersionHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<VersionHistory>>;
|
|
105
|
+
/**
|
|
106
|
+
* VersionHistory Viewset
|
|
107
|
+
*/
|
|
108
|
+
adminVersionHistoryRetrieveRaw(requestParameters: AdminVersionHistoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionHistory>>;
|
|
109
|
+
/**
|
|
110
|
+
* VersionHistory Viewset
|
|
111
|
+
*/
|
|
112
|
+
adminVersionHistoryRetrieve(requestParameters: AdminVersionHistoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionHistory>;
|
|
88
113
|
/**
|
|
89
114
|
* Get running and latest version.
|
|
90
115
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { AppFromJSON, LoginMetricsFromJSON, PatchedSettingsRequestToJSON, SettingsFromJSON, SettingsRequestToJSON, SystemInfoFromJSON, VersionFromJSON, WorkersFromJSON, } from '../models';
|
|
24
|
+
import { AppFromJSON, LoginMetricsFromJSON, PatchedSettingsRequestToJSON, SettingsFromJSON, SettingsRequestToJSON, SystemInfoFromJSON, VersionFromJSON, VersionHistoryFromJSON, WorkersFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -286,6 +286,85 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
286
286
|
return yield response.value();
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* VersionHistory Viewset
|
|
291
|
+
*/
|
|
292
|
+
adminVersionHistoryListRaw(requestParameters, initOverrides) {
|
|
293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
const queryParameters = {};
|
|
295
|
+
if (requestParameters.build !== undefined) {
|
|
296
|
+
queryParameters['build'] = requestParameters.build;
|
|
297
|
+
}
|
|
298
|
+
if (requestParameters.ordering !== undefined) {
|
|
299
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
300
|
+
}
|
|
301
|
+
if (requestParameters.search !== undefined) {
|
|
302
|
+
queryParameters['search'] = requestParameters.search;
|
|
303
|
+
}
|
|
304
|
+
if (requestParameters.version !== undefined) {
|
|
305
|
+
queryParameters['version'] = requestParameters.version;
|
|
306
|
+
}
|
|
307
|
+
const headerParameters = {};
|
|
308
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
309
|
+
const token = this.configuration.accessToken;
|
|
310
|
+
const tokenString = yield token("authentik", []);
|
|
311
|
+
if (tokenString) {
|
|
312
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
const response = yield this.request({
|
|
316
|
+
path: `/admin/version/history/`,
|
|
317
|
+
method: 'GET',
|
|
318
|
+
headers: headerParameters,
|
|
319
|
+
query: queryParameters,
|
|
320
|
+
}, initOverrides);
|
|
321
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(VersionHistoryFromJSON));
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* VersionHistory Viewset
|
|
326
|
+
*/
|
|
327
|
+
adminVersionHistoryList(requestParameters = {}, initOverrides) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
const response = yield this.adminVersionHistoryListRaw(requestParameters, initOverrides);
|
|
330
|
+
return yield response.value();
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* VersionHistory Viewset
|
|
335
|
+
*/
|
|
336
|
+
adminVersionHistoryRetrieveRaw(requestParameters, initOverrides) {
|
|
337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
338
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
339
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling adminVersionHistoryRetrieve.');
|
|
340
|
+
}
|
|
341
|
+
const queryParameters = {};
|
|
342
|
+
const headerParameters = {};
|
|
343
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
344
|
+
const token = this.configuration.accessToken;
|
|
345
|
+
const tokenString = yield token("authentik", []);
|
|
346
|
+
if (tokenString) {
|
|
347
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
const response = yield this.request({
|
|
351
|
+
path: `/admin/version/history/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
352
|
+
method: 'GET',
|
|
353
|
+
headers: headerParameters,
|
|
354
|
+
query: queryParameters,
|
|
355
|
+
}, initOverrides);
|
|
356
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VersionHistoryFromJSON(jsonValue));
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* VersionHistory Viewset
|
|
361
|
+
*/
|
|
362
|
+
adminVersionHistoryRetrieve(requestParameters, initOverrides) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
const response = yield this.adminVersionHistoryRetrieveRaw(requestParameters, initOverrides);
|
|
365
|
+
return yield response.value();
|
|
366
|
+
});
|
|
367
|
+
}
|
|
289
368
|
/**
|
|
290
369
|
* Get running and latest version.
|
|
291
370
|
*/
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.8.3
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* VersionHistory Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VersionHistory
|
|
16
|
+
*/
|
|
17
|
+
export interface VersionHistory {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof VersionHistory
|
|
22
|
+
*/
|
|
23
|
+
readonly id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof VersionHistory
|
|
28
|
+
*/
|
|
29
|
+
timestamp: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VersionHistory
|
|
34
|
+
*/
|
|
35
|
+
version: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VersionHistory
|
|
40
|
+
*/
|
|
41
|
+
build: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the VersionHistory interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfVersionHistory(value: object): boolean;
|
|
47
|
+
export declare function VersionHistoryFromJSON(json: any): VersionHistory;
|
|
48
|
+
export declare function VersionHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionHistory;
|
|
49
|
+
export declare function VersionHistoryToJSON(value?: VersionHistory | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.8.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VersionHistory interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVersionHistory(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "id" in value;
|
|
20
|
+
isInstance = isInstance && "timestamp" in value;
|
|
21
|
+
isInstance = isInstance && "version" in value;
|
|
22
|
+
isInstance = isInstance && "build" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
export function VersionHistoryFromJSON(json) {
|
|
26
|
+
return VersionHistoryFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function VersionHistoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'id': json['id'],
|
|
34
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
35
|
+
'version': json['version'],
|
|
36
|
+
'build': json['build'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function VersionHistoryToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'timestamp': (value.timestamp.toISOString()),
|
|
48
|
+
'version': value.version,
|
|
49
|
+
'build': value.build,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -639,6 +639,7 @@ export * from './UserWriteStage';
|
|
|
639
639
|
export * from './UserWriteStageRequest';
|
|
640
640
|
export * from './ValidationError';
|
|
641
641
|
export * from './Version';
|
|
642
|
+
export * from './VersionHistory';
|
|
642
643
|
export * from './WebAuthnDevice';
|
|
643
644
|
export * from './WebAuthnDeviceRequest';
|
|
644
645
|
export * from './WebAuthnDeviceType';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -641,6 +641,7 @@ export * from './UserWriteStage';
|
|
|
641
641
|
export * from './UserWriteStageRequest';
|
|
642
642
|
export * from './ValidationError';
|
|
643
643
|
export * from './Version';
|
|
644
|
+
export * from './VersionHistory';
|
|
644
645
|
export * from './WebAuthnDevice';
|
|
645
646
|
export * from './WebAuthnDeviceRequest';
|
|
646
647
|
export * from './WebAuthnDeviceType';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.8.3
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* VersionHistory Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VersionHistory
|
|
16
|
+
*/
|
|
17
|
+
export interface VersionHistory {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof VersionHistory
|
|
22
|
+
*/
|
|
23
|
+
readonly id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof VersionHistory
|
|
28
|
+
*/
|
|
29
|
+
timestamp: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VersionHistory
|
|
34
|
+
*/
|
|
35
|
+
version: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VersionHistory
|
|
40
|
+
*/
|
|
41
|
+
build: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the VersionHistory interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfVersionHistory(value: object): boolean;
|
|
47
|
+
export declare function VersionHistoryFromJSON(json: any): VersionHistory;
|
|
48
|
+
export declare function VersionHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionHistory;
|
|
49
|
+
export declare function VersionHistoryToJSON(value?: VersionHistory | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.8.3
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.VersionHistoryToJSON = exports.VersionHistoryFromJSONTyped = exports.VersionHistoryFromJSON = exports.instanceOfVersionHistory = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the VersionHistory interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfVersionHistory(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "id" in value;
|
|
23
|
+
isInstance = isInstance && "timestamp" in value;
|
|
24
|
+
isInstance = isInstance && "version" in value;
|
|
25
|
+
isInstance = isInstance && "build" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfVersionHistory = instanceOfVersionHistory;
|
|
29
|
+
function VersionHistoryFromJSON(json) {
|
|
30
|
+
return VersionHistoryFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.VersionHistoryFromJSON = VersionHistoryFromJSON;
|
|
33
|
+
function VersionHistoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
40
|
+
'version': json['version'],
|
|
41
|
+
'build': json['build'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.VersionHistoryFromJSONTyped = VersionHistoryFromJSONTyped;
|
|
45
|
+
function VersionHistoryToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'timestamp': (value.timestamp.toISOString()),
|
|
54
|
+
'version': value.version,
|
|
55
|
+
'build': value.build,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.VersionHistoryToJSON = VersionHistoryToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -639,6 +639,7 @@ export * from './UserWriteStage';
|
|
|
639
639
|
export * from './UserWriteStageRequest';
|
|
640
640
|
export * from './ValidationError';
|
|
641
641
|
export * from './Version';
|
|
642
|
+
export * from './VersionHistory';
|
|
642
643
|
export * from './WebAuthnDevice';
|
|
643
644
|
export * from './WebAuthnDeviceRequest';
|
|
644
645
|
export * from './WebAuthnDeviceType';
|
package/dist/models/index.js
CHANGED
|
@@ -657,6 +657,7 @@ __exportStar(require("./UserWriteStage"), exports);
|
|
|
657
657
|
__exportStar(require("./UserWriteStageRequest"), exports);
|
|
658
658
|
__exportStar(require("./ValidationError"), exports);
|
|
659
659
|
__exportStar(require("./Version"), exports);
|
|
660
|
+
__exportStar(require("./VersionHistory"), exports);
|
|
660
661
|
__exportStar(require("./WebAuthnDevice"), exports);
|
|
661
662
|
__exportStar(require("./WebAuthnDeviceRequest"), exports);
|
|
662
663
|
__exportStar(require("./WebAuthnDeviceType"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type {
|
|
|
24
24
|
SystemInfo,
|
|
25
25
|
ValidationError,
|
|
26
26
|
Version,
|
|
27
|
+
VersionHistory,
|
|
27
28
|
Workers,
|
|
28
29
|
} from '../models';
|
|
29
30
|
import {
|
|
@@ -45,6 +46,8 @@ import {
|
|
|
45
46
|
ValidationErrorToJSON,
|
|
46
47
|
VersionFromJSON,
|
|
47
48
|
VersionToJSON,
|
|
49
|
+
VersionHistoryFromJSON,
|
|
50
|
+
VersionHistoryToJSON,
|
|
48
51
|
WorkersFromJSON,
|
|
49
52
|
WorkersToJSON,
|
|
50
53
|
} from '../models';
|
|
@@ -57,6 +60,17 @@ export interface AdminSettingsUpdateRequest {
|
|
|
57
60
|
settingsRequest?: SettingsRequest;
|
|
58
61
|
}
|
|
59
62
|
|
|
63
|
+
export interface AdminVersionHistoryListRequest {
|
|
64
|
+
build?: string;
|
|
65
|
+
ordering?: string;
|
|
66
|
+
search?: string;
|
|
67
|
+
version?: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface AdminVersionHistoryRetrieveRequest {
|
|
71
|
+
id: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
60
74
|
/**
|
|
61
75
|
*
|
|
62
76
|
*/
|
|
@@ -340,6 +354,94 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
340
354
|
return await response.value();
|
|
341
355
|
}
|
|
342
356
|
|
|
357
|
+
/**
|
|
358
|
+
* VersionHistory Viewset
|
|
359
|
+
*/
|
|
360
|
+
async adminVersionHistoryListRaw(requestParameters: AdminVersionHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<VersionHistory>>> {
|
|
361
|
+
const queryParameters: any = {};
|
|
362
|
+
|
|
363
|
+
if (requestParameters.build !== undefined) {
|
|
364
|
+
queryParameters['build'] = requestParameters.build;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
if (requestParameters.ordering !== undefined) {
|
|
368
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
if (requestParameters.search !== undefined) {
|
|
372
|
+
queryParameters['search'] = requestParameters.search;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (requestParameters.version !== undefined) {
|
|
376
|
+
queryParameters['version'] = requestParameters.version;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
380
|
+
|
|
381
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
382
|
+
const token = this.configuration.accessToken;
|
|
383
|
+
const tokenString = await token("authentik", []);
|
|
384
|
+
|
|
385
|
+
if (tokenString) {
|
|
386
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
const response = await this.request({
|
|
390
|
+
path: `/admin/version/history/`,
|
|
391
|
+
method: 'GET',
|
|
392
|
+
headers: headerParameters,
|
|
393
|
+
query: queryParameters,
|
|
394
|
+
}, initOverrides);
|
|
395
|
+
|
|
396
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(VersionHistoryFromJSON));
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* VersionHistory Viewset
|
|
401
|
+
*/
|
|
402
|
+
async adminVersionHistoryList(requestParameters: AdminVersionHistoryListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<VersionHistory>> {
|
|
403
|
+
const response = await this.adminVersionHistoryListRaw(requestParameters, initOverrides);
|
|
404
|
+
return await response.value();
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* VersionHistory Viewset
|
|
409
|
+
*/
|
|
410
|
+
async adminVersionHistoryRetrieveRaw(requestParameters: AdminVersionHistoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionHistory>> {
|
|
411
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
412
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling adminVersionHistoryRetrieve.');
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
const queryParameters: any = {};
|
|
416
|
+
|
|
417
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
418
|
+
|
|
419
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
420
|
+
const token = this.configuration.accessToken;
|
|
421
|
+
const tokenString = await token("authentik", []);
|
|
422
|
+
|
|
423
|
+
if (tokenString) {
|
|
424
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
const response = await this.request({
|
|
428
|
+
path: `/admin/version/history/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
429
|
+
method: 'GET',
|
|
430
|
+
headers: headerParameters,
|
|
431
|
+
query: queryParameters,
|
|
432
|
+
}, initOverrides);
|
|
433
|
+
|
|
434
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VersionHistoryFromJSON(jsonValue));
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* VersionHistory Viewset
|
|
439
|
+
*/
|
|
440
|
+
async adminVersionHistoryRetrieve(requestParameters: AdminVersionHistoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionHistory> {
|
|
441
|
+
const response = await this.adminVersionHistoryRetrieveRaw(requestParameters, initOverrides);
|
|
442
|
+
return await response.value();
|
|
443
|
+
}
|
|
444
|
+
|
|
343
445
|
/**
|
|
344
446
|
* Get running and latest version.
|
|
345
447
|
*/
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.8.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* VersionHistory Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VersionHistory
|
|
20
|
+
*/
|
|
21
|
+
export interface VersionHistory {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof VersionHistory
|
|
26
|
+
*/
|
|
27
|
+
readonly id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof VersionHistory
|
|
32
|
+
*/
|
|
33
|
+
timestamp: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof VersionHistory
|
|
38
|
+
*/
|
|
39
|
+
version: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VersionHistory
|
|
44
|
+
*/
|
|
45
|
+
build: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the VersionHistory interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfVersionHistory(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "id" in value;
|
|
54
|
+
isInstance = isInstance && "timestamp" in value;
|
|
55
|
+
isInstance = isInstance && "version" in value;
|
|
56
|
+
isInstance = isInstance && "build" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function VersionHistoryFromJSON(json: any): VersionHistory {
|
|
62
|
+
return VersionHistoryFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function VersionHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionHistory {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': json['id'],
|
|
72
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
73
|
+
'version': json['version'],
|
|
74
|
+
'build': json['build'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function VersionHistoryToJSON(value?: VersionHistory | null): any {
|
|
79
|
+
if (value === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
if (value === null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'timestamp': (value.timestamp.toISOString()),
|
|
88
|
+
'version': value.version,
|
|
89
|
+
'build': value.build,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -641,6 +641,7 @@ export * from './UserWriteStage';
|
|
|
641
641
|
export * from './UserWriteStageRequest';
|
|
642
642
|
export * from './ValidationError';
|
|
643
643
|
export * from './Version';
|
|
644
|
+
export * from './VersionHistory';
|
|
644
645
|
export * from './WebAuthnDevice';
|
|
645
646
|
export * from './WebAuthnDeviceRequest';
|
|
646
647
|
export * from './WebAuthnDeviceType';
|