@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
@@ -42,6 +42,8 @@ src/models/AuthenticatorAttachmentEnum.ts
42
42
  src/models/AuthenticatorDuoChallenge.ts
43
43
  src/models/AuthenticatorDuoChallengeResponseRequest.ts
44
44
  src/models/AuthenticatorDuoStage.ts
45
+ src/models/AuthenticatorDuoStageDeviceImportResponse.ts
46
+ src/models/AuthenticatorDuoStageManualDeviceImportRequest.ts
45
47
  src/models/AuthenticatorDuoStageRequest.ts
46
48
  src/models/AuthenticatorSMSChallenge.ts
47
49
  src/models/AuthenticatorSMSChallengeResponseRequest.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
13
+ import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
14
14
  export interface StagesAllDestroyRequest {
15
15
  stageUuid: string;
16
16
  }
@@ -36,10 +36,12 @@ export interface StagesAuthenticatorDuoDestroyRequest {
36
36
  export interface StagesAuthenticatorDuoEnrollmentStatusCreateRequest {
37
37
  stageUuid: string;
38
38
  }
39
- export interface StagesAuthenticatorDuoImportDevicesCreateRequest {
39
+ export interface StagesAuthenticatorDuoImportDeviceManualCreateRequest {
40
+ stageUuid: string;
41
+ authenticatorDuoStageManualDeviceImportRequest: AuthenticatorDuoStageManualDeviceImportRequest;
42
+ }
43
+ export interface StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest {
40
44
  stageUuid: string;
41
- duoUserId?: string;
42
- username?: string;
43
45
  }
44
46
  export interface StagesAuthenticatorDuoListRequest {
45
47
  apiHostname?: string;
@@ -752,11 +754,19 @@ export declare class StagesApi extends runtime.BaseAPI {
752
754
  /**
753
755
  * Import duo devices into authentik
754
756
  */
755
- stagesAuthenticatorDuoImportDevicesCreateRaw(requestParameters: StagesAuthenticatorDuoImportDevicesCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
757
+ stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
758
+ /**
759
+ * Import duo devices into authentik
760
+ */
761
+ stagesAuthenticatorDuoImportDeviceManualCreate(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
762
+ /**
763
+ * Import duo devices into authentik
764
+ */
765
+ stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<AuthenticatorDuoStageDeviceImportResponse>>;
756
766
  /**
757
767
  * Import duo devices into authentik
758
768
  */
759
- stagesAuthenticatorDuoImportDevicesCreate(requestParameters: StagesAuthenticatorDuoImportDevicesCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
769
+ stagesAuthenticatorDuoImportDevicesAutomaticCreate(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<AuthenticatorDuoStageDeviceImportResponse>;
760
770
  /**
761
771
  * AuthenticatorDuoStage Viewset
762
772
  */
@@ -317,37 +317,67 @@ class StagesApi extends runtime.BaseAPI {
317
317
  /**
318
318
  * Import duo devices into authentik
319
319
  */
320
- stagesAuthenticatorDuoImportDevicesCreateRaw(requestParameters, initOverrides) {
320
+ stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters, initOverrides) {
321
321
  return __awaiter(this, void 0, void 0, function* () {
322
322
  if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
323
- throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDevicesCreate.');
323
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
324
+ }
325
+ if (requestParameters.authenticatorDuoStageManualDeviceImportRequest === null || requestParameters.authenticatorDuoStageManualDeviceImportRequest === undefined) {
326
+ throw new runtime.RequiredError('authenticatorDuoStageManualDeviceImportRequest', 'Required parameter requestParameters.authenticatorDuoStageManualDeviceImportRequest was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
324
327
  }
325
328
  const queryParameters = {};
326
- if (requestParameters.duoUserId !== undefined) {
327
- queryParameters['duo_user_id'] = requestParameters.duoUserId;
329
+ const headerParameters = {};
330
+ headerParameters['Content-Type'] = 'application/json';
331
+ if (this.configuration && this.configuration.apiKey) {
332
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
328
333
  }
329
- if (requestParameters.username !== undefined) {
330
- queryParameters['username'] = requestParameters.username;
334
+ const response = yield this.request({
335
+ path: `/stages/authenticator/duo/{stage_uuid}/import_device_manual/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
336
+ method: 'POST',
337
+ headers: headerParameters,
338
+ query: queryParameters,
339
+ body: (0, models_1.AuthenticatorDuoStageManualDeviceImportRequestToJSON)(requestParameters.authenticatorDuoStageManualDeviceImportRequest),
340
+ }, initOverrides);
341
+ return new runtime.VoidApiResponse(response);
342
+ });
343
+ }
344
+ /**
345
+ * Import duo devices into authentik
346
+ */
347
+ stagesAuthenticatorDuoImportDeviceManualCreate(requestParameters, initOverrides) {
348
+ return __awaiter(this, void 0, void 0, function* () {
349
+ yield this.stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters, initOverrides);
350
+ });
351
+ }
352
+ /**
353
+ * Import duo devices into authentik
354
+ */
355
+ stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters, initOverrides) {
356
+ return __awaiter(this, void 0, void 0, function* () {
357
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
358
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDevicesAutomaticCreate.');
331
359
  }
360
+ const queryParameters = {};
332
361
  const headerParameters = {};
333
362
  if (this.configuration && this.configuration.apiKey) {
334
363
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
335
364
  }
336
365
  const response = yield this.request({
337
- path: `/stages/authenticator/duo/{stage_uuid}/import_devices/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
366
+ path: `/stages/authenticator/duo/{stage_uuid}/import_devices_automatic/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
338
367
  method: 'POST',
339
368
  headers: headerParameters,
340
369
  query: queryParameters,
341
370
  }, initOverrides);
342
- return new runtime.VoidApiResponse(response);
371
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AuthenticatorDuoStageDeviceImportResponseFromJSON)(jsonValue));
343
372
  });
344
373
  }
345
374
  /**
346
375
  * Import duo devices into authentik
347
376
  */
348
- stagesAuthenticatorDuoImportDevicesCreate(requestParameters, initOverrides) {
377
+ stagesAuthenticatorDuoImportDevicesAutomaticCreate(requestParameters, initOverrides) {
349
378
  return __awaiter(this, void 0, void 0, function* () {
350
- yield this.stagesAuthenticatorDuoImportDevicesCreateRaw(requestParameters, initOverrides);
379
+ const response = yield this.stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters, initOverrides);
380
+ return yield response.value();
351
381
  });
352
382
  }
353
383
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
13
+ import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
14
14
  export interface StagesAllDestroyRequest {
15
15
  stageUuid: string;
16
16
  }
@@ -36,10 +36,12 @@ export interface StagesAuthenticatorDuoDestroyRequest {
36
36
  export interface StagesAuthenticatorDuoEnrollmentStatusCreateRequest {
37
37
  stageUuid: string;
38
38
  }
39
- export interface StagesAuthenticatorDuoImportDevicesCreateRequest {
39
+ export interface StagesAuthenticatorDuoImportDeviceManualCreateRequest {
40
+ stageUuid: string;
41
+ authenticatorDuoStageManualDeviceImportRequest: AuthenticatorDuoStageManualDeviceImportRequest;
42
+ }
43
+ export interface StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest {
40
44
  stageUuid: string;
41
- duoUserId?: string;
42
- username?: string;
43
45
  }
44
46
  export interface StagesAuthenticatorDuoListRequest {
45
47
  apiHostname?: string;
@@ -752,11 +754,19 @@ export declare class StagesApi extends runtime.BaseAPI {
752
754
  /**
753
755
  * Import duo devices into authentik
754
756
  */
755
- stagesAuthenticatorDuoImportDevicesCreateRaw(requestParameters: StagesAuthenticatorDuoImportDevicesCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
757
+ stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
758
+ /**
759
+ * Import duo devices into authentik
760
+ */
761
+ stagesAuthenticatorDuoImportDeviceManualCreate(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
762
+ /**
763
+ * Import duo devices into authentik
764
+ */
765
+ stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<AuthenticatorDuoStageDeviceImportResponse>>;
756
766
  /**
757
767
  * Import duo devices into authentik
758
768
  */
759
- stagesAuthenticatorDuoImportDevicesCreate(requestParameters: StagesAuthenticatorDuoImportDevicesCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
769
+ stagesAuthenticatorDuoImportDevicesAutomaticCreate(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<AuthenticatorDuoStageDeviceImportResponse>;
760
770
  /**
761
771
  * AuthenticatorDuoStage Viewset
762
772
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
24
+ import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -314,37 +314,67 @@ export class StagesApi extends runtime.BaseAPI {
314
314
  /**
315
315
  * Import duo devices into authentik
316
316
  */
317
- stagesAuthenticatorDuoImportDevicesCreateRaw(requestParameters, initOverrides) {
317
+ stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters, initOverrides) {
318
318
  return __awaiter(this, void 0, void 0, function* () {
319
319
  if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
320
- throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDevicesCreate.');
320
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
321
+ }
322
+ if (requestParameters.authenticatorDuoStageManualDeviceImportRequest === null || requestParameters.authenticatorDuoStageManualDeviceImportRequest === undefined) {
323
+ throw new runtime.RequiredError('authenticatorDuoStageManualDeviceImportRequest', 'Required parameter requestParameters.authenticatorDuoStageManualDeviceImportRequest was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
321
324
  }
322
325
  const queryParameters = {};
323
- if (requestParameters.duoUserId !== undefined) {
324
- queryParameters['duo_user_id'] = requestParameters.duoUserId;
326
+ const headerParameters = {};
327
+ headerParameters['Content-Type'] = 'application/json';
328
+ if (this.configuration && this.configuration.apiKey) {
329
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
325
330
  }
326
- if (requestParameters.username !== undefined) {
327
- queryParameters['username'] = requestParameters.username;
331
+ const response = yield this.request({
332
+ path: `/stages/authenticator/duo/{stage_uuid}/import_device_manual/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
333
+ method: 'POST',
334
+ headers: headerParameters,
335
+ query: queryParameters,
336
+ body: AuthenticatorDuoStageManualDeviceImportRequestToJSON(requestParameters.authenticatorDuoStageManualDeviceImportRequest),
337
+ }, initOverrides);
338
+ return new runtime.VoidApiResponse(response);
339
+ });
340
+ }
341
+ /**
342
+ * Import duo devices into authentik
343
+ */
344
+ stagesAuthenticatorDuoImportDeviceManualCreate(requestParameters, initOverrides) {
345
+ return __awaiter(this, void 0, void 0, function* () {
346
+ yield this.stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters, initOverrides);
347
+ });
348
+ }
349
+ /**
350
+ * Import duo devices into authentik
351
+ */
352
+ stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters, initOverrides) {
353
+ return __awaiter(this, void 0, void 0, function* () {
354
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
355
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDevicesAutomaticCreate.');
328
356
  }
357
+ const queryParameters = {};
329
358
  const headerParameters = {};
330
359
  if (this.configuration && this.configuration.apiKey) {
331
360
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
332
361
  }
333
362
  const response = yield this.request({
334
- path: `/stages/authenticator/duo/{stage_uuid}/import_devices/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
363
+ path: `/stages/authenticator/duo/{stage_uuid}/import_devices_automatic/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
335
364
  method: 'POST',
336
365
  headers: headerParameters,
337
366
  query: queryParameters,
338
367
  }, initOverrides);
339
- return new runtime.VoidApiResponse(response);
368
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorDuoStageDeviceImportResponseFromJSON(jsonValue));
340
369
  });
341
370
  }
342
371
  /**
343
372
  * Import duo devices into authentik
344
373
  */
345
- stagesAuthenticatorDuoImportDevicesCreate(requestParameters, initOverrides) {
374
+ stagesAuthenticatorDuoImportDevicesAutomaticCreate(requestParameters, initOverrides) {
346
375
  return __awaiter(this, void 0, void 0, function* () {
347
- yield this.stagesAuthenticatorDuoImportDevicesCreateRaw(requestParameters, initOverrides);
376
+ const response = yield this.stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters, initOverrides);
377
+ return yield response.value();
348
378
  });
349
379
  }
350
380
  /**
@@ -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>; }}
@@ -24,7 +24,7 @@ export function AccessDeniedChallengeFromJSONTyped(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
  'pendingUser': json['pending_user'],
30
30
  '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;
@@ -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 AppleChallengeResponseRequestFromJSON(json) {
15
16
  return AppleChallengeResponseRequestFromJSONTyped(json, false);
16
17
  }
@@ -19,7 +20,7 @@ export function AppleChallengeResponseRequestFromJSONTyped(json, ignoreDiscrimin
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 AppleChallengeResponseRequestToJSON(value) {
@@ -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>; }}
@@ -24,7 +24,7 @@ export function AppleLoginChallengeFromJSONTyped(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
  'clientId': json['client_id'],
30
30
  '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>; }}
@@ -24,7 +24,7 @@ export function AuthenticatorDuoChallengeFromJSONTyped(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
  'pendingUser': json['pending_user'],
30
30
  '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;
@@ -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 AuthenticatorDuoChallengeResponseRequestFromJSON(json) {
15
16
  return AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, false);
16
17
  }
@@ -19,7 +20,7 @@ export function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, igno
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 AuthenticatorDuoChallengeResponseRequestToJSON(value) {
@@ -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;
@@ -31,6 +31,7 @@ export function AuthenticatorDuoStageFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
32
32
  'clientId': json['client_id'],
33
33
  'apiHostname': json['api_hostname'],
34
+ 'adminIntegrationKey': !exists(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
34
35
  };
35
36
  }
36
37
  export function AuthenticatorDuoStageToJSON(value) {
@@ -46,5 +47,6 @@ export function AuthenticatorDuoStageToJSON(value) {
46
47
  'configure_flow': value.configureFlow,
47
48
  'client_id': value.clientId,
48
49
  'api_hostname': value.apiHostname,
50
+ 'admin_integration_key': value.adminIntegrationKey,
49
51
  };
50
52
  }
@@ -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,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.8.2
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export function AuthenticatorDuoStageDeviceImportResponseFromJSON(json) {
15
+ return AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, false);
16
+ }
17
+ export function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'count': json['count'],
23
+ 'error': json['error'],
24
+ };
25
+ }
26
+ export function AuthenticatorDuoStageDeviceImportResponseToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {};
34
+ }
@@ -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,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.8.2
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(json) {
15
+ return AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, false);
16
+ }
17
+ export function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'duoUserId': json['duo_user_id'],
23
+ 'username': json['username'],
24
+ };
25
+ }
26
+ export function AuthenticatorDuoStageManualDeviceImportRequestToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'duo_user_id': value.duoUserId,
35
+ 'username': value.username,
36
+ };
37
+ }
@@ -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;
@@ -27,6 +27,8 @@ export function AuthenticatorDuoStageRequestFromJSONTyped(json, ignoreDiscrimina
27
27
  'clientId': json['client_id'],
28
28
  'clientSecret': json['client_secret'],
29
29
  'apiHostname': json['api_hostname'],
30
+ 'adminIntegrationKey': !exists(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
31
+ 'adminSecretKey': !exists(json, 'admin_secret_key') ? undefined : json['admin_secret_key'],
30
32
  };
31
33
  }
32
34
  export function AuthenticatorDuoStageRequestToJSON(value) {
@@ -43,5 +45,7 @@ export function AuthenticatorDuoStageRequestToJSON(value) {
43
45
  'client_id': value.clientId,
44
46
  'client_secret': value.clientSecret,
45
47
  'api_hostname': value.apiHostname,
48
+ 'admin_integration_key': value.adminIntegrationKey,
49
+ 'admin_secret_key': value.adminSecretKey,
46
50
  };
47
51
  }
@@ -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>; }}