@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
@@ -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 { ConsentPermission } from './ConsentPermission';
14
13
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
15
14
  import type { ErrorDetail } from './ErrorDetail';
@@ -19,12 +18,6 @@ import type { ErrorDetail } from './ErrorDetail';
19
18
  * @interface ConsentChallenge
20
19
  */
21
20
  export interface ConsentChallenge {
22
- /**
23
- *
24
- * @type {ChallengeChoices}
25
- * @memberof ConsentChallenge
26
- */
27
- type: ChallengeChoices;
28
21
  /**
29
22
  *
30
23
  * @type {ContextualFlowInfo}
@@ -15,7 +15,6 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConsentChallengeToJSON = exports.ConsentChallengeFromJSONTyped = exports.ConsentChallengeFromJSON = exports.instanceOfConsentChallenge = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const ChallengeChoices_1 = require("./ChallengeChoices");
19
18
  const ConsentPermission_1 = require("./ConsentPermission");
20
19
  const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
21
20
  /**
@@ -23,7 +22,6 @@ const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
23
22
  */
24
23
  function instanceOfConsentChallenge(value) {
25
24
  let isInstance = true;
26
- isInstance = isInstance && "type" in value;
27
25
  isInstance = isInstance && "pendingUser" in value;
28
26
  isInstance = isInstance && "pendingUserAvatar" in value;
29
27
  isInstance = isInstance && "permissions" in value;
@@ -41,7 +39,6 @@ function ConsentChallengeFromJSONTyped(json, ignoreDiscriminator) {
41
39
  return json;
42
40
  }
43
41
  return {
44
- 'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
45
42
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
46
43
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
47
44
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
@@ -62,7 +59,6 @@ function ConsentChallengeToJSON(value) {
62
59
  return null;
63
60
  }
64
61
  return {
65
- 'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
66
62
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
67
63
  'component': value.component,
68
64
  '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 DummyChallenge
19
18
  */
20
19
  export interface DummyChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof DummyChallenge
25
- */
26
- type: ChallengeChoices;
27
20
  /**
28
21
  *
29
22
  * @type {ContextualFlowInfo}
@@ -15,14 +15,12 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DummyChallengeToJSON = exports.DummyChallengeFromJSONTyped = exports.DummyChallengeFromJSON = exports.instanceOfDummyChallenge = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const ChallengeChoices_1 = require("./ChallengeChoices");
19
18
  const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
20
19
  /**
21
20
  * Check if a given object implements the DummyChallenge interface.
22
21
  */
23
22
  function instanceOfDummyChallenge(value) {
24
23
  let isInstance = true;
25
- isInstance = isInstance && "type" in value;
26
24
  isInstance = isInstance && "name" in value;
27
25
  return isInstance;
28
26
  }
@@ -36,7 +34,6 @@ function DummyChallengeFromJSONTyped(json, ignoreDiscriminator) {
36
34
  return json;
37
35
  }
38
36
  return {
39
- 'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
40
37
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
41
38
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
42
39
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
@@ -52,7 +49,6 @@ function DummyChallengeToJSON(value) {
52
49
  return null;
53
50
  }
54
51
  return {
55
- 'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
56
52
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
57
53
  'component': value.component,
58
54
  '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}
@@ -15,14 +15,12 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.EmailChallengeToJSON = exports.EmailChallengeFromJSONTyped = exports.EmailChallengeFromJSON = exports.instanceOfEmailChallenge = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const ChallengeChoices_1 = require("./ChallengeChoices");
19
18
  const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
20
19
  /**
21
20
  * Check if a given object implements the EmailChallenge interface.
22
21
  */
23
22
  function instanceOfEmailChallenge(value) {
24
23
  let isInstance = true;
25
- isInstance = isInstance && "type" in value;
26
24
  return isInstance;
27
25
  }
28
26
  exports.instanceOfEmailChallenge = instanceOfEmailChallenge;
@@ -35,7 +33,6 @@ function EmailChallengeFromJSONTyped(json, ignoreDiscriminator) {
35
33
  return json;
36
34
  }
37
35
  return {
38
- 'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
39
36
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
40
37
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
41
38
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
@@ -50,7 +47,6 @@ function EmailChallengeToJSON(value) {
50
47
  return null;
51
48
  }
52
49
  return {
53
- 'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
54
50
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
55
51
  'component': value.component,
56
52
  '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}
@@ -34,7 +34,6 @@ function FlowErrorChallengeFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
38
37
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
39
38
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
40
39
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
@@ -52,7 +51,6 @@ function FlowErrorChallengeToJSON(value) {
52
51
  return null;
53
52
  }
54
53
  return {
55
- 'type': value.type,
56
54
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
57
55
  'component': value.component,
58
56
  '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}
@@ -15,7 +15,6 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.IdentificationChallengeToJSON = exports.IdentificationChallengeFromJSONTyped = exports.IdentificationChallengeFromJSON = exports.instanceOfIdentificationChallenge = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const ChallengeChoices_1 = require("./ChallengeChoices");
19
18
  const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
20
19
  const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
21
20
  const LoginSource_1 = require("./LoginSource");
@@ -24,7 +23,6 @@ const LoginSource_1 = require("./LoginSource");
24
23
  */
25
24
  function instanceOfIdentificationChallenge(value) {
26
25
  let isInstance = true;
27
- isInstance = isInstance && "type" in value;
28
26
  isInstance = isInstance && "userFields" in value;
29
27
  isInstance = isInstance && "passwordFields" in value;
30
28
  isInstance = isInstance && "flowDesignation" in value;
@@ -42,12 +40,12 @@ function IdentificationChallengeFromJSONTyped(json, ignoreDiscriminator) {
42
40
  return json;
43
41
  }
44
42
  return {
45
- 'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
46
43
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
47
44
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
48
45
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
49
46
  'userFields': json['user_fields'],
50
47
  'passwordFields': json['password_fields'],
48
+ 'allowShowPassword': !(0, runtime_1.exists)(json, 'allow_show_password') ? undefined : json['allow_show_password'],
51
49
  'applicationPre': !(0, runtime_1.exists)(json, 'application_pre') ? undefined : json['application_pre'],
52
50
  'flowDesignation': (0, FlowDesignationEnum_1.FlowDesignationEnumFromJSON)(json['flow_designation']),
53
51
  'enrollUrl': !(0, runtime_1.exists)(json, 'enroll_url') ? undefined : json['enroll_url'],
@@ -67,12 +65,12 @@ function IdentificationChallengeToJSON(value) {
67
65
  return null;
68
66
  }
69
67
  return {
70
- 'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
71
68
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
72
69
  'component': value.component,
73
70
  'response_errors': value.responseErrors,
74
71
  'user_fields': value.userFields,
75
72
  'password_fields': value.passwordFields,
73
+ 'allow_show_password': value.allowShowPassword,
76
74
  'application_pre': value.applicationPre,
77
75
  'flow_designation': (0, FlowDesignationEnum_1.FlowDesignationEnumToJSON)(value.flowDesignation),
78
76
  '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}
@@ -15,14 +15,12 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OAuthDeviceCodeChallengeToJSON = exports.OAuthDeviceCodeChallengeFromJSONTyped = exports.OAuthDeviceCodeChallengeFromJSON = exports.instanceOfOAuthDeviceCodeChallenge = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const ChallengeChoices_1 = require("./ChallengeChoices");
19
18
  const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
20
19
  /**
21
20
  * Check if a given object implements the OAuthDeviceCodeChallenge interface.
22
21
  */
23
22
  function instanceOfOAuthDeviceCodeChallenge(value) {
24
23
  let isInstance = true;
25
- isInstance = isInstance && "type" in value;
26
24
  return isInstance;
27
25
  }
28
26
  exports.instanceOfOAuthDeviceCodeChallenge = instanceOfOAuthDeviceCodeChallenge;
@@ -35,7 +33,6 @@ function OAuthDeviceCodeChallengeFromJSONTyped(json, ignoreDiscriminator) {
35
33
  return json;
36
34
  }
37
35
  return {
38
- 'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
39
36
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
40
37
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
41
38
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
@@ -50,7 +47,6 @@ function OAuthDeviceCodeChallengeToJSON(value) {
50
47
  return null;
51
48
  }
52
49
  return {
53
- 'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
54
50
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
55
51
  'component': value.component,
56
52
  '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}
@@ -15,14 +15,12 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OAuthDeviceCodeFinishChallengeToJSON = exports.OAuthDeviceCodeFinishChallengeFromJSONTyped = exports.OAuthDeviceCodeFinishChallengeFromJSON = exports.instanceOfOAuthDeviceCodeFinishChallenge = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const ChallengeChoices_1 = require("./ChallengeChoices");
19
18
  const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
20
19
  /**
21
20
  * Check if a given object implements the OAuthDeviceCodeFinishChallenge interface.
22
21
  */
23
22
  function instanceOfOAuthDeviceCodeFinishChallenge(value) {
24
23
  let isInstance = true;
25
- isInstance = isInstance && "type" in value;
26
24
  return isInstance;
27
25
  }
28
26
  exports.instanceOfOAuthDeviceCodeFinishChallenge = instanceOfOAuthDeviceCodeFinishChallenge;
@@ -35,7 +33,6 @@ function OAuthDeviceCodeFinishChallengeFromJSONTyped(json, ignoreDiscriminator)
35
33
  return json;
36
34
  }
37
35
  return {
38
- 'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
39
36
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
40
37
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
41
38
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
@@ -50,7 +47,6 @@ function OAuthDeviceCodeFinishChallengeToJSON(value) {
50
47
  return null;
51
48
  }
52
49
  return {
53
- 'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
54
50
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
55
51
  'component': value.component,
56
52
  '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.
@@ -15,14 +15,12 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PasswordChallengeToJSON = exports.PasswordChallengeFromJSONTyped = exports.PasswordChallengeFromJSON = exports.instanceOfPasswordChallenge = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const ChallengeChoices_1 = require("./ChallengeChoices");
19
18
  const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
20
19
  /**
21
20
  * Check if a given object implements the PasswordChallenge interface.
22
21
  */
23
22
  function instanceOfPasswordChallenge(value) {
24
23
  let isInstance = true;
25
- isInstance = isInstance && "type" in value;
26
24
  isInstance = isInstance && "pendingUser" in value;
27
25
  isInstance = isInstance && "pendingUserAvatar" in value;
28
26
  return isInstance;
@@ -37,13 +35,13 @@ function PasswordChallengeFromJSONTyped(json, ignoreDiscriminator) {
37
35
  return json;
38
36
  }
39
37
  return {
40
- 'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
41
38
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
42
39
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
43
40
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
44
41
  'pendingUser': json['pending_user'],
45
42
  'pendingUserAvatar': json['pending_user_avatar'],
46
43
  'recoveryUrl': !(0, runtime_1.exists)(json, 'recovery_url') ? undefined : json['recovery_url'],
44
+ 'allowShowPassword': !(0, runtime_1.exists)(json, 'allow_show_password') ? undefined : json['allow_show_password'],
47
45
  };
48
46
  }
49
47
  exports.PasswordChallengeFromJSONTyped = PasswordChallengeFromJSONTyped;
@@ -55,13 +53,13 @@ function PasswordChallengeToJSON(value) {
55
53
  return null;
56
54
  }
57
55
  return {
58
- 'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
59
56
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
60
57
  'component': value.component,
61
58
  'response_errors': value.responseErrors,
62
59
  'pending_user': value.pendingUser,
63
60
  'pending_user_avatar': value.pendingUserAvatar,
64
61
  'recovery_url': value.recoveryUrl,
62
+ 'allow_show_password': value.allowShowPassword,
65
63
  };
66
64
  }
67
65
  exports.PasswordChallengeToJSON = PasswordChallengeToJSON;
@@ -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.
@@ -51,6 +51,7 @@ function PasswordStageFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'backends': (json['backends'].map(BackendsEnum_1.BackendsEnumFromJSON)),
52
52
  'configureFlow': !(0, runtime_1.exists)(json, 'configure_flow') ? undefined : json['configure_flow'],
53
53
  'failedAttemptsBeforeCancel': !(0, runtime_1.exists)(json, 'failed_attempts_before_cancel') ? undefined : json['failed_attempts_before_cancel'],
54
+ 'allowShowPassword': !(0, runtime_1.exists)(json, 'allow_show_password') ? undefined : json['allow_show_password'],
54
55
  };
55
56
  }
56
57
  exports.PasswordStageFromJSONTyped = PasswordStageFromJSONTyped;
@@ -67,6 +68,7 @@ function PasswordStageToJSON(value) {
67
68
  'backends': (value.backends.map(BackendsEnum_1.BackendsEnumToJSON)),
68
69
  'configure_flow': value.configureFlow,
69
70
  'failed_attempts_before_cancel': value.failedAttemptsBeforeCancel,
71
+ 'allow_show_password': value.allowShowPassword,
70
72
  };
71
73
  }
72
74
  exports.PasswordStageToJSON = PasswordStageToJSON;
@@ -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.
@@ -41,6 +41,7 @@ function PasswordStageRequestFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'backends': (json['backends'].map(BackendsEnum_1.BackendsEnumFromJSON)),
42
42
  'configureFlow': !(0, runtime_1.exists)(json, 'configure_flow') ? undefined : json['configure_flow'],
43
43
  'failedAttemptsBeforeCancel': !(0, runtime_1.exists)(json, 'failed_attempts_before_cancel') ? undefined : json['failed_attempts_before_cancel'],
44
+ 'allowShowPassword': !(0, runtime_1.exists)(json, 'allow_show_password') ? undefined : json['allow_show_password'],
44
45
  };
45
46
  }
46
47
  exports.PasswordStageRequestFromJSONTyped = PasswordStageRequestFromJSONTyped;
@@ -57,6 +58,7 @@ function PasswordStageRequestToJSON(value) {
57
58
  'backends': (value.backends.map(BackendsEnum_1.BackendsEnumToJSON)),
58
59
  'configure_flow': value.configureFlow,
59
60
  'failed_attempts_before_cancel': value.failedAttemptsBeforeCancel,
61
+ 'allow_show_password': value.allowShowPassword,
60
62
  };
61
63
  }
62
64
  exports.PasswordStageRequestToJSON = PasswordStageRequestToJSON;
@@ -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.
@@ -39,6 +39,7 @@ function PatchedPasswordStageRequestFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'backends': !(0, runtime_1.exists)(json, 'backends') ? undefined : (json['backends'].map(BackendsEnum_1.BackendsEnumFromJSON)),
40
40
  'configureFlow': !(0, runtime_1.exists)(json, 'configure_flow') ? undefined : json['configure_flow'],
41
41
  'failedAttemptsBeforeCancel': !(0, runtime_1.exists)(json, 'failed_attempts_before_cancel') ? undefined : json['failed_attempts_before_cancel'],
42
+ 'allowShowPassword': !(0, runtime_1.exists)(json, 'allow_show_password') ? undefined : json['allow_show_password'],
42
43
  };
43
44
  }
44
45
  exports.PatchedPasswordStageRequestFromJSONTyped = PatchedPasswordStageRequestFromJSONTyped;
@@ -55,6 +56,7 @@ function PatchedPasswordStageRequestToJSON(value) {
55
56
  'backends': value.backends === undefined ? undefined : (value.backends.map(BackendsEnum_1.BackendsEnumToJSON)),
56
57
  'configure_flow': value.configureFlow,
57
58
  'failed_attempts_before_cancel': value.failedAttemptsBeforeCancel,
59
+ 'allow_show_password': value.allowShowPassword,
58
60
  };
59
61
  }
60
62
  exports.PatchedPasswordStageRequestToJSON = PatchedPasswordStageRequestToJSON;
@@ -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}
@@ -15,14 +15,12 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PlexAuthenticationChallengeToJSON = exports.PlexAuthenticationChallengeFromJSONTyped = exports.PlexAuthenticationChallengeFromJSON = exports.instanceOfPlexAuthenticationChallenge = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const ChallengeChoices_1 = require("./ChallengeChoices");
19
18
  const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
20
19
  /**
21
20
  * Check if a given object implements the PlexAuthenticationChallenge interface.
22
21
  */
23
22
  function instanceOfPlexAuthenticationChallenge(value) {
24
23
  let isInstance = true;
25
- isInstance = isInstance && "type" in value;
26
24
  isInstance = isInstance && "clientId" in value;
27
25
  isInstance = isInstance && "slug" in value;
28
26
  return isInstance;
@@ -37,7 +35,6 @@ function PlexAuthenticationChallengeFromJSONTyped(json, ignoreDiscriminator) {
37
35
  return json;
38
36
  }
39
37
  return {
40
- 'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
41
38
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
42
39
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
43
40
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
@@ -54,7 +51,6 @@ function PlexAuthenticationChallengeToJSON(value) {
54
51
  return null;
55
52
  }
56
53
  return {
57
- 'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
58
54
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
59
55
  'component': value.component,
60
56
  '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}