@goauthentik/api 2024.6.1-1721916595 → 2024.6.1-1721927330
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +5 -0
- package/dist/apis/OutpostsApi.d.ts +7 -28
- package/dist/apis/OutpostsApi.js +11 -78
- package/dist/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/apis/PropertymappingsApi.js +274 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/esm/apis/OutpostsApi.d.ts +7 -28
- package/dist/esm/apis/OutpostsApi.js +12 -79
- package/dist/esm/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/esm/apis/PropertymappingsApi.js +275 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.js +47 -0
- package/dist/esm/models/RadiusCheckAccess.d.ts +38 -0
- package/dist/esm/models/RadiusCheckAccess.js +47 -0
- package/dist/esm/models/RadiusProviderPropertyMapping.d.ts +73 -0
- package/dist/esm/models/RadiusProviderPropertyMapping.js +59 -0
- package/dist/esm/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/RadiusProviderPropertyMappingRequest.js +49 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.js +55 -0
- package/dist/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedRadiusProviderPropertyMappingRequest.js +54 -0
- package/dist/models/RadiusCheckAccess.d.ts +38 -0
- package/dist/models/RadiusCheckAccess.js +54 -0
- package/dist/models/RadiusProviderPropertyMapping.d.ts +73 -0
- package/dist/models/RadiusProviderPropertyMapping.js +66 -0
- package/dist/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/models/RadiusProviderPropertyMappingRequest.js +56 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/OutpostsApi.ts +17 -102
- package/src/apis/PropertymappingsApi.ts +355 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedRadiusProviderPropertyMappingList.ts +88 -0
- package/src/models/PatchedRadiusProviderPropertyMappingRequest.ts +81 -0
- package/src/models/RadiusCheckAccess.ts +81 -0
- package/src/models/RadiusProviderPropertyMapping.ts +123 -0
- package/src/models/RadiusProviderPropertyMappingRequest.ts +83 -0
- package/src/models/index.ts +5 -0
package/src/apis/OutpostsApi.ts
CHANGED
@@ -20,7 +20,6 @@ import type {
|
|
20
20
|
GenericError,
|
21
21
|
KubernetesServiceConnection,
|
22
22
|
KubernetesServiceConnectionRequest,
|
23
|
-
LDAPOutpostConfig,
|
24
23
|
Outpost,
|
25
24
|
OutpostDefaultConfig,
|
26
25
|
OutpostHealth,
|
@@ -35,8 +34,7 @@ import type {
|
|
35
34
|
PatchedDockerServiceConnectionRequest,
|
36
35
|
PatchedKubernetesServiceConnectionRequest,
|
37
36
|
PatchedOutpostRequest,
|
38
|
-
|
39
|
-
RadiusOutpostConfig,
|
37
|
+
RadiusCheckAccess,
|
40
38
|
ServiceConnection,
|
41
39
|
ServiceConnectionState,
|
42
40
|
TypeCreate,
|
@@ -54,8 +52,6 @@ import {
|
|
54
52
|
KubernetesServiceConnectionToJSON,
|
55
53
|
KubernetesServiceConnectionRequestFromJSON,
|
56
54
|
KubernetesServiceConnectionRequestToJSON,
|
57
|
-
LDAPOutpostConfigFromJSON,
|
58
|
-
LDAPOutpostConfigToJSON,
|
59
55
|
OutpostFromJSON,
|
60
56
|
OutpostToJSON,
|
61
57
|
OutpostDefaultConfigFromJSON,
|
@@ -84,10 +80,8 @@ import {
|
|
84
80
|
PatchedKubernetesServiceConnectionRequestToJSON,
|
85
81
|
PatchedOutpostRequestFromJSON,
|
86
82
|
PatchedOutpostRequestToJSON,
|
87
|
-
|
88
|
-
|
89
|
-
RadiusOutpostConfigFromJSON,
|
90
|
-
RadiusOutpostConfigToJSON,
|
83
|
+
RadiusCheckAccessFromJSON,
|
84
|
+
RadiusCheckAccessToJSON,
|
91
85
|
ServiceConnectionFromJSON,
|
92
86
|
ServiceConnectionToJSON,
|
93
87
|
ServiceConnectionStateFromJSON,
|
@@ -163,10 +157,6 @@ export interface OutpostsLdapListRequest {
|
|
163
157
|
search?: string;
|
164
158
|
}
|
165
159
|
|
166
|
-
export interface OutpostsLdapRetrieveRequest {
|
167
|
-
id: number;
|
168
|
-
}
|
169
|
-
|
170
160
|
export interface OutpostsProxyListRequest {
|
171
161
|
name?: string;
|
172
162
|
ordering?: string;
|
@@ -175,8 +165,9 @@ export interface OutpostsProxyListRequest {
|
|
175
165
|
search?: string;
|
176
166
|
}
|
177
167
|
|
178
|
-
export interface
|
168
|
+
export interface OutpostsRadiusCheckAccessRetrieveRequest {
|
179
169
|
id: number;
|
170
|
+
appSlug?: string;
|
180
171
|
}
|
181
172
|
|
182
173
|
export interface OutpostsRadiusListRequest {
|
@@ -187,10 +178,6 @@ export interface OutpostsRadiusListRequest {
|
|
187
178
|
search?: string;
|
188
179
|
}
|
189
180
|
|
190
|
-
export interface OutpostsRadiusRetrieveRequest {
|
191
|
-
id: number;
|
192
|
-
}
|
193
|
-
|
194
181
|
export interface OutpostsServiceConnectionsAllDestroyRequest {
|
195
182
|
uuid: string;
|
196
183
|
}
|
@@ -781,44 +768,6 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
781
768
|
return await response.value();
|
782
769
|
}
|
783
770
|
|
784
|
-
/**
|
785
|
-
* LDAPProvider Viewset
|
786
|
-
*/
|
787
|
-
async outpostsLdapRetrieveRaw(requestParameters: OutpostsLdapRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LDAPOutpostConfig>> {
|
788
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
789
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling outpostsLdapRetrieve.');
|
790
|
-
}
|
791
|
-
|
792
|
-
const queryParameters: any = {};
|
793
|
-
|
794
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
795
|
-
|
796
|
-
if (this.configuration && this.configuration.accessToken) {
|
797
|
-
const token = this.configuration.accessToken;
|
798
|
-
const tokenString = await token("authentik", []);
|
799
|
-
|
800
|
-
if (tokenString) {
|
801
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
802
|
-
}
|
803
|
-
}
|
804
|
-
const response = await this.request({
|
805
|
-
path: `/outposts/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
806
|
-
method: 'GET',
|
807
|
-
headers: headerParameters,
|
808
|
-
query: queryParameters,
|
809
|
-
}, initOverrides);
|
810
|
-
|
811
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => LDAPOutpostConfigFromJSON(jsonValue));
|
812
|
-
}
|
813
|
-
|
814
|
-
/**
|
815
|
-
* LDAPProvider Viewset
|
816
|
-
*/
|
817
|
-
async outpostsLdapRetrieve(requestParameters: OutpostsLdapRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LDAPOutpostConfig> {
|
818
|
-
const response = await this.outpostsLdapRetrieveRaw(requestParameters, initOverrides);
|
819
|
-
return await response.value();
|
820
|
-
}
|
821
|
-
|
822
771
|
/**
|
823
772
|
* ProxyProvider Viewset
|
824
773
|
*/
|
@@ -874,15 +823,19 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
874
823
|
}
|
875
824
|
|
876
825
|
/**
|
877
|
-
*
|
826
|
+
* Check access to a single application by slug
|
878
827
|
*/
|
879
|
-
async
|
828
|
+
async outpostsRadiusCheckAccessRetrieveRaw(requestParameters: OutpostsRadiusCheckAccessRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusCheckAccess>> {
|
880
829
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
881
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling
|
830
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling outpostsRadiusCheckAccessRetrieve.');
|
882
831
|
}
|
883
832
|
|
884
833
|
const queryParameters: any = {};
|
885
834
|
|
835
|
+
if (requestParameters.appSlug !== undefined) {
|
836
|
+
queryParameters['app_slug'] = requestParameters.appSlug;
|
837
|
+
}
|
838
|
+
|
886
839
|
const headerParameters: runtime.HTTPHeaders = {};
|
887
840
|
|
888
841
|
if (this.configuration && this.configuration.accessToken) {
|
@@ -894,20 +847,20 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
894
847
|
}
|
895
848
|
}
|
896
849
|
const response = await this.request({
|
897
|
-
path: `/outposts/
|
850
|
+
path: `/outposts/radius/{id}/check_access/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
898
851
|
method: 'GET',
|
899
852
|
headers: headerParameters,
|
900
853
|
query: queryParameters,
|
901
854
|
}, initOverrides);
|
902
855
|
|
903
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
856
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusCheckAccessFromJSON(jsonValue));
|
904
857
|
}
|
905
858
|
|
906
859
|
/**
|
907
|
-
*
|
860
|
+
* Check access to a single application by slug
|
908
861
|
*/
|
909
|
-
async
|
910
|
-
const response = await this.
|
862
|
+
async outpostsRadiusCheckAccessRetrieve(requestParameters: OutpostsRadiusCheckAccessRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusCheckAccess> {
|
863
|
+
const response = await this.outpostsRadiusCheckAccessRetrieveRaw(requestParameters, initOverrides);
|
911
864
|
return await response.value();
|
912
865
|
}
|
913
866
|
|
@@ -965,44 +918,6 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
965
918
|
return await response.value();
|
966
919
|
}
|
967
920
|
|
968
|
-
/**
|
969
|
-
* RadiusProvider Viewset
|
970
|
-
*/
|
971
|
-
async outpostsRadiusRetrieveRaw(requestParameters: OutpostsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusOutpostConfig>> {
|
972
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
973
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling outpostsRadiusRetrieve.');
|
974
|
-
}
|
975
|
-
|
976
|
-
const queryParameters: any = {};
|
977
|
-
|
978
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
979
|
-
|
980
|
-
if (this.configuration && this.configuration.accessToken) {
|
981
|
-
const token = this.configuration.accessToken;
|
982
|
-
const tokenString = await token("authentik", []);
|
983
|
-
|
984
|
-
if (tokenString) {
|
985
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
986
|
-
}
|
987
|
-
}
|
988
|
-
const response = await this.request({
|
989
|
-
path: `/outposts/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
990
|
-
method: 'GET',
|
991
|
-
headers: headerParameters,
|
992
|
-
query: queryParameters,
|
993
|
-
}, initOverrides);
|
994
|
-
|
995
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusOutpostConfigFromJSON(jsonValue));
|
996
|
-
}
|
997
|
-
|
998
|
-
/**
|
999
|
-
* RadiusProvider Viewset
|
1000
|
-
*/
|
1001
|
-
async outpostsRadiusRetrieve(requestParameters: OutpostsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusOutpostConfig> {
|
1002
|
-
const response = await this.outpostsRadiusRetrieveRaw(requestParameters, initOverrides);
|
1003
|
-
return await response.value();
|
1004
|
-
}
|
1005
|
-
|
1006
921
|
/**
|
1007
922
|
* ServiceConnection Viewset
|
1008
923
|
*/
|
@@ -30,6 +30,7 @@ import type {
|
|
30
30
|
PaginatedNotificationWebhookMappingList,
|
31
31
|
PaginatedPropertyMappingList,
|
32
32
|
PaginatedRACPropertyMappingList,
|
33
|
+
PaginatedRadiusProviderPropertyMappingList,
|
33
34
|
PaginatedSAMLPropertyMappingList,
|
34
35
|
PaginatedSCIMMappingList,
|
35
36
|
PaginatedScopeMappingList,
|
@@ -38,6 +39,7 @@ import type {
|
|
38
39
|
PatchedMicrosoftEntraProviderMappingRequest,
|
39
40
|
PatchedNotificationWebhookMappingRequest,
|
40
41
|
PatchedRACPropertyMappingRequest,
|
42
|
+
PatchedRadiusProviderPropertyMappingRequest,
|
41
43
|
PatchedSAMLPropertyMappingRequest,
|
42
44
|
PatchedSCIMMappingRequest,
|
43
45
|
PatchedScopeMappingRequest,
|
@@ -46,6 +48,8 @@ import type {
|
|
46
48
|
PropertyMappingTestResult,
|
47
49
|
RACPropertyMapping,
|
48
50
|
RACPropertyMappingRequest,
|
51
|
+
RadiusProviderPropertyMapping,
|
52
|
+
RadiusProviderPropertyMappingRequest,
|
49
53
|
SAMLPropertyMapping,
|
50
54
|
SAMLPropertyMappingRequest,
|
51
55
|
SCIMMapping,
|
@@ -87,6 +91,8 @@ import {
|
|
87
91
|
PaginatedPropertyMappingListToJSON,
|
88
92
|
PaginatedRACPropertyMappingListFromJSON,
|
89
93
|
PaginatedRACPropertyMappingListToJSON,
|
94
|
+
PaginatedRadiusProviderPropertyMappingListFromJSON,
|
95
|
+
PaginatedRadiusProviderPropertyMappingListToJSON,
|
90
96
|
PaginatedSAMLPropertyMappingListFromJSON,
|
91
97
|
PaginatedSAMLPropertyMappingListToJSON,
|
92
98
|
PaginatedSCIMMappingListFromJSON,
|
@@ -103,6 +109,8 @@ import {
|
|
103
109
|
PatchedNotificationWebhookMappingRequestToJSON,
|
104
110
|
PatchedRACPropertyMappingRequestFromJSON,
|
105
111
|
PatchedRACPropertyMappingRequestToJSON,
|
112
|
+
PatchedRadiusProviderPropertyMappingRequestFromJSON,
|
113
|
+
PatchedRadiusProviderPropertyMappingRequestToJSON,
|
106
114
|
PatchedSAMLPropertyMappingRequestFromJSON,
|
107
115
|
PatchedSAMLPropertyMappingRequestToJSON,
|
108
116
|
PatchedSCIMMappingRequestFromJSON,
|
@@ -119,6 +127,10 @@ import {
|
|
119
127
|
RACPropertyMappingToJSON,
|
120
128
|
RACPropertyMappingRequestFromJSON,
|
121
129
|
RACPropertyMappingRequestToJSON,
|
130
|
+
RadiusProviderPropertyMappingFromJSON,
|
131
|
+
RadiusProviderPropertyMappingToJSON,
|
132
|
+
RadiusProviderPropertyMappingRequestFromJSON,
|
133
|
+
RadiusProviderPropertyMappingRequestToJSON,
|
122
134
|
SAMLPropertyMappingFromJSON,
|
123
135
|
SAMLPropertyMappingToJSON,
|
124
136
|
SAMLPropertyMappingRequestFromJSON,
|
@@ -308,6 +320,43 @@ export interface PropertymappingsRacUsedByListRequest {
|
|
308
320
|
pmUuid: string;
|
309
321
|
}
|
310
322
|
|
323
|
+
export interface PropertymappingsRadiusCreateRequest {
|
324
|
+
radiusProviderPropertyMappingRequest: RadiusProviderPropertyMappingRequest;
|
325
|
+
}
|
326
|
+
|
327
|
+
export interface PropertymappingsRadiusDestroyRequest {
|
328
|
+
pmUuid: string;
|
329
|
+
}
|
330
|
+
|
331
|
+
export interface PropertymappingsRadiusListRequest {
|
332
|
+
expression?: string;
|
333
|
+
managed?: Array<string>;
|
334
|
+
name?: string;
|
335
|
+
ordering?: string;
|
336
|
+
page?: number;
|
337
|
+
pageSize?: number;
|
338
|
+
pmUuid?: string;
|
339
|
+
search?: string;
|
340
|
+
}
|
341
|
+
|
342
|
+
export interface PropertymappingsRadiusPartialUpdateRequest {
|
343
|
+
pmUuid: string;
|
344
|
+
patchedRadiusProviderPropertyMappingRequest?: PatchedRadiusProviderPropertyMappingRequest;
|
345
|
+
}
|
346
|
+
|
347
|
+
export interface PropertymappingsRadiusRetrieveRequest {
|
348
|
+
pmUuid: string;
|
349
|
+
}
|
350
|
+
|
351
|
+
export interface PropertymappingsRadiusUpdateRequest {
|
352
|
+
pmUuid: string;
|
353
|
+
radiusProviderPropertyMappingRequest: RadiusProviderPropertyMappingRequest;
|
354
|
+
}
|
355
|
+
|
356
|
+
export interface PropertymappingsRadiusUsedByListRequest {
|
357
|
+
pmUuid: string;
|
358
|
+
}
|
359
|
+
|
311
360
|
export interface PropertymappingsSamlCreateRequest {
|
312
361
|
sAMLPropertyMappingRequest: SAMLPropertyMappingRequest;
|
313
362
|
}
|
@@ -1912,6 +1961,312 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
1912
1961
|
return await response.value();
|
1913
1962
|
}
|
1914
1963
|
|
1964
|
+
/**
|
1965
|
+
* RadiusProviderPropertyMapping Viewset
|
1966
|
+
*/
|
1967
|
+
async propertymappingsRadiusCreateRaw(requestParameters: PropertymappingsRadiusCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusProviderPropertyMapping>> {
|
1968
|
+
if (requestParameters.radiusProviderPropertyMappingRequest === null || requestParameters.radiusProviderPropertyMappingRequest === undefined) {
|
1969
|
+
throw new runtime.RequiredError('radiusProviderPropertyMappingRequest','Required parameter requestParameters.radiusProviderPropertyMappingRequest was null or undefined when calling propertymappingsRadiusCreate.');
|
1970
|
+
}
|
1971
|
+
|
1972
|
+
const queryParameters: any = {};
|
1973
|
+
|
1974
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
1975
|
+
|
1976
|
+
headerParameters['Content-Type'] = 'application/json';
|
1977
|
+
|
1978
|
+
if (this.configuration && this.configuration.accessToken) {
|
1979
|
+
const token = this.configuration.accessToken;
|
1980
|
+
const tokenString = await token("authentik", []);
|
1981
|
+
|
1982
|
+
if (tokenString) {
|
1983
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1984
|
+
}
|
1985
|
+
}
|
1986
|
+
const response = await this.request({
|
1987
|
+
path: `/propertymappings/radius/`,
|
1988
|
+
method: 'POST',
|
1989
|
+
headers: headerParameters,
|
1990
|
+
query: queryParameters,
|
1991
|
+
body: RadiusProviderPropertyMappingRequestToJSON(requestParameters.radiusProviderPropertyMappingRequest),
|
1992
|
+
}, initOverrides);
|
1993
|
+
|
1994
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusProviderPropertyMappingFromJSON(jsonValue));
|
1995
|
+
}
|
1996
|
+
|
1997
|
+
/**
|
1998
|
+
* RadiusProviderPropertyMapping Viewset
|
1999
|
+
*/
|
2000
|
+
async propertymappingsRadiusCreate(requestParameters: PropertymappingsRadiusCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusProviderPropertyMapping> {
|
2001
|
+
const response = await this.propertymappingsRadiusCreateRaw(requestParameters, initOverrides);
|
2002
|
+
return await response.value();
|
2003
|
+
}
|
2004
|
+
|
2005
|
+
/**
|
2006
|
+
* RadiusProviderPropertyMapping Viewset
|
2007
|
+
*/
|
2008
|
+
async propertymappingsRadiusDestroyRaw(requestParameters: PropertymappingsRadiusDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
2009
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2010
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusDestroy.');
|
2011
|
+
}
|
2012
|
+
|
2013
|
+
const queryParameters: any = {};
|
2014
|
+
|
2015
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
2016
|
+
|
2017
|
+
if (this.configuration && this.configuration.accessToken) {
|
2018
|
+
const token = this.configuration.accessToken;
|
2019
|
+
const tokenString = await token("authentik", []);
|
2020
|
+
|
2021
|
+
if (tokenString) {
|
2022
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2023
|
+
}
|
2024
|
+
}
|
2025
|
+
const response = await this.request({
|
2026
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2027
|
+
method: 'DELETE',
|
2028
|
+
headers: headerParameters,
|
2029
|
+
query: queryParameters,
|
2030
|
+
}, initOverrides);
|
2031
|
+
|
2032
|
+
return new runtime.VoidApiResponse(response);
|
2033
|
+
}
|
2034
|
+
|
2035
|
+
/**
|
2036
|
+
* RadiusProviderPropertyMapping Viewset
|
2037
|
+
*/
|
2038
|
+
async propertymappingsRadiusDestroy(requestParameters: PropertymappingsRadiusDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
2039
|
+
await this.propertymappingsRadiusDestroyRaw(requestParameters, initOverrides);
|
2040
|
+
}
|
2041
|
+
|
2042
|
+
/**
|
2043
|
+
* RadiusProviderPropertyMapping Viewset
|
2044
|
+
*/
|
2045
|
+
async propertymappingsRadiusListRaw(requestParameters: PropertymappingsRadiusListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRadiusProviderPropertyMappingList>> {
|
2046
|
+
const queryParameters: any = {};
|
2047
|
+
|
2048
|
+
if (requestParameters.expression !== undefined) {
|
2049
|
+
queryParameters['expression'] = requestParameters.expression;
|
2050
|
+
}
|
2051
|
+
|
2052
|
+
if (requestParameters.managed) {
|
2053
|
+
queryParameters['managed'] = requestParameters.managed;
|
2054
|
+
}
|
2055
|
+
|
2056
|
+
if (requestParameters.name !== undefined) {
|
2057
|
+
queryParameters['name'] = requestParameters.name;
|
2058
|
+
}
|
2059
|
+
|
2060
|
+
if (requestParameters.ordering !== undefined) {
|
2061
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
2062
|
+
}
|
2063
|
+
|
2064
|
+
if (requestParameters.page !== undefined) {
|
2065
|
+
queryParameters['page'] = requestParameters.page;
|
2066
|
+
}
|
2067
|
+
|
2068
|
+
if (requestParameters.pageSize !== undefined) {
|
2069
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
2070
|
+
}
|
2071
|
+
|
2072
|
+
if (requestParameters.pmUuid !== undefined) {
|
2073
|
+
queryParameters['pm_uuid'] = requestParameters.pmUuid;
|
2074
|
+
}
|
2075
|
+
|
2076
|
+
if (requestParameters.search !== undefined) {
|
2077
|
+
queryParameters['search'] = requestParameters.search;
|
2078
|
+
}
|
2079
|
+
|
2080
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
2081
|
+
|
2082
|
+
if (this.configuration && this.configuration.accessToken) {
|
2083
|
+
const token = this.configuration.accessToken;
|
2084
|
+
const tokenString = await token("authentik", []);
|
2085
|
+
|
2086
|
+
if (tokenString) {
|
2087
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2088
|
+
}
|
2089
|
+
}
|
2090
|
+
const response = await this.request({
|
2091
|
+
path: `/propertymappings/radius/`,
|
2092
|
+
method: 'GET',
|
2093
|
+
headers: headerParameters,
|
2094
|
+
query: queryParameters,
|
2095
|
+
}, initOverrides);
|
2096
|
+
|
2097
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRadiusProviderPropertyMappingListFromJSON(jsonValue));
|
2098
|
+
}
|
2099
|
+
|
2100
|
+
/**
|
2101
|
+
* RadiusProviderPropertyMapping Viewset
|
2102
|
+
*/
|
2103
|
+
async propertymappingsRadiusList(requestParameters: PropertymappingsRadiusListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRadiusProviderPropertyMappingList> {
|
2104
|
+
const response = await this.propertymappingsRadiusListRaw(requestParameters, initOverrides);
|
2105
|
+
return await response.value();
|
2106
|
+
}
|
2107
|
+
|
2108
|
+
/**
|
2109
|
+
* RadiusProviderPropertyMapping Viewset
|
2110
|
+
*/
|
2111
|
+
async propertymappingsRadiusPartialUpdateRaw(requestParameters: PropertymappingsRadiusPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusProviderPropertyMapping>> {
|
2112
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2113
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusPartialUpdate.');
|
2114
|
+
}
|
2115
|
+
|
2116
|
+
const queryParameters: any = {};
|
2117
|
+
|
2118
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
2119
|
+
|
2120
|
+
headerParameters['Content-Type'] = 'application/json';
|
2121
|
+
|
2122
|
+
if (this.configuration && this.configuration.accessToken) {
|
2123
|
+
const token = this.configuration.accessToken;
|
2124
|
+
const tokenString = await token("authentik", []);
|
2125
|
+
|
2126
|
+
if (tokenString) {
|
2127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2128
|
+
}
|
2129
|
+
}
|
2130
|
+
const response = await this.request({
|
2131
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2132
|
+
method: 'PATCH',
|
2133
|
+
headers: headerParameters,
|
2134
|
+
query: queryParameters,
|
2135
|
+
body: PatchedRadiusProviderPropertyMappingRequestToJSON(requestParameters.patchedRadiusProviderPropertyMappingRequest),
|
2136
|
+
}, initOverrides);
|
2137
|
+
|
2138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusProviderPropertyMappingFromJSON(jsonValue));
|
2139
|
+
}
|
2140
|
+
|
2141
|
+
/**
|
2142
|
+
* RadiusProviderPropertyMapping Viewset
|
2143
|
+
*/
|
2144
|
+
async propertymappingsRadiusPartialUpdate(requestParameters: PropertymappingsRadiusPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusProviderPropertyMapping> {
|
2145
|
+
const response = await this.propertymappingsRadiusPartialUpdateRaw(requestParameters, initOverrides);
|
2146
|
+
return await response.value();
|
2147
|
+
}
|
2148
|
+
|
2149
|
+
/**
|
2150
|
+
* RadiusProviderPropertyMapping Viewset
|
2151
|
+
*/
|
2152
|
+
async propertymappingsRadiusRetrieveRaw(requestParameters: PropertymappingsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusProviderPropertyMapping>> {
|
2153
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2154
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusRetrieve.');
|
2155
|
+
}
|
2156
|
+
|
2157
|
+
const queryParameters: any = {};
|
2158
|
+
|
2159
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
2160
|
+
|
2161
|
+
if (this.configuration && this.configuration.accessToken) {
|
2162
|
+
const token = this.configuration.accessToken;
|
2163
|
+
const tokenString = await token("authentik", []);
|
2164
|
+
|
2165
|
+
if (tokenString) {
|
2166
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2167
|
+
}
|
2168
|
+
}
|
2169
|
+
const response = await this.request({
|
2170
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2171
|
+
method: 'GET',
|
2172
|
+
headers: headerParameters,
|
2173
|
+
query: queryParameters,
|
2174
|
+
}, initOverrides);
|
2175
|
+
|
2176
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusProviderPropertyMappingFromJSON(jsonValue));
|
2177
|
+
}
|
2178
|
+
|
2179
|
+
/**
|
2180
|
+
* RadiusProviderPropertyMapping Viewset
|
2181
|
+
*/
|
2182
|
+
async propertymappingsRadiusRetrieve(requestParameters: PropertymappingsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusProviderPropertyMapping> {
|
2183
|
+
const response = await this.propertymappingsRadiusRetrieveRaw(requestParameters, initOverrides);
|
2184
|
+
return await response.value();
|
2185
|
+
}
|
2186
|
+
|
2187
|
+
/**
|
2188
|
+
* RadiusProviderPropertyMapping Viewset
|
2189
|
+
*/
|
2190
|
+
async propertymappingsRadiusUpdateRaw(requestParameters: PropertymappingsRadiusUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusProviderPropertyMapping>> {
|
2191
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2192
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusUpdate.');
|
2193
|
+
}
|
2194
|
+
|
2195
|
+
if (requestParameters.radiusProviderPropertyMappingRequest === null || requestParameters.radiusProviderPropertyMappingRequest === undefined) {
|
2196
|
+
throw new runtime.RequiredError('radiusProviderPropertyMappingRequest','Required parameter requestParameters.radiusProviderPropertyMappingRequest was null or undefined when calling propertymappingsRadiusUpdate.');
|
2197
|
+
}
|
2198
|
+
|
2199
|
+
const queryParameters: any = {};
|
2200
|
+
|
2201
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
2202
|
+
|
2203
|
+
headerParameters['Content-Type'] = 'application/json';
|
2204
|
+
|
2205
|
+
if (this.configuration && this.configuration.accessToken) {
|
2206
|
+
const token = this.configuration.accessToken;
|
2207
|
+
const tokenString = await token("authentik", []);
|
2208
|
+
|
2209
|
+
if (tokenString) {
|
2210
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2211
|
+
}
|
2212
|
+
}
|
2213
|
+
const response = await this.request({
|
2214
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2215
|
+
method: 'PUT',
|
2216
|
+
headers: headerParameters,
|
2217
|
+
query: queryParameters,
|
2218
|
+
body: RadiusProviderPropertyMappingRequestToJSON(requestParameters.radiusProviderPropertyMappingRequest),
|
2219
|
+
}, initOverrides);
|
2220
|
+
|
2221
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusProviderPropertyMappingFromJSON(jsonValue));
|
2222
|
+
}
|
2223
|
+
|
2224
|
+
/**
|
2225
|
+
* RadiusProviderPropertyMapping Viewset
|
2226
|
+
*/
|
2227
|
+
async propertymappingsRadiusUpdate(requestParameters: PropertymappingsRadiusUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusProviderPropertyMapping> {
|
2228
|
+
const response = await this.propertymappingsRadiusUpdateRaw(requestParameters, initOverrides);
|
2229
|
+
return await response.value();
|
2230
|
+
}
|
2231
|
+
|
2232
|
+
/**
|
2233
|
+
* Get a list of all objects that use this object
|
2234
|
+
*/
|
2235
|
+
async propertymappingsRadiusUsedByListRaw(requestParameters: PropertymappingsRadiusUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
2236
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2237
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusUsedByList.');
|
2238
|
+
}
|
2239
|
+
|
2240
|
+
const queryParameters: any = {};
|
2241
|
+
|
2242
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
2243
|
+
|
2244
|
+
if (this.configuration && this.configuration.accessToken) {
|
2245
|
+
const token = this.configuration.accessToken;
|
2246
|
+
const tokenString = await token("authentik", []);
|
2247
|
+
|
2248
|
+
if (tokenString) {
|
2249
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2250
|
+
}
|
2251
|
+
}
|
2252
|
+
const response = await this.request({
|
2253
|
+
path: `/propertymappings/radius/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2254
|
+
method: 'GET',
|
2255
|
+
headers: headerParameters,
|
2256
|
+
query: queryParameters,
|
2257
|
+
}, initOverrides);
|
2258
|
+
|
2259
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
2260
|
+
}
|
2261
|
+
|
2262
|
+
/**
|
2263
|
+
* Get a list of all objects that use this object
|
2264
|
+
*/
|
2265
|
+
async propertymappingsRadiusUsedByList(requestParameters: PropertymappingsRadiusUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
2266
|
+
const response = await this.propertymappingsRadiusUsedByListRaw(requestParameters, initOverrides);
|
2267
|
+
return await response.value();
|
2268
|
+
}
|
2269
|
+
|
1915
2270
|
/**
|
1916
2271
|
* SAMLPropertyMapping Viewset
|
1917
2272
|
*/
|
package/src/apis/RbacApi.ts
CHANGED
@@ -1026,6 +1026,7 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
1026
1026
|
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
1027
1027
|
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
1028
1028
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
1029
|
+
ProvidersRadiusRadiusproviderpropertymapping: 'authentik_providers_radius.radiusproviderpropertymapping',
|
1029
1030
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
1030
1031
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
1031
1032
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
@@ -1113,6 +1114,7 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
1113
1114
|
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
1114
1115
|
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
1115
1116
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
1117
|
+
ProvidersRadiusRadiusproviderpropertymapping: 'authentik_providers_radius.radiusproviderpropertymapping',
|
1116
1118
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
1117
1119
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
1118
1120
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
package/src/models/ModelEnum.ts
CHANGED
@@ -37,6 +37,7 @@ export const ModelEnum = {
|
|
37
37
|
ProvidersOauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
|
38
38
|
ProvidersProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
|
39
39
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
40
|
+
ProvidersRadiusRadiusproviderpropertymapping: 'authentik_providers_radius.radiusproviderpropertymapping',
|
40
41
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
41
42
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
42
43
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|