@goauthentik/api 2024.8.3-1729167001 → 2024.8.3-1729699127
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +25 -0
- package/dist/apis/AuthenticatorsApi.d.ts +110 -1
- package/dist/apis/AuthenticatorsApi.js +347 -0
- package/dist/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/apis/PropertymappingsApi.js +271 -0
- package/dist/apis/RbacApi.d.ts +10 -0
- package/dist/apis/RbacApi.js +10 -0
- package/dist/apis/SourcesApi.d.ts +257 -1
- package/dist/apis/SourcesApi.js +841 -28
- package/dist/apis/StagesApi.d.ts +85 -1
- package/dist/apis/StagesApi.js +268 -0
- package/dist/esm/apis/AuthenticatorsApi.d.ts +110 -1
- package/dist/esm/apis/AuthenticatorsApi.js +348 -1
- package/dist/esm/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/esm/apis/PropertymappingsApi.js +272 -1
- package/dist/esm/apis/RbacApi.d.ts +10 -0
- package/dist/esm/apis/RbacApi.js +10 -0
- package/dist/esm/apis/SourcesApi.d.ts +257 -1
- package/dist/esm/apis/SourcesApi.js +842 -29
- package/dist/esm/apis/StagesApi.d.ts +85 -1
- package/dist/esm/apis/StagesApi.js +269 -1
- package/dist/esm/models/AppEnum.d.ts +2 -0
- package/dist/esm/models/AppEnum.js +2 -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/BackendsEnum.d.ts +1 -0
- package/dist/esm/models/BackendsEnum.js +1 -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/GroupKerberosSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupKerberosSourceConnection.js +50 -0
- package/dist/esm/models/KerberosSource.d.ts +198 -0
- package/dist/esm/models/KerberosSource.js +103 -0
- package/dist/esm/models/KerberosSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/KerberosSourcePropertyMapping.js +59 -0
- package/dist/esm/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/KerberosSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/KerberosSourceRequest.d.ts +166 -0
- package/dist/esm/models/KerberosSourceRequest.js +93 -0
- package/dist/esm/models/KerberosSyncStatus.d.ts +38 -0
- package/dist/esm/models/KerberosSyncStatus.js +44 -0
- package/dist/esm/models/ModelEnum.d.ts +5 -0
- package/dist/esm/models/ModelEnum.js +5 -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/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupKerberosSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedKerberosSourceList.d.ts +39 -0
- package/dist/esm/models/PaginatedKerberosSourceList.js +48 -0
- package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.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/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedKerberosSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedKerberosSourceRequest.d.ts +166 -0
- package/dist/esm/models/PatchedKerberosSourceRequest.js +90 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.js +45 -0
- package/dist/esm/models/UserKerberosSourceConnection.d.ts +56 -0
- package/dist/esm/models/UserKerberosSourceConnection.js +53 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.js +46 -0
- package/dist/esm/models/index.d.ts +25 -0
- package/dist/esm/models/index.js +25 -0
- package/dist/models/AppEnum.d.ts +2 -0
- package/dist/models/AppEnum.js +2 -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/BackendsEnum.d.ts +1 -0
- package/dist/models/BackendsEnum.js +1 -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/GroupKerberosSourceConnection.d.ts +56 -0
- package/dist/models/GroupKerberosSourceConnection.js +57 -0
- package/dist/models/KerberosSource.d.ts +198 -0
- package/dist/models/KerberosSource.js +110 -0
- package/dist/models/KerberosSourcePropertyMapping.d.ts +73 -0
- package/dist/models/KerberosSourcePropertyMapping.js +66 -0
- package/dist/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/KerberosSourcePropertyMappingRequest.js +56 -0
- package/dist/models/KerberosSourceRequest.d.ts +166 -0
- package/dist/models/KerberosSourceRequest.js +100 -0
- package/dist/models/KerberosSyncStatus.d.ts +38 -0
- package/dist/models/KerberosSyncStatus.js +51 -0
- package/dist/models/ModelEnum.d.ts +5 -0
- package/dist/models/ModelEnum.js +5 -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/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupKerberosSourceConnectionList.js +55 -0
- package/dist/models/PaginatedKerberosSourceList.d.ts +39 -0
- package/dist/models/PaginatedKerberosSourceList.js +55 -0
- package/dist/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedKerberosSourcePropertyMappingList.js +55 -0
- package/dist/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedUserKerberosSourceConnectionList.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/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedKerberosSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedKerberosSourceRequest.d.ts +166 -0
- package/dist/models/PatchedKerberosSourceRequest.js +97 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.js +52 -0
- package/dist/models/UserKerberosSourceConnection.d.ts +56 -0
- package/dist/models/UserKerberosSourceConnection.js +60 -0
- package/dist/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/models/UserKerberosSourceConnectionRequest.js +53 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +25 -0
- package/package.json +1 -1
- package/src/apis/AuthenticatorsApi.ts +444 -0
- package/src/apis/PropertymappingsApi.ts +350 -0
- package/src/apis/RbacApi.ts +10 -0
- package/src/apis/SourcesApi.ts +1200 -153
- package/src/apis/StagesApi.ts +345 -0
- package/src/models/AppEnum.ts +2 -0
- package/src/models/AuthenticatorEndpointGDTCStage.ts +146 -0
- package/src/models/AuthenticatorEndpointGDTCStageRequest.ts +106 -0
- package/src/models/BackendsEnum.ts +1 -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/GroupKerberosSourceConnection.ts +104 -0
- package/src/models/KerberosSource.ts +303 -0
- package/src/models/KerberosSourcePropertyMapping.ts +123 -0
- package/src/models/KerberosSourcePropertyMappingRequest.ts +83 -0
- package/src/models/KerberosSourceRequest.ts +263 -0
- package/src/models/KerberosSyncStatus.ts +80 -0
- package/src/models/ModelEnum.ts +5 -0
- package/src/models/PaginatedAuthenticatorEndpointGDTCStageList.ts +88 -0
- package/src/models/PaginatedEndpointDeviceList.ts +88 -0
- package/src/models/PaginatedGroupKerberosSourceConnectionList.ts +88 -0
- package/src/models/PaginatedKerberosSourceList.ts +88 -0
- package/src/models/PaginatedKerberosSourcePropertyMappingList.ts +88 -0
- package/src/models/PaginatedUserKerberosSourceConnectionList.ts +88 -0
- package/src/models/PatchedAuthenticatorEndpointGDTCStageRequest.ts +104 -0
- package/src/models/PatchedEndpointDeviceRequest.ts +73 -0
- package/src/models/PatchedKerberosSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedKerberosSourceRequest.ts +260 -0
- package/src/models/PatchedUserKerberosSourceConnectionRequest.ts +73 -0
- package/src/models/UserKerberosSourceConnection.ts +106 -0
- package/src/models/UserKerberosSourceConnectionRequest.ts +75 -0
- package/src/models/index.ts +25 -0
@@ -0,0 +1,71 @@
|
|
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.AuthenticatorEndpointGDTCStageToJSON = exports.AuthenticatorEndpointGDTCStageFromJSONTyped = exports.AuthenticatorEndpointGDTCStageFromJSON = exports.instanceOfAuthenticatorEndpointGDTCStage = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
const FlowSet_1 = require("./FlowSet");
|
19
|
+
/**
|
20
|
+
* Check if a given object implements the AuthenticatorEndpointGDTCStage interface.
|
21
|
+
*/
|
22
|
+
function instanceOfAuthenticatorEndpointGDTCStage(value) {
|
23
|
+
let isInstance = true;
|
24
|
+
isInstance = isInstance && "pk" in value;
|
25
|
+
isInstance = isInstance && "name" in value;
|
26
|
+
isInstance = isInstance && "component" in value;
|
27
|
+
isInstance = isInstance && "verboseName" in value;
|
28
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
29
|
+
isInstance = isInstance && "metaModelName" in value;
|
30
|
+
isInstance = isInstance && "credentials" in value;
|
31
|
+
return isInstance;
|
32
|
+
}
|
33
|
+
exports.instanceOfAuthenticatorEndpointGDTCStage = instanceOfAuthenticatorEndpointGDTCStage;
|
34
|
+
function AuthenticatorEndpointGDTCStageFromJSON(json) {
|
35
|
+
return AuthenticatorEndpointGDTCStageFromJSONTyped(json, false);
|
36
|
+
}
|
37
|
+
exports.AuthenticatorEndpointGDTCStageFromJSON = AuthenticatorEndpointGDTCStageFromJSON;
|
38
|
+
function AuthenticatorEndpointGDTCStageFromJSONTyped(json, ignoreDiscriminator) {
|
39
|
+
if ((json === undefined) || (json === null)) {
|
40
|
+
return json;
|
41
|
+
}
|
42
|
+
return {
|
43
|
+
'pk': json['pk'],
|
44
|
+
'name': json['name'],
|
45
|
+
'component': json['component'],
|
46
|
+
'verboseName': json['verbose_name'],
|
47
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
48
|
+
'metaModelName': json['meta_model_name'],
|
49
|
+
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
|
50
|
+
'configureFlow': !(0, runtime_1.exists)(json, 'configure_flow') ? undefined : json['configure_flow'],
|
51
|
+
'friendlyName': !(0, runtime_1.exists)(json, 'friendly_name') ? undefined : json['friendly_name'],
|
52
|
+
'credentials': json['credentials'],
|
53
|
+
};
|
54
|
+
}
|
55
|
+
exports.AuthenticatorEndpointGDTCStageFromJSONTyped = AuthenticatorEndpointGDTCStageFromJSONTyped;
|
56
|
+
function AuthenticatorEndpointGDTCStageToJSON(value) {
|
57
|
+
if (value === undefined) {
|
58
|
+
return undefined;
|
59
|
+
}
|
60
|
+
if (value === null) {
|
61
|
+
return null;
|
62
|
+
}
|
63
|
+
return {
|
64
|
+
'name': value.name,
|
65
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSet_1.FlowSetToJSON)),
|
66
|
+
'configure_flow': value.configureFlow,
|
67
|
+
'friendly_name': value.friendlyName,
|
68
|
+
'credentials': value.credentials,
|
69
|
+
};
|
70
|
+
}
|
71
|
+
exports.AuthenticatorEndpointGDTCStageToJSON = AuthenticatorEndpointGDTCStageToJSON;
|
@@ -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 AuthenticatorEndpointGDTCStageRequest
|
17
|
+
*/
|
18
|
+
export interface AuthenticatorEndpointGDTCStageRequest {
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @type {string}
|
22
|
+
* @memberof AuthenticatorEndpointGDTCStageRequest
|
23
|
+
*/
|
24
|
+
name: string;
|
25
|
+
/**
|
26
|
+
*
|
27
|
+
* @type {Array<FlowSetRequest>}
|
28
|
+
* @memberof AuthenticatorEndpointGDTCStageRequest
|
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 AuthenticatorEndpointGDTCStageRequest
|
35
|
+
*/
|
36
|
+
configureFlow?: string | null;
|
37
|
+
/**
|
38
|
+
*
|
39
|
+
* @type {string}
|
40
|
+
* @memberof AuthenticatorEndpointGDTCStageRequest
|
41
|
+
*/
|
42
|
+
friendlyName?: string | null;
|
43
|
+
/**
|
44
|
+
*
|
45
|
+
* @type {any}
|
46
|
+
* @memberof AuthenticatorEndpointGDTCStageRequest
|
47
|
+
*/
|
48
|
+
credentials: any | null;
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* Check if a given object implements the AuthenticatorEndpointGDTCStageRequest interface.
|
52
|
+
*/
|
53
|
+
export declare function instanceOfAuthenticatorEndpointGDTCStageRequest(value: object): boolean;
|
54
|
+
export declare function AuthenticatorEndpointGDTCStageRequestFromJSON(json: any): AuthenticatorEndpointGDTCStageRequest;
|
55
|
+
export declare function AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEndpointGDTCStageRequest;
|
56
|
+
export declare function AuthenticatorEndpointGDTCStageRequestToJSON(value?: AuthenticatorEndpointGDTCStageRequest | null): any;
|
@@ -0,0 +1,61 @@
|
|
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.AuthenticatorEndpointGDTCStageRequestToJSON = exports.AuthenticatorEndpointGDTCStageRequestFromJSONTyped = exports.AuthenticatorEndpointGDTCStageRequestFromJSON = exports.instanceOfAuthenticatorEndpointGDTCStageRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
const FlowSetRequest_1 = require("./FlowSetRequest");
|
19
|
+
/**
|
20
|
+
* Check if a given object implements the AuthenticatorEndpointGDTCStageRequest interface.
|
21
|
+
*/
|
22
|
+
function instanceOfAuthenticatorEndpointGDTCStageRequest(value) {
|
23
|
+
let isInstance = true;
|
24
|
+
isInstance = isInstance && "name" in value;
|
25
|
+
isInstance = isInstance && "credentials" in value;
|
26
|
+
return isInstance;
|
27
|
+
}
|
28
|
+
exports.instanceOfAuthenticatorEndpointGDTCStageRequest = instanceOfAuthenticatorEndpointGDTCStageRequest;
|
29
|
+
function AuthenticatorEndpointGDTCStageRequestFromJSON(json) {
|
30
|
+
return AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, false);
|
31
|
+
}
|
32
|
+
exports.AuthenticatorEndpointGDTCStageRequestFromJSON = AuthenticatorEndpointGDTCStageRequestFromJSON;
|
33
|
+
function AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
34
|
+
if ((json === undefined) || (json === null)) {
|
35
|
+
return json;
|
36
|
+
}
|
37
|
+
return {
|
38
|
+
'name': json['name'],
|
39
|
+
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
40
|
+
'configureFlow': !(0, runtime_1.exists)(json, 'configure_flow') ? undefined : json['configure_flow'],
|
41
|
+
'friendlyName': !(0, runtime_1.exists)(json, 'friendly_name') ? undefined : json['friendly_name'],
|
42
|
+
'credentials': json['credentials'],
|
43
|
+
};
|
44
|
+
}
|
45
|
+
exports.AuthenticatorEndpointGDTCStageRequestFromJSONTyped = AuthenticatorEndpointGDTCStageRequestFromJSONTyped;
|
46
|
+
function AuthenticatorEndpointGDTCStageRequestToJSON(value) {
|
47
|
+
if (value === undefined) {
|
48
|
+
return undefined;
|
49
|
+
}
|
50
|
+
if (value === null) {
|
51
|
+
return null;
|
52
|
+
}
|
53
|
+
return {
|
54
|
+
'name': value.name,
|
55
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
56
|
+
'configure_flow': value.configureFlow,
|
57
|
+
'friendly_name': value.friendlyName,
|
58
|
+
'credentials': value.credentials,
|
59
|
+
};
|
60
|
+
}
|
61
|
+
exports.AuthenticatorEndpointGDTCStageRequestToJSON = AuthenticatorEndpointGDTCStageRequestToJSON;
|
@@ -17,6 +17,7 @@ export declare const BackendsEnum: {
|
|
17
17
|
readonly CoreAuthInbuiltBackend: "authentik.core.auth.InbuiltBackend";
|
18
18
|
readonly CoreAuthTokenBackend: "authentik.core.auth.TokenBackend";
|
19
19
|
readonly SourcesLdapAuthLdapBackend: "authentik.sources.ldap.auth.LDAPBackend";
|
20
|
+
readonly SourcesKerberosAuthKerberosBackend: "authentik.sources.kerberos.auth.KerberosBackend";
|
20
21
|
readonly UnknownDefaultOpenApi: "11184809";
|
21
22
|
};
|
22
23
|
export type BackendsEnum = typeof BackendsEnum[keyof typeof BackendsEnum];
|
@@ -22,6 +22,7 @@ exports.BackendsEnum = {
|
|
22
22
|
CoreAuthInbuiltBackend: 'authentik.core.auth.InbuiltBackend',
|
23
23
|
CoreAuthTokenBackend: 'authentik.core.auth.TokenBackend',
|
24
24
|
SourcesLdapAuthLdapBackend: 'authentik.sources.ldap.auth.LDAPBackend',
|
25
|
+
SourcesKerberosAuthKerberosBackend: 'authentik.sources.kerberos.auth.KerberosBackend',
|
25
26
|
UnknownDefaultOpenApi: '11184809'
|
26
27
|
};
|
27
28
|
function BackendsEnumFromJSON(json) {
|
@@ -23,6 +23,7 @@ import { ConsentChallenge } from './ConsentChallenge';
|
|
23
23
|
import { DummyChallenge } from './DummyChallenge';
|
24
24
|
import { EmailChallenge } from './EmailChallenge';
|
25
25
|
import { FlowErrorChallenge } from './FlowErrorChallenge';
|
26
|
+
import { FrameChallenge } from './FrameChallenge';
|
26
27
|
import { IdentificationChallenge } from './IdentificationChallenge';
|
27
28
|
import { OAuthDeviceCodeChallenge } from './OAuthDeviceCodeChallenge';
|
28
29
|
import { OAuthDeviceCodeFinishChallenge } from './OAuthDeviceCodeFinishChallenge';
|
@@ -83,6 +84,8 @@ export type ChallengeTypes = {
|
|
83
84
|
} & SessionEndChallenge | {
|
84
85
|
component: 'ak-stage-user-login';
|
85
86
|
} & UserLoginChallenge | {
|
87
|
+
component: 'xak-flow-frame';
|
88
|
+
} & FrameChallenge | {
|
86
89
|
component: 'xak-flow-redirect';
|
87
90
|
} & RedirectChallenge | {
|
88
91
|
component: 'xak-flow-shell';
|
@@ -28,6 +28,7 @@ const ConsentChallenge_1 = require("./ConsentChallenge");
|
|
28
28
|
const DummyChallenge_1 = require("./DummyChallenge");
|
29
29
|
const EmailChallenge_1 = require("./EmailChallenge");
|
30
30
|
const FlowErrorChallenge_1 = require("./FlowErrorChallenge");
|
31
|
+
const FrameChallenge_1 = require("./FrameChallenge");
|
31
32
|
const IdentificationChallenge_1 = require("./IdentificationChallenge");
|
32
33
|
const OAuthDeviceCodeChallenge_1 = require("./OAuthDeviceCodeChallenge");
|
33
34
|
const OAuthDeviceCodeFinishChallenge_1 = require("./OAuthDeviceCodeFinishChallenge");
|
@@ -91,6 +92,8 @@ function ChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
|
|
91
92
|
return Object.assign(Object.assign({}, (0, SessionEndChallenge_1.SessionEndChallengeFromJSONTyped)(json, true)), { component: 'ak-stage-session-end' });
|
92
93
|
case 'ak-stage-user-login':
|
93
94
|
return Object.assign(Object.assign({}, (0, UserLoginChallenge_1.UserLoginChallengeFromJSONTyped)(json, true)), { component: 'ak-stage-user-login' });
|
95
|
+
case 'xak-flow-frame':
|
96
|
+
return Object.assign(Object.assign({}, (0, FrameChallenge_1.FrameChallengeFromJSONTyped)(json, true)), { component: 'xak-flow-frame' });
|
94
97
|
case 'xak-flow-redirect':
|
95
98
|
return Object.assign(Object.assign({}, (0, RedirectChallenge_1.RedirectChallengeFromJSONTyped)(json, true)), { component: 'xak-flow-redirect' });
|
96
99
|
case 'xak-flow-shell':
|
@@ -152,6 +155,8 @@ function ChallengeTypesToJSON(value) {
|
|
152
155
|
return (0, SessionEndChallenge_1.SessionEndChallengeToJSON)(value);
|
153
156
|
case 'ak-stage-user-login':
|
154
157
|
return (0, UserLoginChallenge_1.UserLoginChallengeToJSON)(value);
|
158
|
+
case 'xak-flow-frame':
|
159
|
+
return (0, FrameChallenge_1.FrameChallengeToJSON)(value);
|
155
160
|
case 'xak-flow-redirect':
|
156
161
|
return (0, RedirectChallenge_1.RedirectChallengeToJSON)(value);
|
157
162
|
case 'xak-flow-shell':
|
package/dist/models/Device.d.ts
CHANGED
@@ -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 EndpointDevice
|
16
|
+
*/
|
17
|
+
export interface EndpointDevice {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof EndpointDevice
|
22
|
+
*/
|
23
|
+
pk?: string;
|
24
|
+
/**
|
25
|
+
* The human-readable name of this device.
|
26
|
+
* @type {string}
|
27
|
+
* @memberof EndpointDevice
|
28
|
+
*/
|
29
|
+
name: string;
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Check if a given object implements the EndpointDevice interface.
|
33
|
+
*/
|
34
|
+
export declare function instanceOfEndpointDevice(value: object): boolean;
|
35
|
+
export declare function EndpointDeviceFromJSON(json: any): EndpointDevice;
|
36
|
+
export declare function EndpointDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointDevice;
|
37
|
+
export declare function EndpointDeviceToJSON(value?: EndpointDevice | null): any;
|
@@ -0,0 +1,53 @@
|
|
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.EndpointDeviceToJSON = exports.EndpointDeviceFromJSONTyped = exports.EndpointDeviceFromJSON = exports.instanceOfEndpointDevice = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the EndpointDevice interface.
|
20
|
+
*/
|
21
|
+
function instanceOfEndpointDevice(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "name" in value;
|
24
|
+
return isInstance;
|
25
|
+
}
|
26
|
+
exports.instanceOfEndpointDevice = instanceOfEndpointDevice;
|
27
|
+
function EndpointDeviceFromJSON(json) {
|
28
|
+
return EndpointDeviceFromJSONTyped(json, false);
|
29
|
+
}
|
30
|
+
exports.EndpointDeviceFromJSON = EndpointDeviceFromJSON;
|
31
|
+
function EndpointDeviceFromJSONTyped(json, ignoreDiscriminator) {
|
32
|
+
if ((json === undefined) || (json === null)) {
|
33
|
+
return json;
|
34
|
+
}
|
35
|
+
return {
|
36
|
+
'pk': !(0, runtime_1.exists)(json, 'pk') ? undefined : json['pk'],
|
37
|
+
'name': json['name'],
|
38
|
+
};
|
39
|
+
}
|
40
|
+
exports.EndpointDeviceFromJSONTyped = EndpointDeviceFromJSONTyped;
|
41
|
+
function EndpointDeviceToJSON(value) {
|
42
|
+
if (value === undefined) {
|
43
|
+
return undefined;
|
44
|
+
}
|
45
|
+
if (value === null) {
|
46
|
+
return null;
|
47
|
+
}
|
48
|
+
return {
|
49
|
+
'pk': value.pk,
|
50
|
+
'name': value.name,
|
51
|
+
};
|
52
|
+
}
|
53
|
+
exports.EndpointDeviceToJSON = EndpointDeviceToJSON;
|
@@ -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 EndpointDeviceRequest
|
16
|
+
*/
|
17
|
+
export interface EndpointDeviceRequest {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof EndpointDeviceRequest
|
22
|
+
*/
|
23
|
+
pk?: string;
|
24
|
+
/**
|
25
|
+
* The human-readable name of this device.
|
26
|
+
* @type {string}
|
27
|
+
* @memberof EndpointDeviceRequest
|
28
|
+
*/
|
29
|
+
name: string;
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Check if a given object implements the EndpointDeviceRequest interface.
|
33
|
+
*/
|
34
|
+
export declare function instanceOfEndpointDeviceRequest(value: object): boolean;
|
35
|
+
export declare function EndpointDeviceRequestFromJSON(json: any): EndpointDeviceRequest;
|
36
|
+
export declare function EndpointDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointDeviceRequest;
|
37
|
+
export declare function EndpointDeviceRequestToJSON(value?: EndpointDeviceRequest | null): any;
|
@@ -0,0 +1,53 @@
|
|
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.EndpointDeviceRequestToJSON = exports.EndpointDeviceRequestFromJSONTyped = exports.EndpointDeviceRequestFromJSON = exports.instanceOfEndpointDeviceRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the EndpointDeviceRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfEndpointDeviceRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "name" in value;
|
24
|
+
return isInstance;
|
25
|
+
}
|
26
|
+
exports.instanceOfEndpointDeviceRequest = instanceOfEndpointDeviceRequest;
|
27
|
+
function EndpointDeviceRequestFromJSON(json) {
|
28
|
+
return EndpointDeviceRequestFromJSONTyped(json, false);
|
29
|
+
}
|
30
|
+
exports.EndpointDeviceRequestFromJSON = EndpointDeviceRequestFromJSON;
|
31
|
+
function EndpointDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
32
|
+
if ((json === undefined) || (json === null)) {
|
33
|
+
return json;
|
34
|
+
}
|
35
|
+
return {
|
36
|
+
'pk': !(0, runtime_1.exists)(json, 'pk') ? undefined : json['pk'],
|
37
|
+
'name': json['name'],
|
38
|
+
};
|
39
|
+
}
|
40
|
+
exports.EndpointDeviceRequestFromJSONTyped = EndpointDeviceRequestFromJSONTyped;
|
41
|
+
function EndpointDeviceRequestToJSON(value) {
|
42
|
+
if (value === undefined) {
|
43
|
+
return undefined;
|
44
|
+
}
|
45
|
+
if (value === null) {
|
46
|
+
return null;
|
47
|
+
}
|
48
|
+
return {
|
49
|
+
'pk': value.pk,
|
50
|
+
'name': value.name,
|
51
|
+
};
|
52
|
+
}
|
53
|
+
exports.EndpointDeviceRequestToJSON = EndpointDeviceRequestToJSON;
|
@@ -21,6 +21,7 @@ import { CaptchaChallengeResponseRequest } from './CaptchaChallengeResponseReque
|
|
21
21
|
import { ConsentChallengeResponseRequest } from './ConsentChallengeResponseRequest';
|
22
22
|
import { DummyChallengeResponseRequest } from './DummyChallengeResponseRequest';
|
23
23
|
import { EmailChallengeResponseRequest } from './EmailChallengeResponseRequest';
|
24
|
+
import { FrameChallengeResponseRequest } from './FrameChallengeResponseRequest';
|
24
25
|
import { IdentificationChallengeResponseRequest } from './IdentificationChallengeResponseRequest';
|
25
26
|
import { OAuthDeviceCodeChallengeResponseRequest } from './OAuthDeviceCodeChallengeResponseRequest';
|
26
27
|
import { OAuthDeviceCodeFinishChallengeResponseRequest } from './OAuthDeviceCodeFinishChallengeResponseRequest';
|
@@ -71,7 +72,9 @@ export type FlowChallengeResponseRequest = {
|
|
71
72
|
component: 'ak-stage-prompt';
|
72
73
|
} & PromptChallengeResponseRequest | {
|
73
74
|
component: 'ak-stage-user-login';
|
74
|
-
} & UserLoginChallengeResponseRequest
|
75
|
+
} & UserLoginChallengeResponseRequest | {
|
76
|
+
component: 'xak-flow-frame';
|
77
|
+
} & FrameChallengeResponseRequest;
|
75
78
|
export declare function FlowChallengeResponseRequestFromJSON(json: any): FlowChallengeResponseRequest;
|
76
79
|
export declare function FlowChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowChallengeResponseRequest;
|
77
80
|
export declare function FlowChallengeResponseRequestToJSON(value?: FlowChallengeResponseRequest | null): any;
|
@@ -26,6 +26,7 @@ const CaptchaChallengeResponseRequest_1 = require("./CaptchaChallengeResponseReq
|
|
26
26
|
const ConsentChallengeResponseRequest_1 = require("./ConsentChallengeResponseRequest");
|
27
27
|
const DummyChallengeResponseRequest_1 = require("./DummyChallengeResponseRequest");
|
28
28
|
const EmailChallengeResponseRequest_1 = require("./EmailChallengeResponseRequest");
|
29
|
+
const FrameChallengeResponseRequest_1 = require("./FrameChallengeResponseRequest");
|
29
30
|
const IdentificationChallengeResponseRequest_1 = require("./IdentificationChallengeResponseRequest");
|
30
31
|
const OAuthDeviceCodeChallengeResponseRequest_1 = require("./OAuthDeviceCodeChallengeResponseRequest");
|
31
32
|
const OAuthDeviceCodeFinishChallengeResponseRequest_1 = require("./OAuthDeviceCodeFinishChallengeResponseRequest");
|
@@ -80,6 +81,8 @@ function FlowChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
80
81
|
return Object.assign(Object.assign({}, (0, PromptChallengeResponseRequest_1.PromptChallengeResponseRequestFromJSONTyped)(json, true)), { component: 'ak-stage-prompt' });
|
81
82
|
case 'ak-stage-user-login':
|
82
83
|
return Object.assign(Object.assign({}, (0, UserLoginChallengeResponseRequest_1.UserLoginChallengeResponseRequestFromJSONTyped)(json, true)), { component: 'ak-stage-user-login' });
|
84
|
+
case 'xak-flow-frame':
|
85
|
+
return Object.assign(Object.assign({}, (0, FrameChallengeResponseRequest_1.FrameChallengeResponseRequestFromJSONTyped)(json, true)), { component: 'xak-flow-frame' });
|
83
86
|
default:
|
84
87
|
throw new Error(`No variant of FlowChallengeResponseRequest exists with 'component=${json['component']}'`);
|
85
88
|
}
|
@@ -131,6 +134,8 @@ function FlowChallengeResponseRequestToJSON(value) {
|
|
131
134
|
return (0, PromptChallengeResponseRequest_1.PromptChallengeResponseRequestToJSON)(value);
|
132
135
|
case 'ak-stage-user-login':
|
133
136
|
return (0, UserLoginChallengeResponseRequest_1.UserLoginChallengeResponseRequestToJSON)(value);
|
137
|
+
case 'xak-flow-frame':
|
138
|
+
return (0, FrameChallengeResponseRequest_1.FrameChallengeResponseRequestToJSON)(value);
|
134
139
|
default:
|
135
140
|
throw new Error(`No variant of FlowChallengeResponseRequest exists with 'component=${value['component']}'`);
|
136
141
|
}
|
@@ -0,0 +1,65 @@
|
|
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 { ContextualFlowInfo } from './ContextualFlowInfo';
|
13
|
+
import type { ErrorDetail } from './ErrorDetail';
|
14
|
+
/**
|
15
|
+
* Challenge type to render a frame
|
16
|
+
* @export
|
17
|
+
* @interface FrameChallenge
|
18
|
+
*/
|
19
|
+
export interface FrameChallenge {
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* @type {ContextualFlowInfo}
|
23
|
+
* @memberof FrameChallenge
|
24
|
+
*/
|
25
|
+
flowInfo?: ContextualFlowInfo;
|
26
|
+
/**
|
27
|
+
*
|
28
|
+
* @type {string}
|
29
|
+
* @memberof FrameChallenge
|
30
|
+
*/
|
31
|
+
component?: string;
|
32
|
+
/**
|
33
|
+
*
|
34
|
+
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
35
|
+
* @memberof FrameChallenge
|
36
|
+
*/
|
37
|
+
responseErrors?: {
|
38
|
+
[key: string]: Array<ErrorDetail>;
|
39
|
+
};
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {string}
|
43
|
+
* @memberof FrameChallenge
|
44
|
+
*/
|
45
|
+
url: string;
|
46
|
+
/**
|
47
|
+
*
|
48
|
+
* @type {boolean}
|
49
|
+
* @memberof FrameChallenge
|
50
|
+
*/
|
51
|
+
loadingOverlay?: boolean;
|
52
|
+
/**
|
53
|
+
*
|
54
|
+
* @type {string}
|
55
|
+
* @memberof FrameChallenge
|
56
|
+
*/
|
57
|
+
loadingText: string;
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* Check if a given object implements the FrameChallenge interface.
|
61
|
+
*/
|
62
|
+
export declare function instanceOfFrameChallenge(value: object): boolean;
|
63
|
+
export declare function FrameChallengeFromJSON(json: any): FrameChallenge;
|
64
|
+
export declare function FrameChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrameChallenge;
|
65
|
+
export declare function FrameChallengeToJSON(value?: FrameChallenge | null): any;
|
@@ -0,0 +1,63 @@
|
|
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.FrameChallengeToJSON = exports.FrameChallengeFromJSONTyped = exports.FrameChallengeFromJSON = exports.instanceOfFrameChallenge = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
|
19
|
+
/**
|
20
|
+
* Check if a given object implements the FrameChallenge interface.
|
21
|
+
*/
|
22
|
+
function instanceOfFrameChallenge(value) {
|
23
|
+
let isInstance = true;
|
24
|
+
isInstance = isInstance && "url" in value;
|
25
|
+
isInstance = isInstance && "loadingText" in value;
|
26
|
+
return isInstance;
|
27
|
+
}
|
28
|
+
exports.instanceOfFrameChallenge = instanceOfFrameChallenge;
|
29
|
+
function FrameChallengeFromJSON(json) {
|
30
|
+
return FrameChallengeFromJSONTyped(json, false);
|
31
|
+
}
|
32
|
+
exports.FrameChallengeFromJSON = FrameChallengeFromJSON;
|
33
|
+
function FrameChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
34
|
+
if ((json === undefined) || (json === null)) {
|
35
|
+
return json;
|
36
|
+
}
|
37
|
+
return {
|
38
|
+
'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
39
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
40
|
+
'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
|
41
|
+
'url': json['url'],
|
42
|
+
'loadingOverlay': !(0, runtime_1.exists)(json, 'loading_overlay') ? undefined : json['loading_overlay'],
|
43
|
+
'loadingText': json['loading_text'],
|
44
|
+
};
|
45
|
+
}
|
46
|
+
exports.FrameChallengeFromJSONTyped = FrameChallengeFromJSONTyped;
|
47
|
+
function FrameChallengeToJSON(value) {
|
48
|
+
if (value === undefined) {
|
49
|
+
return undefined;
|
50
|
+
}
|
51
|
+
if (value === null) {
|
52
|
+
return null;
|
53
|
+
}
|
54
|
+
return {
|
55
|
+
'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
|
56
|
+
'component': value.component,
|
57
|
+
'response_errors': value.responseErrors,
|
58
|
+
'url': value.url,
|
59
|
+
'loading_overlay': value.loadingOverlay,
|
60
|
+
'loading_text': value.loadingText,
|
61
|
+
};
|
62
|
+
}
|
63
|
+
exports.FrameChallengeToJSON = FrameChallengeToJSON;
|
@@ -0,0 +1,31 @@
|
|
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
|
+
* Base class for all challenge responses
|
14
|
+
* @export
|
15
|
+
* @interface FrameChallengeResponseRequest
|
16
|
+
*/
|
17
|
+
export interface FrameChallengeResponseRequest {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof FrameChallengeResponseRequest
|
22
|
+
*/
|
23
|
+
component?: string;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* Check if a given object implements the FrameChallengeResponseRequest interface.
|
27
|
+
*/
|
28
|
+
export declare function instanceOfFrameChallengeResponseRequest(value: object): boolean;
|
29
|
+
export declare function FrameChallengeResponseRequestFromJSON(json: any): FrameChallengeResponseRequest;
|
30
|
+
export declare function FrameChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrameChallengeResponseRequest;
|
31
|
+
export declare function FrameChallengeResponseRequestToJSON(value?: FrameChallengeResponseRequest | null): any;
|