@goauthentik/api 2024.12.3-1739449824 → 2024.12.3-1739801838

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 (97) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/dist/apis/AuthenticatorsApi.d.ts +145 -1
  3. package/dist/apis/AuthenticatorsApi.js +458 -0
  4. package/dist/apis/RbacApi.d.ts +4 -0
  5. package/dist/apis/RbacApi.js +4 -0
  6. package/dist/apis/StagesApi.d.ts +99 -1
  7. package/dist/apis/StagesApi.js +310 -0
  8. package/dist/esm/apis/AuthenticatorsApi.d.ts +145 -1
  9. package/dist/esm/apis/AuthenticatorsApi.js +459 -1
  10. package/dist/esm/apis/RbacApi.d.ts +4 -0
  11. package/dist/esm/apis/RbacApi.js +4 -0
  12. package/dist/esm/apis/StagesApi.d.ts +99 -1
  13. package/dist/esm/apis/StagesApi.js +311 -1
  14. package/dist/esm/models/AppEnum.d.ts +1 -0
  15. package/dist/esm/models/AppEnum.js +1 -0
  16. package/dist/esm/models/AuthenticatorEmailChallenge.d.ts +72 -0
  17. package/dist/esm/models/AuthenticatorEmailChallenge.js +58 -0
  18. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  19. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.js +45 -0
  20. package/dist/esm/models/AuthenticatorEmailStage.d.ts +153 -0
  21. package/dist/esm/models/AuthenticatorEmailStage.js +89 -0
  22. package/dist/esm/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  23. package/dist/esm/models/AuthenticatorEmailStageRequest.js +74 -0
  24. package/dist/esm/models/ChallengeTypes.d.ts +3 -0
  25. package/dist/esm/models/ChallengeTypes.js +5 -0
  26. package/dist/esm/models/DeviceClassesEnum.d.ts +1 -0
  27. package/dist/esm/models/DeviceClassesEnum.js +1 -0
  28. package/dist/esm/models/EmailDevice.d.ts +51 -0
  29. package/dist/esm/models/EmailDevice.js +53 -0
  30. package/dist/esm/models/EmailDeviceRequest.d.ts +32 -0
  31. package/dist/esm/models/EmailDeviceRequest.js +43 -0
  32. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
  33. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  34. package/dist/esm/models/ModelEnum.d.ts +2 -0
  35. package/dist/esm/models/ModelEnum.js +2 -0
  36. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  37. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.js +49 -0
  38. package/dist/esm/models/PaginatedEmailDeviceList.d.ts +40 -0
  39. package/dist/esm/models/PaginatedEmailDeviceList.js +49 -0
  40. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  41. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.js +72 -0
  42. package/dist/esm/models/PatchedEmailDeviceRequest.d.ts +32 -0
  43. package/dist/esm/models/PatchedEmailDeviceRequest.js +41 -0
  44. package/dist/esm/models/index.d.ts +10 -0
  45. package/dist/esm/models/index.js +10 -0
  46. package/dist/models/AppEnum.d.ts +1 -0
  47. package/dist/models/AppEnum.js +1 -0
  48. package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
  49. package/dist/models/AuthenticatorEmailChallenge.js +65 -0
  50. package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  51. package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
  52. package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
  53. package/dist/models/AuthenticatorEmailStage.js +96 -0
  54. package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  55. package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
  56. package/dist/models/ChallengeTypes.d.ts +3 -0
  57. package/dist/models/ChallengeTypes.js +5 -0
  58. package/dist/models/DeviceClassesEnum.d.ts +1 -0
  59. package/dist/models/DeviceClassesEnum.js +1 -0
  60. package/dist/models/EmailDevice.d.ts +51 -0
  61. package/dist/models/EmailDevice.js +60 -0
  62. package/dist/models/EmailDeviceRequest.d.ts +32 -0
  63. package/dist/models/EmailDeviceRequest.js +50 -0
  64. package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
  65. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  66. package/dist/models/ModelEnum.d.ts +2 -0
  67. package/dist/models/ModelEnum.js +2 -0
  68. package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  69. package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
  70. package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
  71. package/dist/models/PaginatedEmailDeviceList.js +56 -0
  72. package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  73. package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
  74. package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
  75. package/dist/models/PatchedEmailDeviceRequest.js +48 -0
  76. package/dist/models/index.d.ts +10 -0
  77. package/dist/models/index.js +10 -0
  78. package/package.json +1 -1
  79. package/src/apis/AuthenticatorsApi.ts +617 -0
  80. package/src/apis/RbacApi.ts +4 -0
  81. package/src/apis/StagesApi.ts +436 -0
  82. package/src/models/AppEnum.ts +1 -0
  83. package/src/models/AuthenticatorEmailChallenge.ts +130 -0
  84. package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
  85. package/src/models/AuthenticatorEmailStage.ts +234 -0
  86. package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
  87. package/src/models/ChallengeTypes.ts +12 -1
  88. package/src/models/DeviceClassesEnum.ts +1 -0
  89. package/src/models/EmailDevice.ts +98 -0
  90. package/src/models/EmailDeviceRequest.ts +66 -0
  91. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  92. package/src/models/ModelEnum.ts +2 -0
  93. package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
  94. package/src/models/PaginatedEmailDeviceList.ts +90 -0
  95. package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
  96. package/src/models/PatchedEmailDeviceRequest.ts +65 -0
  97. package/src/models/index.ts +10 -0
@@ -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 { AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorEndpointGDTCStageFromJSON, AuthenticatorEndpointGDTCStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, AuthenticatorWebAuthnStageFromJSON, AuthenticatorWebAuthnStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorEndpointGDTCStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedAuthenticatorWebAuthnStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedRedirectStageListFromJSON, PaginatedSourceStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PaginatedWebAuthnDeviceTypeListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorEndpointGDTCStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedAuthenticatorWebAuthnStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedRedirectStageRequestToJSON, PatchedSourceStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptChallengeFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, RedirectStageFromJSON, RedirectStageRequestToJSON, SourceStageFromJSON, SourceStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, WebAuthnDeviceTypeFromJSON, } from '../models/index';
24
+ import { AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorEmailStageFromJSON, AuthenticatorEmailStageRequestToJSON, AuthenticatorEndpointGDTCStageFromJSON, AuthenticatorEndpointGDTCStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, AuthenticatorWebAuthnStageFromJSON, AuthenticatorWebAuthnStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorEmailStageListFromJSON, PaginatedAuthenticatorEndpointGDTCStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedAuthenticatorWebAuthnStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedRedirectStageListFromJSON, PaginatedSourceStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PaginatedWebAuthnDeviceTypeListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorEmailStageRequestToJSON, PatchedAuthenticatorEndpointGDTCStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedAuthenticatorWebAuthnStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedRedirectStageRequestToJSON, PatchedSourceStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptChallengeFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, RedirectStageFromJSON, RedirectStageRequestToJSON, SourceStageFromJSON, SourceStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, WebAuthnDeviceTypeFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -624,6 +624,316 @@ export class StagesApi extends runtime.BaseAPI {
624
624
  return yield response.value();
625
625
  });
626
626
  }
627
+ /**
628
+ * AuthenticatorEmailStage Viewset
629
+ */
630
+ stagesAuthenticatorEmailCreateRaw(requestParameters, initOverrides) {
631
+ return __awaiter(this, void 0, void 0, function* () {
632
+ if (requestParameters['authenticatorEmailStageRequest'] == null) {
633
+ throw new runtime.RequiredError('authenticatorEmailStageRequest', 'Required parameter "authenticatorEmailStageRequest" was null or undefined when calling stagesAuthenticatorEmailCreate().');
634
+ }
635
+ const queryParameters = {};
636
+ const headerParameters = {};
637
+ headerParameters['Content-Type'] = 'application/json';
638
+ if (this.configuration && this.configuration.accessToken) {
639
+ const token = this.configuration.accessToken;
640
+ const tokenString = yield token("authentik", []);
641
+ if (tokenString) {
642
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
643
+ }
644
+ }
645
+ const response = yield this.request({
646
+ path: `/stages/authenticator/email/`,
647
+ method: 'POST',
648
+ headers: headerParameters,
649
+ query: queryParameters,
650
+ body: AuthenticatorEmailStageRequestToJSON(requestParameters['authenticatorEmailStageRequest']),
651
+ }, initOverrides);
652
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEmailStageFromJSON(jsonValue));
653
+ });
654
+ }
655
+ /**
656
+ * AuthenticatorEmailStage Viewset
657
+ */
658
+ stagesAuthenticatorEmailCreate(requestParameters, initOverrides) {
659
+ return __awaiter(this, void 0, void 0, function* () {
660
+ const response = yield this.stagesAuthenticatorEmailCreateRaw(requestParameters, initOverrides);
661
+ return yield response.value();
662
+ });
663
+ }
664
+ /**
665
+ * AuthenticatorEmailStage Viewset
666
+ */
667
+ stagesAuthenticatorEmailDestroyRaw(requestParameters, initOverrides) {
668
+ return __awaiter(this, void 0, void 0, function* () {
669
+ if (requestParameters['stageUuid'] == null) {
670
+ throw new runtime.RequiredError('stageUuid', 'Required parameter "stageUuid" was null or undefined when calling stagesAuthenticatorEmailDestroy().');
671
+ }
672
+ const queryParameters = {};
673
+ const headerParameters = {};
674
+ if (this.configuration && this.configuration.accessToken) {
675
+ const token = this.configuration.accessToken;
676
+ const tokenString = yield token("authentik", []);
677
+ if (tokenString) {
678
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
679
+ }
680
+ }
681
+ const response = yield this.request({
682
+ path: `/stages/authenticator/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters['stageUuid']))),
683
+ method: 'DELETE',
684
+ headers: headerParameters,
685
+ query: queryParameters,
686
+ }, initOverrides);
687
+ return new runtime.VoidApiResponse(response);
688
+ });
689
+ }
690
+ /**
691
+ * AuthenticatorEmailStage Viewset
692
+ */
693
+ stagesAuthenticatorEmailDestroy(requestParameters, initOverrides) {
694
+ return __awaiter(this, void 0, void 0, function* () {
695
+ yield this.stagesAuthenticatorEmailDestroyRaw(requestParameters, initOverrides);
696
+ });
697
+ }
698
+ /**
699
+ * AuthenticatorEmailStage Viewset
700
+ */
701
+ stagesAuthenticatorEmailListRaw(requestParameters, initOverrides) {
702
+ return __awaiter(this, void 0, void 0, function* () {
703
+ const queryParameters = {};
704
+ if (requestParameters['configureFlow'] != null) {
705
+ queryParameters['configure_flow'] = requestParameters['configureFlow'];
706
+ }
707
+ if (requestParameters['friendlyName'] != null) {
708
+ queryParameters['friendly_name'] = requestParameters['friendlyName'];
709
+ }
710
+ if (requestParameters['fromAddress'] != null) {
711
+ queryParameters['from_address'] = requestParameters['fromAddress'];
712
+ }
713
+ if (requestParameters['host'] != null) {
714
+ queryParameters['host'] = requestParameters['host'];
715
+ }
716
+ if (requestParameters['name'] != null) {
717
+ queryParameters['name'] = requestParameters['name'];
718
+ }
719
+ if (requestParameters['ordering'] != null) {
720
+ queryParameters['ordering'] = requestParameters['ordering'];
721
+ }
722
+ if (requestParameters['page'] != null) {
723
+ queryParameters['page'] = requestParameters['page'];
724
+ }
725
+ if (requestParameters['pageSize'] != null) {
726
+ queryParameters['page_size'] = requestParameters['pageSize'];
727
+ }
728
+ if (requestParameters['password'] != null) {
729
+ queryParameters['password'] = requestParameters['password'];
730
+ }
731
+ if (requestParameters['port'] != null) {
732
+ queryParameters['port'] = requestParameters['port'];
733
+ }
734
+ if (requestParameters['search'] != null) {
735
+ queryParameters['search'] = requestParameters['search'];
736
+ }
737
+ if (requestParameters['stageUuid'] != null) {
738
+ queryParameters['stage_uuid'] = requestParameters['stageUuid'];
739
+ }
740
+ if (requestParameters['subject'] != null) {
741
+ queryParameters['subject'] = requestParameters['subject'];
742
+ }
743
+ if (requestParameters['template'] != null) {
744
+ queryParameters['template'] = requestParameters['template'];
745
+ }
746
+ if (requestParameters['timeout'] != null) {
747
+ queryParameters['timeout'] = requestParameters['timeout'];
748
+ }
749
+ if (requestParameters['tokenExpiry'] != null) {
750
+ queryParameters['token_expiry'] = requestParameters['tokenExpiry'];
751
+ }
752
+ if (requestParameters['useGlobalSettings'] != null) {
753
+ queryParameters['use_global_settings'] = requestParameters['useGlobalSettings'];
754
+ }
755
+ if (requestParameters['useSsl'] != null) {
756
+ queryParameters['use_ssl'] = requestParameters['useSsl'];
757
+ }
758
+ if (requestParameters['useTls'] != null) {
759
+ queryParameters['use_tls'] = requestParameters['useTls'];
760
+ }
761
+ if (requestParameters['username'] != null) {
762
+ queryParameters['username'] = requestParameters['username'];
763
+ }
764
+ const headerParameters = {};
765
+ if (this.configuration && this.configuration.accessToken) {
766
+ const token = this.configuration.accessToken;
767
+ const tokenString = yield token("authentik", []);
768
+ if (tokenString) {
769
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
770
+ }
771
+ }
772
+ const response = yield this.request({
773
+ path: `/stages/authenticator/email/`,
774
+ method: 'GET',
775
+ headers: headerParameters,
776
+ query: queryParameters,
777
+ }, initOverrides);
778
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAuthenticatorEmailStageListFromJSON(jsonValue));
779
+ });
780
+ }
781
+ /**
782
+ * AuthenticatorEmailStage Viewset
783
+ */
784
+ stagesAuthenticatorEmailList() {
785
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
786
+ const response = yield this.stagesAuthenticatorEmailListRaw(requestParameters, initOverrides);
787
+ return yield response.value();
788
+ });
789
+ }
790
+ /**
791
+ * AuthenticatorEmailStage Viewset
792
+ */
793
+ stagesAuthenticatorEmailPartialUpdateRaw(requestParameters, initOverrides) {
794
+ return __awaiter(this, void 0, void 0, function* () {
795
+ if (requestParameters['stageUuid'] == null) {
796
+ throw new runtime.RequiredError('stageUuid', 'Required parameter "stageUuid" was null or undefined when calling stagesAuthenticatorEmailPartialUpdate().');
797
+ }
798
+ const queryParameters = {};
799
+ const headerParameters = {};
800
+ headerParameters['Content-Type'] = 'application/json';
801
+ if (this.configuration && this.configuration.accessToken) {
802
+ const token = this.configuration.accessToken;
803
+ const tokenString = yield token("authentik", []);
804
+ if (tokenString) {
805
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
806
+ }
807
+ }
808
+ const response = yield this.request({
809
+ path: `/stages/authenticator/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters['stageUuid']))),
810
+ method: 'PATCH',
811
+ headers: headerParameters,
812
+ query: queryParameters,
813
+ body: PatchedAuthenticatorEmailStageRequestToJSON(requestParameters['patchedAuthenticatorEmailStageRequest']),
814
+ }, initOverrides);
815
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEmailStageFromJSON(jsonValue));
816
+ });
817
+ }
818
+ /**
819
+ * AuthenticatorEmailStage Viewset
820
+ */
821
+ stagesAuthenticatorEmailPartialUpdate(requestParameters, initOverrides) {
822
+ return __awaiter(this, void 0, void 0, function* () {
823
+ const response = yield this.stagesAuthenticatorEmailPartialUpdateRaw(requestParameters, initOverrides);
824
+ return yield response.value();
825
+ });
826
+ }
827
+ /**
828
+ * AuthenticatorEmailStage Viewset
829
+ */
830
+ stagesAuthenticatorEmailRetrieveRaw(requestParameters, initOverrides) {
831
+ return __awaiter(this, void 0, void 0, function* () {
832
+ if (requestParameters['stageUuid'] == null) {
833
+ throw new runtime.RequiredError('stageUuid', 'Required parameter "stageUuid" was null or undefined when calling stagesAuthenticatorEmailRetrieve().');
834
+ }
835
+ const queryParameters = {};
836
+ const headerParameters = {};
837
+ if (this.configuration && this.configuration.accessToken) {
838
+ const token = this.configuration.accessToken;
839
+ const tokenString = yield token("authentik", []);
840
+ if (tokenString) {
841
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
842
+ }
843
+ }
844
+ const response = yield this.request({
845
+ path: `/stages/authenticator/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters['stageUuid']))),
846
+ method: 'GET',
847
+ headers: headerParameters,
848
+ query: queryParameters,
849
+ }, initOverrides);
850
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEmailStageFromJSON(jsonValue));
851
+ });
852
+ }
853
+ /**
854
+ * AuthenticatorEmailStage Viewset
855
+ */
856
+ stagesAuthenticatorEmailRetrieve(requestParameters, initOverrides) {
857
+ return __awaiter(this, void 0, void 0, function* () {
858
+ const response = yield this.stagesAuthenticatorEmailRetrieveRaw(requestParameters, initOverrides);
859
+ return yield response.value();
860
+ });
861
+ }
862
+ /**
863
+ * AuthenticatorEmailStage Viewset
864
+ */
865
+ stagesAuthenticatorEmailUpdateRaw(requestParameters, initOverrides) {
866
+ return __awaiter(this, void 0, void 0, function* () {
867
+ if (requestParameters['stageUuid'] == null) {
868
+ throw new runtime.RequiredError('stageUuid', 'Required parameter "stageUuid" was null or undefined when calling stagesAuthenticatorEmailUpdate().');
869
+ }
870
+ if (requestParameters['authenticatorEmailStageRequest'] == null) {
871
+ throw new runtime.RequiredError('authenticatorEmailStageRequest', 'Required parameter "authenticatorEmailStageRequest" was null or undefined when calling stagesAuthenticatorEmailUpdate().');
872
+ }
873
+ const queryParameters = {};
874
+ const headerParameters = {};
875
+ headerParameters['Content-Type'] = 'application/json';
876
+ if (this.configuration && this.configuration.accessToken) {
877
+ const token = this.configuration.accessToken;
878
+ const tokenString = yield token("authentik", []);
879
+ if (tokenString) {
880
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
881
+ }
882
+ }
883
+ const response = yield this.request({
884
+ path: `/stages/authenticator/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters['stageUuid']))),
885
+ method: 'PUT',
886
+ headers: headerParameters,
887
+ query: queryParameters,
888
+ body: AuthenticatorEmailStageRequestToJSON(requestParameters['authenticatorEmailStageRequest']),
889
+ }, initOverrides);
890
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEmailStageFromJSON(jsonValue));
891
+ });
892
+ }
893
+ /**
894
+ * AuthenticatorEmailStage Viewset
895
+ */
896
+ stagesAuthenticatorEmailUpdate(requestParameters, initOverrides) {
897
+ return __awaiter(this, void 0, void 0, function* () {
898
+ const response = yield this.stagesAuthenticatorEmailUpdateRaw(requestParameters, initOverrides);
899
+ return yield response.value();
900
+ });
901
+ }
902
+ /**
903
+ * Get a list of all objects that use this object
904
+ */
905
+ stagesAuthenticatorEmailUsedByListRaw(requestParameters, initOverrides) {
906
+ return __awaiter(this, void 0, void 0, function* () {
907
+ if (requestParameters['stageUuid'] == null) {
908
+ throw new runtime.RequiredError('stageUuid', 'Required parameter "stageUuid" was null or undefined when calling stagesAuthenticatorEmailUsedByList().');
909
+ }
910
+ const queryParameters = {};
911
+ const headerParameters = {};
912
+ if (this.configuration && this.configuration.accessToken) {
913
+ const token = this.configuration.accessToken;
914
+ const tokenString = yield token("authentik", []);
915
+ if (tokenString) {
916
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
917
+ }
918
+ }
919
+ const response = yield this.request({
920
+ path: `/stages/authenticator/email/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters['stageUuid']))),
921
+ method: 'GET',
922
+ headers: headerParameters,
923
+ query: queryParameters,
924
+ }, initOverrides);
925
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
926
+ });
927
+ }
928
+ /**
929
+ * Get a list of all objects that use this object
930
+ */
931
+ stagesAuthenticatorEmailUsedByList(requestParameters, initOverrides) {
932
+ return __awaiter(this, void 0, void 0, function* () {
933
+ const response = yield this.stagesAuthenticatorEmailUsedByListRaw(requestParameters, initOverrides);
934
+ return yield response.value();
935
+ });
936
+ }
627
937
  /**
628
938
  * AuthenticatorEndpointGDTCStage Viewset
629
939
  */
@@ -44,6 +44,7 @@ export declare const AppEnum: {
44
44
  readonly AuthentikSourcesScim: "authentik.sources.scim";
45
45
  readonly AuthentikStagesAuthenticator: "authentik.stages.authenticator";
46
46
  readonly AuthentikStagesAuthenticatorDuo: "authentik.stages.authenticator_duo";
47
+ readonly AuthentikStagesAuthenticatorEmail: "authentik.stages.authenticator_email";
47
48
  readonly AuthentikStagesAuthenticatorSms: "authentik.stages.authenticator_sms";
48
49
  readonly AuthentikStagesAuthenticatorStatic: "authentik.stages.authenticator_static";
49
50
  readonly AuthentikStagesAuthenticatorTotp: "authentik.stages.authenticator_totp";
@@ -46,6 +46,7 @@ export const AppEnum = {
46
46
  AuthentikSourcesScim: 'authentik.sources.scim',
47
47
  AuthentikStagesAuthenticator: 'authentik.stages.authenticator',
48
48
  AuthentikStagesAuthenticatorDuo: 'authentik.stages.authenticator_duo',
49
+ AuthentikStagesAuthenticatorEmail: 'authentik.stages.authenticator_email',
49
50
  AuthentikStagesAuthenticatorSms: 'authentik.stages.authenticator_sms',
50
51
  AuthentikStagesAuthenticatorStatic: 'authentik.stages.authenticator_static',
51
52
  AuthentikStagesAuthenticatorTotp: 'authentik.stages.authenticator_totp',
@@ -0,0 +1,72 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.12.3
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
+ import type { ErrorDetail } from './ErrorDetail';
13
+ import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
+ /**
15
+ * Authenticator Email Setup challenge
16
+ * @export
17
+ * @interface AuthenticatorEmailChallenge
18
+ */
19
+ export interface AuthenticatorEmailChallenge {
20
+ /**
21
+ *
22
+ * @type {ContextualFlowInfo}
23
+ * @memberof AuthenticatorEmailChallenge
24
+ */
25
+ flowInfo?: ContextualFlowInfo;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof AuthenticatorEmailChallenge
30
+ */
31
+ component?: string;
32
+ /**
33
+ *
34
+ * @type {{ [key: string]: Array<ErrorDetail>; }}
35
+ * @memberof AuthenticatorEmailChallenge
36
+ */
37
+ responseErrors?: {
38
+ [key: string]: Array<ErrorDetail>;
39
+ };
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AuthenticatorEmailChallenge
44
+ */
45
+ pendingUser: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AuthenticatorEmailChallenge
50
+ */
51
+ pendingUserAvatar: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof AuthenticatorEmailChallenge
56
+ */
57
+ email?: string | null;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof AuthenticatorEmailChallenge
62
+ */
63
+ emailRequired?: boolean;
64
+ }
65
+ /**
66
+ * Check if a given object implements the AuthenticatorEmailChallenge interface.
67
+ */
68
+ export declare function instanceOfAuthenticatorEmailChallenge(value: object): value is AuthenticatorEmailChallenge;
69
+ export declare function AuthenticatorEmailChallengeFromJSON(json: any): AuthenticatorEmailChallenge;
70
+ export declare function AuthenticatorEmailChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailChallenge;
71
+ export declare function AuthenticatorEmailChallengeToJSON(json: any): AuthenticatorEmailChallenge;
72
+ export declare function AuthenticatorEmailChallengeToJSONTyped(value?: AuthenticatorEmailChallenge | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.12.3
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
+ import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
15
+ /**
16
+ * Check if a given object implements the AuthenticatorEmailChallenge interface.
17
+ */
18
+ export function instanceOfAuthenticatorEmailChallenge(value) {
19
+ if (!('pendingUser' in value) || value['pendingUser'] === undefined)
20
+ return false;
21
+ if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function AuthenticatorEmailChallengeFromJSON(json) {
26
+ return AuthenticatorEmailChallengeFromJSONTyped(json, false);
27
+ }
28
+ export function AuthenticatorEmailChallengeFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
34
+ 'component': json['component'] == null ? undefined : json['component'],
35
+ 'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
36
+ 'pendingUser': json['pending_user'],
37
+ 'pendingUserAvatar': json['pending_user_avatar'],
38
+ 'email': json['email'] == null ? undefined : json['email'],
39
+ 'emailRequired': json['email_required'] == null ? undefined : json['email_required'],
40
+ };
41
+ }
42
+ export function AuthenticatorEmailChallengeToJSON(json) {
43
+ return AuthenticatorEmailChallengeToJSONTyped(json, false);
44
+ }
45
+ export function AuthenticatorEmailChallengeToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
51
+ 'component': value['component'],
52
+ 'response_errors': value['responseErrors'],
53
+ 'pending_user': value['pendingUser'],
54
+ 'pending_user_avatar': value['pendingUserAvatar'],
55
+ 'email': value['email'],
56
+ 'email_required': value['emailRequired'],
57
+ };
58
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.12.3
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
+ * Authenticator Email Challenge response, device is set by get_response_instance
14
+ * @export
15
+ * @interface AuthenticatorEmailChallengeResponseRequest
16
+ */
17
+ export interface AuthenticatorEmailChallengeResponseRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AuthenticatorEmailChallengeResponseRequest
22
+ */
23
+ component?: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AuthenticatorEmailChallengeResponseRequest
28
+ */
29
+ code?: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AuthenticatorEmailChallengeResponseRequest
34
+ */
35
+ email?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AuthenticatorEmailChallengeResponseRequest interface.
39
+ */
40
+ export declare function instanceOfAuthenticatorEmailChallengeResponseRequest(value: object): value is AuthenticatorEmailChallengeResponseRequest;
41
+ export declare function AuthenticatorEmailChallengeResponseRequestFromJSON(json: any): AuthenticatorEmailChallengeResponseRequest;
42
+ export declare function AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailChallengeResponseRequest;
43
+ export declare function AuthenticatorEmailChallengeResponseRequestToJSON(json: any): AuthenticatorEmailChallengeResponseRequest;
44
+ export declare function AuthenticatorEmailChallengeResponseRequestToJSONTyped(value?: AuthenticatorEmailChallengeResponseRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.12.3
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
+ /**
15
+ * Check if a given object implements the AuthenticatorEmailChallengeResponseRequest interface.
16
+ */
17
+ export function instanceOfAuthenticatorEmailChallengeResponseRequest(value) {
18
+ return true;
19
+ }
20
+ export function AuthenticatorEmailChallengeResponseRequestFromJSON(json) {
21
+ return AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, false);
22
+ }
23
+ export function AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'component': json['component'] == null ? undefined : json['component'],
29
+ 'code': json['code'] == null ? undefined : json['code'],
30
+ 'email': json['email'] == null ? undefined : json['email'],
31
+ };
32
+ }
33
+ export function AuthenticatorEmailChallengeResponseRequestToJSON(json) {
34
+ return AuthenticatorEmailChallengeResponseRequestToJSONTyped(json, false);
35
+ }
36
+ export function AuthenticatorEmailChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'component': value['component'],
42
+ 'code': value['code'],
43
+ 'email': value['email'],
44
+ };
45
+ }