@goauthentik/api 2025.2.4-1744288676 → 2025.2.4-1744640358
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.
- package/.openapi-generator/FILES +8 -0
- package/dist/apis/CoreApi.d.ts +2 -2
- package/dist/apis/CoreApi.js +6 -6
- package/dist/apis/RbacApi.d.ts +4 -0
- package/dist/apis/RbacApi.js +4 -0
- package/dist/apis/SourcesApi.d.ts +169 -1
- package/dist/apis/SourcesApi.js +536 -0
- package/dist/esm/apis/CoreApi.d.ts +2 -2
- package/dist/esm/apis/CoreApi.js +6 -6
- package/dist/esm/apis/RbacApi.d.ts +4 -0
- package/dist/esm/apis/RbacApi.js +4 -0
- package/dist/esm/apis/SourcesApi.d.ts +169 -1
- package/dist/esm/apis/SourcesApi.js +537 -1
- package/dist/esm/models/AuthenticatedSession.d.ts +4 -4
- package/dist/esm/models/AuthenticatedSession.js +6 -5
- package/dist/esm/models/GroupLDAPSourceConnection.d.ts +69 -0
- package/dist/esm/models/GroupLDAPSourceConnection.js +64 -0
- package/dist/esm/models/GroupLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/esm/models/GroupLDAPSourceConnectionRequest.js +51 -0
- package/dist/esm/models/ModelEnum.d.ts +2 -0
- package/dist/esm/models/ModelEnum.js +2 -0
- package/dist/esm/models/PaginatedGroupLDAPSourceConnectionList.d.ts +40 -0
- package/dist/esm/models/PaginatedGroupLDAPSourceConnectionList.js +49 -0
- package/dist/esm/models/PaginatedUserLDAPSourceConnectionList.d.ts +40 -0
- package/dist/esm/models/PaginatedUserLDAPSourceConnectionList.js +49 -0
- package/dist/esm/models/PatchedGroupLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/esm/models/PatchedGroupLDAPSourceConnectionRequest.js +45 -0
- package/dist/esm/models/PatchedSettingsRequest.d.ts +12 -0
- package/dist/esm/models/PatchedSettingsRequest.js +4 -0
- package/dist/esm/models/PatchedUserLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/esm/models/PatchedUserLDAPSourceConnectionRequest.js +45 -0
- package/dist/esm/models/Settings.d.ts +12 -0
- package/dist/esm/models/Settings.js +4 -0
- package/dist/esm/models/SettingsRequest.d.ts +12 -0
- package/dist/esm/models/SettingsRequest.js +4 -0
- package/dist/esm/models/UserLDAPSourceConnection.d.ts +69 -0
- package/dist/esm/models/UserLDAPSourceConnection.js +64 -0
- package/dist/esm/models/UserLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/esm/models/UserLDAPSourceConnectionRequest.js +51 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/AuthenticatedSession.d.ts +4 -4
- package/dist/models/AuthenticatedSession.js +6 -5
- package/dist/models/GroupLDAPSourceConnection.d.ts +69 -0
- package/dist/models/GroupLDAPSourceConnection.js +71 -0
- package/dist/models/GroupLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/models/GroupLDAPSourceConnectionRequest.js +58 -0
- package/dist/models/ModelEnum.d.ts +2 -0
- package/dist/models/ModelEnum.js +2 -0
- package/dist/models/PaginatedGroupLDAPSourceConnectionList.d.ts +40 -0
- package/dist/models/PaginatedGroupLDAPSourceConnectionList.js +56 -0
- package/dist/models/PaginatedUserLDAPSourceConnectionList.d.ts +40 -0
- package/dist/models/PaginatedUserLDAPSourceConnectionList.js +56 -0
- package/dist/models/PatchedGroupLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/models/PatchedGroupLDAPSourceConnectionRequest.js +52 -0
- package/dist/models/PatchedSettingsRequest.d.ts +12 -0
- package/dist/models/PatchedSettingsRequest.js +4 -0
- package/dist/models/PatchedUserLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/models/PatchedUserLDAPSourceConnectionRequest.js +52 -0
- package/dist/models/Settings.d.ts +12 -0
- package/dist/models/Settings.js +4 -0
- package/dist/models/SettingsRequest.d.ts +12 -0
- package/dist/models/SettingsRequest.js +4 -0
- package/dist/models/UserLDAPSourceConnection.d.ts +69 -0
- package/dist/models/UserLDAPSourceConnection.js +71 -0
- package/dist/models/UserLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/models/UserLDAPSourceConnectionRequest.js +58 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +10 -10
- package/src/apis/RbacApi.ts +4 -0
- package/src/apis/SourcesApi.ts +1929 -1197
- package/src/models/AuthenticatedSession.ts +8 -9
- package/src/models/GroupLDAPSourceConnection.ts +124 -0
- package/src/models/GroupLDAPSourceConnectionRequest.ts +84 -0
- package/src/models/ModelEnum.ts +2 -0
- package/src/models/PaginatedGroupLDAPSourceConnectionList.ts +90 -0
- package/src/models/PaginatedUserLDAPSourceConnectionList.ts +90 -0
- package/src/models/PatchedGroupLDAPSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedSettingsRequest.ts +16 -0
- package/src/models/PatchedUserLDAPSourceConnectionRequest.ts +81 -0
- package/src/models/Settings.ts +16 -0
- package/src/models/SettingsRequest.ts +16 -0
- package/src/models/UserLDAPSourceConnection.ts +124 -0
- package/src/models/UserLDAPSourceConnectionRequest.ts +84 -0
- package/src/models/index.ts +8 -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 { FilePathRequestToJSON, GroupKerberosSourceConnectionFromJSON, GroupKerberosSourceConnectionRequestToJSON, GroupOAuthSourceConnectionFromJSON, GroupOAuthSourceConnectionRequestToJSON, GroupPlexSourceConnectionFromJSON, GroupPlexSourceConnectionRequestToJSON, GroupSAMLSourceConnectionFromJSON, GroupSAMLSourceConnectionRequestToJSON, GroupSourceConnectionFromJSON, GroupSourceConnectionRequestToJSON, KerberosSourceFromJSON, KerberosSourceRequestToJSON, KerberosSyncStatusFromJSON, LDAPDebugFromJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON, OAuthSourceFromJSON, OAuthSourceRequestToJSON, PaginatedGroupKerberosSourceConnectionListFromJSON, PaginatedGroupOAuthSourceConnectionListFromJSON, PaginatedGroupPlexSourceConnectionListFromJSON, PaginatedGroupSAMLSourceConnectionListFromJSON, PaginatedGroupSourceConnectionListFromJSON, PaginatedKerberosSourceListFromJSON, PaginatedLDAPSourceListFromJSON, PaginatedOAuthSourceListFromJSON, PaginatedPlexSourceListFromJSON, PaginatedSAMLSourceListFromJSON, PaginatedSCIMSourceGroupListFromJSON, PaginatedSCIMSourceListFromJSON, PaginatedSCIMSourceUserListFromJSON, PaginatedSourceListFromJSON, PaginatedUserKerberosSourceConnectionListFromJSON, PaginatedUserOAuthSourceConnectionListFromJSON, PaginatedUserPlexSourceConnectionListFromJSON, PaginatedUserSAMLSourceConnectionListFromJSON, PaginatedUserSourceConnectionListFromJSON, PatchedGroupKerberosSourceConnectionRequestToJSON, PatchedGroupOAuthSourceConnectionRequestToJSON, PatchedGroupPlexSourceConnectionRequestToJSON, PatchedGroupSAMLSourceConnectionRequestToJSON, PatchedGroupSourceConnectionRequestToJSON, PatchedKerberosSourceRequestToJSON, PatchedLDAPSourceRequestToJSON, PatchedOAuthSourceRequestToJSON, PatchedPlexSourceRequestToJSON, PatchedSAMLSourceRequestToJSON, PatchedSCIMSourceGroupRequestToJSON, PatchedSCIMSourceRequestToJSON, PatchedSCIMSourceUserRequestToJSON, PatchedUserKerberosSourceConnectionRequestToJSON, PatchedUserOAuthSourceConnectionRequestToJSON, PatchedUserPlexSourceConnectionRequestToJSON, PatchedUserSAMLSourceConnectionRequestToJSON, PatchedUserSourceConnectionRequestToJSON, PlexSourceFromJSON, PlexSourceRequestToJSON, PlexTokenRedeemRequestToJSON, RedirectChallengeFromJSON, SAMLMetadataFromJSON, SAMLSourceFromJSON, SAMLSourceRequestToJSON, SCIMSourceFromJSON, SCIMSourceGroupFromJSON, SCIMSourceGroupRequestToJSON, SCIMSourceRequestToJSON, SCIMSourceUserFromJSON, SCIMSourceUserRequestToJSON, SourceFromJSON, SourceTypeFromJSON, SyncStatusFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserKerberosSourceConnectionFromJSON, UserKerberosSourceConnectionRequestToJSON, UserOAuthSourceConnectionFromJSON, UserOAuthSourceConnectionRequestToJSON, UserPlexSourceConnectionFromJSON, UserPlexSourceConnectionRequestToJSON, UserSAMLSourceConnectionFromJSON, UserSAMLSourceConnectionRequestToJSON, UserSettingFromJSON, UserSourceConnectionFromJSON, UserSourceConnectionRequestToJSON, } from '../models/index';
|
|
24
|
+
import { FilePathRequestToJSON, GroupKerberosSourceConnectionFromJSON, GroupKerberosSourceConnectionRequestToJSON, GroupLDAPSourceConnectionFromJSON, GroupLDAPSourceConnectionRequestToJSON, GroupOAuthSourceConnectionFromJSON, GroupOAuthSourceConnectionRequestToJSON, GroupPlexSourceConnectionFromJSON, GroupPlexSourceConnectionRequestToJSON, GroupSAMLSourceConnectionFromJSON, GroupSAMLSourceConnectionRequestToJSON, GroupSourceConnectionFromJSON, GroupSourceConnectionRequestToJSON, KerberosSourceFromJSON, KerberosSourceRequestToJSON, KerberosSyncStatusFromJSON, LDAPDebugFromJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON, OAuthSourceFromJSON, OAuthSourceRequestToJSON, PaginatedGroupKerberosSourceConnectionListFromJSON, PaginatedGroupLDAPSourceConnectionListFromJSON, PaginatedGroupOAuthSourceConnectionListFromJSON, PaginatedGroupPlexSourceConnectionListFromJSON, PaginatedGroupSAMLSourceConnectionListFromJSON, PaginatedGroupSourceConnectionListFromJSON, PaginatedKerberosSourceListFromJSON, PaginatedLDAPSourceListFromJSON, PaginatedOAuthSourceListFromJSON, PaginatedPlexSourceListFromJSON, PaginatedSAMLSourceListFromJSON, PaginatedSCIMSourceGroupListFromJSON, PaginatedSCIMSourceListFromJSON, PaginatedSCIMSourceUserListFromJSON, PaginatedSourceListFromJSON, PaginatedUserKerberosSourceConnectionListFromJSON, PaginatedUserLDAPSourceConnectionListFromJSON, PaginatedUserOAuthSourceConnectionListFromJSON, PaginatedUserPlexSourceConnectionListFromJSON, PaginatedUserSAMLSourceConnectionListFromJSON, PaginatedUserSourceConnectionListFromJSON, PatchedGroupKerberosSourceConnectionRequestToJSON, PatchedGroupLDAPSourceConnectionRequestToJSON, PatchedGroupOAuthSourceConnectionRequestToJSON, PatchedGroupPlexSourceConnectionRequestToJSON, PatchedGroupSAMLSourceConnectionRequestToJSON, PatchedGroupSourceConnectionRequestToJSON, PatchedKerberosSourceRequestToJSON, PatchedLDAPSourceRequestToJSON, PatchedOAuthSourceRequestToJSON, PatchedPlexSourceRequestToJSON, PatchedSAMLSourceRequestToJSON, PatchedSCIMSourceGroupRequestToJSON, PatchedSCIMSourceRequestToJSON, PatchedSCIMSourceUserRequestToJSON, PatchedUserKerberosSourceConnectionRequestToJSON, PatchedUserLDAPSourceConnectionRequestToJSON, PatchedUserOAuthSourceConnectionRequestToJSON, PatchedUserPlexSourceConnectionRequestToJSON, PatchedUserSAMLSourceConnectionRequestToJSON, PatchedUserSourceConnectionRequestToJSON, PlexSourceFromJSON, PlexSourceRequestToJSON, PlexTokenRedeemRequestToJSON, RedirectChallengeFromJSON, SAMLMetadataFromJSON, SAMLSourceFromJSON, SAMLSourceRequestToJSON, SCIMSourceFromJSON, SCIMSourceGroupFromJSON, SCIMSourceGroupRequestToJSON, SCIMSourceRequestToJSON, SCIMSourceUserFromJSON, SCIMSourceUserRequestToJSON, SourceFromJSON, SourceTypeFromJSON, SyncStatusFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserKerberosSourceConnectionFromJSON, UserKerberosSourceConnectionRequestToJSON, UserLDAPSourceConnectionFromJSON, UserLDAPSourceConnectionRequestToJSON, UserOAuthSourceConnectionFromJSON, UserOAuthSourceConnectionRequestToJSON, UserPlexSourceConnectionFromJSON, UserPlexSourceConnectionRequestToJSON, UserSAMLSourceConnectionFromJSON, UserSAMLSourceConnectionRequestToJSON, UserSettingFromJSON, UserSourceConnectionFromJSON, UserSourceConnectionRequestToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -844,6 +844,274 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
844
844
|
return yield response.value();
|
|
845
845
|
});
|
|
846
846
|
}
|
|
847
|
+
/**
|
|
848
|
+
* Group-source connection Viewset
|
|
849
|
+
*/
|
|
850
|
+
sourcesGroupConnectionsLdapCreateRaw(requestParameters, initOverrides) {
|
|
851
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
852
|
+
if (requestParameters['groupLDAPSourceConnectionRequest'] == null) {
|
|
853
|
+
throw new runtime.RequiredError('groupLDAPSourceConnectionRequest', 'Required parameter "groupLDAPSourceConnectionRequest" was null or undefined when calling sourcesGroupConnectionsLdapCreate().');
|
|
854
|
+
}
|
|
855
|
+
const queryParameters = {};
|
|
856
|
+
const headerParameters = {};
|
|
857
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
858
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
859
|
+
const token = this.configuration.accessToken;
|
|
860
|
+
const tokenString = yield token("authentik", []);
|
|
861
|
+
if (tokenString) {
|
|
862
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
const response = yield this.request({
|
|
866
|
+
path: `/sources/group_connections/ldap/`,
|
|
867
|
+
method: 'POST',
|
|
868
|
+
headers: headerParameters,
|
|
869
|
+
query: queryParameters,
|
|
870
|
+
body: GroupLDAPSourceConnectionRequestToJSON(requestParameters['groupLDAPSourceConnectionRequest']),
|
|
871
|
+
}, initOverrides);
|
|
872
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupLDAPSourceConnectionFromJSON(jsonValue));
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Group-source connection Viewset
|
|
877
|
+
*/
|
|
878
|
+
sourcesGroupConnectionsLdapCreate(requestParameters, initOverrides) {
|
|
879
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
880
|
+
const response = yield this.sourcesGroupConnectionsLdapCreateRaw(requestParameters, initOverrides);
|
|
881
|
+
return yield response.value();
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Group-source connection Viewset
|
|
886
|
+
*/
|
|
887
|
+
sourcesGroupConnectionsLdapDestroyRaw(requestParameters, initOverrides) {
|
|
888
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
889
|
+
if (requestParameters['id'] == null) {
|
|
890
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesGroupConnectionsLdapDestroy().');
|
|
891
|
+
}
|
|
892
|
+
const queryParameters = {};
|
|
893
|
+
const headerParameters = {};
|
|
894
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
895
|
+
const token = this.configuration.accessToken;
|
|
896
|
+
const tokenString = yield token("authentik", []);
|
|
897
|
+
if (tokenString) {
|
|
898
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
const response = yield this.request({
|
|
902
|
+
path: `/sources/group_connections/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
903
|
+
method: 'DELETE',
|
|
904
|
+
headers: headerParameters,
|
|
905
|
+
query: queryParameters,
|
|
906
|
+
}, initOverrides);
|
|
907
|
+
return new runtime.VoidApiResponse(response);
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Group-source connection Viewset
|
|
912
|
+
*/
|
|
913
|
+
sourcesGroupConnectionsLdapDestroy(requestParameters, initOverrides) {
|
|
914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
915
|
+
yield this.sourcesGroupConnectionsLdapDestroyRaw(requestParameters, initOverrides);
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Group-source connection Viewset
|
|
920
|
+
*/
|
|
921
|
+
sourcesGroupConnectionsLdapListRaw(requestParameters, initOverrides) {
|
|
922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
923
|
+
const queryParameters = {};
|
|
924
|
+
if (requestParameters['group'] != null) {
|
|
925
|
+
queryParameters['group'] = requestParameters['group'];
|
|
926
|
+
}
|
|
927
|
+
if (requestParameters['ordering'] != null) {
|
|
928
|
+
queryParameters['ordering'] = requestParameters['ordering'];
|
|
929
|
+
}
|
|
930
|
+
if (requestParameters['page'] != null) {
|
|
931
|
+
queryParameters['page'] = requestParameters['page'];
|
|
932
|
+
}
|
|
933
|
+
if (requestParameters['pageSize'] != null) {
|
|
934
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
935
|
+
}
|
|
936
|
+
if (requestParameters['search'] != null) {
|
|
937
|
+
queryParameters['search'] = requestParameters['search'];
|
|
938
|
+
}
|
|
939
|
+
if (requestParameters['sourceSlug'] != null) {
|
|
940
|
+
queryParameters['source__slug'] = requestParameters['sourceSlug'];
|
|
941
|
+
}
|
|
942
|
+
const headerParameters = {};
|
|
943
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
944
|
+
const token = this.configuration.accessToken;
|
|
945
|
+
const tokenString = yield token("authentik", []);
|
|
946
|
+
if (tokenString) {
|
|
947
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
const response = yield this.request({
|
|
951
|
+
path: `/sources/group_connections/ldap/`,
|
|
952
|
+
method: 'GET',
|
|
953
|
+
headers: headerParameters,
|
|
954
|
+
query: queryParameters,
|
|
955
|
+
}, initOverrides);
|
|
956
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGroupLDAPSourceConnectionListFromJSON(jsonValue));
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Group-source connection Viewset
|
|
961
|
+
*/
|
|
962
|
+
sourcesGroupConnectionsLdapList() {
|
|
963
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
964
|
+
const response = yield this.sourcesGroupConnectionsLdapListRaw(requestParameters, initOverrides);
|
|
965
|
+
return yield response.value();
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Group-source connection Viewset
|
|
970
|
+
*/
|
|
971
|
+
sourcesGroupConnectionsLdapPartialUpdateRaw(requestParameters, initOverrides) {
|
|
972
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
973
|
+
if (requestParameters['id'] == null) {
|
|
974
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesGroupConnectionsLdapPartialUpdate().');
|
|
975
|
+
}
|
|
976
|
+
const queryParameters = {};
|
|
977
|
+
const headerParameters = {};
|
|
978
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
979
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
980
|
+
const token = this.configuration.accessToken;
|
|
981
|
+
const tokenString = yield token("authentik", []);
|
|
982
|
+
if (tokenString) {
|
|
983
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
const response = yield this.request({
|
|
987
|
+
path: `/sources/group_connections/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
988
|
+
method: 'PATCH',
|
|
989
|
+
headers: headerParameters,
|
|
990
|
+
query: queryParameters,
|
|
991
|
+
body: PatchedGroupLDAPSourceConnectionRequestToJSON(requestParameters['patchedGroupLDAPSourceConnectionRequest']),
|
|
992
|
+
}, initOverrides);
|
|
993
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupLDAPSourceConnectionFromJSON(jsonValue));
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Group-source connection Viewset
|
|
998
|
+
*/
|
|
999
|
+
sourcesGroupConnectionsLdapPartialUpdate(requestParameters, initOverrides) {
|
|
1000
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1001
|
+
const response = yield this.sourcesGroupConnectionsLdapPartialUpdateRaw(requestParameters, initOverrides);
|
|
1002
|
+
return yield response.value();
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Group-source connection Viewset
|
|
1007
|
+
*/
|
|
1008
|
+
sourcesGroupConnectionsLdapRetrieveRaw(requestParameters, initOverrides) {
|
|
1009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1010
|
+
if (requestParameters['id'] == null) {
|
|
1011
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesGroupConnectionsLdapRetrieve().');
|
|
1012
|
+
}
|
|
1013
|
+
const queryParameters = {};
|
|
1014
|
+
const headerParameters = {};
|
|
1015
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1016
|
+
const token = this.configuration.accessToken;
|
|
1017
|
+
const tokenString = yield token("authentik", []);
|
|
1018
|
+
if (tokenString) {
|
|
1019
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
const response = yield this.request({
|
|
1023
|
+
path: `/sources/group_connections/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1024
|
+
method: 'GET',
|
|
1025
|
+
headers: headerParameters,
|
|
1026
|
+
query: queryParameters,
|
|
1027
|
+
}, initOverrides);
|
|
1028
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupLDAPSourceConnectionFromJSON(jsonValue));
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Group-source connection Viewset
|
|
1033
|
+
*/
|
|
1034
|
+
sourcesGroupConnectionsLdapRetrieve(requestParameters, initOverrides) {
|
|
1035
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1036
|
+
const response = yield this.sourcesGroupConnectionsLdapRetrieveRaw(requestParameters, initOverrides);
|
|
1037
|
+
return yield response.value();
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* Group-source connection Viewset
|
|
1042
|
+
*/
|
|
1043
|
+
sourcesGroupConnectionsLdapUpdateRaw(requestParameters, initOverrides) {
|
|
1044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1045
|
+
if (requestParameters['id'] == null) {
|
|
1046
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesGroupConnectionsLdapUpdate().');
|
|
1047
|
+
}
|
|
1048
|
+
if (requestParameters['groupLDAPSourceConnectionRequest'] == null) {
|
|
1049
|
+
throw new runtime.RequiredError('groupLDAPSourceConnectionRequest', 'Required parameter "groupLDAPSourceConnectionRequest" was null or undefined when calling sourcesGroupConnectionsLdapUpdate().');
|
|
1050
|
+
}
|
|
1051
|
+
const queryParameters = {};
|
|
1052
|
+
const headerParameters = {};
|
|
1053
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1054
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1055
|
+
const token = this.configuration.accessToken;
|
|
1056
|
+
const tokenString = yield token("authentik", []);
|
|
1057
|
+
if (tokenString) {
|
|
1058
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
const response = yield this.request({
|
|
1062
|
+
path: `/sources/group_connections/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1063
|
+
method: 'PUT',
|
|
1064
|
+
headers: headerParameters,
|
|
1065
|
+
query: queryParameters,
|
|
1066
|
+
body: GroupLDAPSourceConnectionRequestToJSON(requestParameters['groupLDAPSourceConnectionRequest']),
|
|
1067
|
+
}, initOverrides);
|
|
1068
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupLDAPSourceConnectionFromJSON(jsonValue));
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Group-source connection Viewset
|
|
1073
|
+
*/
|
|
1074
|
+
sourcesGroupConnectionsLdapUpdate(requestParameters, initOverrides) {
|
|
1075
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1076
|
+
const response = yield this.sourcesGroupConnectionsLdapUpdateRaw(requestParameters, initOverrides);
|
|
1077
|
+
return yield response.value();
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Get a list of all objects that use this object
|
|
1082
|
+
*/
|
|
1083
|
+
sourcesGroupConnectionsLdapUsedByListRaw(requestParameters, initOverrides) {
|
|
1084
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1085
|
+
if (requestParameters['id'] == null) {
|
|
1086
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesGroupConnectionsLdapUsedByList().');
|
|
1087
|
+
}
|
|
1088
|
+
const queryParameters = {};
|
|
1089
|
+
const headerParameters = {};
|
|
1090
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1091
|
+
const token = this.configuration.accessToken;
|
|
1092
|
+
const tokenString = yield token("authentik", []);
|
|
1093
|
+
if (tokenString) {
|
|
1094
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
const response = yield this.request({
|
|
1098
|
+
path: `/sources/group_connections/ldap/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1099
|
+
method: 'GET',
|
|
1100
|
+
headers: headerParameters,
|
|
1101
|
+
query: queryParameters,
|
|
1102
|
+
}, initOverrides);
|
|
1103
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Get a list of all objects that use this object
|
|
1108
|
+
*/
|
|
1109
|
+
sourcesGroupConnectionsLdapUsedByList(requestParameters, initOverrides) {
|
|
1110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1111
|
+
const response = yield this.sourcesGroupConnectionsLdapUsedByListRaw(requestParameters, initOverrides);
|
|
1112
|
+
return yield response.value();
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
847
1115
|
/**
|
|
848
1116
|
* Group-source connection Viewset
|
|
849
1117
|
*/
|
|
@@ -4779,6 +5047,274 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
4779
5047
|
return yield response.value();
|
|
4780
5048
|
});
|
|
4781
5049
|
}
|
|
5050
|
+
/**
|
|
5051
|
+
* User-source connection Viewset
|
|
5052
|
+
*/
|
|
5053
|
+
sourcesUserConnectionsLdapCreateRaw(requestParameters, initOverrides) {
|
|
5054
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5055
|
+
if (requestParameters['userLDAPSourceConnectionRequest'] == null) {
|
|
5056
|
+
throw new runtime.RequiredError('userLDAPSourceConnectionRequest', 'Required parameter "userLDAPSourceConnectionRequest" was null or undefined when calling sourcesUserConnectionsLdapCreate().');
|
|
5057
|
+
}
|
|
5058
|
+
const queryParameters = {};
|
|
5059
|
+
const headerParameters = {};
|
|
5060
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5061
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5062
|
+
const token = this.configuration.accessToken;
|
|
5063
|
+
const tokenString = yield token("authentik", []);
|
|
5064
|
+
if (tokenString) {
|
|
5065
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5066
|
+
}
|
|
5067
|
+
}
|
|
5068
|
+
const response = yield this.request({
|
|
5069
|
+
path: `/sources/user_connections/ldap/`,
|
|
5070
|
+
method: 'POST',
|
|
5071
|
+
headers: headerParameters,
|
|
5072
|
+
query: queryParameters,
|
|
5073
|
+
body: UserLDAPSourceConnectionRequestToJSON(requestParameters['userLDAPSourceConnectionRequest']),
|
|
5074
|
+
}, initOverrides);
|
|
5075
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserLDAPSourceConnectionFromJSON(jsonValue));
|
|
5076
|
+
});
|
|
5077
|
+
}
|
|
5078
|
+
/**
|
|
5079
|
+
* User-source connection Viewset
|
|
5080
|
+
*/
|
|
5081
|
+
sourcesUserConnectionsLdapCreate(requestParameters, initOverrides) {
|
|
5082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5083
|
+
const response = yield this.sourcesUserConnectionsLdapCreateRaw(requestParameters, initOverrides);
|
|
5084
|
+
return yield response.value();
|
|
5085
|
+
});
|
|
5086
|
+
}
|
|
5087
|
+
/**
|
|
5088
|
+
* User-source connection Viewset
|
|
5089
|
+
*/
|
|
5090
|
+
sourcesUserConnectionsLdapDestroyRaw(requestParameters, initOverrides) {
|
|
5091
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5092
|
+
if (requestParameters['id'] == null) {
|
|
5093
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesUserConnectionsLdapDestroy().');
|
|
5094
|
+
}
|
|
5095
|
+
const queryParameters = {};
|
|
5096
|
+
const headerParameters = {};
|
|
5097
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5098
|
+
const token = this.configuration.accessToken;
|
|
5099
|
+
const tokenString = yield token("authentik", []);
|
|
5100
|
+
if (tokenString) {
|
|
5101
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5102
|
+
}
|
|
5103
|
+
}
|
|
5104
|
+
const response = yield this.request({
|
|
5105
|
+
path: `/sources/user_connections/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
5106
|
+
method: 'DELETE',
|
|
5107
|
+
headers: headerParameters,
|
|
5108
|
+
query: queryParameters,
|
|
5109
|
+
}, initOverrides);
|
|
5110
|
+
return new runtime.VoidApiResponse(response);
|
|
5111
|
+
});
|
|
5112
|
+
}
|
|
5113
|
+
/**
|
|
5114
|
+
* User-source connection Viewset
|
|
5115
|
+
*/
|
|
5116
|
+
sourcesUserConnectionsLdapDestroy(requestParameters, initOverrides) {
|
|
5117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5118
|
+
yield this.sourcesUserConnectionsLdapDestroyRaw(requestParameters, initOverrides);
|
|
5119
|
+
});
|
|
5120
|
+
}
|
|
5121
|
+
/**
|
|
5122
|
+
* User-source connection Viewset
|
|
5123
|
+
*/
|
|
5124
|
+
sourcesUserConnectionsLdapListRaw(requestParameters, initOverrides) {
|
|
5125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5126
|
+
const queryParameters = {};
|
|
5127
|
+
if (requestParameters['ordering'] != null) {
|
|
5128
|
+
queryParameters['ordering'] = requestParameters['ordering'];
|
|
5129
|
+
}
|
|
5130
|
+
if (requestParameters['page'] != null) {
|
|
5131
|
+
queryParameters['page'] = requestParameters['page'];
|
|
5132
|
+
}
|
|
5133
|
+
if (requestParameters['pageSize'] != null) {
|
|
5134
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
5135
|
+
}
|
|
5136
|
+
if (requestParameters['search'] != null) {
|
|
5137
|
+
queryParameters['search'] = requestParameters['search'];
|
|
5138
|
+
}
|
|
5139
|
+
if (requestParameters['sourceSlug'] != null) {
|
|
5140
|
+
queryParameters['source__slug'] = requestParameters['sourceSlug'];
|
|
5141
|
+
}
|
|
5142
|
+
if (requestParameters['user'] != null) {
|
|
5143
|
+
queryParameters['user'] = requestParameters['user'];
|
|
5144
|
+
}
|
|
5145
|
+
const headerParameters = {};
|
|
5146
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5147
|
+
const token = this.configuration.accessToken;
|
|
5148
|
+
const tokenString = yield token("authentik", []);
|
|
5149
|
+
if (tokenString) {
|
|
5150
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5151
|
+
}
|
|
5152
|
+
}
|
|
5153
|
+
const response = yield this.request({
|
|
5154
|
+
path: `/sources/user_connections/ldap/`,
|
|
5155
|
+
method: 'GET',
|
|
5156
|
+
headers: headerParameters,
|
|
5157
|
+
query: queryParameters,
|
|
5158
|
+
}, initOverrides);
|
|
5159
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedUserLDAPSourceConnectionListFromJSON(jsonValue));
|
|
5160
|
+
});
|
|
5161
|
+
}
|
|
5162
|
+
/**
|
|
5163
|
+
* User-source connection Viewset
|
|
5164
|
+
*/
|
|
5165
|
+
sourcesUserConnectionsLdapList() {
|
|
5166
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
5167
|
+
const response = yield this.sourcesUserConnectionsLdapListRaw(requestParameters, initOverrides);
|
|
5168
|
+
return yield response.value();
|
|
5169
|
+
});
|
|
5170
|
+
}
|
|
5171
|
+
/**
|
|
5172
|
+
* User-source connection Viewset
|
|
5173
|
+
*/
|
|
5174
|
+
sourcesUserConnectionsLdapPartialUpdateRaw(requestParameters, initOverrides) {
|
|
5175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5176
|
+
if (requestParameters['id'] == null) {
|
|
5177
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesUserConnectionsLdapPartialUpdate().');
|
|
5178
|
+
}
|
|
5179
|
+
const queryParameters = {};
|
|
5180
|
+
const headerParameters = {};
|
|
5181
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5182
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5183
|
+
const token = this.configuration.accessToken;
|
|
5184
|
+
const tokenString = yield token("authentik", []);
|
|
5185
|
+
if (tokenString) {
|
|
5186
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5187
|
+
}
|
|
5188
|
+
}
|
|
5189
|
+
const response = yield this.request({
|
|
5190
|
+
path: `/sources/user_connections/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
5191
|
+
method: 'PATCH',
|
|
5192
|
+
headers: headerParameters,
|
|
5193
|
+
query: queryParameters,
|
|
5194
|
+
body: PatchedUserLDAPSourceConnectionRequestToJSON(requestParameters['patchedUserLDAPSourceConnectionRequest']),
|
|
5195
|
+
}, initOverrides);
|
|
5196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserLDAPSourceConnectionFromJSON(jsonValue));
|
|
5197
|
+
});
|
|
5198
|
+
}
|
|
5199
|
+
/**
|
|
5200
|
+
* User-source connection Viewset
|
|
5201
|
+
*/
|
|
5202
|
+
sourcesUserConnectionsLdapPartialUpdate(requestParameters, initOverrides) {
|
|
5203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5204
|
+
const response = yield this.sourcesUserConnectionsLdapPartialUpdateRaw(requestParameters, initOverrides);
|
|
5205
|
+
return yield response.value();
|
|
5206
|
+
});
|
|
5207
|
+
}
|
|
5208
|
+
/**
|
|
5209
|
+
* User-source connection Viewset
|
|
5210
|
+
*/
|
|
5211
|
+
sourcesUserConnectionsLdapRetrieveRaw(requestParameters, initOverrides) {
|
|
5212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5213
|
+
if (requestParameters['id'] == null) {
|
|
5214
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesUserConnectionsLdapRetrieve().');
|
|
5215
|
+
}
|
|
5216
|
+
const queryParameters = {};
|
|
5217
|
+
const headerParameters = {};
|
|
5218
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5219
|
+
const token = this.configuration.accessToken;
|
|
5220
|
+
const tokenString = yield token("authentik", []);
|
|
5221
|
+
if (tokenString) {
|
|
5222
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
const response = yield this.request({
|
|
5226
|
+
path: `/sources/user_connections/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
5227
|
+
method: 'GET',
|
|
5228
|
+
headers: headerParameters,
|
|
5229
|
+
query: queryParameters,
|
|
5230
|
+
}, initOverrides);
|
|
5231
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserLDAPSourceConnectionFromJSON(jsonValue));
|
|
5232
|
+
});
|
|
5233
|
+
}
|
|
5234
|
+
/**
|
|
5235
|
+
* User-source connection Viewset
|
|
5236
|
+
*/
|
|
5237
|
+
sourcesUserConnectionsLdapRetrieve(requestParameters, initOverrides) {
|
|
5238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5239
|
+
const response = yield this.sourcesUserConnectionsLdapRetrieveRaw(requestParameters, initOverrides);
|
|
5240
|
+
return yield response.value();
|
|
5241
|
+
});
|
|
5242
|
+
}
|
|
5243
|
+
/**
|
|
5244
|
+
* User-source connection Viewset
|
|
5245
|
+
*/
|
|
5246
|
+
sourcesUserConnectionsLdapUpdateRaw(requestParameters, initOverrides) {
|
|
5247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5248
|
+
if (requestParameters['id'] == null) {
|
|
5249
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesUserConnectionsLdapUpdate().');
|
|
5250
|
+
}
|
|
5251
|
+
if (requestParameters['userLDAPSourceConnectionRequest'] == null) {
|
|
5252
|
+
throw new runtime.RequiredError('userLDAPSourceConnectionRequest', 'Required parameter "userLDAPSourceConnectionRequest" was null or undefined when calling sourcesUserConnectionsLdapUpdate().');
|
|
5253
|
+
}
|
|
5254
|
+
const queryParameters = {};
|
|
5255
|
+
const headerParameters = {};
|
|
5256
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5257
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5258
|
+
const token = this.configuration.accessToken;
|
|
5259
|
+
const tokenString = yield token("authentik", []);
|
|
5260
|
+
if (tokenString) {
|
|
5261
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5262
|
+
}
|
|
5263
|
+
}
|
|
5264
|
+
const response = yield this.request({
|
|
5265
|
+
path: `/sources/user_connections/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
5266
|
+
method: 'PUT',
|
|
5267
|
+
headers: headerParameters,
|
|
5268
|
+
query: queryParameters,
|
|
5269
|
+
body: UserLDAPSourceConnectionRequestToJSON(requestParameters['userLDAPSourceConnectionRequest']),
|
|
5270
|
+
}, initOverrides);
|
|
5271
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserLDAPSourceConnectionFromJSON(jsonValue));
|
|
5272
|
+
});
|
|
5273
|
+
}
|
|
5274
|
+
/**
|
|
5275
|
+
* User-source connection Viewset
|
|
5276
|
+
*/
|
|
5277
|
+
sourcesUserConnectionsLdapUpdate(requestParameters, initOverrides) {
|
|
5278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5279
|
+
const response = yield this.sourcesUserConnectionsLdapUpdateRaw(requestParameters, initOverrides);
|
|
5280
|
+
return yield response.value();
|
|
5281
|
+
});
|
|
5282
|
+
}
|
|
5283
|
+
/**
|
|
5284
|
+
* Get a list of all objects that use this object
|
|
5285
|
+
*/
|
|
5286
|
+
sourcesUserConnectionsLdapUsedByListRaw(requestParameters, initOverrides) {
|
|
5287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5288
|
+
if (requestParameters['id'] == null) {
|
|
5289
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling sourcesUserConnectionsLdapUsedByList().');
|
|
5290
|
+
}
|
|
5291
|
+
const queryParameters = {};
|
|
5292
|
+
const headerParameters = {};
|
|
5293
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5294
|
+
const token = this.configuration.accessToken;
|
|
5295
|
+
const tokenString = yield token("authentik", []);
|
|
5296
|
+
if (tokenString) {
|
|
5297
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5298
|
+
}
|
|
5299
|
+
}
|
|
5300
|
+
const response = yield this.request({
|
|
5301
|
+
path: `/sources/user_connections/ldap/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
5302
|
+
method: 'GET',
|
|
5303
|
+
headers: headerParameters,
|
|
5304
|
+
query: queryParameters,
|
|
5305
|
+
}, initOverrides);
|
|
5306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
5307
|
+
});
|
|
5308
|
+
}
|
|
5309
|
+
/**
|
|
5310
|
+
* Get a list of all objects that use this object
|
|
5311
|
+
*/
|
|
5312
|
+
sourcesUserConnectionsLdapUsedByList(requestParameters, initOverrides) {
|
|
5313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5314
|
+
const response = yield this.sourcesUserConnectionsLdapUsedByListRaw(requestParameters, initOverrides);
|
|
5315
|
+
return yield response.value();
|
|
5316
|
+
});
|
|
5317
|
+
}
|
|
4782
5318
|
/**
|
|
4783
5319
|
* User-source connection Viewset
|
|
4784
5320
|
*/
|
|
@@ -59,13 +59,13 @@ export interface AuthenticatedSession {
|
|
|
59
59
|
* @type {string}
|
|
60
60
|
* @memberof AuthenticatedSession
|
|
61
61
|
*/
|
|
62
|
-
lastIp: string;
|
|
62
|
+
readonly lastIp: string;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {string}
|
|
66
66
|
* @memberof AuthenticatedSession
|
|
67
67
|
*/
|
|
68
|
-
lastUserAgent
|
|
68
|
+
readonly lastUserAgent: string;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @type {Date}
|
|
@@ -77,7 +77,7 @@ export interface AuthenticatedSession {
|
|
|
77
77
|
* @type {Date}
|
|
78
78
|
* @memberof AuthenticatedSession
|
|
79
79
|
*/
|
|
80
|
-
expires
|
|
80
|
+
readonly expires: Date;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Check if a given object implements the AuthenticatedSession interface.
|
|
@@ -86,4 +86,4 @@ export declare function instanceOfAuthenticatedSession(value: object): value is
|
|
|
86
86
|
export declare function AuthenticatedSessionFromJSON(json: any): AuthenticatedSession;
|
|
87
87
|
export declare function AuthenticatedSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSession;
|
|
88
88
|
export declare function AuthenticatedSessionToJSON(json: any): AuthenticatedSession;
|
|
89
|
-
export declare function AuthenticatedSessionToJSONTyped(value?: Omit<AuthenticatedSession, 'current' | 'last_used'> | null, ignoreDiscriminator?: boolean): any;
|
|
89
|
+
export declare function AuthenticatedSessionToJSONTyped(value?: Omit<AuthenticatedSession, 'current' | 'last_ip' | 'last_user_agent' | 'last_used' | 'expires'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -30,8 +30,12 @@ export function instanceOfAuthenticatedSession(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('lastIp' in value) || value['lastIp'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('lastUserAgent' in value) || value['lastUserAgent'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('lastUsed' in value) || value['lastUsed'] === undefined)
|
|
34
36
|
return false;
|
|
37
|
+
if (!('expires' in value) || value['expires'] === undefined)
|
|
38
|
+
return false;
|
|
35
39
|
return true;
|
|
36
40
|
}
|
|
37
41
|
export function AuthenticatedSessionFromJSON(json) {
|
|
@@ -49,9 +53,9 @@ export function AuthenticatedSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
53
|
'asn': AuthenticatedSessionAsnFromJSON(json['asn']),
|
|
50
54
|
'user': json['user'],
|
|
51
55
|
'lastIp': json['last_ip'],
|
|
52
|
-
'lastUserAgent': json['last_user_agent']
|
|
56
|
+
'lastUserAgent': json['last_user_agent'],
|
|
53
57
|
'lastUsed': (new Date(json['last_used'])),
|
|
54
|
-
'expires':
|
|
58
|
+
'expires': (new Date(json['expires'])),
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
export function AuthenticatedSessionToJSON(json) {
|
|
@@ -67,8 +71,5 @@ export function AuthenticatedSessionToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
67
71
|
'geo_ip': AuthenticatedSessionGeoIpToJSON(value['geoIp']),
|
|
68
72
|
'asn': AuthenticatedSessionAsnToJSON(value['asn']),
|
|
69
73
|
'user': value['user'],
|
|
70
|
-
'last_ip': value['lastIp'],
|
|
71
|
-
'last_user_agent': value['lastUserAgent'],
|
|
72
|
-
'expires': value['expires'] == null ? undefined : (value['expires'].toISOString()),
|
|
73
74
|
};
|
|
74
75
|
}
|