@goauthentik/api 2024.8.3-1729166675 → 2024.8.3-1729630021

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 (105) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/dist/apis/AdminApi.d.ts +26 -1
  3. package/dist/apis/AdminApi.js +79 -0
  4. package/dist/apis/AuthenticatorsApi.d.ts +110 -1
  5. package/dist/apis/AuthenticatorsApi.js +347 -0
  6. package/dist/apis/RbacApi.d.ts +2 -0
  7. package/dist/apis/RbacApi.js +2 -0
  8. package/dist/apis/StagesApi.d.ts +85 -1
  9. package/dist/apis/StagesApi.js +268 -0
  10. package/dist/esm/apis/AdminApi.d.ts +26 -1
  11. package/dist/esm/apis/AdminApi.js +80 -1
  12. package/dist/esm/apis/AuthenticatorsApi.d.ts +110 -1
  13. package/dist/esm/apis/AuthenticatorsApi.js +348 -1
  14. package/dist/esm/apis/RbacApi.d.ts +2 -0
  15. package/dist/esm/apis/RbacApi.js +2 -0
  16. package/dist/esm/apis/StagesApi.d.ts +85 -1
  17. package/dist/esm/apis/StagesApi.js +269 -1
  18. package/dist/esm/models/AppEnum.d.ts +1 -0
  19. package/dist/esm/models/AppEnum.js +1 -0
  20. package/dist/esm/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
  21. package/dist/esm/models/AuthenticatorEndpointGDTCStage.js +64 -0
  22. package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  23. package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.js +54 -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/Device.d.ts +2 -2
  27. package/dist/esm/models/EndpointDevice.d.ts +37 -0
  28. package/dist/esm/models/EndpointDevice.js +46 -0
  29. package/dist/esm/models/EndpointDeviceRequest.d.ts +37 -0
  30. package/dist/esm/models/EndpointDeviceRequest.js +46 -0
  31. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
  32. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  33. package/dist/esm/models/FrameChallenge.d.ts +65 -0
  34. package/dist/esm/models/FrameChallenge.js +56 -0
  35. package/dist/esm/models/FrameChallengeResponseRequest.d.ts +31 -0
  36. package/dist/esm/models/FrameChallengeResponseRequest.js +43 -0
  37. package/dist/esm/models/ModelEnum.d.ts +1 -0
  38. package/dist/esm/models/ModelEnum.js +1 -0
  39. package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
  40. package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.js +48 -0
  41. package/dist/esm/models/PaginatedEndpointDeviceList.d.ts +39 -0
  42. package/dist/esm/models/PaginatedEndpointDeviceList.js +48 -0
  43. package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  44. package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +52 -0
  45. package/dist/esm/models/PatchedEndpointDeviceRequest.d.ts +37 -0
  46. package/dist/esm/models/PatchedEndpointDeviceRequest.js +45 -0
  47. package/dist/esm/models/VersionHistory.d.ts +49 -0
  48. package/dist/esm/models/VersionHistory.js +51 -0
  49. package/dist/esm/models/index.d.ts +11 -0
  50. package/dist/esm/models/index.js +11 -0
  51. package/dist/models/AppEnum.d.ts +1 -0
  52. package/dist/models/AppEnum.js +1 -0
  53. package/dist/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
  54. package/dist/models/AuthenticatorEndpointGDTCStage.js +71 -0
  55. package/dist/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  56. package/dist/models/AuthenticatorEndpointGDTCStageRequest.js +61 -0
  57. package/dist/models/ChallengeTypes.d.ts +3 -0
  58. package/dist/models/ChallengeTypes.js +5 -0
  59. package/dist/models/Device.d.ts +2 -2
  60. package/dist/models/EndpointDevice.d.ts +37 -0
  61. package/dist/models/EndpointDevice.js +53 -0
  62. package/dist/models/EndpointDeviceRequest.d.ts +37 -0
  63. package/dist/models/EndpointDeviceRequest.js +53 -0
  64. package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
  65. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  66. package/dist/models/FrameChallenge.d.ts +65 -0
  67. package/dist/models/FrameChallenge.js +63 -0
  68. package/dist/models/FrameChallengeResponseRequest.d.ts +31 -0
  69. package/dist/models/FrameChallengeResponseRequest.js +50 -0
  70. package/dist/models/ModelEnum.d.ts +1 -0
  71. package/dist/models/ModelEnum.js +1 -0
  72. package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
  73. package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.js +55 -0
  74. package/dist/models/PaginatedEndpointDeviceList.d.ts +39 -0
  75. package/dist/models/PaginatedEndpointDeviceList.js +55 -0
  76. package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  77. package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +59 -0
  78. package/dist/models/PatchedEndpointDeviceRequest.d.ts +37 -0
  79. package/dist/models/PatchedEndpointDeviceRequest.js +52 -0
  80. package/dist/models/VersionHistory.d.ts +49 -0
  81. package/dist/models/VersionHistory.js +58 -0
  82. package/dist/models/index.d.ts +11 -0
  83. package/dist/models/index.js +11 -0
  84. package/package.json +1 -1
  85. package/src/apis/AdminApi.ts +102 -0
  86. package/src/apis/AuthenticatorsApi.ts +444 -0
  87. package/src/apis/RbacApi.ts +2 -0
  88. package/src/apis/StagesApi.ts +345 -0
  89. package/src/models/AppEnum.ts +1 -0
  90. package/src/models/AuthenticatorEndpointGDTCStage.ts +146 -0
  91. package/src/models/AuthenticatorEndpointGDTCStageRequest.ts +106 -0
  92. package/src/models/ChallengeTypes.ts +12 -1
  93. package/src/models/Device.ts +2 -2
  94. package/src/models/EndpointDevice.ts +74 -0
  95. package/src/models/EndpointDeviceRequest.ts +74 -0
  96. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  97. package/src/models/FrameChallenge.ts +120 -0
  98. package/src/models/FrameChallengeResponseRequest.ts +65 -0
  99. package/src/models/ModelEnum.ts +1 -0
  100. package/src/models/PaginatedAuthenticatorEndpointGDTCStageList.ts +88 -0
  101. package/src/models/PaginatedEndpointDeviceList.ts +88 -0
  102. package/src/models/PatchedAuthenticatorEndpointGDTCStageRequest.ts +104 -0
  103. package/src/models/PatchedEndpointDeviceRequest.ts +73 -0
  104. package/src/models/VersionHistory.ts +92 -0
  105. package/src/models/index.ts +11 -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, 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, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedAuthenticatorWebAuthnStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedSourceStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PaginatedWebAuthnDeviceTypeListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedAuthenticatorWebAuthnStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedSourceStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptChallengeFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, SourceStageFromJSON, SourceStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, WebAuthnDeviceTypeFromJSON, } from '../models';
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, 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, PatchedSourceStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptChallengeFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, SourceStageFromJSON, SourceStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, WebAuthnDeviceTypeFromJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -624,6 +624,274 @@ export class StagesApi extends runtime.BaseAPI {
624
624
  return yield response.value();
625
625
  });
626
626
  }
627
+ /**
628
+ * AuthenticatorEndpointGDTCStage Viewset
629
+ */
630
+ stagesAuthenticatorEndpointGdtcCreateRaw(requestParameters, initOverrides) {
631
+ return __awaiter(this, void 0, void 0, function* () {
632
+ if (requestParameters.authenticatorEndpointGDTCStageRequest === null || requestParameters.authenticatorEndpointGDTCStageRequest === undefined) {
633
+ throw new runtime.RequiredError('authenticatorEndpointGDTCStageRequest', 'Required parameter requestParameters.authenticatorEndpointGDTCStageRequest was null or undefined when calling stagesAuthenticatorEndpointGdtcCreate.');
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/endpoint_gdtc/`,
647
+ method: 'POST',
648
+ headers: headerParameters,
649
+ query: queryParameters,
650
+ body: AuthenticatorEndpointGDTCStageRequestToJSON(requestParameters.authenticatorEndpointGDTCStageRequest),
651
+ }, initOverrides);
652
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEndpointGDTCStageFromJSON(jsonValue));
653
+ });
654
+ }
655
+ /**
656
+ * AuthenticatorEndpointGDTCStage Viewset
657
+ */
658
+ stagesAuthenticatorEndpointGdtcCreate(requestParameters, initOverrides) {
659
+ return __awaiter(this, void 0, void 0, function* () {
660
+ const response = yield this.stagesAuthenticatorEndpointGdtcCreateRaw(requestParameters, initOverrides);
661
+ return yield response.value();
662
+ });
663
+ }
664
+ /**
665
+ * AuthenticatorEndpointGDTCStage Viewset
666
+ */
667
+ stagesAuthenticatorEndpointGdtcDestroyRaw(requestParameters, initOverrides) {
668
+ return __awaiter(this, void 0, void 0, function* () {
669
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
670
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcDestroy.');
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/endpoint_gdtc/{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
+ * AuthenticatorEndpointGDTCStage Viewset
692
+ */
693
+ stagesAuthenticatorEndpointGdtcDestroy(requestParameters, initOverrides) {
694
+ return __awaiter(this, void 0, void 0, function* () {
695
+ yield this.stagesAuthenticatorEndpointGdtcDestroyRaw(requestParameters, initOverrides);
696
+ });
697
+ }
698
+ /**
699
+ * AuthenticatorEndpointGDTCStage Viewset
700
+ */
701
+ stagesAuthenticatorEndpointGdtcListRaw(requestParameters, initOverrides) {
702
+ return __awaiter(this, void 0, void 0, function* () {
703
+ const queryParameters = {};
704
+ if (requestParameters.configureFlow !== undefined) {
705
+ queryParameters['configure_flow'] = requestParameters.configureFlow;
706
+ }
707
+ if (requestParameters.name !== undefined) {
708
+ queryParameters['name'] = requestParameters.name;
709
+ }
710
+ if (requestParameters.ordering !== undefined) {
711
+ queryParameters['ordering'] = requestParameters.ordering;
712
+ }
713
+ if (requestParameters.page !== undefined) {
714
+ queryParameters['page'] = requestParameters.page;
715
+ }
716
+ if (requestParameters.pageSize !== undefined) {
717
+ queryParameters['page_size'] = requestParameters.pageSize;
718
+ }
719
+ if (requestParameters.search !== undefined) {
720
+ queryParameters['search'] = requestParameters.search;
721
+ }
722
+ const headerParameters = {};
723
+ if (this.configuration && this.configuration.accessToken) {
724
+ const token = this.configuration.accessToken;
725
+ const tokenString = yield token("authentik", []);
726
+ if (tokenString) {
727
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
728
+ }
729
+ }
730
+ const response = yield this.request({
731
+ path: `/stages/authenticator/endpoint_gdtc/`,
732
+ method: 'GET',
733
+ headers: headerParameters,
734
+ query: queryParameters,
735
+ }, initOverrides);
736
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAuthenticatorEndpointGDTCStageListFromJSON(jsonValue));
737
+ });
738
+ }
739
+ /**
740
+ * AuthenticatorEndpointGDTCStage Viewset
741
+ */
742
+ stagesAuthenticatorEndpointGdtcList(requestParameters = {}, initOverrides) {
743
+ return __awaiter(this, void 0, void 0, function* () {
744
+ const response = yield this.stagesAuthenticatorEndpointGdtcListRaw(requestParameters, initOverrides);
745
+ return yield response.value();
746
+ });
747
+ }
748
+ /**
749
+ * AuthenticatorEndpointGDTCStage Viewset
750
+ */
751
+ stagesAuthenticatorEndpointGdtcPartialUpdateRaw(requestParameters, initOverrides) {
752
+ return __awaiter(this, void 0, void 0, function* () {
753
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
754
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcPartialUpdate.');
755
+ }
756
+ const queryParameters = {};
757
+ const headerParameters = {};
758
+ headerParameters['Content-Type'] = 'application/json';
759
+ if (this.configuration && this.configuration.accessToken) {
760
+ const token = this.configuration.accessToken;
761
+ const tokenString = yield token("authentik", []);
762
+ if (tokenString) {
763
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
764
+ }
765
+ }
766
+ const response = yield this.request({
767
+ path: `/stages/authenticator/endpoint_gdtc/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
768
+ method: 'PATCH',
769
+ headers: headerParameters,
770
+ query: queryParameters,
771
+ body: PatchedAuthenticatorEndpointGDTCStageRequestToJSON(requestParameters.patchedAuthenticatorEndpointGDTCStageRequest),
772
+ }, initOverrides);
773
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEndpointGDTCStageFromJSON(jsonValue));
774
+ });
775
+ }
776
+ /**
777
+ * AuthenticatorEndpointGDTCStage Viewset
778
+ */
779
+ stagesAuthenticatorEndpointGdtcPartialUpdate(requestParameters, initOverrides) {
780
+ return __awaiter(this, void 0, void 0, function* () {
781
+ const response = yield this.stagesAuthenticatorEndpointGdtcPartialUpdateRaw(requestParameters, initOverrides);
782
+ return yield response.value();
783
+ });
784
+ }
785
+ /**
786
+ * AuthenticatorEndpointGDTCStage Viewset
787
+ */
788
+ stagesAuthenticatorEndpointGdtcRetrieveRaw(requestParameters, initOverrides) {
789
+ return __awaiter(this, void 0, void 0, function* () {
790
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
791
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcRetrieve.');
792
+ }
793
+ const queryParameters = {};
794
+ const headerParameters = {};
795
+ if (this.configuration && this.configuration.accessToken) {
796
+ const token = this.configuration.accessToken;
797
+ const tokenString = yield token("authentik", []);
798
+ if (tokenString) {
799
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
800
+ }
801
+ }
802
+ const response = yield this.request({
803
+ path: `/stages/authenticator/endpoint_gdtc/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
804
+ method: 'GET',
805
+ headers: headerParameters,
806
+ query: queryParameters,
807
+ }, initOverrides);
808
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEndpointGDTCStageFromJSON(jsonValue));
809
+ });
810
+ }
811
+ /**
812
+ * AuthenticatorEndpointGDTCStage Viewset
813
+ */
814
+ stagesAuthenticatorEndpointGdtcRetrieve(requestParameters, initOverrides) {
815
+ return __awaiter(this, void 0, void 0, function* () {
816
+ const response = yield this.stagesAuthenticatorEndpointGdtcRetrieveRaw(requestParameters, initOverrides);
817
+ return yield response.value();
818
+ });
819
+ }
820
+ /**
821
+ * AuthenticatorEndpointGDTCStage Viewset
822
+ */
823
+ stagesAuthenticatorEndpointGdtcUpdateRaw(requestParameters, initOverrides) {
824
+ return __awaiter(this, void 0, void 0, function* () {
825
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
826
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcUpdate.');
827
+ }
828
+ if (requestParameters.authenticatorEndpointGDTCStageRequest === null || requestParameters.authenticatorEndpointGDTCStageRequest === undefined) {
829
+ throw new runtime.RequiredError('authenticatorEndpointGDTCStageRequest', 'Required parameter requestParameters.authenticatorEndpointGDTCStageRequest was null or undefined when calling stagesAuthenticatorEndpointGdtcUpdate.');
830
+ }
831
+ const queryParameters = {};
832
+ const headerParameters = {};
833
+ headerParameters['Content-Type'] = 'application/json';
834
+ if (this.configuration && this.configuration.accessToken) {
835
+ const token = this.configuration.accessToken;
836
+ const tokenString = yield token("authentik", []);
837
+ if (tokenString) {
838
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
839
+ }
840
+ }
841
+ const response = yield this.request({
842
+ path: `/stages/authenticator/endpoint_gdtc/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
843
+ method: 'PUT',
844
+ headers: headerParameters,
845
+ query: queryParameters,
846
+ body: AuthenticatorEndpointGDTCStageRequestToJSON(requestParameters.authenticatorEndpointGDTCStageRequest),
847
+ }, initOverrides);
848
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEndpointGDTCStageFromJSON(jsonValue));
849
+ });
850
+ }
851
+ /**
852
+ * AuthenticatorEndpointGDTCStage Viewset
853
+ */
854
+ stagesAuthenticatorEndpointGdtcUpdate(requestParameters, initOverrides) {
855
+ return __awaiter(this, void 0, void 0, function* () {
856
+ const response = yield this.stagesAuthenticatorEndpointGdtcUpdateRaw(requestParameters, initOverrides);
857
+ return yield response.value();
858
+ });
859
+ }
860
+ /**
861
+ * Get a list of all objects that use this object
862
+ */
863
+ stagesAuthenticatorEndpointGdtcUsedByListRaw(requestParameters, initOverrides) {
864
+ return __awaiter(this, void 0, void 0, function* () {
865
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
866
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcUsedByList.');
867
+ }
868
+ const queryParameters = {};
869
+ const headerParameters = {};
870
+ if (this.configuration && this.configuration.accessToken) {
871
+ const token = this.configuration.accessToken;
872
+ const tokenString = yield token("authentik", []);
873
+ if (tokenString) {
874
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
875
+ }
876
+ }
877
+ const response = yield this.request({
878
+ path: `/stages/authenticator/endpoint_gdtc/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
879
+ method: 'GET',
880
+ headers: headerParameters,
881
+ query: queryParameters,
882
+ }, initOverrides);
883
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
884
+ });
885
+ }
886
+ /**
887
+ * Get a list of all objects that use this object
888
+ */
889
+ stagesAuthenticatorEndpointGdtcUsedByList(requestParameters, initOverrides) {
890
+ return __awaiter(this, void 0, void 0, function* () {
891
+ const response = yield this.stagesAuthenticatorEndpointGdtcUsedByListRaw(requestParameters, initOverrides);
892
+ return yield response.value();
893
+ });
894
+ }
627
895
  /**
628
896
  * AuthenticatorSMSStage Viewset
629
897
  */
@@ -69,6 +69,7 @@ export declare const AppEnum: {
69
69
  readonly EnterpriseProvidersGoogleWorkspace: "authentik.enterprise.providers.google_workspace";
70
70
  readonly EnterpriseProvidersMicrosoftEntra: "authentik.enterprise.providers.microsoft_entra";
71
71
  readonly EnterpriseProvidersRac: "authentik.enterprise.providers.rac";
72
+ readonly EnterpriseStagesAuthenticatorEndpointGdtc: "authentik.enterprise.stages.authenticator_endpoint_gdtc";
72
73
  readonly EnterpriseStagesSource: "authentik.enterprise.stages.source";
73
74
  readonly Events: "authentik.events";
74
75
  readonly UnknownDefaultOpenApi: "11184809";
@@ -71,6 +71,7 @@ export const AppEnum = {
71
71
  EnterpriseProvidersGoogleWorkspace: 'authentik.enterprise.providers.google_workspace',
72
72
  EnterpriseProvidersMicrosoftEntra: 'authentik.enterprise.providers.microsoft_entra',
73
73
  EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
74
+ EnterpriseStagesAuthenticatorEndpointGdtc: 'authentik.enterprise.stages.authenticator_endpoint_gdtc',
74
75
  EnterpriseStagesSource: 'authentik.enterprise.stages.source',
75
76
  Events: 'authentik.events',
76
77
  UnknownDefaultOpenApi: '11184809'
@@ -0,0 +1,86 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.8.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 { FlowSet } from './FlowSet';
13
+ /**
14
+ * AuthenticatorEndpointGDTCStage Serializer
15
+ * @export
16
+ * @interface AuthenticatorEndpointGDTCStage
17
+ */
18
+ export interface AuthenticatorEndpointGDTCStage {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AuthenticatorEndpointGDTCStage
23
+ */
24
+ readonly pk: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AuthenticatorEndpointGDTCStage
29
+ */
30
+ name: string;
31
+ /**
32
+ * Get object type so that we know how to edit the object
33
+ * @type {string}
34
+ * @memberof AuthenticatorEndpointGDTCStage
35
+ */
36
+ readonly component: string;
37
+ /**
38
+ * Return object's verbose_name
39
+ * @type {string}
40
+ * @memberof AuthenticatorEndpointGDTCStage
41
+ */
42
+ readonly verboseName: string;
43
+ /**
44
+ * Return object's plural verbose_name
45
+ * @type {string}
46
+ * @memberof AuthenticatorEndpointGDTCStage
47
+ */
48
+ readonly verboseNamePlural: string;
49
+ /**
50
+ * Return internal model name
51
+ * @type {string}
52
+ * @memberof AuthenticatorEndpointGDTCStage
53
+ */
54
+ readonly metaModelName: string;
55
+ /**
56
+ *
57
+ * @type {Array<FlowSet>}
58
+ * @memberof AuthenticatorEndpointGDTCStage
59
+ */
60
+ flowSet?: Array<FlowSet>;
61
+ /**
62
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
63
+ * @type {string}
64
+ * @memberof AuthenticatorEndpointGDTCStage
65
+ */
66
+ configureFlow?: string | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof AuthenticatorEndpointGDTCStage
71
+ */
72
+ friendlyName?: string | null;
73
+ /**
74
+ *
75
+ * @type {any}
76
+ * @memberof AuthenticatorEndpointGDTCStage
77
+ */
78
+ credentials: any | null;
79
+ }
80
+ /**
81
+ * Check if a given object implements the AuthenticatorEndpointGDTCStage interface.
82
+ */
83
+ export declare function instanceOfAuthenticatorEndpointGDTCStage(value: object): boolean;
84
+ export declare function AuthenticatorEndpointGDTCStageFromJSON(json: any): AuthenticatorEndpointGDTCStage;
85
+ export declare function AuthenticatorEndpointGDTCStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEndpointGDTCStage;
86
+ export declare function AuthenticatorEndpointGDTCStageToJSON(value?: AuthenticatorEndpointGDTCStage | null): any;
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.8.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 { exists } from '../runtime';
15
+ import { FlowSetFromJSON, FlowSetToJSON, } from './FlowSet';
16
+ /**
17
+ * Check if a given object implements the AuthenticatorEndpointGDTCStage interface.
18
+ */
19
+ export function instanceOfAuthenticatorEndpointGDTCStage(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "pk" in value;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "component" in value;
24
+ isInstance = isInstance && "verboseName" in value;
25
+ isInstance = isInstance && "verboseNamePlural" in value;
26
+ isInstance = isInstance && "metaModelName" in value;
27
+ isInstance = isInstance && "credentials" in value;
28
+ return isInstance;
29
+ }
30
+ export function AuthenticatorEndpointGDTCStageFromJSON(json) {
31
+ return AuthenticatorEndpointGDTCStageFromJSONTyped(json, false);
32
+ }
33
+ export function AuthenticatorEndpointGDTCStageFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'pk': json['pk'],
39
+ 'name': json['name'],
40
+ 'component': json['component'],
41
+ 'verboseName': json['verbose_name'],
42
+ 'verboseNamePlural': json['verbose_name_plural'],
43
+ 'metaModelName': json['meta_model_name'],
44
+ 'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
45
+ 'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
46
+ 'friendlyName': !exists(json, 'friendly_name') ? undefined : json['friendly_name'],
47
+ 'credentials': json['credentials'],
48
+ };
49
+ }
50
+ export function AuthenticatorEndpointGDTCStageToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'name': value.name,
59
+ 'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetToJSON)),
60
+ 'configure_flow': value.configureFlow,
61
+ 'friendly_name': value.friendlyName,
62
+ 'credentials': value.credentials,
63
+ };
64
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.8.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 { FlowSetRequest } from './FlowSetRequest';
13
+ /**
14
+ * AuthenticatorEndpointGDTCStage Serializer
15
+ * @export
16
+ * @interface AuthenticatorEndpointGDTCStageRequest
17
+ */
18
+ export interface AuthenticatorEndpointGDTCStageRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AuthenticatorEndpointGDTCStageRequest
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {Array<FlowSetRequest>}
28
+ * @memberof AuthenticatorEndpointGDTCStageRequest
29
+ */
30
+ flowSet?: Array<FlowSetRequest>;
31
+ /**
32
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
33
+ * @type {string}
34
+ * @memberof AuthenticatorEndpointGDTCStageRequest
35
+ */
36
+ configureFlow?: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AuthenticatorEndpointGDTCStageRequest
41
+ */
42
+ friendlyName?: string | null;
43
+ /**
44
+ *
45
+ * @type {any}
46
+ * @memberof AuthenticatorEndpointGDTCStageRequest
47
+ */
48
+ credentials: any | null;
49
+ }
50
+ /**
51
+ * Check if a given object implements the AuthenticatorEndpointGDTCStageRequest interface.
52
+ */
53
+ export declare function instanceOfAuthenticatorEndpointGDTCStageRequest(value: object): boolean;
54
+ export declare function AuthenticatorEndpointGDTCStageRequestFromJSON(json: any): AuthenticatorEndpointGDTCStageRequest;
55
+ export declare function AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEndpointGDTCStageRequest;
56
+ export declare function AuthenticatorEndpointGDTCStageRequestToJSON(value?: AuthenticatorEndpointGDTCStageRequest | null): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.8.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 { exists } from '../runtime';
15
+ import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
16
+ /**
17
+ * Check if a given object implements the AuthenticatorEndpointGDTCStageRequest interface.
18
+ */
19
+ export function instanceOfAuthenticatorEndpointGDTCStageRequest(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "credentials" in value;
23
+ return isInstance;
24
+ }
25
+ export function AuthenticatorEndpointGDTCStageRequestFromJSON(json) {
26
+ return AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, false);
27
+ }
28
+ export function AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'name': json['name'],
34
+ 'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
35
+ 'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
36
+ 'friendlyName': !exists(json, 'friendly_name') ? undefined : json['friendly_name'],
37
+ 'credentials': json['credentials'],
38
+ };
39
+ }
40
+ export function AuthenticatorEndpointGDTCStageRequestToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'name': value.name,
49
+ 'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
50
+ 'configure_flow': value.configureFlow,
51
+ 'friendly_name': value.friendlyName,
52
+ 'credentials': value.credentials,
53
+ };
54
+ }
@@ -23,6 +23,7 @@ import { ConsentChallenge } from './ConsentChallenge';
23
23
  import { DummyChallenge } from './DummyChallenge';
24
24
  import { EmailChallenge } from './EmailChallenge';
25
25
  import { FlowErrorChallenge } from './FlowErrorChallenge';
26
+ import { FrameChallenge } from './FrameChallenge';
26
27
  import { IdentificationChallenge } from './IdentificationChallenge';
27
28
  import { OAuthDeviceCodeChallenge } from './OAuthDeviceCodeChallenge';
28
29
  import { OAuthDeviceCodeFinishChallenge } from './OAuthDeviceCodeFinishChallenge';
@@ -83,6 +84,8 @@ export type ChallengeTypes = {
83
84
  } & SessionEndChallenge | {
84
85
  component: 'ak-stage-user-login';
85
86
  } & UserLoginChallenge | {
87
+ component: 'xak-flow-frame';
88
+ } & FrameChallenge | {
86
89
  component: 'xak-flow-redirect';
87
90
  } & RedirectChallenge | {
88
91
  component: 'xak-flow-shell';
@@ -25,6 +25,7 @@ import { ConsentChallengeFromJSONTyped, ConsentChallengeToJSON, } from './Consen
25
25
  import { DummyChallengeFromJSONTyped, DummyChallengeToJSON, } from './DummyChallenge';
26
26
  import { EmailChallengeFromJSONTyped, EmailChallengeToJSON, } from './EmailChallenge';
27
27
  import { FlowErrorChallengeFromJSONTyped, FlowErrorChallengeToJSON, } from './FlowErrorChallenge';
28
+ import { FrameChallengeFromJSONTyped, FrameChallengeToJSON, } from './FrameChallenge';
28
29
  import { IdentificationChallengeFromJSONTyped, IdentificationChallengeToJSON, } from './IdentificationChallenge';
29
30
  import { OAuthDeviceCodeChallengeFromJSONTyped, OAuthDeviceCodeChallengeToJSON, } from './OAuthDeviceCodeChallenge';
30
31
  import { OAuthDeviceCodeFinishChallengeFromJSONTyped, OAuthDeviceCodeFinishChallengeToJSON, } from './OAuthDeviceCodeFinishChallenge';
@@ -87,6 +88,8 @@ export function ChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
87
88
  return Object.assign(Object.assign({}, SessionEndChallengeFromJSONTyped(json, true)), { component: 'ak-stage-session-end' });
88
89
  case 'ak-stage-user-login':
89
90
  return Object.assign(Object.assign({}, UserLoginChallengeFromJSONTyped(json, true)), { component: 'ak-stage-user-login' });
91
+ case 'xak-flow-frame':
92
+ return Object.assign(Object.assign({}, FrameChallengeFromJSONTyped(json, true)), { component: 'xak-flow-frame' });
90
93
  case 'xak-flow-redirect':
91
94
  return Object.assign(Object.assign({}, RedirectChallengeFromJSONTyped(json, true)), { component: 'xak-flow-redirect' });
92
95
  case 'xak-flow-shell':
@@ -147,6 +150,8 @@ export function ChallengeTypesToJSON(value) {
147
150
  return SessionEndChallengeToJSON(value);
148
151
  case 'ak-stage-user-login':
149
152
  return UserLoginChallengeToJSON(value);
153
+ case 'xak-flow-frame':
154
+ return FrameChallengeToJSON(value);
150
155
  case 'xak-flow-redirect':
151
156
  return RedirectChallengeToJSON(value);
152
157
  case 'xak-flow-shell':
@@ -35,10 +35,10 @@ export interface Device {
35
35
  readonly metaModelName: string;
36
36
  /**
37
37
  *
38
- * @type {number}
38
+ * @type {string}
39
39
  * @memberof Device
40
40
  */
41
- pk: number;
41
+ pk: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.8.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
+ * Serializer for Endpoint authenticator devices
14
+ * @export
15
+ * @interface EndpointDevice
16
+ */
17
+ export interface EndpointDevice {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof EndpointDevice
22
+ */
23
+ pk?: string;
24
+ /**
25
+ * The human-readable name of this device.
26
+ * @type {string}
27
+ * @memberof EndpointDevice
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the EndpointDevice interface.
33
+ */
34
+ export declare function instanceOfEndpointDevice(value: object): boolean;
35
+ export declare function EndpointDeviceFromJSON(json: any): EndpointDevice;
36
+ export declare function EndpointDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointDevice;
37
+ export declare function EndpointDeviceToJSON(value?: EndpointDevice | null): any;