@goauthentik/api 2024.6.1-1721909829 → 2024.6.1-1721916595

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