@goauthentik/api 2022.8.2-1662930536 → 2022.8.2-1663409478

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/dist/apis/StagesApi.d.ts +16 -6
  3. package/dist/apis/StagesApi.js +40 -10
  4. package/dist/esm/apis/StagesApi.d.ts +16 -6
  5. package/dist/esm/apis/StagesApi.js +41 -11
  6. package/dist/esm/models/AccessDeniedChallenge.d.ts +1 -1
  7. package/dist/esm/models/AccessDeniedChallenge.js +1 -1
  8. package/dist/esm/models/AppleChallengeResponseRequest.d.ts +1 -1
  9. package/dist/esm/models/AppleChallengeResponseRequest.js +2 -1
  10. package/dist/esm/models/AppleLoginChallenge.d.ts +1 -1
  11. package/dist/esm/models/AppleLoginChallenge.js +1 -1
  12. package/dist/esm/models/AuthenticatorDuoChallenge.d.ts +1 -1
  13. package/dist/esm/models/AuthenticatorDuoChallenge.js +1 -1
  14. package/dist/esm/models/AuthenticatorDuoChallengeResponseRequest.d.ts +1 -1
  15. package/dist/esm/models/AuthenticatorDuoChallengeResponseRequest.js +2 -1
  16. package/dist/esm/models/AuthenticatorDuoStage.d.ts +6 -0
  17. package/dist/esm/models/AuthenticatorDuoStage.js +2 -0
  18. package/dist/esm/models/AuthenticatorDuoStageDeviceImportResponse.d.ts +33 -0
  19. package/dist/esm/models/AuthenticatorDuoStageDeviceImportResponse.js +34 -0
  20. package/dist/esm/models/AuthenticatorDuoStageManualDeviceImportRequest.d.ts +33 -0
  21. package/dist/esm/models/AuthenticatorDuoStageManualDeviceImportRequest.js +37 -0
  22. package/dist/esm/models/AuthenticatorDuoStageRequest.d.ts +12 -0
  23. package/dist/esm/models/AuthenticatorDuoStageRequest.js +4 -0
  24. package/dist/esm/models/AuthenticatorSMSChallenge.d.ts +1 -1
  25. package/dist/esm/models/AuthenticatorSMSChallenge.js +1 -1
  26. package/dist/esm/models/AuthenticatorSMSChallengeResponseRequest.d.ts +1 -1
  27. package/dist/esm/models/AuthenticatorSMSChallengeResponseRequest.js +1 -1
  28. package/dist/esm/models/AuthenticatorStaticChallenge.d.ts +1 -1
  29. package/dist/esm/models/AuthenticatorStaticChallenge.js +1 -1
  30. package/dist/esm/models/AuthenticatorStaticChallengeResponseRequest.d.ts +1 -1
  31. package/dist/esm/models/AuthenticatorStaticChallengeResponseRequest.js +2 -1
  32. package/dist/esm/models/AuthenticatorTOTPChallenge.d.ts +1 -1
  33. package/dist/esm/models/AuthenticatorTOTPChallenge.js +1 -1
  34. package/dist/esm/models/AuthenticatorTOTPChallengeResponseRequest.d.ts +1 -1
  35. package/dist/esm/models/AuthenticatorTOTPChallengeResponseRequest.js +2 -1
  36. package/dist/esm/models/AuthenticatorValidationChallenge.d.ts +1 -1
  37. package/dist/esm/models/AuthenticatorValidationChallenge.js +1 -1
  38. package/dist/esm/models/AuthenticatorValidationChallengeResponseRequest.d.ts +1 -1
  39. package/dist/esm/models/AuthenticatorValidationChallengeResponseRequest.js +1 -1
  40. package/dist/esm/models/AuthenticatorWebAuthnChallenge.d.ts +1 -1
  41. package/dist/esm/models/AuthenticatorWebAuthnChallenge.js +1 -1
  42. package/dist/esm/models/AuthenticatorWebAuthnChallengeResponseRequest.d.ts +1 -1
  43. package/dist/esm/models/AuthenticatorWebAuthnChallengeResponseRequest.js +2 -1
  44. package/dist/esm/models/AutoSubmitChallengeResponseRequest.d.ts +1 -1
  45. package/dist/esm/models/AutoSubmitChallengeResponseRequest.js +2 -1
  46. package/dist/esm/models/AutosubmitChallenge.d.ts +1 -1
  47. package/dist/esm/models/AutosubmitChallenge.js +1 -1
  48. package/dist/esm/models/CaptchaChallenge.d.ts +1 -1
  49. package/dist/esm/models/CaptchaChallenge.js +1 -1
  50. package/dist/esm/models/CaptchaChallengeResponseRequest.d.ts +1 -1
  51. package/dist/esm/models/CaptchaChallengeResponseRequest.js +2 -1
  52. package/dist/esm/models/ConsentChallenge.d.ts +1 -1
  53. package/dist/esm/models/ConsentChallenge.js +1 -1
  54. package/dist/esm/models/ConsentChallengeResponseRequest.d.ts +1 -1
  55. package/dist/esm/models/ConsentChallengeResponseRequest.js +2 -1
  56. package/dist/esm/models/DummyChallenge.d.ts +1 -1
  57. package/dist/esm/models/DummyChallenge.js +1 -1
  58. package/dist/esm/models/DummyChallengeResponseRequest.d.ts +1 -1
  59. package/dist/esm/models/DummyChallengeResponseRequest.js +2 -1
  60. package/dist/esm/models/EmailChallenge.d.ts +1 -1
  61. package/dist/esm/models/EmailChallenge.js +1 -1
  62. package/dist/esm/models/EmailChallengeResponseRequest.d.ts +1 -1
  63. package/dist/esm/models/EmailChallengeResponseRequest.js +2 -1
  64. package/dist/esm/models/FlowErrorChallenge.d.ts +1 -1
  65. package/dist/esm/models/FlowErrorChallenge.js +1 -1
  66. package/dist/esm/models/IdentificationChallenge.d.ts +1 -1
  67. package/dist/esm/models/IdentificationChallenge.js +1 -1
  68. package/dist/esm/models/IdentificationChallengeResponseRequest.d.ts +1 -1
  69. package/dist/esm/models/IdentificationChallengeResponseRequest.js +1 -1
  70. package/dist/esm/models/PasswordChallenge.d.ts +1 -1
  71. package/dist/esm/models/PasswordChallenge.js +1 -1
  72. package/dist/esm/models/PasswordChallengeResponseRequest.d.ts +1 -1
  73. package/dist/esm/models/PasswordChallengeResponseRequest.js +2 -1
  74. package/dist/esm/models/PatchedAuthenticatorDuoStageRequest.d.ts +12 -0
  75. package/dist/esm/models/PatchedAuthenticatorDuoStageRequest.js +4 -0
  76. package/dist/esm/models/PlexAuthenticationChallenge.d.ts +1 -1
  77. package/dist/esm/models/PlexAuthenticationChallenge.js +1 -1
  78. package/dist/esm/models/PlexAuthenticationChallengeResponseRequest.d.ts +1 -1
  79. package/dist/esm/models/PlexAuthenticationChallengeResponseRequest.js +2 -1
  80. package/dist/esm/models/PromptChallenge.d.ts +1 -1
  81. package/dist/esm/models/PromptChallenge.js +1 -1
  82. package/dist/esm/models/PromptChallengeResponseRequest.d.ts +1 -1
  83. package/dist/esm/models/PromptChallengeResponseRequest.js +2 -1
  84. package/dist/esm/models/RedirectChallenge.d.ts +1 -1
  85. package/dist/esm/models/RedirectChallenge.js +1 -1
  86. package/dist/esm/models/ShellChallenge.d.ts +1 -1
  87. package/dist/esm/models/ShellChallenge.js +1 -1
  88. package/dist/esm/models/index.d.ts +2 -0
  89. package/dist/esm/models/index.js +2 -0
  90. package/dist/models/AccessDeniedChallenge.d.ts +1 -1
  91. package/dist/models/AccessDeniedChallenge.js +1 -1
  92. package/dist/models/AppleChallengeResponseRequest.d.ts +1 -1
  93. package/dist/models/AppleChallengeResponseRequest.js +2 -1
  94. package/dist/models/AppleLoginChallenge.d.ts +1 -1
  95. package/dist/models/AppleLoginChallenge.js +1 -1
  96. package/dist/models/AuthenticatorDuoChallenge.d.ts +1 -1
  97. package/dist/models/AuthenticatorDuoChallenge.js +1 -1
  98. package/dist/models/AuthenticatorDuoChallengeResponseRequest.d.ts +1 -1
  99. package/dist/models/AuthenticatorDuoChallengeResponseRequest.js +2 -1
  100. package/dist/models/AuthenticatorDuoStage.d.ts +6 -0
  101. package/dist/models/AuthenticatorDuoStage.js +2 -0
  102. package/dist/models/AuthenticatorDuoStageDeviceImportResponse.d.ts +33 -0
  103. package/dist/models/AuthenticatorDuoStageDeviceImportResponse.js +40 -0
  104. package/dist/models/AuthenticatorDuoStageManualDeviceImportRequest.d.ts +33 -0
  105. package/dist/models/AuthenticatorDuoStageManualDeviceImportRequest.js +43 -0
  106. package/dist/models/AuthenticatorDuoStageRequest.d.ts +12 -0
  107. package/dist/models/AuthenticatorDuoStageRequest.js +4 -0
  108. package/dist/models/AuthenticatorSMSChallenge.d.ts +1 -1
  109. package/dist/models/AuthenticatorSMSChallenge.js +1 -1
  110. package/dist/models/AuthenticatorSMSChallengeResponseRequest.d.ts +1 -1
  111. package/dist/models/AuthenticatorSMSChallengeResponseRequest.js +1 -1
  112. package/dist/models/AuthenticatorStaticChallenge.d.ts +1 -1
  113. package/dist/models/AuthenticatorStaticChallenge.js +1 -1
  114. package/dist/models/AuthenticatorStaticChallengeResponseRequest.d.ts +1 -1
  115. package/dist/models/AuthenticatorStaticChallengeResponseRequest.js +2 -1
  116. package/dist/models/AuthenticatorTOTPChallenge.d.ts +1 -1
  117. package/dist/models/AuthenticatorTOTPChallenge.js +1 -1
  118. package/dist/models/AuthenticatorTOTPChallengeResponseRequest.d.ts +1 -1
  119. package/dist/models/AuthenticatorTOTPChallengeResponseRequest.js +2 -1
  120. package/dist/models/AuthenticatorValidationChallenge.d.ts +1 -1
  121. package/dist/models/AuthenticatorValidationChallenge.js +1 -1
  122. package/dist/models/AuthenticatorValidationChallengeResponseRequest.d.ts +1 -1
  123. package/dist/models/AuthenticatorValidationChallengeResponseRequest.js +1 -1
  124. package/dist/models/AuthenticatorWebAuthnChallenge.d.ts +1 -1
  125. package/dist/models/AuthenticatorWebAuthnChallenge.js +1 -1
  126. package/dist/models/AuthenticatorWebAuthnChallengeResponseRequest.d.ts +1 -1
  127. package/dist/models/AuthenticatorWebAuthnChallengeResponseRequest.js +2 -1
  128. package/dist/models/AutoSubmitChallengeResponseRequest.d.ts +1 -1
  129. package/dist/models/AutoSubmitChallengeResponseRequest.js +2 -1
  130. package/dist/models/AutosubmitChallenge.d.ts +1 -1
  131. package/dist/models/AutosubmitChallenge.js +1 -1
  132. package/dist/models/CaptchaChallenge.d.ts +1 -1
  133. package/dist/models/CaptchaChallenge.js +1 -1
  134. package/dist/models/CaptchaChallengeResponseRequest.d.ts +1 -1
  135. package/dist/models/CaptchaChallengeResponseRequest.js +2 -1
  136. package/dist/models/ConsentChallenge.d.ts +1 -1
  137. package/dist/models/ConsentChallenge.js +1 -1
  138. package/dist/models/ConsentChallengeResponseRequest.d.ts +1 -1
  139. package/dist/models/ConsentChallengeResponseRequest.js +2 -1
  140. package/dist/models/DummyChallenge.d.ts +1 -1
  141. package/dist/models/DummyChallenge.js +1 -1
  142. package/dist/models/DummyChallengeResponseRequest.d.ts +1 -1
  143. package/dist/models/DummyChallengeResponseRequest.js +2 -1
  144. package/dist/models/EmailChallenge.d.ts +1 -1
  145. package/dist/models/EmailChallenge.js +1 -1
  146. package/dist/models/EmailChallengeResponseRequest.d.ts +1 -1
  147. package/dist/models/EmailChallengeResponseRequest.js +2 -1
  148. package/dist/models/FlowErrorChallenge.d.ts +1 -1
  149. package/dist/models/FlowErrorChallenge.js +1 -1
  150. package/dist/models/IdentificationChallenge.d.ts +1 -1
  151. package/dist/models/IdentificationChallenge.js +1 -1
  152. package/dist/models/IdentificationChallengeResponseRequest.d.ts +1 -1
  153. package/dist/models/IdentificationChallengeResponseRequest.js +1 -1
  154. package/dist/models/PasswordChallenge.d.ts +1 -1
  155. package/dist/models/PasswordChallenge.js +1 -1
  156. package/dist/models/PasswordChallengeResponseRequest.d.ts +1 -1
  157. package/dist/models/PasswordChallengeResponseRequest.js +2 -1
  158. package/dist/models/PatchedAuthenticatorDuoStageRequest.d.ts +12 -0
  159. package/dist/models/PatchedAuthenticatorDuoStageRequest.js +4 -0
  160. package/dist/models/PlexAuthenticationChallenge.d.ts +1 -1
  161. package/dist/models/PlexAuthenticationChallenge.js +1 -1
  162. package/dist/models/PlexAuthenticationChallengeResponseRequest.d.ts +1 -1
  163. package/dist/models/PlexAuthenticationChallengeResponseRequest.js +2 -1
  164. package/dist/models/PromptChallenge.d.ts +1 -1
  165. package/dist/models/PromptChallenge.js +1 -1
  166. package/dist/models/PromptChallengeResponseRequest.d.ts +1 -1
  167. package/dist/models/PromptChallengeResponseRequest.js +2 -1
  168. package/dist/models/RedirectChallenge.d.ts +1 -1
  169. package/dist/models/RedirectChallenge.js +1 -1
  170. package/dist/models/ShellChallenge.d.ts +1 -1
  171. package/dist/models/ShellChallenge.js +1 -1
  172. package/dist/models/index.d.ts +2 -0
  173. package/dist/models/index.js +2 -0
  174. package/package.json +2 -2
  175. package/src/apis/StagesApi.ts +55 -13
  176. package/src/models/AccessDeniedChallenge.ts +2 -2
  177. package/src/models/AppleChallengeResponseRequest.ts +2 -2
  178. package/src/models/AppleLoginChallenge.ts +2 -2
  179. package/src/models/AuthenticatorDuoChallenge.ts +2 -2
  180. package/src/models/AuthenticatorDuoChallengeResponseRequest.ts +2 -2
  181. package/src/models/AuthenticatorDuoStage.ts +8 -0
  182. package/src/models/AuthenticatorDuoStageDeviceImportResponse.ts +62 -0
  183. package/src/models/AuthenticatorDuoStageManualDeviceImportRequest.ts +64 -0
  184. package/src/models/AuthenticatorDuoStageRequest.ts +16 -0
  185. package/src/models/AuthenticatorSMSChallenge.ts +2 -2
  186. package/src/models/AuthenticatorSMSChallengeResponseRequest.ts +2 -2
  187. package/src/models/AuthenticatorStaticChallenge.ts +2 -2
  188. package/src/models/AuthenticatorStaticChallengeResponseRequest.ts +2 -2
  189. package/src/models/AuthenticatorTOTPChallenge.ts +2 -2
  190. package/src/models/AuthenticatorTOTPChallengeResponseRequest.ts +2 -2
  191. package/src/models/AuthenticatorValidationChallenge.ts +2 -2
  192. package/src/models/AuthenticatorValidationChallengeResponseRequest.ts +2 -2
  193. package/src/models/AuthenticatorWebAuthnChallenge.ts +2 -2
  194. package/src/models/AuthenticatorWebAuthnChallengeResponseRequest.ts +2 -2
  195. package/src/models/AutoSubmitChallengeResponseRequest.ts +2 -2
  196. package/src/models/AutosubmitChallenge.ts +2 -2
  197. package/src/models/CaptchaChallenge.ts +2 -2
  198. package/src/models/CaptchaChallengeResponseRequest.ts +2 -2
  199. package/src/models/ConsentChallenge.ts +2 -2
  200. package/src/models/ConsentChallengeResponseRequest.ts +2 -2
  201. package/src/models/DummyChallenge.ts +2 -2
  202. package/src/models/DummyChallengeResponseRequest.ts +2 -2
  203. package/src/models/EmailChallenge.ts +2 -2
  204. package/src/models/EmailChallengeResponseRequest.ts +2 -2
  205. package/src/models/FlowErrorChallenge.ts +2 -2
  206. package/src/models/IdentificationChallenge.ts +2 -2
  207. package/src/models/IdentificationChallengeResponseRequest.ts +2 -2
  208. package/src/models/PasswordChallenge.ts +2 -2
  209. package/src/models/PasswordChallengeResponseRequest.ts +2 -2
  210. package/src/models/PatchedAuthenticatorDuoStageRequest.ts +16 -0
  211. package/src/models/PlexAuthenticationChallenge.ts +2 -2
  212. package/src/models/PlexAuthenticationChallengeResponseRequest.ts +2 -2
  213. package/src/models/PromptChallenge.ts +2 -2
  214. package/src/models/PromptChallengeResponseRequest.ts +2 -2
  215. package/src/models/RedirectChallenge.ts +2 -2
  216. package/src/models/ShellChallenge.ts +2 -2
  217. package/src/models/index.ts +2 -0
@@ -20,7 +20,7 @@ export interface PlexAuthenticationChallengeResponseRequest {
20
20
  * @type {string}
21
21
  * @memberof PlexAuthenticationChallengeResponseRequest
22
22
  */
23
- component: string;
23
+ component?: string;
24
24
  }
25
25
  export declare function PlexAuthenticationChallengeResponseRequestFromJSON(json: any): PlexAuthenticationChallengeResponseRequest;
26
26
  export declare function PlexAuthenticationChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlexAuthenticationChallengeResponseRequest;
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  export function PlexAuthenticationChallengeResponseRequestFromJSON(json) {
15
16
  return PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, false);
16
17
  }
@@ -19,7 +20,7 @@ export function PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, ig
19
20
  return json;
20
21
  }
21
22
  return {
22
- 'component': json['component'],
23
+ 'component': !exists(json, 'component') ? undefined : json['component'],
23
24
  };
24
25
  }
25
26
  export function PlexAuthenticationChallengeResponseRequestToJSON(value) {
@@ -36,7 +36,7 @@ export interface PromptChallenge {
36
36
  * @type {string}
37
37
  * @memberof PromptChallenge
38
38
  */
39
- component: string;
39
+ component?: string;
40
40
  /**
41
41
  *
42
42
  * @type {{ [key: string]: Array<ErrorDetail>; }}
@@ -25,7 +25,7 @@ export function PromptChallengeFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return {
26
26
  'type': ChallengeChoicesFromJSON(json['type']),
27
27
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
28
- 'component': json['component'],
28
+ 'component': !exists(json, 'component') ? undefined : json['component'],
29
29
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
30
30
  'fields': (json['fields'].map(StagePromptFromJSON)),
31
31
  };
@@ -22,7 +22,7 @@ export interface PromptChallengeResponseRequest {
22
22
  * @type {string}
23
23
  * @memberof PromptChallengeResponseRequest
24
24
  */
25
- component: string;
25
+ component?: string;
26
26
  }
27
27
  export declare function PromptChallengeResponseRequestFromJSON(json: any): PromptChallengeResponseRequest;
28
28
  export declare function PromptChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PromptChallengeResponseRequest;
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  export function PromptChallengeResponseRequestFromJSON(json) {
15
16
  return PromptChallengeResponseRequestFromJSONTyped(json, false);
16
17
  }
@@ -18,7 +19,7 @@ export function PromptChallengeResponseRequestFromJSONTyped(json, ignoreDiscrimi
18
19
  if ((json === undefined) || (json === null)) {
19
20
  return json;
20
21
  }
21
- return Object.assign(Object.assign({}, json), { 'component': json['component'] });
22
+ return Object.assign(Object.assign({}, json), { 'component': !exists(json, 'component') ? undefined : json['component'] });
22
23
  }
23
24
  export function PromptChallengeResponseRequestToJSON(value) {
24
25
  if (value === undefined) {
@@ -35,7 +35,7 @@ export interface RedirectChallenge {
35
35
  * @type {string}
36
36
  * @memberof RedirectChallenge
37
37
  */
38
- component: string;
38
+ component?: string;
39
39
  /**
40
40
  *
41
41
  * @type {{ [key: string]: Array<ErrorDetail>; }}
@@ -24,7 +24,7 @@ export function RedirectChallengeFromJSONTyped(json, ignoreDiscriminator) {
24
24
  return {
25
25
  'type': ChallengeChoicesFromJSON(json['type']),
26
26
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
27
- 'component': json['component'],
27
+ 'component': !exists(json, 'component') ? undefined : json['component'],
28
28
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
29
29
  'to': json['to'],
30
30
  };
@@ -35,7 +35,7 @@ export interface ShellChallenge {
35
35
  * @type {string}
36
36
  * @memberof ShellChallenge
37
37
  */
38
- component: string;
38
+ component?: string;
39
39
  /**
40
40
  *
41
41
  * @type {{ [key: string]: Array<ErrorDetail>; }}
@@ -24,7 +24,7 @@ export function ShellChallengeFromJSONTyped(json, ignoreDiscriminator) {
24
24
  return {
25
25
  'type': ChallengeChoicesFromJSON(json['type']),
26
26
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
27
- 'component': json['component'],
27
+ 'component': !exists(json, 'component') ? undefined : json['component'],
28
28
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
29
29
  'body': json['body'],
30
30
  };
@@ -19,6 +19,8 @@ export * from './AuthenticatorAttachmentEnum';
19
19
  export * from './AuthenticatorDuoChallenge';
20
20
  export * from './AuthenticatorDuoChallengeResponseRequest';
21
21
  export * from './AuthenticatorDuoStage';
22
+ export * from './AuthenticatorDuoStageDeviceImportResponse';
23
+ export * from './AuthenticatorDuoStageManualDeviceImportRequest';
22
24
  export * from './AuthenticatorDuoStageRequest';
23
25
  export * from './AuthenticatorSMSChallenge';
24
26
  export * from './AuthenticatorSMSChallengeResponseRequest';
@@ -21,6 +21,8 @@ export * from './AuthenticatorAttachmentEnum';
21
21
  export * from './AuthenticatorDuoChallenge';
22
22
  export * from './AuthenticatorDuoChallengeResponseRequest';
23
23
  export * from './AuthenticatorDuoStage';
24
+ export * from './AuthenticatorDuoStageDeviceImportResponse';
25
+ export * from './AuthenticatorDuoStageManualDeviceImportRequest';
24
26
  export * from './AuthenticatorDuoStageRequest';
25
27
  export * from './AuthenticatorSMSChallenge';
26
28
  export * from './AuthenticatorSMSChallengeResponseRequest';
@@ -35,7 +35,7 @@ export interface AccessDeniedChallenge {
35
35
  * @type {string}
36
36
  * @memberof AccessDeniedChallenge
37
37
  */
38
- component: string;
38
+ component?: string;
39
39
  /**
40
40
  *
41
41
  * @type {{ [key: string]: Array<ErrorDetail>; }}
@@ -28,7 +28,7 @@ function AccessDeniedChallengeFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return {
29
29
  'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
30
30
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
31
- 'component': json['component'],
31
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
32
32
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
33
33
  'pendingUser': json['pending_user'],
34
34
  'pendingUserAvatar': json['pending_user_avatar'],
@@ -20,7 +20,7 @@ export interface AppleChallengeResponseRequest {
20
20
  * @type {string}
21
21
  * @memberof AppleChallengeResponseRequest
22
22
  */
23
- component: string;
23
+ component?: string;
24
24
  }
25
25
  export declare function AppleChallengeResponseRequestFromJSON(json: any): AppleChallengeResponseRequest;
26
26
  export declare function AppleChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleChallengeResponseRequest;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AppleChallengeResponseRequestToJSON = exports.AppleChallengeResponseRequestFromJSONTyped = exports.AppleChallengeResponseRequestFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  function AppleChallengeResponseRequestFromJSON(json) {
18
19
  return AppleChallengeResponseRequestFromJSONTyped(json, false);
19
20
  }
@@ -23,7 +24,7 @@ function AppleChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
23
24
  return json;
24
25
  }
25
26
  return {
26
- 'component': json['component'],
27
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
27
28
  };
28
29
  }
29
30
  exports.AppleChallengeResponseRequestFromJSONTyped = AppleChallengeResponseRequestFromJSONTyped;
@@ -35,7 +35,7 @@ export interface AppleLoginChallenge {
35
35
  * @type {string}
36
36
  * @memberof AppleLoginChallenge
37
37
  */
38
- component: string;
38
+ component?: string;
39
39
  /**
40
40
  *
41
41
  * @type {{ [key: string]: Array<ErrorDetail>; }}
@@ -28,7 +28,7 @@ function AppleLoginChallengeFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return {
29
29
  'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
30
30
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
31
- 'component': json['component'],
31
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
32
32
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
33
33
  'clientId': json['client_id'],
34
34
  'scope': json['scope'],
@@ -35,7 +35,7 @@ export interface AuthenticatorDuoChallenge {
35
35
  * @type {string}
36
36
  * @memberof AuthenticatorDuoChallenge
37
37
  */
38
- component: string;
38
+ component?: string;
39
39
  /**
40
40
  *
41
41
  * @type {{ [key: string]: Array<ErrorDetail>; }}
@@ -28,7 +28,7 @@ function AuthenticatorDuoChallengeFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return {
29
29
  'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
30
30
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
31
- 'component': json['component'],
31
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
32
32
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
33
33
  'pendingUser': json['pending_user'],
34
34
  'pendingUserAvatar': json['pending_user_avatar'],
@@ -20,7 +20,7 @@ export interface AuthenticatorDuoChallengeResponseRequest {
20
20
  * @type {string}
21
21
  * @memberof AuthenticatorDuoChallengeResponseRequest
22
22
  */
23
- component: string;
23
+ component?: string;
24
24
  }
25
25
  export declare function AuthenticatorDuoChallengeResponseRequestFromJSON(json: any): AuthenticatorDuoChallengeResponseRequest;
26
26
  export declare function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoChallengeResponseRequest;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AuthenticatorDuoChallengeResponseRequestToJSON = exports.AuthenticatorDuoChallengeResponseRequestFromJSONTyped = exports.AuthenticatorDuoChallengeResponseRequestFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  function AuthenticatorDuoChallengeResponseRequestFromJSON(json) {
18
19
  return AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, false);
19
20
  }
@@ -23,7 +24,7 @@ function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, ignoreDiscr
23
24
  return json;
24
25
  }
25
26
  return {
26
- 'component': json['component'],
27
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
27
28
  };
28
29
  }
29
30
  exports.AuthenticatorDuoChallengeResponseRequestFromJSONTyped = AuthenticatorDuoChallengeResponseRequestFromJSONTyped;
@@ -76,6 +76,12 @@ export interface AuthenticatorDuoStage {
76
76
  * @memberof AuthenticatorDuoStage
77
77
  */
78
78
  apiHostname: string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof AuthenticatorDuoStage
83
+ */
84
+ adminIntegrationKey?: string;
79
85
  }
80
86
  export declare function AuthenticatorDuoStageFromJSON(json: any): AuthenticatorDuoStage;
81
87
  export declare function AuthenticatorDuoStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStage;
@@ -35,6 +35,7 @@ function AuthenticatorDuoStageFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'configureFlow': !(0, runtime_1.exists)(json, 'configure_flow') ? undefined : json['configure_flow'],
36
36
  'clientId': json['client_id'],
37
37
  'apiHostname': json['api_hostname'],
38
+ 'adminIntegrationKey': !(0, runtime_1.exists)(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
38
39
  };
39
40
  }
40
41
  exports.AuthenticatorDuoStageFromJSONTyped = AuthenticatorDuoStageFromJSONTyped;
@@ -51,6 +52,7 @@ function AuthenticatorDuoStageToJSON(value) {
51
52
  'configure_flow': value.configureFlow,
52
53
  'client_id': value.clientId,
53
54
  'api_hostname': value.apiHostname,
55
+ 'admin_integration_key': value.adminIntegrationKey,
54
56
  };
55
57
  }
56
58
  exports.AuthenticatorDuoStageToJSON = AuthenticatorDuoStageToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.8.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AuthenticatorDuoStageDeviceImportResponse
16
+ */
17
+ export interface AuthenticatorDuoStageDeviceImportResponse {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AuthenticatorDuoStageDeviceImportResponse
22
+ */
23
+ readonly count: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AuthenticatorDuoStageDeviceImportResponse
28
+ */
29
+ readonly error: string;
30
+ }
31
+ export declare function AuthenticatorDuoStageDeviceImportResponseFromJSON(json: any): AuthenticatorDuoStageDeviceImportResponse;
32
+ export declare function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageDeviceImportResponse;
33
+ export declare function AuthenticatorDuoStageDeviceImportResponseToJSON(value?: AuthenticatorDuoStageDeviceImportResponse | null): any;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2022.8.2
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AuthenticatorDuoStageDeviceImportResponseToJSON = exports.AuthenticatorDuoStageDeviceImportResponseFromJSONTyped = exports.AuthenticatorDuoStageDeviceImportResponseFromJSON = void 0;
17
+ function AuthenticatorDuoStageDeviceImportResponseFromJSON(json) {
18
+ return AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, false);
19
+ }
20
+ exports.AuthenticatorDuoStageDeviceImportResponseFromJSON = AuthenticatorDuoStageDeviceImportResponseFromJSON;
21
+ function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'count': json['count'],
27
+ 'error': json['error'],
28
+ };
29
+ }
30
+ exports.AuthenticatorDuoStageDeviceImportResponseFromJSONTyped = AuthenticatorDuoStageDeviceImportResponseFromJSONTyped;
31
+ function AuthenticatorDuoStageDeviceImportResponseToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {};
39
+ }
40
+ exports.AuthenticatorDuoStageDeviceImportResponseToJSON = AuthenticatorDuoStageDeviceImportResponseToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.8.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AuthenticatorDuoStageManualDeviceImportRequest
16
+ */
17
+ export interface AuthenticatorDuoStageManualDeviceImportRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AuthenticatorDuoStageManualDeviceImportRequest
22
+ */
23
+ duoUserId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AuthenticatorDuoStageManualDeviceImportRequest
28
+ */
29
+ username: string;
30
+ }
31
+ export declare function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(json: any): AuthenticatorDuoStageManualDeviceImportRequest;
32
+ export declare function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageManualDeviceImportRequest;
33
+ export declare function AuthenticatorDuoStageManualDeviceImportRequestToJSON(value?: AuthenticatorDuoStageManualDeviceImportRequest | null): any;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2022.8.2
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AuthenticatorDuoStageManualDeviceImportRequestToJSON = exports.AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped = exports.AuthenticatorDuoStageManualDeviceImportRequestFromJSON = void 0;
17
+ function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(json) {
18
+ return AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, false);
19
+ }
20
+ exports.AuthenticatorDuoStageManualDeviceImportRequestFromJSON = AuthenticatorDuoStageManualDeviceImportRequestFromJSON;
21
+ function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'duoUserId': json['duo_user_id'],
27
+ 'username': json['username'],
28
+ };
29
+ }
30
+ exports.AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped = AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped;
31
+ function AuthenticatorDuoStageManualDeviceImportRequestToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'duo_user_id': value.duoUserId,
40
+ 'username': value.username,
41
+ };
42
+ }
43
+ exports.AuthenticatorDuoStageManualDeviceImportRequestToJSON = AuthenticatorDuoStageManualDeviceImportRequestToJSON;
@@ -52,6 +52,18 @@ export interface AuthenticatorDuoStageRequest {
52
52
  * @memberof AuthenticatorDuoStageRequest
53
53
  */
54
54
  apiHostname: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof AuthenticatorDuoStageRequest
59
+ */
60
+ adminIntegrationKey?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof AuthenticatorDuoStageRequest
65
+ */
66
+ adminSecretKey?: string;
55
67
  }
56
68
  export declare function AuthenticatorDuoStageRequestFromJSON(json: any): AuthenticatorDuoStageRequest;
57
69
  export declare function AuthenticatorDuoStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageRequest;
@@ -31,6 +31,8 @@ function AuthenticatorDuoStageRequestFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'clientId': json['client_id'],
32
32
  'clientSecret': json['client_secret'],
33
33
  'apiHostname': json['api_hostname'],
34
+ 'adminIntegrationKey': !(0, runtime_1.exists)(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
35
+ 'adminSecretKey': !(0, runtime_1.exists)(json, 'admin_secret_key') ? undefined : json['admin_secret_key'],
34
36
  };
35
37
  }
36
38
  exports.AuthenticatorDuoStageRequestFromJSONTyped = AuthenticatorDuoStageRequestFromJSONTyped;
@@ -48,6 +50,8 @@ function AuthenticatorDuoStageRequestToJSON(value) {
48
50
  'client_id': value.clientId,
49
51
  'client_secret': value.clientSecret,
50
52
  'api_hostname': value.apiHostname,
53
+ 'admin_integration_key': value.adminIntegrationKey,
54
+ 'admin_secret_key': value.adminSecretKey,
51
55
  };
52
56
  }
53
57
  exports.AuthenticatorDuoStageRequestToJSON = AuthenticatorDuoStageRequestToJSON;
@@ -35,7 +35,7 @@ export interface AuthenticatorSMSChallenge {
35
35
  * @type {string}
36
36
  * @memberof AuthenticatorSMSChallenge
37
37
  */
38
- component: string;
38
+ component?: string;
39
39
  /**
40
40
  *
41
41
  * @type {{ [key: string]: Array<ErrorDetail>; }}
@@ -28,7 +28,7 @@ function AuthenticatorSMSChallengeFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return {
29
29
  'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
30
30
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
31
- 'component': json['component'],
31
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
32
32
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
33
33
  'pendingUser': json['pending_user'],
34
34
  'pendingUserAvatar': json['pending_user_avatar'],
@@ -20,7 +20,7 @@ export interface AuthenticatorSMSChallengeResponseRequest {
20
20
  * @type {string}
21
21
  * @memberof AuthenticatorSMSChallengeResponseRequest
22
22
  */
23
- component: string;
23
+ component?: string;
24
24
  /**
25
25
  *
26
26
  * @type {number}
@@ -24,7 +24,7 @@ function AuthenticatorSMSChallengeResponseRequestFromJSONTyped(json, ignoreDiscr
24
24
  return json;
25
25
  }
26
26
  return {
27
- 'component': json['component'],
27
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
28
28
  'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
29
29
  'phoneNumber': !(0, runtime_1.exists)(json, 'phone_number') ? undefined : json['phone_number'],
30
30
  };
@@ -35,7 +35,7 @@ export interface AuthenticatorStaticChallenge {
35
35
  * @type {string}
36
36
  * @memberof AuthenticatorStaticChallenge
37
37
  */
38
- component: string;
38
+ component?: string;
39
39
  /**
40
40
  *
41
41
  * @type {{ [key: string]: Array<ErrorDetail>; }}
@@ -28,7 +28,7 @@ function AuthenticatorStaticChallengeFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return {
29
29
  'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
30
30
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
31
- 'component': json['component'],
31
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
32
32
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
33
33
  'pendingUser': json['pending_user'],
34
34
  'pendingUserAvatar': json['pending_user_avatar'],
@@ -20,7 +20,7 @@ export interface AuthenticatorStaticChallengeResponseRequest {
20
20
  * @type {string}
21
21
  * @memberof AuthenticatorStaticChallengeResponseRequest
22
22
  */
23
- component: string;
23
+ component?: string;
24
24
  }
25
25
  export declare function AuthenticatorStaticChallengeResponseRequestFromJSON(json: any): AuthenticatorStaticChallengeResponseRequest;
26
26
  export declare function AuthenticatorStaticChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorStaticChallengeResponseRequest;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AuthenticatorStaticChallengeResponseRequestToJSON = exports.AuthenticatorStaticChallengeResponseRequestFromJSONTyped = exports.AuthenticatorStaticChallengeResponseRequestFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  function AuthenticatorStaticChallengeResponseRequestFromJSON(json) {
18
19
  return AuthenticatorStaticChallengeResponseRequestFromJSONTyped(json, false);
19
20
  }
@@ -23,7 +24,7 @@ function AuthenticatorStaticChallengeResponseRequestFromJSONTyped(json, ignoreDi
23
24
  return json;
24
25
  }
25
26
  return {
26
- 'component': json['component'],
27
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
27
28
  };
28
29
  }
29
30
  exports.AuthenticatorStaticChallengeResponseRequestFromJSONTyped = AuthenticatorStaticChallengeResponseRequestFromJSONTyped;
@@ -35,7 +35,7 @@ export interface AuthenticatorTOTPChallenge {
35
35
  * @type {string}
36
36
  * @memberof AuthenticatorTOTPChallenge
37
37
  */
38
- component: string;
38
+ component?: string;
39
39
  /**
40
40
  *
41
41
  * @type {{ [key: string]: Array<ErrorDetail>; }}
@@ -28,7 +28,7 @@ function AuthenticatorTOTPChallengeFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return {
29
29
  'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
30
30
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
31
- 'component': json['component'],
31
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
32
32
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
33
33
  'pendingUser': json['pending_user'],
34
34
  'pendingUserAvatar': json['pending_user_avatar'],
@@ -20,7 +20,7 @@ export interface AuthenticatorTOTPChallengeResponseRequest {
20
20
  * @type {string}
21
21
  * @memberof AuthenticatorTOTPChallengeResponseRequest
22
22
  */
23
- component: string;
23
+ component?: string;
24
24
  /**
25
25
  *
26
26
  * @type {number}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AuthenticatorTOTPChallengeResponseRequestToJSON = exports.AuthenticatorTOTPChallengeResponseRequestFromJSONTyped = exports.AuthenticatorTOTPChallengeResponseRequestFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  function AuthenticatorTOTPChallengeResponseRequestFromJSON(json) {
18
19
  return AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(json, false);
19
20
  }
@@ -23,7 +24,7 @@ function AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(json, ignoreDisc
23
24
  return json;
24
25
  }
25
26
  return {
26
- 'component': json['component'],
27
+ 'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
27
28
  'code': json['code'],
28
29
  };
29
30
  }
@@ -37,7 +37,7 @@ export interface AuthenticatorValidationChallenge {
37
37
  * @type {string}
38
38
  * @memberof AuthenticatorValidationChallenge
39
39
  */
40
- component: string;
40
+ component?: string;
41
41
  /**
42
42
  *
43
43
  * @type {{ [key: string]: Array<ErrorDetail>; }}