@goauthentik/api 2024.8.3-1729166675 → 2024.8.3-1729630021
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 +11 -0
- package/dist/apis/AdminApi.d.ts +26 -1
- package/dist/apis/AdminApi.js +79 -0
- package/dist/apis/AuthenticatorsApi.d.ts +110 -1
- package/dist/apis/AuthenticatorsApi.js +347 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/StagesApi.d.ts +85 -1
- package/dist/apis/StagesApi.js +268 -0
- package/dist/esm/apis/AdminApi.d.ts +26 -1
- package/dist/esm/apis/AdminApi.js +80 -1
- package/dist/esm/apis/AuthenticatorsApi.d.ts +110 -1
- package/dist/esm/apis/AuthenticatorsApi.js +348 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/StagesApi.d.ts +85 -1
- package/dist/esm/apis/StagesApi.js +269 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStage.js +64 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.js +54 -0
- package/dist/esm/models/ChallengeTypes.d.ts +3 -0
- package/dist/esm/models/ChallengeTypes.js +5 -0
- package/dist/esm/models/Device.d.ts +2 -2
- package/dist/esm/models/EndpointDevice.d.ts +37 -0
- package/dist/esm/models/EndpointDevice.js +46 -0
- package/dist/esm/models/EndpointDeviceRequest.d.ts +37 -0
- package/dist/esm/models/EndpointDeviceRequest.js +46 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/FrameChallenge.d.ts +65 -0
- package/dist/esm/models/FrameChallenge.js +56 -0
- package/dist/esm/models/FrameChallengeResponseRequest.d.ts +31 -0
- package/dist/esm/models/FrameChallengeResponseRequest.js +43 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
- package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.js +48 -0
- package/dist/esm/models/PaginatedEndpointDeviceList.d.ts +39 -0
- package/dist/esm/models/PaginatedEndpointDeviceList.js +48 -0
- package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +52 -0
- package/dist/esm/models/PatchedEndpointDeviceRequest.d.ts +37 -0
- package/dist/esm/models/PatchedEndpointDeviceRequest.js +45 -0
- package/dist/esm/models/VersionHistory.d.ts +49 -0
- package/dist/esm/models/VersionHistory.js +51 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
- package/dist/models/AuthenticatorEndpointGDTCStage.js +71 -0
- package/dist/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/models/AuthenticatorEndpointGDTCStageRequest.js +61 -0
- package/dist/models/ChallengeTypes.d.ts +3 -0
- package/dist/models/ChallengeTypes.js +5 -0
- package/dist/models/Device.d.ts +2 -2
- package/dist/models/EndpointDevice.d.ts +37 -0
- package/dist/models/EndpointDevice.js +53 -0
- package/dist/models/EndpointDeviceRequest.d.ts +37 -0
- package/dist/models/EndpointDeviceRequest.js +53 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/FrameChallenge.d.ts +65 -0
- package/dist/models/FrameChallenge.js +63 -0
- package/dist/models/FrameChallengeResponseRequest.d.ts +31 -0
- package/dist/models/FrameChallengeResponseRequest.js +50 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
- package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.js +55 -0
- package/dist/models/PaginatedEndpointDeviceList.d.ts +39 -0
- package/dist/models/PaginatedEndpointDeviceList.js +55 -0
- package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
- package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +59 -0
- package/dist/models/PatchedEndpointDeviceRequest.d.ts +37 -0
- package/dist/models/PatchedEndpointDeviceRequest.js +52 -0
- package/dist/models/VersionHistory.d.ts +49 -0
- package/dist/models/VersionHistory.js +58 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +102 -0
- package/src/apis/AuthenticatorsApi.ts +444 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/StagesApi.ts +345 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/AuthenticatorEndpointGDTCStage.ts +146 -0
- package/src/models/AuthenticatorEndpointGDTCStageRequest.ts +106 -0
- package/src/models/ChallengeTypes.ts +12 -1
- package/src/models/Device.ts +2 -2
- package/src/models/EndpointDevice.ts +74 -0
- package/src/models/EndpointDeviceRequest.ts +74 -0
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- package/src/models/FrameChallenge.ts +120 -0
- package/src/models/FrameChallengeResponseRequest.ts +65 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedAuthenticatorEndpointGDTCStageList.ts +88 -0
- package/src/models/PaginatedEndpointDeviceList.ts +88 -0
- package/src/models/PatchedAuthenticatorEndpointGDTCStageRequest.ts +104 -0
- package/src/models/PatchedEndpointDeviceRequest.ts +73 -0
- package/src/models/VersionHistory.ts +92 -0
- package/src/models/index.ts +11 -0
|
@@ -110,6 +110,13 @@ import {
|
|
|
110
110
|
FlowErrorChallengeFromJSONTyped,
|
|
111
111
|
FlowErrorChallengeToJSON,
|
|
112
112
|
} from './FlowErrorChallenge';
|
|
113
|
+
import {
|
|
114
|
+
FrameChallenge,
|
|
115
|
+
instanceOfFrameChallenge,
|
|
116
|
+
FrameChallengeFromJSON,
|
|
117
|
+
FrameChallengeFromJSONTyped,
|
|
118
|
+
FrameChallengeToJSON,
|
|
119
|
+
} from './FrameChallenge';
|
|
113
120
|
import {
|
|
114
121
|
IdentificationChallenge,
|
|
115
122
|
instanceOfIdentificationChallenge,
|
|
@@ -186,7 +193,7 @@ import {
|
|
|
186
193
|
*
|
|
187
194
|
* @export
|
|
188
195
|
*/
|
|
189
|
-
export type ChallengeTypes = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallenge | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallenge | { component: 'ak-source-oauth-apple' } & AppleLoginChallenge | { component: 'ak-source-plex' } & PlexAuthenticationChallenge | { component: 'ak-stage-access-denied' } & AccessDeniedChallenge | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallenge | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallenge | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallenge | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallenge | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallenge | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallenge | { component: 'ak-stage-autosubmit' } & AutosubmitChallenge | { component: 'ak-stage-captcha' } & CaptchaChallenge | { component: 'ak-stage-consent' } & ConsentChallenge | { component: 'ak-stage-dummy' } & DummyChallenge | { component: 'ak-stage-email' } & EmailChallenge | { component: 'ak-stage-flow-error' } & FlowErrorChallenge | { component: 'ak-stage-identification' } & IdentificationChallenge | { component: 'ak-stage-password' } & PasswordChallenge | { component: 'ak-stage-prompt' } & PromptChallenge | { component: 'ak-stage-session-end' } & SessionEndChallenge | { component: 'ak-stage-user-login' } & UserLoginChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge | { component: 'xak-flow-shell' } & ShellChallenge;
|
|
196
|
+
export type ChallengeTypes = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallenge | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallenge | { component: 'ak-source-oauth-apple' } & AppleLoginChallenge | { component: 'ak-source-plex' } & PlexAuthenticationChallenge | { component: 'ak-stage-access-denied' } & AccessDeniedChallenge | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallenge | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallenge | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallenge | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallenge | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallenge | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallenge | { component: 'ak-stage-autosubmit' } & AutosubmitChallenge | { component: 'ak-stage-captcha' } & CaptchaChallenge | { component: 'ak-stage-consent' } & ConsentChallenge | { component: 'ak-stage-dummy' } & DummyChallenge | { component: 'ak-stage-email' } & EmailChallenge | { component: 'ak-stage-flow-error' } & FlowErrorChallenge | { component: 'ak-stage-identification' } & IdentificationChallenge | { component: 'ak-stage-password' } & PasswordChallenge | { component: 'ak-stage-prompt' } & PromptChallenge | { component: 'ak-stage-session-end' } & SessionEndChallenge | { component: 'ak-stage-user-login' } & UserLoginChallenge | { component: 'xak-flow-frame' } & FrameChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge | { component: 'xak-flow-shell' } & ShellChallenge;
|
|
190
197
|
|
|
191
198
|
export function ChallengeTypesFromJSON(json: any): ChallengeTypes {
|
|
192
199
|
return ChallengeTypesFromJSONTyped(json, false);
|
|
@@ -241,6 +248,8 @@ export function ChallengeTypesFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
241
248
|
return {...SessionEndChallengeFromJSONTyped(json, true), component: 'ak-stage-session-end'};
|
|
242
249
|
case 'ak-stage-user-login':
|
|
243
250
|
return {...UserLoginChallengeFromJSONTyped(json, true), component: 'ak-stage-user-login'};
|
|
251
|
+
case 'xak-flow-frame':
|
|
252
|
+
return {...FrameChallengeFromJSONTyped(json, true), component: 'xak-flow-frame'};
|
|
244
253
|
case 'xak-flow-redirect':
|
|
245
254
|
return {...RedirectChallengeFromJSONTyped(json, true), component: 'xak-flow-redirect'};
|
|
246
255
|
case 'xak-flow-shell':
|
|
@@ -302,6 +311,8 @@ export function ChallengeTypesToJSON(value?: ChallengeTypes | null): any {
|
|
|
302
311
|
return SessionEndChallengeToJSON(value);
|
|
303
312
|
case 'ak-stage-user-login':
|
|
304
313
|
return UserLoginChallengeToJSON(value);
|
|
314
|
+
case 'xak-flow-frame':
|
|
315
|
+
return FrameChallengeToJSON(value);
|
|
305
316
|
case 'xak-flow-redirect':
|
|
306
317
|
return RedirectChallengeToJSON(value);
|
|
307
318
|
case 'xak-flow-shell':
|
package/src/models/Device.ts
CHANGED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.8.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Serializer for Endpoint authenticator devices
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EndpointDevice
|
|
20
|
+
*/
|
|
21
|
+
export interface EndpointDevice {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EndpointDevice
|
|
26
|
+
*/
|
|
27
|
+
pk?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The human-readable name of this device.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EndpointDevice
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the EndpointDevice interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfEndpointDevice(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "name" in value;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function EndpointDeviceFromJSON(json: any): EndpointDevice {
|
|
47
|
+
return EndpointDeviceFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function EndpointDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointDevice {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'pk': !exists(json, 'pk') ? undefined : json['pk'],
|
|
57
|
+
'name': json['name'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function EndpointDeviceToJSON(value?: EndpointDevice | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pk': value.pk,
|
|
71
|
+
'name': value.name,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.8.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Serializer for Endpoint authenticator devices
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EndpointDeviceRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface EndpointDeviceRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EndpointDeviceRequest
|
|
26
|
+
*/
|
|
27
|
+
pk?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The human-readable name of this device.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EndpointDeviceRequest
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the EndpointDeviceRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfEndpointDeviceRequest(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "name" in value;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function EndpointDeviceRequestFromJSON(json: any): EndpointDeviceRequest {
|
|
47
|
+
return EndpointDeviceRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function EndpointDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointDeviceRequest {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'pk': !exists(json, 'pk') ? undefined : json['pk'],
|
|
57
|
+
'name': json['name'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function EndpointDeviceRequestToJSON(value?: EndpointDeviceRequest | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pk': value.pk,
|
|
71
|
+
'name': value.name,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -96,6 +96,13 @@ import {
|
|
|
96
96
|
EmailChallengeResponseRequestFromJSONTyped,
|
|
97
97
|
EmailChallengeResponseRequestToJSON,
|
|
98
98
|
} from './EmailChallengeResponseRequest';
|
|
99
|
+
import {
|
|
100
|
+
FrameChallengeResponseRequest,
|
|
101
|
+
instanceOfFrameChallengeResponseRequest,
|
|
102
|
+
FrameChallengeResponseRequestFromJSON,
|
|
103
|
+
FrameChallengeResponseRequestFromJSONTyped,
|
|
104
|
+
FrameChallengeResponseRequestToJSON,
|
|
105
|
+
} from './FrameChallengeResponseRequest';
|
|
99
106
|
import {
|
|
100
107
|
IdentificationChallengeResponseRequest,
|
|
101
108
|
instanceOfIdentificationChallengeResponseRequest,
|
|
@@ -151,7 +158,7 @@ import {
|
|
|
151
158
|
*
|
|
152
159
|
* @export
|
|
153
160
|
*/
|
|
154
|
-
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;
|
|
161
|
+
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;
|
|
155
162
|
|
|
156
163
|
export function FlowChallengeResponseRequestFromJSON(json: any): FlowChallengeResponseRequest {
|
|
157
164
|
return FlowChallengeResponseRequestFromJSONTyped(json, false);
|
|
@@ -200,6 +207,8 @@ export function FlowChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
200
207
|
return {...PromptChallengeResponseRequestFromJSONTyped(json, true), component: 'ak-stage-prompt'};
|
|
201
208
|
case 'ak-stage-user-login':
|
|
202
209
|
return {...UserLoginChallengeResponseRequestFromJSONTyped(json, true), component: 'ak-stage-user-login'};
|
|
210
|
+
case 'xak-flow-frame':
|
|
211
|
+
return {...FrameChallengeResponseRequestFromJSONTyped(json, true), component: 'xak-flow-frame'};
|
|
203
212
|
default:
|
|
204
213
|
throw new Error(`No variant of FlowChallengeResponseRequest exists with 'component=${json['component']}'`);
|
|
205
214
|
}
|
|
@@ -251,6 +260,8 @@ export function FlowChallengeResponseRequestToJSON(value?: FlowChallengeResponse
|
|
|
251
260
|
return PromptChallengeResponseRequestToJSON(value);
|
|
252
261
|
case 'ak-stage-user-login':
|
|
253
262
|
return UserLoginChallengeResponseRequestToJSON(value);
|
|
263
|
+
case 'xak-flow-frame':
|
|
264
|
+
return FrameChallengeResponseRequestToJSON(value);
|
|
254
265
|
default:
|
|
255
266
|
throw new Error(`No variant of FlowChallengeResponseRequest exists with 'component=${value['component']}'`);
|
|
256
267
|
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.8.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
17
|
+
import {
|
|
18
|
+
ContextualFlowInfoFromJSON,
|
|
19
|
+
ContextualFlowInfoFromJSONTyped,
|
|
20
|
+
ContextualFlowInfoToJSON,
|
|
21
|
+
} from './ContextualFlowInfo';
|
|
22
|
+
import type { ErrorDetail } from './ErrorDetail';
|
|
23
|
+
import {
|
|
24
|
+
ErrorDetailFromJSON,
|
|
25
|
+
ErrorDetailFromJSONTyped,
|
|
26
|
+
ErrorDetailToJSON,
|
|
27
|
+
} from './ErrorDetail';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Challenge type to render a frame
|
|
31
|
+
* @export
|
|
32
|
+
* @interface FrameChallenge
|
|
33
|
+
*/
|
|
34
|
+
export interface FrameChallenge {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ContextualFlowInfo}
|
|
38
|
+
* @memberof FrameChallenge
|
|
39
|
+
*/
|
|
40
|
+
flowInfo?: ContextualFlowInfo;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof FrameChallenge
|
|
45
|
+
*/
|
|
46
|
+
component?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
50
|
+
* @memberof FrameChallenge
|
|
51
|
+
*/
|
|
52
|
+
responseErrors?: { [key: string]: Array<ErrorDetail>; };
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof FrameChallenge
|
|
57
|
+
*/
|
|
58
|
+
url: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof FrameChallenge
|
|
63
|
+
*/
|
|
64
|
+
loadingOverlay?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof FrameChallenge
|
|
69
|
+
*/
|
|
70
|
+
loadingText: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the FrameChallenge interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfFrameChallenge(value: object): boolean {
|
|
77
|
+
let isInstance = true;
|
|
78
|
+
isInstance = isInstance && "url" in value;
|
|
79
|
+
isInstance = isInstance && "loadingText" in value;
|
|
80
|
+
|
|
81
|
+
return isInstance;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function FrameChallengeFromJSON(json: any): FrameChallenge {
|
|
85
|
+
return FrameChallengeFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function FrameChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrameChallenge {
|
|
89
|
+
if ((json === undefined) || (json === null)) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
95
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
96
|
+
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
97
|
+
'url': json['url'],
|
|
98
|
+
'loadingOverlay': !exists(json, 'loading_overlay') ? undefined : json['loading_overlay'],
|
|
99
|
+
'loadingText': json['loading_text'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function FrameChallengeToJSON(value?: FrameChallenge | null): any {
|
|
104
|
+
if (value === undefined) {
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
if (value === null) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
113
|
+
'component': value.component,
|
|
114
|
+
'response_errors': value.responseErrors,
|
|
115
|
+
'url': value.url,
|
|
116
|
+
'loading_overlay': value.loadingOverlay,
|
|
117
|
+
'loading_text': value.loadingText,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -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.8.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Base class for all challenge responses
|
|
18
|
+
* @export
|
|
19
|
+
* @interface FrameChallengeResponseRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface FrameChallengeResponseRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof FrameChallengeResponseRequest
|
|
26
|
+
*/
|
|
27
|
+
component?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the FrameChallengeResponseRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfFrameChallengeResponseRequest(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function FrameChallengeResponseRequestFromJSON(json: any): FrameChallengeResponseRequest {
|
|
40
|
+
return FrameChallengeResponseRequestFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function FrameChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrameChallengeResponseRequest {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function FrameChallengeResponseRequestToJSON(value?: FrameChallengeResponseRequest | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'component': value.component,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
package/src/models/ModelEnum.ts
CHANGED
|
@@ -101,6 +101,7 @@ export const ModelEnum = {
|
|
|
101
101
|
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
|
102
102
|
ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
|
|
103
103
|
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
|
104
|
+
StagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: 'authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage',
|
|
104
105
|
StagesSourceSourcestage: 'authentik_stages_source.sourcestage',
|
|
105
106
|
EventsEvent: 'authentik_events.event',
|
|
106
107
|
EventsNotificationtransport: 'authentik_events.notificationtransport',
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.8.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { AuthenticatorEndpointGDTCStage } from './AuthenticatorEndpointGDTCStage';
|
|
17
|
+
import {
|
|
18
|
+
AuthenticatorEndpointGDTCStageFromJSON,
|
|
19
|
+
AuthenticatorEndpointGDTCStageFromJSONTyped,
|
|
20
|
+
AuthenticatorEndpointGDTCStageToJSON,
|
|
21
|
+
} from './AuthenticatorEndpointGDTCStage';
|
|
22
|
+
import type { Pagination } from './Pagination';
|
|
23
|
+
import {
|
|
24
|
+
PaginationFromJSON,
|
|
25
|
+
PaginationFromJSONTyped,
|
|
26
|
+
PaginationToJSON,
|
|
27
|
+
} from './Pagination';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PaginatedAuthenticatorEndpointGDTCStageList
|
|
33
|
+
*/
|
|
34
|
+
export interface PaginatedAuthenticatorEndpointGDTCStageList {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Pagination}
|
|
38
|
+
* @memberof PaginatedAuthenticatorEndpointGDTCStageList
|
|
39
|
+
*/
|
|
40
|
+
pagination: Pagination;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<AuthenticatorEndpointGDTCStage>}
|
|
44
|
+
* @memberof PaginatedAuthenticatorEndpointGDTCStageList
|
|
45
|
+
*/
|
|
46
|
+
results: Array<AuthenticatorEndpointGDTCStage>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PaginatedAuthenticatorEndpointGDTCStageList interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfPaginatedAuthenticatorEndpointGDTCStageList(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
|
55
|
+
isInstance = isInstance && "results" in value;
|
|
56
|
+
|
|
57
|
+
return isInstance;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedAuthenticatorEndpointGDTCStageListFromJSON(json: any): PaginatedAuthenticatorEndpointGDTCStageList {
|
|
61
|
+
return PaginatedAuthenticatorEndpointGDTCStageListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedAuthenticatorEndpointGDTCStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAuthenticatorEndpointGDTCStageList {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
71
|
+
'results': ((json['results'] as Array<any>).map(AuthenticatorEndpointGDTCStageFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedAuthenticatorEndpointGDTCStageListToJSON(value?: PaginatedAuthenticatorEndpointGDTCStageList | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
|
85
|
+
'results': ((value.results as Array<any>).map(AuthenticatorEndpointGDTCStageToJSON)),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.8.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { EndpointDevice } from './EndpointDevice';
|
|
17
|
+
import {
|
|
18
|
+
EndpointDeviceFromJSON,
|
|
19
|
+
EndpointDeviceFromJSONTyped,
|
|
20
|
+
EndpointDeviceToJSON,
|
|
21
|
+
} from './EndpointDevice';
|
|
22
|
+
import type { Pagination } from './Pagination';
|
|
23
|
+
import {
|
|
24
|
+
PaginationFromJSON,
|
|
25
|
+
PaginationFromJSONTyped,
|
|
26
|
+
PaginationToJSON,
|
|
27
|
+
} from './Pagination';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PaginatedEndpointDeviceList
|
|
33
|
+
*/
|
|
34
|
+
export interface PaginatedEndpointDeviceList {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Pagination}
|
|
38
|
+
* @memberof PaginatedEndpointDeviceList
|
|
39
|
+
*/
|
|
40
|
+
pagination: Pagination;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<EndpointDevice>}
|
|
44
|
+
* @memberof PaginatedEndpointDeviceList
|
|
45
|
+
*/
|
|
46
|
+
results: Array<EndpointDevice>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PaginatedEndpointDeviceList interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfPaginatedEndpointDeviceList(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
|
55
|
+
isInstance = isInstance && "results" in value;
|
|
56
|
+
|
|
57
|
+
return isInstance;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedEndpointDeviceListFromJSON(json: any): PaginatedEndpointDeviceList {
|
|
61
|
+
return PaginatedEndpointDeviceListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedEndpointDeviceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEndpointDeviceList {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
71
|
+
'results': ((json['results'] as Array<any>).map(EndpointDeviceFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedEndpointDeviceListToJSON(value?: PaginatedEndpointDeviceList | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
|
85
|
+
'results': ((value.results as Array<any>).map(EndpointDeviceToJSON)),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|