@goauthentik/api 2022.8.2-1662930536 → 2022.8.2-1663409478
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 +2 -0
- package/dist/apis/StagesApi.d.ts +16 -6
- package/dist/apis/StagesApi.js +40 -10
- package/dist/esm/apis/StagesApi.d.ts +16 -6
- package/dist/esm/apis/StagesApi.js +41 -11
- package/dist/esm/models/AccessDeniedChallenge.d.ts +1 -1
- package/dist/esm/models/AccessDeniedChallenge.js +1 -1
- package/dist/esm/models/AppleChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AppleChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AppleLoginChallenge.d.ts +1 -1
- package/dist/esm/models/AppleLoginChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorDuoChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorDuoChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorDuoChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorDuoChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AuthenticatorDuoStage.d.ts +6 -0
- package/dist/esm/models/AuthenticatorDuoStage.js +2 -0
- package/dist/esm/models/AuthenticatorDuoStageDeviceImportResponse.d.ts +33 -0
- package/dist/esm/models/AuthenticatorDuoStageDeviceImportResponse.js +34 -0
- package/dist/esm/models/AuthenticatorDuoStageManualDeviceImportRequest.d.ts +33 -0
- package/dist/esm/models/AuthenticatorDuoStageManualDeviceImportRequest.js +37 -0
- package/dist/esm/models/AuthenticatorDuoStageRequest.d.ts +12 -0
- package/dist/esm/models/AuthenticatorDuoStageRequest.js +4 -0
- package/dist/esm/models/AuthenticatorSMSChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorSMSChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorSMSChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorSMSChallengeResponseRequest.js +1 -1
- package/dist/esm/models/AuthenticatorStaticChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorStaticChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorStaticChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorStaticChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AuthenticatorTOTPChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorTOTPChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorTOTPChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorTOTPChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AuthenticatorValidationChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorValidationChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorValidationChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorValidationChallengeResponseRequest.js +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AutoSubmitChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AutoSubmitChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AutosubmitChallenge.d.ts +1 -1
- package/dist/esm/models/AutosubmitChallenge.js +1 -1
- package/dist/esm/models/CaptchaChallenge.d.ts +1 -1
- package/dist/esm/models/CaptchaChallenge.js +1 -1
- package/dist/esm/models/CaptchaChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/CaptchaChallengeResponseRequest.js +2 -1
- package/dist/esm/models/ConsentChallenge.d.ts +1 -1
- package/dist/esm/models/ConsentChallenge.js +1 -1
- package/dist/esm/models/ConsentChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/ConsentChallengeResponseRequest.js +2 -1
- package/dist/esm/models/DummyChallenge.d.ts +1 -1
- package/dist/esm/models/DummyChallenge.js +1 -1
- package/dist/esm/models/DummyChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/DummyChallengeResponseRequest.js +2 -1
- package/dist/esm/models/EmailChallenge.d.ts +1 -1
- package/dist/esm/models/EmailChallenge.js +1 -1
- package/dist/esm/models/EmailChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/EmailChallengeResponseRequest.js +2 -1
- package/dist/esm/models/FlowErrorChallenge.d.ts +1 -1
- package/dist/esm/models/FlowErrorChallenge.js +1 -1
- package/dist/esm/models/IdentificationChallenge.d.ts +1 -1
- package/dist/esm/models/IdentificationChallenge.js +1 -1
- package/dist/esm/models/IdentificationChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/IdentificationChallengeResponseRequest.js +1 -1
- package/dist/esm/models/PasswordChallenge.d.ts +1 -1
- package/dist/esm/models/PasswordChallenge.js +1 -1
- package/dist/esm/models/PasswordChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/PasswordChallengeResponseRequest.js +2 -1
- package/dist/esm/models/PatchedAuthenticatorDuoStageRequest.d.ts +12 -0
- package/dist/esm/models/PatchedAuthenticatorDuoStageRequest.js +4 -0
- package/dist/esm/models/PlexAuthenticationChallenge.d.ts +1 -1
- package/dist/esm/models/PlexAuthenticationChallenge.js +1 -1
- package/dist/esm/models/PlexAuthenticationChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/PlexAuthenticationChallengeResponseRequest.js +2 -1
- package/dist/esm/models/PromptChallenge.d.ts +1 -1
- package/dist/esm/models/PromptChallenge.js +1 -1
- package/dist/esm/models/PromptChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/PromptChallengeResponseRequest.js +2 -1
- package/dist/esm/models/RedirectChallenge.d.ts +1 -1
- package/dist/esm/models/RedirectChallenge.js +1 -1
- package/dist/esm/models/ShellChallenge.d.ts +1 -1
- package/dist/esm/models/ShellChallenge.js +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/AccessDeniedChallenge.d.ts +1 -1
- package/dist/models/AccessDeniedChallenge.js +1 -1
- package/dist/models/AppleChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AppleChallengeResponseRequest.js +2 -1
- package/dist/models/AppleLoginChallenge.d.ts +1 -1
- package/dist/models/AppleLoginChallenge.js +1 -1
- package/dist/models/AuthenticatorDuoChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorDuoChallenge.js +1 -1
- package/dist/models/AuthenticatorDuoChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorDuoChallengeResponseRequest.js +2 -1
- package/dist/models/AuthenticatorDuoStage.d.ts +6 -0
- package/dist/models/AuthenticatorDuoStage.js +2 -0
- package/dist/models/AuthenticatorDuoStageDeviceImportResponse.d.ts +33 -0
- package/dist/models/AuthenticatorDuoStageDeviceImportResponse.js +40 -0
- package/dist/models/AuthenticatorDuoStageManualDeviceImportRequest.d.ts +33 -0
- package/dist/models/AuthenticatorDuoStageManualDeviceImportRequest.js +43 -0
- package/dist/models/AuthenticatorDuoStageRequest.d.ts +12 -0
- package/dist/models/AuthenticatorDuoStageRequest.js +4 -0
- package/dist/models/AuthenticatorSMSChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorSMSChallenge.js +1 -1
- package/dist/models/AuthenticatorSMSChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorSMSChallengeResponseRequest.js +1 -1
- package/dist/models/AuthenticatorStaticChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorStaticChallenge.js +1 -1
- package/dist/models/AuthenticatorStaticChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorStaticChallengeResponseRequest.js +2 -1
- package/dist/models/AuthenticatorTOTPChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorTOTPChallenge.js +1 -1
- package/dist/models/AuthenticatorTOTPChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorTOTPChallengeResponseRequest.js +2 -1
- package/dist/models/AuthenticatorValidationChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorValidationChallenge.js +1 -1
- package/dist/models/AuthenticatorValidationChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorValidationChallengeResponseRequest.js +1 -1
- package/dist/models/AuthenticatorWebAuthnChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorWebAuthnChallenge.js +1 -1
- package/dist/models/AuthenticatorWebAuthnChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorWebAuthnChallengeResponseRequest.js +2 -1
- package/dist/models/AutoSubmitChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AutoSubmitChallengeResponseRequest.js +2 -1
- package/dist/models/AutosubmitChallenge.d.ts +1 -1
- package/dist/models/AutosubmitChallenge.js +1 -1
- package/dist/models/CaptchaChallenge.d.ts +1 -1
- package/dist/models/CaptchaChallenge.js +1 -1
- package/dist/models/CaptchaChallengeResponseRequest.d.ts +1 -1
- package/dist/models/CaptchaChallengeResponseRequest.js +2 -1
- package/dist/models/ConsentChallenge.d.ts +1 -1
- package/dist/models/ConsentChallenge.js +1 -1
- package/dist/models/ConsentChallengeResponseRequest.d.ts +1 -1
- package/dist/models/ConsentChallengeResponseRequest.js +2 -1
- package/dist/models/DummyChallenge.d.ts +1 -1
- package/dist/models/DummyChallenge.js +1 -1
- package/dist/models/DummyChallengeResponseRequest.d.ts +1 -1
- package/dist/models/DummyChallengeResponseRequest.js +2 -1
- package/dist/models/EmailChallenge.d.ts +1 -1
- package/dist/models/EmailChallenge.js +1 -1
- package/dist/models/EmailChallengeResponseRequest.d.ts +1 -1
- package/dist/models/EmailChallengeResponseRequest.js +2 -1
- package/dist/models/FlowErrorChallenge.d.ts +1 -1
- package/dist/models/FlowErrorChallenge.js +1 -1
- package/dist/models/IdentificationChallenge.d.ts +1 -1
- package/dist/models/IdentificationChallenge.js +1 -1
- package/dist/models/IdentificationChallengeResponseRequest.d.ts +1 -1
- package/dist/models/IdentificationChallengeResponseRequest.js +1 -1
- package/dist/models/PasswordChallenge.d.ts +1 -1
- package/dist/models/PasswordChallenge.js +1 -1
- package/dist/models/PasswordChallengeResponseRequest.d.ts +1 -1
- package/dist/models/PasswordChallengeResponseRequest.js +2 -1
- package/dist/models/PatchedAuthenticatorDuoStageRequest.d.ts +12 -0
- package/dist/models/PatchedAuthenticatorDuoStageRequest.js +4 -0
- package/dist/models/PlexAuthenticationChallenge.d.ts +1 -1
- package/dist/models/PlexAuthenticationChallenge.js +1 -1
- package/dist/models/PlexAuthenticationChallengeResponseRequest.d.ts +1 -1
- package/dist/models/PlexAuthenticationChallengeResponseRequest.js +2 -1
- package/dist/models/PromptChallenge.d.ts +1 -1
- package/dist/models/PromptChallenge.js +1 -1
- package/dist/models/PromptChallengeResponseRequest.d.ts +1 -1
- package/dist/models/PromptChallengeResponseRequest.js +2 -1
- package/dist/models/RedirectChallenge.d.ts +1 -1
- package/dist/models/RedirectChallenge.js +1 -1
- package/dist/models/ShellChallenge.d.ts +1 -1
- package/dist/models/ShellChallenge.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +2 -2
- package/src/apis/StagesApi.ts +55 -13
- package/src/models/AccessDeniedChallenge.ts +2 -2
- package/src/models/AppleChallengeResponseRequest.ts +2 -2
- package/src/models/AppleLoginChallenge.ts +2 -2
- package/src/models/AuthenticatorDuoChallenge.ts +2 -2
- package/src/models/AuthenticatorDuoChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorDuoStage.ts +8 -0
- package/src/models/AuthenticatorDuoStageDeviceImportResponse.ts +62 -0
- package/src/models/AuthenticatorDuoStageManualDeviceImportRequest.ts +64 -0
- package/src/models/AuthenticatorDuoStageRequest.ts +16 -0
- package/src/models/AuthenticatorSMSChallenge.ts +2 -2
- package/src/models/AuthenticatorSMSChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorStaticChallenge.ts +2 -2
- package/src/models/AuthenticatorStaticChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorTOTPChallenge.ts +2 -2
- package/src/models/AuthenticatorTOTPChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorValidationChallenge.ts +2 -2
- package/src/models/AuthenticatorValidationChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorWebAuthnChallenge.ts +2 -2
- package/src/models/AuthenticatorWebAuthnChallengeResponseRequest.ts +2 -2
- package/src/models/AutoSubmitChallengeResponseRequest.ts +2 -2
- package/src/models/AutosubmitChallenge.ts +2 -2
- package/src/models/CaptchaChallenge.ts +2 -2
- package/src/models/CaptchaChallengeResponseRequest.ts +2 -2
- package/src/models/ConsentChallenge.ts +2 -2
- package/src/models/ConsentChallengeResponseRequest.ts +2 -2
- package/src/models/DummyChallenge.ts +2 -2
- package/src/models/DummyChallengeResponseRequest.ts +2 -2
- package/src/models/EmailChallenge.ts +2 -2
- package/src/models/EmailChallengeResponseRequest.ts +2 -2
- package/src/models/FlowErrorChallenge.ts +2 -2
- package/src/models/IdentificationChallenge.ts +2 -2
- package/src/models/IdentificationChallengeResponseRequest.ts +2 -2
- package/src/models/PasswordChallenge.ts +2 -2
- package/src/models/PasswordChallengeResponseRequest.ts +2 -2
- package/src/models/PatchedAuthenticatorDuoStageRequest.ts +16 -0
- package/src/models/PlexAuthenticationChallenge.ts +2 -2
- package/src/models/PlexAuthenticationChallengeResponseRequest.ts +2 -2
- package/src/models/PromptChallenge.ts +2 -2
- package/src/models/PromptChallengeResponseRequest.ts +2 -2
- package/src/models/RedirectChallenge.ts +2 -2
- package/src/models/ShellChallenge.ts +2 -2
- package/src/models/index.ts +2 -0
|
@@ -20,7 +20,7 @@ export interface PlexAuthenticationChallengeResponseRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof PlexAuthenticationChallengeResponseRequest
|
|
22
22
|
*/
|
|
23
|
-
component
|
|
23
|
+
component?: string;
|
|
24
24
|
}
|
|
25
25
|
export declare function PlexAuthenticationChallengeResponseRequestFromJSON(json: any): PlexAuthenticationChallengeResponseRequest;
|
|
26
26
|
export declare function PlexAuthenticationChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlexAuthenticationChallengeResponseRequest;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
14
15
|
export function PlexAuthenticationChallengeResponseRequestFromJSON(json) {
|
|
15
16
|
return PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, false);
|
|
16
17
|
}
|
|
@@ -19,7 +20,7 @@ export function PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, ig
|
|
|
19
20
|
return json;
|
|
20
21
|
}
|
|
21
22
|
return {
|
|
22
|
-
'component': json['component'],
|
|
23
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export function PlexAuthenticationChallengeResponseRequestToJSON(value) {
|
|
@@ -25,7 +25,7 @@ export function PromptChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return {
|
|
26
26
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
27
27
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
28
|
-
'component': json['component'],
|
|
28
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
29
29
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
30
30
|
'fields': (json['fields'].map(StagePromptFromJSON)),
|
|
31
31
|
};
|
|
@@ -22,7 +22,7 @@ export interface PromptChallengeResponseRequest {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof PromptChallengeResponseRequest
|
|
24
24
|
*/
|
|
25
|
-
component
|
|
25
|
+
component?: string;
|
|
26
26
|
}
|
|
27
27
|
export declare function PromptChallengeResponseRequestFromJSON(json: any): PromptChallengeResponseRequest;
|
|
28
28
|
export declare function PromptChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PromptChallengeResponseRequest;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
14
15
|
export function PromptChallengeResponseRequestFromJSON(json) {
|
|
15
16
|
return PromptChallengeResponseRequestFromJSONTyped(json, false);
|
|
16
17
|
}
|
|
@@ -18,7 +19,7 @@ export function PromptChallengeResponseRequestFromJSONTyped(json, ignoreDiscrimi
|
|
|
18
19
|
if ((json === undefined) || (json === null)) {
|
|
19
20
|
return json;
|
|
20
21
|
}
|
|
21
|
-
return Object.assign(Object.assign({}, json), { 'component': json['component'] });
|
|
22
|
+
return Object.assign(Object.assign({}, json), { 'component': !exists(json, 'component') ? undefined : json['component'] });
|
|
22
23
|
}
|
|
23
24
|
export function PromptChallengeResponseRequestToJSON(value) {
|
|
24
25
|
if (value === undefined) {
|
|
@@ -24,7 +24,7 @@ export function RedirectChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return {
|
|
25
25
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
26
26
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
27
|
-
'component': json['component'],
|
|
27
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
28
28
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
29
|
'to': json['to'],
|
|
30
30
|
};
|
|
@@ -24,7 +24,7 @@ export function ShellChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return {
|
|
25
25
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
26
26
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
27
|
-
'component': json['component'],
|
|
27
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
28
28
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
29
|
'body': json['body'],
|
|
30
30
|
};
|
|
@@ -19,6 +19,8 @@ export * from './AuthenticatorAttachmentEnum';
|
|
|
19
19
|
export * from './AuthenticatorDuoChallenge';
|
|
20
20
|
export * from './AuthenticatorDuoChallengeResponseRequest';
|
|
21
21
|
export * from './AuthenticatorDuoStage';
|
|
22
|
+
export * from './AuthenticatorDuoStageDeviceImportResponse';
|
|
23
|
+
export * from './AuthenticatorDuoStageManualDeviceImportRequest';
|
|
22
24
|
export * from './AuthenticatorDuoStageRequest';
|
|
23
25
|
export * from './AuthenticatorSMSChallenge';
|
|
24
26
|
export * from './AuthenticatorSMSChallengeResponseRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -21,6 +21,8 @@ export * from './AuthenticatorAttachmentEnum';
|
|
|
21
21
|
export * from './AuthenticatorDuoChallenge';
|
|
22
22
|
export * from './AuthenticatorDuoChallengeResponseRequest';
|
|
23
23
|
export * from './AuthenticatorDuoStage';
|
|
24
|
+
export * from './AuthenticatorDuoStageDeviceImportResponse';
|
|
25
|
+
export * from './AuthenticatorDuoStageManualDeviceImportRequest';
|
|
24
26
|
export * from './AuthenticatorDuoStageRequest';
|
|
25
27
|
export * from './AuthenticatorSMSChallenge';
|
|
26
28
|
export * from './AuthenticatorSMSChallengeResponseRequest';
|
|
@@ -28,7 +28,7 @@ function AccessDeniedChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
|
|
30
30
|
'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
|
31
|
-
'component': json['component'],
|
|
31
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
32
32
|
'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
|
|
33
33
|
'pendingUser': json['pending_user'],
|
|
34
34
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -20,7 +20,7 @@ export interface AppleChallengeResponseRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AppleChallengeResponseRequest
|
|
22
22
|
*/
|
|
23
|
-
component
|
|
23
|
+
component?: string;
|
|
24
24
|
}
|
|
25
25
|
export declare function AppleChallengeResponseRequestFromJSON(json: any): AppleChallengeResponseRequest;
|
|
26
26
|
export declare function AppleChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleChallengeResponseRequest;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AppleChallengeResponseRequestToJSON = exports.AppleChallengeResponseRequestFromJSONTyped = exports.AppleChallengeResponseRequestFromJSON = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
function AppleChallengeResponseRequestFromJSON(json) {
|
|
18
19
|
return AppleChallengeResponseRequestFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -23,7 +24,7 @@ function AppleChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
24
|
return json;
|
|
24
25
|
}
|
|
25
26
|
return {
|
|
26
|
-
'component': json['component'],
|
|
27
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
exports.AppleChallengeResponseRequestFromJSONTyped = AppleChallengeResponseRequestFromJSONTyped;
|
|
@@ -28,7 +28,7 @@ function AppleLoginChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
|
|
30
30
|
'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
|
31
|
-
'component': json['component'],
|
|
31
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
32
32
|
'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
|
|
33
33
|
'clientId': json['client_id'],
|
|
34
34
|
'scope': json['scope'],
|
|
@@ -28,7 +28,7 @@ function AuthenticatorDuoChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
|
|
30
30
|
'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
|
31
|
-
'component': json['component'],
|
|
31
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
32
32
|
'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
|
|
33
33
|
'pendingUser': json['pending_user'],
|
|
34
34
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -20,7 +20,7 @@ export interface AuthenticatorDuoChallengeResponseRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AuthenticatorDuoChallengeResponseRequest
|
|
22
22
|
*/
|
|
23
|
-
component
|
|
23
|
+
component?: string;
|
|
24
24
|
}
|
|
25
25
|
export declare function AuthenticatorDuoChallengeResponseRequestFromJSON(json: any): AuthenticatorDuoChallengeResponseRequest;
|
|
26
26
|
export declare function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoChallengeResponseRequest;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AuthenticatorDuoChallengeResponseRequestToJSON = exports.AuthenticatorDuoChallengeResponseRequestFromJSONTyped = exports.AuthenticatorDuoChallengeResponseRequestFromJSON = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
function AuthenticatorDuoChallengeResponseRequestFromJSON(json) {
|
|
18
19
|
return AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -23,7 +24,7 @@ function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, ignoreDiscr
|
|
|
23
24
|
return json;
|
|
24
25
|
}
|
|
25
26
|
return {
|
|
26
|
-
'component': json['component'],
|
|
27
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
exports.AuthenticatorDuoChallengeResponseRequestFromJSONTyped = AuthenticatorDuoChallengeResponseRequestFromJSONTyped;
|
|
@@ -76,6 +76,12 @@ export interface AuthenticatorDuoStage {
|
|
|
76
76
|
* @memberof AuthenticatorDuoStage
|
|
77
77
|
*/
|
|
78
78
|
apiHostname: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof AuthenticatorDuoStage
|
|
83
|
+
*/
|
|
84
|
+
adminIntegrationKey?: string;
|
|
79
85
|
}
|
|
80
86
|
export declare function AuthenticatorDuoStageFromJSON(json: any): AuthenticatorDuoStage;
|
|
81
87
|
export declare function AuthenticatorDuoStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStage;
|
|
@@ -35,6 +35,7 @@ function AuthenticatorDuoStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'configureFlow': !(0, runtime_1.exists)(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
36
36
|
'clientId': json['client_id'],
|
|
37
37
|
'apiHostname': json['api_hostname'],
|
|
38
|
+
'adminIntegrationKey': !(0, runtime_1.exists)(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
exports.AuthenticatorDuoStageFromJSONTyped = AuthenticatorDuoStageFromJSONTyped;
|
|
@@ -51,6 +52,7 @@ function AuthenticatorDuoStageToJSON(value) {
|
|
|
51
52
|
'configure_flow': value.configureFlow,
|
|
52
53
|
'client_id': value.clientId,
|
|
53
54
|
'api_hostname': value.apiHostname,
|
|
55
|
+
'admin_integration_key': value.adminIntegrationKey,
|
|
54
56
|
};
|
|
55
57
|
}
|
|
56
58
|
exports.AuthenticatorDuoStageToJSON = AuthenticatorDuoStageToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticatorDuoStageDeviceImportResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticatorDuoStageDeviceImportResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AuthenticatorDuoStageDeviceImportResponse
|
|
22
|
+
*/
|
|
23
|
+
readonly count: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticatorDuoStageDeviceImportResponse
|
|
28
|
+
*/
|
|
29
|
+
readonly error: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function AuthenticatorDuoStageDeviceImportResponseFromJSON(json: any): AuthenticatorDuoStageDeviceImportResponse;
|
|
32
|
+
export declare function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageDeviceImportResponse;
|
|
33
|
+
export declare function AuthenticatorDuoStageDeviceImportResponseToJSON(value?: AuthenticatorDuoStageDeviceImportResponse | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AuthenticatorDuoStageDeviceImportResponseToJSON = exports.AuthenticatorDuoStageDeviceImportResponseFromJSONTyped = exports.AuthenticatorDuoStageDeviceImportResponseFromJSON = void 0;
|
|
17
|
+
function AuthenticatorDuoStageDeviceImportResponseFromJSON(json) {
|
|
18
|
+
return AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.AuthenticatorDuoStageDeviceImportResponseFromJSON = AuthenticatorDuoStageDeviceImportResponseFromJSON;
|
|
21
|
+
function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'count': json['count'],
|
|
27
|
+
'error': json['error'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.AuthenticatorDuoStageDeviceImportResponseFromJSONTyped = AuthenticatorDuoStageDeviceImportResponseFromJSONTyped;
|
|
31
|
+
function AuthenticatorDuoStageDeviceImportResponseToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
exports.AuthenticatorDuoStageDeviceImportResponseToJSON = AuthenticatorDuoStageDeviceImportResponseToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticatorDuoStageManualDeviceImportRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticatorDuoStageManualDeviceImportRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthenticatorDuoStageManualDeviceImportRequest
|
|
22
|
+
*/
|
|
23
|
+
duoUserId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticatorDuoStageManualDeviceImportRequest
|
|
28
|
+
*/
|
|
29
|
+
username: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(json: any): AuthenticatorDuoStageManualDeviceImportRequest;
|
|
32
|
+
export declare function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageManualDeviceImportRequest;
|
|
33
|
+
export declare function AuthenticatorDuoStageManualDeviceImportRequestToJSON(value?: AuthenticatorDuoStageManualDeviceImportRequest | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AuthenticatorDuoStageManualDeviceImportRequestToJSON = exports.AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped = exports.AuthenticatorDuoStageManualDeviceImportRequestFromJSON = void 0;
|
|
17
|
+
function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(json) {
|
|
18
|
+
return AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.AuthenticatorDuoStageManualDeviceImportRequestFromJSON = AuthenticatorDuoStageManualDeviceImportRequestFromJSON;
|
|
21
|
+
function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'duoUserId': json['duo_user_id'],
|
|
27
|
+
'username': json['username'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped = AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped;
|
|
31
|
+
function AuthenticatorDuoStageManualDeviceImportRequestToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'duo_user_id': value.duoUserId,
|
|
40
|
+
'username': value.username,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.AuthenticatorDuoStageManualDeviceImportRequestToJSON = AuthenticatorDuoStageManualDeviceImportRequestToJSON;
|
|
@@ -52,6 +52,18 @@ export interface AuthenticatorDuoStageRequest {
|
|
|
52
52
|
* @memberof AuthenticatorDuoStageRequest
|
|
53
53
|
*/
|
|
54
54
|
apiHostname: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AuthenticatorDuoStageRequest
|
|
59
|
+
*/
|
|
60
|
+
adminIntegrationKey?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AuthenticatorDuoStageRequest
|
|
65
|
+
*/
|
|
66
|
+
adminSecretKey?: string;
|
|
55
67
|
}
|
|
56
68
|
export declare function AuthenticatorDuoStageRequestFromJSON(json: any): AuthenticatorDuoStageRequest;
|
|
57
69
|
export declare function AuthenticatorDuoStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageRequest;
|
|
@@ -31,6 +31,8 @@ function AuthenticatorDuoStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'clientId': json['client_id'],
|
|
32
32
|
'clientSecret': json['client_secret'],
|
|
33
33
|
'apiHostname': json['api_hostname'],
|
|
34
|
+
'adminIntegrationKey': !(0, runtime_1.exists)(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
|
|
35
|
+
'adminSecretKey': !(0, runtime_1.exists)(json, 'admin_secret_key') ? undefined : json['admin_secret_key'],
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
exports.AuthenticatorDuoStageRequestFromJSONTyped = AuthenticatorDuoStageRequestFromJSONTyped;
|
|
@@ -48,6 +50,8 @@ function AuthenticatorDuoStageRequestToJSON(value) {
|
|
|
48
50
|
'client_id': value.clientId,
|
|
49
51
|
'client_secret': value.clientSecret,
|
|
50
52
|
'api_hostname': value.apiHostname,
|
|
53
|
+
'admin_integration_key': value.adminIntegrationKey,
|
|
54
|
+
'admin_secret_key': value.adminSecretKey,
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
exports.AuthenticatorDuoStageRequestToJSON = AuthenticatorDuoStageRequestToJSON;
|
|
@@ -28,7 +28,7 @@ function AuthenticatorSMSChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
|
|
30
30
|
'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
|
31
|
-
'component': json['component'],
|
|
31
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
32
32
|
'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
|
|
33
33
|
'pendingUser': json['pending_user'],
|
|
34
34
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -24,7 +24,7 @@ function AuthenticatorSMSChallengeResponseRequestFromJSONTyped(json, ignoreDiscr
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
-
'component': json['component'],
|
|
27
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
28
28
|
'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
|
|
29
29
|
'phoneNumber': !(0, runtime_1.exists)(json, 'phone_number') ? undefined : json['phone_number'],
|
|
30
30
|
};
|
|
@@ -28,7 +28,7 @@ function AuthenticatorStaticChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
|
|
30
30
|
'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
|
31
|
-
'component': json['component'],
|
|
31
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
32
32
|
'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
|
|
33
33
|
'pendingUser': json['pending_user'],
|
|
34
34
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -20,7 +20,7 @@ export interface AuthenticatorStaticChallengeResponseRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AuthenticatorStaticChallengeResponseRequest
|
|
22
22
|
*/
|
|
23
|
-
component
|
|
23
|
+
component?: string;
|
|
24
24
|
}
|
|
25
25
|
export declare function AuthenticatorStaticChallengeResponseRequestFromJSON(json: any): AuthenticatorStaticChallengeResponseRequest;
|
|
26
26
|
export declare function AuthenticatorStaticChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorStaticChallengeResponseRequest;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AuthenticatorStaticChallengeResponseRequestToJSON = exports.AuthenticatorStaticChallengeResponseRequestFromJSONTyped = exports.AuthenticatorStaticChallengeResponseRequestFromJSON = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
function AuthenticatorStaticChallengeResponseRequestFromJSON(json) {
|
|
18
19
|
return AuthenticatorStaticChallengeResponseRequestFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -23,7 +24,7 @@ function AuthenticatorStaticChallengeResponseRequestFromJSONTyped(json, ignoreDi
|
|
|
23
24
|
return json;
|
|
24
25
|
}
|
|
25
26
|
return {
|
|
26
|
-
'component': json['component'],
|
|
27
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
exports.AuthenticatorStaticChallengeResponseRequestFromJSONTyped = AuthenticatorStaticChallengeResponseRequestFromJSONTyped;
|
|
@@ -28,7 +28,7 @@ function AuthenticatorTOTPChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
|
|
30
30
|
'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
|
31
|
-
'component': json['component'],
|
|
31
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
32
32
|
'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
|
|
33
33
|
'pendingUser': json['pending_user'],
|
|
34
34
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AuthenticatorTOTPChallengeResponseRequestToJSON = exports.AuthenticatorTOTPChallengeResponseRequestFromJSONTyped = exports.AuthenticatorTOTPChallengeResponseRequestFromJSON = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
function AuthenticatorTOTPChallengeResponseRequestFromJSON(json) {
|
|
18
19
|
return AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -23,7 +24,7 @@ function AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(json, ignoreDisc
|
|
|
23
24
|
return json;
|
|
24
25
|
}
|
|
25
26
|
return {
|
|
26
|
-
'component': json['component'],
|
|
27
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
27
28
|
'code': json['code'],
|
|
28
29
|
};
|
|
29
30
|
}
|