@goauthentik/api 2024.6.1-1720731051 → 2024.6.1-1721092506
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +0 -1
- package/dist/apis/StagesApi.d.ts +1 -0
- package/dist/apis/StagesApi.js +3 -0
- package/dist/esm/apis/StagesApi.d.ts +1 -0
- package/dist/esm/apis/StagesApi.js +3 -0
- package/dist/esm/models/AccessDeniedChallenge.d.ts +0 -7
- package/dist/esm/models/AccessDeniedChallenge.js +0 -4
- package/dist/esm/models/AppleLoginChallenge.d.ts +0 -7
- package/dist/esm/models/AppleLoginChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorDuoChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorDuoChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorSMSChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorSMSChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorStaticChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorStaticChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorTOTPChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorTOTPChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorValidationChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorValidationChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorWebAuthnChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorWebAuthnChallenge.js +0 -4
- package/dist/esm/models/AutosubmitChallenge.d.ts +0 -7
- package/dist/esm/models/AutosubmitChallenge.js +0 -4
- package/dist/esm/models/CaptchaChallenge.d.ts +0 -7
- package/dist/esm/models/CaptchaChallenge.js +0 -4
- package/dist/esm/models/ConsentChallenge.d.ts +0 -7
- package/dist/esm/models/ConsentChallenge.js +0 -4
- package/dist/esm/models/DummyChallenge.d.ts +0 -7
- package/dist/esm/models/DummyChallenge.js +0 -4
- package/dist/esm/models/EmailChallenge.d.ts +0 -7
- package/dist/esm/models/EmailChallenge.js +0 -4
- package/dist/esm/models/FlowErrorChallenge.d.ts +0 -6
- package/dist/esm/models/FlowErrorChallenge.js +0 -2
- package/dist/esm/models/IdentificationChallenge.d.ts +6 -7
- package/dist/esm/models/IdentificationChallenge.js +2 -4
- package/dist/esm/models/IdentificationStage.d.ts +1 -1
- package/dist/esm/models/IdentificationStageRequest.d.ts +1 -1
- package/dist/esm/models/OAuthDeviceCodeChallenge.d.ts +0 -7
- package/dist/esm/models/OAuthDeviceCodeChallenge.js +0 -4
- package/dist/esm/models/OAuthDeviceCodeFinishChallenge.d.ts +0 -7
- package/dist/esm/models/OAuthDeviceCodeFinishChallenge.js +0 -4
- package/dist/esm/models/PasswordChallenge.d.ts +6 -7
- package/dist/esm/models/PasswordChallenge.js +2 -4
- package/dist/esm/models/PasswordStage.d.ts +6 -0
- package/dist/esm/models/PasswordStage.js +2 -0
- package/dist/esm/models/PasswordStageRequest.d.ts +6 -0
- package/dist/esm/models/PasswordStageRequest.js +2 -0
- package/dist/esm/models/PatchedIdentificationStageRequest.d.ts +1 -1
- package/dist/esm/models/PatchedPasswordStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedPasswordStageRequest.js +2 -0
- package/dist/esm/models/PlexAuthenticationChallenge.d.ts +0 -7
- package/dist/esm/models/PlexAuthenticationChallenge.js +0 -4
- package/dist/esm/models/PromptChallenge.d.ts +0 -7
- package/dist/esm/models/PromptChallenge.js +0 -4
- package/dist/esm/models/RedirectChallenge.d.ts +0 -7
- package/dist/esm/models/RedirectChallenge.js +0 -4
- package/dist/esm/models/ShellChallenge.d.ts +0 -7
- package/dist/esm/models/ShellChallenge.js +0 -4
- package/dist/esm/models/UserLoginChallenge.d.ts +0 -7
- package/dist/esm/models/UserLoginChallenge.js +0 -4
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/AccessDeniedChallenge.d.ts +0 -7
- package/dist/models/AccessDeniedChallenge.js +0 -4
- package/dist/models/AppleLoginChallenge.d.ts +0 -7
- package/dist/models/AppleLoginChallenge.js +0 -4
- package/dist/models/AuthenticatorDuoChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorDuoChallenge.js +0 -4
- package/dist/models/AuthenticatorSMSChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorSMSChallenge.js +0 -4
- package/dist/models/AuthenticatorStaticChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorStaticChallenge.js +0 -4
- package/dist/models/AuthenticatorTOTPChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorTOTPChallenge.js +0 -4
- package/dist/models/AuthenticatorValidationChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorValidationChallenge.js +0 -4
- package/dist/models/AuthenticatorWebAuthnChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorWebAuthnChallenge.js +0 -4
- package/dist/models/AutosubmitChallenge.d.ts +0 -7
- package/dist/models/AutosubmitChallenge.js +0 -4
- package/dist/models/CaptchaChallenge.d.ts +0 -7
- package/dist/models/CaptchaChallenge.js +0 -4
- package/dist/models/ConsentChallenge.d.ts +0 -7
- package/dist/models/ConsentChallenge.js +0 -4
- package/dist/models/DummyChallenge.d.ts +0 -7
- package/dist/models/DummyChallenge.js +0 -4
- package/dist/models/EmailChallenge.d.ts +0 -7
- package/dist/models/EmailChallenge.js +0 -4
- package/dist/models/FlowErrorChallenge.d.ts +0 -6
- package/dist/models/FlowErrorChallenge.js +0 -2
- package/dist/models/IdentificationChallenge.d.ts +6 -7
- package/dist/models/IdentificationChallenge.js +2 -4
- package/dist/models/IdentificationStage.d.ts +1 -1
- package/dist/models/IdentificationStageRequest.d.ts +1 -1
- package/dist/models/OAuthDeviceCodeChallenge.d.ts +0 -7
- package/dist/models/OAuthDeviceCodeChallenge.js +0 -4
- package/dist/models/OAuthDeviceCodeFinishChallenge.d.ts +0 -7
- package/dist/models/OAuthDeviceCodeFinishChallenge.js +0 -4
- package/dist/models/PasswordChallenge.d.ts +6 -7
- package/dist/models/PasswordChallenge.js +2 -4
- package/dist/models/PasswordStage.d.ts +6 -0
- package/dist/models/PasswordStage.js +2 -0
- package/dist/models/PasswordStageRequest.d.ts +6 -0
- package/dist/models/PasswordStageRequest.js +2 -0
- package/dist/models/PatchedIdentificationStageRequest.d.ts +1 -1
- package/dist/models/PatchedPasswordStageRequest.d.ts +6 -0
- package/dist/models/PatchedPasswordStageRequest.js +2 -0
- package/dist/models/PlexAuthenticationChallenge.d.ts +0 -7
- package/dist/models/PlexAuthenticationChallenge.js +0 -4
- package/dist/models/PromptChallenge.d.ts +0 -7
- package/dist/models/PromptChallenge.js +0 -4
- package/dist/models/RedirectChallenge.d.ts +0 -7
- package/dist/models/RedirectChallenge.js +0 -4
- package/dist/models/ShellChallenge.d.ts +0 -7
- package/dist/models/ShellChallenge.js +0 -4
- package/dist/models/UserLoginChallenge.d.ts +0 -7
- package/dist/models/UserLoginChallenge.js +0 -4
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/StagesApi.ts +5 -0
- package/src/models/AccessDeniedChallenge.ts +0 -15
- package/src/models/AppleLoginChallenge.ts +0 -15
- package/src/models/AuthenticatorDuoChallenge.ts +0 -15
- package/src/models/AuthenticatorSMSChallenge.ts +0 -15
- package/src/models/AuthenticatorStaticChallenge.ts +0 -15
- package/src/models/AuthenticatorTOTPChallenge.ts +0 -15
- package/src/models/AuthenticatorValidationChallenge.ts +0 -15
- package/src/models/AuthenticatorWebAuthnChallenge.ts +0 -15
- package/src/models/AutosubmitChallenge.ts +0 -15
- package/src/models/CaptchaChallenge.ts +0 -15
- package/src/models/ConsentChallenge.ts +0 -15
- package/src/models/DummyChallenge.ts +0 -15
- package/src/models/EmailChallenge.ts +0 -15
- package/src/models/FlowErrorChallenge.ts +0 -8
- package/src/models/IdentificationChallenge.ts +8 -15
- package/src/models/IdentificationStage.ts +1 -1
- package/src/models/IdentificationStageRequest.ts +1 -1
- package/src/models/OAuthDeviceCodeChallenge.ts +0 -15
- package/src/models/OAuthDeviceCodeFinishChallenge.ts +0 -15
- package/src/models/PasswordChallenge.ts +8 -15
- package/src/models/PasswordStage.ts +8 -0
- package/src/models/PasswordStageRequest.ts +8 -0
- package/src/models/PatchedIdentificationStageRequest.ts +1 -1
- package/src/models/PatchedPasswordStageRequest.ts +8 -0
- package/src/models/PlexAuthenticationChallenge.ts +0 -15
- package/src/models/PromptChallenge.ts +0 -15
- package/src/models/RedirectChallenge.ts +0 -15
- package/src/models/ShellChallenge.ts +0 -15
- package/src/models/UserLoginChallenge.ts +0 -15
- package/src/models/index.ts +0 -1
- package/dist/esm/models/ChallengeChoices.d.ts +0 -25
- package/dist/esm/models/ChallengeChoices.js +0 -32
- package/dist/models/ChallengeChoices.d.ts +0 -25
- package/dist/models/ChallengeChoices.js +0 -38
- package/src/models/ChallengeChoices.ts +0 -40
@@ -13,12 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
17
|
-
import {
|
18
|
-
ChallengeChoicesFromJSON,
|
19
|
-
ChallengeChoicesFromJSONTyped,
|
20
|
-
ChallengeChoicesToJSON,
|
21
|
-
} from './ChallengeChoices';
|
22
16
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
23
17
|
import {
|
24
18
|
ContextualFlowInfoFromJSON,
|
@@ -38,12 +32,6 @@ import {
|
|
38
32
|
* @interface AutosubmitChallenge
|
39
33
|
*/
|
40
34
|
export interface AutosubmitChallenge {
|
41
|
-
/**
|
42
|
-
*
|
43
|
-
* @type {ChallengeChoices}
|
44
|
-
* @memberof AutosubmitChallenge
|
45
|
-
*/
|
46
|
-
type: ChallengeChoices;
|
47
35
|
/**
|
48
36
|
*
|
49
37
|
* @type {ContextualFlowInfo}
|
@@ -87,7 +75,6 @@ export interface AutosubmitChallenge {
|
|
87
75
|
*/
|
88
76
|
export function instanceOfAutosubmitChallenge(value: object): boolean {
|
89
77
|
let isInstance = true;
|
90
|
-
isInstance = isInstance && "type" in value;
|
91
78
|
isInstance = isInstance && "url" in value;
|
92
79
|
isInstance = isInstance && "attrs" in value;
|
93
80
|
|
@@ -104,7 +91,6 @@ export function AutosubmitChallengeFromJSONTyped(json: any, ignoreDiscriminator:
|
|
104
91
|
}
|
105
92
|
return {
|
106
93
|
|
107
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
108
94
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
109
95
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
110
96
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
@@ -123,7 +109,6 @@ export function AutosubmitChallengeToJSON(value?: AutosubmitChallenge | null): a
|
|
123
109
|
}
|
124
110
|
return {
|
125
111
|
|
126
|
-
'type': ChallengeChoicesToJSON(value.type),
|
127
112
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
128
113
|
'component': value.component,
|
129
114
|
'response_errors': value.responseErrors,
|
@@ -13,12 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
17
|
-
import {
|
18
|
-
ChallengeChoicesFromJSON,
|
19
|
-
ChallengeChoicesFromJSONTyped,
|
20
|
-
ChallengeChoicesToJSON,
|
21
|
-
} from './ChallengeChoices';
|
22
16
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
23
17
|
import {
|
24
18
|
ContextualFlowInfoFromJSON,
|
@@ -38,12 +32,6 @@ import {
|
|
38
32
|
* @interface CaptchaChallenge
|
39
33
|
*/
|
40
34
|
export interface CaptchaChallenge {
|
41
|
-
/**
|
42
|
-
*
|
43
|
-
* @type {ChallengeChoices}
|
44
|
-
* @memberof CaptchaChallenge
|
45
|
-
*/
|
46
|
-
type: ChallengeChoices;
|
47
35
|
/**
|
48
36
|
*
|
49
37
|
* @type {ContextualFlowInfo}
|
@@ -93,7 +81,6 @@ export interface CaptchaChallenge {
|
|
93
81
|
*/
|
94
82
|
export function instanceOfCaptchaChallenge(value: object): boolean {
|
95
83
|
let isInstance = true;
|
96
|
-
isInstance = isInstance && "type" in value;
|
97
84
|
isInstance = isInstance && "pendingUser" in value;
|
98
85
|
isInstance = isInstance && "pendingUserAvatar" in value;
|
99
86
|
isInstance = isInstance && "siteKey" in value;
|
@@ -112,7 +99,6 @@ export function CaptchaChallengeFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
112
99
|
}
|
113
100
|
return {
|
114
101
|
|
115
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
116
102
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
117
103
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
118
104
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
@@ -132,7 +118,6 @@ export function CaptchaChallengeToJSON(value?: CaptchaChallenge | null): any {
|
|
132
118
|
}
|
133
119
|
return {
|
134
120
|
|
135
|
-
'type': ChallengeChoicesToJSON(value.type),
|
136
121
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
137
122
|
'component': value.component,
|
138
123
|
'response_errors': value.responseErrors,
|
@@ -13,12 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
17
|
-
import {
|
18
|
-
ChallengeChoicesFromJSON,
|
19
|
-
ChallengeChoicesFromJSONTyped,
|
20
|
-
ChallengeChoicesToJSON,
|
21
|
-
} from './ChallengeChoices';
|
22
16
|
import type { ConsentPermission } from './ConsentPermission';
|
23
17
|
import {
|
24
18
|
ConsentPermissionFromJSON,
|
@@ -44,12 +38,6 @@ import {
|
|
44
38
|
* @interface ConsentChallenge
|
45
39
|
*/
|
46
40
|
export interface ConsentChallenge {
|
47
|
-
/**
|
48
|
-
*
|
49
|
-
* @type {ChallengeChoices}
|
50
|
-
* @memberof ConsentChallenge
|
51
|
-
*/
|
52
|
-
type: ChallengeChoices;
|
53
41
|
/**
|
54
42
|
*
|
55
43
|
* @type {ContextualFlowInfo}
|
@@ -111,7 +99,6 @@ export interface ConsentChallenge {
|
|
111
99
|
*/
|
112
100
|
export function instanceOfConsentChallenge(value: object): boolean {
|
113
101
|
let isInstance = true;
|
114
|
-
isInstance = isInstance && "type" in value;
|
115
102
|
isInstance = isInstance && "pendingUser" in value;
|
116
103
|
isInstance = isInstance && "pendingUserAvatar" in value;
|
117
104
|
isInstance = isInstance && "permissions" in value;
|
@@ -131,7 +118,6 @@ export function ConsentChallengeFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
131
118
|
}
|
132
119
|
return {
|
133
120
|
|
134
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
135
121
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
136
122
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
137
123
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
@@ -153,7 +139,6 @@ export function ConsentChallengeToJSON(value?: ConsentChallenge | null): any {
|
|
153
139
|
}
|
154
140
|
return {
|
155
141
|
|
156
|
-
'type': ChallengeChoicesToJSON(value.type),
|
157
142
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
158
143
|
'component': value.component,
|
159
144
|
'response_errors': value.responseErrors,
|
@@ -13,12 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
17
|
-
import {
|
18
|
-
ChallengeChoicesFromJSON,
|
19
|
-
ChallengeChoicesFromJSONTyped,
|
20
|
-
ChallengeChoicesToJSON,
|
21
|
-
} from './ChallengeChoices';
|
22
16
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
23
17
|
import {
|
24
18
|
ContextualFlowInfoFromJSON,
|
@@ -38,12 +32,6 @@ import {
|
|
38
32
|
* @interface DummyChallenge
|
39
33
|
*/
|
40
34
|
export interface DummyChallenge {
|
41
|
-
/**
|
42
|
-
*
|
43
|
-
* @type {ChallengeChoices}
|
44
|
-
* @memberof DummyChallenge
|
45
|
-
*/
|
46
|
-
type: ChallengeChoices;
|
47
35
|
/**
|
48
36
|
*
|
49
37
|
* @type {ContextualFlowInfo}
|
@@ -75,7 +63,6 @@ export interface DummyChallenge {
|
|
75
63
|
*/
|
76
64
|
export function instanceOfDummyChallenge(value: object): boolean {
|
77
65
|
let isInstance = true;
|
78
|
-
isInstance = isInstance && "type" in value;
|
79
66
|
isInstance = isInstance && "name" in value;
|
80
67
|
|
81
68
|
return isInstance;
|
@@ -91,7 +78,6 @@ export function DummyChallengeFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
91
78
|
}
|
92
79
|
return {
|
93
80
|
|
94
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
95
81
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
96
82
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
97
83
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
@@ -108,7 +94,6 @@ export function DummyChallengeToJSON(value?: DummyChallenge | null): any {
|
|
108
94
|
}
|
109
95
|
return {
|
110
96
|
|
111
|
-
'type': ChallengeChoicesToJSON(value.type),
|
112
97
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
113
98
|
'component': value.component,
|
114
99
|
'response_errors': value.responseErrors,
|
@@ -13,12 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
17
|
-
import {
|
18
|
-
ChallengeChoicesFromJSON,
|
19
|
-
ChallengeChoicesFromJSONTyped,
|
20
|
-
ChallengeChoicesToJSON,
|
21
|
-
} from './ChallengeChoices';
|
22
16
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
23
17
|
import {
|
24
18
|
ContextualFlowInfoFromJSON,
|
@@ -38,12 +32,6 @@ import {
|
|
38
32
|
* @interface EmailChallenge
|
39
33
|
*/
|
40
34
|
export interface EmailChallenge {
|
41
|
-
/**
|
42
|
-
*
|
43
|
-
* @type {ChallengeChoices}
|
44
|
-
* @memberof EmailChallenge
|
45
|
-
*/
|
46
|
-
type: ChallengeChoices;
|
47
35
|
/**
|
48
36
|
*
|
49
37
|
* @type {ContextualFlowInfo}
|
@@ -69,7 +57,6 @@ export interface EmailChallenge {
|
|
69
57
|
*/
|
70
58
|
export function instanceOfEmailChallenge(value: object): boolean {
|
71
59
|
let isInstance = true;
|
72
|
-
isInstance = isInstance && "type" in value;
|
73
60
|
|
74
61
|
return isInstance;
|
75
62
|
}
|
@@ -84,7 +71,6 @@ export function EmailChallengeFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
84
71
|
}
|
85
72
|
return {
|
86
73
|
|
87
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
88
74
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
89
75
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
90
76
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
@@ -100,7 +86,6 @@ export function EmailChallengeToJSON(value?: EmailChallenge | null): any {
|
|
100
86
|
}
|
101
87
|
return {
|
102
88
|
|
103
|
-
'type': ChallengeChoicesToJSON(value.type),
|
104
89
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
105
90
|
'component': value.component,
|
106
91
|
'response_errors': value.responseErrors,
|
@@ -33,12 +33,6 @@ import {
|
|
33
33
|
* @interface FlowErrorChallenge
|
34
34
|
*/
|
35
35
|
export interface FlowErrorChallenge {
|
36
|
-
/**
|
37
|
-
*
|
38
|
-
* @type {string}
|
39
|
-
* @memberof FlowErrorChallenge
|
40
|
-
*/
|
41
|
-
type?: string;
|
42
36
|
/**
|
43
37
|
*
|
44
38
|
* @type {ContextualFlowInfo}
|
@@ -97,7 +91,6 @@ export function FlowErrorChallengeFromJSONTyped(json: any, ignoreDiscriminator:
|
|
97
91
|
}
|
98
92
|
return {
|
99
93
|
|
100
|
-
'type': !exists(json, 'type') ? undefined : json['type'],
|
101
94
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
102
95
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
103
96
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
@@ -116,7 +109,6 @@ export function FlowErrorChallengeToJSON(value?: FlowErrorChallenge | null): any
|
|
116
109
|
}
|
117
110
|
return {
|
118
111
|
|
119
|
-
'type': value.type,
|
120
112
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
121
113
|
'component': value.component,
|
122
114
|
'response_errors': value.responseErrors,
|
@@ -13,12 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
17
|
-
import {
|
18
|
-
ChallengeChoicesFromJSON,
|
19
|
-
ChallengeChoicesFromJSONTyped,
|
20
|
-
ChallengeChoicesToJSON,
|
21
|
-
} from './ChallengeChoices';
|
22
16
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
23
17
|
import {
|
24
18
|
ContextualFlowInfoFromJSON,
|
@@ -50,12 +44,6 @@ import {
|
|
50
44
|
* @interface IdentificationChallenge
|
51
45
|
*/
|
52
46
|
export interface IdentificationChallenge {
|
53
|
-
/**
|
54
|
-
*
|
55
|
-
* @type {ChallengeChoices}
|
56
|
-
* @memberof IdentificationChallenge
|
57
|
-
*/
|
58
|
-
type: ChallengeChoices;
|
59
47
|
/**
|
60
48
|
*
|
61
49
|
* @type {ContextualFlowInfo}
|
@@ -86,6 +74,12 @@ export interface IdentificationChallenge {
|
|
86
74
|
* @memberof IdentificationChallenge
|
87
75
|
*/
|
88
76
|
passwordFields: boolean;
|
77
|
+
/**
|
78
|
+
*
|
79
|
+
* @type {boolean}
|
80
|
+
* @memberof IdentificationChallenge
|
81
|
+
*/
|
82
|
+
allowShowPassword?: boolean;
|
89
83
|
/**
|
90
84
|
*
|
91
85
|
* @type {string}
|
@@ -141,7 +135,6 @@ export interface IdentificationChallenge {
|
|
141
135
|
*/
|
142
136
|
export function instanceOfIdentificationChallenge(value: object): boolean {
|
143
137
|
let isInstance = true;
|
144
|
-
isInstance = isInstance && "type" in value;
|
145
138
|
isInstance = isInstance && "userFields" in value;
|
146
139
|
isInstance = isInstance && "passwordFields" in value;
|
147
140
|
isInstance = isInstance && "flowDesignation" in value;
|
@@ -161,12 +154,12 @@ export function IdentificationChallengeFromJSONTyped(json: any, ignoreDiscrimina
|
|
161
154
|
}
|
162
155
|
return {
|
163
156
|
|
164
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
165
157
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
166
158
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
167
159
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
168
160
|
'userFields': json['user_fields'],
|
169
161
|
'passwordFields': json['password_fields'],
|
162
|
+
'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
|
170
163
|
'applicationPre': !exists(json, 'application_pre') ? undefined : json['application_pre'],
|
171
164
|
'flowDesignation': FlowDesignationEnumFromJSON(json['flow_designation']),
|
172
165
|
'enrollUrl': !exists(json, 'enroll_url') ? undefined : json['enroll_url'],
|
@@ -187,12 +180,12 @@ export function IdentificationChallengeToJSON(value?: IdentificationChallenge |
|
|
187
180
|
}
|
188
181
|
return {
|
189
182
|
|
190
|
-
'type': ChallengeChoicesToJSON(value.type),
|
191
183
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
192
184
|
'component': value.component,
|
193
185
|
'response_errors': value.responseErrors,
|
194
186
|
'user_fields': value.userFields,
|
195
187
|
'password_fields': value.passwordFields,
|
188
|
+
'allow_show_password': value.allowShowPassword,
|
196
189
|
'application_pre': value.applicationPre,
|
197
190
|
'flow_designation': FlowDesignationEnumToJSON(value.flowDesignation),
|
198
191
|
'enroll_url': value.enrollUrl,
|
@@ -81,7 +81,7 @@ export interface IdentificationStage {
|
|
81
81
|
*/
|
82
82
|
userFields?: Array<UserFieldsEnum>;
|
83
83
|
/**
|
84
|
-
* When set, shows a password field, instead of showing the password field as
|
84
|
+
* When set, shows a password field, instead of showing the password field as separate step.
|
85
85
|
* @type {string}
|
86
86
|
* @memberof IdentificationStage
|
87
87
|
*/
|
@@ -51,7 +51,7 @@ export interface IdentificationStageRequest {
|
|
51
51
|
*/
|
52
52
|
userFields?: Array<UserFieldsEnum>;
|
53
53
|
/**
|
54
|
-
* When set, shows a password field, instead of showing the password field as
|
54
|
+
* When set, shows a password field, instead of showing the password field as separate step.
|
55
55
|
* @type {string}
|
56
56
|
* @memberof IdentificationStageRequest
|
57
57
|
*/
|
@@ -13,12 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
17
|
-
import {
|
18
|
-
ChallengeChoicesFromJSON,
|
19
|
-
ChallengeChoicesFromJSONTyped,
|
20
|
-
ChallengeChoicesToJSON,
|
21
|
-
} from './ChallengeChoices';
|
22
16
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
23
17
|
import {
|
24
18
|
ContextualFlowInfoFromJSON,
|
@@ -38,12 +32,6 @@ import {
|
|
38
32
|
* @interface OAuthDeviceCodeChallenge
|
39
33
|
*/
|
40
34
|
export interface OAuthDeviceCodeChallenge {
|
41
|
-
/**
|
42
|
-
*
|
43
|
-
* @type {ChallengeChoices}
|
44
|
-
* @memberof OAuthDeviceCodeChallenge
|
45
|
-
*/
|
46
|
-
type: ChallengeChoices;
|
47
35
|
/**
|
48
36
|
*
|
49
37
|
* @type {ContextualFlowInfo}
|
@@ -69,7 +57,6 @@ export interface OAuthDeviceCodeChallenge {
|
|
69
57
|
*/
|
70
58
|
export function instanceOfOAuthDeviceCodeChallenge(value: object): boolean {
|
71
59
|
let isInstance = true;
|
72
|
-
isInstance = isInstance && "type" in value;
|
73
60
|
|
74
61
|
return isInstance;
|
75
62
|
}
|
@@ -84,7 +71,6 @@ export function OAuthDeviceCodeChallengeFromJSONTyped(json: any, ignoreDiscrimin
|
|
84
71
|
}
|
85
72
|
return {
|
86
73
|
|
87
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
88
74
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
89
75
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
90
76
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
@@ -100,7 +86,6 @@ export function OAuthDeviceCodeChallengeToJSON(value?: OAuthDeviceCodeChallenge
|
|
100
86
|
}
|
101
87
|
return {
|
102
88
|
|
103
|
-
'type': ChallengeChoicesToJSON(value.type),
|
104
89
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
105
90
|
'component': value.component,
|
106
91
|
'response_errors': value.responseErrors,
|
@@ -13,12 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
17
|
-
import {
|
18
|
-
ChallengeChoicesFromJSON,
|
19
|
-
ChallengeChoicesFromJSONTyped,
|
20
|
-
ChallengeChoicesToJSON,
|
21
|
-
} from './ChallengeChoices';
|
22
16
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
23
17
|
import {
|
24
18
|
ContextualFlowInfoFromJSON,
|
@@ -38,12 +32,6 @@ import {
|
|
38
32
|
* @interface OAuthDeviceCodeFinishChallenge
|
39
33
|
*/
|
40
34
|
export interface OAuthDeviceCodeFinishChallenge {
|
41
|
-
/**
|
42
|
-
*
|
43
|
-
* @type {ChallengeChoices}
|
44
|
-
* @memberof OAuthDeviceCodeFinishChallenge
|
45
|
-
*/
|
46
|
-
type: ChallengeChoices;
|
47
35
|
/**
|
48
36
|
*
|
49
37
|
* @type {ContextualFlowInfo}
|
@@ -69,7 +57,6 @@ export interface OAuthDeviceCodeFinishChallenge {
|
|
69
57
|
*/
|
70
58
|
export function instanceOfOAuthDeviceCodeFinishChallenge(value: object): boolean {
|
71
59
|
let isInstance = true;
|
72
|
-
isInstance = isInstance && "type" in value;
|
73
60
|
|
74
61
|
return isInstance;
|
75
62
|
}
|
@@ -84,7 +71,6 @@ export function OAuthDeviceCodeFinishChallengeFromJSONTyped(json: any, ignoreDis
|
|
84
71
|
}
|
85
72
|
return {
|
86
73
|
|
87
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
88
74
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
89
75
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
90
76
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
@@ -100,7 +86,6 @@ export function OAuthDeviceCodeFinishChallengeToJSON(value?: OAuthDeviceCodeFini
|
|
100
86
|
}
|
101
87
|
return {
|
102
88
|
|
103
|
-
'type': ChallengeChoicesToJSON(value.type),
|
104
89
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
105
90
|
'component': value.component,
|
106
91
|
'response_errors': value.responseErrors,
|
@@ -13,12 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
17
|
-
import {
|
18
|
-
ChallengeChoicesFromJSON,
|
19
|
-
ChallengeChoicesFromJSONTyped,
|
20
|
-
ChallengeChoicesToJSON,
|
21
|
-
} from './ChallengeChoices';
|
22
16
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
23
17
|
import {
|
24
18
|
ContextualFlowInfoFromJSON,
|
@@ -38,12 +32,6 @@ import {
|
|
38
32
|
* @interface PasswordChallenge
|
39
33
|
*/
|
40
34
|
export interface PasswordChallenge {
|
41
|
-
/**
|
42
|
-
*
|
43
|
-
* @type {ChallengeChoices}
|
44
|
-
* @memberof PasswordChallenge
|
45
|
-
*/
|
46
|
-
type: ChallengeChoices;
|
47
35
|
/**
|
48
36
|
*
|
49
37
|
* @type {ContextualFlowInfo}
|
@@ -80,6 +68,12 @@ export interface PasswordChallenge {
|
|
80
68
|
* @memberof PasswordChallenge
|
81
69
|
*/
|
82
70
|
recoveryUrl?: string;
|
71
|
+
/**
|
72
|
+
*
|
73
|
+
* @type {boolean}
|
74
|
+
* @memberof PasswordChallenge
|
75
|
+
*/
|
76
|
+
allowShowPassword?: boolean;
|
83
77
|
}
|
84
78
|
|
85
79
|
/**
|
@@ -87,7 +81,6 @@ export interface PasswordChallenge {
|
|
87
81
|
*/
|
88
82
|
export function instanceOfPasswordChallenge(value: object): boolean {
|
89
83
|
let isInstance = true;
|
90
|
-
isInstance = isInstance && "type" in value;
|
91
84
|
isInstance = isInstance && "pendingUser" in value;
|
92
85
|
isInstance = isInstance && "pendingUserAvatar" in value;
|
93
86
|
|
@@ -104,13 +97,13 @@ export function PasswordChallengeFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
104
97
|
}
|
105
98
|
return {
|
106
99
|
|
107
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
108
100
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
109
101
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
110
102
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
111
103
|
'pendingUser': json['pending_user'],
|
112
104
|
'pendingUserAvatar': json['pending_user_avatar'],
|
113
105
|
'recoveryUrl': !exists(json, 'recovery_url') ? undefined : json['recovery_url'],
|
106
|
+
'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
|
114
107
|
};
|
115
108
|
}
|
116
109
|
|
@@ -123,13 +116,13 @@ export function PasswordChallengeToJSON(value?: PasswordChallenge | null): any {
|
|
123
116
|
}
|
124
117
|
return {
|
125
118
|
|
126
|
-
'type': ChallengeChoicesToJSON(value.type),
|
127
119
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
128
120
|
'component': value.component,
|
129
121
|
'response_errors': value.responseErrors,
|
130
122
|
'pending_user': value.pendingUser,
|
131
123
|
'pending_user_avatar': value.pendingUserAvatar,
|
132
124
|
'recovery_url': value.recoveryUrl,
|
125
|
+
'allow_show_password': value.allowShowPassword,
|
133
126
|
};
|
134
127
|
}
|
135
128
|
|
@@ -92,6 +92,12 @@ export interface PasswordStage {
|
|
92
92
|
* @memberof PasswordStage
|
93
93
|
*/
|
94
94
|
failedAttemptsBeforeCancel?: number;
|
95
|
+
/**
|
96
|
+
* When enabled, provides a 'show password' button with the password input field.
|
97
|
+
* @type {boolean}
|
98
|
+
* @memberof PasswordStage
|
99
|
+
*/
|
100
|
+
allowShowPassword?: boolean;
|
95
101
|
}
|
96
102
|
|
97
103
|
/**
|
@@ -130,6 +136,7 @@ export function PasswordStageFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
130
136
|
'backends': ((json['backends'] as Array<any>).map(BackendsEnumFromJSON)),
|
131
137
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
132
138
|
'failedAttemptsBeforeCancel': !exists(json, 'failed_attempts_before_cancel') ? undefined : json['failed_attempts_before_cancel'],
|
139
|
+
'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
|
133
140
|
};
|
134
141
|
}
|
135
142
|
|
@@ -147,6 +154,7 @@ export function PasswordStageToJSON(value?: PasswordStage | null): any {
|
|
147
154
|
'backends': ((value.backends as Array<any>).map(BackendsEnumToJSON)),
|
148
155
|
'configure_flow': value.configureFlow,
|
149
156
|
'failed_attempts_before_cancel': value.failedAttemptsBeforeCancel,
|
157
|
+
'allow_show_password': value.allowShowPassword,
|
150
158
|
};
|
151
159
|
}
|
152
160
|
|
@@ -62,6 +62,12 @@ export interface PasswordStageRequest {
|
|
62
62
|
* @memberof PasswordStageRequest
|
63
63
|
*/
|
64
64
|
failedAttemptsBeforeCancel?: number;
|
65
|
+
/**
|
66
|
+
* When enabled, provides a 'show password' button with the password input field.
|
67
|
+
* @type {boolean}
|
68
|
+
* @memberof PasswordStageRequest
|
69
|
+
*/
|
70
|
+
allowShowPassword?: boolean;
|
65
71
|
}
|
66
72
|
|
67
73
|
/**
|
@@ -90,6 +96,7 @@ export function PasswordStageRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
90
96
|
'backends': ((json['backends'] as Array<any>).map(BackendsEnumFromJSON)),
|
91
97
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
92
98
|
'failedAttemptsBeforeCancel': !exists(json, 'failed_attempts_before_cancel') ? undefined : json['failed_attempts_before_cancel'],
|
99
|
+
'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
|
93
100
|
};
|
94
101
|
}
|
95
102
|
|
@@ -107,6 +114,7 @@ export function PasswordStageRequestToJSON(value?: PasswordStageRequest | null):
|
|
107
114
|
'backends': ((value.backends as Array<any>).map(BackendsEnumToJSON)),
|
108
115
|
'configure_flow': value.configureFlow,
|
109
116
|
'failed_attempts_before_cancel': value.failedAttemptsBeforeCancel,
|
117
|
+
'allow_show_password': value.allowShowPassword,
|
110
118
|
};
|
111
119
|
}
|
112
120
|
|
@@ -51,7 +51,7 @@ export interface PatchedIdentificationStageRequest {
|
|
51
51
|
*/
|
52
52
|
userFields?: Array<UserFieldsEnum>;
|
53
53
|
/**
|
54
|
-
* When set, shows a password field, instead of showing the password field as
|
54
|
+
* When set, shows a password field, instead of showing the password field as separate step.
|
55
55
|
* @type {string}
|
56
56
|
* @memberof PatchedIdentificationStageRequest
|
57
57
|
*/
|
@@ -62,6 +62,12 @@ export interface PatchedPasswordStageRequest {
|
|
62
62
|
* @memberof PatchedPasswordStageRequest
|
63
63
|
*/
|
64
64
|
failedAttemptsBeforeCancel?: number;
|
65
|
+
/**
|
66
|
+
* When enabled, provides a 'show password' button with the password input field.
|
67
|
+
* @type {boolean}
|
68
|
+
* @memberof PatchedPasswordStageRequest
|
69
|
+
*/
|
70
|
+
allowShowPassword?: boolean;
|
65
71
|
}
|
66
72
|
|
67
73
|
/**
|
@@ -88,6 +94,7 @@ export function PatchedPasswordStageRequestFromJSONTyped(json: any, ignoreDiscri
|
|
88
94
|
'backends': !exists(json, 'backends') ? undefined : ((json['backends'] as Array<any>).map(BackendsEnumFromJSON)),
|
89
95
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
90
96
|
'failedAttemptsBeforeCancel': !exists(json, 'failed_attempts_before_cancel') ? undefined : json['failed_attempts_before_cancel'],
|
97
|
+
'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
|
91
98
|
};
|
92
99
|
}
|
93
100
|
|
@@ -105,6 +112,7 @@ export function PatchedPasswordStageRequestToJSON(value?: PatchedPasswordStageRe
|
|
105
112
|
'backends': value.backends === undefined ? undefined : ((value.backends as Array<any>).map(BackendsEnumToJSON)),
|
106
113
|
'configure_flow': value.configureFlow,
|
107
114
|
'failed_attempts_before_cancel': value.failedAttemptsBeforeCancel,
|
115
|
+
'allow_show_password': value.allowShowPassword,
|
108
116
|
};
|
109
117
|
}
|
110
118
|
|