@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.
- 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/GeoIPPolicy.d.ts +36 -0
- package/dist/esm/models/GeoIPPolicy.js +12 -0
- package/dist/esm/models/GeoIPPolicyRequest.d.ts +36 -0
- package/dist/esm/models/GeoIPPolicyRequest.js +12 -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/PatchedGeoIPPolicyRequest.d.ts +36 -0
- package/dist/esm/models/PatchedGeoIPPolicyRequest.js +12 -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/GeoIPPolicy.d.ts +36 -0
- package/dist/models/GeoIPPolicy.js +12 -0
- package/dist/models/GeoIPPolicyRequest.d.ts +36 -0
- package/dist/models/GeoIPPolicyRequest.js +12 -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/PatchedGeoIPPolicyRequest.d.ts +36 -0
- package/dist/models/PatchedGeoIPPolicyRequest.js +12 -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/GeoIPPolicy.ts +48 -0
- package/src/models/GeoIPPolicyRequest.ts +48 -0
- 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/PatchedGeoIPPolicyRequest.ts +48 -0
- package/src/models/index.ts +10 -0
|
@@ -40,6 +40,42 @@ export interface PatchedGeoIPPolicyRequest {
|
|
|
40
40
|
* @memberof PatchedGeoIPPolicyRequest
|
|
41
41
|
*/
|
|
42
42
|
countries?: Array<CountryCodeEnum>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
47
|
+
*/
|
|
48
|
+
checkHistoryDistance?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
53
|
+
*/
|
|
54
|
+
historyMaxDistanceKm?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
59
|
+
*/
|
|
60
|
+
distanceToleranceKm?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
65
|
+
*/
|
|
66
|
+
historyLoginCount?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
71
|
+
*/
|
|
72
|
+
checkImpossibleTravel?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
77
|
+
*/
|
|
78
|
+
impossibleToleranceKm?: number;
|
|
43
79
|
}
|
|
44
80
|
/**
|
|
45
81
|
* Check if a given object implements the PatchedGeoIPPolicyRequest interface.
|
|
@@ -30,6 +30,12 @@ export function PatchedGeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
30
30
|
'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
|
|
31
31
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
32
32
|
'countries': json['countries'] == null ? undefined : (json['countries'].map(CountryCodeEnumFromJSON)),
|
|
33
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
34
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
35
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
36
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
37
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
38
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
33
39
|
};
|
|
34
40
|
}
|
|
35
41
|
export function PatchedGeoIPPolicyRequestToJSON(json) {
|
|
@@ -44,5 +50,11 @@ export function PatchedGeoIPPolicyRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
44
50
|
'execution_logging': value['executionLogging'],
|
|
45
51
|
'asns': value['asns'],
|
|
46
52
|
'countries': value['countries'] == null ? undefined : (value['countries'].map(CountryCodeEnumToJSON)),
|
|
53
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
54
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
55
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
56
|
+
'history_login_count': value['historyLoginCount'],
|
|
57
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
58
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
47
59
|
};
|
|
48
60
|
}
|
|
@@ -25,6 +25,10 @@ export * from './AuthenticatorDuoStage';
|
|
|
25
25
|
export * from './AuthenticatorDuoStageDeviceImportResponse';
|
|
26
26
|
export * from './AuthenticatorDuoStageManualDeviceImportRequest';
|
|
27
27
|
export * from './AuthenticatorDuoStageRequest';
|
|
28
|
+
export * from './AuthenticatorEmailChallenge';
|
|
29
|
+
export * from './AuthenticatorEmailChallengeResponseRequest';
|
|
30
|
+
export * from './AuthenticatorEmailStage';
|
|
31
|
+
export * from './AuthenticatorEmailStageRequest';
|
|
28
32
|
export * from './AuthenticatorEndpointGDTCStage';
|
|
29
33
|
export * from './AuthenticatorEndpointGDTCStageRequest';
|
|
30
34
|
export * from './AuthenticatorSMSChallenge';
|
|
@@ -112,6 +116,8 @@ export * from './DuoDeviceRequest';
|
|
|
112
116
|
export * from './DuoResponseEnum';
|
|
113
117
|
export * from './EmailChallenge';
|
|
114
118
|
export * from './EmailChallengeResponseRequest';
|
|
119
|
+
export * from './EmailDevice';
|
|
120
|
+
export * from './EmailDeviceRequest';
|
|
115
121
|
export * from './EmailStage';
|
|
116
122
|
export * from './EmailStageRequest';
|
|
117
123
|
export * from './Endpoint';
|
|
@@ -267,6 +273,7 @@ export * from './PaginatedApplicationEntitlementList';
|
|
|
267
273
|
export * from './PaginatedApplicationList';
|
|
268
274
|
export * from './PaginatedAuthenticatedSessionList';
|
|
269
275
|
export * from './PaginatedAuthenticatorDuoStageList';
|
|
276
|
+
export * from './PaginatedAuthenticatorEmailStageList';
|
|
270
277
|
export * from './PaginatedAuthenticatorEndpointGDTCStageList';
|
|
271
278
|
export * from './PaginatedAuthenticatorSMSStageList';
|
|
272
279
|
export * from './PaginatedAuthenticatorStaticStageList';
|
|
@@ -285,6 +292,7 @@ export * from './PaginatedDomainList';
|
|
|
285
292
|
export * from './PaginatedDummyPolicyList';
|
|
286
293
|
export * from './PaginatedDummyStageList';
|
|
287
294
|
export * from './PaginatedDuoDeviceList';
|
|
295
|
+
export * from './PaginatedEmailDeviceList';
|
|
288
296
|
export * from './PaginatedEmailStageList';
|
|
289
297
|
export * from './PaginatedEndpointDeviceList';
|
|
290
298
|
export * from './PaginatedEndpointList';
|
|
@@ -405,6 +413,7 @@ export * from './PasswordStageRequest';
|
|
|
405
413
|
export * from './PatchedApplicationEntitlementRequest';
|
|
406
414
|
export * from './PatchedApplicationRequest';
|
|
407
415
|
export * from './PatchedAuthenticatorDuoStageRequest';
|
|
416
|
+
export * from './PatchedAuthenticatorEmailStageRequest';
|
|
408
417
|
export * from './PatchedAuthenticatorEndpointGDTCStageRequest';
|
|
409
418
|
export * from './PatchedAuthenticatorSMSStageRequest';
|
|
410
419
|
export * from './PatchedAuthenticatorStaticStageRequest';
|
|
@@ -423,6 +432,7 @@ export * from './PatchedDomainRequest';
|
|
|
423
432
|
export * from './PatchedDummyPolicyRequest';
|
|
424
433
|
export * from './PatchedDummyStageRequest';
|
|
425
434
|
export * from './PatchedDuoDeviceRequest';
|
|
435
|
+
export * from './PatchedEmailDeviceRequest';
|
|
426
436
|
export * from './PatchedEmailStageRequest';
|
|
427
437
|
export * from './PatchedEndpointDeviceRequest';
|
|
428
438
|
export * from './PatchedEndpointRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -27,6 +27,10 @@ export * from './AuthenticatorDuoStage';
|
|
|
27
27
|
export * from './AuthenticatorDuoStageDeviceImportResponse';
|
|
28
28
|
export * from './AuthenticatorDuoStageManualDeviceImportRequest';
|
|
29
29
|
export * from './AuthenticatorDuoStageRequest';
|
|
30
|
+
export * from './AuthenticatorEmailChallenge';
|
|
31
|
+
export * from './AuthenticatorEmailChallengeResponseRequest';
|
|
32
|
+
export * from './AuthenticatorEmailStage';
|
|
33
|
+
export * from './AuthenticatorEmailStageRequest';
|
|
30
34
|
export * from './AuthenticatorEndpointGDTCStage';
|
|
31
35
|
export * from './AuthenticatorEndpointGDTCStageRequest';
|
|
32
36
|
export * from './AuthenticatorSMSChallenge';
|
|
@@ -114,6 +118,8 @@ export * from './DuoDeviceRequest';
|
|
|
114
118
|
export * from './DuoResponseEnum';
|
|
115
119
|
export * from './EmailChallenge';
|
|
116
120
|
export * from './EmailChallengeResponseRequest';
|
|
121
|
+
export * from './EmailDevice';
|
|
122
|
+
export * from './EmailDeviceRequest';
|
|
117
123
|
export * from './EmailStage';
|
|
118
124
|
export * from './EmailStageRequest';
|
|
119
125
|
export * from './Endpoint';
|
|
@@ -269,6 +275,7 @@ export * from './PaginatedApplicationEntitlementList';
|
|
|
269
275
|
export * from './PaginatedApplicationList';
|
|
270
276
|
export * from './PaginatedAuthenticatedSessionList';
|
|
271
277
|
export * from './PaginatedAuthenticatorDuoStageList';
|
|
278
|
+
export * from './PaginatedAuthenticatorEmailStageList';
|
|
272
279
|
export * from './PaginatedAuthenticatorEndpointGDTCStageList';
|
|
273
280
|
export * from './PaginatedAuthenticatorSMSStageList';
|
|
274
281
|
export * from './PaginatedAuthenticatorStaticStageList';
|
|
@@ -287,6 +294,7 @@ export * from './PaginatedDomainList';
|
|
|
287
294
|
export * from './PaginatedDummyPolicyList';
|
|
288
295
|
export * from './PaginatedDummyStageList';
|
|
289
296
|
export * from './PaginatedDuoDeviceList';
|
|
297
|
+
export * from './PaginatedEmailDeviceList';
|
|
290
298
|
export * from './PaginatedEmailStageList';
|
|
291
299
|
export * from './PaginatedEndpointDeviceList';
|
|
292
300
|
export * from './PaginatedEndpointList';
|
|
@@ -407,6 +415,7 @@ export * from './PasswordStageRequest';
|
|
|
407
415
|
export * from './PatchedApplicationEntitlementRequest';
|
|
408
416
|
export * from './PatchedApplicationRequest';
|
|
409
417
|
export * from './PatchedAuthenticatorDuoStageRequest';
|
|
418
|
+
export * from './PatchedAuthenticatorEmailStageRequest';
|
|
410
419
|
export * from './PatchedAuthenticatorEndpointGDTCStageRequest';
|
|
411
420
|
export * from './PatchedAuthenticatorSMSStageRequest';
|
|
412
421
|
export * from './PatchedAuthenticatorStaticStageRequest';
|
|
@@ -425,6 +434,7 @@ export * from './PatchedDomainRequest';
|
|
|
425
434
|
export * from './PatchedDummyPolicyRequest';
|
|
426
435
|
export * from './PatchedDummyStageRequest';
|
|
427
436
|
export * from './PatchedDuoDeviceRequest';
|
|
437
|
+
export * from './PatchedEmailDeviceRequest';
|
|
428
438
|
export * from './PatchedEmailStageRequest';
|
|
429
439
|
export * from './PatchedEndpointDeviceRequest';
|
|
430
440
|
export * from './PatchedEndpointRequest';
|
package/dist/models/AppEnum.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare const AppEnum: {
|
|
|
44
44
|
readonly AuthentikSourcesScim: "authentik.sources.scim";
|
|
45
45
|
readonly AuthentikStagesAuthenticator: "authentik.stages.authenticator";
|
|
46
46
|
readonly AuthentikStagesAuthenticatorDuo: "authentik.stages.authenticator_duo";
|
|
47
|
+
readonly AuthentikStagesAuthenticatorEmail: "authentik.stages.authenticator_email";
|
|
47
48
|
readonly AuthentikStagesAuthenticatorSms: "authentik.stages.authenticator_sms";
|
|
48
49
|
readonly AuthentikStagesAuthenticatorStatic: "authentik.stages.authenticator_static";
|
|
49
50
|
readonly AuthentikStagesAuthenticatorTotp: "authentik.stages.authenticator_totp";
|
package/dist/models/AppEnum.js
CHANGED
|
@@ -54,6 +54,7 @@ exports.AppEnum = {
|
|
|
54
54
|
AuthentikSourcesScim: 'authentik.sources.scim',
|
|
55
55
|
AuthentikStagesAuthenticator: 'authentik.stages.authenticator',
|
|
56
56
|
AuthentikStagesAuthenticatorDuo: 'authentik.stages.authenticator_duo',
|
|
57
|
+
AuthentikStagesAuthenticatorEmail: 'authentik.stages.authenticator_email',
|
|
57
58
|
AuthentikStagesAuthenticatorSms: 'authentik.stages.authenticator_sms',
|
|
58
59
|
AuthentikStagesAuthenticatorStatic: 'authentik.stages.authenticator_static',
|
|
59
60
|
AuthentikStagesAuthenticatorTotp: 'authentik.stages.authenticator_totp',
|
|
@@ -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
|
+
}
|