@goauthentik/api 2024.8.3-1729166675 → 2024.8.3-1729630021

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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 { DeviceFromJSON, DuoDeviceFromJSON, DuoDeviceRequestToJSON, PaginatedDuoDeviceListFromJSON, PaginatedSMSDeviceListFromJSON, PaginatedStaticDeviceListFromJSON, PaginatedTOTPDeviceListFromJSON, PaginatedWebAuthnDeviceListFromJSON, PatchedDuoDeviceRequestToJSON, PatchedSMSDeviceRequestToJSON, PatchedStaticDeviceRequestToJSON, PatchedTOTPDeviceRequestToJSON, PatchedWebAuthnDeviceRequestToJSON, SMSDeviceFromJSON, SMSDeviceRequestToJSON, StaticDeviceFromJSON, StaticDeviceRequestToJSON, TOTPDeviceFromJSON, TOTPDeviceRequestToJSON, UsedByFromJSON, WebAuthnDeviceFromJSON, WebAuthnDeviceRequestToJSON, } from '../models';
24
+ import { DeviceFromJSON, DuoDeviceFromJSON, DuoDeviceRequestToJSON, EndpointDeviceFromJSON, EndpointDeviceRequestToJSON, PaginatedDuoDeviceListFromJSON, PaginatedEndpointDeviceListFromJSON, PaginatedSMSDeviceListFromJSON, PaginatedStaticDeviceListFromJSON, PaginatedTOTPDeviceListFromJSON, PaginatedWebAuthnDeviceListFromJSON, PatchedDuoDeviceRequestToJSON, PatchedEndpointDeviceRequestToJSON, PatchedSMSDeviceRequestToJSON, PatchedStaticDeviceRequestToJSON, PatchedTOTPDeviceRequestToJSON, PatchedWebAuthnDeviceRequestToJSON, SMSDeviceFromJSON, SMSDeviceRequestToJSON, StaticDeviceFromJSON, StaticDeviceRequestToJSON, TOTPDeviceFromJSON, TOTPDeviceRequestToJSON, UsedByFromJSON, WebAuthnDeviceFromJSON, WebAuthnDeviceRequestToJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -291,6 +291,236 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
291
291
  return yield response.value();
292
292
  });
293
293
  }
294
+ /**
295
+ * Viewset for Endpoint authenticator devices (for admins)
296
+ */
297
+ authenticatorsAdminEndpointCreateRaw(requestParameters, initOverrides) {
298
+ return __awaiter(this, void 0, void 0, function* () {
299
+ if (requestParameters.endpointDeviceRequest === null || requestParameters.endpointDeviceRequest === undefined) {
300
+ throw new runtime.RequiredError('endpointDeviceRequest', 'Required parameter requestParameters.endpointDeviceRequest was null or undefined when calling authenticatorsAdminEndpointCreate.');
301
+ }
302
+ const queryParameters = {};
303
+ const headerParameters = {};
304
+ headerParameters['Content-Type'] = 'application/json';
305
+ if (this.configuration && this.configuration.accessToken) {
306
+ const token = this.configuration.accessToken;
307
+ const tokenString = yield token("authentik", []);
308
+ if (tokenString) {
309
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
310
+ }
311
+ }
312
+ const response = yield this.request({
313
+ path: `/authenticators/admin/endpoint/`,
314
+ method: 'POST',
315
+ headers: headerParameters,
316
+ query: queryParameters,
317
+ body: EndpointDeviceRequestToJSON(requestParameters.endpointDeviceRequest),
318
+ }, initOverrides);
319
+ return new runtime.JSONApiResponse(response, (jsonValue) => EndpointDeviceFromJSON(jsonValue));
320
+ });
321
+ }
322
+ /**
323
+ * Viewset for Endpoint authenticator devices (for admins)
324
+ */
325
+ authenticatorsAdminEndpointCreate(requestParameters, initOverrides) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ const response = yield this.authenticatorsAdminEndpointCreateRaw(requestParameters, initOverrides);
328
+ return yield response.value();
329
+ });
330
+ }
331
+ /**
332
+ * Viewset for Endpoint authenticator devices (for admins)
333
+ */
334
+ authenticatorsAdminEndpointDestroyRaw(requestParameters, initOverrides) {
335
+ return __awaiter(this, void 0, void 0, function* () {
336
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
337
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsAdminEndpointDestroy.');
338
+ }
339
+ const queryParameters = {};
340
+ const headerParameters = {};
341
+ if (this.configuration && this.configuration.accessToken) {
342
+ const token = this.configuration.accessToken;
343
+ const tokenString = yield token("authentik", []);
344
+ if (tokenString) {
345
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
346
+ }
347
+ }
348
+ const response = yield this.request({
349
+ path: `/authenticators/admin/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
350
+ method: 'DELETE',
351
+ headers: headerParameters,
352
+ query: queryParameters,
353
+ }, initOverrides);
354
+ return new runtime.VoidApiResponse(response);
355
+ });
356
+ }
357
+ /**
358
+ * Viewset for Endpoint authenticator devices (for admins)
359
+ */
360
+ authenticatorsAdminEndpointDestroy(requestParameters, initOverrides) {
361
+ return __awaiter(this, void 0, void 0, function* () {
362
+ yield this.authenticatorsAdminEndpointDestroyRaw(requestParameters, initOverrides);
363
+ });
364
+ }
365
+ /**
366
+ * Viewset for Endpoint authenticator devices (for admins)
367
+ */
368
+ authenticatorsAdminEndpointListRaw(requestParameters, initOverrides) {
369
+ return __awaiter(this, void 0, void 0, function* () {
370
+ const queryParameters = {};
371
+ if (requestParameters.name !== undefined) {
372
+ queryParameters['name'] = requestParameters.name;
373
+ }
374
+ if (requestParameters.ordering !== undefined) {
375
+ queryParameters['ordering'] = requestParameters.ordering;
376
+ }
377
+ if (requestParameters.page !== undefined) {
378
+ queryParameters['page'] = requestParameters.page;
379
+ }
380
+ if (requestParameters.pageSize !== undefined) {
381
+ queryParameters['page_size'] = requestParameters.pageSize;
382
+ }
383
+ if (requestParameters.search !== undefined) {
384
+ queryParameters['search'] = requestParameters.search;
385
+ }
386
+ const headerParameters = {};
387
+ if (this.configuration && this.configuration.accessToken) {
388
+ const token = this.configuration.accessToken;
389
+ const tokenString = yield token("authentik", []);
390
+ if (tokenString) {
391
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
392
+ }
393
+ }
394
+ const response = yield this.request({
395
+ path: `/authenticators/admin/endpoint/`,
396
+ method: 'GET',
397
+ headers: headerParameters,
398
+ query: queryParameters,
399
+ }, initOverrides);
400
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEndpointDeviceListFromJSON(jsonValue));
401
+ });
402
+ }
403
+ /**
404
+ * Viewset for Endpoint authenticator devices (for admins)
405
+ */
406
+ authenticatorsAdminEndpointList(requestParameters = {}, initOverrides) {
407
+ return __awaiter(this, void 0, void 0, function* () {
408
+ const response = yield this.authenticatorsAdminEndpointListRaw(requestParameters, initOverrides);
409
+ return yield response.value();
410
+ });
411
+ }
412
+ /**
413
+ * Viewset for Endpoint authenticator devices (for admins)
414
+ */
415
+ authenticatorsAdminEndpointPartialUpdateRaw(requestParameters, initOverrides) {
416
+ return __awaiter(this, void 0, void 0, function* () {
417
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
418
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsAdminEndpointPartialUpdate.');
419
+ }
420
+ const queryParameters = {};
421
+ const headerParameters = {};
422
+ headerParameters['Content-Type'] = 'application/json';
423
+ if (this.configuration && this.configuration.accessToken) {
424
+ const token = this.configuration.accessToken;
425
+ const tokenString = yield token("authentik", []);
426
+ if (tokenString) {
427
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
428
+ }
429
+ }
430
+ const response = yield this.request({
431
+ path: `/authenticators/admin/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
432
+ method: 'PATCH',
433
+ headers: headerParameters,
434
+ query: queryParameters,
435
+ body: PatchedEndpointDeviceRequestToJSON(requestParameters.patchedEndpointDeviceRequest),
436
+ }, initOverrides);
437
+ return new runtime.JSONApiResponse(response, (jsonValue) => EndpointDeviceFromJSON(jsonValue));
438
+ });
439
+ }
440
+ /**
441
+ * Viewset for Endpoint authenticator devices (for admins)
442
+ */
443
+ authenticatorsAdminEndpointPartialUpdate(requestParameters, initOverrides) {
444
+ return __awaiter(this, void 0, void 0, function* () {
445
+ const response = yield this.authenticatorsAdminEndpointPartialUpdateRaw(requestParameters, initOverrides);
446
+ return yield response.value();
447
+ });
448
+ }
449
+ /**
450
+ * Viewset for Endpoint authenticator devices (for admins)
451
+ */
452
+ authenticatorsAdminEndpointRetrieveRaw(requestParameters, initOverrides) {
453
+ return __awaiter(this, void 0, void 0, function* () {
454
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
455
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsAdminEndpointRetrieve.');
456
+ }
457
+ const queryParameters = {};
458
+ const headerParameters = {};
459
+ if (this.configuration && this.configuration.accessToken) {
460
+ const token = this.configuration.accessToken;
461
+ const tokenString = yield token("authentik", []);
462
+ if (tokenString) {
463
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
464
+ }
465
+ }
466
+ const response = yield this.request({
467
+ path: `/authenticators/admin/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
468
+ method: 'GET',
469
+ headers: headerParameters,
470
+ query: queryParameters,
471
+ }, initOverrides);
472
+ return new runtime.JSONApiResponse(response, (jsonValue) => EndpointDeviceFromJSON(jsonValue));
473
+ });
474
+ }
475
+ /**
476
+ * Viewset for Endpoint authenticator devices (for admins)
477
+ */
478
+ authenticatorsAdminEndpointRetrieve(requestParameters, initOverrides) {
479
+ return __awaiter(this, void 0, void 0, function* () {
480
+ const response = yield this.authenticatorsAdminEndpointRetrieveRaw(requestParameters, initOverrides);
481
+ return yield response.value();
482
+ });
483
+ }
484
+ /**
485
+ * Viewset for Endpoint authenticator devices (for admins)
486
+ */
487
+ authenticatorsAdminEndpointUpdateRaw(requestParameters, initOverrides) {
488
+ return __awaiter(this, void 0, void 0, function* () {
489
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
490
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsAdminEndpointUpdate.');
491
+ }
492
+ if (requestParameters.endpointDeviceRequest === null || requestParameters.endpointDeviceRequest === undefined) {
493
+ throw new runtime.RequiredError('endpointDeviceRequest', 'Required parameter requestParameters.endpointDeviceRequest was null or undefined when calling authenticatorsAdminEndpointUpdate.');
494
+ }
495
+ const queryParameters = {};
496
+ const headerParameters = {};
497
+ headerParameters['Content-Type'] = 'application/json';
498
+ if (this.configuration && this.configuration.accessToken) {
499
+ const token = this.configuration.accessToken;
500
+ const tokenString = yield token("authentik", []);
501
+ if (tokenString) {
502
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
503
+ }
504
+ }
505
+ const response = yield this.request({
506
+ path: `/authenticators/admin/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
507
+ method: 'PUT',
508
+ headers: headerParameters,
509
+ query: queryParameters,
510
+ body: EndpointDeviceRequestToJSON(requestParameters.endpointDeviceRequest),
511
+ }, initOverrides);
512
+ return new runtime.JSONApiResponse(response, (jsonValue) => EndpointDeviceFromJSON(jsonValue));
513
+ });
514
+ }
515
+ /**
516
+ * Viewset for Endpoint authenticator devices (for admins)
517
+ */
518
+ authenticatorsAdminEndpointUpdate(requestParameters, initOverrides) {
519
+ return __awaiter(this, void 0, void 0, function* () {
520
+ const response = yield this.authenticatorsAdminEndpointUpdateRaw(requestParameters, initOverrides);
521
+ return yield response.value();
522
+ });
523
+ }
294
524
  /**
295
525
  * Viewset for sms authenticator devices (for admins)
296
526
  */
@@ -1471,6 +1701,123 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1471
1701
  return yield response.value();
1472
1702
  });
1473
1703
  }
1704
+ /**
1705
+ * Viewset for Endpoint authenticator devices
1706
+ */
1707
+ authenticatorsEndpointListRaw(requestParameters, initOverrides) {
1708
+ return __awaiter(this, void 0, void 0, function* () {
1709
+ const queryParameters = {};
1710
+ if (requestParameters.name !== undefined) {
1711
+ queryParameters['name'] = requestParameters.name;
1712
+ }
1713
+ if (requestParameters.ordering !== undefined) {
1714
+ queryParameters['ordering'] = requestParameters.ordering;
1715
+ }
1716
+ if (requestParameters.page !== undefined) {
1717
+ queryParameters['page'] = requestParameters.page;
1718
+ }
1719
+ if (requestParameters.pageSize !== undefined) {
1720
+ queryParameters['page_size'] = requestParameters.pageSize;
1721
+ }
1722
+ if (requestParameters.search !== undefined) {
1723
+ queryParameters['search'] = requestParameters.search;
1724
+ }
1725
+ const headerParameters = {};
1726
+ if (this.configuration && this.configuration.accessToken) {
1727
+ const token = this.configuration.accessToken;
1728
+ const tokenString = yield token("authentik", []);
1729
+ if (tokenString) {
1730
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1731
+ }
1732
+ }
1733
+ const response = yield this.request({
1734
+ path: `/authenticators/endpoint/`,
1735
+ method: 'GET',
1736
+ headers: headerParameters,
1737
+ query: queryParameters,
1738
+ }, initOverrides);
1739
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEndpointDeviceListFromJSON(jsonValue));
1740
+ });
1741
+ }
1742
+ /**
1743
+ * Viewset for Endpoint authenticator devices
1744
+ */
1745
+ authenticatorsEndpointList(requestParameters = {}, initOverrides) {
1746
+ return __awaiter(this, void 0, void 0, function* () {
1747
+ const response = yield this.authenticatorsEndpointListRaw(requestParameters, initOverrides);
1748
+ return yield response.value();
1749
+ });
1750
+ }
1751
+ /**
1752
+ * Viewset for Endpoint authenticator devices
1753
+ */
1754
+ authenticatorsEndpointRetrieveRaw(requestParameters, initOverrides) {
1755
+ return __awaiter(this, void 0, void 0, function* () {
1756
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
1757
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsEndpointRetrieve.');
1758
+ }
1759
+ const queryParameters = {};
1760
+ const headerParameters = {};
1761
+ if (this.configuration && this.configuration.accessToken) {
1762
+ const token = this.configuration.accessToken;
1763
+ const tokenString = yield token("authentik", []);
1764
+ if (tokenString) {
1765
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1766
+ }
1767
+ }
1768
+ const response = yield this.request({
1769
+ path: `/authenticators/endpoint/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1770
+ method: 'GET',
1771
+ headers: headerParameters,
1772
+ query: queryParameters,
1773
+ }, initOverrides);
1774
+ return new runtime.JSONApiResponse(response, (jsonValue) => EndpointDeviceFromJSON(jsonValue));
1775
+ });
1776
+ }
1777
+ /**
1778
+ * Viewset for Endpoint authenticator devices
1779
+ */
1780
+ authenticatorsEndpointRetrieve(requestParameters, initOverrides) {
1781
+ return __awaiter(this, void 0, void 0, function* () {
1782
+ const response = yield this.authenticatorsEndpointRetrieveRaw(requestParameters, initOverrides);
1783
+ return yield response.value();
1784
+ });
1785
+ }
1786
+ /**
1787
+ * Get a list of all objects that use this object
1788
+ */
1789
+ authenticatorsEndpointUsedByListRaw(requestParameters, initOverrides) {
1790
+ return __awaiter(this, void 0, void 0, function* () {
1791
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
1792
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling authenticatorsEndpointUsedByList.');
1793
+ }
1794
+ const queryParameters = {};
1795
+ const headerParameters = {};
1796
+ if (this.configuration && this.configuration.accessToken) {
1797
+ const token = this.configuration.accessToken;
1798
+ const tokenString = yield token("authentik", []);
1799
+ if (tokenString) {
1800
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1801
+ }
1802
+ }
1803
+ const response = yield this.request({
1804
+ path: `/authenticators/endpoint/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1805
+ method: 'GET',
1806
+ headers: headerParameters,
1807
+ query: queryParameters,
1808
+ }, initOverrides);
1809
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
1810
+ });
1811
+ }
1812
+ /**
1813
+ * Get a list of all objects that use this object
1814
+ */
1815
+ authenticatorsEndpointUsedByList(requestParameters, initOverrides) {
1816
+ return __awaiter(this, void 0, void 0, function* () {
1817
+ const response = yield this.authenticatorsEndpointUsedByListRaw(requestParameters, initOverrides);
1818
+ return yield response.value();
1819
+ });
1820
+ }
1474
1821
  /**
1475
1822
  * Viewset for sms authenticator devices
1476
1823
  */
@@ -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";
@@ -1096,6 +1096,7 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
1096
1096
  SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
1097
1097
  StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
1098
1098
  StagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
1099
+ StagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: 'authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage',
1099
1100
  StagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
1100
1101
  StagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
1101
1102
  StagesAuthenticatorStaticAuthenticatorstaticstage: 'authentik_stages_authenticator_static.authenticatorstaticstage',
@@ -1191,6 +1192,7 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
1191
1192
  SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
1192
1193
  StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
1193
1194
  StagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
1195
+ StagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: 'authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage',
1194
1196
  StagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
1195
1197
  StagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
1196
1198
  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
  */