@goauthentik/api 2024.6.3-1722940666 → 2024.6.3-1723050887
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 +13 -0
- package/dist/apis/PropertymappingsApi.d.ts +171 -1
- package/dist/apis/PropertymappingsApi.js +542 -0
- package/dist/apis/RbacApi.d.ts +8 -0
- package/dist/apis/RbacApi.js +8 -0
- package/dist/apis/SourcesApi.d.ts +162 -1
- package/dist/apis/SourcesApi.js +493 -1
- package/dist/esm/apis/PropertymappingsApi.d.ts +171 -1
- package/dist/esm/apis/PropertymappingsApi.js +543 -1
- package/dist/esm/apis/RbacApi.d.ts +8 -0
- package/dist/esm/apis/RbacApi.js +8 -0
- package/dist/esm/apis/SourcesApi.d.ts +162 -1
- package/dist/esm/apis/SourcesApi.js +493 -1
- package/dist/esm/models/Device.d.ts +18 -0
- package/dist/esm/models/Device.js +6 -0
- package/dist/esm/models/GroupMatchingModeEnum.d.ts +25 -0
- package/dist/esm/models/GroupMatchingModeEnum.js +32 -0
- package/dist/esm/models/GroupOAuthSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupOAuthSourceConnection.js +50 -0
- package/dist/esm/models/GroupSAMLSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupSAMLSourceConnection.js +50 -0
- package/dist/esm/models/ModelEnum.d.ts +4 -0
- package/dist/esm/models/ModelEnum.js +4 -0
- package/dist/esm/models/OAuthSource.d.ts +7 -0
- package/dist/esm/models/OAuthSource.js +3 -0
- package/dist/esm/models/OAuthSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/OAuthSourcePropertyMapping.js +59 -0
- package/dist/esm/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/OAuthSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/OAuthSourceRequest.js +3 -0
- package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +7 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.js +3 -0
- package/dist/esm/models/SAMLSource.d.ts +7 -0
- package/dist/esm/models/SAMLSource.js +3 -0
- package/dist/esm/models/SAMLSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/SAMLSourcePropertyMapping.js +59 -0
- package/dist/esm/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/SAMLSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/SAMLSourceRequest.d.ts +7 -0
- package/dist/esm/models/SAMLSourceRequest.js +3 -0
- package/dist/esm/models/index.d.ts +13 -0
- package/dist/esm/models/index.js +13 -0
- package/dist/models/Device.d.ts +18 -0
- package/dist/models/Device.js +6 -0
- package/dist/models/GroupMatchingModeEnum.d.ts +25 -0
- package/dist/models/GroupMatchingModeEnum.js +38 -0
- package/dist/models/GroupOAuthSourceConnection.d.ts +56 -0
- package/dist/models/GroupOAuthSourceConnection.js +57 -0
- package/dist/models/GroupSAMLSourceConnection.d.ts +56 -0
- package/dist/models/GroupSAMLSourceConnection.js +57 -0
- package/dist/models/ModelEnum.d.ts +4 -0
- package/dist/models/ModelEnum.js +4 -0
- package/dist/models/OAuthSource.d.ts +7 -0
- package/dist/models/OAuthSource.js +3 -0
- package/dist/models/OAuthSourcePropertyMapping.d.ts +73 -0
- package/dist/models/OAuthSourcePropertyMapping.js +66 -0
- package/dist/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/OAuthSourcePropertyMappingRequest.js +56 -0
- package/dist/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/models/OAuthSourceRequest.js +3 -0
- package/dist/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupOAuthSourceConnectionList.js +55 -0
- package/dist/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupSAMLSourceConnectionList.js +55 -0
- package/dist/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedOAuthSourcePropertyMappingList.js +55 -0
- package/dist/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedSAMLSourcePropertyMappingList.js +55 -0
- package/dist/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedOAuthSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedSAMLSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedSAMLSourceRequest.d.ts +7 -0
- package/dist/models/PatchedSAMLSourceRequest.js +3 -0
- package/dist/models/SAMLSource.d.ts +7 -0
- package/dist/models/SAMLSource.js +3 -0
- package/dist/models/SAMLSourcePropertyMapping.d.ts +73 -0
- package/dist/models/SAMLSourcePropertyMapping.js +66 -0
- package/dist/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/SAMLSourcePropertyMappingRequest.js +56 -0
- package/dist/models/SAMLSourceRequest.d.ts +7 -0
- package/dist/models/SAMLSourceRequest.js +3 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +700 -0
- package/src/apis/RbacApi.ts +8 -0
- package/src/apis/SourcesApi.ts +613 -0
- package/src/models/Device.ts +24 -0
- package/src/models/GroupMatchingModeEnum.ts +40 -0
- package/src/models/GroupOAuthSourceConnection.ts +104 -0
- package/src/models/GroupSAMLSourceConnection.ts +104 -0
- package/src/models/ModelEnum.ts +4 -0
- package/src/models/OAuthSource.ts +14 -0
- package/src/models/OAuthSourcePropertyMapping.ts +123 -0
- package/src/models/OAuthSourcePropertyMappingRequest.ts +83 -0
- package/src/models/OAuthSourceRequest.ts +14 -0
- package/src/models/PaginatedGroupOAuthSourceConnectionList.ts +88 -0
- package/src/models/PaginatedGroupSAMLSourceConnectionList.ts +88 -0
- package/src/models/PaginatedOAuthSourcePropertyMappingList.ts +88 -0
- package/src/models/PaginatedSAMLSourcePropertyMappingList.ts +88 -0
- package/src/models/PatchedOAuthSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedOAuthSourceRequest.ts +14 -0
- package/src/models/PatchedSAMLSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedSAMLSourceRequest.ts +14 -0
- package/src/models/SAMLSource.ts +14 -0
- package/src/models/SAMLSourcePropertyMapping.ts +123 -0
- package/src/models/SAMLSourcePropertyMappingRequest.ts +83 -0
- package/src/models/SAMLSourceRequest.ts +14 -0
- package/src/models/index.ts +13 -0
package/src/apis/SourcesApi.ts
CHANGED
|
@@ -17,11 +17,15 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
FilePathRequest,
|
|
19
19
|
GenericError,
|
|
20
|
+
GroupOAuthSourceConnection,
|
|
21
|
+
GroupSAMLSourceConnection,
|
|
20
22
|
LDAPDebug,
|
|
21
23
|
LDAPSource,
|
|
22
24
|
LDAPSourceRequest,
|
|
23
25
|
OAuthSource,
|
|
24
26
|
OAuthSourceRequest,
|
|
27
|
+
PaginatedGroupOAuthSourceConnectionList,
|
|
28
|
+
PaginatedGroupSAMLSourceConnectionList,
|
|
25
29
|
PaginatedLDAPSourceList,
|
|
26
30
|
PaginatedOAuthSourceList,
|
|
27
31
|
PaginatedPlexSourceConnectionList,
|
|
@@ -77,6 +81,10 @@ import {
|
|
|
77
81
|
FilePathRequestToJSON,
|
|
78
82
|
GenericErrorFromJSON,
|
|
79
83
|
GenericErrorToJSON,
|
|
84
|
+
GroupOAuthSourceConnectionFromJSON,
|
|
85
|
+
GroupOAuthSourceConnectionToJSON,
|
|
86
|
+
GroupSAMLSourceConnectionFromJSON,
|
|
87
|
+
GroupSAMLSourceConnectionToJSON,
|
|
80
88
|
LDAPDebugFromJSON,
|
|
81
89
|
LDAPDebugToJSON,
|
|
82
90
|
LDAPSourceFromJSON,
|
|
@@ -87,6 +95,10 @@ import {
|
|
|
87
95
|
OAuthSourceToJSON,
|
|
88
96
|
OAuthSourceRequestFromJSON,
|
|
89
97
|
OAuthSourceRequestToJSON,
|
|
98
|
+
PaginatedGroupOAuthSourceConnectionListFromJSON,
|
|
99
|
+
PaginatedGroupOAuthSourceConnectionListToJSON,
|
|
100
|
+
PaginatedGroupSAMLSourceConnectionListFromJSON,
|
|
101
|
+
PaginatedGroupSAMLSourceConnectionListToJSON,
|
|
90
102
|
PaginatedLDAPSourceListFromJSON,
|
|
91
103
|
PaginatedLDAPSourceListToJSON,
|
|
92
104
|
PaginatedOAuthSourceListFromJSON,
|
|
@@ -220,6 +232,64 @@ export interface SourcesAllUsedByListRequest {
|
|
|
220
232
|
slug: string;
|
|
221
233
|
}
|
|
222
234
|
|
|
235
|
+
export interface SourcesGroupConnectionsOauthDestroyRequest {
|
|
236
|
+
id: number;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface SourcesGroupConnectionsOauthListRequest {
|
|
240
|
+
group?: string;
|
|
241
|
+
ordering?: string;
|
|
242
|
+
page?: number;
|
|
243
|
+
pageSize?: number;
|
|
244
|
+
search?: string;
|
|
245
|
+
sourceSlug?: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface SourcesGroupConnectionsOauthPartialUpdateRequest {
|
|
249
|
+
id: number;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export interface SourcesGroupConnectionsOauthRetrieveRequest {
|
|
253
|
+
id: number;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface SourcesGroupConnectionsOauthUpdateRequest {
|
|
257
|
+
id: number;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface SourcesGroupConnectionsOauthUsedByListRequest {
|
|
261
|
+
id: number;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export interface SourcesGroupConnectionsSamlDestroyRequest {
|
|
265
|
+
id: number;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface SourcesGroupConnectionsSamlListRequest {
|
|
269
|
+
group?: string;
|
|
270
|
+
ordering?: string;
|
|
271
|
+
page?: number;
|
|
272
|
+
pageSize?: number;
|
|
273
|
+
search?: string;
|
|
274
|
+
sourceSlug?: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export interface SourcesGroupConnectionsSamlPartialUpdateRequest {
|
|
278
|
+
id: number;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export interface SourcesGroupConnectionsSamlRetrieveRequest {
|
|
282
|
+
id: number;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export interface SourcesGroupConnectionsSamlUpdateRequest {
|
|
286
|
+
id: number;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export interface SourcesGroupConnectionsSamlUsedByListRequest {
|
|
290
|
+
id: number;
|
|
291
|
+
}
|
|
292
|
+
|
|
223
293
|
export interface SourcesLdapCreateRequest {
|
|
224
294
|
lDAPSourceRequest: LDAPSourceRequest;
|
|
225
295
|
}
|
|
@@ -300,6 +370,7 @@ export interface SourcesOauthListRequest {
|
|
|
300
370
|
consumerKey?: string;
|
|
301
371
|
enabled?: boolean;
|
|
302
372
|
enrollmentFlow?: string;
|
|
373
|
+
groupMatchingMode?: SourcesOauthListGroupMatchingModeEnum;
|
|
303
374
|
hasJwks?: boolean;
|
|
304
375
|
name?: string;
|
|
305
376
|
ordering?: string;
|
|
@@ -1040,6 +1111,534 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
1040
1111
|
return await response.value();
|
|
1041
1112
|
}
|
|
1042
1113
|
|
|
1114
|
+
/**
|
|
1115
|
+
* Group-source connection Viewset
|
|
1116
|
+
*/
|
|
1117
|
+
async sourcesGroupConnectionsOauthCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupOAuthSourceConnection>> {
|
|
1118
|
+
const queryParameters: any = {};
|
|
1119
|
+
|
|
1120
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1121
|
+
|
|
1122
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1123
|
+
const token = this.configuration.accessToken;
|
|
1124
|
+
const tokenString = await token("authentik", []);
|
|
1125
|
+
|
|
1126
|
+
if (tokenString) {
|
|
1127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
const response = await this.request({
|
|
1131
|
+
path: `/sources/group_connections/oauth/`,
|
|
1132
|
+
method: 'POST',
|
|
1133
|
+
headers: headerParameters,
|
|
1134
|
+
query: queryParameters,
|
|
1135
|
+
}, initOverrides);
|
|
1136
|
+
|
|
1137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupOAuthSourceConnectionFromJSON(jsonValue));
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Group-source connection Viewset
|
|
1142
|
+
*/
|
|
1143
|
+
async sourcesGroupConnectionsOauthCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupOAuthSourceConnection> {
|
|
1144
|
+
const response = await this.sourcesGroupConnectionsOauthCreateRaw(initOverrides);
|
|
1145
|
+
return await response.value();
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Group-source connection Viewset
|
|
1150
|
+
*/
|
|
1151
|
+
async sourcesGroupConnectionsOauthDestroyRaw(requestParameters: SourcesGroupConnectionsOauthDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1152
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1153
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthDestroy.');
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
const queryParameters: any = {};
|
|
1157
|
+
|
|
1158
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1159
|
+
|
|
1160
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1161
|
+
const token = this.configuration.accessToken;
|
|
1162
|
+
const tokenString = await token("authentik", []);
|
|
1163
|
+
|
|
1164
|
+
if (tokenString) {
|
|
1165
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
const response = await this.request({
|
|
1169
|
+
path: `/sources/group_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1170
|
+
method: 'DELETE',
|
|
1171
|
+
headers: headerParameters,
|
|
1172
|
+
query: queryParameters,
|
|
1173
|
+
}, initOverrides);
|
|
1174
|
+
|
|
1175
|
+
return new runtime.VoidApiResponse(response);
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Group-source connection Viewset
|
|
1180
|
+
*/
|
|
1181
|
+
async sourcesGroupConnectionsOauthDestroy(requestParameters: SourcesGroupConnectionsOauthDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1182
|
+
await this.sourcesGroupConnectionsOauthDestroyRaw(requestParameters, initOverrides);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* Group-source connection Viewset
|
|
1187
|
+
*/
|
|
1188
|
+
async sourcesGroupConnectionsOauthListRaw(requestParameters: SourcesGroupConnectionsOauthListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedGroupOAuthSourceConnectionList>> {
|
|
1189
|
+
const queryParameters: any = {};
|
|
1190
|
+
|
|
1191
|
+
if (requestParameters.group !== undefined) {
|
|
1192
|
+
queryParameters['group'] = requestParameters.group;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
if (requestParameters.ordering !== undefined) {
|
|
1196
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
if (requestParameters.page !== undefined) {
|
|
1200
|
+
queryParameters['page'] = requestParameters.page;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
if (requestParameters.pageSize !== undefined) {
|
|
1204
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
if (requestParameters.search !== undefined) {
|
|
1208
|
+
queryParameters['search'] = requestParameters.search;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
if (requestParameters.sourceSlug !== undefined) {
|
|
1212
|
+
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1216
|
+
|
|
1217
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1218
|
+
const token = this.configuration.accessToken;
|
|
1219
|
+
const tokenString = await token("authentik", []);
|
|
1220
|
+
|
|
1221
|
+
if (tokenString) {
|
|
1222
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
const response = await this.request({
|
|
1226
|
+
path: `/sources/group_connections/oauth/`,
|
|
1227
|
+
method: 'GET',
|
|
1228
|
+
headers: headerParameters,
|
|
1229
|
+
query: queryParameters,
|
|
1230
|
+
}, initOverrides);
|
|
1231
|
+
|
|
1232
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGroupOAuthSourceConnectionListFromJSON(jsonValue));
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* Group-source connection Viewset
|
|
1237
|
+
*/
|
|
1238
|
+
async sourcesGroupConnectionsOauthList(requestParameters: SourcesGroupConnectionsOauthListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedGroupOAuthSourceConnectionList> {
|
|
1239
|
+
const response = await this.sourcesGroupConnectionsOauthListRaw(requestParameters, initOverrides);
|
|
1240
|
+
return await response.value();
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Group-source connection Viewset
|
|
1245
|
+
*/
|
|
1246
|
+
async sourcesGroupConnectionsOauthPartialUpdateRaw(requestParameters: SourcesGroupConnectionsOauthPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupOAuthSourceConnection>> {
|
|
1247
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1248
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthPartialUpdate.');
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
const queryParameters: any = {};
|
|
1252
|
+
|
|
1253
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1254
|
+
|
|
1255
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1256
|
+
const token = this.configuration.accessToken;
|
|
1257
|
+
const tokenString = await token("authentik", []);
|
|
1258
|
+
|
|
1259
|
+
if (tokenString) {
|
|
1260
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
const response = await this.request({
|
|
1264
|
+
path: `/sources/group_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1265
|
+
method: 'PATCH',
|
|
1266
|
+
headers: headerParameters,
|
|
1267
|
+
query: queryParameters,
|
|
1268
|
+
}, initOverrides);
|
|
1269
|
+
|
|
1270
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupOAuthSourceConnectionFromJSON(jsonValue));
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* Group-source connection Viewset
|
|
1275
|
+
*/
|
|
1276
|
+
async sourcesGroupConnectionsOauthPartialUpdate(requestParameters: SourcesGroupConnectionsOauthPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupOAuthSourceConnection> {
|
|
1277
|
+
const response = await this.sourcesGroupConnectionsOauthPartialUpdateRaw(requestParameters, initOverrides);
|
|
1278
|
+
return await response.value();
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* Group-source connection Viewset
|
|
1283
|
+
*/
|
|
1284
|
+
async sourcesGroupConnectionsOauthRetrieveRaw(requestParameters: SourcesGroupConnectionsOauthRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupOAuthSourceConnection>> {
|
|
1285
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1286
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthRetrieve.');
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
const queryParameters: any = {};
|
|
1290
|
+
|
|
1291
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1292
|
+
|
|
1293
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1294
|
+
const token = this.configuration.accessToken;
|
|
1295
|
+
const tokenString = await token("authentik", []);
|
|
1296
|
+
|
|
1297
|
+
if (tokenString) {
|
|
1298
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
const response = await this.request({
|
|
1302
|
+
path: `/sources/group_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1303
|
+
method: 'GET',
|
|
1304
|
+
headers: headerParameters,
|
|
1305
|
+
query: queryParameters,
|
|
1306
|
+
}, initOverrides);
|
|
1307
|
+
|
|
1308
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupOAuthSourceConnectionFromJSON(jsonValue));
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* Group-source connection Viewset
|
|
1313
|
+
*/
|
|
1314
|
+
async sourcesGroupConnectionsOauthRetrieve(requestParameters: SourcesGroupConnectionsOauthRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupOAuthSourceConnection> {
|
|
1315
|
+
const response = await this.sourcesGroupConnectionsOauthRetrieveRaw(requestParameters, initOverrides);
|
|
1316
|
+
return await response.value();
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Group-source connection Viewset
|
|
1321
|
+
*/
|
|
1322
|
+
async sourcesGroupConnectionsOauthUpdateRaw(requestParameters: SourcesGroupConnectionsOauthUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupOAuthSourceConnection>> {
|
|
1323
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1324
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthUpdate.');
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
const queryParameters: any = {};
|
|
1328
|
+
|
|
1329
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1330
|
+
|
|
1331
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1332
|
+
const token = this.configuration.accessToken;
|
|
1333
|
+
const tokenString = await token("authentik", []);
|
|
1334
|
+
|
|
1335
|
+
if (tokenString) {
|
|
1336
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
const response = await this.request({
|
|
1340
|
+
path: `/sources/group_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1341
|
+
method: 'PUT',
|
|
1342
|
+
headers: headerParameters,
|
|
1343
|
+
query: queryParameters,
|
|
1344
|
+
}, initOverrides);
|
|
1345
|
+
|
|
1346
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupOAuthSourceConnectionFromJSON(jsonValue));
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Group-source connection Viewset
|
|
1351
|
+
*/
|
|
1352
|
+
async sourcesGroupConnectionsOauthUpdate(requestParameters: SourcesGroupConnectionsOauthUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupOAuthSourceConnection> {
|
|
1353
|
+
const response = await this.sourcesGroupConnectionsOauthUpdateRaw(requestParameters, initOverrides);
|
|
1354
|
+
return await response.value();
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Get a list of all objects that use this object
|
|
1359
|
+
*/
|
|
1360
|
+
async sourcesGroupConnectionsOauthUsedByListRaw(requestParameters: SourcesGroupConnectionsOauthUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
|
1361
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1362
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthUsedByList.');
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
const queryParameters: any = {};
|
|
1366
|
+
|
|
1367
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1368
|
+
|
|
1369
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1370
|
+
const token = this.configuration.accessToken;
|
|
1371
|
+
const tokenString = await token("authentik", []);
|
|
1372
|
+
|
|
1373
|
+
if (tokenString) {
|
|
1374
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
const response = await this.request({
|
|
1378
|
+
path: `/sources/group_connections/oauth/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1379
|
+
method: 'GET',
|
|
1380
|
+
headers: headerParameters,
|
|
1381
|
+
query: queryParameters,
|
|
1382
|
+
}, initOverrides);
|
|
1383
|
+
|
|
1384
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Get a list of all objects that use this object
|
|
1389
|
+
*/
|
|
1390
|
+
async sourcesGroupConnectionsOauthUsedByList(requestParameters: SourcesGroupConnectionsOauthUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
|
1391
|
+
const response = await this.sourcesGroupConnectionsOauthUsedByListRaw(requestParameters, initOverrides);
|
|
1392
|
+
return await response.value();
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* Group-source connection Viewset
|
|
1397
|
+
*/
|
|
1398
|
+
async sourcesGroupConnectionsSamlDestroyRaw(requestParameters: SourcesGroupConnectionsSamlDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1399
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1400
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlDestroy.');
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
const queryParameters: any = {};
|
|
1404
|
+
|
|
1405
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1406
|
+
|
|
1407
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1408
|
+
const token = this.configuration.accessToken;
|
|
1409
|
+
const tokenString = await token("authentik", []);
|
|
1410
|
+
|
|
1411
|
+
if (tokenString) {
|
|
1412
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
const response = await this.request({
|
|
1416
|
+
path: `/sources/group_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1417
|
+
method: 'DELETE',
|
|
1418
|
+
headers: headerParameters,
|
|
1419
|
+
query: queryParameters,
|
|
1420
|
+
}, initOverrides);
|
|
1421
|
+
|
|
1422
|
+
return new runtime.VoidApiResponse(response);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Group-source connection Viewset
|
|
1427
|
+
*/
|
|
1428
|
+
async sourcesGroupConnectionsSamlDestroy(requestParameters: SourcesGroupConnectionsSamlDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1429
|
+
await this.sourcesGroupConnectionsSamlDestroyRaw(requestParameters, initOverrides);
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Group-source connection Viewset
|
|
1434
|
+
*/
|
|
1435
|
+
async sourcesGroupConnectionsSamlListRaw(requestParameters: SourcesGroupConnectionsSamlListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedGroupSAMLSourceConnectionList>> {
|
|
1436
|
+
const queryParameters: any = {};
|
|
1437
|
+
|
|
1438
|
+
if (requestParameters.group !== undefined) {
|
|
1439
|
+
queryParameters['group'] = requestParameters.group;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
if (requestParameters.ordering !== undefined) {
|
|
1443
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
if (requestParameters.page !== undefined) {
|
|
1447
|
+
queryParameters['page'] = requestParameters.page;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
if (requestParameters.pageSize !== undefined) {
|
|
1451
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
if (requestParameters.search !== undefined) {
|
|
1455
|
+
queryParameters['search'] = requestParameters.search;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
if (requestParameters.sourceSlug !== undefined) {
|
|
1459
|
+
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1463
|
+
|
|
1464
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1465
|
+
const token = this.configuration.accessToken;
|
|
1466
|
+
const tokenString = await token("authentik", []);
|
|
1467
|
+
|
|
1468
|
+
if (tokenString) {
|
|
1469
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
const response = await this.request({
|
|
1473
|
+
path: `/sources/group_connections/saml/`,
|
|
1474
|
+
method: 'GET',
|
|
1475
|
+
headers: headerParameters,
|
|
1476
|
+
query: queryParameters,
|
|
1477
|
+
}, initOverrides);
|
|
1478
|
+
|
|
1479
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGroupSAMLSourceConnectionListFromJSON(jsonValue));
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* Group-source connection Viewset
|
|
1484
|
+
*/
|
|
1485
|
+
async sourcesGroupConnectionsSamlList(requestParameters: SourcesGroupConnectionsSamlListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedGroupSAMLSourceConnectionList> {
|
|
1486
|
+
const response = await this.sourcesGroupConnectionsSamlListRaw(requestParameters, initOverrides);
|
|
1487
|
+
return await response.value();
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* Group-source connection Viewset
|
|
1492
|
+
*/
|
|
1493
|
+
async sourcesGroupConnectionsSamlPartialUpdateRaw(requestParameters: SourcesGroupConnectionsSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupSAMLSourceConnection>> {
|
|
1494
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1495
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlPartialUpdate.');
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
const queryParameters: any = {};
|
|
1499
|
+
|
|
1500
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1501
|
+
|
|
1502
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1503
|
+
const token = this.configuration.accessToken;
|
|
1504
|
+
const tokenString = await token("authentik", []);
|
|
1505
|
+
|
|
1506
|
+
if (tokenString) {
|
|
1507
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
const response = await this.request({
|
|
1511
|
+
path: `/sources/group_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1512
|
+
method: 'PATCH',
|
|
1513
|
+
headers: headerParameters,
|
|
1514
|
+
query: queryParameters,
|
|
1515
|
+
}, initOverrides);
|
|
1516
|
+
|
|
1517
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupSAMLSourceConnectionFromJSON(jsonValue));
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* Group-source connection Viewset
|
|
1522
|
+
*/
|
|
1523
|
+
async sourcesGroupConnectionsSamlPartialUpdate(requestParameters: SourcesGroupConnectionsSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupSAMLSourceConnection> {
|
|
1524
|
+
const response = await this.sourcesGroupConnectionsSamlPartialUpdateRaw(requestParameters, initOverrides);
|
|
1525
|
+
return await response.value();
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* Group-source connection Viewset
|
|
1530
|
+
*/
|
|
1531
|
+
async sourcesGroupConnectionsSamlRetrieveRaw(requestParameters: SourcesGroupConnectionsSamlRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupSAMLSourceConnection>> {
|
|
1532
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1533
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlRetrieve.');
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
const queryParameters: any = {};
|
|
1537
|
+
|
|
1538
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1539
|
+
|
|
1540
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1541
|
+
const token = this.configuration.accessToken;
|
|
1542
|
+
const tokenString = await token("authentik", []);
|
|
1543
|
+
|
|
1544
|
+
if (tokenString) {
|
|
1545
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
const response = await this.request({
|
|
1549
|
+
path: `/sources/group_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1550
|
+
method: 'GET',
|
|
1551
|
+
headers: headerParameters,
|
|
1552
|
+
query: queryParameters,
|
|
1553
|
+
}, initOverrides);
|
|
1554
|
+
|
|
1555
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupSAMLSourceConnectionFromJSON(jsonValue));
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* Group-source connection Viewset
|
|
1560
|
+
*/
|
|
1561
|
+
async sourcesGroupConnectionsSamlRetrieve(requestParameters: SourcesGroupConnectionsSamlRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupSAMLSourceConnection> {
|
|
1562
|
+
const response = await this.sourcesGroupConnectionsSamlRetrieveRaw(requestParameters, initOverrides);
|
|
1563
|
+
return await response.value();
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* Group-source connection Viewset
|
|
1568
|
+
*/
|
|
1569
|
+
async sourcesGroupConnectionsSamlUpdateRaw(requestParameters: SourcesGroupConnectionsSamlUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupSAMLSourceConnection>> {
|
|
1570
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1571
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlUpdate.');
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
const queryParameters: any = {};
|
|
1575
|
+
|
|
1576
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1577
|
+
|
|
1578
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1579
|
+
const token = this.configuration.accessToken;
|
|
1580
|
+
const tokenString = await token("authentik", []);
|
|
1581
|
+
|
|
1582
|
+
if (tokenString) {
|
|
1583
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
const response = await this.request({
|
|
1587
|
+
path: `/sources/group_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1588
|
+
method: 'PUT',
|
|
1589
|
+
headers: headerParameters,
|
|
1590
|
+
query: queryParameters,
|
|
1591
|
+
}, initOverrides);
|
|
1592
|
+
|
|
1593
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupSAMLSourceConnectionFromJSON(jsonValue));
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Group-source connection Viewset
|
|
1598
|
+
*/
|
|
1599
|
+
async sourcesGroupConnectionsSamlUpdate(requestParameters: SourcesGroupConnectionsSamlUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupSAMLSourceConnection> {
|
|
1600
|
+
const response = await this.sourcesGroupConnectionsSamlUpdateRaw(requestParameters, initOverrides);
|
|
1601
|
+
return await response.value();
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* Get a list of all objects that use this object
|
|
1606
|
+
*/
|
|
1607
|
+
async sourcesGroupConnectionsSamlUsedByListRaw(requestParameters: SourcesGroupConnectionsSamlUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
|
1608
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1609
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlUsedByList.');
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
const queryParameters: any = {};
|
|
1613
|
+
|
|
1614
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1615
|
+
|
|
1616
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1617
|
+
const token = this.configuration.accessToken;
|
|
1618
|
+
const tokenString = await token("authentik", []);
|
|
1619
|
+
|
|
1620
|
+
if (tokenString) {
|
|
1621
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
const response = await this.request({
|
|
1625
|
+
path: `/sources/group_connections/saml/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1626
|
+
method: 'GET',
|
|
1627
|
+
headers: headerParameters,
|
|
1628
|
+
query: queryParameters,
|
|
1629
|
+
}, initOverrides);
|
|
1630
|
+
|
|
1631
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* Get a list of all objects that use this object
|
|
1636
|
+
*/
|
|
1637
|
+
async sourcesGroupConnectionsSamlUsedByList(requestParameters: SourcesGroupConnectionsSamlUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
|
1638
|
+
const response = await this.sourcesGroupConnectionsSamlUsedByListRaw(requestParameters, initOverrides);
|
|
1639
|
+
return await response.value();
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1043
1642
|
/**
|
|
1044
1643
|
* LDAP Source Viewset
|
|
1045
1644
|
*/
|
|
@@ -1610,6 +2209,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
1610
2209
|
queryParameters['enrollment_flow'] = requestParameters.enrollmentFlow;
|
|
1611
2210
|
}
|
|
1612
2211
|
|
|
2212
|
+
if (requestParameters.groupMatchingMode !== undefined) {
|
|
2213
|
+
queryParameters['group_matching_mode'] = requestParameters.groupMatchingMode;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
1613
2216
|
if (requestParameters.hasJwks !== undefined) {
|
|
1614
2217
|
queryParameters['has_jwks'] = requestParameters.hasJwks;
|
|
1615
2218
|
}
|
|
@@ -4754,6 +5357,16 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
4754
5357
|
|
|
4755
5358
|
}
|
|
4756
5359
|
|
|
5360
|
+
/**
|
|
5361
|
+
* @export
|
|
5362
|
+
*/
|
|
5363
|
+
export const SourcesOauthListGroupMatchingModeEnum = {
|
|
5364
|
+
Identifier: 'identifier',
|
|
5365
|
+
NameDeny: 'name_deny',
|
|
5366
|
+
NameLink: 'name_link',
|
|
5367
|
+
UnknownDefaultOpenApi: '11184809'
|
|
5368
|
+
} as const;
|
|
5369
|
+
export type SourcesOauthListGroupMatchingModeEnum = typeof SourcesOauthListGroupMatchingModeEnum[keyof typeof SourcesOauthListGroupMatchingModeEnum];
|
|
4757
5370
|
/**
|
|
4758
5371
|
* @export
|
|
4759
5372
|
*/
|