@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
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* Serializer for email authenticator devices
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EmailDeviceRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface EmailDeviceRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The human-readable name of this device.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EmailDeviceRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the EmailDeviceRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfEmailDeviceRequest(value: object): value is EmailDeviceRequest {
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function EmailDeviceRequestFromJSON(json: any): EmailDeviceRequest {
|
|
39
|
+
return EmailDeviceRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function EmailDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDeviceRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function EmailDeviceRequestToJSON(json: any): EmailDeviceRequest {
|
|
53
|
+
return EmailDeviceRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function EmailDeviceRequestToJSONTyped(value?: EmailDeviceRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -26,6 +26,13 @@ import {
|
|
|
26
26
|
AuthenticatorDuoChallengeResponseRequestFromJSONTyped,
|
|
27
27
|
AuthenticatorDuoChallengeResponseRequestToJSON,
|
|
28
28
|
} from './AuthenticatorDuoChallengeResponseRequest';
|
|
29
|
+
import type { AuthenticatorEmailChallengeResponseRequest } from './AuthenticatorEmailChallengeResponseRequest';
|
|
30
|
+
import {
|
|
31
|
+
instanceOfAuthenticatorEmailChallengeResponseRequest,
|
|
32
|
+
AuthenticatorEmailChallengeResponseRequestFromJSON,
|
|
33
|
+
AuthenticatorEmailChallengeResponseRequestFromJSONTyped,
|
|
34
|
+
AuthenticatorEmailChallengeResponseRequestToJSON,
|
|
35
|
+
} from './AuthenticatorEmailChallengeResponseRequest';
|
|
29
36
|
import type { AuthenticatorSMSChallengeResponseRequest } from './AuthenticatorSMSChallengeResponseRequest';
|
|
30
37
|
import {
|
|
31
38
|
instanceOfAuthenticatorSMSChallengeResponseRequest,
|
|
@@ -165,7 +172,7 @@ import {
|
|
|
165
172
|
*
|
|
166
173
|
* @export
|
|
167
174
|
*/
|
|
168
|
-
export type FlowChallengeResponseRequest = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallengeResponseRequest | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallengeResponseRequest | { component: 'ak-source-oauth-apple' } & AppleChallengeResponseRequest | { component: 'ak-source-plex' } & PlexAuthenticationChallengeResponseRequest | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallengeResponseRequest | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallengeResponseRequest | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallengeResponseRequest | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallengeResponseRequest | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallengeResponseRequest | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallengeResponseRequest | { component: 'ak-stage-autosubmit' } & AutoSubmitChallengeResponseRequest | { component: 'ak-stage-captcha' } & CaptchaChallengeResponseRequest | { component: 'ak-stage-consent' } & ConsentChallengeResponseRequest | { component: 'ak-stage-dummy' } & DummyChallengeResponseRequest | { component: 'ak-stage-email' } & EmailChallengeResponseRequest | { component: 'ak-stage-identification' } & IdentificationChallengeResponseRequest | { component: 'ak-stage-password' } & PasswordChallengeResponseRequest | { component: 'ak-stage-prompt' } & PromptChallengeResponseRequest | { component: 'ak-stage-user-login' } & UserLoginChallengeResponseRequest | { component: 'xak-flow-frame' } & FrameChallengeResponseRequest | { component: 'xak-flow-redirect' } & RedirectChallengeResponseRequest;
|
|
175
|
+
export type FlowChallengeResponseRequest = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallengeResponseRequest | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallengeResponseRequest | { component: 'ak-source-oauth-apple' } & AppleChallengeResponseRequest | { component: 'ak-source-plex' } & PlexAuthenticationChallengeResponseRequest | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallengeResponseRequest | { component: 'ak-stage-authenticator-email' } & AuthenticatorEmailChallengeResponseRequest | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallengeResponseRequest | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallengeResponseRequest | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallengeResponseRequest | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallengeResponseRequest | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallengeResponseRequest | { component: 'ak-stage-autosubmit' } & AutoSubmitChallengeResponseRequest | { component: 'ak-stage-captcha' } & CaptchaChallengeResponseRequest | { component: 'ak-stage-consent' } & ConsentChallengeResponseRequest | { component: 'ak-stage-dummy' } & DummyChallengeResponseRequest | { component: 'ak-stage-email' } & EmailChallengeResponseRequest | { component: 'ak-stage-identification' } & IdentificationChallengeResponseRequest | { component: 'ak-stage-password' } & PasswordChallengeResponseRequest | { component: 'ak-stage-prompt' } & PromptChallengeResponseRequest | { component: 'ak-stage-user-login' } & UserLoginChallengeResponseRequest | { component: 'xak-flow-frame' } & FrameChallengeResponseRequest | { component: 'xak-flow-redirect' } & RedirectChallengeResponseRequest;
|
|
169
176
|
|
|
170
177
|
export function FlowChallengeResponseRequestFromJSON(json: any): FlowChallengeResponseRequest {
|
|
171
178
|
return FlowChallengeResponseRequestFromJSONTyped(json, false);
|
|
@@ -186,6 +193,8 @@ export function FlowChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
186
193
|
return Object.assign({}, PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-source-plex' } as const);
|
|
187
194
|
case 'ak-stage-authenticator-duo':
|
|
188
195
|
return Object.assign({}, AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-stage-authenticator-duo' } as const);
|
|
196
|
+
case 'ak-stage-authenticator-email':
|
|
197
|
+
return Object.assign({}, AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-stage-authenticator-email' } as const);
|
|
189
198
|
case 'ak-stage-authenticator-sms':
|
|
190
199
|
return Object.assign({}, AuthenticatorSMSChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-stage-authenticator-sms' } as const);
|
|
191
200
|
case 'ak-stage-authenticator-static':
|
|
@@ -242,6 +251,8 @@ export function FlowChallengeResponseRequestToJSONTyped(value?: FlowChallengeRes
|
|
|
242
251
|
return Object.assign({}, PlexAuthenticationChallengeResponseRequestToJSON(value), { component: 'ak-source-plex' } as const);
|
|
243
252
|
case 'ak-stage-authenticator-duo':
|
|
244
253
|
return Object.assign({}, AuthenticatorDuoChallengeResponseRequestToJSON(value), { component: 'ak-stage-authenticator-duo' } as const);
|
|
254
|
+
case 'ak-stage-authenticator-email':
|
|
255
|
+
return Object.assign({}, AuthenticatorEmailChallengeResponseRequestToJSON(value), { component: 'ak-stage-authenticator-email' } as const);
|
|
245
256
|
case 'ak-stage-authenticator-sms':
|
|
246
257
|
return Object.assign({}, AuthenticatorSMSChallengeResponseRequestToJSON(value), { component: 'ak-stage-authenticator-sms' } as const);
|
|
247
258
|
case 'ak-stage-authenticator-static':
|
|
@@ -100,6 +100,42 @@ export interface GeoIPPolicy {
|
|
|
100
100
|
* @memberof GeoIPPolicy
|
|
101
101
|
*/
|
|
102
102
|
readonly countriesObj: Array<DetailedCountryField>;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof GeoIPPolicy
|
|
107
|
+
*/
|
|
108
|
+
checkHistoryDistance?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof GeoIPPolicy
|
|
113
|
+
*/
|
|
114
|
+
historyMaxDistanceKm?: number;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof GeoIPPolicy
|
|
119
|
+
*/
|
|
120
|
+
distanceToleranceKm?: number;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof GeoIPPolicy
|
|
125
|
+
*/
|
|
126
|
+
historyLoginCount?: number;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {boolean}
|
|
130
|
+
* @memberof GeoIPPolicy
|
|
131
|
+
*/
|
|
132
|
+
checkImpossibleTravel?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @memberof GeoIPPolicy
|
|
137
|
+
*/
|
|
138
|
+
impossibleToleranceKm?: number;
|
|
103
139
|
}
|
|
104
140
|
|
|
105
141
|
/**
|
|
@@ -139,6 +175,12 @@ export function GeoIPPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
139
175
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
140
176
|
'countries': ((json['countries'] as Array<any>).map(CountryCodeEnumFromJSON)),
|
|
141
177
|
'countriesObj': ((json['countries_obj'] as Array<any>).map(DetailedCountryFieldFromJSON)),
|
|
178
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
179
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
180
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
181
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
182
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
183
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
142
184
|
};
|
|
143
185
|
}
|
|
144
186
|
|
|
@@ -157,6 +199,12 @@ export function GeoIPPolicyToJSONTyped(value?: Omit<GeoIPPolicy, 'pk'|'component
|
|
|
157
199
|
'execution_logging': value['executionLogging'],
|
|
158
200
|
'asns': value['asns'],
|
|
159
201
|
'countries': ((value['countries'] as Array<any>).map(CountryCodeEnumToJSON)),
|
|
202
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
203
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
204
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
205
|
+
'history_login_count': value['historyLoginCount'],
|
|
206
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
207
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
160
208
|
};
|
|
161
209
|
}
|
|
162
210
|
|
|
@@ -51,6 +51,42 @@ export interface GeoIPPolicyRequest {
|
|
|
51
51
|
* @memberof GeoIPPolicyRequest
|
|
52
52
|
*/
|
|
53
53
|
countries: Array<CountryCodeEnum>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof GeoIPPolicyRequest
|
|
58
|
+
*/
|
|
59
|
+
checkHistoryDistance?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GeoIPPolicyRequest
|
|
64
|
+
*/
|
|
65
|
+
historyMaxDistanceKm?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof GeoIPPolicyRequest
|
|
70
|
+
*/
|
|
71
|
+
distanceToleranceKm?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof GeoIPPolicyRequest
|
|
76
|
+
*/
|
|
77
|
+
historyLoginCount?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof GeoIPPolicyRequest
|
|
82
|
+
*/
|
|
83
|
+
checkImpossibleTravel?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof GeoIPPolicyRequest
|
|
88
|
+
*/
|
|
89
|
+
impossibleToleranceKm?: number;
|
|
54
90
|
}
|
|
55
91
|
|
|
56
92
|
/**
|
|
@@ -76,6 +112,12 @@ export function GeoIPPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
76
112
|
'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
|
|
77
113
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
78
114
|
'countries': ((json['countries'] as Array<any>).map(CountryCodeEnumFromJSON)),
|
|
115
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
116
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
117
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
118
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
119
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
120
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
79
121
|
};
|
|
80
122
|
}
|
|
81
123
|
|
|
@@ -94,6 +136,12 @@ export function GeoIPPolicyRequestToJSONTyped(value?: GeoIPPolicyRequest | null,
|
|
|
94
136
|
'execution_logging': value['executionLogging'],
|
|
95
137
|
'asns': value['asns'],
|
|
96
138
|
'countries': ((value['countries'] as Array<any>).map(CountryCodeEnumToJSON)),
|
|
139
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
140
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
141
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
142
|
+
'history_login_count': value['historyLoginCount'],
|
|
143
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
144
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
97
145
|
};
|
|
98
146
|
}
|
|
99
147
|
|
package/src/models/ModelEnum.ts
CHANGED
|
@@ -66,6 +66,8 @@ export const ModelEnum = {
|
|
|
66
66
|
AuthentikSourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|
|
67
67
|
AuthentikStagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
|
|
68
68
|
AuthentikStagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
|
|
69
|
+
AuthentikStagesAuthenticatorEmailAuthenticatoremailstage: 'authentik_stages_authenticator_email.authenticatoremailstage',
|
|
70
|
+
AuthentikStagesAuthenticatorEmailEmaildevice: 'authentik_stages_authenticator_email.emaildevice',
|
|
69
71
|
AuthentikStagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
|
|
70
72
|
AuthentikStagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
|
|
71
73
|
AuthentikStagesAuthenticatorStaticAuthenticatorstaticstage: 'authentik_stages_authenticator_static.authenticatorstaticstage',
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { Pagination } from './Pagination';
|
|
17
|
+
import {
|
|
18
|
+
PaginationFromJSON,
|
|
19
|
+
PaginationFromJSONTyped,
|
|
20
|
+
PaginationToJSON,
|
|
21
|
+
PaginationToJSONTyped,
|
|
22
|
+
} from './Pagination';
|
|
23
|
+
import type { AuthenticatorEmailStage } from './AuthenticatorEmailStage';
|
|
24
|
+
import {
|
|
25
|
+
AuthenticatorEmailStageFromJSON,
|
|
26
|
+
AuthenticatorEmailStageFromJSONTyped,
|
|
27
|
+
AuthenticatorEmailStageToJSON,
|
|
28
|
+
AuthenticatorEmailStageToJSONTyped,
|
|
29
|
+
} from './AuthenticatorEmailStage';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedAuthenticatorEmailStageList
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedAuthenticatorEmailStageList {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Pagination}
|
|
40
|
+
* @memberof PaginatedAuthenticatorEmailStageList
|
|
41
|
+
*/
|
|
42
|
+
pagination: Pagination;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<AuthenticatorEmailStage>}
|
|
46
|
+
* @memberof PaginatedAuthenticatorEmailStageList
|
|
47
|
+
*/
|
|
48
|
+
results: Array<AuthenticatorEmailStage>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedAuthenticatorEmailStageList interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedAuthenticatorEmailStageList(value: object): value is PaginatedAuthenticatorEmailStageList {
|
|
55
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
56
|
+
if (!('results' in value) || value['results'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedAuthenticatorEmailStageListFromJSON(json: any): PaginatedAuthenticatorEmailStageList {
|
|
61
|
+
return PaginatedAuthenticatorEmailStageListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedAuthenticatorEmailStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAuthenticatorEmailStageList {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
71
|
+
'results': ((json['results'] as Array<any>).map(AuthenticatorEmailStageFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedAuthenticatorEmailStageListToJSON(json: any): PaginatedAuthenticatorEmailStageList {
|
|
76
|
+
return PaginatedAuthenticatorEmailStageListToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedAuthenticatorEmailStageListToJSONTyped(value?: PaginatedAuthenticatorEmailStageList | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'pagination': PaginationToJSON(value['pagination']),
|
|
87
|
+
'results': ((value['results'] as Array<any>).map(AuthenticatorEmailStageToJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { EmailDevice } from './EmailDevice';
|
|
17
|
+
import {
|
|
18
|
+
EmailDeviceFromJSON,
|
|
19
|
+
EmailDeviceFromJSONTyped,
|
|
20
|
+
EmailDeviceToJSON,
|
|
21
|
+
EmailDeviceToJSONTyped,
|
|
22
|
+
} from './EmailDevice';
|
|
23
|
+
import type { Pagination } from './Pagination';
|
|
24
|
+
import {
|
|
25
|
+
PaginationFromJSON,
|
|
26
|
+
PaginationFromJSONTyped,
|
|
27
|
+
PaginationToJSON,
|
|
28
|
+
PaginationToJSONTyped,
|
|
29
|
+
} from './Pagination';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedEmailDeviceList
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedEmailDeviceList {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Pagination}
|
|
40
|
+
* @memberof PaginatedEmailDeviceList
|
|
41
|
+
*/
|
|
42
|
+
pagination: Pagination;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<EmailDevice>}
|
|
46
|
+
* @memberof PaginatedEmailDeviceList
|
|
47
|
+
*/
|
|
48
|
+
results: Array<EmailDevice>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedEmailDeviceList interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedEmailDeviceList(value: object): value is PaginatedEmailDeviceList {
|
|
55
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
56
|
+
if (!('results' in value) || value['results'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedEmailDeviceListFromJSON(json: any): PaginatedEmailDeviceList {
|
|
61
|
+
return PaginatedEmailDeviceListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedEmailDeviceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEmailDeviceList {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
71
|
+
'results': ((json['results'] as Array<any>).map(EmailDeviceFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedEmailDeviceListToJSON(json: any): PaginatedEmailDeviceList {
|
|
76
|
+
return PaginatedEmailDeviceListToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedEmailDeviceListToJSONTyped(value?: PaginatedEmailDeviceList | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'pagination': PaginationToJSON(value['pagination']),
|
|
87
|
+
'results': ((value['results'] as Array<any>).map(EmailDeviceToJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,193 @@
|
|
|
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 PatchedAuthenticatorEmailStageRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface PatchedAuthenticatorEmailStageRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<FlowSetRequest>}
|
|
39
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
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 PatchedAuthenticatorEmailStageRequest
|
|
46
|
+
*/
|
|
47
|
+
configureFlow?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
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 PatchedAuthenticatorEmailStageRequest
|
|
58
|
+
*/
|
|
59
|
+
useGlobalSettings?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
64
|
+
*/
|
|
65
|
+
host?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
70
|
+
*/
|
|
71
|
+
port?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
76
|
+
*/
|
|
77
|
+
username?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
82
|
+
*/
|
|
83
|
+
password?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
88
|
+
*/
|
|
89
|
+
useTls?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
94
|
+
*/
|
|
95
|
+
useSsl?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
100
|
+
*/
|
|
101
|
+
timeout?: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
106
|
+
*/
|
|
107
|
+
fromAddress?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
112
|
+
*/
|
|
113
|
+
subject?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
118
|
+
*/
|
|
119
|
+
tokenExpiry?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof PatchedAuthenticatorEmailStageRequest
|
|
124
|
+
*/
|
|
125
|
+
template?: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Check if a given object implements the PatchedAuthenticatorEmailStageRequest interface.
|
|
130
|
+
*/
|
|
131
|
+
export function instanceOfPatchedAuthenticatorEmailStageRequest(value: object): value is PatchedAuthenticatorEmailStageRequest {
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function PatchedAuthenticatorEmailStageRequestFromJSON(json: any): PatchedAuthenticatorEmailStageRequest {
|
|
136
|
+
return PatchedAuthenticatorEmailStageRequestFromJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function PatchedAuthenticatorEmailStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorEmailStageRequest {
|
|
140
|
+
if (json == null) {
|
|
141
|
+
return json;
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
|
|
145
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
146
|
+
'flowSet': json['flow_set'] == null ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
|
|
147
|
+
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
|
|
148
|
+
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
|
|
149
|
+
'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
|
|
150
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
151
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
152
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
153
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
154
|
+
'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
|
|
155
|
+
'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
|
|
156
|
+
'timeout': json['timeout'] == null ? undefined : json['timeout'],
|
|
157
|
+
'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
|
|
158
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
159
|
+
'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
|
|
160
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function PatchedAuthenticatorEmailStageRequestToJSON(json: any): PatchedAuthenticatorEmailStageRequest {
|
|
165
|
+
return PatchedAuthenticatorEmailStageRequestToJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function PatchedAuthenticatorEmailStageRequestToJSONTyped(value?: PatchedAuthenticatorEmailStageRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
169
|
+
if (value == null) {
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
|
|
175
|
+
'name': value['name'],
|
|
176
|
+
'flow_set': value['flowSet'] == null ? undefined : ((value['flowSet'] as Array<any>).map(FlowSetRequestToJSON)),
|
|
177
|
+
'configure_flow': value['configureFlow'],
|
|
178
|
+
'friendly_name': value['friendlyName'],
|
|
179
|
+
'use_global_settings': value['useGlobalSettings'],
|
|
180
|
+
'host': value['host'],
|
|
181
|
+
'port': value['port'],
|
|
182
|
+
'username': value['username'],
|
|
183
|
+
'password': value['password'],
|
|
184
|
+
'use_tls': value['useTls'],
|
|
185
|
+
'use_ssl': value['useSsl'],
|
|
186
|
+
'timeout': value['timeout'],
|
|
187
|
+
'from_address': value['fromAddress'],
|
|
188
|
+
'subject': value['subject'],
|
|
189
|
+
'token_expiry': value['tokenExpiry'],
|
|
190
|
+
'template': value['template'],
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|