@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,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,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.12.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { FlowSetFromJSON, FlowSetToJSON, } from './FlowSet';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AuthenticatorEmailStage interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAuthenticatorEmailStage(value) {
|
|
19
|
+
if (!('pk' in value) || value['pk'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('component' in value) || value['component'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('verboseName' in value) || value['verboseName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('metaModelName' in value) || value['metaModelName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function AuthenticatorEmailStageFromJSON(json) {
|
|
34
|
+
return AuthenticatorEmailStageFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AuthenticatorEmailStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'pk': json['pk'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'component': json['component'],
|
|
44
|
+
'verboseName': json['verbose_name'],
|
|
45
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
46
|
+
'metaModelName': json['meta_model_name'],
|
|
47
|
+
'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
|
|
48
|
+
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
|
|
49
|
+
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
|
|
50
|
+
'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
|
|
51
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
52
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
53
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
54
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
55
|
+
'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
|
|
56
|
+
'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
|
|
57
|
+
'timeout': json['timeout'] == null ? undefined : json['timeout'],
|
|
58
|
+
'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
|
|
59
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
60
|
+
'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
|
|
61
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export function AuthenticatorEmailStageToJSON(json) {
|
|
65
|
+
return AuthenticatorEmailStageToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
export function AuthenticatorEmailStageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetToJSON)),
|
|
74
|
+
'configure_flow': value['configureFlow'],
|
|
75
|
+
'friendly_name': value['friendlyName'],
|
|
76
|
+
'use_global_settings': value['useGlobalSettings'],
|
|
77
|
+
'host': value['host'],
|
|
78
|
+
'port': value['port'],
|
|
79
|
+
'username': value['username'],
|
|
80
|
+
'password': value['password'],
|
|
81
|
+
'use_tls': value['useTls'],
|
|
82
|
+
'use_ssl': value['useSsl'],
|
|
83
|
+
'timeout': value['timeout'],
|
|
84
|
+
'from_address': value['fromAddress'],
|
|
85
|
+
'subject': value['subject'],
|
|
86
|
+
'token_expiry': value['tokenExpiry'],
|
|
87
|
+
'template': value['template'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -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,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.12.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AuthenticatorEmailStageRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAuthenticatorEmailStageRequest(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function AuthenticatorEmailStageRequestFromJSON(json) {
|
|
24
|
+
return AuthenticatorEmailStageRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function AuthenticatorEmailStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'name': json['name'],
|
|
32
|
+
'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
|
|
33
|
+
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
|
|
34
|
+
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
|
|
35
|
+
'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
|
|
36
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
37
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
38
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
39
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
40
|
+
'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
|
|
41
|
+
'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
|
|
42
|
+
'timeout': json['timeout'] == null ? undefined : json['timeout'],
|
|
43
|
+
'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
|
|
44
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
45
|
+
'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
|
|
46
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function AuthenticatorEmailStageRequestToJSON(json) {
|
|
50
|
+
return AuthenticatorEmailStageRequestToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function AuthenticatorEmailStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequestToJSON)),
|
|
59
|
+
'configure_flow': value['configureFlow'],
|
|
60
|
+
'friendly_name': value['friendlyName'],
|
|
61
|
+
'use_global_settings': value['useGlobalSettings'],
|
|
62
|
+
'host': value['host'],
|
|
63
|
+
'port': value['port'],
|
|
64
|
+
'username': value['username'],
|
|
65
|
+
'password': value['password'],
|
|
66
|
+
'use_tls': value['useTls'],
|
|
67
|
+
'use_ssl': value['useSsl'],
|
|
68
|
+
'timeout': value['timeout'],
|
|
69
|
+
'from_address': value['fromAddress'],
|
|
70
|
+
'subject': value['subject'],
|
|
71
|
+
'token_expiry': value['tokenExpiry'],
|
|
72
|
+
'template': value['template'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { AccessDeniedChallenge } from './AccessDeniedChallenge';
|
|
13
13
|
import type { AppleLoginChallenge } from './AppleLoginChallenge';
|
|
14
14
|
import type { AuthenticatorDuoChallenge } from './AuthenticatorDuoChallenge';
|
|
15
|
+
import type { AuthenticatorEmailChallenge } from './AuthenticatorEmailChallenge';
|
|
15
16
|
import type { AuthenticatorSMSChallenge } from './AuthenticatorSMSChallenge';
|
|
16
17
|
import type { AuthenticatorStaticChallenge } from './AuthenticatorStaticChallenge';
|
|
17
18
|
import type { AuthenticatorTOTPChallenge } from './AuthenticatorTOTPChallenge';
|
|
@@ -52,6 +53,8 @@ export type ChallengeTypes = {
|
|
|
52
53
|
} & AccessDeniedChallenge | {
|
|
53
54
|
component: 'ak-stage-authenticator-duo';
|
|
54
55
|
} & AuthenticatorDuoChallenge | {
|
|
56
|
+
component: 'ak-stage-authenticator-email';
|
|
57
|
+
} & AuthenticatorEmailChallenge | {
|
|
55
58
|
component: 'ak-stage-authenticator-sms';
|
|
56
59
|
} & AuthenticatorSMSChallenge | {
|
|
57
60
|
component: 'ak-stage-authenticator-static';
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { AccessDeniedChallengeFromJSONTyped, AccessDeniedChallengeToJSON, } from './AccessDeniedChallenge';
|
|
15
15
|
import { AppleLoginChallengeFromJSONTyped, AppleLoginChallengeToJSON, } from './AppleLoginChallenge';
|
|
16
16
|
import { AuthenticatorDuoChallengeFromJSONTyped, AuthenticatorDuoChallengeToJSON, } from './AuthenticatorDuoChallenge';
|
|
17
|
+
import { AuthenticatorEmailChallengeFromJSONTyped, AuthenticatorEmailChallengeToJSON, } from './AuthenticatorEmailChallenge';
|
|
17
18
|
import { AuthenticatorSMSChallengeFromJSONTyped, AuthenticatorSMSChallengeToJSON, } from './AuthenticatorSMSChallenge';
|
|
18
19
|
import { AuthenticatorStaticChallengeFromJSONTyped, AuthenticatorStaticChallengeToJSON, } from './AuthenticatorStaticChallenge';
|
|
19
20
|
import { AuthenticatorTOTPChallengeFromJSONTyped, AuthenticatorTOTPChallengeToJSON, } from './AuthenticatorTOTPChallenge';
|
|
@@ -56,6 +57,8 @@ export function ChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
57
|
return Object.assign({}, AccessDeniedChallengeFromJSONTyped(json, true), { component: 'ak-stage-access-denied' });
|
|
57
58
|
case 'ak-stage-authenticator-duo':
|
|
58
59
|
return Object.assign({}, AuthenticatorDuoChallengeFromJSONTyped(json, true), { component: 'ak-stage-authenticator-duo' });
|
|
60
|
+
case 'ak-stage-authenticator-email':
|
|
61
|
+
return Object.assign({}, AuthenticatorEmailChallengeFromJSONTyped(json, true), { component: 'ak-stage-authenticator-email' });
|
|
59
62
|
case 'ak-stage-authenticator-sms':
|
|
60
63
|
return Object.assign({}, AuthenticatorSMSChallengeFromJSONTyped(json, true), { component: 'ak-stage-authenticator-sms' });
|
|
61
64
|
case 'ak-stage-authenticator-static':
|
|
@@ -118,6 +121,8 @@ export function ChallengeTypesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
118
121
|
return Object.assign({}, AccessDeniedChallengeToJSON(value), { component: 'ak-stage-access-denied' });
|
|
119
122
|
case 'ak-stage-authenticator-duo':
|
|
120
123
|
return Object.assign({}, AuthenticatorDuoChallengeToJSON(value), { component: 'ak-stage-authenticator-duo' });
|
|
124
|
+
case 'ak-stage-authenticator-email':
|
|
125
|
+
return Object.assign({}, AuthenticatorEmailChallengeToJSON(value), { component: 'ak-stage-authenticator-email' });
|
|
121
126
|
case 'ak-stage-authenticator-sms':
|
|
122
127
|
return Object.assign({}, AuthenticatorSMSChallengeToJSON(value), { component: 'ak-stage-authenticator-sms' });
|
|
123
128
|
case 'ak-stage-authenticator-static':
|
|
@@ -19,6 +19,7 @@ export declare const DeviceClassesEnum: {
|
|
|
19
19
|
readonly Webauthn: "webauthn";
|
|
20
20
|
readonly Duo: "duo";
|
|
21
21
|
readonly Sms: "sms";
|
|
22
|
+
readonly Email: "email";
|
|
22
23
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
23
24
|
};
|
|
24
25
|
export type DeviceClassesEnum = typeof DeviceClassesEnum[keyof typeof DeviceClassesEnum];
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { GroupMember } from './GroupMember';
|
|
13
|
+
/**
|
|
14
|
+
* Serializer for email authenticator devices
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EmailDevice
|
|
17
|
+
*/
|
|
18
|
+
export interface EmailDevice {
|
|
19
|
+
/**
|
|
20
|
+
* The human-readable name of this device.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof EmailDevice
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof EmailDevice
|
|
29
|
+
*/
|
|
30
|
+
readonly pk: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof EmailDevice
|
|
35
|
+
*/
|
|
36
|
+
readonly email: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {GroupMember}
|
|
40
|
+
* @memberof EmailDevice
|
|
41
|
+
*/
|
|
42
|
+
readonly user: GroupMember;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the EmailDevice interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfEmailDevice(value: object): value is EmailDevice;
|
|
48
|
+
export declare function EmailDeviceFromJSON(json: any): EmailDevice;
|
|
49
|
+
export declare function EmailDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDevice;
|
|
50
|
+
export declare function EmailDeviceToJSON(json: any): EmailDevice;
|
|
51
|
+
export declare function EmailDeviceToJSONTyped(value?: Omit<EmailDevice, 'pk' | 'email' | 'user'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.12.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { GroupMemberFromJSON, } from './GroupMember';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the EmailDevice interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfEmailDevice(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pk' in value) || value['pk'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function EmailDeviceFromJSON(json) {
|
|
30
|
+
return EmailDeviceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function EmailDeviceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'pk': json['pk'],
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'user': GroupMemberFromJSON(json['user']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function EmailDeviceToJSON(json) {
|
|
44
|
+
return EmailDeviceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function EmailDeviceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Serializer for email authenticator devices
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EmailDeviceRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailDeviceRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The human-readable name of this device.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailDeviceRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the EmailDeviceRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfEmailDeviceRequest(value: object): value is EmailDeviceRequest;
|
|
29
|
+
export declare function EmailDeviceRequestFromJSON(json: any): EmailDeviceRequest;
|
|
30
|
+
export declare function EmailDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDeviceRequest;
|
|
31
|
+
export declare function EmailDeviceRequestToJSON(json: any): EmailDeviceRequest;
|
|
32
|
+
export declare function EmailDeviceRequestToJSONTyped(value?: EmailDeviceRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.12.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the EmailDeviceRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfEmailDeviceRequest(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function EmailDeviceRequestFromJSON(json) {
|
|
23
|
+
return EmailDeviceRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function EmailDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function EmailDeviceRequestToJSON(json) {
|
|
34
|
+
return EmailDeviceRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function EmailDeviceRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
};
|
|
43
|
+
}
|