@goauthentik/api 2024.6.3-1723032607 → 2024.6.3-1723050887

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/dist/apis/PropertymappingsApi.d.ts +171 -1
  3. package/dist/apis/PropertymappingsApi.js +542 -0
  4. package/dist/apis/RbacApi.d.ts +8 -0
  5. package/dist/apis/RbacApi.js +8 -0
  6. package/dist/apis/SourcesApi.d.ts +162 -1
  7. package/dist/apis/SourcesApi.js +493 -1
  8. package/dist/esm/apis/PropertymappingsApi.d.ts +171 -1
  9. package/dist/esm/apis/PropertymappingsApi.js +543 -1
  10. package/dist/esm/apis/RbacApi.d.ts +8 -0
  11. package/dist/esm/apis/RbacApi.js +8 -0
  12. package/dist/esm/apis/SourcesApi.d.ts +162 -1
  13. package/dist/esm/apis/SourcesApi.js +493 -1
  14. package/dist/esm/models/GroupMatchingModeEnum.d.ts +25 -0
  15. package/dist/esm/models/GroupMatchingModeEnum.js +32 -0
  16. package/dist/esm/models/GroupOAuthSourceConnection.d.ts +56 -0
  17. package/dist/esm/models/GroupOAuthSourceConnection.js +50 -0
  18. package/dist/esm/models/GroupSAMLSourceConnection.d.ts +56 -0
  19. package/dist/esm/models/GroupSAMLSourceConnection.js +50 -0
  20. package/dist/esm/models/ModelEnum.d.ts +4 -0
  21. package/dist/esm/models/ModelEnum.js +4 -0
  22. package/dist/esm/models/OAuthSource.d.ts +7 -0
  23. package/dist/esm/models/OAuthSource.js +3 -0
  24. package/dist/esm/models/OAuthSourcePropertyMapping.d.ts +73 -0
  25. package/dist/esm/models/OAuthSourcePropertyMapping.js +59 -0
  26. package/dist/esm/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
  27. package/dist/esm/models/OAuthSourcePropertyMappingRequest.js +49 -0
  28. package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
  29. package/dist/esm/models/OAuthSourceRequest.js +3 -0
  30. package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
  31. package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.js +48 -0
  32. package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
  33. package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.js +48 -0
  34. package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
  35. package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.js +48 -0
  36. package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.js +48 -0
  38. package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
  39. package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.js +47 -0
  40. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
  41. package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
  42. package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
  43. package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.js +47 -0
  44. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +7 -0
  45. package/dist/esm/models/PatchedSAMLSourceRequest.js +3 -0
  46. package/dist/esm/models/SAMLSource.d.ts +7 -0
  47. package/dist/esm/models/SAMLSource.js +3 -0
  48. package/dist/esm/models/SAMLSourcePropertyMapping.d.ts +73 -0
  49. package/dist/esm/models/SAMLSourcePropertyMapping.js +59 -0
  50. package/dist/esm/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
  51. package/dist/esm/models/SAMLSourcePropertyMappingRequest.js +49 -0
  52. package/dist/esm/models/SAMLSourceRequest.d.ts +7 -0
  53. package/dist/esm/models/SAMLSourceRequest.js +3 -0
  54. package/dist/esm/models/index.d.ts +13 -0
  55. package/dist/esm/models/index.js +13 -0
  56. package/dist/models/GroupMatchingModeEnum.d.ts +25 -0
  57. package/dist/models/GroupMatchingModeEnum.js +38 -0
  58. package/dist/models/GroupOAuthSourceConnection.d.ts +56 -0
  59. package/dist/models/GroupOAuthSourceConnection.js +57 -0
  60. package/dist/models/GroupSAMLSourceConnection.d.ts +56 -0
  61. package/dist/models/GroupSAMLSourceConnection.js +57 -0
  62. package/dist/models/ModelEnum.d.ts +4 -0
  63. package/dist/models/ModelEnum.js +4 -0
  64. package/dist/models/OAuthSource.d.ts +7 -0
  65. package/dist/models/OAuthSource.js +3 -0
  66. package/dist/models/OAuthSourcePropertyMapping.d.ts +73 -0
  67. package/dist/models/OAuthSourcePropertyMapping.js +66 -0
  68. package/dist/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
  69. package/dist/models/OAuthSourcePropertyMappingRequest.js +56 -0
  70. package/dist/models/OAuthSourceRequest.d.ts +7 -0
  71. package/dist/models/OAuthSourceRequest.js +3 -0
  72. package/dist/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
  73. package/dist/models/PaginatedGroupOAuthSourceConnectionList.js +55 -0
  74. package/dist/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
  75. package/dist/models/PaginatedGroupSAMLSourceConnectionList.js +55 -0
  76. package/dist/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
  77. package/dist/models/PaginatedOAuthSourcePropertyMappingList.js +55 -0
  78. package/dist/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
  79. package/dist/models/PaginatedSAMLSourcePropertyMappingList.js +55 -0
  80. package/dist/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
  81. package/dist/models/PatchedOAuthSourcePropertyMappingRequest.js +54 -0
  82. package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
  83. package/dist/models/PatchedOAuthSourceRequest.js +3 -0
  84. package/dist/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
  85. package/dist/models/PatchedSAMLSourcePropertyMappingRequest.js +54 -0
  86. package/dist/models/PatchedSAMLSourceRequest.d.ts +7 -0
  87. package/dist/models/PatchedSAMLSourceRequest.js +3 -0
  88. package/dist/models/SAMLSource.d.ts +7 -0
  89. package/dist/models/SAMLSource.js +3 -0
  90. package/dist/models/SAMLSourcePropertyMapping.d.ts +73 -0
  91. package/dist/models/SAMLSourcePropertyMapping.js +66 -0
  92. package/dist/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
  93. package/dist/models/SAMLSourcePropertyMappingRequest.js +56 -0
  94. package/dist/models/SAMLSourceRequest.d.ts +7 -0
  95. package/dist/models/SAMLSourceRequest.js +3 -0
  96. package/dist/models/index.d.ts +13 -0
  97. package/dist/models/index.js +13 -0
  98. package/package.json +1 -1
  99. package/src/apis/PropertymappingsApi.ts +700 -0
  100. package/src/apis/RbacApi.ts +8 -0
  101. package/src/apis/SourcesApi.ts +613 -0
  102. package/src/models/GroupMatchingModeEnum.ts +40 -0
  103. package/src/models/GroupOAuthSourceConnection.ts +104 -0
  104. package/src/models/GroupSAMLSourceConnection.ts +104 -0
  105. package/src/models/ModelEnum.ts +4 -0
  106. package/src/models/OAuthSource.ts +14 -0
  107. package/src/models/OAuthSourcePropertyMapping.ts +123 -0
  108. package/src/models/OAuthSourcePropertyMappingRequest.ts +83 -0
  109. package/src/models/OAuthSourceRequest.ts +14 -0
  110. package/src/models/PaginatedGroupOAuthSourceConnectionList.ts +88 -0
  111. package/src/models/PaginatedGroupSAMLSourceConnectionList.ts +88 -0
  112. package/src/models/PaginatedOAuthSourcePropertyMappingList.ts +88 -0
  113. package/src/models/PaginatedSAMLSourcePropertyMappingList.ts +88 -0
  114. package/src/models/PatchedOAuthSourcePropertyMappingRequest.ts +81 -0
  115. package/src/models/PatchedOAuthSourceRequest.ts +14 -0
  116. package/src/models/PatchedSAMLSourcePropertyMappingRequest.ts +81 -0
  117. package/src/models/PatchedSAMLSourceRequest.ts +14 -0
  118. package/src/models/SAMLSource.ts +14 -0
  119. package/src/models/SAMLSourcePropertyMapping.ts +123 -0
  120. package/src/models/SAMLSourcePropertyMappingRequest.ts +83 -0
  121. package/src/models/SAMLSourceRequest.ts +14 -0
  122. package/src/models/index.ts +13 -0
@@ -2703,6 +2703,548 @@ class PropertymappingsApi extends runtime.BaseAPI {
2703
2703
  return yield response.value();
2704
2704
  });
2705
2705
  }
2706
+ /**
2707
+ * OAuthSourcePropertyMapping Viewset
2708
+ */
2709
+ propertymappingsSourceOauthCreateRaw(requestParameters, initOverrides) {
2710
+ return __awaiter(this, void 0, void 0, function* () {
2711
+ if (requestParameters.oAuthSourcePropertyMappingRequest === null || requestParameters.oAuthSourcePropertyMappingRequest === undefined) {
2712
+ throw new runtime.RequiredError('oAuthSourcePropertyMappingRequest', 'Required parameter requestParameters.oAuthSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceOauthCreate.');
2713
+ }
2714
+ const queryParameters = {};
2715
+ const headerParameters = {};
2716
+ headerParameters['Content-Type'] = 'application/json';
2717
+ if (this.configuration && this.configuration.accessToken) {
2718
+ const token = this.configuration.accessToken;
2719
+ const tokenString = yield token("authentik", []);
2720
+ if (tokenString) {
2721
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2722
+ }
2723
+ }
2724
+ const response = yield this.request({
2725
+ path: `/propertymappings/source/oauth/`,
2726
+ method: 'POST',
2727
+ headers: headerParameters,
2728
+ query: queryParameters,
2729
+ body: (0, models_1.OAuthSourcePropertyMappingRequestToJSON)(requestParameters.oAuthSourcePropertyMappingRequest),
2730
+ }, initOverrides);
2731
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OAuthSourcePropertyMappingFromJSON)(jsonValue));
2732
+ });
2733
+ }
2734
+ /**
2735
+ * OAuthSourcePropertyMapping Viewset
2736
+ */
2737
+ propertymappingsSourceOauthCreate(requestParameters, initOverrides) {
2738
+ return __awaiter(this, void 0, void 0, function* () {
2739
+ const response = yield this.propertymappingsSourceOauthCreateRaw(requestParameters, initOverrides);
2740
+ return yield response.value();
2741
+ });
2742
+ }
2743
+ /**
2744
+ * OAuthSourcePropertyMapping Viewset
2745
+ */
2746
+ propertymappingsSourceOauthDestroyRaw(requestParameters, initOverrides) {
2747
+ return __awaiter(this, void 0, void 0, function* () {
2748
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
2749
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthDestroy.');
2750
+ }
2751
+ const queryParameters = {};
2752
+ const headerParameters = {};
2753
+ if (this.configuration && this.configuration.accessToken) {
2754
+ const token = this.configuration.accessToken;
2755
+ const tokenString = yield token("authentik", []);
2756
+ if (tokenString) {
2757
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2758
+ }
2759
+ }
2760
+ const response = yield this.request({
2761
+ path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2762
+ method: 'DELETE',
2763
+ headers: headerParameters,
2764
+ query: queryParameters,
2765
+ }, initOverrides);
2766
+ return new runtime.VoidApiResponse(response);
2767
+ });
2768
+ }
2769
+ /**
2770
+ * OAuthSourcePropertyMapping Viewset
2771
+ */
2772
+ propertymappingsSourceOauthDestroy(requestParameters, initOverrides) {
2773
+ return __awaiter(this, void 0, void 0, function* () {
2774
+ yield this.propertymappingsSourceOauthDestroyRaw(requestParameters, initOverrides);
2775
+ });
2776
+ }
2777
+ /**
2778
+ * OAuthSourcePropertyMapping Viewset
2779
+ */
2780
+ propertymappingsSourceOauthListRaw(requestParameters, initOverrides) {
2781
+ return __awaiter(this, void 0, void 0, function* () {
2782
+ const queryParameters = {};
2783
+ if (requestParameters.managed) {
2784
+ queryParameters['managed'] = requestParameters.managed;
2785
+ }
2786
+ if (requestParameters.managedIsnull !== undefined) {
2787
+ queryParameters['managed__isnull'] = requestParameters.managedIsnull;
2788
+ }
2789
+ if (requestParameters.name !== undefined) {
2790
+ queryParameters['name'] = requestParameters.name;
2791
+ }
2792
+ if (requestParameters.ordering !== undefined) {
2793
+ queryParameters['ordering'] = requestParameters.ordering;
2794
+ }
2795
+ if (requestParameters.page !== undefined) {
2796
+ queryParameters['page'] = requestParameters.page;
2797
+ }
2798
+ if (requestParameters.pageSize !== undefined) {
2799
+ queryParameters['page_size'] = requestParameters.pageSize;
2800
+ }
2801
+ if (requestParameters.search !== undefined) {
2802
+ queryParameters['search'] = requestParameters.search;
2803
+ }
2804
+ const headerParameters = {};
2805
+ if (this.configuration && this.configuration.accessToken) {
2806
+ const token = this.configuration.accessToken;
2807
+ const tokenString = yield token("authentik", []);
2808
+ if (tokenString) {
2809
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2810
+ }
2811
+ }
2812
+ const response = yield this.request({
2813
+ path: `/propertymappings/source/oauth/`,
2814
+ method: 'GET',
2815
+ headers: headerParameters,
2816
+ query: queryParameters,
2817
+ }, initOverrides);
2818
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedOAuthSourcePropertyMappingListFromJSON)(jsonValue));
2819
+ });
2820
+ }
2821
+ /**
2822
+ * OAuthSourcePropertyMapping Viewset
2823
+ */
2824
+ propertymappingsSourceOauthList(requestParameters = {}, initOverrides) {
2825
+ return __awaiter(this, void 0, void 0, function* () {
2826
+ const response = yield this.propertymappingsSourceOauthListRaw(requestParameters, initOverrides);
2827
+ return yield response.value();
2828
+ });
2829
+ }
2830
+ /**
2831
+ * OAuthSourcePropertyMapping Viewset
2832
+ */
2833
+ propertymappingsSourceOauthPartialUpdateRaw(requestParameters, initOverrides) {
2834
+ return __awaiter(this, void 0, void 0, function* () {
2835
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
2836
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthPartialUpdate.');
2837
+ }
2838
+ const queryParameters = {};
2839
+ const headerParameters = {};
2840
+ headerParameters['Content-Type'] = 'application/json';
2841
+ if (this.configuration && this.configuration.accessToken) {
2842
+ const token = this.configuration.accessToken;
2843
+ const tokenString = yield token("authentik", []);
2844
+ if (tokenString) {
2845
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2846
+ }
2847
+ }
2848
+ const response = yield this.request({
2849
+ path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2850
+ method: 'PATCH',
2851
+ headers: headerParameters,
2852
+ query: queryParameters,
2853
+ body: (0, models_1.PatchedOAuthSourcePropertyMappingRequestToJSON)(requestParameters.patchedOAuthSourcePropertyMappingRequest),
2854
+ }, initOverrides);
2855
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OAuthSourcePropertyMappingFromJSON)(jsonValue));
2856
+ });
2857
+ }
2858
+ /**
2859
+ * OAuthSourcePropertyMapping Viewset
2860
+ */
2861
+ propertymappingsSourceOauthPartialUpdate(requestParameters, initOverrides) {
2862
+ return __awaiter(this, void 0, void 0, function* () {
2863
+ const response = yield this.propertymappingsSourceOauthPartialUpdateRaw(requestParameters, initOverrides);
2864
+ return yield response.value();
2865
+ });
2866
+ }
2867
+ /**
2868
+ * OAuthSourcePropertyMapping Viewset
2869
+ */
2870
+ propertymappingsSourceOauthRetrieveRaw(requestParameters, initOverrides) {
2871
+ return __awaiter(this, void 0, void 0, function* () {
2872
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
2873
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthRetrieve.');
2874
+ }
2875
+ const queryParameters = {};
2876
+ const headerParameters = {};
2877
+ if (this.configuration && this.configuration.accessToken) {
2878
+ const token = this.configuration.accessToken;
2879
+ const tokenString = yield token("authentik", []);
2880
+ if (tokenString) {
2881
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2882
+ }
2883
+ }
2884
+ const response = yield this.request({
2885
+ path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2886
+ method: 'GET',
2887
+ headers: headerParameters,
2888
+ query: queryParameters,
2889
+ }, initOverrides);
2890
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OAuthSourcePropertyMappingFromJSON)(jsonValue));
2891
+ });
2892
+ }
2893
+ /**
2894
+ * OAuthSourcePropertyMapping Viewset
2895
+ */
2896
+ propertymappingsSourceOauthRetrieve(requestParameters, initOverrides) {
2897
+ return __awaiter(this, void 0, void 0, function* () {
2898
+ const response = yield this.propertymappingsSourceOauthRetrieveRaw(requestParameters, initOverrides);
2899
+ return yield response.value();
2900
+ });
2901
+ }
2902
+ /**
2903
+ * OAuthSourcePropertyMapping Viewset
2904
+ */
2905
+ propertymappingsSourceOauthUpdateRaw(requestParameters, initOverrides) {
2906
+ return __awaiter(this, void 0, void 0, function* () {
2907
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
2908
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthUpdate.');
2909
+ }
2910
+ if (requestParameters.oAuthSourcePropertyMappingRequest === null || requestParameters.oAuthSourcePropertyMappingRequest === undefined) {
2911
+ throw new runtime.RequiredError('oAuthSourcePropertyMappingRequest', 'Required parameter requestParameters.oAuthSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceOauthUpdate.');
2912
+ }
2913
+ const queryParameters = {};
2914
+ const headerParameters = {};
2915
+ headerParameters['Content-Type'] = 'application/json';
2916
+ if (this.configuration && this.configuration.accessToken) {
2917
+ const token = this.configuration.accessToken;
2918
+ const tokenString = yield token("authentik", []);
2919
+ if (tokenString) {
2920
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2921
+ }
2922
+ }
2923
+ const response = yield this.request({
2924
+ path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2925
+ method: 'PUT',
2926
+ headers: headerParameters,
2927
+ query: queryParameters,
2928
+ body: (0, models_1.OAuthSourcePropertyMappingRequestToJSON)(requestParameters.oAuthSourcePropertyMappingRequest),
2929
+ }, initOverrides);
2930
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OAuthSourcePropertyMappingFromJSON)(jsonValue));
2931
+ });
2932
+ }
2933
+ /**
2934
+ * OAuthSourcePropertyMapping Viewset
2935
+ */
2936
+ propertymappingsSourceOauthUpdate(requestParameters, initOverrides) {
2937
+ return __awaiter(this, void 0, void 0, function* () {
2938
+ const response = yield this.propertymappingsSourceOauthUpdateRaw(requestParameters, initOverrides);
2939
+ return yield response.value();
2940
+ });
2941
+ }
2942
+ /**
2943
+ * Get a list of all objects that use this object
2944
+ */
2945
+ propertymappingsSourceOauthUsedByListRaw(requestParameters, initOverrides) {
2946
+ return __awaiter(this, void 0, void 0, function* () {
2947
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
2948
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthUsedByList.');
2949
+ }
2950
+ const queryParameters = {};
2951
+ const headerParameters = {};
2952
+ if (this.configuration && this.configuration.accessToken) {
2953
+ const token = this.configuration.accessToken;
2954
+ const tokenString = yield token("authentik", []);
2955
+ if (tokenString) {
2956
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2957
+ }
2958
+ }
2959
+ const response = yield this.request({
2960
+ path: `/propertymappings/source/oauth/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2961
+ method: 'GET',
2962
+ headers: headerParameters,
2963
+ query: queryParameters,
2964
+ }, initOverrides);
2965
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
2966
+ });
2967
+ }
2968
+ /**
2969
+ * Get a list of all objects that use this object
2970
+ */
2971
+ propertymappingsSourceOauthUsedByList(requestParameters, initOverrides) {
2972
+ return __awaiter(this, void 0, void 0, function* () {
2973
+ const response = yield this.propertymappingsSourceOauthUsedByListRaw(requestParameters, initOverrides);
2974
+ return yield response.value();
2975
+ });
2976
+ }
2977
+ /**
2978
+ * SAMLSourcePropertyMapping Viewset
2979
+ */
2980
+ propertymappingsSourceSamlCreateRaw(requestParameters, initOverrides) {
2981
+ return __awaiter(this, void 0, void 0, function* () {
2982
+ if (requestParameters.sAMLSourcePropertyMappingRequest === null || requestParameters.sAMLSourcePropertyMappingRequest === undefined) {
2983
+ throw new runtime.RequiredError('sAMLSourcePropertyMappingRequest', 'Required parameter requestParameters.sAMLSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceSamlCreate.');
2984
+ }
2985
+ const queryParameters = {};
2986
+ const headerParameters = {};
2987
+ headerParameters['Content-Type'] = 'application/json';
2988
+ if (this.configuration && this.configuration.accessToken) {
2989
+ const token = this.configuration.accessToken;
2990
+ const tokenString = yield token("authentik", []);
2991
+ if (tokenString) {
2992
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2993
+ }
2994
+ }
2995
+ const response = yield this.request({
2996
+ path: `/propertymappings/source/saml/`,
2997
+ method: 'POST',
2998
+ headers: headerParameters,
2999
+ query: queryParameters,
3000
+ body: (0, models_1.SAMLSourcePropertyMappingRequestToJSON)(requestParameters.sAMLSourcePropertyMappingRequest),
3001
+ }, initOverrides);
3002
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SAMLSourcePropertyMappingFromJSON)(jsonValue));
3003
+ });
3004
+ }
3005
+ /**
3006
+ * SAMLSourcePropertyMapping Viewset
3007
+ */
3008
+ propertymappingsSourceSamlCreate(requestParameters, initOverrides) {
3009
+ return __awaiter(this, void 0, void 0, function* () {
3010
+ const response = yield this.propertymappingsSourceSamlCreateRaw(requestParameters, initOverrides);
3011
+ return yield response.value();
3012
+ });
3013
+ }
3014
+ /**
3015
+ * SAMLSourcePropertyMapping Viewset
3016
+ */
3017
+ propertymappingsSourceSamlDestroyRaw(requestParameters, initOverrides) {
3018
+ return __awaiter(this, void 0, void 0, function* () {
3019
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
3020
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlDestroy.');
3021
+ }
3022
+ const queryParameters = {};
3023
+ const headerParameters = {};
3024
+ if (this.configuration && this.configuration.accessToken) {
3025
+ const token = this.configuration.accessToken;
3026
+ const tokenString = yield token("authentik", []);
3027
+ if (tokenString) {
3028
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3029
+ }
3030
+ }
3031
+ const response = yield this.request({
3032
+ path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
3033
+ method: 'DELETE',
3034
+ headers: headerParameters,
3035
+ query: queryParameters,
3036
+ }, initOverrides);
3037
+ return new runtime.VoidApiResponse(response);
3038
+ });
3039
+ }
3040
+ /**
3041
+ * SAMLSourcePropertyMapping Viewset
3042
+ */
3043
+ propertymappingsSourceSamlDestroy(requestParameters, initOverrides) {
3044
+ return __awaiter(this, void 0, void 0, function* () {
3045
+ yield this.propertymappingsSourceSamlDestroyRaw(requestParameters, initOverrides);
3046
+ });
3047
+ }
3048
+ /**
3049
+ * SAMLSourcePropertyMapping Viewset
3050
+ */
3051
+ propertymappingsSourceSamlListRaw(requestParameters, initOverrides) {
3052
+ return __awaiter(this, void 0, void 0, function* () {
3053
+ const queryParameters = {};
3054
+ if (requestParameters.managed) {
3055
+ queryParameters['managed'] = requestParameters.managed;
3056
+ }
3057
+ if (requestParameters.managedIsnull !== undefined) {
3058
+ queryParameters['managed__isnull'] = requestParameters.managedIsnull;
3059
+ }
3060
+ if (requestParameters.name !== undefined) {
3061
+ queryParameters['name'] = requestParameters.name;
3062
+ }
3063
+ if (requestParameters.ordering !== undefined) {
3064
+ queryParameters['ordering'] = requestParameters.ordering;
3065
+ }
3066
+ if (requestParameters.page !== undefined) {
3067
+ queryParameters['page'] = requestParameters.page;
3068
+ }
3069
+ if (requestParameters.pageSize !== undefined) {
3070
+ queryParameters['page_size'] = requestParameters.pageSize;
3071
+ }
3072
+ if (requestParameters.search !== undefined) {
3073
+ queryParameters['search'] = requestParameters.search;
3074
+ }
3075
+ const headerParameters = {};
3076
+ if (this.configuration && this.configuration.accessToken) {
3077
+ const token = this.configuration.accessToken;
3078
+ const tokenString = yield token("authentik", []);
3079
+ if (tokenString) {
3080
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3081
+ }
3082
+ }
3083
+ const response = yield this.request({
3084
+ path: `/propertymappings/source/saml/`,
3085
+ method: 'GET',
3086
+ headers: headerParameters,
3087
+ query: queryParameters,
3088
+ }, initOverrides);
3089
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedSAMLSourcePropertyMappingListFromJSON)(jsonValue));
3090
+ });
3091
+ }
3092
+ /**
3093
+ * SAMLSourcePropertyMapping Viewset
3094
+ */
3095
+ propertymappingsSourceSamlList(requestParameters = {}, initOverrides) {
3096
+ return __awaiter(this, void 0, void 0, function* () {
3097
+ const response = yield this.propertymappingsSourceSamlListRaw(requestParameters, initOverrides);
3098
+ return yield response.value();
3099
+ });
3100
+ }
3101
+ /**
3102
+ * SAMLSourcePropertyMapping Viewset
3103
+ */
3104
+ propertymappingsSourceSamlPartialUpdateRaw(requestParameters, initOverrides) {
3105
+ return __awaiter(this, void 0, void 0, function* () {
3106
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
3107
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlPartialUpdate.');
3108
+ }
3109
+ const queryParameters = {};
3110
+ const headerParameters = {};
3111
+ headerParameters['Content-Type'] = 'application/json';
3112
+ if (this.configuration && this.configuration.accessToken) {
3113
+ const token = this.configuration.accessToken;
3114
+ const tokenString = yield token("authentik", []);
3115
+ if (tokenString) {
3116
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3117
+ }
3118
+ }
3119
+ const response = yield this.request({
3120
+ path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
3121
+ method: 'PATCH',
3122
+ headers: headerParameters,
3123
+ query: queryParameters,
3124
+ body: (0, models_1.PatchedSAMLSourcePropertyMappingRequestToJSON)(requestParameters.patchedSAMLSourcePropertyMappingRequest),
3125
+ }, initOverrides);
3126
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SAMLSourcePropertyMappingFromJSON)(jsonValue));
3127
+ });
3128
+ }
3129
+ /**
3130
+ * SAMLSourcePropertyMapping Viewset
3131
+ */
3132
+ propertymappingsSourceSamlPartialUpdate(requestParameters, initOverrides) {
3133
+ return __awaiter(this, void 0, void 0, function* () {
3134
+ const response = yield this.propertymappingsSourceSamlPartialUpdateRaw(requestParameters, initOverrides);
3135
+ return yield response.value();
3136
+ });
3137
+ }
3138
+ /**
3139
+ * SAMLSourcePropertyMapping Viewset
3140
+ */
3141
+ propertymappingsSourceSamlRetrieveRaw(requestParameters, initOverrides) {
3142
+ return __awaiter(this, void 0, void 0, function* () {
3143
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
3144
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlRetrieve.');
3145
+ }
3146
+ const queryParameters = {};
3147
+ const headerParameters = {};
3148
+ if (this.configuration && this.configuration.accessToken) {
3149
+ const token = this.configuration.accessToken;
3150
+ const tokenString = yield token("authentik", []);
3151
+ if (tokenString) {
3152
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3153
+ }
3154
+ }
3155
+ const response = yield this.request({
3156
+ path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
3157
+ method: 'GET',
3158
+ headers: headerParameters,
3159
+ query: queryParameters,
3160
+ }, initOverrides);
3161
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SAMLSourcePropertyMappingFromJSON)(jsonValue));
3162
+ });
3163
+ }
3164
+ /**
3165
+ * SAMLSourcePropertyMapping Viewset
3166
+ */
3167
+ propertymappingsSourceSamlRetrieve(requestParameters, initOverrides) {
3168
+ return __awaiter(this, void 0, void 0, function* () {
3169
+ const response = yield this.propertymappingsSourceSamlRetrieveRaw(requestParameters, initOverrides);
3170
+ return yield response.value();
3171
+ });
3172
+ }
3173
+ /**
3174
+ * SAMLSourcePropertyMapping Viewset
3175
+ */
3176
+ propertymappingsSourceSamlUpdateRaw(requestParameters, initOverrides) {
3177
+ return __awaiter(this, void 0, void 0, function* () {
3178
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
3179
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlUpdate.');
3180
+ }
3181
+ if (requestParameters.sAMLSourcePropertyMappingRequest === null || requestParameters.sAMLSourcePropertyMappingRequest === undefined) {
3182
+ throw new runtime.RequiredError('sAMLSourcePropertyMappingRequest', 'Required parameter requestParameters.sAMLSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceSamlUpdate.');
3183
+ }
3184
+ const queryParameters = {};
3185
+ const headerParameters = {};
3186
+ headerParameters['Content-Type'] = 'application/json';
3187
+ if (this.configuration && this.configuration.accessToken) {
3188
+ const token = this.configuration.accessToken;
3189
+ const tokenString = yield token("authentik", []);
3190
+ if (tokenString) {
3191
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3192
+ }
3193
+ }
3194
+ const response = yield this.request({
3195
+ path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
3196
+ method: 'PUT',
3197
+ headers: headerParameters,
3198
+ query: queryParameters,
3199
+ body: (0, models_1.SAMLSourcePropertyMappingRequestToJSON)(requestParameters.sAMLSourcePropertyMappingRequest),
3200
+ }, initOverrides);
3201
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SAMLSourcePropertyMappingFromJSON)(jsonValue));
3202
+ });
3203
+ }
3204
+ /**
3205
+ * SAMLSourcePropertyMapping Viewset
3206
+ */
3207
+ propertymappingsSourceSamlUpdate(requestParameters, initOverrides) {
3208
+ return __awaiter(this, void 0, void 0, function* () {
3209
+ const response = yield this.propertymappingsSourceSamlUpdateRaw(requestParameters, initOverrides);
3210
+ return yield response.value();
3211
+ });
3212
+ }
3213
+ /**
3214
+ * Get a list of all objects that use this object
3215
+ */
3216
+ propertymappingsSourceSamlUsedByListRaw(requestParameters, initOverrides) {
3217
+ return __awaiter(this, void 0, void 0, function* () {
3218
+ if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
3219
+ throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlUsedByList.');
3220
+ }
3221
+ const queryParameters = {};
3222
+ const headerParameters = {};
3223
+ if (this.configuration && this.configuration.accessToken) {
3224
+ const token = this.configuration.accessToken;
3225
+ const tokenString = yield token("authentik", []);
3226
+ if (tokenString) {
3227
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3228
+ }
3229
+ }
3230
+ const response = yield this.request({
3231
+ path: `/propertymappings/source/saml/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
3232
+ method: 'GET',
3233
+ headers: headerParameters,
3234
+ query: queryParameters,
3235
+ }, initOverrides);
3236
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
3237
+ });
3238
+ }
3239
+ /**
3240
+ * Get a list of all objects that use this object
3241
+ */
3242
+ propertymappingsSourceSamlUsedByList(requestParameters, initOverrides) {
3243
+ return __awaiter(this, void 0, void 0, function* () {
3244
+ const response = yield this.propertymappingsSourceSamlUsedByListRaw(requestParameters, initOverrides);
3245
+ return yield response.value();
3246
+ });
3247
+ }
2706
3248
  /**
2707
3249
  * SCIMSourcePropertyMapping Viewset
2708
3250
  */
@@ -381,11 +381,15 @@ export declare const RbacPermissionsAssignedByRolesListModelEnum: {
381
381
  readonly RbacRole: "authentik_rbac.role";
382
382
  readonly SourcesLdapLdapsource: "authentik_sources_ldap.ldapsource";
383
383
  readonly SourcesLdapLdapsourcepropertymapping: "authentik_sources_ldap.ldapsourcepropertymapping";
384
+ readonly SourcesOauthGroupoauthsourceconnection: "authentik_sources_oauth.groupoauthsourceconnection";
384
385
  readonly SourcesOauthOauthsource: "authentik_sources_oauth.oauthsource";
386
+ readonly SourcesOauthOauthsourcepropertymapping: "authentik_sources_oauth.oauthsourcepropertymapping";
385
387
  readonly SourcesOauthUseroauthsourceconnection: "authentik_sources_oauth.useroauthsourceconnection";
386
388
  readonly SourcesPlexPlexsource: "authentik_sources_plex.plexsource";
387
389
  readonly SourcesPlexPlexsourceconnection: "authentik_sources_plex.plexsourceconnection";
390
+ readonly SourcesSamlGroupsamlsourceconnection: "authentik_sources_saml.groupsamlsourceconnection";
388
391
  readonly SourcesSamlSamlsource: "authentik_sources_saml.samlsource";
392
+ readonly SourcesSamlSamlsourcepropertymapping: "authentik_sources_saml.samlsourcepropertymapping";
389
393
  readonly SourcesSamlUsersamlsourceconnection: "authentik_sources_saml.usersamlsourceconnection";
390
394
  readonly SourcesScimScimsource: "authentik_sources_scim.scimsource";
391
395
  readonly SourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
@@ -471,11 +475,15 @@ export declare const RbacPermissionsAssignedByUsersListModelEnum: {
471
475
  readonly RbacRole: "authentik_rbac.role";
472
476
  readonly SourcesLdapLdapsource: "authentik_sources_ldap.ldapsource";
473
477
  readonly SourcesLdapLdapsourcepropertymapping: "authentik_sources_ldap.ldapsourcepropertymapping";
478
+ readonly SourcesOauthGroupoauthsourceconnection: "authentik_sources_oauth.groupoauthsourceconnection";
474
479
  readonly SourcesOauthOauthsource: "authentik_sources_oauth.oauthsource";
480
+ readonly SourcesOauthOauthsourcepropertymapping: "authentik_sources_oauth.oauthsourcepropertymapping";
475
481
  readonly SourcesOauthUseroauthsourceconnection: "authentik_sources_oauth.useroauthsourceconnection";
476
482
  readonly SourcesPlexPlexsource: "authentik_sources_plex.plexsource";
477
483
  readonly SourcesPlexPlexsourceconnection: "authentik_sources_plex.plexsourceconnection";
484
+ readonly SourcesSamlGroupsamlsourceconnection: "authentik_sources_saml.groupsamlsourceconnection";
478
485
  readonly SourcesSamlSamlsource: "authentik_sources_saml.samlsource";
486
+ readonly SourcesSamlSamlsourcepropertymapping: "authentik_sources_saml.samlsourcepropertymapping";
479
487
  readonly SourcesSamlUsersamlsourceconnection: "authentik_sources_saml.usersamlsourceconnection";
480
488
  readonly SourcesScimScimsource: "authentik_sources_scim.scimsource";
481
489
  readonly SourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
@@ -1084,11 +1084,15 @@ exports.RbacPermissionsAssignedByRolesListModelEnum = {
1084
1084
  RbacRole: 'authentik_rbac.role',
1085
1085
  SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
1086
1086
  SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
1087
+ SourcesOauthGroupoauthsourceconnection: 'authentik_sources_oauth.groupoauthsourceconnection',
1087
1088
  SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
1089
+ SourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
1088
1090
  SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
1089
1091
  SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
1090
1092
  SourcesPlexPlexsourceconnection: 'authentik_sources_plex.plexsourceconnection',
1093
+ SourcesSamlGroupsamlsourceconnection: 'authentik_sources_saml.groupsamlsourceconnection',
1091
1094
  SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
1095
+ SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
1092
1096
  SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
1093
1097
  SourcesScimScimsource: 'authentik_sources_scim.scimsource',
1094
1098
  SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
@@ -1173,11 +1177,15 @@ exports.RbacPermissionsAssignedByUsersListModelEnum = {
1173
1177
  RbacRole: 'authentik_rbac.role',
1174
1178
  SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
1175
1179
  SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
1180
+ SourcesOauthGroupoauthsourceconnection: 'authentik_sources_oauth.groupoauthsourceconnection',
1176
1181
  SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
1182
+ SourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
1177
1183
  SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
1178
1184
  SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
1179
1185
  SourcesPlexPlexsourceconnection: 'authentik_sources_plex.plexsourceconnection',
1186
+ SourcesSamlGroupsamlsourceconnection: 'authentik_sources_saml.groupsamlsourceconnection',
1180
1187
  SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
1188
+ SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
1181
1189
  SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
1182
1190
  SourcesScimScimsource: 'authentik_sources_scim.scimsource',
1183
1191
  SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',