@goauthentik/api 2024.12.3-1739449824 → 2024.12.3-1739801838
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 +10 -0
- package/dist/apis/AuthenticatorsApi.d.ts +145 -1
- package/dist/apis/AuthenticatorsApi.js +458 -0
- package/dist/apis/RbacApi.d.ts +4 -0
- package/dist/apis/RbacApi.js +4 -0
- package/dist/apis/StagesApi.d.ts +99 -1
- package/dist/apis/StagesApi.js +310 -0
- package/dist/esm/apis/AuthenticatorsApi.d.ts +145 -1
- package/dist/esm/apis/AuthenticatorsApi.js +459 -1
- package/dist/esm/apis/RbacApi.d.ts +4 -0
- package/dist/esm/apis/RbacApi.js +4 -0
- package/dist/esm/apis/StagesApi.d.ts +99 -1
- package/dist/esm/apis/StagesApi.js +311 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AuthenticatorEmailChallenge.d.ts +72 -0
- package/dist/esm/models/AuthenticatorEmailChallenge.js +58 -0
- package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
- package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.js +45 -0
- package/dist/esm/models/AuthenticatorEmailStage.d.ts +153 -0
- package/dist/esm/models/AuthenticatorEmailStage.js +89 -0
- package/dist/esm/models/AuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/esm/models/AuthenticatorEmailStageRequest.js +74 -0
- package/dist/esm/models/ChallengeTypes.d.ts +3 -0
- package/dist/esm/models/ChallengeTypes.js +5 -0
- package/dist/esm/models/DeviceClassesEnum.d.ts +1 -0
- package/dist/esm/models/DeviceClassesEnum.js +1 -0
- package/dist/esm/models/EmailDevice.d.ts +51 -0
- package/dist/esm/models/EmailDevice.js +53 -0
- package/dist/esm/models/EmailDeviceRequest.d.ts +32 -0
- package/dist/esm/models/EmailDeviceRequest.js +43 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/ModelEnum.d.ts +2 -0
- package/dist/esm/models/ModelEnum.js +2 -0
- package/dist/esm/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
- package/dist/esm/models/PaginatedAuthenticatorEmailStageList.js +49 -0
- package/dist/esm/models/PaginatedEmailDeviceList.d.ts +40 -0
- package/dist/esm/models/PaginatedEmailDeviceList.js +49 -0
- package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.js +72 -0
- package/dist/esm/models/PatchedEmailDeviceRequest.d.ts +32 -0
- package/dist/esm/models/PatchedEmailDeviceRequest.js +41 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
- package/dist/models/AuthenticatorEmailChallenge.js +65 -0
- package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
- package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
- package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
- package/dist/models/AuthenticatorEmailStage.js +96 -0
- package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
- package/dist/models/ChallengeTypes.d.ts +3 -0
- package/dist/models/ChallengeTypes.js +5 -0
- package/dist/models/DeviceClassesEnum.d.ts +1 -0
- package/dist/models/DeviceClassesEnum.js +1 -0
- package/dist/models/EmailDevice.d.ts +51 -0
- package/dist/models/EmailDevice.js +60 -0
- package/dist/models/EmailDeviceRequest.d.ts +32 -0
- package/dist/models/EmailDeviceRequest.js +50 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/ModelEnum.d.ts +2 -0
- package/dist/models/ModelEnum.js +2 -0
- package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
- package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
- package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
- package/dist/models/PaginatedEmailDeviceList.js +56 -0
- package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
- package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
- package/dist/models/PatchedEmailDeviceRequest.js +48 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/AuthenticatorsApi.ts +617 -0
- package/src/apis/RbacApi.ts +4 -0
- package/src/apis/StagesApi.ts +436 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/AuthenticatorEmailChallenge.ts +130 -0
- package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
- package/src/models/AuthenticatorEmailStage.ts +234 -0
- package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
- package/src/models/ChallengeTypes.ts +12 -1
- package/src/models/DeviceClassesEnum.ts +1 -0
- package/src/models/EmailDevice.ts +98 -0
- package/src/models/EmailDeviceRequest.ts +66 -0
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- package/src/models/ModelEnum.ts +2 -0
- package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
- package/src/models/PaginatedEmailDeviceList.ts +90 -0
- package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
- package/src/models/PatchedEmailDeviceRequest.ts +65 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.12.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 { ErrorDetail } from './ErrorDetail';
|
|
13
|
+
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
|
+
/**
|
|
15
|
+
* Authenticator Email Setup challenge
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AuthenticatorEmailChallenge
|
|
18
|
+
*/
|
|
19
|
+
export interface AuthenticatorEmailChallenge {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ContextualFlowInfo}
|
|
23
|
+
* @memberof AuthenticatorEmailChallenge
|
|
24
|
+
*/
|
|
25
|
+
flowInfo?: ContextualFlowInfo;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AuthenticatorEmailChallenge
|
|
30
|
+
*/
|
|
31
|
+
component?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
35
|
+
* @memberof AuthenticatorEmailChallenge
|
|
36
|
+
*/
|
|
37
|
+
responseErrors?: {
|
|
38
|
+
[key: string]: Array<ErrorDetail>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AuthenticatorEmailChallenge
|
|
44
|
+
*/
|
|
45
|
+
pendingUser: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AuthenticatorEmailChallenge
|
|
50
|
+
*/
|
|
51
|
+
pendingUserAvatar: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AuthenticatorEmailChallenge
|
|
56
|
+
*/
|
|
57
|
+
email?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof AuthenticatorEmailChallenge
|
|
62
|
+
*/
|
|
63
|
+
emailRequired?: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the AuthenticatorEmailChallenge interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfAuthenticatorEmailChallenge(value: object): value is AuthenticatorEmailChallenge;
|
|
69
|
+
export declare function AuthenticatorEmailChallengeFromJSON(json: any): AuthenticatorEmailChallenge;
|
|
70
|
+
export declare function AuthenticatorEmailChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailChallenge;
|
|
71
|
+
export declare function AuthenticatorEmailChallengeToJSON(json: any): AuthenticatorEmailChallenge;
|
|
72
|
+
export declare function AuthenticatorEmailChallengeToJSONTyped(value?: AuthenticatorEmailChallenge | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.12.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.instanceOfAuthenticatorEmailChallenge = instanceOfAuthenticatorEmailChallenge;
|
|
17
|
+
exports.AuthenticatorEmailChallengeFromJSON = AuthenticatorEmailChallengeFromJSON;
|
|
18
|
+
exports.AuthenticatorEmailChallengeFromJSONTyped = AuthenticatorEmailChallengeFromJSONTyped;
|
|
19
|
+
exports.AuthenticatorEmailChallengeToJSON = AuthenticatorEmailChallengeToJSON;
|
|
20
|
+
exports.AuthenticatorEmailChallengeToJSONTyped = AuthenticatorEmailChallengeToJSONTyped;
|
|
21
|
+
const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AuthenticatorEmailChallenge interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAuthenticatorEmailChallenge(value) {
|
|
26
|
+
if (!('pendingUser' in value) || value['pendingUser'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AuthenticatorEmailChallengeFromJSON(json) {
|
|
33
|
+
return AuthenticatorEmailChallengeFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AuthenticatorEmailChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'flowInfo': json['flow_info'] == null ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
|
41
|
+
'component': json['component'] == null ? undefined : json['component'],
|
|
42
|
+
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
|
|
43
|
+
'pendingUser': json['pending_user'],
|
|
44
|
+
'pendingUserAvatar': json['pending_user_avatar'],
|
|
45
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
46
|
+
'emailRequired': json['email_required'] == null ? undefined : json['email_required'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AuthenticatorEmailChallengeToJSON(json) {
|
|
50
|
+
return AuthenticatorEmailChallengeToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AuthenticatorEmailChallengeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value['flowInfo']),
|
|
58
|
+
'component': value['component'],
|
|
59
|
+
'response_errors': value['responseErrors'],
|
|
60
|
+
'pending_user': value['pendingUser'],
|
|
61
|
+
'pending_user_avatar': value['pendingUserAvatar'],
|
|
62
|
+
'email': value['email'],
|
|
63
|
+
'email_required': value['emailRequired'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.12.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
|
+
* Authenticator Email Challenge response, device is set by get_response_instance
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticatorEmailChallengeResponseRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticatorEmailChallengeResponseRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthenticatorEmailChallengeResponseRequest
|
|
22
|
+
*/
|
|
23
|
+
component?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AuthenticatorEmailChallengeResponseRequest
|
|
28
|
+
*/
|
|
29
|
+
code?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuthenticatorEmailChallengeResponseRequest
|
|
34
|
+
*/
|
|
35
|
+
email?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AuthenticatorEmailChallengeResponseRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAuthenticatorEmailChallengeResponseRequest(value: object): value is AuthenticatorEmailChallengeResponseRequest;
|
|
41
|
+
export declare function AuthenticatorEmailChallengeResponseRequestFromJSON(json: any): AuthenticatorEmailChallengeResponseRequest;
|
|
42
|
+
export declare function AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailChallengeResponseRequest;
|
|
43
|
+
export declare function AuthenticatorEmailChallengeResponseRequestToJSON(json: any): AuthenticatorEmailChallengeResponseRequest;
|
|
44
|
+
export declare function AuthenticatorEmailChallengeResponseRequestToJSONTyped(value?: AuthenticatorEmailChallengeResponseRequest | null, ignoreDiscriminator?: boolean): 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.12.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.instanceOfAuthenticatorEmailChallengeResponseRequest = instanceOfAuthenticatorEmailChallengeResponseRequest;
|
|
17
|
+
exports.AuthenticatorEmailChallengeResponseRequestFromJSON = AuthenticatorEmailChallengeResponseRequestFromJSON;
|
|
18
|
+
exports.AuthenticatorEmailChallengeResponseRequestFromJSONTyped = AuthenticatorEmailChallengeResponseRequestFromJSONTyped;
|
|
19
|
+
exports.AuthenticatorEmailChallengeResponseRequestToJSON = AuthenticatorEmailChallengeResponseRequestToJSON;
|
|
20
|
+
exports.AuthenticatorEmailChallengeResponseRequestToJSONTyped = AuthenticatorEmailChallengeResponseRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuthenticatorEmailChallengeResponseRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuthenticatorEmailChallengeResponseRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AuthenticatorEmailChallengeResponseRequestFromJSON(json) {
|
|
28
|
+
return AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'component': json['component'] == null ? undefined : json['component'],
|
|
36
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
37
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AuthenticatorEmailChallengeResponseRequestToJSON(json) {
|
|
41
|
+
return AuthenticatorEmailChallengeResponseRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AuthenticatorEmailChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'component': value['component'],
|
|
49
|
+
'code': value['code'],
|
|
50
|
+
'email': value['email'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.12.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 { FlowSet } from './FlowSet';
|
|
13
|
+
/**
|
|
14
|
+
* AuthenticatorEmailStage Serializer
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AuthenticatorEmailStage
|
|
17
|
+
*/
|
|
18
|
+
export interface AuthenticatorEmailStage {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AuthenticatorEmailStage
|
|
23
|
+
*/
|
|
24
|
+
readonly pk: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AuthenticatorEmailStage
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Get object type so that we know how to edit the object
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AuthenticatorEmailStage
|
|
35
|
+
*/
|
|
36
|
+
readonly component: string;
|
|
37
|
+
/**
|
|
38
|
+
* Return object's verbose_name
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AuthenticatorEmailStage
|
|
41
|
+
*/
|
|
42
|
+
readonly verboseName: string;
|
|
43
|
+
/**
|
|
44
|
+
* Return object's plural verbose_name
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AuthenticatorEmailStage
|
|
47
|
+
*/
|
|
48
|
+
readonly verboseNamePlural: string;
|
|
49
|
+
/**
|
|
50
|
+
* Return internal model name
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AuthenticatorEmailStage
|
|
53
|
+
*/
|
|
54
|
+
readonly metaModelName: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<FlowSet>}
|
|
58
|
+
* @memberof AuthenticatorEmailStage
|
|
59
|
+
*/
|
|
60
|
+
flowSet?: Array<FlowSet>;
|
|
61
|
+
/**
|
|
62
|
+
* Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AuthenticatorEmailStage
|
|
65
|
+
*/
|
|
66
|
+
configureFlow?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof AuthenticatorEmailStage
|
|
71
|
+
*/
|
|
72
|
+
friendlyName?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* When enabled, global Email connection settings will be used and connection settings below will be ignored.
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof AuthenticatorEmailStage
|
|
77
|
+
*/
|
|
78
|
+
useGlobalSettings?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof AuthenticatorEmailStage
|
|
83
|
+
*/
|
|
84
|
+
host?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof AuthenticatorEmailStage
|
|
89
|
+
*/
|
|
90
|
+
port?: number;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof AuthenticatorEmailStage
|
|
95
|
+
*/
|
|
96
|
+
username?: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof AuthenticatorEmailStage
|
|
101
|
+
*/
|
|
102
|
+
password?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof AuthenticatorEmailStage
|
|
107
|
+
*/
|
|
108
|
+
useTls?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof AuthenticatorEmailStage
|
|
113
|
+
*/
|
|
114
|
+
useSsl?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof AuthenticatorEmailStage
|
|
119
|
+
*/
|
|
120
|
+
timeout?: number;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof AuthenticatorEmailStage
|
|
125
|
+
*/
|
|
126
|
+
fromAddress?: string;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof AuthenticatorEmailStage
|
|
131
|
+
*/
|
|
132
|
+
subject?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof AuthenticatorEmailStage
|
|
137
|
+
*/
|
|
138
|
+
tokenExpiry?: string;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof AuthenticatorEmailStage
|
|
143
|
+
*/
|
|
144
|
+
template?: string;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Check if a given object implements the AuthenticatorEmailStage interface.
|
|
148
|
+
*/
|
|
149
|
+
export declare function instanceOfAuthenticatorEmailStage(value: object): value is AuthenticatorEmailStage;
|
|
150
|
+
export declare function AuthenticatorEmailStageFromJSON(json: any): AuthenticatorEmailStage;
|
|
151
|
+
export declare function AuthenticatorEmailStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailStage;
|
|
152
|
+
export declare function AuthenticatorEmailStageToJSON(json: any): AuthenticatorEmailStage;
|
|
153
|
+
export declare function AuthenticatorEmailStageToJSONTyped(value?: Omit<AuthenticatorEmailStage, 'pk' | 'component' | 'verbose_name' | 'verbose_name_plural' | 'meta_model_name'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,96 @@
|
|
|
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.12.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.instanceOfAuthenticatorEmailStage = instanceOfAuthenticatorEmailStage;
|
|
17
|
+
exports.AuthenticatorEmailStageFromJSON = AuthenticatorEmailStageFromJSON;
|
|
18
|
+
exports.AuthenticatorEmailStageFromJSONTyped = AuthenticatorEmailStageFromJSONTyped;
|
|
19
|
+
exports.AuthenticatorEmailStageToJSON = AuthenticatorEmailStageToJSON;
|
|
20
|
+
exports.AuthenticatorEmailStageToJSONTyped = AuthenticatorEmailStageToJSONTyped;
|
|
21
|
+
const FlowSet_1 = require("./FlowSet");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AuthenticatorEmailStage interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAuthenticatorEmailStage(value) {
|
|
26
|
+
if (!('pk' in value) || value['pk'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('component' in value) || value['component'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('verboseName' in value) || value['verboseName'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('metaModelName' in value) || value['metaModelName'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function AuthenticatorEmailStageFromJSON(json) {
|
|
41
|
+
return AuthenticatorEmailStageFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AuthenticatorEmailStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'pk': json['pk'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'component': json['component'],
|
|
51
|
+
'verboseName': json['verbose_name'],
|
|
52
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
53
|
+
'metaModelName': json['meta_model_name'],
|
|
54
|
+
'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
|
|
55
|
+
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
|
|
56
|
+
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
|
|
57
|
+
'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
|
|
58
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
59
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
60
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
61
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
62
|
+
'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
|
|
63
|
+
'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
|
|
64
|
+
'timeout': json['timeout'] == null ? undefined : json['timeout'],
|
|
65
|
+
'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
|
|
66
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
67
|
+
'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
|
|
68
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function AuthenticatorEmailStageToJSON(json) {
|
|
72
|
+
return AuthenticatorEmailStageToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function AuthenticatorEmailStageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSet_1.FlowSetToJSON)),
|
|
81
|
+
'configure_flow': value['configureFlow'],
|
|
82
|
+
'friendly_name': value['friendlyName'],
|
|
83
|
+
'use_global_settings': value['useGlobalSettings'],
|
|
84
|
+
'host': value['host'],
|
|
85
|
+
'port': value['port'],
|
|
86
|
+
'username': value['username'],
|
|
87
|
+
'password': value['password'],
|
|
88
|
+
'use_tls': value['useTls'],
|
|
89
|
+
'use_ssl': value['useSsl'],
|
|
90
|
+
'timeout': value['timeout'],
|
|
91
|
+
'from_address': value['fromAddress'],
|
|
92
|
+
'subject': value['subject'],
|
|
93
|
+
'token_expiry': value['tokenExpiry'],
|
|
94
|
+
'template': value['template'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.12.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
|
+
* AuthenticatorEmailStage Serializer
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AuthenticatorEmailStageRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface AuthenticatorEmailStageRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<FlowSetRequest>}
|
|
28
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
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 AuthenticatorEmailStageRequest
|
|
35
|
+
*/
|
|
36
|
+
configureFlow?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
41
|
+
*/
|
|
42
|
+
friendlyName?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* When enabled, global Email connection settings will be used and connection settings below will be ignored.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
47
|
+
*/
|
|
48
|
+
useGlobalSettings?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
53
|
+
*/
|
|
54
|
+
host?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
59
|
+
*/
|
|
60
|
+
port?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
65
|
+
*/
|
|
66
|
+
username?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
71
|
+
*/
|
|
72
|
+
password?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
77
|
+
*/
|
|
78
|
+
useTls?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
83
|
+
*/
|
|
84
|
+
useSsl?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
89
|
+
*/
|
|
90
|
+
timeout?: number;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
95
|
+
*/
|
|
96
|
+
fromAddress?: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
101
|
+
*/
|
|
102
|
+
subject?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
107
|
+
*/
|
|
108
|
+
tokenExpiry?: string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof AuthenticatorEmailStageRequest
|
|
113
|
+
*/
|
|
114
|
+
template?: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Check if a given object implements the AuthenticatorEmailStageRequest interface.
|
|
118
|
+
*/
|
|
119
|
+
export declare function instanceOfAuthenticatorEmailStageRequest(value: object): value is AuthenticatorEmailStageRequest;
|
|
120
|
+
export declare function AuthenticatorEmailStageRequestFromJSON(json: any): AuthenticatorEmailStageRequest;
|
|
121
|
+
export declare function AuthenticatorEmailStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailStageRequest;
|
|
122
|
+
export declare function AuthenticatorEmailStageRequestToJSON(json: any): AuthenticatorEmailStageRequest;
|
|
123
|
+
export declare function AuthenticatorEmailStageRequestToJSONTyped(value?: AuthenticatorEmailStageRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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.12.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.instanceOfAuthenticatorEmailStageRequest = instanceOfAuthenticatorEmailStageRequest;
|
|
17
|
+
exports.AuthenticatorEmailStageRequestFromJSON = AuthenticatorEmailStageRequestFromJSON;
|
|
18
|
+
exports.AuthenticatorEmailStageRequestFromJSONTyped = AuthenticatorEmailStageRequestFromJSONTyped;
|
|
19
|
+
exports.AuthenticatorEmailStageRequestToJSON = AuthenticatorEmailStageRequestToJSON;
|
|
20
|
+
exports.AuthenticatorEmailStageRequestToJSONTyped = AuthenticatorEmailStageRequestToJSONTyped;
|
|
21
|
+
const FlowSetRequest_1 = require("./FlowSetRequest");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AuthenticatorEmailStageRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAuthenticatorEmailStageRequest(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AuthenticatorEmailStageRequestFromJSON(json) {
|
|
31
|
+
return AuthenticatorEmailStageRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AuthenticatorEmailStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
|
40
|
+
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
|
|
41
|
+
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
|
|
42
|
+
'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
|
|
43
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
44
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
45
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
46
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
47
|
+
'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
|
|
48
|
+
'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
|
|
49
|
+
'timeout': json['timeout'] == null ? undefined : json['timeout'],
|
|
50
|
+
'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
|
|
51
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
52
|
+
'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
|
|
53
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AuthenticatorEmailStageRequestToJSON(json) {
|
|
57
|
+
return AuthenticatorEmailStageRequestToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AuthenticatorEmailStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
|
66
|
+
'configure_flow': value['configureFlow'],
|
|
67
|
+
'friendly_name': value['friendlyName'],
|
|
68
|
+
'use_global_settings': value['useGlobalSettings'],
|
|
69
|
+
'host': value['host'],
|
|
70
|
+
'port': value['port'],
|
|
71
|
+
'username': value['username'],
|
|
72
|
+
'password': value['password'],
|
|
73
|
+
'use_tls': value['useTls'],
|
|
74
|
+
'use_ssl': value['useSsl'],
|
|
75
|
+
'timeout': value['timeout'],
|
|
76
|
+
'from_address': value['fromAddress'],
|
|
77
|
+
'subject': value['subject'],
|
|
78
|
+
'token_expiry': value['tokenExpiry'],
|
|
79
|
+
'template': value['template'],
|
|
80
|
+
};
|
|
81
|
+
}
|