@goauthentik/api 2024.6.1-1721909829 → 2024.6.1-1721916595
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +4 -4
- package/dist/apis/PropertymappingsApi.d.ts +87 -87
- package/dist/apis/PropertymappingsApi.js +274 -274
- package/dist/apis/RbacApi.d.ts +2 -2
- package/dist/apis/RbacApi.js +2 -2
- package/dist/esm/apis/PropertymappingsApi.d.ts +87 -87
- package/dist/esm/apis/PropertymappingsApi.js +275 -275
- package/dist/esm/apis/RbacApi.d.ts +2 -2
- package/dist/esm/apis/RbacApi.js +2 -2
- package/dist/esm/models/{LDAPPropertyMapping.d.ts → LDAPSourcePropertyMapping.d.ts} +15 -15
- package/dist/esm/models/{LDAPPropertyMapping.js → LDAPSourcePropertyMapping.js} +6 -6
- package/dist/{models/LDAPPropertyMappingRequest.d.ts → esm/models/LDAPSourcePropertyMappingRequest.d.ts} +10 -10
- package/dist/esm/models/{LDAPPropertyMappingRequest.js → LDAPSourcePropertyMappingRequest.js} +6 -6
- package/dist/esm/models/ModelEnum.d.ts +1 -1
- package/dist/esm/models/ModelEnum.js +1 -1
- package/dist/esm/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/{PaginatedLDAPPropertyMappingList.js → PaginatedLDAPSourcePropertyMappingList.js} +9 -9
- package/dist/esm/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/{PatchedLDAPPropertyMappingRequest.js → PatchedLDAPSourcePropertyMappingRequest.js} +6 -6
- package/dist/esm/models/index.d.ts +4 -4
- package/dist/esm/models/index.js +4 -4
- package/dist/models/{LDAPPropertyMapping.d.ts → LDAPSourcePropertyMapping.d.ts} +15 -15
- package/dist/models/{LDAPPropertyMapping.js → LDAPSourcePropertyMapping.js} +11 -11
- package/dist/{esm/models/LDAPPropertyMappingRequest.d.ts → models/LDAPSourcePropertyMappingRequest.d.ts} +10 -10
- package/dist/models/{LDAPPropertyMappingRequest.js → LDAPSourcePropertyMappingRequest.js} +11 -11
- package/dist/models/ModelEnum.d.ts +1 -1
- package/dist/models/ModelEnum.js +1 -1
- package/dist/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedLDAPSourcePropertyMappingList.js +55 -0
- package/dist/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedLDAPSourcePropertyMappingRequest.js +54 -0
- package/dist/models/index.d.ts +4 -4
- package/dist/models/index.js +4 -4
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +541 -541
- package/src/apis/RbacApi.ts +2 -2
- package/src/models/{LDAPPropertyMapping.ts → LDAPSourcePropertyMapping.ts} +16 -16
- package/src/models/{LDAPPropertyMappingRequest.ts → LDAPSourcePropertyMappingRequest.ts} +11 -11
- package/src/models/ModelEnum.ts +1 -1
- package/src/models/PaginatedLDAPSourcePropertyMappingList.ts +88 -0
- package/src/models/{PatchedLDAPPropertyMappingRequest.ts → PatchedLDAPSourcePropertyMappingRequest.ts} +11 -11
- package/src/models/index.ts +4 -4
- package/dist/esm/models/PaginatedLDAPPropertyMappingList.d.ts +0 -39
- package/dist/esm/models/PatchedLDAPPropertyMappingRequest.d.ts +0 -43
- package/dist/models/PaginatedLDAPPropertyMappingList.d.ts +0 -39
- package/dist/models/PaginatedLDAPPropertyMappingList.js +0 -55
- package/dist/models/PatchedLDAPPropertyMappingRequest.d.ts +0 -43
- package/dist/models/PatchedLDAPPropertyMappingRequest.js +0 -54
- package/src/models/PaginatedLDAPPropertyMappingList.ts +0 -88
@@ -252,280 +252,6 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
252
252
|
return yield response.value();
|
253
253
|
});
|
254
254
|
}
|
255
|
-
/**
|
256
|
-
* LDAP PropertyMapping Viewset
|
257
|
-
*/
|
258
|
-
propertymappingsLdapCreateRaw(requestParameters, initOverrides) {
|
259
|
-
return __awaiter(this, void 0, void 0, function* () {
|
260
|
-
if (requestParameters.lDAPPropertyMappingRequest === null || requestParameters.lDAPPropertyMappingRequest === undefined) {
|
261
|
-
throw new runtime.RequiredError('lDAPPropertyMappingRequest', 'Required parameter requestParameters.lDAPPropertyMappingRequest was null or undefined when calling propertymappingsLdapCreate.');
|
262
|
-
}
|
263
|
-
const queryParameters = {};
|
264
|
-
const headerParameters = {};
|
265
|
-
headerParameters['Content-Type'] = 'application/json';
|
266
|
-
if (this.configuration && this.configuration.accessToken) {
|
267
|
-
const token = this.configuration.accessToken;
|
268
|
-
const tokenString = yield token("authentik", []);
|
269
|
-
if (tokenString) {
|
270
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
271
|
-
}
|
272
|
-
}
|
273
|
-
const response = yield this.request({
|
274
|
-
path: `/propertymappings/ldap/`,
|
275
|
-
method: 'POST',
|
276
|
-
headers: headerParameters,
|
277
|
-
query: queryParameters,
|
278
|
-
body: (0, models_1.LDAPPropertyMappingRequestToJSON)(requestParameters.lDAPPropertyMappingRequest),
|
279
|
-
}, initOverrides);
|
280
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPPropertyMappingFromJSON)(jsonValue));
|
281
|
-
});
|
282
|
-
}
|
283
|
-
/**
|
284
|
-
* LDAP PropertyMapping Viewset
|
285
|
-
*/
|
286
|
-
propertymappingsLdapCreate(requestParameters, initOverrides) {
|
287
|
-
return __awaiter(this, void 0, void 0, function* () {
|
288
|
-
const response = yield this.propertymappingsLdapCreateRaw(requestParameters, initOverrides);
|
289
|
-
return yield response.value();
|
290
|
-
});
|
291
|
-
}
|
292
|
-
/**
|
293
|
-
* LDAP PropertyMapping Viewset
|
294
|
-
*/
|
295
|
-
propertymappingsLdapDestroyRaw(requestParameters, initOverrides) {
|
296
|
-
return __awaiter(this, void 0, void 0, function* () {
|
297
|
-
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
298
|
-
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsLdapDestroy.');
|
299
|
-
}
|
300
|
-
const queryParameters = {};
|
301
|
-
const headerParameters = {};
|
302
|
-
if (this.configuration && this.configuration.accessToken) {
|
303
|
-
const token = this.configuration.accessToken;
|
304
|
-
const tokenString = yield token("authentik", []);
|
305
|
-
if (tokenString) {
|
306
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
307
|
-
}
|
308
|
-
}
|
309
|
-
const response = yield this.request({
|
310
|
-
path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
311
|
-
method: 'DELETE',
|
312
|
-
headers: headerParameters,
|
313
|
-
query: queryParameters,
|
314
|
-
}, initOverrides);
|
315
|
-
return new runtime.VoidApiResponse(response);
|
316
|
-
});
|
317
|
-
}
|
318
|
-
/**
|
319
|
-
* LDAP PropertyMapping Viewset
|
320
|
-
*/
|
321
|
-
propertymappingsLdapDestroy(requestParameters, initOverrides) {
|
322
|
-
return __awaiter(this, void 0, void 0, function* () {
|
323
|
-
yield this.propertymappingsLdapDestroyRaw(requestParameters, initOverrides);
|
324
|
-
});
|
325
|
-
}
|
326
|
-
/**
|
327
|
-
* LDAP PropertyMapping Viewset
|
328
|
-
*/
|
329
|
-
propertymappingsLdapListRaw(requestParameters, initOverrides) {
|
330
|
-
return __awaiter(this, void 0, void 0, function* () {
|
331
|
-
const queryParameters = {};
|
332
|
-
if (requestParameters.expression !== undefined) {
|
333
|
-
queryParameters['expression'] = requestParameters.expression;
|
334
|
-
}
|
335
|
-
if (requestParameters.managed) {
|
336
|
-
queryParameters['managed'] = requestParameters.managed;
|
337
|
-
}
|
338
|
-
if (requestParameters.name !== undefined) {
|
339
|
-
queryParameters['name'] = requestParameters.name;
|
340
|
-
}
|
341
|
-
if (requestParameters.ordering !== undefined) {
|
342
|
-
queryParameters['ordering'] = requestParameters.ordering;
|
343
|
-
}
|
344
|
-
if (requestParameters.page !== undefined) {
|
345
|
-
queryParameters['page'] = requestParameters.page;
|
346
|
-
}
|
347
|
-
if (requestParameters.pageSize !== undefined) {
|
348
|
-
queryParameters['page_size'] = requestParameters.pageSize;
|
349
|
-
}
|
350
|
-
if (requestParameters.pmUuid !== undefined) {
|
351
|
-
queryParameters['pm_uuid'] = requestParameters.pmUuid;
|
352
|
-
}
|
353
|
-
if (requestParameters.search !== undefined) {
|
354
|
-
queryParameters['search'] = requestParameters.search;
|
355
|
-
}
|
356
|
-
const headerParameters = {};
|
357
|
-
if (this.configuration && this.configuration.accessToken) {
|
358
|
-
const token = this.configuration.accessToken;
|
359
|
-
const tokenString = yield token("authentik", []);
|
360
|
-
if (tokenString) {
|
361
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
362
|
-
}
|
363
|
-
}
|
364
|
-
const response = yield this.request({
|
365
|
-
path: `/propertymappings/ldap/`,
|
366
|
-
method: 'GET',
|
367
|
-
headers: headerParameters,
|
368
|
-
query: queryParameters,
|
369
|
-
}, initOverrides);
|
370
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedLDAPPropertyMappingListFromJSON)(jsonValue));
|
371
|
-
});
|
372
|
-
}
|
373
|
-
/**
|
374
|
-
* LDAP PropertyMapping Viewset
|
375
|
-
*/
|
376
|
-
propertymappingsLdapList(requestParameters = {}, initOverrides) {
|
377
|
-
return __awaiter(this, void 0, void 0, function* () {
|
378
|
-
const response = yield this.propertymappingsLdapListRaw(requestParameters, initOverrides);
|
379
|
-
return yield response.value();
|
380
|
-
});
|
381
|
-
}
|
382
|
-
/**
|
383
|
-
* LDAP PropertyMapping Viewset
|
384
|
-
*/
|
385
|
-
propertymappingsLdapPartialUpdateRaw(requestParameters, initOverrides) {
|
386
|
-
return __awaiter(this, void 0, void 0, function* () {
|
387
|
-
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
388
|
-
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsLdapPartialUpdate.');
|
389
|
-
}
|
390
|
-
const queryParameters = {};
|
391
|
-
const headerParameters = {};
|
392
|
-
headerParameters['Content-Type'] = 'application/json';
|
393
|
-
if (this.configuration && this.configuration.accessToken) {
|
394
|
-
const token = this.configuration.accessToken;
|
395
|
-
const tokenString = yield token("authentik", []);
|
396
|
-
if (tokenString) {
|
397
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
398
|
-
}
|
399
|
-
}
|
400
|
-
const response = yield this.request({
|
401
|
-
path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
402
|
-
method: 'PATCH',
|
403
|
-
headers: headerParameters,
|
404
|
-
query: queryParameters,
|
405
|
-
body: (0, models_1.PatchedLDAPPropertyMappingRequestToJSON)(requestParameters.patchedLDAPPropertyMappingRequest),
|
406
|
-
}, initOverrides);
|
407
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPPropertyMappingFromJSON)(jsonValue));
|
408
|
-
});
|
409
|
-
}
|
410
|
-
/**
|
411
|
-
* LDAP PropertyMapping Viewset
|
412
|
-
*/
|
413
|
-
propertymappingsLdapPartialUpdate(requestParameters, initOverrides) {
|
414
|
-
return __awaiter(this, void 0, void 0, function* () {
|
415
|
-
const response = yield this.propertymappingsLdapPartialUpdateRaw(requestParameters, initOverrides);
|
416
|
-
return yield response.value();
|
417
|
-
});
|
418
|
-
}
|
419
|
-
/**
|
420
|
-
* LDAP PropertyMapping Viewset
|
421
|
-
*/
|
422
|
-
propertymappingsLdapRetrieveRaw(requestParameters, initOverrides) {
|
423
|
-
return __awaiter(this, void 0, void 0, function* () {
|
424
|
-
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
425
|
-
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsLdapRetrieve.');
|
426
|
-
}
|
427
|
-
const queryParameters = {};
|
428
|
-
const headerParameters = {};
|
429
|
-
if (this.configuration && this.configuration.accessToken) {
|
430
|
-
const token = this.configuration.accessToken;
|
431
|
-
const tokenString = yield token("authentik", []);
|
432
|
-
if (tokenString) {
|
433
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
434
|
-
}
|
435
|
-
}
|
436
|
-
const response = yield this.request({
|
437
|
-
path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
438
|
-
method: 'GET',
|
439
|
-
headers: headerParameters,
|
440
|
-
query: queryParameters,
|
441
|
-
}, initOverrides);
|
442
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPPropertyMappingFromJSON)(jsonValue));
|
443
|
-
});
|
444
|
-
}
|
445
|
-
/**
|
446
|
-
* LDAP PropertyMapping Viewset
|
447
|
-
*/
|
448
|
-
propertymappingsLdapRetrieve(requestParameters, initOverrides) {
|
449
|
-
return __awaiter(this, void 0, void 0, function* () {
|
450
|
-
const response = yield this.propertymappingsLdapRetrieveRaw(requestParameters, initOverrides);
|
451
|
-
return yield response.value();
|
452
|
-
});
|
453
|
-
}
|
454
|
-
/**
|
455
|
-
* LDAP PropertyMapping Viewset
|
456
|
-
*/
|
457
|
-
propertymappingsLdapUpdateRaw(requestParameters, initOverrides) {
|
458
|
-
return __awaiter(this, void 0, void 0, function* () {
|
459
|
-
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
460
|
-
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsLdapUpdate.');
|
461
|
-
}
|
462
|
-
if (requestParameters.lDAPPropertyMappingRequest === null || requestParameters.lDAPPropertyMappingRequest === undefined) {
|
463
|
-
throw new runtime.RequiredError('lDAPPropertyMappingRequest', 'Required parameter requestParameters.lDAPPropertyMappingRequest was null or undefined when calling propertymappingsLdapUpdate.');
|
464
|
-
}
|
465
|
-
const queryParameters = {};
|
466
|
-
const headerParameters = {};
|
467
|
-
headerParameters['Content-Type'] = 'application/json';
|
468
|
-
if (this.configuration && this.configuration.accessToken) {
|
469
|
-
const token = this.configuration.accessToken;
|
470
|
-
const tokenString = yield token("authentik", []);
|
471
|
-
if (tokenString) {
|
472
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
473
|
-
}
|
474
|
-
}
|
475
|
-
const response = yield this.request({
|
476
|
-
path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
477
|
-
method: 'PUT',
|
478
|
-
headers: headerParameters,
|
479
|
-
query: queryParameters,
|
480
|
-
body: (0, models_1.LDAPPropertyMappingRequestToJSON)(requestParameters.lDAPPropertyMappingRequest),
|
481
|
-
}, initOverrides);
|
482
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPPropertyMappingFromJSON)(jsonValue));
|
483
|
-
});
|
484
|
-
}
|
485
|
-
/**
|
486
|
-
* LDAP PropertyMapping Viewset
|
487
|
-
*/
|
488
|
-
propertymappingsLdapUpdate(requestParameters, initOverrides) {
|
489
|
-
return __awaiter(this, void 0, void 0, function* () {
|
490
|
-
const response = yield this.propertymappingsLdapUpdateRaw(requestParameters, initOverrides);
|
491
|
-
return yield response.value();
|
492
|
-
});
|
493
|
-
}
|
494
|
-
/**
|
495
|
-
* Get a list of all objects that use this object
|
496
|
-
*/
|
497
|
-
propertymappingsLdapUsedByListRaw(requestParameters, initOverrides) {
|
498
|
-
return __awaiter(this, void 0, void 0, function* () {
|
499
|
-
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
500
|
-
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsLdapUsedByList.');
|
501
|
-
}
|
502
|
-
const queryParameters = {};
|
503
|
-
const headerParameters = {};
|
504
|
-
if (this.configuration && this.configuration.accessToken) {
|
505
|
-
const token = this.configuration.accessToken;
|
506
|
-
const tokenString = yield token("authentik", []);
|
507
|
-
if (tokenString) {
|
508
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
509
|
-
}
|
510
|
-
}
|
511
|
-
const response = yield this.request({
|
512
|
-
path: `/propertymappings/ldap/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
513
|
-
method: 'GET',
|
514
|
-
headers: headerParameters,
|
515
|
-
query: queryParameters,
|
516
|
-
}, initOverrides);
|
517
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
|
518
|
-
});
|
519
|
-
}
|
520
|
-
/**
|
521
|
-
* Get a list of all objects that use this object
|
522
|
-
*/
|
523
|
-
propertymappingsLdapUsedByList(requestParameters, initOverrides) {
|
524
|
-
return __awaiter(this, void 0, void 0, function* () {
|
525
|
-
const response = yield this.propertymappingsLdapUsedByListRaw(requestParameters, initOverrides);
|
526
|
-
return yield response.value();
|
527
|
-
});
|
528
|
-
}
|
529
255
|
/**
|
530
256
|
* NotificationWebhookMapping Viewset
|
531
257
|
*/
|
@@ -2432,5 +2158,279 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
2432
2158
|
return yield response.value();
|
2433
2159
|
});
|
2434
2160
|
}
|
2161
|
+
/**
|
2162
|
+
* LDAP PropertyMapping Viewset
|
2163
|
+
*/
|
2164
|
+
propertymappingsSourceLdapCreateRaw(requestParameters, initOverrides) {
|
2165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2166
|
+
if (requestParameters.lDAPSourcePropertyMappingRequest === null || requestParameters.lDAPSourcePropertyMappingRequest === undefined) {
|
2167
|
+
throw new runtime.RequiredError('lDAPSourcePropertyMappingRequest', 'Required parameter requestParameters.lDAPSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceLdapCreate.');
|
2168
|
+
}
|
2169
|
+
const queryParameters = {};
|
2170
|
+
const headerParameters = {};
|
2171
|
+
headerParameters['Content-Type'] = 'application/json';
|
2172
|
+
if (this.configuration && this.configuration.accessToken) {
|
2173
|
+
const token = this.configuration.accessToken;
|
2174
|
+
const tokenString = yield token("authentik", []);
|
2175
|
+
if (tokenString) {
|
2176
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2177
|
+
}
|
2178
|
+
}
|
2179
|
+
const response = yield this.request({
|
2180
|
+
path: `/propertymappings/source/ldap/`,
|
2181
|
+
method: 'POST',
|
2182
|
+
headers: headerParameters,
|
2183
|
+
query: queryParameters,
|
2184
|
+
body: (0, models_1.LDAPSourcePropertyMappingRequestToJSON)(requestParameters.lDAPSourcePropertyMappingRequest),
|
2185
|
+
}, initOverrides);
|
2186
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPSourcePropertyMappingFromJSON)(jsonValue));
|
2187
|
+
});
|
2188
|
+
}
|
2189
|
+
/**
|
2190
|
+
* LDAP PropertyMapping Viewset
|
2191
|
+
*/
|
2192
|
+
propertymappingsSourceLdapCreate(requestParameters, initOverrides) {
|
2193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2194
|
+
const response = yield this.propertymappingsSourceLdapCreateRaw(requestParameters, initOverrides);
|
2195
|
+
return yield response.value();
|
2196
|
+
});
|
2197
|
+
}
|
2198
|
+
/**
|
2199
|
+
* LDAP PropertyMapping Viewset
|
2200
|
+
*/
|
2201
|
+
propertymappingsSourceLdapDestroyRaw(requestParameters, initOverrides) {
|
2202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2203
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2204
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapDestroy.');
|
2205
|
+
}
|
2206
|
+
const queryParameters = {};
|
2207
|
+
const headerParameters = {};
|
2208
|
+
if (this.configuration && this.configuration.accessToken) {
|
2209
|
+
const token = this.configuration.accessToken;
|
2210
|
+
const tokenString = yield token("authentik", []);
|
2211
|
+
if (tokenString) {
|
2212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2213
|
+
}
|
2214
|
+
}
|
2215
|
+
const response = yield this.request({
|
2216
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2217
|
+
method: 'DELETE',
|
2218
|
+
headers: headerParameters,
|
2219
|
+
query: queryParameters,
|
2220
|
+
}, initOverrides);
|
2221
|
+
return new runtime.VoidApiResponse(response);
|
2222
|
+
});
|
2223
|
+
}
|
2224
|
+
/**
|
2225
|
+
* LDAP PropertyMapping Viewset
|
2226
|
+
*/
|
2227
|
+
propertymappingsSourceLdapDestroy(requestParameters, initOverrides) {
|
2228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2229
|
+
yield this.propertymappingsSourceLdapDestroyRaw(requestParameters, initOverrides);
|
2230
|
+
});
|
2231
|
+
}
|
2232
|
+
/**
|
2233
|
+
* LDAP PropertyMapping Viewset
|
2234
|
+
*/
|
2235
|
+
propertymappingsSourceLdapListRaw(requestParameters, initOverrides) {
|
2236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2237
|
+
const queryParameters = {};
|
2238
|
+
if (requestParameters.expression !== undefined) {
|
2239
|
+
queryParameters['expression'] = requestParameters.expression;
|
2240
|
+
}
|
2241
|
+
if (requestParameters.managed) {
|
2242
|
+
queryParameters['managed'] = requestParameters.managed;
|
2243
|
+
}
|
2244
|
+
if (requestParameters.name !== undefined) {
|
2245
|
+
queryParameters['name'] = requestParameters.name;
|
2246
|
+
}
|
2247
|
+
if (requestParameters.ordering !== undefined) {
|
2248
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
2249
|
+
}
|
2250
|
+
if (requestParameters.page !== undefined) {
|
2251
|
+
queryParameters['page'] = requestParameters.page;
|
2252
|
+
}
|
2253
|
+
if (requestParameters.pageSize !== undefined) {
|
2254
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
2255
|
+
}
|
2256
|
+
if (requestParameters.pmUuid !== undefined) {
|
2257
|
+
queryParameters['pm_uuid'] = requestParameters.pmUuid;
|
2258
|
+
}
|
2259
|
+
if (requestParameters.search !== undefined) {
|
2260
|
+
queryParameters['search'] = requestParameters.search;
|
2261
|
+
}
|
2262
|
+
const headerParameters = {};
|
2263
|
+
if (this.configuration && this.configuration.accessToken) {
|
2264
|
+
const token = this.configuration.accessToken;
|
2265
|
+
const tokenString = yield token("authentik", []);
|
2266
|
+
if (tokenString) {
|
2267
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2268
|
+
}
|
2269
|
+
}
|
2270
|
+
const response = yield this.request({
|
2271
|
+
path: `/propertymappings/source/ldap/`,
|
2272
|
+
method: 'GET',
|
2273
|
+
headers: headerParameters,
|
2274
|
+
query: queryParameters,
|
2275
|
+
}, initOverrides);
|
2276
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedLDAPSourcePropertyMappingListFromJSON)(jsonValue));
|
2277
|
+
});
|
2278
|
+
}
|
2279
|
+
/**
|
2280
|
+
* LDAP PropertyMapping Viewset
|
2281
|
+
*/
|
2282
|
+
propertymappingsSourceLdapList(requestParameters = {}, initOverrides) {
|
2283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2284
|
+
const response = yield this.propertymappingsSourceLdapListRaw(requestParameters, initOverrides);
|
2285
|
+
return yield response.value();
|
2286
|
+
});
|
2287
|
+
}
|
2288
|
+
/**
|
2289
|
+
* LDAP PropertyMapping Viewset
|
2290
|
+
*/
|
2291
|
+
propertymappingsSourceLdapPartialUpdateRaw(requestParameters, initOverrides) {
|
2292
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2293
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2294
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapPartialUpdate.');
|
2295
|
+
}
|
2296
|
+
const queryParameters = {};
|
2297
|
+
const headerParameters = {};
|
2298
|
+
headerParameters['Content-Type'] = 'application/json';
|
2299
|
+
if (this.configuration && this.configuration.accessToken) {
|
2300
|
+
const token = this.configuration.accessToken;
|
2301
|
+
const tokenString = yield token("authentik", []);
|
2302
|
+
if (tokenString) {
|
2303
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2304
|
+
}
|
2305
|
+
}
|
2306
|
+
const response = yield this.request({
|
2307
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2308
|
+
method: 'PATCH',
|
2309
|
+
headers: headerParameters,
|
2310
|
+
query: queryParameters,
|
2311
|
+
body: (0, models_1.PatchedLDAPSourcePropertyMappingRequestToJSON)(requestParameters.patchedLDAPSourcePropertyMappingRequest),
|
2312
|
+
}, initOverrides);
|
2313
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPSourcePropertyMappingFromJSON)(jsonValue));
|
2314
|
+
});
|
2315
|
+
}
|
2316
|
+
/**
|
2317
|
+
* LDAP PropertyMapping Viewset
|
2318
|
+
*/
|
2319
|
+
propertymappingsSourceLdapPartialUpdate(requestParameters, initOverrides) {
|
2320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2321
|
+
const response = yield this.propertymappingsSourceLdapPartialUpdateRaw(requestParameters, initOverrides);
|
2322
|
+
return yield response.value();
|
2323
|
+
});
|
2324
|
+
}
|
2325
|
+
/**
|
2326
|
+
* LDAP PropertyMapping Viewset
|
2327
|
+
*/
|
2328
|
+
propertymappingsSourceLdapRetrieveRaw(requestParameters, initOverrides) {
|
2329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2330
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2331
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapRetrieve.');
|
2332
|
+
}
|
2333
|
+
const queryParameters = {};
|
2334
|
+
const headerParameters = {};
|
2335
|
+
if (this.configuration && this.configuration.accessToken) {
|
2336
|
+
const token = this.configuration.accessToken;
|
2337
|
+
const tokenString = yield token("authentik", []);
|
2338
|
+
if (tokenString) {
|
2339
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2340
|
+
}
|
2341
|
+
}
|
2342
|
+
const response = yield this.request({
|
2343
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2344
|
+
method: 'GET',
|
2345
|
+
headers: headerParameters,
|
2346
|
+
query: queryParameters,
|
2347
|
+
}, initOverrides);
|
2348
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPSourcePropertyMappingFromJSON)(jsonValue));
|
2349
|
+
});
|
2350
|
+
}
|
2351
|
+
/**
|
2352
|
+
* LDAP PropertyMapping Viewset
|
2353
|
+
*/
|
2354
|
+
propertymappingsSourceLdapRetrieve(requestParameters, initOverrides) {
|
2355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2356
|
+
const response = yield this.propertymappingsSourceLdapRetrieveRaw(requestParameters, initOverrides);
|
2357
|
+
return yield response.value();
|
2358
|
+
});
|
2359
|
+
}
|
2360
|
+
/**
|
2361
|
+
* LDAP PropertyMapping Viewset
|
2362
|
+
*/
|
2363
|
+
propertymappingsSourceLdapUpdateRaw(requestParameters, initOverrides) {
|
2364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2365
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2366
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapUpdate.');
|
2367
|
+
}
|
2368
|
+
if (requestParameters.lDAPSourcePropertyMappingRequest === null || requestParameters.lDAPSourcePropertyMappingRequest === undefined) {
|
2369
|
+
throw new runtime.RequiredError('lDAPSourcePropertyMappingRequest', 'Required parameter requestParameters.lDAPSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceLdapUpdate.');
|
2370
|
+
}
|
2371
|
+
const queryParameters = {};
|
2372
|
+
const headerParameters = {};
|
2373
|
+
headerParameters['Content-Type'] = 'application/json';
|
2374
|
+
if (this.configuration && this.configuration.accessToken) {
|
2375
|
+
const token = this.configuration.accessToken;
|
2376
|
+
const tokenString = yield token("authentik", []);
|
2377
|
+
if (tokenString) {
|
2378
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2379
|
+
}
|
2380
|
+
}
|
2381
|
+
const response = yield this.request({
|
2382
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2383
|
+
method: 'PUT',
|
2384
|
+
headers: headerParameters,
|
2385
|
+
query: queryParameters,
|
2386
|
+
body: (0, models_1.LDAPSourcePropertyMappingRequestToJSON)(requestParameters.lDAPSourcePropertyMappingRequest),
|
2387
|
+
}, initOverrides);
|
2388
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPSourcePropertyMappingFromJSON)(jsonValue));
|
2389
|
+
});
|
2390
|
+
}
|
2391
|
+
/**
|
2392
|
+
* LDAP PropertyMapping Viewset
|
2393
|
+
*/
|
2394
|
+
propertymappingsSourceLdapUpdate(requestParameters, initOverrides) {
|
2395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2396
|
+
const response = yield this.propertymappingsSourceLdapUpdateRaw(requestParameters, initOverrides);
|
2397
|
+
return yield response.value();
|
2398
|
+
});
|
2399
|
+
}
|
2400
|
+
/**
|
2401
|
+
* Get a list of all objects that use this object
|
2402
|
+
*/
|
2403
|
+
propertymappingsSourceLdapUsedByListRaw(requestParameters, initOverrides) {
|
2404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2405
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2406
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapUsedByList.');
|
2407
|
+
}
|
2408
|
+
const queryParameters = {};
|
2409
|
+
const headerParameters = {};
|
2410
|
+
if (this.configuration && this.configuration.accessToken) {
|
2411
|
+
const token = this.configuration.accessToken;
|
2412
|
+
const tokenString = yield token("authentik", []);
|
2413
|
+
if (tokenString) {
|
2414
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2415
|
+
}
|
2416
|
+
}
|
2417
|
+
const response = yield this.request({
|
2418
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2419
|
+
method: 'GET',
|
2420
|
+
headers: headerParameters,
|
2421
|
+
query: queryParameters,
|
2422
|
+
}, initOverrides);
|
2423
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
|
2424
|
+
});
|
2425
|
+
}
|
2426
|
+
/**
|
2427
|
+
* Get a list of all objects that use this object
|
2428
|
+
*/
|
2429
|
+
propertymappingsSourceLdapUsedByList(requestParameters, initOverrides) {
|
2430
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2431
|
+
const response = yield this.propertymappingsSourceLdapUsedByListRaw(requestParameters, initOverrides);
|
2432
|
+
return yield response.value();
|
2433
|
+
});
|
2434
|
+
}
|
2435
2435
|
}
|
2436
2436
|
exports.PropertymappingsApi = PropertymappingsApi;
|
package/dist/apis/RbacApi.d.ts
CHANGED
@@ -285,8 +285,8 @@ export declare const RbacPermissionsAssignedByRolesListModelEnum: {
|
|
285
285
|
readonly ProvidersScimScimmapping: "authentik_providers_scim.scimmapping";
|
286
286
|
readonly ProvidersScimScimprovider: "authentik_providers_scim.scimprovider";
|
287
287
|
readonly RbacRole: "authentik_rbac.role";
|
288
|
-
readonly SourcesLdapLdappropertymapping: "authentik_sources_ldap.ldappropertymapping";
|
289
288
|
readonly SourcesLdapLdapsource: "authentik_sources_ldap.ldapsource";
|
289
|
+
readonly SourcesLdapLdapsourcepropertymapping: "authentik_sources_ldap.ldapsourcepropertymapping";
|
290
290
|
readonly SourcesOauthOauthsource: "authentik_sources_oauth.oauthsource";
|
291
291
|
readonly SourcesOauthUseroauthsourceconnection: "authentik_sources_oauth.useroauthsourceconnection";
|
292
292
|
readonly SourcesPlexPlexsource: "authentik_sources_plex.plexsource";
|
@@ -372,8 +372,8 @@ export declare const RbacPermissionsAssignedByUsersListModelEnum: {
|
|
372
372
|
readonly ProvidersScimScimmapping: "authentik_providers_scim.scimmapping";
|
373
373
|
readonly ProvidersScimScimprovider: "authentik_providers_scim.scimprovider";
|
374
374
|
readonly RbacRole: "authentik_rbac.role";
|
375
|
-
readonly SourcesLdapLdappropertymapping: "authentik_sources_ldap.ldappropertymapping";
|
376
375
|
readonly SourcesLdapLdapsource: "authentik_sources_ldap.ldapsource";
|
376
|
+
readonly SourcesLdapLdapsourcepropertymapping: "authentik_sources_ldap.ldapsourcepropertymapping";
|
377
377
|
readonly SourcesOauthOauthsource: "authentik_sources_oauth.oauthsource";
|
378
378
|
readonly SourcesOauthUseroauthsourceconnection: "authentik_sources_oauth.useroauthsourceconnection";
|
379
379
|
readonly SourcesPlexPlexsource: "authentik_sources_plex.plexsource";
|
package/dist/apis/RbacApi.js
CHANGED
@@ -792,8 +792,8 @@ exports.RbacPermissionsAssignedByRolesListModelEnum = {
|
|
792
792
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
793
793
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
794
794
|
RbacRole: 'authentik_rbac.role',
|
795
|
-
SourcesLdapLdappropertymapping: 'authentik_sources_ldap.ldappropertymapping',
|
796
795
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
796
|
+
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
797
797
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
798
798
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
799
799
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
@@ -878,8 +878,8 @@ exports.RbacPermissionsAssignedByUsersListModelEnum = {
|
|
878
878
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
879
879
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
880
880
|
RbacRole: 'authentik_rbac.role',
|
881
|
-
SourcesLdapLdappropertymapping: 'authentik_sources_ldap.ldappropertymapping',
|
882
881
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
882
|
+
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
883
883
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
884
884
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
885
885
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|