@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.
Files changed (156) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/dist/apis/StagesApi.d.ts +1 -0
  3. package/dist/apis/StagesApi.js +3 -0
  4. package/dist/esm/apis/StagesApi.d.ts +1 -0
  5. package/dist/esm/apis/StagesApi.js +3 -0
  6. package/dist/esm/models/AccessDeniedChallenge.d.ts +0 -7
  7. package/dist/esm/models/AccessDeniedChallenge.js +0 -4
  8. package/dist/esm/models/AppleLoginChallenge.d.ts +0 -7
  9. package/dist/esm/models/AppleLoginChallenge.js +0 -4
  10. package/dist/esm/models/AuthenticatorDuoChallenge.d.ts +0 -7
  11. package/dist/esm/models/AuthenticatorDuoChallenge.js +0 -4
  12. package/dist/esm/models/AuthenticatorSMSChallenge.d.ts +0 -7
  13. package/dist/esm/models/AuthenticatorSMSChallenge.js +0 -4
  14. package/dist/esm/models/AuthenticatorStaticChallenge.d.ts +0 -7
  15. package/dist/esm/models/AuthenticatorStaticChallenge.js +0 -4
  16. package/dist/esm/models/AuthenticatorTOTPChallenge.d.ts +0 -7
  17. package/dist/esm/models/AuthenticatorTOTPChallenge.js +0 -4
  18. package/dist/esm/models/AuthenticatorValidationChallenge.d.ts +0 -7
  19. package/dist/esm/models/AuthenticatorValidationChallenge.js +0 -4
  20. package/dist/esm/models/AuthenticatorWebAuthnChallenge.d.ts +0 -7
  21. package/dist/esm/models/AuthenticatorWebAuthnChallenge.js +0 -4
  22. package/dist/esm/models/AutosubmitChallenge.d.ts +0 -7
  23. package/dist/esm/models/AutosubmitChallenge.js +0 -4
  24. package/dist/esm/models/CaptchaChallenge.d.ts +0 -7
  25. package/dist/esm/models/CaptchaChallenge.js +0 -4
  26. package/dist/esm/models/ConsentChallenge.d.ts +0 -7
  27. package/dist/esm/models/ConsentChallenge.js +0 -4
  28. package/dist/esm/models/DummyChallenge.d.ts +0 -7
  29. package/dist/esm/models/DummyChallenge.js +0 -4
  30. package/dist/esm/models/EmailChallenge.d.ts +0 -7
  31. package/dist/esm/models/EmailChallenge.js +0 -4
  32. package/dist/esm/models/FlowErrorChallenge.d.ts +0 -6
  33. package/dist/esm/models/FlowErrorChallenge.js +0 -2
  34. package/dist/esm/models/IdentificationChallenge.d.ts +6 -7
  35. package/dist/esm/models/IdentificationChallenge.js +2 -4
  36. package/dist/esm/models/IdentificationStage.d.ts +1 -1
  37. package/dist/esm/models/IdentificationStageRequest.d.ts +1 -1
  38. package/dist/esm/models/OAuthDeviceCodeChallenge.d.ts +0 -7
  39. package/dist/esm/models/OAuthDeviceCodeChallenge.js +0 -4
  40. package/dist/esm/models/OAuthDeviceCodeFinishChallenge.d.ts +0 -7
  41. package/dist/esm/models/OAuthDeviceCodeFinishChallenge.js +0 -4
  42. package/dist/esm/models/PasswordChallenge.d.ts +6 -7
  43. package/dist/esm/models/PasswordChallenge.js +2 -4
  44. package/dist/esm/models/PasswordStage.d.ts +6 -0
  45. package/dist/esm/models/PasswordStage.js +2 -0
  46. package/dist/esm/models/PasswordStageRequest.d.ts +6 -0
  47. package/dist/esm/models/PasswordStageRequest.js +2 -0
  48. package/dist/esm/models/PatchedIdentificationStageRequest.d.ts +1 -1
  49. package/dist/esm/models/PatchedPasswordStageRequest.d.ts +6 -0
  50. package/dist/esm/models/PatchedPasswordStageRequest.js +2 -0
  51. package/dist/esm/models/PlexAuthenticationChallenge.d.ts +0 -7
  52. package/dist/esm/models/PlexAuthenticationChallenge.js +0 -4
  53. package/dist/esm/models/PromptChallenge.d.ts +0 -7
  54. package/dist/esm/models/PromptChallenge.js +0 -4
  55. package/dist/esm/models/RedirectChallenge.d.ts +0 -7
  56. package/dist/esm/models/RedirectChallenge.js +0 -4
  57. package/dist/esm/models/ShellChallenge.d.ts +0 -7
  58. package/dist/esm/models/ShellChallenge.js +0 -4
  59. package/dist/esm/models/UserLoginChallenge.d.ts +0 -7
  60. package/dist/esm/models/UserLoginChallenge.js +0 -4
  61. package/dist/esm/models/index.d.ts +0 -1
  62. package/dist/esm/models/index.js +0 -1
  63. package/dist/models/AccessDeniedChallenge.d.ts +0 -7
  64. package/dist/models/AccessDeniedChallenge.js +0 -4
  65. package/dist/models/AppleLoginChallenge.d.ts +0 -7
  66. package/dist/models/AppleLoginChallenge.js +0 -4
  67. package/dist/models/AuthenticatorDuoChallenge.d.ts +0 -7
  68. package/dist/models/AuthenticatorDuoChallenge.js +0 -4
  69. package/dist/models/AuthenticatorSMSChallenge.d.ts +0 -7
  70. package/dist/models/AuthenticatorSMSChallenge.js +0 -4
  71. package/dist/models/AuthenticatorStaticChallenge.d.ts +0 -7
  72. package/dist/models/AuthenticatorStaticChallenge.js +0 -4
  73. package/dist/models/AuthenticatorTOTPChallenge.d.ts +0 -7
  74. package/dist/models/AuthenticatorTOTPChallenge.js +0 -4
  75. package/dist/models/AuthenticatorValidationChallenge.d.ts +0 -7
  76. package/dist/models/AuthenticatorValidationChallenge.js +0 -4
  77. package/dist/models/AuthenticatorWebAuthnChallenge.d.ts +0 -7
  78. package/dist/models/AuthenticatorWebAuthnChallenge.js +0 -4
  79. package/dist/models/AutosubmitChallenge.d.ts +0 -7
  80. package/dist/models/AutosubmitChallenge.js +0 -4
  81. package/dist/models/CaptchaChallenge.d.ts +0 -7
  82. package/dist/models/CaptchaChallenge.js +0 -4
  83. package/dist/models/ConsentChallenge.d.ts +0 -7
  84. package/dist/models/ConsentChallenge.js +0 -4
  85. package/dist/models/DummyChallenge.d.ts +0 -7
  86. package/dist/models/DummyChallenge.js +0 -4
  87. package/dist/models/EmailChallenge.d.ts +0 -7
  88. package/dist/models/EmailChallenge.js +0 -4
  89. package/dist/models/FlowErrorChallenge.d.ts +0 -6
  90. package/dist/models/FlowErrorChallenge.js +0 -2
  91. package/dist/models/IdentificationChallenge.d.ts +6 -7
  92. package/dist/models/IdentificationChallenge.js +2 -4
  93. package/dist/models/IdentificationStage.d.ts +1 -1
  94. package/dist/models/IdentificationStageRequest.d.ts +1 -1
  95. package/dist/models/OAuthDeviceCodeChallenge.d.ts +0 -7
  96. package/dist/models/OAuthDeviceCodeChallenge.js +0 -4
  97. package/dist/models/OAuthDeviceCodeFinishChallenge.d.ts +0 -7
  98. package/dist/models/OAuthDeviceCodeFinishChallenge.js +0 -4
  99. package/dist/models/PasswordChallenge.d.ts +6 -7
  100. package/dist/models/PasswordChallenge.js +2 -4
  101. package/dist/models/PasswordStage.d.ts +6 -0
  102. package/dist/models/PasswordStage.js +2 -0
  103. package/dist/models/PasswordStageRequest.d.ts +6 -0
  104. package/dist/models/PasswordStageRequest.js +2 -0
  105. package/dist/models/PatchedIdentificationStageRequest.d.ts +1 -1
  106. package/dist/models/PatchedPasswordStageRequest.d.ts +6 -0
  107. package/dist/models/PatchedPasswordStageRequest.js +2 -0
  108. package/dist/models/PlexAuthenticationChallenge.d.ts +0 -7
  109. package/dist/models/PlexAuthenticationChallenge.js +0 -4
  110. package/dist/models/PromptChallenge.d.ts +0 -7
  111. package/dist/models/PromptChallenge.js +0 -4
  112. package/dist/models/RedirectChallenge.d.ts +0 -7
  113. package/dist/models/RedirectChallenge.js +0 -4
  114. package/dist/models/ShellChallenge.d.ts +0 -7
  115. package/dist/models/ShellChallenge.js +0 -4
  116. package/dist/models/UserLoginChallenge.d.ts +0 -7
  117. package/dist/models/UserLoginChallenge.js +0 -4
  118. package/dist/models/index.d.ts +0 -1
  119. package/dist/models/index.js +0 -1
  120. package/package.json +1 -1
  121. package/src/apis/StagesApi.ts +5 -0
  122. package/src/models/AccessDeniedChallenge.ts +0 -15
  123. package/src/models/AppleLoginChallenge.ts +0 -15
  124. package/src/models/AuthenticatorDuoChallenge.ts +0 -15
  125. package/src/models/AuthenticatorSMSChallenge.ts +0 -15
  126. package/src/models/AuthenticatorStaticChallenge.ts +0 -15
  127. package/src/models/AuthenticatorTOTPChallenge.ts +0 -15
  128. package/src/models/AuthenticatorValidationChallenge.ts +0 -15
  129. package/src/models/AuthenticatorWebAuthnChallenge.ts +0 -15
  130. package/src/models/AutosubmitChallenge.ts +0 -15
  131. package/src/models/CaptchaChallenge.ts +0 -15
  132. package/src/models/ConsentChallenge.ts +0 -15
  133. package/src/models/DummyChallenge.ts +0 -15
  134. package/src/models/EmailChallenge.ts +0 -15
  135. package/src/models/FlowErrorChallenge.ts +0 -8
  136. package/src/models/IdentificationChallenge.ts +8 -15
  137. package/src/models/IdentificationStage.ts +1 -1
  138. package/src/models/IdentificationStageRequest.ts +1 -1
  139. package/src/models/OAuthDeviceCodeChallenge.ts +0 -15
  140. package/src/models/OAuthDeviceCodeFinishChallenge.ts +0 -15
  141. package/src/models/PasswordChallenge.ts +8 -15
  142. package/src/models/PasswordStage.ts +8 -0
  143. package/src/models/PasswordStageRequest.ts +8 -0
  144. package/src/models/PatchedIdentificationStageRequest.ts +1 -1
  145. package/src/models/PatchedPasswordStageRequest.ts +8 -0
  146. package/src/models/PlexAuthenticationChallenge.ts +0 -15
  147. package/src/models/PromptChallenge.ts +0 -15
  148. package/src/models/RedirectChallenge.ts +0 -15
  149. package/src/models/ShellChallenge.ts +0 -15
  150. package/src/models/UserLoginChallenge.ts +0 -15
  151. package/src/models/index.ts +0 -1
  152. package/dist/esm/models/ChallengeChoices.d.ts +0 -25
  153. package/dist/esm/models/ChallengeChoices.js +0 -32
  154. package/dist/models/ChallengeChoices.d.ts +0 -25
  155. package/dist/models/ChallengeChoices.js +0 -38
  156. package/src/models/ChallengeChoices.ts +0 -40
@@ -12,14 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
15
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
16
  /**
18
17
  * Check if a given object implements the DummyChallenge interface.
19
18
  */
20
19
  export function instanceOfDummyChallenge(value) {
21
20
  let isInstance = true;
22
- isInstance = isInstance && "type" in value;
23
21
  isInstance = isInstance && "name" in value;
24
22
  return isInstance;
25
23
  }
@@ -31,7 +29,6 @@ export function DummyChallengeFromJSONTyped(json, ignoreDiscriminator) {
31
29
  return json;
32
30
  }
33
31
  return {
34
- 'type': ChallengeChoicesFromJSON(json['type']),
35
32
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
36
33
  'component': !exists(json, 'component') ? undefined : json['component'],
37
34
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -46,7 +43,6 @@ export function DummyChallengeToJSON(value) {
46
43
  return null;
47
44
  }
48
45
  return {
49
- 'type': ChallengeChoicesToJSON(value.type),
50
46
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
51
47
  'component': value.component,
52
48
  'response_errors': value.responseErrors,
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChallengeChoices } from './ChallengeChoices';
13
12
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
13
  import type { ErrorDetail } from './ErrorDetail';
15
14
  /**
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
18
17
  * @interface EmailChallenge
19
18
  */
20
19
  export interface EmailChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof EmailChallenge
25
- */
26
- type: ChallengeChoices;
27
20
  /**
28
21
  *
29
22
  * @type {ContextualFlowInfo}
@@ -12,14 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
15
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
16
  /**
18
17
  * Check if a given object implements the EmailChallenge interface.
19
18
  */
20
19
  export function instanceOfEmailChallenge(value) {
21
20
  let isInstance = true;
22
- isInstance = isInstance && "type" in value;
23
21
  return isInstance;
24
22
  }
25
23
  export function EmailChallengeFromJSON(json) {
@@ -30,7 +28,6 @@ export function EmailChallengeFromJSONTyped(json, ignoreDiscriminator) {
30
28
  return json;
31
29
  }
32
30
  return {
33
- 'type': ChallengeChoicesFromJSON(json['type']),
34
31
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
35
32
  'component': !exists(json, 'component') ? undefined : json['component'],
36
33
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -44,7 +41,6 @@ export function EmailChallengeToJSON(value) {
44
41
  return null;
45
42
  }
46
43
  return {
47
- 'type': ChallengeChoicesToJSON(value.type),
48
44
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
49
45
  'component': value.component,
50
46
  'response_errors': value.responseErrors,
@@ -18,12 +18,6 @@ import type { ErrorDetail } from './ErrorDetail';
18
18
  * @interface FlowErrorChallenge
19
19
  */
20
20
  export interface FlowErrorChallenge {
21
- /**
22
- *
23
- * @type {string}
24
- * @memberof FlowErrorChallenge
25
- */
26
- type?: string;
27
21
  /**
28
22
  *
29
23
  * @type {ContextualFlowInfo}
@@ -29,7 +29,6 @@ export function FlowErrorChallengeFromJSONTyped(json, ignoreDiscriminator) {
29
29
  return json;
30
30
  }
31
31
  return {
32
- 'type': !exists(json, 'type') ? undefined : json['type'],
33
32
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
34
33
  'component': !exists(json, 'component') ? undefined : json['component'],
35
34
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -46,7 +45,6 @@ export function FlowErrorChallengeToJSON(value) {
46
45
  return null;
47
46
  }
48
47
  return {
49
- 'type': value.type,
50
48
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
51
49
  'component': value.component,
52
50
  'response_errors': value.responseErrors,
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChallengeChoices } from './ChallengeChoices';
13
12
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
13
  import type { ErrorDetail } from './ErrorDetail';
15
14
  import type { FlowDesignationEnum } from './FlowDesignationEnum';
@@ -20,12 +19,6 @@ import type { LoginSource } from './LoginSource';
20
19
  * @interface IdentificationChallenge
21
20
  */
22
21
  export interface IdentificationChallenge {
23
- /**
24
- *
25
- * @type {ChallengeChoices}
26
- * @memberof IdentificationChallenge
27
- */
28
- type: ChallengeChoices;
29
22
  /**
30
23
  *
31
24
  * @type {ContextualFlowInfo}
@@ -58,6 +51,12 @@ export interface IdentificationChallenge {
58
51
  * @memberof IdentificationChallenge
59
52
  */
60
53
  passwordFields: boolean;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof IdentificationChallenge
58
+ */
59
+ allowShowPassword?: boolean;
61
60
  /**
62
61
  *
63
62
  * @type {string}
@@ -12,7 +12,6 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
15
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
16
  import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
18
17
  import { LoginSourceFromJSON, LoginSourceToJSON, } from './LoginSource';
@@ -21,7 +20,6 @@ import { LoginSourceFromJSON, LoginSourceToJSON, } from './LoginSource';
21
20
  */
22
21
  export function instanceOfIdentificationChallenge(value) {
23
22
  let isInstance = true;
24
- isInstance = isInstance && "type" in value;
25
23
  isInstance = isInstance && "userFields" in value;
26
24
  isInstance = isInstance && "passwordFields" in value;
27
25
  isInstance = isInstance && "flowDesignation" in value;
@@ -37,12 +35,12 @@ export function IdentificationChallengeFromJSONTyped(json, ignoreDiscriminator)
37
35
  return json;
38
36
  }
39
37
  return {
40
- 'type': ChallengeChoicesFromJSON(json['type']),
41
38
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
42
39
  'component': !exists(json, 'component') ? undefined : json['component'],
43
40
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
44
41
  'userFields': json['user_fields'],
45
42
  'passwordFields': json['password_fields'],
43
+ 'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
46
44
  'applicationPre': !exists(json, 'application_pre') ? undefined : json['application_pre'],
47
45
  'flowDesignation': FlowDesignationEnumFromJSON(json['flow_designation']),
48
46
  'enrollUrl': !exists(json, 'enroll_url') ? undefined : json['enroll_url'],
@@ -61,12 +59,12 @@ export function IdentificationChallengeToJSON(value) {
61
59
  return null;
62
60
  }
63
61
  return {
64
- 'type': ChallengeChoicesToJSON(value.type),
65
62
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
66
63
  'component': value.component,
67
64
  'response_errors': value.responseErrors,
68
65
  'user_fields': value.userFields,
69
66
  'password_fields': value.passwordFields,
67
+ 'allow_show_password': value.allowShowPassword,
70
68
  'application_pre': value.applicationPre,
71
69
  'flow_designation': FlowDesignationEnumToJSON(value.flowDesignation),
72
70
  'enroll_url': value.enrollUrl,
@@ -66,7 +66,7 @@ export interface IdentificationStage {
66
66
  */
67
67
  userFields?: Array<UserFieldsEnum>;
68
68
  /**
69
- * When set, shows a password field, instead of showing the password field as seaprate step.
69
+ * When set, shows a password field, instead of showing the password field as separate step.
70
70
  * @type {string}
71
71
  * @memberof IdentificationStage
72
72
  */
@@ -36,7 +36,7 @@ export interface IdentificationStageRequest {
36
36
  */
37
37
  userFields?: Array<UserFieldsEnum>;
38
38
  /**
39
- * When set, shows a password field, instead of showing the password field as seaprate step.
39
+ * When set, shows a password field, instead of showing the password field as separate step.
40
40
  * @type {string}
41
41
  * @memberof IdentificationStageRequest
42
42
  */
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChallengeChoices } from './ChallengeChoices';
13
12
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
13
  import type { ErrorDetail } from './ErrorDetail';
15
14
  /**
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
18
17
  * @interface OAuthDeviceCodeChallenge
19
18
  */
20
19
  export interface OAuthDeviceCodeChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof OAuthDeviceCodeChallenge
25
- */
26
- type: ChallengeChoices;
27
20
  /**
28
21
  *
29
22
  * @type {ContextualFlowInfo}
@@ -12,14 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
15
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
16
  /**
18
17
  * Check if a given object implements the OAuthDeviceCodeChallenge interface.
19
18
  */
20
19
  export function instanceOfOAuthDeviceCodeChallenge(value) {
21
20
  let isInstance = true;
22
- isInstance = isInstance && "type" in value;
23
21
  return isInstance;
24
22
  }
25
23
  export function OAuthDeviceCodeChallengeFromJSON(json) {
@@ -30,7 +28,6 @@ export function OAuthDeviceCodeChallengeFromJSONTyped(json, ignoreDiscriminator)
30
28
  return json;
31
29
  }
32
30
  return {
33
- 'type': ChallengeChoicesFromJSON(json['type']),
34
31
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
35
32
  'component': !exists(json, 'component') ? undefined : json['component'],
36
33
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -44,7 +41,6 @@ export function OAuthDeviceCodeChallengeToJSON(value) {
44
41
  return null;
45
42
  }
46
43
  return {
47
- 'type': ChallengeChoicesToJSON(value.type),
48
44
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
49
45
  'component': value.component,
50
46
  'response_errors': value.responseErrors,
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChallengeChoices } from './ChallengeChoices';
13
12
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
13
  import type { ErrorDetail } from './ErrorDetail';
15
14
  /**
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
18
17
  * @interface OAuthDeviceCodeFinishChallenge
19
18
  */
20
19
  export interface OAuthDeviceCodeFinishChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof OAuthDeviceCodeFinishChallenge
25
- */
26
- type: ChallengeChoices;
27
20
  /**
28
21
  *
29
22
  * @type {ContextualFlowInfo}
@@ -12,14 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
15
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
16
  /**
18
17
  * Check if a given object implements the OAuthDeviceCodeFinishChallenge interface.
19
18
  */
20
19
  export function instanceOfOAuthDeviceCodeFinishChallenge(value) {
21
20
  let isInstance = true;
22
- isInstance = isInstance && "type" in value;
23
21
  return isInstance;
24
22
  }
25
23
  export function OAuthDeviceCodeFinishChallengeFromJSON(json) {
@@ -30,7 +28,6 @@ export function OAuthDeviceCodeFinishChallengeFromJSONTyped(json, ignoreDiscrimi
30
28
  return json;
31
29
  }
32
30
  return {
33
- 'type': ChallengeChoicesFromJSON(json['type']),
34
31
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
35
32
  'component': !exists(json, 'component') ? undefined : json['component'],
36
33
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -44,7 +41,6 @@ export function OAuthDeviceCodeFinishChallengeToJSON(value) {
44
41
  return null;
45
42
  }
46
43
  return {
47
- 'type': ChallengeChoicesToJSON(value.type),
48
44
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
49
45
  'component': value.component,
50
46
  'response_errors': value.responseErrors,
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChallengeChoices } from './ChallengeChoices';
13
12
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
13
  import type { ErrorDetail } from './ErrorDetail';
15
14
  /**
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
18
17
  * @interface PasswordChallenge
19
18
  */
20
19
  export interface PasswordChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof PasswordChallenge
25
- */
26
- type: ChallengeChoices;
27
20
  /**
28
21
  *
29
22
  * @type {ContextualFlowInfo}
@@ -62,6 +55,12 @@ export interface PasswordChallenge {
62
55
  * @memberof PasswordChallenge
63
56
  */
64
57
  recoveryUrl?: string;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof PasswordChallenge
62
+ */
63
+ allowShowPassword?: boolean;
65
64
  }
66
65
  /**
67
66
  * Check if a given object implements the PasswordChallenge interface.
@@ -12,14 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
15
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
16
  /**
18
17
  * Check if a given object implements the PasswordChallenge interface.
19
18
  */
20
19
  export function instanceOfPasswordChallenge(value) {
21
20
  let isInstance = true;
22
- isInstance = isInstance && "type" in value;
23
21
  isInstance = isInstance && "pendingUser" in value;
24
22
  isInstance = isInstance && "pendingUserAvatar" in value;
25
23
  return isInstance;
@@ -32,13 +30,13 @@ export function PasswordChallengeFromJSONTyped(json, ignoreDiscriminator) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'type': ChallengeChoicesFromJSON(json['type']),
36
33
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
37
34
  'component': !exists(json, 'component') ? undefined : json['component'],
38
35
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
39
36
  'pendingUser': json['pending_user'],
40
37
  'pendingUserAvatar': json['pending_user_avatar'],
41
38
  'recoveryUrl': !exists(json, 'recovery_url') ? undefined : json['recovery_url'],
39
+ 'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
42
40
  };
43
41
  }
44
42
  export function PasswordChallengeToJSON(value) {
@@ -49,12 +47,12 @@ export function PasswordChallengeToJSON(value) {
49
47
  return null;
50
48
  }
51
49
  return {
52
- 'type': ChallengeChoicesToJSON(value.type),
53
50
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
54
51
  'component': value.component,
55
52
  'response_errors': value.responseErrors,
56
53
  'pending_user': value.pendingUser,
57
54
  'pending_user_avatar': value.pendingUserAvatar,
58
55
  'recovery_url': value.recoveryUrl,
56
+ 'allow_show_password': value.allowShowPassword,
59
57
  };
60
58
  }
@@ -77,6 +77,12 @@ export interface PasswordStage {
77
77
  * @memberof PasswordStage
78
78
  */
79
79
  failedAttemptsBeforeCancel?: number;
80
+ /**
81
+ * When enabled, provides a 'show password' button with the password input field.
82
+ * @type {boolean}
83
+ * @memberof PasswordStage
84
+ */
85
+ allowShowPassword?: boolean;
80
86
  }
81
87
  /**
82
88
  * Check if a given object implements the PasswordStage interface.
@@ -46,6 +46,7 @@ export function PasswordStageFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'backends': (json['backends'].map(BackendsEnumFromJSON)),
47
47
  'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
48
48
  'failedAttemptsBeforeCancel': !exists(json, 'failed_attempts_before_cancel') ? undefined : json['failed_attempts_before_cancel'],
49
+ 'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
49
50
  };
50
51
  }
51
52
  export function PasswordStageToJSON(value) {
@@ -61,5 +62,6 @@ export function PasswordStageToJSON(value) {
61
62
  'backends': (value.backends.map(BackendsEnumToJSON)),
62
63
  'configure_flow': value.configureFlow,
63
64
  'failed_attempts_before_cancel': value.failedAttemptsBeforeCancel,
65
+ 'allow_show_password': value.allowShowPassword,
64
66
  };
65
67
  }
@@ -47,6 +47,12 @@ export interface PasswordStageRequest {
47
47
  * @memberof PasswordStageRequest
48
48
  */
49
49
  failedAttemptsBeforeCancel?: number;
50
+ /**
51
+ * When enabled, provides a 'show password' button with the password input field.
52
+ * @type {boolean}
53
+ * @memberof PasswordStageRequest
54
+ */
55
+ allowShowPassword?: boolean;
50
56
  }
51
57
  /**
52
58
  * Check if a given object implements the PasswordStageRequest interface.
@@ -36,6 +36,7 @@ export function PasswordStageRequestFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'backends': (json['backends'].map(BackendsEnumFromJSON)),
37
37
  'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
38
38
  'failedAttemptsBeforeCancel': !exists(json, 'failed_attempts_before_cancel') ? undefined : json['failed_attempts_before_cancel'],
39
+ 'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
39
40
  };
40
41
  }
41
42
  export function PasswordStageRequestToJSON(value) {
@@ -51,5 +52,6 @@ export function PasswordStageRequestToJSON(value) {
51
52
  'backends': (value.backends.map(BackendsEnumToJSON)),
52
53
  'configure_flow': value.configureFlow,
53
54
  'failed_attempts_before_cancel': value.failedAttemptsBeforeCancel,
55
+ 'allow_show_password': value.allowShowPassword,
54
56
  };
55
57
  }
@@ -36,7 +36,7 @@ export interface PatchedIdentificationStageRequest {
36
36
  */
37
37
  userFields?: Array<UserFieldsEnum>;
38
38
  /**
39
- * When set, shows a password field, instead of showing the password field as seaprate step.
39
+ * When set, shows a password field, instead of showing the password field as separate step.
40
40
  * @type {string}
41
41
  * @memberof PatchedIdentificationStageRequest
42
42
  */
@@ -47,6 +47,12 @@ export interface PatchedPasswordStageRequest {
47
47
  * @memberof PatchedPasswordStageRequest
48
48
  */
49
49
  failedAttemptsBeforeCancel?: number;
50
+ /**
51
+ * When enabled, provides a 'show password' button with the password input field.
52
+ * @type {boolean}
53
+ * @memberof PatchedPasswordStageRequest
54
+ */
55
+ allowShowPassword?: boolean;
50
56
  }
51
57
  /**
52
58
  * Check if a given object implements the PatchedPasswordStageRequest interface.
@@ -34,6 +34,7 @@ export function PatchedPasswordStageRequestFromJSONTyped(json, ignoreDiscriminat
34
34
  'backends': !exists(json, 'backends') ? undefined : (json['backends'].map(BackendsEnumFromJSON)),
35
35
  'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
36
36
  'failedAttemptsBeforeCancel': !exists(json, 'failed_attempts_before_cancel') ? undefined : json['failed_attempts_before_cancel'],
37
+ 'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
37
38
  };
38
39
  }
39
40
  export function PatchedPasswordStageRequestToJSON(value) {
@@ -49,5 +50,6 @@ export function PatchedPasswordStageRequestToJSON(value) {
49
50
  'backends': value.backends === undefined ? undefined : (value.backends.map(BackendsEnumToJSON)),
50
51
  'configure_flow': value.configureFlow,
51
52
  'failed_attempts_before_cancel': value.failedAttemptsBeforeCancel,
53
+ 'allow_show_password': value.allowShowPassword,
52
54
  };
53
55
  }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChallengeChoices } from './ChallengeChoices';
13
12
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
13
  import type { ErrorDetail } from './ErrorDetail';
15
14
  /**
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
18
17
  * @interface PlexAuthenticationChallenge
19
18
  */
20
19
  export interface PlexAuthenticationChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof PlexAuthenticationChallenge
25
- */
26
- type: ChallengeChoices;
27
20
  /**
28
21
  *
29
22
  * @type {ContextualFlowInfo}
@@ -12,14 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
15
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
16
  /**
18
17
  * Check if a given object implements the PlexAuthenticationChallenge interface.
19
18
  */
20
19
  export function instanceOfPlexAuthenticationChallenge(value) {
21
20
  let isInstance = true;
22
- isInstance = isInstance && "type" in value;
23
21
  isInstance = isInstance && "clientId" in value;
24
22
  isInstance = isInstance && "slug" in value;
25
23
  return isInstance;
@@ -32,7 +30,6 @@ export function PlexAuthenticationChallengeFromJSONTyped(json, ignoreDiscriminat
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'type': ChallengeChoicesFromJSON(json['type']),
36
33
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
37
34
  'component': !exists(json, 'component') ? undefined : json['component'],
38
35
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -48,7 +45,6 @@ export function PlexAuthenticationChallengeToJSON(value) {
48
45
  return null;
49
46
  }
50
47
  return {
51
- 'type': ChallengeChoicesToJSON(value.type),
52
48
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
53
49
  'component': value.component,
54
50
  'response_errors': value.responseErrors,
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChallengeChoices } from './ChallengeChoices';
13
12
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
13
  import type { ErrorDetail } from './ErrorDetail';
15
14
  import type { StagePrompt } from './StagePrompt';
@@ -19,12 +18,6 @@ import type { StagePrompt } from './StagePrompt';
19
18
  * @interface PromptChallenge
20
19
  */
21
20
  export interface PromptChallenge {
22
- /**
23
- *
24
- * @type {ChallengeChoices}
25
- * @memberof PromptChallenge
26
- */
27
- type: ChallengeChoices;
28
21
  /**
29
22
  *
30
23
  * @type {ContextualFlowInfo}
@@ -12,7 +12,6 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
15
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
16
  import { StagePromptFromJSON, StagePromptToJSON, } from './StagePrompt';
18
17
  /**
@@ -20,7 +19,6 @@ import { StagePromptFromJSON, StagePromptToJSON, } from './StagePrompt';
20
19
  */
21
20
  export function instanceOfPromptChallenge(value) {
22
21
  let isInstance = true;
23
- isInstance = isInstance && "type" in value;
24
22
  isInstance = isInstance && "fields" in value;
25
23
  return isInstance;
26
24
  }
@@ -32,7 +30,6 @@ export function PromptChallengeFromJSONTyped(json, ignoreDiscriminator) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'type': ChallengeChoicesFromJSON(json['type']),
36
33
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
37
34
  'component': !exists(json, 'component') ? undefined : json['component'],
38
35
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -47,7 +44,6 @@ export function PromptChallengeToJSON(value) {
47
44
  return null;
48
45
  }
49
46
  return {
50
- 'type': ChallengeChoicesToJSON(value.type),
51
47
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
52
48
  'component': value.component,
53
49
  'response_errors': value.responseErrors,
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChallengeChoices } from './ChallengeChoices';
13
12
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
13
  import type { ErrorDetail } from './ErrorDetail';
15
14
  /**
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
18
17
  * @interface RedirectChallenge
19
18
  */
20
19
  export interface RedirectChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof RedirectChallenge
25
- */
26
- type: ChallengeChoices;
27
20
  /**
28
21
  *
29
22
  * @type {ContextualFlowInfo}
@@ -12,14 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
15
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
16
  /**
18
17
  * Check if a given object implements the RedirectChallenge interface.
19
18
  */
20
19
  export function instanceOfRedirectChallenge(value) {
21
20
  let isInstance = true;
22
- isInstance = isInstance && "type" in value;
23
21
  isInstance = isInstance && "to" in value;
24
22
  return isInstance;
25
23
  }
@@ -31,7 +29,6 @@ export function RedirectChallengeFromJSONTyped(json, ignoreDiscriminator) {
31
29
  return json;
32
30
  }
33
31
  return {
34
- 'type': ChallengeChoicesFromJSON(json['type']),
35
32
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
36
33
  'component': !exists(json, 'component') ? undefined : json['component'],
37
34
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -46,7 +43,6 @@ export function RedirectChallengeToJSON(value) {
46
43
  return null;
47
44
  }
48
45
  return {
49
- 'type': ChallengeChoicesToJSON(value.type),
50
46
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
51
47
  'component': value.component,
52
48
  'response_errors': value.responseErrors,