@goauthentik/api 2024.12.3-1739200400 → 2024.12.3-1739801838
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -0
- package/dist/apis/AuthenticatorsApi.d.ts +145 -1
- package/dist/apis/AuthenticatorsApi.js +458 -0
- package/dist/apis/RbacApi.d.ts +4 -0
- package/dist/apis/RbacApi.js +4 -0
- package/dist/apis/SourcesApi.d.ts +1 -0
- package/dist/apis/SourcesApi.js +3 -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/SourcesApi.d.ts +1 -0
- package/dist/esm/apis/SourcesApi.js +3 -0
- package/dist/esm/apis/StagesApi.d.ts +99 -1
- package/dist/esm/apis/StagesApi.js +311 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AuthenticatorEmailChallenge.d.ts +72 -0
- package/dist/esm/models/AuthenticatorEmailChallenge.js +58 -0
- package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
- package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.js +45 -0
- package/dist/esm/models/AuthenticatorEmailStage.d.ts +153 -0
- package/dist/esm/models/AuthenticatorEmailStage.js +89 -0
- package/dist/esm/models/AuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/esm/models/AuthenticatorEmailStageRequest.js +74 -0
- package/dist/esm/models/ChallengeTypes.d.ts +3 -0
- package/dist/esm/models/ChallengeTypes.js +5 -0
- package/dist/esm/models/DeviceClassesEnum.d.ts +1 -0
- package/dist/esm/models/DeviceClassesEnum.js +1 -0
- package/dist/esm/models/EmailDevice.d.ts +51 -0
- package/dist/esm/models/EmailDevice.js +53 -0
- package/dist/esm/models/EmailDeviceRequest.d.ts +32 -0
- package/dist/esm/models/EmailDeviceRequest.js +43 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/ModelEnum.d.ts +2 -0
- package/dist/esm/models/ModelEnum.js +2 -0
- package/dist/esm/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
- package/dist/esm/models/PaginatedAuthenticatorEmailStageList.js +49 -0
- package/dist/esm/models/PaginatedEmailDeviceList.d.ts +40 -0
- package/dist/esm/models/PaginatedEmailDeviceList.js +49 -0
- package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.js +72 -0
- package/dist/esm/models/PatchedEmailDeviceRequest.d.ts +32 -0
- package/dist/esm/models/PatchedEmailDeviceRequest.js +41 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
- package/dist/models/AuthenticatorEmailChallenge.js +65 -0
- package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
- package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
- package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
- package/dist/models/AuthenticatorEmailStage.js +96 -0
- package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
- package/dist/models/ChallengeTypes.d.ts +3 -0
- package/dist/models/ChallengeTypes.js +5 -0
- package/dist/models/DeviceClassesEnum.d.ts +1 -0
- package/dist/models/DeviceClassesEnum.js +1 -0
- package/dist/models/EmailDevice.d.ts +51 -0
- package/dist/models/EmailDevice.js +60 -0
- package/dist/models/EmailDeviceRequest.d.ts +32 -0
- package/dist/models/EmailDeviceRequest.js +50 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/ModelEnum.d.ts +2 -0
- package/dist/models/ModelEnum.js +2 -0
- package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
- package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
- package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
- package/dist/models/PaginatedEmailDeviceList.js +56 -0
- package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
- package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
- package/dist/models/PatchedEmailDeviceRequest.js +48 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/AuthenticatorsApi.ts +617 -0
- package/src/apis/RbacApi.ts +4 -0
- package/src/apis/SourcesApi.ts +5 -0
- package/src/apis/StagesApi.ts +436 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/AuthenticatorEmailChallenge.ts +130 -0
- package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
- package/src/models/AuthenticatorEmailStage.ts +234 -0
- package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
- package/src/models/ChallengeTypes.ts +12 -1
- package/src/models/DeviceClassesEnum.ts +1 -0
- package/src/models/EmailDevice.ts +98 -0
- package/src/models/EmailDeviceRequest.ts +66 -0
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- package/src/models/ModelEnum.ts +2 -0
- package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
- package/src/models/PaginatedEmailDeviceList.ts +90 -0
- package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
- package/src/models/PatchedEmailDeviceRequest.ts +65 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,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':
|
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
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 PatchedEmailDeviceRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedEmailDeviceRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The human-readable name of this device.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PatchedEmailDeviceRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PatchedEmailDeviceRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPatchedEmailDeviceRequest(value: object): value is PatchedEmailDeviceRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PatchedEmailDeviceRequestFromJSON(json: any): PatchedEmailDeviceRequest {
|
|
38
|
+
return PatchedEmailDeviceRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PatchedEmailDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedEmailDeviceRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PatchedEmailDeviceRequestToJSON(json: any): PatchedEmailDeviceRequest {
|
|
52
|
+
return PatchedEmailDeviceRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PatchedEmailDeviceRequestToJSONTyped(value?: PatchedEmailDeviceRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'name': value['name'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
package/src/models/index.ts
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';
|