@goauthentik/api 2024.8.3-1729166675 → 2024.8.3-1729630021
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +11 -0
- package/dist/apis/AdminApi.d.ts +26 -1
- package/dist/apis/AdminApi.js +79 -0
- package/dist/apis/AuthenticatorsApi.d.ts +110 -1
- package/dist/apis/AuthenticatorsApi.js +347 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/StagesApi.d.ts +85 -1
- package/dist/apis/StagesApi.js +268 -0
- package/dist/esm/apis/AdminApi.d.ts +26 -1
- package/dist/esm/apis/AdminApi.js +80 -1
- package/dist/esm/apis/AuthenticatorsApi.d.ts +110 -1
- package/dist/esm/apis/AuthenticatorsApi.js +348 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/StagesApi.d.ts +85 -1
- package/dist/esm/apis/StagesApi.js +269 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStage.js +64 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.js +54 -0
- package/dist/esm/models/ChallengeTypes.d.ts +3 -0
- package/dist/esm/models/ChallengeTypes.js +5 -0
- package/dist/esm/models/Device.d.ts +2 -2
- package/dist/esm/models/EndpointDevice.d.ts +37 -0
- package/dist/esm/models/EndpointDevice.js +46 -0
- package/dist/esm/models/EndpointDeviceRequest.d.ts +37 -0
- package/dist/esm/models/EndpointDeviceRequest.js +46 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/FrameChallenge.d.ts +65 -0
- package/dist/esm/models/FrameChallenge.js +56 -0
- package/dist/esm/models/FrameChallengeResponseRequest.d.ts +31 -0
- package/dist/esm/models/FrameChallengeResponseRequest.js +43 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
- package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.js +48 -0
- package/dist/esm/models/PaginatedEndpointDeviceList.d.ts +39 -0
- package/dist/esm/models/PaginatedEndpointDeviceList.js +48 -0
- package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +52 -0
- package/dist/esm/models/PatchedEndpointDeviceRequest.d.ts +37 -0
- package/dist/esm/models/PatchedEndpointDeviceRequest.js +45 -0
- package/dist/esm/models/VersionHistory.d.ts +49 -0
- package/dist/esm/models/VersionHistory.js +51 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
- package/dist/models/AuthenticatorEndpointGDTCStage.js +71 -0
- package/dist/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/models/AuthenticatorEndpointGDTCStageRequest.js +61 -0
- package/dist/models/ChallengeTypes.d.ts +3 -0
- package/dist/models/ChallengeTypes.js +5 -0
- package/dist/models/Device.d.ts +2 -2
- package/dist/models/EndpointDevice.d.ts +37 -0
- package/dist/models/EndpointDevice.js +53 -0
- package/dist/models/EndpointDeviceRequest.d.ts +37 -0
- package/dist/models/EndpointDeviceRequest.js +53 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/FrameChallenge.d.ts +65 -0
- package/dist/models/FrameChallenge.js +63 -0
- package/dist/models/FrameChallengeResponseRequest.d.ts +31 -0
- package/dist/models/FrameChallengeResponseRequest.js +50 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
- package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.js +55 -0
- package/dist/models/PaginatedEndpointDeviceList.d.ts +39 -0
- package/dist/models/PaginatedEndpointDeviceList.js +55 -0
- package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +59 -0
- package/dist/models/PatchedEndpointDeviceRequest.d.ts +37 -0
- package/dist/models/PatchedEndpointDeviceRequest.js +52 -0
- package/dist/models/VersionHistory.d.ts +49 -0
- package/dist/models/VersionHistory.js +58 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +102 -0
- package/src/apis/AuthenticatorsApi.ts +444 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/StagesApi.ts +345 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/AuthenticatorEndpointGDTCStage.ts +146 -0
- package/src/models/AuthenticatorEndpointGDTCStageRequest.ts +106 -0
- package/src/models/ChallengeTypes.ts +12 -1
- package/src/models/Device.ts +2 -2
- package/src/models/EndpointDevice.ts +74 -0
- package/src/models/EndpointDeviceRequest.ts +74 -0
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- package/src/models/FrameChallenge.ts +120 -0
- package/src/models/FrameChallengeResponseRequest.ts +65 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedAuthenticatorEndpointGDTCStageList.ts +88 -0
- package/src/models/PaginatedEndpointDeviceList.ts +88 -0
- package/src/models/PatchedAuthenticatorEndpointGDTCStageRequest.ts +104 -0
- package/src/models/PatchedEndpointDeviceRequest.ts +73 -0
- package/src/models/VersionHistory.ts +92 -0
- package/src/models/index.ts +11 -0
@@ -0,0 +1,55 @@
|
|
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.PaginatedEndpointDeviceListToJSON = exports.PaginatedEndpointDeviceListFromJSONTyped = exports.PaginatedEndpointDeviceListFromJSON = exports.instanceOfPaginatedEndpointDeviceList = void 0;
|
17
|
+
const EndpointDevice_1 = require("./EndpointDevice");
|
18
|
+
const Pagination_1 = require("./Pagination");
|
19
|
+
/**
|
20
|
+
* Check if a given object implements the PaginatedEndpointDeviceList interface.
|
21
|
+
*/
|
22
|
+
function instanceOfPaginatedEndpointDeviceList(value) {
|
23
|
+
let isInstance = true;
|
24
|
+
isInstance = isInstance && "pagination" in value;
|
25
|
+
isInstance = isInstance && "results" in value;
|
26
|
+
return isInstance;
|
27
|
+
}
|
28
|
+
exports.instanceOfPaginatedEndpointDeviceList = instanceOfPaginatedEndpointDeviceList;
|
29
|
+
function PaginatedEndpointDeviceListFromJSON(json) {
|
30
|
+
return PaginatedEndpointDeviceListFromJSONTyped(json, false);
|
31
|
+
}
|
32
|
+
exports.PaginatedEndpointDeviceListFromJSON = PaginatedEndpointDeviceListFromJSON;
|
33
|
+
function PaginatedEndpointDeviceListFromJSONTyped(json, ignoreDiscriminator) {
|
34
|
+
if ((json === undefined) || (json === null)) {
|
35
|
+
return json;
|
36
|
+
}
|
37
|
+
return {
|
38
|
+
'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
|
39
|
+
'results': (json['results'].map(EndpointDevice_1.EndpointDeviceFromJSON)),
|
40
|
+
};
|
41
|
+
}
|
42
|
+
exports.PaginatedEndpointDeviceListFromJSONTyped = PaginatedEndpointDeviceListFromJSONTyped;
|
43
|
+
function PaginatedEndpointDeviceListToJSON(value) {
|
44
|
+
if (value === undefined) {
|
45
|
+
return undefined;
|
46
|
+
}
|
47
|
+
if (value === null) {
|
48
|
+
return null;
|
49
|
+
}
|
50
|
+
return {
|
51
|
+
'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
|
52
|
+
'results': (value.results.map(EndpointDevice_1.EndpointDeviceToJSON)),
|
53
|
+
};
|
54
|
+
}
|
55
|
+
exports.PaginatedEndpointDeviceListToJSON = PaginatedEndpointDeviceListToJSON;
|
@@ -0,0 +1,56 @@
|
|
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
|
+
import type { FlowSetRequest } from './FlowSetRequest';
|
13
|
+
/**
|
14
|
+
* AuthenticatorEndpointGDTCStage Serializer
|
15
|
+
* @export
|
16
|
+
* @interface PatchedAuthenticatorEndpointGDTCStageRequest
|
17
|
+
*/
|
18
|
+
export interface PatchedAuthenticatorEndpointGDTCStageRequest {
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @type {string}
|
22
|
+
* @memberof PatchedAuthenticatorEndpointGDTCStageRequest
|
23
|
+
*/
|
24
|
+
name?: string;
|
25
|
+
/**
|
26
|
+
*
|
27
|
+
* @type {Array<FlowSetRequest>}
|
28
|
+
* @memberof PatchedAuthenticatorEndpointGDTCStageRequest
|
29
|
+
*/
|
30
|
+
flowSet?: Array<FlowSetRequest>;
|
31
|
+
/**
|
32
|
+
* Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
|
33
|
+
* @type {string}
|
34
|
+
* @memberof PatchedAuthenticatorEndpointGDTCStageRequest
|
35
|
+
*/
|
36
|
+
configureFlow?: string | null;
|
37
|
+
/**
|
38
|
+
*
|
39
|
+
* @type {string}
|
40
|
+
* @memberof PatchedAuthenticatorEndpointGDTCStageRequest
|
41
|
+
*/
|
42
|
+
friendlyName?: string | null;
|
43
|
+
/**
|
44
|
+
*
|
45
|
+
* @type {any}
|
46
|
+
* @memberof PatchedAuthenticatorEndpointGDTCStageRequest
|
47
|
+
*/
|
48
|
+
credentials?: any | null;
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* Check if a given object implements the PatchedAuthenticatorEndpointGDTCStageRequest interface.
|
52
|
+
*/
|
53
|
+
export declare function instanceOfPatchedAuthenticatorEndpointGDTCStageRequest(value: object): boolean;
|
54
|
+
export declare function PatchedAuthenticatorEndpointGDTCStageRequestFromJSON(json: any): PatchedAuthenticatorEndpointGDTCStageRequest;
|
55
|
+
export declare function PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorEndpointGDTCStageRequest;
|
56
|
+
export declare function PatchedAuthenticatorEndpointGDTCStageRequestToJSON(value?: PatchedAuthenticatorEndpointGDTCStageRequest | null): any;
|
@@ -0,0 +1,59 @@
|
|
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.PatchedAuthenticatorEndpointGDTCStageRequestToJSON = exports.PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped = exports.PatchedAuthenticatorEndpointGDTCStageRequestFromJSON = exports.instanceOfPatchedAuthenticatorEndpointGDTCStageRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
const FlowSetRequest_1 = require("./FlowSetRequest");
|
19
|
+
/**
|
20
|
+
* Check if a given object implements the PatchedAuthenticatorEndpointGDTCStageRequest interface.
|
21
|
+
*/
|
22
|
+
function instanceOfPatchedAuthenticatorEndpointGDTCStageRequest(value) {
|
23
|
+
let isInstance = true;
|
24
|
+
return isInstance;
|
25
|
+
}
|
26
|
+
exports.instanceOfPatchedAuthenticatorEndpointGDTCStageRequest = instanceOfPatchedAuthenticatorEndpointGDTCStageRequest;
|
27
|
+
function PatchedAuthenticatorEndpointGDTCStageRequestFromJSON(json) {
|
28
|
+
return PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, false);
|
29
|
+
}
|
30
|
+
exports.PatchedAuthenticatorEndpointGDTCStageRequestFromJSON = PatchedAuthenticatorEndpointGDTCStageRequestFromJSON;
|
31
|
+
function PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
32
|
+
if ((json === undefined) || (json === null)) {
|
33
|
+
return json;
|
34
|
+
}
|
35
|
+
return {
|
36
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
37
|
+
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
38
|
+
'configureFlow': !(0, runtime_1.exists)(json, 'configure_flow') ? undefined : json['configure_flow'],
|
39
|
+
'friendlyName': !(0, runtime_1.exists)(json, 'friendly_name') ? undefined : json['friendly_name'],
|
40
|
+
'credentials': !(0, runtime_1.exists)(json, 'credentials') ? undefined : json['credentials'],
|
41
|
+
};
|
42
|
+
}
|
43
|
+
exports.PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped = PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped;
|
44
|
+
function PatchedAuthenticatorEndpointGDTCStageRequestToJSON(value) {
|
45
|
+
if (value === undefined) {
|
46
|
+
return undefined;
|
47
|
+
}
|
48
|
+
if (value === null) {
|
49
|
+
return null;
|
50
|
+
}
|
51
|
+
return {
|
52
|
+
'name': value.name,
|
53
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
54
|
+
'configure_flow': value.configureFlow,
|
55
|
+
'friendly_name': value.friendlyName,
|
56
|
+
'credentials': value.credentials,
|
57
|
+
};
|
58
|
+
}
|
59
|
+
exports.PatchedAuthenticatorEndpointGDTCStageRequestToJSON = PatchedAuthenticatorEndpointGDTCStageRequestToJSON;
|
@@ -0,0 +1,37 @@
|
|
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
|
+
* Serializer for Endpoint authenticator devices
|
14
|
+
* @export
|
15
|
+
* @interface PatchedEndpointDeviceRequest
|
16
|
+
*/
|
17
|
+
export interface PatchedEndpointDeviceRequest {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof PatchedEndpointDeviceRequest
|
22
|
+
*/
|
23
|
+
pk?: string;
|
24
|
+
/**
|
25
|
+
* The human-readable name of this device.
|
26
|
+
* @type {string}
|
27
|
+
* @memberof PatchedEndpointDeviceRequest
|
28
|
+
*/
|
29
|
+
name?: string;
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Check if a given object implements the PatchedEndpointDeviceRequest interface.
|
33
|
+
*/
|
34
|
+
export declare function instanceOfPatchedEndpointDeviceRequest(value: object): boolean;
|
35
|
+
export declare function PatchedEndpointDeviceRequestFromJSON(json: any): PatchedEndpointDeviceRequest;
|
36
|
+
export declare function PatchedEndpointDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedEndpointDeviceRequest;
|
37
|
+
export declare function PatchedEndpointDeviceRequestToJSON(value?: PatchedEndpointDeviceRequest | null): any;
|
@@ -0,0 +1,52 @@
|
|
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.PatchedEndpointDeviceRequestToJSON = exports.PatchedEndpointDeviceRequestFromJSONTyped = exports.PatchedEndpointDeviceRequestFromJSON = exports.instanceOfPatchedEndpointDeviceRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the PatchedEndpointDeviceRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfPatchedEndpointDeviceRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
return isInstance;
|
24
|
+
}
|
25
|
+
exports.instanceOfPatchedEndpointDeviceRequest = instanceOfPatchedEndpointDeviceRequest;
|
26
|
+
function PatchedEndpointDeviceRequestFromJSON(json) {
|
27
|
+
return PatchedEndpointDeviceRequestFromJSONTyped(json, false);
|
28
|
+
}
|
29
|
+
exports.PatchedEndpointDeviceRequestFromJSON = PatchedEndpointDeviceRequestFromJSON;
|
30
|
+
function PatchedEndpointDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
31
|
+
if ((json === undefined) || (json === null)) {
|
32
|
+
return json;
|
33
|
+
}
|
34
|
+
return {
|
35
|
+
'pk': !(0, runtime_1.exists)(json, 'pk') ? undefined : json['pk'],
|
36
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
37
|
+
};
|
38
|
+
}
|
39
|
+
exports.PatchedEndpointDeviceRequestFromJSONTyped = PatchedEndpointDeviceRequestFromJSONTyped;
|
40
|
+
function PatchedEndpointDeviceRequestToJSON(value) {
|
41
|
+
if (value === undefined) {
|
42
|
+
return undefined;
|
43
|
+
}
|
44
|
+
if (value === null) {
|
45
|
+
return null;
|
46
|
+
}
|
47
|
+
return {
|
48
|
+
'pk': value.pk,
|
49
|
+
'name': value.name,
|
50
|
+
};
|
51
|
+
}
|
52
|
+
exports.PatchedEndpointDeviceRequestToJSON = PatchedEndpointDeviceRequestToJSON;
|
@@ -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
@@ -23,6 +23,8 @@ export * from './AuthenticatorDuoStage';
|
|
23
23
|
export * from './AuthenticatorDuoStageDeviceImportResponse';
|
24
24
|
export * from './AuthenticatorDuoStageManualDeviceImportRequest';
|
25
25
|
export * from './AuthenticatorDuoStageRequest';
|
26
|
+
export * from './AuthenticatorEndpointGDTCStage';
|
27
|
+
export * from './AuthenticatorEndpointGDTCStageRequest';
|
26
28
|
export * from './AuthenticatorSMSChallenge';
|
27
29
|
export * from './AuthenticatorSMSChallengeResponseRequest';
|
28
30
|
export * from './AuthenticatorSMSStage';
|
@@ -110,6 +112,8 @@ export * from './EmailChallengeResponseRequest';
|
|
110
112
|
export * from './EmailStage';
|
111
113
|
export * from './EmailStageRequest';
|
112
114
|
export * from './Endpoint';
|
115
|
+
export * from './EndpointDevice';
|
116
|
+
export * from './EndpointDeviceRequest';
|
113
117
|
export * from './EndpointRequest';
|
114
118
|
export * from './ErrorDetail';
|
115
119
|
export * from './ErrorReportingConfig';
|
@@ -142,6 +146,8 @@ export * from './FlowSetRequest';
|
|
142
146
|
export * from './FlowStageBinding';
|
143
147
|
export * from './FlowStageBindingRequest';
|
144
148
|
export * from './FooterLink';
|
149
|
+
export * from './FrameChallenge';
|
150
|
+
export * from './FrameChallengeResponseRequest';
|
145
151
|
export * from './GenericError';
|
146
152
|
export * from './GeoIPPolicy';
|
147
153
|
export * from './GeoIPPolicyRequest';
|
@@ -243,6 +249,7 @@ export * from './OutpostTypeEnum';
|
|
243
249
|
export * from './PaginatedApplicationList';
|
244
250
|
export * from './PaginatedAuthenticatedSessionList';
|
245
251
|
export * from './PaginatedAuthenticatorDuoStageList';
|
252
|
+
export * from './PaginatedAuthenticatorEndpointGDTCStageList';
|
246
253
|
export * from './PaginatedAuthenticatorSMSStageList';
|
247
254
|
export * from './PaginatedAuthenticatorStaticStageList';
|
248
255
|
export * from './PaginatedAuthenticatorTOTPStageList';
|
@@ -261,6 +268,7 @@ export * from './PaginatedDummyPolicyList';
|
|
261
268
|
export * from './PaginatedDummyStageList';
|
262
269
|
export * from './PaginatedDuoDeviceList';
|
263
270
|
export * from './PaginatedEmailStageList';
|
271
|
+
export * from './PaginatedEndpointDeviceList';
|
264
272
|
export * from './PaginatedEndpointList';
|
265
273
|
export * from './PaginatedEventList';
|
266
274
|
export * from './PaginatedEventMatcherPolicyList';
|
@@ -371,6 +379,7 @@ export * from './PasswordStage';
|
|
371
379
|
export * from './PasswordStageRequest';
|
372
380
|
export * from './PatchedApplicationRequest';
|
373
381
|
export * from './PatchedAuthenticatorDuoStageRequest';
|
382
|
+
export * from './PatchedAuthenticatorEndpointGDTCStageRequest';
|
374
383
|
export * from './PatchedAuthenticatorSMSStageRequest';
|
375
384
|
export * from './PatchedAuthenticatorStaticStageRequest';
|
376
385
|
export * from './PatchedAuthenticatorTOTPStageRequest';
|
@@ -389,6 +398,7 @@ export * from './PatchedDummyPolicyRequest';
|
|
389
398
|
export * from './PatchedDummyStageRequest';
|
390
399
|
export * from './PatchedDuoDeviceRequest';
|
391
400
|
export * from './PatchedEmailStageRequest';
|
401
|
+
export * from './PatchedEndpointDeviceRequest';
|
392
402
|
export * from './PatchedEndpointRequest';
|
393
403
|
export * from './PatchedEventMatcherPolicyRequest';
|
394
404
|
export * from './PatchedEventRequest';
|
@@ -639,6 +649,7 @@ export * from './UserWriteStage';
|
|
639
649
|
export * from './UserWriteStageRequest';
|
640
650
|
export * from './ValidationError';
|
641
651
|
export * from './Version';
|
652
|
+
export * from './VersionHistory';
|
642
653
|
export * from './WebAuthnDevice';
|
643
654
|
export * from './WebAuthnDeviceRequest';
|
644
655
|
export * from './WebAuthnDeviceType';
|
package/dist/models/index.js
CHANGED
@@ -41,6 +41,8 @@ __exportStar(require("./AuthenticatorDuoStage"), exports);
|
|
41
41
|
__exportStar(require("./AuthenticatorDuoStageDeviceImportResponse"), exports);
|
42
42
|
__exportStar(require("./AuthenticatorDuoStageManualDeviceImportRequest"), exports);
|
43
43
|
__exportStar(require("./AuthenticatorDuoStageRequest"), exports);
|
44
|
+
__exportStar(require("./AuthenticatorEndpointGDTCStage"), exports);
|
45
|
+
__exportStar(require("./AuthenticatorEndpointGDTCStageRequest"), exports);
|
44
46
|
__exportStar(require("./AuthenticatorSMSChallenge"), exports);
|
45
47
|
__exportStar(require("./AuthenticatorSMSChallengeResponseRequest"), exports);
|
46
48
|
__exportStar(require("./AuthenticatorSMSStage"), exports);
|
@@ -128,6 +130,8 @@ __exportStar(require("./EmailChallengeResponseRequest"), exports);
|
|
128
130
|
__exportStar(require("./EmailStage"), exports);
|
129
131
|
__exportStar(require("./EmailStageRequest"), exports);
|
130
132
|
__exportStar(require("./Endpoint"), exports);
|
133
|
+
__exportStar(require("./EndpointDevice"), exports);
|
134
|
+
__exportStar(require("./EndpointDeviceRequest"), exports);
|
131
135
|
__exportStar(require("./EndpointRequest"), exports);
|
132
136
|
__exportStar(require("./ErrorDetail"), exports);
|
133
137
|
__exportStar(require("./ErrorReportingConfig"), exports);
|
@@ -160,6 +164,8 @@ __exportStar(require("./FlowSetRequest"), exports);
|
|
160
164
|
__exportStar(require("./FlowStageBinding"), exports);
|
161
165
|
__exportStar(require("./FlowStageBindingRequest"), exports);
|
162
166
|
__exportStar(require("./FooterLink"), exports);
|
167
|
+
__exportStar(require("./FrameChallenge"), exports);
|
168
|
+
__exportStar(require("./FrameChallengeResponseRequest"), exports);
|
163
169
|
__exportStar(require("./GenericError"), exports);
|
164
170
|
__exportStar(require("./GeoIPPolicy"), exports);
|
165
171
|
__exportStar(require("./GeoIPPolicyRequest"), exports);
|
@@ -261,6 +267,7 @@ __exportStar(require("./OutpostTypeEnum"), exports);
|
|
261
267
|
__exportStar(require("./PaginatedApplicationList"), exports);
|
262
268
|
__exportStar(require("./PaginatedAuthenticatedSessionList"), exports);
|
263
269
|
__exportStar(require("./PaginatedAuthenticatorDuoStageList"), exports);
|
270
|
+
__exportStar(require("./PaginatedAuthenticatorEndpointGDTCStageList"), exports);
|
264
271
|
__exportStar(require("./PaginatedAuthenticatorSMSStageList"), exports);
|
265
272
|
__exportStar(require("./PaginatedAuthenticatorStaticStageList"), exports);
|
266
273
|
__exportStar(require("./PaginatedAuthenticatorTOTPStageList"), exports);
|
@@ -279,6 +286,7 @@ __exportStar(require("./PaginatedDummyPolicyList"), exports);
|
|
279
286
|
__exportStar(require("./PaginatedDummyStageList"), exports);
|
280
287
|
__exportStar(require("./PaginatedDuoDeviceList"), exports);
|
281
288
|
__exportStar(require("./PaginatedEmailStageList"), exports);
|
289
|
+
__exportStar(require("./PaginatedEndpointDeviceList"), exports);
|
282
290
|
__exportStar(require("./PaginatedEndpointList"), exports);
|
283
291
|
__exportStar(require("./PaginatedEventList"), exports);
|
284
292
|
__exportStar(require("./PaginatedEventMatcherPolicyList"), exports);
|
@@ -389,6 +397,7 @@ __exportStar(require("./PasswordStage"), exports);
|
|
389
397
|
__exportStar(require("./PasswordStageRequest"), exports);
|
390
398
|
__exportStar(require("./PatchedApplicationRequest"), exports);
|
391
399
|
__exportStar(require("./PatchedAuthenticatorDuoStageRequest"), exports);
|
400
|
+
__exportStar(require("./PatchedAuthenticatorEndpointGDTCStageRequest"), exports);
|
392
401
|
__exportStar(require("./PatchedAuthenticatorSMSStageRequest"), exports);
|
393
402
|
__exportStar(require("./PatchedAuthenticatorStaticStageRequest"), exports);
|
394
403
|
__exportStar(require("./PatchedAuthenticatorTOTPStageRequest"), exports);
|
@@ -407,6 +416,7 @@ __exportStar(require("./PatchedDummyPolicyRequest"), exports);
|
|
407
416
|
__exportStar(require("./PatchedDummyStageRequest"), exports);
|
408
417
|
__exportStar(require("./PatchedDuoDeviceRequest"), exports);
|
409
418
|
__exportStar(require("./PatchedEmailStageRequest"), exports);
|
419
|
+
__exportStar(require("./PatchedEndpointDeviceRequest"), exports);
|
410
420
|
__exportStar(require("./PatchedEndpointRequest"), exports);
|
411
421
|
__exportStar(require("./PatchedEventMatcherPolicyRequest"), exports);
|
412
422
|
__exportStar(require("./PatchedEventRequest"), exports);
|
@@ -657,6 +667,7 @@ __exportStar(require("./UserWriteStage"), exports);
|
|
657
667
|
__exportStar(require("./UserWriteStageRequest"), exports);
|
658
668
|
__exportStar(require("./ValidationError"), exports);
|
659
669
|
__exportStar(require("./Version"), exports);
|
670
|
+
__exportStar(require("./VersionHistory"), exports);
|
660
671
|
__exportStar(require("./WebAuthnDevice"), exports);
|
661
672
|
__exportStar(require("./WebAuthnDeviceRequest"), exports);
|
662
673
|
__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
|
*/
|