@goauthentik/api 2024.12.3-1739449824 → 2024.12.3-1739814462

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.
Files changed (112) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/dist/apis/AuthenticatorsApi.d.ts +145 -1
  3. package/dist/apis/AuthenticatorsApi.js +458 -0
  4. package/dist/apis/RbacApi.d.ts +4 -0
  5. package/dist/apis/RbacApi.js +4 -0
  6. package/dist/apis/StagesApi.d.ts +99 -1
  7. package/dist/apis/StagesApi.js +310 -0
  8. package/dist/esm/apis/AuthenticatorsApi.d.ts +145 -1
  9. package/dist/esm/apis/AuthenticatorsApi.js +459 -1
  10. package/dist/esm/apis/RbacApi.d.ts +4 -0
  11. package/dist/esm/apis/RbacApi.js +4 -0
  12. package/dist/esm/apis/StagesApi.d.ts +99 -1
  13. package/dist/esm/apis/StagesApi.js +311 -1
  14. package/dist/esm/models/AppEnum.d.ts +1 -0
  15. package/dist/esm/models/AppEnum.js +1 -0
  16. package/dist/esm/models/AuthenticatorEmailChallenge.d.ts +72 -0
  17. package/dist/esm/models/AuthenticatorEmailChallenge.js +58 -0
  18. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  19. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.js +45 -0
  20. package/dist/esm/models/AuthenticatorEmailStage.d.ts +153 -0
  21. package/dist/esm/models/AuthenticatorEmailStage.js +89 -0
  22. package/dist/esm/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  23. package/dist/esm/models/AuthenticatorEmailStageRequest.js +74 -0
  24. package/dist/esm/models/ChallengeTypes.d.ts +3 -0
  25. package/dist/esm/models/ChallengeTypes.js +5 -0
  26. package/dist/esm/models/DeviceClassesEnum.d.ts +1 -0
  27. package/dist/esm/models/DeviceClassesEnum.js +1 -0
  28. package/dist/esm/models/EmailDevice.d.ts +51 -0
  29. package/dist/esm/models/EmailDevice.js +53 -0
  30. package/dist/esm/models/EmailDeviceRequest.d.ts +32 -0
  31. package/dist/esm/models/EmailDeviceRequest.js +43 -0
  32. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
  33. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  34. package/dist/esm/models/GeoIPPolicy.d.ts +36 -0
  35. package/dist/esm/models/GeoIPPolicy.js +12 -0
  36. package/dist/esm/models/GeoIPPolicyRequest.d.ts +36 -0
  37. package/dist/esm/models/GeoIPPolicyRequest.js +12 -0
  38. package/dist/esm/models/ModelEnum.d.ts +2 -0
  39. package/dist/esm/models/ModelEnum.js +2 -0
  40. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  41. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.js +49 -0
  42. package/dist/esm/models/PaginatedEmailDeviceList.d.ts +40 -0
  43. package/dist/esm/models/PaginatedEmailDeviceList.js +49 -0
  44. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  45. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.js +72 -0
  46. package/dist/esm/models/PatchedEmailDeviceRequest.d.ts +32 -0
  47. package/dist/esm/models/PatchedEmailDeviceRequest.js +41 -0
  48. package/dist/esm/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
  49. package/dist/esm/models/PatchedGeoIPPolicyRequest.js +12 -0
  50. package/dist/esm/models/index.d.ts +10 -0
  51. package/dist/esm/models/index.js +10 -0
  52. package/dist/models/AppEnum.d.ts +1 -0
  53. package/dist/models/AppEnum.js +1 -0
  54. package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
  55. package/dist/models/AuthenticatorEmailChallenge.js +65 -0
  56. package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  57. package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
  58. package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
  59. package/dist/models/AuthenticatorEmailStage.js +96 -0
  60. package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  61. package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
  62. package/dist/models/ChallengeTypes.d.ts +3 -0
  63. package/dist/models/ChallengeTypes.js +5 -0
  64. package/dist/models/DeviceClassesEnum.d.ts +1 -0
  65. package/dist/models/DeviceClassesEnum.js +1 -0
  66. package/dist/models/EmailDevice.d.ts +51 -0
  67. package/dist/models/EmailDevice.js +60 -0
  68. package/dist/models/EmailDeviceRequest.d.ts +32 -0
  69. package/dist/models/EmailDeviceRequest.js +50 -0
  70. package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
  71. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  72. package/dist/models/GeoIPPolicy.d.ts +36 -0
  73. package/dist/models/GeoIPPolicy.js +12 -0
  74. package/dist/models/GeoIPPolicyRequest.d.ts +36 -0
  75. package/dist/models/GeoIPPolicyRequest.js +12 -0
  76. package/dist/models/ModelEnum.d.ts +2 -0
  77. package/dist/models/ModelEnum.js +2 -0
  78. package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  79. package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
  80. package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
  81. package/dist/models/PaginatedEmailDeviceList.js +56 -0
  82. package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  83. package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
  84. package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
  85. package/dist/models/PatchedEmailDeviceRequest.js +48 -0
  86. package/dist/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
  87. package/dist/models/PatchedGeoIPPolicyRequest.js +12 -0
  88. package/dist/models/index.d.ts +10 -0
  89. package/dist/models/index.js +10 -0
  90. package/package.json +1 -1
  91. package/src/apis/AuthenticatorsApi.ts +617 -0
  92. package/src/apis/RbacApi.ts +4 -0
  93. package/src/apis/StagesApi.ts +436 -0
  94. package/src/models/AppEnum.ts +1 -0
  95. package/src/models/AuthenticatorEmailChallenge.ts +130 -0
  96. package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
  97. package/src/models/AuthenticatorEmailStage.ts +234 -0
  98. package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
  99. package/src/models/ChallengeTypes.ts +12 -1
  100. package/src/models/DeviceClassesEnum.ts +1 -0
  101. package/src/models/EmailDevice.ts +98 -0
  102. package/src/models/EmailDeviceRequest.ts +66 -0
  103. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  104. package/src/models/GeoIPPolicy.ts +48 -0
  105. package/src/models/GeoIPPolicyRequest.ts +48 -0
  106. package/src/models/ModelEnum.ts +2 -0
  107. package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
  108. package/src/models/PaginatedEmailDeviceList.ts +90 -0
  109. package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
  110. package/src/models/PatchedEmailDeviceRequest.ts +65 -0
  111. package/src/models/PatchedGeoIPPolicyRequest.ts +48 -0
  112. package/src/models/index.ts +10 -0
@@ -0,0 +1,81 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Authenticator Email Challenge response, device is set by get_response_instance
18
+ * @export
19
+ * @interface AuthenticatorEmailChallengeResponseRequest
20
+ */
21
+ export interface AuthenticatorEmailChallengeResponseRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AuthenticatorEmailChallengeResponseRequest
26
+ */
27
+ component?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof AuthenticatorEmailChallengeResponseRequest
32
+ */
33
+ code?: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AuthenticatorEmailChallengeResponseRequest
38
+ */
39
+ email?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AuthenticatorEmailChallengeResponseRequest interface.
44
+ */
45
+ export function instanceOfAuthenticatorEmailChallengeResponseRequest(value: object): value is AuthenticatorEmailChallengeResponseRequest {
46
+ return true;
47
+ }
48
+
49
+ export function AuthenticatorEmailChallengeResponseRequestFromJSON(json: any): AuthenticatorEmailChallengeResponseRequest {
50
+ return AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailChallengeResponseRequest {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'component': json['component'] == null ? undefined : json['component'],
60
+ 'code': json['code'] == null ? undefined : json['code'],
61
+ 'email': json['email'] == null ? undefined : json['email'],
62
+ };
63
+ }
64
+
65
+ export function AuthenticatorEmailChallengeResponseRequestToJSON(json: any): AuthenticatorEmailChallengeResponseRequest {
66
+ return AuthenticatorEmailChallengeResponseRequestToJSONTyped(json, false);
67
+ }
68
+
69
+ export function AuthenticatorEmailChallengeResponseRequestToJSONTyped(value?: AuthenticatorEmailChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'component': value['component'],
77
+ 'code': value['code'],
78
+ 'email': value['email'],
79
+ };
80
+ }
81
+
@@ -0,0 +1,234 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { FlowSet } from './FlowSet';
17
+ import {
18
+ FlowSetFromJSON,
19
+ FlowSetFromJSONTyped,
20
+ FlowSetToJSON,
21
+ FlowSetToJSONTyped,
22
+ } from './FlowSet';
23
+
24
+ /**
25
+ * AuthenticatorEmailStage Serializer
26
+ * @export
27
+ * @interface AuthenticatorEmailStage
28
+ */
29
+ export interface AuthenticatorEmailStage {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AuthenticatorEmailStage
34
+ */
35
+ readonly pk: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AuthenticatorEmailStage
40
+ */
41
+ name: string;
42
+ /**
43
+ * Get object type so that we know how to edit the object
44
+ * @type {string}
45
+ * @memberof AuthenticatorEmailStage
46
+ */
47
+ readonly component: string;
48
+ /**
49
+ * Return object's verbose_name
50
+ * @type {string}
51
+ * @memberof AuthenticatorEmailStage
52
+ */
53
+ readonly verboseName: string;
54
+ /**
55
+ * Return object's plural verbose_name
56
+ * @type {string}
57
+ * @memberof AuthenticatorEmailStage
58
+ */
59
+ readonly verboseNamePlural: string;
60
+ /**
61
+ * Return internal model name
62
+ * @type {string}
63
+ * @memberof AuthenticatorEmailStage
64
+ */
65
+ readonly metaModelName: string;
66
+ /**
67
+ *
68
+ * @type {Array<FlowSet>}
69
+ * @memberof AuthenticatorEmailStage
70
+ */
71
+ flowSet?: Array<FlowSet>;
72
+ /**
73
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
74
+ * @type {string}
75
+ * @memberof AuthenticatorEmailStage
76
+ */
77
+ configureFlow?: string | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof AuthenticatorEmailStage
82
+ */
83
+ friendlyName?: string | null;
84
+ /**
85
+ * When enabled, global Email connection settings will be used and connection settings below will be ignored.
86
+ * @type {boolean}
87
+ * @memberof AuthenticatorEmailStage
88
+ */
89
+ useGlobalSettings?: boolean;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof AuthenticatorEmailStage
94
+ */
95
+ host?: string;
96
+ /**
97
+ *
98
+ * @type {number}
99
+ * @memberof AuthenticatorEmailStage
100
+ */
101
+ port?: number;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof AuthenticatorEmailStage
106
+ */
107
+ username?: string;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof AuthenticatorEmailStage
112
+ */
113
+ password?: string;
114
+ /**
115
+ *
116
+ * @type {boolean}
117
+ * @memberof AuthenticatorEmailStage
118
+ */
119
+ useTls?: boolean;
120
+ /**
121
+ *
122
+ * @type {boolean}
123
+ * @memberof AuthenticatorEmailStage
124
+ */
125
+ useSsl?: boolean;
126
+ /**
127
+ *
128
+ * @type {number}
129
+ * @memberof AuthenticatorEmailStage
130
+ */
131
+ timeout?: number;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof AuthenticatorEmailStage
136
+ */
137
+ fromAddress?: string;
138
+ /**
139
+ *
140
+ * @type {string}
141
+ * @memberof AuthenticatorEmailStage
142
+ */
143
+ subject?: string;
144
+ /**
145
+ * Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
146
+ * @type {string}
147
+ * @memberof AuthenticatorEmailStage
148
+ */
149
+ tokenExpiry?: string;
150
+ /**
151
+ *
152
+ * @type {string}
153
+ * @memberof AuthenticatorEmailStage
154
+ */
155
+ template?: string;
156
+ }
157
+
158
+ /**
159
+ * Check if a given object implements the AuthenticatorEmailStage interface.
160
+ */
161
+ export function instanceOfAuthenticatorEmailStage(value: object): value is AuthenticatorEmailStage {
162
+ if (!('pk' in value) || value['pk'] === undefined) return false;
163
+ if (!('name' in value) || value['name'] === undefined) return false;
164
+ if (!('component' in value) || value['component'] === undefined) return false;
165
+ if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
166
+ if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
167
+ if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
168
+ return true;
169
+ }
170
+
171
+ export function AuthenticatorEmailStageFromJSON(json: any): AuthenticatorEmailStage {
172
+ return AuthenticatorEmailStageFromJSONTyped(json, false);
173
+ }
174
+
175
+ export function AuthenticatorEmailStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailStage {
176
+ if (json == null) {
177
+ return json;
178
+ }
179
+ return {
180
+
181
+ 'pk': json['pk'],
182
+ 'name': json['name'],
183
+ 'component': json['component'],
184
+ 'verboseName': json['verbose_name'],
185
+ 'verboseNamePlural': json['verbose_name_plural'],
186
+ 'metaModelName': json['meta_model_name'],
187
+ 'flowSet': json['flow_set'] == null ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
188
+ 'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
189
+ 'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
190
+ 'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
191
+ 'host': json['host'] == null ? undefined : json['host'],
192
+ 'port': json['port'] == null ? undefined : json['port'],
193
+ 'username': json['username'] == null ? undefined : json['username'],
194
+ 'password': json['password'] == null ? undefined : json['password'],
195
+ 'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
196
+ 'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
197
+ 'timeout': json['timeout'] == null ? undefined : json['timeout'],
198
+ 'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
199
+ 'subject': json['subject'] == null ? undefined : json['subject'],
200
+ 'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
201
+ 'template': json['template'] == null ? undefined : json['template'],
202
+ };
203
+ }
204
+
205
+ export function AuthenticatorEmailStageToJSON(json: any): AuthenticatorEmailStage {
206
+ return AuthenticatorEmailStageToJSONTyped(json, false);
207
+ }
208
+
209
+ export function AuthenticatorEmailStageToJSONTyped(value?: Omit<AuthenticatorEmailStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'> | null, ignoreDiscriminator: boolean = false): any {
210
+ if (value == null) {
211
+ return value;
212
+ }
213
+
214
+ return {
215
+
216
+ 'name': value['name'],
217
+ 'flow_set': value['flowSet'] == null ? undefined : ((value['flowSet'] as Array<any>).map(FlowSetToJSON)),
218
+ 'configure_flow': value['configureFlow'],
219
+ 'friendly_name': value['friendlyName'],
220
+ 'use_global_settings': value['useGlobalSettings'],
221
+ 'host': value['host'],
222
+ 'port': value['port'],
223
+ 'username': value['username'],
224
+ 'password': value['password'],
225
+ 'use_tls': value['useTls'],
226
+ 'use_ssl': value['useSsl'],
227
+ 'timeout': value['timeout'],
228
+ 'from_address': value['fromAddress'],
229
+ 'subject': value['subject'],
230
+ 'token_expiry': value['tokenExpiry'],
231
+ 'template': value['template'],
232
+ };
233
+ }
234
+
@@ -0,0 +1,194 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { FlowSetRequest } from './FlowSetRequest';
17
+ import {
18
+ FlowSetRequestFromJSON,
19
+ FlowSetRequestFromJSONTyped,
20
+ FlowSetRequestToJSON,
21
+ FlowSetRequestToJSONTyped,
22
+ } from './FlowSetRequest';
23
+
24
+ /**
25
+ * AuthenticatorEmailStage Serializer
26
+ * @export
27
+ * @interface AuthenticatorEmailStageRequest
28
+ */
29
+ export interface AuthenticatorEmailStageRequest {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AuthenticatorEmailStageRequest
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {Array<FlowSetRequest>}
39
+ * @memberof AuthenticatorEmailStageRequest
40
+ */
41
+ flowSet?: Array<FlowSetRequest>;
42
+ /**
43
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
44
+ * @type {string}
45
+ * @memberof AuthenticatorEmailStageRequest
46
+ */
47
+ configureFlow?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AuthenticatorEmailStageRequest
52
+ */
53
+ friendlyName?: string | null;
54
+ /**
55
+ * When enabled, global Email connection settings will be used and connection settings below will be ignored.
56
+ * @type {boolean}
57
+ * @memberof AuthenticatorEmailStageRequest
58
+ */
59
+ useGlobalSettings?: boolean;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof AuthenticatorEmailStageRequest
64
+ */
65
+ host?: string;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof AuthenticatorEmailStageRequest
70
+ */
71
+ port?: number;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof AuthenticatorEmailStageRequest
76
+ */
77
+ username?: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof AuthenticatorEmailStageRequest
82
+ */
83
+ password?: string;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof AuthenticatorEmailStageRequest
88
+ */
89
+ useTls?: boolean;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof AuthenticatorEmailStageRequest
94
+ */
95
+ useSsl?: boolean;
96
+ /**
97
+ *
98
+ * @type {number}
99
+ * @memberof AuthenticatorEmailStageRequest
100
+ */
101
+ timeout?: number;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof AuthenticatorEmailStageRequest
106
+ */
107
+ fromAddress?: string;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof AuthenticatorEmailStageRequest
112
+ */
113
+ subject?: string;
114
+ /**
115
+ * Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
116
+ * @type {string}
117
+ * @memberof AuthenticatorEmailStageRequest
118
+ */
119
+ tokenExpiry?: string;
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof AuthenticatorEmailStageRequest
124
+ */
125
+ template?: string;
126
+ }
127
+
128
+ /**
129
+ * Check if a given object implements the AuthenticatorEmailStageRequest interface.
130
+ */
131
+ export function instanceOfAuthenticatorEmailStageRequest(value: object): value is AuthenticatorEmailStageRequest {
132
+ if (!('name' in value) || value['name'] === undefined) return false;
133
+ return true;
134
+ }
135
+
136
+ export function AuthenticatorEmailStageRequestFromJSON(json: any): AuthenticatorEmailStageRequest {
137
+ return AuthenticatorEmailStageRequestFromJSONTyped(json, false);
138
+ }
139
+
140
+ export function AuthenticatorEmailStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailStageRequest {
141
+ if (json == null) {
142
+ return json;
143
+ }
144
+ return {
145
+
146
+ 'name': json['name'],
147
+ 'flowSet': json['flow_set'] == null ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
148
+ 'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
149
+ 'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
150
+ 'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
151
+ 'host': json['host'] == null ? undefined : json['host'],
152
+ 'port': json['port'] == null ? undefined : json['port'],
153
+ 'username': json['username'] == null ? undefined : json['username'],
154
+ 'password': json['password'] == null ? undefined : json['password'],
155
+ 'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
156
+ 'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
157
+ 'timeout': json['timeout'] == null ? undefined : json['timeout'],
158
+ 'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
159
+ 'subject': json['subject'] == null ? undefined : json['subject'],
160
+ 'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
161
+ 'template': json['template'] == null ? undefined : json['template'],
162
+ };
163
+ }
164
+
165
+ export function AuthenticatorEmailStageRequestToJSON(json: any): AuthenticatorEmailStageRequest {
166
+ return AuthenticatorEmailStageRequestToJSONTyped(json, false);
167
+ }
168
+
169
+ export function AuthenticatorEmailStageRequestToJSONTyped(value?: AuthenticatorEmailStageRequest | null, ignoreDiscriminator: boolean = false): any {
170
+ if (value == null) {
171
+ return value;
172
+ }
173
+
174
+ return {
175
+
176
+ 'name': value['name'],
177
+ 'flow_set': value['flowSet'] == null ? undefined : ((value['flowSet'] as Array<any>).map(FlowSetRequestToJSON)),
178
+ 'configure_flow': value['configureFlow'],
179
+ 'friendly_name': value['friendlyName'],
180
+ 'use_global_settings': value['useGlobalSettings'],
181
+ 'host': value['host'],
182
+ 'port': value['port'],
183
+ 'username': value['username'],
184
+ 'password': value['password'],
185
+ 'use_tls': value['useTls'],
186
+ 'use_ssl': value['useSsl'],
187
+ 'timeout': value['timeout'],
188
+ 'from_address': value['fromAddress'],
189
+ 'subject': value['subject'],
190
+ 'token_expiry': value['tokenExpiry'],
191
+ 'template': value['template'],
192
+ };
193
+ }
194
+
@@ -33,6 +33,13 @@ import {
33
33
  AuthenticatorDuoChallengeFromJSONTyped,
34
34
  AuthenticatorDuoChallengeToJSON,
35
35
  } from './AuthenticatorDuoChallenge';
36
+ import type { AuthenticatorEmailChallenge } from './AuthenticatorEmailChallenge';
37
+ import {
38
+ instanceOfAuthenticatorEmailChallenge,
39
+ AuthenticatorEmailChallengeFromJSON,
40
+ AuthenticatorEmailChallengeFromJSONTyped,
41
+ AuthenticatorEmailChallengeToJSON,
42
+ } from './AuthenticatorEmailChallenge';
36
43
  import type { AuthenticatorSMSChallenge } from './AuthenticatorSMSChallenge';
37
44
  import {
38
45
  instanceOfAuthenticatorSMSChallenge,
@@ -193,7 +200,7 @@ import {
193
200
  *
194
201
  * @export
195
202
  */
196
- export type ChallengeTypes = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallenge | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallenge | { component: 'ak-source-oauth-apple' } & AppleLoginChallenge | { component: 'ak-source-plex' } & PlexAuthenticationChallenge | { component: 'ak-stage-access-denied' } & AccessDeniedChallenge | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallenge | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallenge | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallenge | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallenge | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallenge | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallenge | { component: 'ak-stage-autosubmit' } & AutosubmitChallenge | { component: 'ak-stage-captcha' } & CaptchaChallenge | { component: 'ak-stage-consent' } & ConsentChallenge | { component: 'ak-stage-dummy' } & DummyChallenge | { component: 'ak-stage-email' } & EmailChallenge | { component: 'ak-stage-flow-error' } & FlowErrorChallenge | { component: 'ak-stage-identification' } & IdentificationChallenge | { component: 'ak-stage-password' } & PasswordChallenge | { component: 'ak-stage-prompt' } & PromptChallenge | { component: 'ak-stage-session-end' } & SessionEndChallenge | { component: 'ak-stage-user-login' } & UserLoginChallenge | { component: 'xak-flow-frame' } & FrameChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge | { component: 'xak-flow-shell' } & ShellChallenge;
203
+ export type ChallengeTypes = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallenge | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallenge | { component: 'ak-source-oauth-apple' } & AppleLoginChallenge | { component: 'ak-source-plex' } & PlexAuthenticationChallenge | { component: 'ak-stage-access-denied' } & AccessDeniedChallenge | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallenge | { component: 'ak-stage-authenticator-email' } & AuthenticatorEmailChallenge | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallenge | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallenge | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallenge | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallenge | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallenge | { component: 'ak-stage-autosubmit' } & AutosubmitChallenge | { component: 'ak-stage-captcha' } & CaptchaChallenge | { component: 'ak-stage-consent' } & ConsentChallenge | { component: 'ak-stage-dummy' } & DummyChallenge | { component: 'ak-stage-email' } & EmailChallenge | { component: 'ak-stage-flow-error' } & FlowErrorChallenge | { component: 'ak-stage-identification' } & IdentificationChallenge | { component: 'ak-stage-password' } & PasswordChallenge | { component: 'ak-stage-prompt' } & PromptChallenge | { component: 'ak-stage-session-end' } & SessionEndChallenge | { component: 'ak-stage-user-login' } & UserLoginChallenge | { component: 'xak-flow-frame' } & FrameChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge | { component: 'xak-flow-shell' } & ShellChallenge;
197
204
 
198
205
  export function ChallengeTypesFromJSON(json: any): ChallengeTypes {
199
206
  return ChallengeTypesFromJSONTyped(json, false);
@@ -216,6 +223,8 @@ export function ChallengeTypesFromJSONTyped(json: any, ignoreDiscriminator: bool
216
223
  return Object.assign({}, AccessDeniedChallengeFromJSONTyped(json, true), { component: 'ak-stage-access-denied' } as const);
217
224
  case 'ak-stage-authenticator-duo':
218
225
  return Object.assign({}, AuthenticatorDuoChallengeFromJSONTyped(json, true), { component: 'ak-stage-authenticator-duo' } as const);
226
+ case 'ak-stage-authenticator-email':
227
+ return Object.assign({}, AuthenticatorEmailChallengeFromJSONTyped(json, true), { component: 'ak-stage-authenticator-email' } as const);
219
228
  case 'ak-stage-authenticator-sms':
220
229
  return Object.assign({}, AuthenticatorSMSChallengeFromJSONTyped(json, true), { component: 'ak-stage-authenticator-sms' } as const);
221
230
  case 'ak-stage-authenticator-static':
@@ -280,6 +289,8 @@ export function ChallengeTypesToJSONTyped(value?: ChallengeTypes | null, ignoreD
280
289
  return Object.assign({}, AccessDeniedChallengeToJSON(value), { component: 'ak-stage-access-denied' } as const);
281
290
  case 'ak-stage-authenticator-duo':
282
291
  return Object.assign({}, AuthenticatorDuoChallengeToJSON(value), { component: 'ak-stage-authenticator-duo' } as const);
292
+ case 'ak-stage-authenticator-email':
293
+ return Object.assign({}, AuthenticatorEmailChallengeToJSON(value), { component: 'ak-stage-authenticator-email' } as const);
283
294
  case 'ak-stage-authenticator-sms':
284
295
  return Object.assign({}, AuthenticatorSMSChallengeToJSON(value), { component: 'ak-stage-authenticator-sms' } as const);
285
296
  case 'ak-stage-authenticator-static':
@@ -23,6 +23,7 @@ export const DeviceClassesEnum = {
23
23
  Webauthn: 'webauthn',
24
24
  Duo: 'duo',
25
25
  Sms: 'sms',
26
+ Email: 'email',
26
27
  UnknownDefaultOpenApi: '11184809'
27
28
  } as const;
28
29
  export type DeviceClassesEnum = typeof DeviceClassesEnum[keyof typeof DeviceClassesEnum];
@@ -0,0 +1,98 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { GroupMember } from './GroupMember';
17
+ import {
18
+ GroupMemberFromJSON,
19
+ GroupMemberFromJSONTyped,
20
+ GroupMemberToJSON,
21
+ GroupMemberToJSONTyped,
22
+ } from './GroupMember';
23
+
24
+ /**
25
+ * Serializer for email authenticator devices
26
+ * @export
27
+ * @interface EmailDevice
28
+ */
29
+ export interface EmailDevice {
30
+ /**
31
+ * The human-readable name of this device.
32
+ * @type {string}
33
+ * @memberof EmailDevice
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof EmailDevice
40
+ */
41
+ readonly pk: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof EmailDevice
46
+ */
47
+ readonly email: string;
48
+ /**
49
+ *
50
+ * @type {GroupMember}
51
+ * @memberof EmailDevice
52
+ */
53
+ readonly user: GroupMember;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the EmailDevice interface.
58
+ */
59
+ export function instanceOfEmailDevice(value: object): value is EmailDevice {
60
+ if (!('name' in value) || value['name'] === undefined) return false;
61
+ if (!('pk' in value) || value['pk'] === undefined) return false;
62
+ if (!('email' in value) || value['email'] === undefined) return false;
63
+ if (!('user' in value) || value['user'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function EmailDeviceFromJSON(json: any): EmailDevice {
68
+ return EmailDeviceFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function EmailDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDevice {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'name': json['name'],
78
+ 'pk': json['pk'],
79
+ 'email': json['email'],
80
+ 'user': GroupMemberFromJSON(json['user']),
81
+ };
82
+ }
83
+
84
+ export function EmailDeviceToJSON(json: any): EmailDevice {
85
+ return EmailDeviceToJSONTyped(json, false);
86
+ }
87
+
88
+ export function EmailDeviceToJSONTyped(value?: Omit<EmailDevice, 'pk'|'email'|'user'> | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'name': value['name'],
96
+ };
97
+ }
98
+