@goauthentik/api 2024.8.3-1729166675 → 2024.8.3-1729630021

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 (105) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/dist/apis/AdminApi.d.ts +26 -1
  3. package/dist/apis/AdminApi.js +79 -0
  4. package/dist/apis/AuthenticatorsApi.d.ts +110 -1
  5. package/dist/apis/AuthenticatorsApi.js +347 -0
  6. package/dist/apis/RbacApi.d.ts +2 -0
  7. package/dist/apis/RbacApi.js +2 -0
  8. package/dist/apis/StagesApi.d.ts +85 -1
  9. package/dist/apis/StagesApi.js +268 -0
  10. package/dist/esm/apis/AdminApi.d.ts +26 -1
  11. package/dist/esm/apis/AdminApi.js +80 -1
  12. package/dist/esm/apis/AuthenticatorsApi.d.ts +110 -1
  13. package/dist/esm/apis/AuthenticatorsApi.js +348 -1
  14. package/dist/esm/apis/RbacApi.d.ts +2 -0
  15. package/dist/esm/apis/RbacApi.js +2 -0
  16. package/dist/esm/apis/StagesApi.d.ts +85 -1
  17. package/dist/esm/apis/StagesApi.js +269 -1
  18. package/dist/esm/models/AppEnum.d.ts +1 -0
  19. package/dist/esm/models/AppEnum.js +1 -0
  20. package/dist/esm/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
  21. package/dist/esm/models/AuthenticatorEndpointGDTCStage.js +64 -0
  22. package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  23. package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.js +54 -0
  24. package/dist/esm/models/ChallengeTypes.d.ts +3 -0
  25. package/dist/esm/models/ChallengeTypes.js +5 -0
  26. package/dist/esm/models/Device.d.ts +2 -2
  27. package/dist/esm/models/EndpointDevice.d.ts +37 -0
  28. package/dist/esm/models/EndpointDevice.js +46 -0
  29. package/dist/esm/models/EndpointDeviceRequest.d.ts +37 -0
  30. package/dist/esm/models/EndpointDeviceRequest.js +46 -0
  31. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
  32. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  33. package/dist/esm/models/FrameChallenge.d.ts +65 -0
  34. package/dist/esm/models/FrameChallenge.js +56 -0
  35. package/dist/esm/models/FrameChallengeResponseRequest.d.ts +31 -0
  36. package/dist/esm/models/FrameChallengeResponseRequest.js +43 -0
  37. package/dist/esm/models/ModelEnum.d.ts +1 -0
  38. package/dist/esm/models/ModelEnum.js +1 -0
  39. package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
  40. package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.js +48 -0
  41. package/dist/esm/models/PaginatedEndpointDeviceList.d.ts +39 -0
  42. package/dist/esm/models/PaginatedEndpointDeviceList.js +48 -0
  43. package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  44. package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +52 -0
  45. package/dist/esm/models/PatchedEndpointDeviceRequest.d.ts +37 -0
  46. package/dist/esm/models/PatchedEndpointDeviceRequest.js +45 -0
  47. package/dist/esm/models/VersionHistory.d.ts +49 -0
  48. package/dist/esm/models/VersionHistory.js +51 -0
  49. package/dist/esm/models/index.d.ts +11 -0
  50. package/dist/esm/models/index.js +11 -0
  51. package/dist/models/AppEnum.d.ts +1 -0
  52. package/dist/models/AppEnum.js +1 -0
  53. package/dist/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
  54. package/dist/models/AuthenticatorEndpointGDTCStage.js +71 -0
  55. package/dist/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  56. package/dist/models/AuthenticatorEndpointGDTCStageRequest.js +61 -0
  57. package/dist/models/ChallengeTypes.d.ts +3 -0
  58. package/dist/models/ChallengeTypes.js +5 -0
  59. package/dist/models/Device.d.ts +2 -2
  60. package/dist/models/EndpointDevice.d.ts +37 -0
  61. package/dist/models/EndpointDevice.js +53 -0
  62. package/dist/models/EndpointDeviceRequest.d.ts +37 -0
  63. package/dist/models/EndpointDeviceRequest.js +53 -0
  64. package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
  65. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  66. package/dist/models/FrameChallenge.d.ts +65 -0
  67. package/dist/models/FrameChallenge.js +63 -0
  68. package/dist/models/FrameChallengeResponseRequest.d.ts +31 -0
  69. package/dist/models/FrameChallengeResponseRequest.js +50 -0
  70. package/dist/models/ModelEnum.d.ts +1 -0
  71. package/dist/models/ModelEnum.js +1 -0
  72. package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
  73. package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.js +55 -0
  74. package/dist/models/PaginatedEndpointDeviceList.d.ts +39 -0
  75. package/dist/models/PaginatedEndpointDeviceList.js +55 -0
  76. package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  77. package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +59 -0
  78. package/dist/models/PatchedEndpointDeviceRequest.d.ts +37 -0
  79. package/dist/models/PatchedEndpointDeviceRequest.js +52 -0
  80. package/dist/models/VersionHistory.d.ts +49 -0
  81. package/dist/models/VersionHistory.js +58 -0
  82. package/dist/models/index.d.ts +11 -0
  83. package/dist/models/index.js +11 -0
  84. package/package.json +1 -1
  85. package/src/apis/AdminApi.ts +102 -0
  86. package/src/apis/AuthenticatorsApi.ts +444 -0
  87. package/src/apis/RbacApi.ts +2 -0
  88. package/src/apis/StagesApi.ts +345 -0
  89. package/src/models/AppEnum.ts +1 -0
  90. package/src/models/AuthenticatorEndpointGDTCStage.ts +146 -0
  91. package/src/models/AuthenticatorEndpointGDTCStageRequest.ts +106 -0
  92. package/src/models/ChallengeTypes.ts +12 -1
  93. package/src/models/Device.ts +2 -2
  94. package/src/models/EndpointDevice.ts +74 -0
  95. package/src/models/EndpointDeviceRequest.ts +74 -0
  96. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  97. package/src/models/FrameChallenge.ts +120 -0
  98. package/src/models/FrameChallengeResponseRequest.ts +65 -0
  99. package/src/models/ModelEnum.ts +1 -0
  100. package/src/models/PaginatedAuthenticatorEndpointGDTCStageList.ts +88 -0
  101. package/src/models/PaginatedEndpointDeviceList.ts +88 -0
  102. package/src/models/PatchedAuthenticatorEndpointGDTCStageRequest.ts +104 -0
  103. package/src/models/PatchedEndpointDeviceRequest.ts +73 -0
  104. package/src/models/VersionHistory.ts +92 -0
  105. package/src/models/index.ts +11 -0
@@ -294,6 +294,236 @@ class AuthenticatorsApi extends runtime.BaseAPI {
294
294
  return yield response.value();
295
295
  });
296
296
  }
297
+ /**
298
+ * Viewset for Endpoint authenticator devices (for admins)
299
+ */
300
+ authenticatorsAdminEndpointCreateRaw(requestParameters, initOverrides) {
301
+ return __awaiter(this, void 0, void 0, function* () {
302
+ if (requestParameters.endpointDeviceRequest === null || requestParameters.endpointDeviceRequest === undefined) {
303
+ throw new runtime.RequiredError('endpointDeviceRequest', 'Required parameter requestParameters.endpointDeviceRequest was null or undefined when calling authenticatorsAdminEndpointCreate.');
304
+ }
305
+ const queryParameters = {};
306
+ const headerParameters = {};
307
+ headerParameters['Content-Type'] = 'application/json';
308
+ if (this.configuration && this.configuration.accessToken) {
309
+ const token = this.configuration.accessToken;
310
+ const tokenString = yield token("authentik", []);
311
+ if (tokenString) {
312
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
313
+ }
314
+ }
315
+ const response = yield this.request({
316
+ path: `/authenticators/admin/endpoint/`,
317
+ method: 'POST',
318
+ headers: headerParameters,
319
+ query: queryParameters,
320
+ body: (0, models_1.EndpointDeviceRequestToJSON)(requestParameters.endpointDeviceRequest),
321
+ }, initOverrides);
322
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.EndpointDeviceFromJSON)(jsonValue));
323
+ });
324
+ }
325
+ /**
326
+ * Viewset for Endpoint authenticator devices (for admins)
327
+ */
328
+ authenticatorsAdminEndpointCreate(requestParameters, initOverrides) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ const response = yield this.authenticatorsAdminEndpointCreateRaw(requestParameters, initOverrides);
331
+ return yield response.value();
332
+ });
333
+ }
334
+ /**
335
+ * Viewset for Endpoint authenticator devices (for admins)
336
+ */
337
+ authenticatorsAdminEndpointDestroyRaw(requestParameters, initOverrides) {
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
340
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsAdminEndpointDestroy.');
341
+ }
342
+ const queryParameters = {};
343
+ const headerParameters = {};
344
+ if (this.configuration && this.configuration.accessToken) {
345
+ const token = this.configuration.accessToken;
346
+ const tokenString = yield token("authentik", []);
347
+ if (tokenString) {
348
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
349
+ }
350
+ }
351
+ const response = yield this.request({
352
+ path: `/authenticators/admin/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
353
+ method: 'DELETE',
354
+ headers: headerParameters,
355
+ query: queryParameters,
356
+ }, initOverrides);
357
+ return new runtime.VoidApiResponse(response);
358
+ });
359
+ }
360
+ /**
361
+ * Viewset for Endpoint authenticator devices (for admins)
362
+ */
363
+ authenticatorsAdminEndpointDestroy(requestParameters, initOverrides) {
364
+ return __awaiter(this, void 0, void 0, function* () {
365
+ yield this.authenticatorsAdminEndpointDestroyRaw(requestParameters, initOverrides);
366
+ });
367
+ }
368
+ /**
369
+ * Viewset for Endpoint authenticator devices (for admins)
370
+ */
371
+ authenticatorsAdminEndpointListRaw(requestParameters, initOverrides) {
372
+ return __awaiter(this, void 0, void 0, function* () {
373
+ const queryParameters = {};
374
+ if (requestParameters.name !== undefined) {
375
+ queryParameters['name'] = requestParameters.name;
376
+ }
377
+ if (requestParameters.ordering !== undefined) {
378
+ queryParameters['ordering'] = requestParameters.ordering;
379
+ }
380
+ if (requestParameters.page !== undefined) {
381
+ queryParameters['page'] = requestParameters.page;
382
+ }
383
+ if (requestParameters.pageSize !== undefined) {
384
+ queryParameters['page_size'] = requestParameters.pageSize;
385
+ }
386
+ if (requestParameters.search !== undefined) {
387
+ queryParameters['search'] = requestParameters.search;
388
+ }
389
+ const headerParameters = {};
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: `/authenticators/admin/endpoint/`,
399
+ method: 'GET',
400
+ headers: headerParameters,
401
+ query: queryParameters,
402
+ }, initOverrides);
403
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedEndpointDeviceListFromJSON)(jsonValue));
404
+ });
405
+ }
406
+ /**
407
+ * Viewset for Endpoint authenticator devices (for admins)
408
+ */
409
+ authenticatorsAdminEndpointList(requestParameters = {}, initOverrides) {
410
+ return __awaiter(this, void 0, void 0, function* () {
411
+ const response = yield this.authenticatorsAdminEndpointListRaw(requestParameters, initOverrides);
412
+ return yield response.value();
413
+ });
414
+ }
415
+ /**
416
+ * Viewset for Endpoint authenticator devices (for admins)
417
+ */
418
+ authenticatorsAdminEndpointPartialUpdateRaw(requestParameters, initOverrides) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
421
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsAdminEndpointPartialUpdate.');
422
+ }
423
+ const queryParameters = {};
424
+ const headerParameters = {};
425
+ headerParameters['Content-Type'] = 'application/json';
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: `/authenticators/admin/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
435
+ method: 'PATCH',
436
+ headers: headerParameters,
437
+ query: queryParameters,
438
+ body: (0, models_1.PatchedEndpointDeviceRequestToJSON)(requestParameters.patchedEndpointDeviceRequest),
439
+ }, initOverrides);
440
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.EndpointDeviceFromJSON)(jsonValue));
441
+ });
442
+ }
443
+ /**
444
+ * Viewset for Endpoint authenticator devices (for admins)
445
+ */
446
+ authenticatorsAdminEndpointPartialUpdate(requestParameters, initOverrides) {
447
+ return __awaiter(this, void 0, void 0, function* () {
448
+ const response = yield this.authenticatorsAdminEndpointPartialUpdateRaw(requestParameters, initOverrides);
449
+ return yield response.value();
450
+ });
451
+ }
452
+ /**
453
+ * Viewset for Endpoint authenticator devices (for admins)
454
+ */
455
+ authenticatorsAdminEndpointRetrieveRaw(requestParameters, initOverrides) {
456
+ return __awaiter(this, void 0, void 0, function* () {
457
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
458
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsAdminEndpointRetrieve.');
459
+ }
460
+ const queryParameters = {};
461
+ const headerParameters = {};
462
+ if (this.configuration && this.configuration.accessToken) {
463
+ const token = this.configuration.accessToken;
464
+ const tokenString = yield token("authentik", []);
465
+ if (tokenString) {
466
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
467
+ }
468
+ }
469
+ const response = yield this.request({
470
+ path: `/authenticators/admin/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
471
+ method: 'GET',
472
+ headers: headerParameters,
473
+ query: queryParameters,
474
+ }, initOverrides);
475
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.EndpointDeviceFromJSON)(jsonValue));
476
+ });
477
+ }
478
+ /**
479
+ * Viewset for Endpoint authenticator devices (for admins)
480
+ */
481
+ authenticatorsAdminEndpointRetrieve(requestParameters, initOverrides) {
482
+ return __awaiter(this, void 0, void 0, function* () {
483
+ const response = yield this.authenticatorsAdminEndpointRetrieveRaw(requestParameters, initOverrides);
484
+ return yield response.value();
485
+ });
486
+ }
487
+ /**
488
+ * Viewset for Endpoint authenticator devices (for admins)
489
+ */
490
+ authenticatorsAdminEndpointUpdateRaw(requestParameters, initOverrides) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
493
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsAdminEndpointUpdate.');
494
+ }
495
+ if (requestParameters.endpointDeviceRequest === null || requestParameters.endpointDeviceRequest === undefined) {
496
+ throw new runtime.RequiredError('endpointDeviceRequest', 'Required parameter requestParameters.endpointDeviceRequest was null or undefined when calling authenticatorsAdminEndpointUpdate.');
497
+ }
498
+ const queryParameters = {};
499
+ const headerParameters = {};
500
+ headerParameters['Content-Type'] = 'application/json';
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: `/authenticators/admin/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
510
+ method: 'PUT',
511
+ headers: headerParameters,
512
+ query: queryParameters,
513
+ body: (0, models_1.EndpointDeviceRequestToJSON)(requestParameters.endpointDeviceRequest),
514
+ }, initOverrides);
515
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.EndpointDeviceFromJSON)(jsonValue));
516
+ });
517
+ }
518
+ /**
519
+ * Viewset for Endpoint authenticator devices (for admins)
520
+ */
521
+ authenticatorsAdminEndpointUpdate(requestParameters, initOverrides) {
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ const response = yield this.authenticatorsAdminEndpointUpdateRaw(requestParameters, initOverrides);
524
+ return yield response.value();
525
+ });
526
+ }
297
527
  /**
298
528
  * Viewset for sms authenticator devices (for admins)
299
529
  */
@@ -1474,6 +1704,123 @@ class AuthenticatorsApi extends runtime.BaseAPI {
1474
1704
  return yield response.value();
1475
1705
  });
1476
1706
  }
1707
+ /**
1708
+ * Viewset for Endpoint authenticator devices
1709
+ */
1710
+ authenticatorsEndpointListRaw(requestParameters, initOverrides) {
1711
+ return __awaiter(this, void 0, void 0, function* () {
1712
+ const queryParameters = {};
1713
+ if (requestParameters.name !== undefined) {
1714
+ queryParameters['name'] = requestParameters.name;
1715
+ }
1716
+ if (requestParameters.ordering !== undefined) {
1717
+ queryParameters['ordering'] = requestParameters.ordering;
1718
+ }
1719
+ if (requestParameters.page !== undefined) {
1720
+ queryParameters['page'] = requestParameters.page;
1721
+ }
1722
+ if (requestParameters.pageSize !== undefined) {
1723
+ queryParameters['page_size'] = requestParameters.pageSize;
1724
+ }
1725
+ if (requestParameters.search !== undefined) {
1726
+ queryParameters['search'] = requestParameters.search;
1727
+ }
1728
+ const headerParameters = {};
1729
+ if (this.configuration && this.configuration.accessToken) {
1730
+ const token = this.configuration.accessToken;
1731
+ const tokenString = yield token("authentik", []);
1732
+ if (tokenString) {
1733
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1734
+ }
1735
+ }
1736
+ const response = yield this.request({
1737
+ path: `/authenticators/endpoint/`,
1738
+ method: 'GET',
1739
+ headers: headerParameters,
1740
+ query: queryParameters,
1741
+ }, initOverrides);
1742
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedEndpointDeviceListFromJSON)(jsonValue));
1743
+ });
1744
+ }
1745
+ /**
1746
+ * Viewset for Endpoint authenticator devices
1747
+ */
1748
+ authenticatorsEndpointList(requestParameters = {}, initOverrides) {
1749
+ return __awaiter(this, void 0, void 0, function* () {
1750
+ const response = yield this.authenticatorsEndpointListRaw(requestParameters, initOverrides);
1751
+ return yield response.value();
1752
+ });
1753
+ }
1754
+ /**
1755
+ * Viewset for Endpoint authenticator devices
1756
+ */
1757
+ authenticatorsEndpointRetrieveRaw(requestParameters, initOverrides) {
1758
+ return __awaiter(this, void 0, void 0, function* () {
1759
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
1760
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsEndpointRetrieve.');
1761
+ }
1762
+ const queryParameters = {};
1763
+ const headerParameters = {};
1764
+ if (this.configuration && this.configuration.accessToken) {
1765
+ const token = this.configuration.accessToken;
1766
+ const tokenString = yield token("authentik", []);
1767
+ if (tokenString) {
1768
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1769
+ }
1770
+ }
1771
+ const response = yield this.request({
1772
+ path: `/authenticators/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1773
+ method: 'GET',
1774
+ headers: headerParameters,
1775
+ query: queryParameters,
1776
+ }, initOverrides);
1777
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.EndpointDeviceFromJSON)(jsonValue));
1778
+ });
1779
+ }
1780
+ /**
1781
+ * Viewset for Endpoint authenticator devices
1782
+ */
1783
+ authenticatorsEndpointRetrieve(requestParameters, initOverrides) {
1784
+ return __awaiter(this, void 0, void 0, function* () {
1785
+ const response = yield this.authenticatorsEndpointRetrieveRaw(requestParameters, initOverrides);
1786
+ return yield response.value();
1787
+ });
1788
+ }
1789
+ /**
1790
+ * Get a list of all objects that use this object
1791
+ */
1792
+ authenticatorsEndpointUsedByListRaw(requestParameters, initOverrides) {
1793
+ return __awaiter(this, void 0, void 0, function* () {
1794
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
1795
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsEndpointUsedByList.');
1796
+ }
1797
+ const queryParameters = {};
1798
+ const headerParameters = {};
1799
+ if (this.configuration && this.configuration.accessToken) {
1800
+ const token = this.configuration.accessToken;
1801
+ const tokenString = yield token("authentik", []);
1802
+ if (tokenString) {
1803
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1804
+ }
1805
+ }
1806
+ const response = yield this.request({
1807
+ path: `/authenticators/endpoint/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1808
+ method: 'GET',
1809
+ headers: headerParameters,
1810
+ query: queryParameters,
1811
+ }, initOverrides);
1812
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
1813
+ });
1814
+ }
1815
+ /**
1816
+ * Get a list of all objects that use this object
1817
+ */
1818
+ authenticatorsEndpointUsedByList(requestParameters, initOverrides) {
1819
+ return __awaiter(this, void 0, void 0, function* () {
1820
+ const response = yield this.authenticatorsEndpointUsedByListRaw(requestParameters, initOverrides);
1821
+ return yield response.value();
1822
+ });
1823
+ }
1477
1824
  /**
1478
1825
  * Viewset for sms authenticator devices
1479
1826
  */
@@ -397,6 +397,7 @@ export declare const RbacPermissionsAssignedByRolesListModelEnum: {
397
397
  readonly SourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
398
398
  readonly StagesAuthenticatorDuoAuthenticatorduostage: "authentik_stages_authenticator_duo.authenticatorduostage";
399
399
  readonly StagesAuthenticatorDuoDuodevice: "authentik_stages_authenticator_duo.duodevice";
400
+ readonly StagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: "authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage";
400
401
  readonly StagesAuthenticatorSmsAuthenticatorsmsstage: "authentik_stages_authenticator_sms.authenticatorsmsstage";
401
402
  readonly StagesAuthenticatorSmsSmsdevice: "authentik_stages_authenticator_sms.smsdevice";
402
403
  readonly StagesAuthenticatorStaticAuthenticatorstaticstage: "authentik_stages_authenticator_static.authenticatorstaticstage";
@@ -493,6 +494,7 @@ export declare const RbacPermissionsAssignedByUsersListModelEnum: {
493
494
  readonly SourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
494
495
  readonly StagesAuthenticatorDuoAuthenticatorduostage: "authentik_stages_authenticator_duo.authenticatorduostage";
495
496
  readonly StagesAuthenticatorDuoDuodevice: "authentik_stages_authenticator_duo.duodevice";
497
+ readonly StagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: "authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage";
496
498
  readonly StagesAuthenticatorSmsAuthenticatorsmsstage: "authentik_stages_authenticator_sms.authenticatorsmsstage";
497
499
  readonly StagesAuthenticatorSmsSmsdevice: "authentik_stages_authenticator_sms.smsdevice";
498
500
  readonly StagesAuthenticatorStaticAuthenticatorstaticstage: "authentik_stages_authenticator_static.authenticatorstaticstage";
@@ -1100,6 +1100,7 @@ exports.RbacPermissionsAssignedByRolesListModelEnum = {
1100
1100
  SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
1101
1101
  StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
1102
1102
  StagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
1103
+ StagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: 'authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage',
1103
1104
  StagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
1104
1105
  StagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
1105
1106
  StagesAuthenticatorStaticAuthenticatorstaticstage: 'authentik_stages_authenticator_static.authenticatorstaticstage',
@@ -1195,6 +1196,7 @@ exports.RbacPermissionsAssignedByUsersListModelEnum = {
1195
1196
  SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
1196
1197
  StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
1197
1198
  StagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
1199
+ StagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: 'authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage',
1198
1200
  StagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
1199
1201
  StagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
1200
1202
  StagesAuthenticatorStaticAuthenticatorstaticstage: 'authentik_stages_authenticator_static.authenticatorstaticstage',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, AuthenticatorWebAuthnStage, AuthenticatorWebAuthnStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedAuthenticatorWebAuthnStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedSourceStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PaginatedWebAuthnDeviceTypeList, PasswordStage, PasswordStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedAuthenticatorWebAuthnStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedSourceStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptChallenge, PromptRequest, PromptStage, PromptStageRequest, SourceStage, SourceStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest, WebAuthnDeviceType } from '../models';
13
+ import type { AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorEndpointGDTCStage, AuthenticatorEndpointGDTCStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, AuthenticatorWebAuthnStage, AuthenticatorWebAuthnStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorEndpointGDTCStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedAuthenticatorWebAuthnStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedSourceStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PaginatedWebAuthnDeviceTypeList, PasswordStage, PasswordStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorEndpointGDTCStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedAuthenticatorWebAuthnStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedSourceStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptChallenge, PromptRequest, PromptStage, PromptStageRequest, SourceStage, SourceStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest, WebAuthnDeviceType } from '../models';
14
14
  export interface StagesAllDestroyRequest {
15
15
  stageUuid: string;
16
16
  }
@@ -67,6 +67,34 @@ export interface StagesAuthenticatorDuoUpdateRequest {
67
67
  export interface StagesAuthenticatorDuoUsedByListRequest {
68
68
  stageUuid: string;
69
69
  }
70
+ export interface StagesAuthenticatorEndpointGdtcCreateRequest {
71
+ authenticatorEndpointGDTCStageRequest: AuthenticatorEndpointGDTCStageRequest;
72
+ }
73
+ export interface StagesAuthenticatorEndpointGdtcDestroyRequest {
74
+ stageUuid: string;
75
+ }
76
+ export interface StagesAuthenticatorEndpointGdtcListRequest {
77
+ configureFlow?: string;
78
+ name?: string;
79
+ ordering?: string;
80
+ page?: number;
81
+ pageSize?: number;
82
+ search?: string;
83
+ }
84
+ export interface StagesAuthenticatorEndpointGdtcPartialUpdateRequest {
85
+ stageUuid: string;
86
+ patchedAuthenticatorEndpointGDTCStageRequest?: PatchedAuthenticatorEndpointGDTCStageRequest;
87
+ }
88
+ export interface StagesAuthenticatorEndpointGdtcRetrieveRequest {
89
+ stageUuid: string;
90
+ }
91
+ export interface StagesAuthenticatorEndpointGdtcUpdateRequest {
92
+ stageUuid: string;
93
+ authenticatorEndpointGDTCStageRequest: AuthenticatorEndpointGDTCStageRequest;
94
+ }
95
+ export interface StagesAuthenticatorEndpointGdtcUsedByListRequest {
96
+ stageUuid: string;
97
+ }
70
98
  export interface StagesAuthenticatorSmsCreateRequest {
71
99
  authenticatorSMSStageRequest: AuthenticatorSMSStageRequest;
72
100
  }
@@ -870,6 +898,62 @@ export declare class StagesApi extends runtime.BaseAPI {
870
898
  * Get a list of all objects that use this object
871
899
  */
872
900
  stagesAuthenticatorDuoUsedByList(requestParameters: StagesAuthenticatorDuoUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>>;
901
+ /**
902
+ * AuthenticatorEndpointGDTCStage Viewset
903
+ */
904
+ stagesAuthenticatorEndpointGdtcCreateRaw(requestParameters: StagesAuthenticatorEndpointGdtcCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorEndpointGDTCStage>>;
905
+ /**
906
+ * AuthenticatorEndpointGDTCStage Viewset
907
+ */
908
+ stagesAuthenticatorEndpointGdtcCreate(requestParameters: StagesAuthenticatorEndpointGdtcCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorEndpointGDTCStage>;
909
+ /**
910
+ * AuthenticatorEndpointGDTCStage Viewset
911
+ */
912
+ stagesAuthenticatorEndpointGdtcDestroyRaw(requestParameters: StagesAuthenticatorEndpointGdtcDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
913
+ /**
914
+ * AuthenticatorEndpointGDTCStage Viewset
915
+ */
916
+ stagesAuthenticatorEndpointGdtcDestroy(requestParameters: StagesAuthenticatorEndpointGdtcDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
917
+ /**
918
+ * AuthenticatorEndpointGDTCStage Viewset
919
+ */
920
+ stagesAuthenticatorEndpointGdtcListRaw(requestParameters: StagesAuthenticatorEndpointGdtcListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAuthenticatorEndpointGDTCStageList>>;
921
+ /**
922
+ * AuthenticatorEndpointGDTCStage Viewset
923
+ */
924
+ stagesAuthenticatorEndpointGdtcList(requestParameters?: StagesAuthenticatorEndpointGdtcListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAuthenticatorEndpointGDTCStageList>;
925
+ /**
926
+ * AuthenticatorEndpointGDTCStage Viewset
927
+ */
928
+ stagesAuthenticatorEndpointGdtcPartialUpdateRaw(requestParameters: StagesAuthenticatorEndpointGdtcPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorEndpointGDTCStage>>;
929
+ /**
930
+ * AuthenticatorEndpointGDTCStage Viewset
931
+ */
932
+ stagesAuthenticatorEndpointGdtcPartialUpdate(requestParameters: StagesAuthenticatorEndpointGdtcPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorEndpointGDTCStage>;
933
+ /**
934
+ * AuthenticatorEndpointGDTCStage Viewset
935
+ */
936
+ stagesAuthenticatorEndpointGdtcRetrieveRaw(requestParameters: StagesAuthenticatorEndpointGdtcRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorEndpointGDTCStage>>;
937
+ /**
938
+ * AuthenticatorEndpointGDTCStage Viewset
939
+ */
940
+ stagesAuthenticatorEndpointGdtcRetrieve(requestParameters: StagesAuthenticatorEndpointGdtcRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorEndpointGDTCStage>;
941
+ /**
942
+ * AuthenticatorEndpointGDTCStage Viewset
943
+ */
944
+ stagesAuthenticatorEndpointGdtcUpdateRaw(requestParameters: StagesAuthenticatorEndpointGdtcUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorEndpointGDTCStage>>;
945
+ /**
946
+ * AuthenticatorEndpointGDTCStage Viewset
947
+ */
948
+ stagesAuthenticatorEndpointGdtcUpdate(requestParameters: StagesAuthenticatorEndpointGdtcUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorEndpointGDTCStage>;
949
+ /**
950
+ * Get a list of all objects that use this object
951
+ */
952
+ stagesAuthenticatorEndpointGdtcUsedByListRaw(requestParameters: StagesAuthenticatorEndpointGdtcUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
953
+ /**
954
+ * Get a list of all objects that use this object
955
+ */
956
+ stagesAuthenticatorEndpointGdtcUsedByList(requestParameters: StagesAuthenticatorEndpointGdtcUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>>;
873
957
  /**
874
958
  * AuthenticatorSMSStage Viewset
875
959
  */