@goauthentik/api 2024.6.1-1720731051 → 2024.6.1-1721092506

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -90,7 +90,6 @@ src/models/CertificateData.ts
90
90
  src/models/CertificateGenerationRequest.ts
91
91
  src/models/CertificateKeyPair.ts
92
92
  src/models/CertificateKeyPairRequest.ts
93
- src/models/ChallengeChoices.ts
94
93
  src/models/ChallengeTypes.ts
95
94
  src/models/ClientTypeEnum.ts
96
95
  src/models/Config.ts
@@ -499,6 +499,7 @@ export interface StagesPasswordDestroyRequest {
499
499
  stageUuid: string;
500
500
  }
501
501
  export interface StagesPasswordListRequest {
502
+ allowShowPassword?: boolean;
502
503
  configureFlow?: string;
503
504
  failedAttemptsBeforeCancel?: number;
504
505
  name?: string;
@@ -4455,6 +4455,9 @@ class StagesApi extends runtime.BaseAPI {
4455
4455
  stagesPasswordListRaw(requestParameters, initOverrides) {
4456
4456
  return __awaiter(this, void 0, void 0, function* () {
4457
4457
  const queryParameters = {};
4458
+ if (requestParameters.allowShowPassword !== undefined) {
4459
+ queryParameters['allow_show_password'] = requestParameters.allowShowPassword;
4460
+ }
4458
4461
  if (requestParameters.configureFlow !== undefined) {
4459
4462
  queryParameters['configure_flow'] = requestParameters.configureFlow;
4460
4463
  }
@@ -499,6 +499,7 @@ export interface StagesPasswordDestroyRequest {
499
499
  stageUuid: string;
500
500
  }
501
501
  export interface StagesPasswordListRequest {
502
+ allowShowPassword?: boolean;
502
503
  configureFlow?: string;
503
504
  failedAttemptsBeforeCancel?: number;
504
505
  name?: string;
@@ -4452,6 +4452,9 @@ export class StagesApi extends runtime.BaseAPI {
4452
4452
  stagesPasswordListRaw(requestParameters, initOverrides) {
4453
4453
  return __awaiter(this, void 0, void 0, function* () {
4454
4454
  const queryParameters = {};
4455
+ if (requestParameters.allowShowPassword !== undefined) {
4456
+ queryParameters['allow_show_password'] = requestParameters.allowShowPassword;
4457
+ }
4455
4458
  if (requestParameters.configureFlow !== undefined) {
4456
4459
  queryParameters['configure_flow'] = requestParameters.configureFlow;
4457
4460
  }
@@ -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 AccessDeniedChallenge
19
18
  */
20
19
  export interface AccessDeniedChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof AccessDeniedChallenge
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 AccessDeniedChallenge interface.
19
18
  */
20
19
  export function instanceOfAccessDeniedChallenge(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,7 +30,6 @@ export function AccessDeniedChallengeFromJSONTyped(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'],
@@ -49,7 +46,6 @@ export function AccessDeniedChallengeToJSON(value) {
49
46
  return null;
50
47
  }
51
48
  return {
52
- 'type': ChallengeChoicesToJSON(value.type),
53
49
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
54
50
  'component': value.component,
55
51
  '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 AppleLoginChallenge
19
18
  */
20
19
  export interface AppleLoginChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof AppleLoginChallenge
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 AppleLoginChallenge interface.
19
18
  */
20
19
  export function instanceOfAppleLoginChallenge(value) {
21
20
  let isInstance = true;
22
- isInstance = isInstance && "type" in value;
23
21
  isInstance = isInstance && "clientId" in value;
24
22
  isInstance = isInstance && "scope" in value;
25
23
  isInstance = isInstance && "redirectUri" in value;
@@ -34,7 +32,6 @@ export function AppleLoginChallengeFromJSONTyped(json, ignoreDiscriminator) {
34
32
  return json;
35
33
  }
36
34
  return {
37
- 'type': ChallengeChoicesFromJSON(json['type']),
38
35
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
39
36
  'component': !exists(json, 'component') ? undefined : json['component'],
40
37
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -52,7 +49,6 @@ export function AppleLoginChallengeToJSON(value) {
52
49
  return null;
53
50
  }
54
51
  return {
55
- 'type': ChallengeChoicesToJSON(value.type),
56
52
  'flow_info': 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 AuthenticatorDuoChallenge
19
18
  */
20
19
  export interface AuthenticatorDuoChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof AuthenticatorDuoChallenge
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 AuthenticatorDuoChallenge interface.
19
18
  */
20
19
  export function instanceOfAuthenticatorDuoChallenge(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
  isInstance = isInstance && "activationBarcode" in value;
@@ -35,7 +33,6 @@ export function AuthenticatorDuoChallengeFromJSONTyped(json, ignoreDiscriminator
35
33
  return json;
36
34
  }
37
35
  return {
38
- 'type': ChallengeChoicesFromJSON(json['type']),
39
36
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
40
37
  'component': !exists(json, 'component') ? undefined : json['component'],
41
38
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -54,7 +51,6 @@ export function AuthenticatorDuoChallengeToJSON(value) {
54
51
  return null;
55
52
  }
56
53
  return {
57
- 'type': ChallengeChoicesToJSON(value.type),
58
54
  'flow_info': 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
  /**
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
18
17
  * @interface AuthenticatorSMSChallenge
19
18
  */
20
19
  export interface AuthenticatorSMSChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof AuthenticatorSMSChallenge
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 AuthenticatorSMSChallenge interface.
19
18
  */
20
19
  export function instanceOfAuthenticatorSMSChallenge(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,7 +30,6 @@ export function AuthenticatorSMSChallengeFromJSONTyped(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'],
@@ -49,7 +46,6 @@ export function AuthenticatorSMSChallengeToJSON(value) {
49
46
  return null;
50
47
  }
51
48
  return {
52
- 'type': ChallengeChoicesToJSON(value.type),
53
49
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
54
50
  'component': value.component,
55
51
  '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 AuthenticatorStaticChallenge
19
18
  */
20
19
  export interface AuthenticatorStaticChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof AuthenticatorStaticChallenge
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 AuthenticatorStaticChallenge interface.
19
18
  */
20
19
  export function instanceOfAuthenticatorStaticChallenge(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
  isInstance = isInstance && "codes" in value;
@@ -33,7 +31,6 @@ export function AuthenticatorStaticChallengeFromJSONTyped(json, ignoreDiscrimina
33
31
  return json;
34
32
  }
35
33
  return {
36
- 'type': ChallengeChoicesFromJSON(json['type']),
37
34
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
38
35
  'component': !exists(json, 'component') ? undefined : json['component'],
39
36
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -50,7 +47,6 @@ export function AuthenticatorStaticChallengeToJSON(value) {
50
47
  return null;
51
48
  }
52
49
  return {
53
- 'type': ChallengeChoicesToJSON(value.type),
54
50
  'flow_info': 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 AuthenticatorTOTPChallenge
19
18
  */
20
19
  export interface AuthenticatorTOTPChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof AuthenticatorTOTPChallenge
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 AuthenticatorTOTPChallenge interface.
19
18
  */
20
19
  export function instanceOfAuthenticatorTOTPChallenge(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
  isInstance = isInstance && "configUrl" in value;
@@ -33,7 +31,6 @@ export function AuthenticatorTOTPChallengeFromJSONTyped(json, ignoreDiscriminato
33
31
  return json;
34
32
  }
35
33
  return {
36
- 'type': ChallengeChoicesFromJSON(json['type']),
37
34
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
38
35
  'component': !exists(json, 'component') ? undefined : json['component'],
39
36
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -50,7 +47,6 @@ export function AuthenticatorTOTPChallengeToJSON(value) {
50
47
  return null;
51
48
  }
52
49
  return {
53
- 'type': ChallengeChoicesToJSON(value.type),
54
50
  'flow_info': 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 { DeviceChallenge } from './DeviceChallenge';
15
14
  import type { ErrorDetail } from './ErrorDetail';
@@ -20,12 +19,6 @@ import type { SelectableStage } from './SelectableStage';
20
19
  * @interface AuthenticatorValidationChallenge
21
20
  */
22
21
  export interface AuthenticatorValidationChallenge {
23
- /**
24
- *
25
- * @type {ChallengeChoices}
26
- * @memberof AuthenticatorValidationChallenge
27
- */
28
- type: ChallengeChoices;
29
22
  /**
30
23
  *
31
24
  * @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 { DeviceChallengeFromJSON, DeviceChallengeToJSON, } from './DeviceChallenge';
18
17
  import { SelectableStageFromJSON, SelectableStageToJSON, } from './SelectableStage';
@@ -21,7 +20,6 @@ import { SelectableStageFromJSON, SelectableStageToJSON, } from './SelectableSta
21
20
  */
22
21
  export function instanceOfAuthenticatorValidationChallenge(value) {
23
22
  let isInstance = true;
24
- isInstance = isInstance && "type" in value;
25
23
  isInstance = isInstance && "pendingUser" in value;
26
24
  isInstance = isInstance && "pendingUserAvatar" in value;
27
25
  isInstance = isInstance && "deviceChallenges" in value;
@@ -36,7 +34,6 @@ export function AuthenticatorValidationChallengeFromJSONTyped(json, ignoreDiscri
36
34
  return json;
37
35
  }
38
36
  return {
39
- 'type': ChallengeChoicesFromJSON(json['type']),
40
37
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
41
38
  'component': !exists(json, 'component') ? undefined : json['component'],
42
39
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -54,7 +51,6 @@ export function AuthenticatorValidationChallengeToJSON(value) {
54
51
  return null;
55
52
  }
56
53
  return {
57
- 'type': ChallengeChoicesToJSON(value.type),
58
54
  'flow_info': 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
  /**
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
18
17
  * @interface AuthenticatorWebAuthnChallenge
19
18
  */
20
19
  export interface AuthenticatorWebAuthnChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof AuthenticatorWebAuthnChallenge
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 AuthenticatorWebAuthnChallenge interface.
19
18
  */
20
19
  export function instanceOfAuthenticatorWebAuthnChallenge(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
  isInstance = isInstance && "registration" in value;
@@ -33,7 +31,6 @@ export function AuthenticatorWebAuthnChallengeFromJSONTyped(json, ignoreDiscrimi
33
31
  return json;
34
32
  }
35
33
  return {
36
- 'type': ChallengeChoicesFromJSON(json['type']),
37
34
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
38
35
  'component': !exists(json, 'component') ? undefined : json['component'],
39
36
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -50,7 +47,6 @@ export function AuthenticatorWebAuthnChallengeToJSON(value) {
50
47
  return null;
51
48
  }
52
49
  return {
53
- 'type': ChallengeChoicesToJSON(value.type),
54
50
  'flow_info': 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 AutosubmitChallenge
19
18
  */
20
19
  export interface AutosubmitChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof AutosubmitChallenge
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 AutosubmitChallenge interface.
19
18
  */
20
19
  export function instanceOfAutosubmitChallenge(value) {
21
20
  let isInstance = true;
22
- isInstance = isInstance && "type" in value;
23
21
  isInstance = isInstance && "url" in value;
24
22
  isInstance = isInstance && "attrs" in value;
25
23
  return isInstance;
@@ -32,7 +30,6 @@ export function AutosubmitChallengeFromJSONTyped(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'],
@@ -49,7 +46,6 @@ export function AutosubmitChallengeToJSON(value) {
49
46
  return null;
50
47
  }
51
48
  return {
52
- 'type': ChallengeChoicesToJSON(value.type),
53
49
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
54
50
  'component': value.component,
55
51
  '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 CaptchaChallenge
19
18
  */
20
19
  export interface CaptchaChallenge {
21
- /**
22
- *
23
- * @type {ChallengeChoices}
24
- * @memberof CaptchaChallenge
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 CaptchaChallenge interface.
19
18
  */
20
19
  export function instanceOfCaptchaChallenge(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
  isInstance = isInstance && "siteKey" in value;
@@ -34,7 +32,6 @@ export function CaptchaChallengeFromJSONTyped(json, ignoreDiscriminator) {
34
32
  return json;
35
33
  }
36
34
  return {
37
- 'type': ChallengeChoicesFromJSON(json['type']),
38
35
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
39
36
  'component': !exists(json, 'component') ? undefined : json['component'],
40
37
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -52,7 +49,6 @@ export function CaptchaChallengeToJSON(value) {
52
49
  return null;
53
50
  }
54
51
  return {
55
- 'type': ChallengeChoicesToJSON(value.type),
56
52
  'flow_info': 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 { 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}
@@ -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 { ConsentPermissionFromJSON, ConsentPermissionToJSON, } from './ConsentPermission';
17
16
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
18
17
  /**
@@ -20,7 +19,6 @@ import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './Context
20
19
  */
21
20
  export function instanceOfConsentChallenge(value) {
22
21
  let isInstance = true;
23
- isInstance = isInstance && "type" in value;
24
22
  isInstance = isInstance && "pendingUser" in value;
25
23
  isInstance = isInstance && "pendingUserAvatar" in value;
26
24
  isInstance = isInstance && "permissions" in value;
@@ -36,7 +34,6 @@ export function ConsentChallengeFromJSONTyped(json, ignoreDiscriminator) {
36
34
  return json;
37
35
  }
38
36
  return {
39
- 'type': ChallengeChoicesFromJSON(json['type']),
40
37
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
41
38
  'component': !exists(json, 'component') ? undefined : json['component'],
42
39
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
@@ -56,7 +53,6 @@ export function ConsentChallengeToJSON(value) {
56
53
  return null;
57
54
  }
58
55
  return {
59
- 'type': ChallengeChoicesToJSON(value.type),
60
56
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
61
57
  'component': value.component,
62
58
  '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}