@goauthentik/api 2024.6.1-1721909829 → 2024.6.1-1721927330
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +9 -4
- package/dist/apis/OutpostsApi.d.ts +7 -28
- package/dist/apis/OutpostsApi.js +11 -78
- package/dist/apis/PropertymappingsApi.d.ts +173 -87
- package/dist/apis/PropertymappingsApi.js +575 -301
- package/dist/apis/RbacApi.d.ts +4 -2
- package/dist/apis/RbacApi.js +4 -2
- package/dist/esm/apis/OutpostsApi.d.ts +7 -28
- package/dist/esm/apis/OutpostsApi.js +12 -79
- package/dist/esm/apis/PropertymappingsApi.d.ts +173 -87
- package/dist/esm/apis/PropertymappingsApi.js +576 -302
- package/dist/esm/apis/RbacApi.d.ts +4 -2
- package/dist/esm/apis/RbacApi.js +4 -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 +2 -1
- package/dist/esm/models/ModelEnum.js +2 -1
- package/dist/esm/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/{PaginatedLDAPPropertyMappingList.js → PaginatedLDAPSourcePropertyMappingList.js} +9 -9
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/{PatchedLDAPPropertyMappingRequest.js → PatchedLDAPSourcePropertyMappingRequest.js} +6 -6
- package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.js +47 -0
- package/dist/esm/models/RadiusCheckAccess.d.ts +38 -0
- package/dist/esm/models/RadiusCheckAccess.js +47 -0
- package/dist/esm/models/RadiusProviderPropertyMapping.d.ts +73 -0
- package/dist/esm/models/RadiusProviderPropertyMapping.js +59 -0
- package/dist/esm/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/RadiusProviderPropertyMappingRequest.js +49 -0
- package/dist/esm/models/index.d.ts +9 -4
- package/dist/esm/models/index.js +9 -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 +2 -1
- package/dist/models/ModelEnum.js +2 -1
- package/dist/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedLDAPSourcePropertyMappingList.js +55 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.js +55 -0
- package/dist/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedLDAPSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedRadiusProviderPropertyMappingRequest.js +54 -0
- package/dist/models/RadiusCheckAccess.d.ts +38 -0
- package/dist/models/RadiusCheckAccess.js +54 -0
- package/dist/models/RadiusProviderPropertyMapping.d.ts +73 -0
- package/dist/models/RadiusProviderPropertyMapping.js +66 -0
- package/dist/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/models/RadiusProviderPropertyMappingRequest.js +56 -0
- package/dist/models/index.d.ts +9 -4
- package/dist/models/index.js +9 -4
- package/package.json +1 -1
- package/src/apis/OutpostsApi.ts +17 -102
- package/src/apis/PropertymappingsApi.ts +888 -533
- package/src/apis/RbacApi.ts +4 -2
- package/src/models/{LDAPPropertyMapping.ts → LDAPSourcePropertyMapping.ts} +16 -16
- package/src/models/{LDAPPropertyMappingRequest.ts → LDAPSourcePropertyMappingRequest.ts} +11 -11
- package/src/models/ModelEnum.ts +2 -1
- package/src/models/PaginatedLDAPSourcePropertyMappingList.ts +88 -0
- package/src/models/PaginatedRadiusProviderPropertyMappingList.ts +88 -0
- package/src/models/{PatchedLDAPPropertyMappingRequest.ts → PatchedLDAPSourcePropertyMappingRequest.ts} +11 -11
- package/src/models/PatchedRadiusProviderPropertyMappingRequest.ts +81 -0
- package/src/models/RadiusCheckAccess.ts +81 -0
- package/src/models/RadiusProviderPropertyMapping.ts +123 -0
- package/src/models/RadiusProviderPropertyMappingRequest.ts +83 -0
- package/src/models/index.ts +9 -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
|
*/
|
@@ -1608,12 +1334,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
1608
1334
|
});
|
1609
1335
|
}
|
1610
1336
|
/**
|
1611
|
-
*
|
1337
|
+
* RadiusProviderPropertyMapping Viewset
|
1612
1338
|
*/
|
1613
|
-
|
1339
|
+
propertymappingsRadiusCreateRaw(requestParameters, initOverrides) {
|
1614
1340
|
return __awaiter(this, void 0, void 0, function* () {
|
1615
|
-
if (requestParameters.
|
1616
|
-
throw new runtime.RequiredError('
|
1341
|
+
if (requestParameters.radiusProviderPropertyMappingRequest === null || requestParameters.radiusProviderPropertyMappingRequest === undefined) {
|
1342
|
+
throw new runtime.RequiredError('radiusProviderPropertyMappingRequest', 'Required parameter requestParameters.radiusProviderPropertyMappingRequest was null or undefined when calling propertymappingsRadiusCreate.');
|
1617
1343
|
}
|
1618
1344
|
const queryParameters = {};
|
1619
1345
|
const headerParameters = {};
|
@@ -1626,31 +1352,31 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
1626
1352
|
}
|
1627
1353
|
}
|
1628
1354
|
const response = yield this.request({
|
1629
|
-
path: `/propertymappings/
|
1355
|
+
path: `/propertymappings/radius/`,
|
1630
1356
|
method: 'POST',
|
1631
1357
|
headers: headerParameters,
|
1632
1358
|
query: queryParameters,
|
1633
|
-
body: (0, models_1.
|
1359
|
+
body: (0, models_1.RadiusProviderPropertyMappingRequestToJSON)(requestParameters.radiusProviderPropertyMappingRequest),
|
1634
1360
|
}, initOverrides);
|
1635
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.
|
1361
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RadiusProviderPropertyMappingFromJSON)(jsonValue));
|
1636
1362
|
});
|
1637
1363
|
}
|
1638
1364
|
/**
|
1639
|
-
*
|
1365
|
+
* RadiusProviderPropertyMapping Viewset
|
1640
1366
|
*/
|
1641
|
-
|
1367
|
+
propertymappingsRadiusCreate(requestParameters, initOverrides) {
|
1642
1368
|
return __awaiter(this, void 0, void 0, function* () {
|
1643
|
-
const response = yield this.
|
1369
|
+
const response = yield this.propertymappingsRadiusCreateRaw(requestParameters, initOverrides);
|
1644
1370
|
return yield response.value();
|
1645
1371
|
});
|
1646
1372
|
}
|
1647
1373
|
/**
|
1648
|
-
*
|
1374
|
+
* RadiusProviderPropertyMapping Viewset
|
1649
1375
|
*/
|
1650
|
-
|
1376
|
+
propertymappingsRadiusDestroyRaw(requestParameters, initOverrides) {
|
1651
1377
|
return __awaiter(this, void 0, void 0, function* () {
|
1652
1378
|
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
1653
|
-
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling
|
1379
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusDestroy.');
|
1654
1380
|
}
|
1655
1381
|
const queryParameters = {};
|
1656
1382
|
const headerParameters = {};
|
@@ -1662,7 +1388,7 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
1662
1388
|
}
|
1663
1389
|
}
|
1664
1390
|
const response = yield this.request({
|
1665
|
-
path: `/propertymappings/
|
1391
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
1666
1392
|
method: 'DELETE',
|
1667
1393
|
headers: headerParameters,
|
1668
1394
|
query: queryParameters,
|
@@ -1671,25 +1397,22 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
1671
1397
|
});
|
1672
1398
|
}
|
1673
1399
|
/**
|
1674
|
-
*
|
1400
|
+
* RadiusProviderPropertyMapping Viewset
|
1675
1401
|
*/
|
1676
|
-
|
1402
|
+
propertymappingsRadiusDestroy(requestParameters, initOverrides) {
|
1677
1403
|
return __awaiter(this, void 0, void 0, function* () {
|
1678
|
-
yield this.
|
1404
|
+
yield this.propertymappingsRadiusDestroyRaw(requestParameters, initOverrides);
|
1679
1405
|
});
|
1680
1406
|
}
|
1681
1407
|
/**
|
1682
|
-
*
|
1408
|
+
* RadiusProviderPropertyMapping Viewset
|
1683
1409
|
*/
|
1684
|
-
|
1410
|
+
propertymappingsRadiusListRaw(requestParameters, initOverrides) {
|
1685
1411
|
return __awaiter(this, void 0, void 0, function* () {
|
1686
1412
|
const queryParameters = {};
|
1687
1413
|
if (requestParameters.expression !== undefined) {
|
1688
1414
|
queryParameters['expression'] = requestParameters.expression;
|
1689
1415
|
}
|
1690
|
-
if (requestParameters.friendlyName !== undefined) {
|
1691
|
-
queryParameters['friendly_name'] = requestParameters.friendlyName;
|
1692
|
-
}
|
1693
1416
|
if (requestParameters.managed) {
|
1694
1417
|
queryParameters['managed'] = requestParameters.managed;
|
1695
1418
|
}
|
@@ -1708,9 +1431,6 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
1708
1431
|
if (requestParameters.pmUuid !== undefined) {
|
1709
1432
|
queryParameters['pm_uuid'] = requestParameters.pmUuid;
|
1710
1433
|
}
|
1711
|
-
if (requestParameters.samlName !== undefined) {
|
1712
|
-
queryParameters['saml_name'] = requestParameters.samlName;
|
1713
|
-
}
|
1714
1434
|
if (requestParameters.search !== undefined) {
|
1715
1435
|
queryParameters['search'] = requestParameters.search;
|
1716
1436
|
}
|
@@ -1723,12 +1443,292 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
1723
1443
|
}
|
1724
1444
|
}
|
1725
1445
|
const response = yield this.request({
|
1726
|
-
path: `/propertymappings/
|
1446
|
+
path: `/propertymappings/radius/`,
|
1727
1447
|
method: 'GET',
|
1728
1448
|
headers: headerParameters,
|
1729
1449
|
query: queryParameters,
|
1730
1450
|
}, initOverrides);
|
1731
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.
|
1451
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedRadiusProviderPropertyMappingListFromJSON)(jsonValue));
|
1452
|
+
});
|
1453
|
+
}
|
1454
|
+
/**
|
1455
|
+
* RadiusProviderPropertyMapping Viewset
|
1456
|
+
*/
|
1457
|
+
propertymappingsRadiusList(requestParameters = {}, initOverrides) {
|
1458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1459
|
+
const response = yield this.propertymappingsRadiusListRaw(requestParameters, initOverrides);
|
1460
|
+
return yield response.value();
|
1461
|
+
});
|
1462
|
+
}
|
1463
|
+
/**
|
1464
|
+
* RadiusProviderPropertyMapping Viewset
|
1465
|
+
*/
|
1466
|
+
propertymappingsRadiusPartialUpdateRaw(requestParameters, initOverrides) {
|
1467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1468
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
1469
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusPartialUpdate.');
|
1470
|
+
}
|
1471
|
+
const queryParameters = {};
|
1472
|
+
const headerParameters = {};
|
1473
|
+
headerParameters['Content-Type'] = 'application/json';
|
1474
|
+
if (this.configuration && this.configuration.accessToken) {
|
1475
|
+
const token = this.configuration.accessToken;
|
1476
|
+
const tokenString = yield token("authentik", []);
|
1477
|
+
if (tokenString) {
|
1478
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1479
|
+
}
|
1480
|
+
}
|
1481
|
+
const response = yield this.request({
|
1482
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
1483
|
+
method: 'PATCH',
|
1484
|
+
headers: headerParameters,
|
1485
|
+
query: queryParameters,
|
1486
|
+
body: (0, models_1.PatchedRadiusProviderPropertyMappingRequestToJSON)(requestParameters.patchedRadiusProviderPropertyMappingRequest),
|
1487
|
+
}, initOverrides);
|
1488
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RadiusProviderPropertyMappingFromJSON)(jsonValue));
|
1489
|
+
});
|
1490
|
+
}
|
1491
|
+
/**
|
1492
|
+
* RadiusProviderPropertyMapping Viewset
|
1493
|
+
*/
|
1494
|
+
propertymappingsRadiusPartialUpdate(requestParameters, initOverrides) {
|
1495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1496
|
+
const response = yield this.propertymappingsRadiusPartialUpdateRaw(requestParameters, initOverrides);
|
1497
|
+
return yield response.value();
|
1498
|
+
});
|
1499
|
+
}
|
1500
|
+
/**
|
1501
|
+
* RadiusProviderPropertyMapping Viewset
|
1502
|
+
*/
|
1503
|
+
propertymappingsRadiusRetrieveRaw(requestParameters, initOverrides) {
|
1504
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1505
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
1506
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusRetrieve.');
|
1507
|
+
}
|
1508
|
+
const queryParameters = {};
|
1509
|
+
const headerParameters = {};
|
1510
|
+
if (this.configuration && this.configuration.accessToken) {
|
1511
|
+
const token = this.configuration.accessToken;
|
1512
|
+
const tokenString = yield token("authentik", []);
|
1513
|
+
if (tokenString) {
|
1514
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1515
|
+
}
|
1516
|
+
}
|
1517
|
+
const response = yield this.request({
|
1518
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
1519
|
+
method: 'GET',
|
1520
|
+
headers: headerParameters,
|
1521
|
+
query: queryParameters,
|
1522
|
+
}, initOverrides);
|
1523
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RadiusProviderPropertyMappingFromJSON)(jsonValue));
|
1524
|
+
});
|
1525
|
+
}
|
1526
|
+
/**
|
1527
|
+
* RadiusProviderPropertyMapping Viewset
|
1528
|
+
*/
|
1529
|
+
propertymappingsRadiusRetrieve(requestParameters, initOverrides) {
|
1530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1531
|
+
const response = yield this.propertymappingsRadiusRetrieveRaw(requestParameters, initOverrides);
|
1532
|
+
return yield response.value();
|
1533
|
+
});
|
1534
|
+
}
|
1535
|
+
/**
|
1536
|
+
* RadiusProviderPropertyMapping Viewset
|
1537
|
+
*/
|
1538
|
+
propertymappingsRadiusUpdateRaw(requestParameters, initOverrides) {
|
1539
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1540
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
1541
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusUpdate.');
|
1542
|
+
}
|
1543
|
+
if (requestParameters.radiusProviderPropertyMappingRequest === null || requestParameters.radiusProviderPropertyMappingRequest === undefined) {
|
1544
|
+
throw new runtime.RequiredError('radiusProviderPropertyMappingRequest', 'Required parameter requestParameters.radiusProviderPropertyMappingRequest was null or undefined when calling propertymappingsRadiusUpdate.');
|
1545
|
+
}
|
1546
|
+
const queryParameters = {};
|
1547
|
+
const headerParameters = {};
|
1548
|
+
headerParameters['Content-Type'] = 'application/json';
|
1549
|
+
if (this.configuration && this.configuration.accessToken) {
|
1550
|
+
const token = this.configuration.accessToken;
|
1551
|
+
const tokenString = yield token("authentik", []);
|
1552
|
+
if (tokenString) {
|
1553
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1554
|
+
}
|
1555
|
+
}
|
1556
|
+
const response = yield this.request({
|
1557
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
1558
|
+
method: 'PUT',
|
1559
|
+
headers: headerParameters,
|
1560
|
+
query: queryParameters,
|
1561
|
+
body: (0, models_1.RadiusProviderPropertyMappingRequestToJSON)(requestParameters.radiusProviderPropertyMappingRequest),
|
1562
|
+
}, initOverrides);
|
1563
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RadiusProviderPropertyMappingFromJSON)(jsonValue));
|
1564
|
+
});
|
1565
|
+
}
|
1566
|
+
/**
|
1567
|
+
* RadiusProviderPropertyMapping Viewset
|
1568
|
+
*/
|
1569
|
+
propertymappingsRadiusUpdate(requestParameters, initOverrides) {
|
1570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1571
|
+
const response = yield this.propertymappingsRadiusUpdateRaw(requestParameters, initOverrides);
|
1572
|
+
return yield response.value();
|
1573
|
+
});
|
1574
|
+
}
|
1575
|
+
/**
|
1576
|
+
* Get a list of all objects that use this object
|
1577
|
+
*/
|
1578
|
+
propertymappingsRadiusUsedByListRaw(requestParameters, initOverrides) {
|
1579
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1580
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
1581
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusUsedByList.');
|
1582
|
+
}
|
1583
|
+
const queryParameters = {};
|
1584
|
+
const headerParameters = {};
|
1585
|
+
if (this.configuration && this.configuration.accessToken) {
|
1586
|
+
const token = this.configuration.accessToken;
|
1587
|
+
const tokenString = yield token("authentik", []);
|
1588
|
+
if (tokenString) {
|
1589
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1590
|
+
}
|
1591
|
+
}
|
1592
|
+
const response = yield this.request({
|
1593
|
+
path: `/propertymappings/radius/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
1594
|
+
method: 'GET',
|
1595
|
+
headers: headerParameters,
|
1596
|
+
query: queryParameters,
|
1597
|
+
}, initOverrides);
|
1598
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
|
1599
|
+
});
|
1600
|
+
}
|
1601
|
+
/**
|
1602
|
+
* Get a list of all objects that use this object
|
1603
|
+
*/
|
1604
|
+
propertymappingsRadiusUsedByList(requestParameters, initOverrides) {
|
1605
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1606
|
+
const response = yield this.propertymappingsRadiusUsedByListRaw(requestParameters, initOverrides);
|
1607
|
+
return yield response.value();
|
1608
|
+
});
|
1609
|
+
}
|
1610
|
+
/**
|
1611
|
+
* SAMLPropertyMapping Viewset
|
1612
|
+
*/
|
1613
|
+
propertymappingsSamlCreateRaw(requestParameters, initOverrides) {
|
1614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1615
|
+
if (requestParameters.sAMLPropertyMappingRequest === null || requestParameters.sAMLPropertyMappingRequest === undefined) {
|
1616
|
+
throw new runtime.RequiredError('sAMLPropertyMappingRequest', 'Required parameter requestParameters.sAMLPropertyMappingRequest was null or undefined when calling propertymappingsSamlCreate.');
|
1617
|
+
}
|
1618
|
+
const queryParameters = {};
|
1619
|
+
const headerParameters = {};
|
1620
|
+
headerParameters['Content-Type'] = 'application/json';
|
1621
|
+
if (this.configuration && this.configuration.accessToken) {
|
1622
|
+
const token = this.configuration.accessToken;
|
1623
|
+
const tokenString = yield token("authentik", []);
|
1624
|
+
if (tokenString) {
|
1625
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1626
|
+
}
|
1627
|
+
}
|
1628
|
+
const response = yield this.request({
|
1629
|
+
path: `/propertymappings/saml/`,
|
1630
|
+
method: 'POST',
|
1631
|
+
headers: headerParameters,
|
1632
|
+
query: queryParameters,
|
1633
|
+
body: (0, models_1.SAMLPropertyMappingRequestToJSON)(requestParameters.sAMLPropertyMappingRequest),
|
1634
|
+
}, initOverrides);
|
1635
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SAMLPropertyMappingFromJSON)(jsonValue));
|
1636
|
+
});
|
1637
|
+
}
|
1638
|
+
/**
|
1639
|
+
* SAMLPropertyMapping Viewset
|
1640
|
+
*/
|
1641
|
+
propertymappingsSamlCreate(requestParameters, initOverrides) {
|
1642
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1643
|
+
const response = yield this.propertymappingsSamlCreateRaw(requestParameters, initOverrides);
|
1644
|
+
return yield response.value();
|
1645
|
+
});
|
1646
|
+
}
|
1647
|
+
/**
|
1648
|
+
* SAMLPropertyMapping Viewset
|
1649
|
+
*/
|
1650
|
+
propertymappingsSamlDestroyRaw(requestParameters, initOverrides) {
|
1651
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1652
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
1653
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSamlDestroy.');
|
1654
|
+
}
|
1655
|
+
const queryParameters = {};
|
1656
|
+
const headerParameters = {};
|
1657
|
+
if (this.configuration && this.configuration.accessToken) {
|
1658
|
+
const token = this.configuration.accessToken;
|
1659
|
+
const tokenString = yield token("authentik", []);
|
1660
|
+
if (tokenString) {
|
1661
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1662
|
+
}
|
1663
|
+
}
|
1664
|
+
const response = yield this.request({
|
1665
|
+
path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
1666
|
+
method: 'DELETE',
|
1667
|
+
headers: headerParameters,
|
1668
|
+
query: queryParameters,
|
1669
|
+
}, initOverrides);
|
1670
|
+
return new runtime.VoidApiResponse(response);
|
1671
|
+
});
|
1672
|
+
}
|
1673
|
+
/**
|
1674
|
+
* SAMLPropertyMapping Viewset
|
1675
|
+
*/
|
1676
|
+
propertymappingsSamlDestroy(requestParameters, initOverrides) {
|
1677
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1678
|
+
yield this.propertymappingsSamlDestroyRaw(requestParameters, initOverrides);
|
1679
|
+
});
|
1680
|
+
}
|
1681
|
+
/**
|
1682
|
+
* SAMLPropertyMapping Viewset
|
1683
|
+
*/
|
1684
|
+
propertymappingsSamlListRaw(requestParameters, initOverrides) {
|
1685
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1686
|
+
const queryParameters = {};
|
1687
|
+
if (requestParameters.expression !== undefined) {
|
1688
|
+
queryParameters['expression'] = requestParameters.expression;
|
1689
|
+
}
|
1690
|
+
if (requestParameters.friendlyName !== undefined) {
|
1691
|
+
queryParameters['friendly_name'] = requestParameters.friendlyName;
|
1692
|
+
}
|
1693
|
+
if (requestParameters.managed) {
|
1694
|
+
queryParameters['managed'] = requestParameters.managed;
|
1695
|
+
}
|
1696
|
+
if (requestParameters.name !== undefined) {
|
1697
|
+
queryParameters['name'] = requestParameters.name;
|
1698
|
+
}
|
1699
|
+
if (requestParameters.ordering !== undefined) {
|
1700
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
1701
|
+
}
|
1702
|
+
if (requestParameters.page !== undefined) {
|
1703
|
+
queryParameters['page'] = requestParameters.page;
|
1704
|
+
}
|
1705
|
+
if (requestParameters.pageSize !== undefined) {
|
1706
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
1707
|
+
}
|
1708
|
+
if (requestParameters.pmUuid !== undefined) {
|
1709
|
+
queryParameters['pm_uuid'] = requestParameters.pmUuid;
|
1710
|
+
}
|
1711
|
+
if (requestParameters.samlName !== undefined) {
|
1712
|
+
queryParameters['saml_name'] = requestParameters.samlName;
|
1713
|
+
}
|
1714
|
+
if (requestParameters.search !== undefined) {
|
1715
|
+
queryParameters['search'] = requestParameters.search;
|
1716
|
+
}
|
1717
|
+
const headerParameters = {};
|
1718
|
+
if (this.configuration && this.configuration.accessToken) {
|
1719
|
+
const token = this.configuration.accessToken;
|
1720
|
+
const tokenString = yield token("authentik", []);
|
1721
|
+
if (tokenString) {
|
1722
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1723
|
+
}
|
1724
|
+
}
|
1725
|
+
const response = yield this.request({
|
1726
|
+
path: `/propertymappings/saml/`,
|
1727
|
+
method: 'GET',
|
1728
|
+
headers: headerParameters,
|
1729
|
+
query: queryParameters,
|
1730
|
+
}, initOverrides);
|
1731
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedSAMLPropertyMappingListFromJSON)(jsonValue));
|
1732
1732
|
});
|
1733
1733
|
}
|
1734
1734
|
/**
|
@@ -2432,5 +2432,279 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
2432
2432
|
return yield response.value();
|
2433
2433
|
});
|
2434
2434
|
}
|
2435
|
+
/**
|
2436
|
+
* LDAP PropertyMapping Viewset
|
2437
|
+
*/
|
2438
|
+
propertymappingsSourceLdapCreateRaw(requestParameters, initOverrides) {
|
2439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2440
|
+
if (requestParameters.lDAPSourcePropertyMappingRequest === null || requestParameters.lDAPSourcePropertyMappingRequest === undefined) {
|
2441
|
+
throw new runtime.RequiredError('lDAPSourcePropertyMappingRequest', 'Required parameter requestParameters.lDAPSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceLdapCreate.');
|
2442
|
+
}
|
2443
|
+
const queryParameters = {};
|
2444
|
+
const headerParameters = {};
|
2445
|
+
headerParameters['Content-Type'] = 'application/json';
|
2446
|
+
if (this.configuration && this.configuration.accessToken) {
|
2447
|
+
const token = this.configuration.accessToken;
|
2448
|
+
const tokenString = yield token("authentik", []);
|
2449
|
+
if (tokenString) {
|
2450
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2451
|
+
}
|
2452
|
+
}
|
2453
|
+
const response = yield this.request({
|
2454
|
+
path: `/propertymappings/source/ldap/`,
|
2455
|
+
method: 'POST',
|
2456
|
+
headers: headerParameters,
|
2457
|
+
query: queryParameters,
|
2458
|
+
body: (0, models_1.LDAPSourcePropertyMappingRequestToJSON)(requestParameters.lDAPSourcePropertyMappingRequest),
|
2459
|
+
}, initOverrides);
|
2460
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPSourcePropertyMappingFromJSON)(jsonValue));
|
2461
|
+
});
|
2462
|
+
}
|
2463
|
+
/**
|
2464
|
+
* LDAP PropertyMapping Viewset
|
2465
|
+
*/
|
2466
|
+
propertymappingsSourceLdapCreate(requestParameters, initOverrides) {
|
2467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2468
|
+
const response = yield this.propertymappingsSourceLdapCreateRaw(requestParameters, initOverrides);
|
2469
|
+
return yield response.value();
|
2470
|
+
});
|
2471
|
+
}
|
2472
|
+
/**
|
2473
|
+
* LDAP PropertyMapping Viewset
|
2474
|
+
*/
|
2475
|
+
propertymappingsSourceLdapDestroyRaw(requestParameters, initOverrides) {
|
2476
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2477
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2478
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapDestroy.');
|
2479
|
+
}
|
2480
|
+
const queryParameters = {};
|
2481
|
+
const headerParameters = {};
|
2482
|
+
if (this.configuration && this.configuration.accessToken) {
|
2483
|
+
const token = this.configuration.accessToken;
|
2484
|
+
const tokenString = yield token("authentik", []);
|
2485
|
+
if (tokenString) {
|
2486
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2487
|
+
}
|
2488
|
+
}
|
2489
|
+
const response = yield this.request({
|
2490
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2491
|
+
method: 'DELETE',
|
2492
|
+
headers: headerParameters,
|
2493
|
+
query: queryParameters,
|
2494
|
+
}, initOverrides);
|
2495
|
+
return new runtime.VoidApiResponse(response);
|
2496
|
+
});
|
2497
|
+
}
|
2498
|
+
/**
|
2499
|
+
* LDAP PropertyMapping Viewset
|
2500
|
+
*/
|
2501
|
+
propertymappingsSourceLdapDestroy(requestParameters, initOverrides) {
|
2502
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2503
|
+
yield this.propertymappingsSourceLdapDestroyRaw(requestParameters, initOverrides);
|
2504
|
+
});
|
2505
|
+
}
|
2506
|
+
/**
|
2507
|
+
* LDAP PropertyMapping Viewset
|
2508
|
+
*/
|
2509
|
+
propertymappingsSourceLdapListRaw(requestParameters, initOverrides) {
|
2510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2511
|
+
const queryParameters = {};
|
2512
|
+
if (requestParameters.expression !== undefined) {
|
2513
|
+
queryParameters['expression'] = requestParameters.expression;
|
2514
|
+
}
|
2515
|
+
if (requestParameters.managed) {
|
2516
|
+
queryParameters['managed'] = requestParameters.managed;
|
2517
|
+
}
|
2518
|
+
if (requestParameters.name !== undefined) {
|
2519
|
+
queryParameters['name'] = requestParameters.name;
|
2520
|
+
}
|
2521
|
+
if (requestParameters.ordering !== undefined) {
|
2522
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
2523
|
+
}
|
2524
|
+
if (requestParameters.page !== undefined) {
|
2525
|
+
queryParameters['page'] = requestParameters.page;
|
2526
|
+
}
|
2527
|
+
if (requestParameters.pageSize !== undefined) {
|
2528
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
2529
|
+
}
|
2530
|
+
if (requestParameters.pmUuid !== undefined) {
|
2531
|
+
queryParameters['pm_uuid'] = requestParameters.pmUuid;
|
2532
|
+
}
|
2533
|
+
if (requestParameters.search !== undefined) {
|
2534
|
+
queryParameters['search'] = requestParameters.search;
|
2535
|
+
}
|
2536
|
+
const headerParameters = {};
|
2537
|
+
if (this.configuration && this.configuration.accessToken) {
|
2538
|
+
const token = this.configuration.accessToken;
|
2539
|
+
const tokenString = yield token("authentik", []);
|
2540
|
+
if (tokenString) {
|
2541
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2542
|
+
}
|
2543
|
+
}
|
2544
|
+
const response = yield this.request({
|
2545
|
+
path: `/propertymappings/source/ldap/`,
|
2546
|
+
method: 'GET',
|
2547
|
+
headers: headerParameters,
|
2548
|
+
query: queryParameters,
|
2549
|
+
}, initOverrides);
|
2550
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedLDAPSourcePropertyMappingListFromJSON)(jsonValue));
|
2551
|
+
});
|
2552
|
+
}
|
2553
|
+
/**
|
2554
|
+
* LDAP PropertyMapping Viewset
|
2555
|
+
*/
|
2556
|
+
propertymappingsSourceLdapList(requestParameters = {}, initOverrides) {
|
2557
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2558
|
+
const response = yield this.propertymappingsSourceLdapListRaw(requestParameters, initOverrides);
|
2559
|
+
return yield response.value();
|
2560
|
+
});
|
2561
|
+
}
|
2562
|
+
/**
|
2563
|
+
* LDAP PropertyMapping Viewset
|
2564
|
+
*/
|
2565
|
+
propertymappingsSourceLdapPartialUpdateRaw(requestParameters, initOverrides) {
|
2566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2567
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2568
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapPartialUpdate.');
|
2569
|
+
}
|
2570
|
+
const queryParameters = {};
|
2571
|
+
const headerParameters = {};
|
2572
|
+
headerParameters['Content-Type'] = 'application/json';
|
2573
|
+
if (this.configuration && this.configuration.accessToken) {
|
2574
|
+
const token = this.configuration.accessToken;
|
2575
|
+
const tokenString = yield token("authentik", []);
|
2576
|
+
if (tokenString) {
|
2577
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2578
|
+
}
|
2579
|
+
}
|
2580
|
+
const response = yield this.request({
|
2581
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2582
|
+
method: 'PATCH',
|
2583
|
+
headers: headerParameters,
|
2584
|
+
query: queryParameters,
|
2585
|
+
body: (0, models_1.PatchedLDAPSourcePropertyMappingRequestToJSON)(requestParameters.patchedLDAPSourcePropertyMappingRequest),
|
2586
|
+
}, initOverrides);
|
2587
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPSourcePropertyMappingFromJSON)(jsonValue));
|
2588
|
+
});
|
2589
|
+
}
|
2590
|
+
/**
|
2591
|
+
* LDAP PropertyMapping Viewset
|
2592
|
+
*/
|
2593
|
+
propertymappingsSourceLdapPartialUpdate(requestParameters, initOverrides) {
|
2594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2595
|
+
const response = yield this.propertymappingsSourceLdapPartialUpdateRaw(requestParameters, initOverrides);
|
2596
|
+
return yield response.value();
|
2597
|
+
});
|
2598
|
+
}
|
2599
|
+
/**
|
2600
|
+
* LDAP PropertyMapping Viewset
|
2601
|
+
*/
|
2602
|
+
propertymappingsSourceLdapRetrieveRaw(requestParameters, initOverrides) {
|
2603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2604
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2605
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapRetrieve.');
|
2606
|
+
}
|
2607
|
+
const queryParameters = {};
|
2608
|
+
const headerParameters = {};
|
2609
|
+
if (this.configuration && this.configuration.accessToken) {
|
2610
|
+
const token = this.configuration.accessToken;
|
2611
|
+
const tokenString = yield token("authentik", []);
|
2612
|
+
if (tokenString) {
|
2613
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2614
|
+
}
|
2615
|
+
}
|
2616
|
+
const response = yield this.request({
|
2617
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2618
|
+
method: 'GET',
|
2619
|
+
headers: headerParameters,
|
2620
|
+
query: queryParameters,
|
2621
|
+
}, initOverrides);
|
2622
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPSourcePropertyMappingFromJSON)(jsonValue));
|
2623
|
+
});
|
2624
|
+
}
|
2625
|
+
/**
|
2626
|
+
* LDAP PropertyMapping Viewset
|
2627
|
+
*/
|
2628
|
+
propertymappingsSourceLdapRetrieve(requestParameters, initOverrides) {
|
2629
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2630
|
+
const response = yield this.propertymappingsSourceLdapRetrieveRaw(requestParameters, initOverrides);
|
2631
|
+
return yield response.value();
|
2632
|
+
});
|
2633
|
+
}
|
2634
|
+
/**
|
2635
|
+
* LDAP PropertyMapping Viewset
|
2636
|
+
*/
|
2637
|
+
propertymappingsSourceLdapUpdateRaw(requestParameters, initOverrides) {
|
2638
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2639
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2640
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapUpdate.');
|
2641
|
+
}
|
2642
|
+
if (requestParameters.lDAPSourcePropertyMappingRequest === null || requestParameters.lDAPSourcePropertyMappingRequest === undefined) {
|
2643
|
+
throw new runtime.RequiredError('lDAPSourcePropertyMappingRequest', 'Required parameter requestParameters.lDAPSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceLdapUpdate.');
|
2644
|
+
}
|
2645
|
+
const queryParameters = {};
|
2646
|
+
const headerParameters = {};
|
2647
|
+
headerParameters['Content-Type'] = 'application/json';
|
2648
|
+
if (this.configuration && this.configuration.accessToken) {
|
2649
|
+
const token = this.configuration.accessToken;
|
2650
|
+
const tokenString = yield token("authentik", []);
|
2651
|
+
if (tokenString) {
|
2652
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2653
|
+
}
|
2654
|
+
}
|
2655
|
+
const response = yield this.request({
|
2656
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2657
|
+
method: 'PUT',
|
2658
|
+
headers: headerParameters,
|
2659
|
+
query: queryParameters,
|
2660
|
+
body: (0, models_1.LDAPSourcePropertyMappingRequestToJSON)(requestParameters.lDAPSourcePropertyMappingRequest),
|
2661
|
+
}, initOverrides);
|
2662
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPSourcePropertyMappingFromJSON)(jsonValue));
|
2663
|
+
});
|
2664
|
+
}
|
2665
|
+
/**
|
2666
|
+
* LDAP PropertyMapping Viewset
|
2667
|
+
*/
|
2668
|
+
propertymappingsSourceLdapUpdate(requestParameters, initOverrides) {
|
2669
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2670
|
+
const response = yield this.propertymappingsSourceLdapUpdateRaw(requestParameters, initOverrides);
|
2671
|
+
return yield response.value();
|
2672
|
+
});
|
2673
|
+
}
|
2674
|
+
/**
|
2675
|
+
* Get a list of all objects that use this object
|
2676
|
+
*/
|
2677
|
+
propertymappingsSourceLdapUsedByListRaw(requestParameters, initOverrides) {
|
2678
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2679
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
2680
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceLdapUsedByList.');
|
2681
|
+
}
|
2682
|
+
const queryParameters = {};
|
2683
|
+
const headerParameters = {};
|
2684
|
+
if (this.configuration && this.configuration.accessToken) {
|
2685
|
+
const token = this.configuration.accessToken;
|
2686
|
+
const tokenString = yield token("authentik", []);
|
2687
|
+
if (tokenString) {
|
2688
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2689
|
+
}
|
2690
|
+
}
|
2691
|
+
const response = yield this.request({
|
2692
|
+
path: `/propertymappings/source/ldap/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
2693
|
+
method: 'GET',
|
2694
|
+
headers: headerParameters,
|
2695
|
+
query: queryParameters,
|
2696
|
+
}, initOverrides);
|
2697
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
|
2698
|
+
});
|
2699
|
+
}
|
2700
|
+
/**
|
2701
|
+
* Get a list of all objects that use this object
|
2702
|
+
*/
|
2703
|
+
propertymappingsSourceLdapUsedByList(requestParameters, initOverrides) {
|
2704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2705
|
+
const response = yield this.propertymappingsSourceLdapUsedByListRaw(requestParameters, initOverrides);
|
2706
|
+
return yield response.value();
|
2707
|
+
});
|
2708
|
+
}
|
2435
2709
|
}
|
2436
2710
|
exports.PropertymappingsApi = PropertymappingsApi;
|