@goauthentik/api 2022.6.2-1654969708 → 2022.6.2-1655288048

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 (137) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/CoreApi.d.ts +14 -1
  3. package/dist/apis/CoreApi.js +37 -0
  4. package/dist/apis/SourcesApi.d.ts +1 -0
  5. package/dist/apis/SourcesApi.js +3 -0
  6. package/dist/apis/StagesApi.d.ts +1 -0
  7. package/dist/apis/StagesApi.js +3 -0
  8. package/dist/esm/apis/CoreApi.d.ts +14 -1
  9. package/dist/esm/apis/CoreApi.js +38 -1
  10. package/dist/esm/apis/SourcesApi.d.ts +1 -0
  11. package/dist/esm/apis/SourcesApi.js +3 -0
  12. package/dist/esm/apis/StagesApi.d.ts +1 -0
  13. package/dist/esm/apis/StagesApi.js +3 -0
  14. package/dist/esm/models/LDAPSource.d.ts +6 -0
  15. package/dist/esm/models/LDAPSource.js +2 -0
  16. package/dist/esm/models/LDAPSourceRequest.d.ts +6 -0
  17. package/dist/esm/models/LDAPSourceRequest.js +2 -0
  18. package/dist/esm/models/OAuthSource.d.ts +6 -0
  19. package/dist/esm/models/OAuthSource.js +2 -0
  20. package/dist/esm/models/OAuthSourceRequest.d.ts +6 -0
  21. package/dist/esm/models/OAuthSourceRequest.js +2 -0
  22. package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +6 -0
  23. package/dist/esm/models/PatchedLDAPSourceRequest.js +2 -0
  24. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +6 -0
  25. package/dist/esm/models/PatchedOAuthSourceRequest.js +2 -0
  26. package/dist/esm/models/PatchedPlexSourceRequest.d.ts +6 -0
  27. package/dist/esm/models/PatchedPlexSourceRequest.js +2 -0
  28. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +6 -0
  29. package/dist/esm/models/PatchedSAMLSourceRequest.js +2 -0
  30. package/dist/esm/models/PatchedUserRequest.d.ts +6 -0
  31. package/dist/esm/models/PatchedUserRequest.js +2 -0
  32. package/dist/esm/models/PatchedUserWriteStageRequest.d.ts +6 -0
  33. package/dist/esm/models/PatchedUserWriteStageRequest.js +2 -0
  34. package/dist/esm/models/PlexSource.d.ts +6 -0
  35. package/dist/esm/models/PlexSource.js +2 -0
  36. package/dist/esm/models/PlexSourceConnectionSource.d.ts +6 -0
  37. package/dist/esm/models/PlexSourceConnectionSource.js +2 -0
  38. package/dist/esm/models/PlexSourceRequest.d.ts +6 -0
  39. package/dist/esm/models/PlexSourceRequest.js +2 -0
  40. package/dist/esm/models/PolicyBindingUserObj.d.ts +6 -0
  41. package/dist/esm/models/PolicyBindingUserObj.js +2 -0
  42. package/dist/esm/models/SAMLSource.d.ts +6 -0
  43. package/dist/esm/models/SAMLSource.js +2 -0
  44. package/dist/esm/models/SAMLSourceRequest.d.ts +6 -0
  45. package/dist/esm/models/SAMLSourceRequest.js +2 -0
  46. package/dist/esm/models/Source.d.ts +6 -0
  47. package/dist/esm/models/Source.js +2 -0
  48. package/dist/esm/models/SourceRequest.d.ts +6 -0
  49. package/dist/esm/models/SourceRequest.js +2 -0
  50. package/dist/esm/models/User.d.ts +6 -0
  51. package/dist/esm/models/User.js +2 -0
  52. package/dist/esm/models/UserPath.d.ts +27 -0
  53. package/dist/esm/models/UserPath.js +33 -0
  54. package/dist/esm/models/UserRequest.d.ts +6 -0
  55. package/dist/esm/models/UserRequest.js +2 -0
  56. package/dist/esm/models/UserWriteStage.d.ts +6 -0
  57. package/dist/esm/models/UserWriteStage.js +2 -0
  58. package/dist/esm/models/UserWriteStageRequest.d.ts +6 -0
  59. package/dist/esm/models/UserWriteStageRequest.js +2 -0
  60. package/dist/esm/models/index.d.ts +1 -0
  61. package/dist/esm/models/index.js +1 -0
  62. package/dist/models/LDAPSource.d.ts +6 -0
  63. package/dist/models/LDAPSource.js +2 -0
  64. package/dist/models/LDAPSourceRequest.d.ts +6 -0
  65. package/dist/models/LDAPSourceRequest.js +2 -0
  66. package/dist/models/OAuthSource.d.ts +6 -0
  67. package/dist/models/OAuthSource.js +2 -0
  68. package/dist/models/OAuthSourceRequest.d.ts +6 -0
  69. package/dist/models/OAuthSourceRequest.js +2 -0
  70. package/dist/models/PatchedLDAPSourceRequest.d.ts +6 -0
  71. package/dist/models/PatchedLDAPSourceRequest.js +2 -0
  72. package/dist/models/PatchedOAuthSourceRequest.d.ts +6 -0
  73. package/dist/models/PatchedOAuthSourceRequest.js +2 -0
  74. package/dist/models/PatchedPlexSourceRequest.d.ts +6 -0
  75. package/dist/models/PatchedPlexSourceRequest.js +2 -0
  76. package/dist/models/PatchedSAMLSourceRequest.d.ts +6 -0
  77. package/dist/models/PatchedSAMLSourceRequest.js +2 -0
  78. package/dist/models/PatchedUserRequest.d.ts +6 -0
  79. package/dist/models/PatchedUserRequest.js +2 -0
  80. package/dist/models/PatchedUserWriteStageRequest.d.ts +6 -0
  81. package/dist/models/PatchedUserWriteStageRequest.js +2 -0
  82. package/dist/models/PlexSource.d.ts +6 -0
  83. package/dist/models/PlexSource.js +2 -0
  84. package/dist/models/PlexSourceConnectionSource.d.ts +6 -0
  85. package/dist/models/PlexSourceConnectionSource.js +2 -0
  86. package/dist/models/PlexSourceRequest.d.ts +6 -0
  87. package/dist/models/PlexSourceRequest.js +2 -0
  88. package/dist/models/PolicyBindingUserObj.d.ts +6 -0
  89. package/dist/models/PolicyBindingUserObj.js +2 -0
  90. package/dist/models/SAMLSource.d.ts +6 -0
  91. package/dist/models/SAMLSource.js +2 -0
  92. package/dist/models/SAMLSourceRequest.d.ts +6 -0
  93. package/dist/models/SAMLSourceRequest.js +2 -0
  94. package/dist/models/Source.d.ts +6 -0
  95. package/dist/models/Source.js +2 -0
  96. package/dist/models/SourceRequest.d.ts +6 -0
  97. package/dist/models/SourceRequest.js +2 -0
  98. package/dist/models/User.d.ts +6 -0
  99. package/dist/models/User.js +2 -0
  100. package/dist/models/UserPath.d.ts +27 -0
  101. package/dist/models/UserPath.js +39 -0
  102. package/dist/models/UserRequest.d.ts +6 -0
  103. package/dist/models/UserRequest.js +2 -0
  104. package/dist/models/UserWriteStage.d.ts +6 -0
  105. package/dist/models/UserWriteStage.js +2 -0
  106. package/dist/models/UserWriteStageRequest.d.ts +6 -0
  107. package/dist/models/UserWriteStageRequest.js +2 -0
  108. package/dist/models/index.d.ts +1 -0
  109. package/dist/models/index.js +1 -0
  110. package/package.json +1 -1
  111. package/src/apis/CoreApi.ts +51 -0
  112. package/src/apis/SourcesApi.ts +5 -0
  113. package/src/apis/StagesApi.ts +5 -0
  114. package/src/models/LDAPSource.ts +8 -0
  115. package/src/models/LDAPSourceRequest.ts +8 -0
  116. package/src/models/OAuthSource.ts +8 -0
  117. package/src/models/OAuthSourceRequest.ts +8 -0
  118. package/src/models/PatchedLDAPSourceRequest.ts +8 -0
  119. package/src/models/PatchedOAuthSourceRequest.ts +8 -0
  120. package/src/models/PatchedPlexSourceRequest.ts +8 -0
  121. package/src/models/PatchedSAMLSourceRequest.ts +8 -0
  122. package/src/models/PatchedUserRequest.ts +8 -0
  123. package/src/models/PatchedUserWriteStageRequest.ts +8 -0
  124. package/src/models/PlexSource.ts +8 -0
  125. package/src/models/PlexSourceConnectionSource.ts +8 -0
  126. package/src/models/PlexSourceRequest.ts +8 -0
  127. package/src/models/PolicyBindingUserObj.ts +8 -0
  128. package/src/models/SAMLSource.ts +8 -0
  129. package/src/models/SAMLSourceRequest.ts +8 -0
  130. package/src/models/Source.ts +8 -0
  131. package/src/models/SourceRequest.ts +8 -0
  132. package/src/models/User.ts +8 -0
  133. package/src/models/UserPath.ts +55 -0
  134. package/src/models/UserRequest.ts +8 -0
  135. package/src/models/UserWriteStage.ts +8 -0
  136. package/src/models/UserWriteStageRequest.ts +8 -0
  137. package/src/models/index.ts +1 -0
@@ -443,6 +443,7 @@ src/models/UserMetrics.ts
443
443
  src/models/UserOAuthSourceConnection.ts
444
444
  src/models/UserOAuthSourceConnectionRequest.ts
445
445
  src/models/UserPasswordSetRequest.ts
446
+ src/models/UserPath.ts
446
447
  src/models/UserRequest.ts
447
448
  src/models/UserSelf.ts
448
449
  src/models/UserSelfGroups.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Application, ApplicationRequest, AuthenticatedSession, Coordinate, CurrentTenant, FilePathRequest, Group, GroupRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedGroupList, PaginatedTenantList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedGroupRequest, PatchedTenantRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Tenant, TenantRequest, Token, TokenRequest, TokenSetKeyRequest, TokenView, UsedBy, User, UserConsent, UserMetrics, UserPasswordSetRequest, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
13
+ import { Application, ApplicationRequest, AuthenticatedSession, Coordinate, CurrentTenant, FilePathRequest, Group, GroupRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedGroupList, PaginatedTenantList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedGroupRequest, PatchedTenantRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Tenant, TenantRequest, Token, TokenRequest, TokenSetKeyRequest, TokenView, UsedBy, User, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
14
14
  export interface CoreApplicationsCheckAccessRetrieveRequest {
15
15
  slug: string;
16
16
  forUser?: number;
@@ -218,6 +218,8 @@ export interface CoreUsersListRequest {
218
218
  ordering?: string;
219
219
  page?: number;
220
220
  pageSize?: number;
221
+ path?: string;
222
+ pathStartswith?: string;
221
223
  search?: string;
222
224
  username?: string;
223
225
  uuid?: string;
@@ -229,6 +231,9 @@ export interface CoreUsersPartialUpdateRequest {
229
231
  id: number;
230
232
  patchedUserRequest?: PatchedUserRequest;
231
233
  }
234
+ export interface CoreUsersPathsRetrieveRequest {
235
+ search?: string;
236
+ }
232
237
  export interface CoreUsersRecoveryEmailRetrieveRequest {
233
238
  emailStage: string;
234
239
  id: number;
@@ -649,6 +654,14 @@ export declare class CoreApi extends runtime.BaseAPI {
649
654
  * User Viewset
650
655
  */
651
656
  coreUsersPartialUpdate(requestParameters: CoreUsersPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<User>;
657
+ /**
658
+ * Get all user paths
659
+ */
660
+ coreUsersPathsRetrieveRaw(requestParameters: CoreUsersPathsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserPath>>;
661
+ /**
662
+ * Get all user paths
663
+ */
664
+ coreUsersPathsRetrieve(requestParameters?: CoreUsersPathsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserPath>;
652
665
  /**
653
666
  * Create a temporary link that a user can use to recover their accounts
654
667
  */
@@ -1673,6 +1673,12 @@ class CoreApi extends runtime.BaseAPI {
1673
1673
  if (requestParameters.pageSize !== undefined) {
1674
1674
  queryParameters['page_size'] = requestParameters.pageSize;
1675
1675
  }
1676
+ if (requestParameters.path !== undefined) {
1677
+ queryParameters['path'] = requestParameters.path;
1678
+ }
1679
+ if (requestParameters.pathStartswith !== undefined) {
1680
+ queryParameters['path_startswith'] = requestParameters.pathStartswith;
1681
+ }
1676
1682
  if (requestParameters.search !== undefined) {
1677
1683
  queryParameters['search'] = requestParameters.search;
1678
1684
  }
@@ -1796,6 +1802,37 @@ class CoreApi extends runtime.BaseAPI {
1796
1802
  return yield response.value();
1797
1803
  });
1798
1804
  }
1805
+ /**
1806
+ * Get all user paths
1807
+ */
1808
+ coreUsersPathsRetrieveRaw(requestParameters, initOverrides) {
1809
+ return __awaiter(this, void 0, void 0, function* () {
1810
+ const queryParameters = {};
1811
+ if (requestParameters.search !== undefined) {
1812
+ queryParameters['search'] = requestParameters.search;
1813
+ }
1814
+ const headerParameters = {};
1815
+ if (this.configuration && this.configuration.apiKey) {
1816
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1817
+ }
1818
+ const response = yield this.request({
1819
+ path: `/core/users/paths/`,
1820
+ method: 'GET',
1821
+ headers: headerParameters,
1822
+ query: queryParameters,
1823
+ }, initOverrides);
1824
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserPathFromJSON)(jsonValue));
1825
+ });
1826
+ }
1827
+ /**
1828
+ * Get all user paths
1829
+ */
1830
+ coreUsersPathsRetrieve(requestParameters = {}, initOverrides) {
1831
+ return __awaiter(this, void 0, void 0, function* () {
1832
+ const response = yield this.coreUsersPathsRetrieveRaw(requestParameters, initOverrides);
1833
+ return yield response.value();
1834
+ });
1835
+ }
1799
1836
  /**
1800
1837
  * Create a temporary link that a user can use to recover their accounts
1801
1838
  */
@@ -197,6 +197,7 @@ export interface SourcesSamlListRequest {
197
197
  ssoUrl?: string;
198
198
  temporaryUserDeleteAfter?: string;
199
199
  userMatchingMode?: SourcesSamlListUserMatchingModeEnum;
200
+ userPathTemplate?: string;
200
201
  }
201
202
  export interface SourcesSamlMetadataRetrieveRequest {
202
203
  slug: string;
@@ -1337,6 +1337,9 @@ class SourcesApi extends runtime.BaseAPI {
1337
1337
  if (requestParameters.userMatchingMode !== undefined) {
1338
1338
  queryParameters['user_matching_mode'] = requestParameters.userMatchingMode;
1339
1339
  }
1340
+ if (requestParameters.userPathTemplate !== undefined) {
1341
+ queryParameters['user_path_template'] = requestParameters.userPathTemplate;
1342
+ }
1340
1343
  const headerParameters = {};
1341
1344
  if (this.configuration && this.configuration.apiKey) {
1342
1345
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -658,6 +658,7 @@ export interface StagesUserWriteListRequest {
658
658
  pageSize?: number;
659
659
  search?: string;
660
660
  stageUuid?: string;
661
+ userPathTemplate?: string;
661
662
  }
662
663
  export interface StagesUserWritePartialUpdateRequest {
663
664
  stageUuid: string;
@@ -5353,6 +5353,9 @@ class StagesApi extends runtime.BaseAPI {
5353
5353
  if (requestParameters.stageUuid !== undefined) {
5354
5354
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
5355
5355
  }
5356
+ if (requestParameters.userPathTemplate !== undefined) {
5357
+ queryParameters['user_path_template'] = requestParameters.userPathTemplate;
5358
+ }
5356
5359
  const headerParameters = {};
5357
5360
  if (this.configuration && this.configuration.apiKey) {
5358
5361
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Application, ApplicationRequest, AuthenticatedSession, Coordinate, CurrentTenant, FilePathRequest, Group, GroupRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedGroupList, PaginatedTenantList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedGroupRequest, PatchedTenantRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Tenant, TenantRequest, Token, TokenRequest, TokenSetKeyRequest, TokenView, UsedBy, User, UserConsent, UserMetrics, UserPasswordSetRequest, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
13
+ import { Application, ApplicationRequest, AuthenticatedSession, Coordinate, CurrentTenant, FilePathRequest, Group, GroupRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedGroupList, PaginatedTenantList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedGroupRequest, PatchedTenantRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Tenant, TenantRequest, Token, TokenRequest, TokenSetKeyRequest, TokenView, UsedBy, User, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
14
14
  export interface CoreApplicationsCheckAccessRetrieveRequest {
15
15
  slug: string;
16
16
  forUser?: number;
@@ -218,6 +218,8 @@ export interface CoreUsersListRequest {
218
218
  ordering?: string;
219
219
  page?: number;
220
220
  pageSize?: number;
221
+ path?: string;
222
+ pathStartswith?: string;
221
223
  search?: string;
222
224
  username?: string;
223
225
  uuid?: string;
@@ -229,6 +231,9 @@ export interface CoreUsersPartialUpdateRequest {
229
231
  id: number;
230
232
  patchedUserRequest?: PatchedUserRequest;
231
233
  }
234
+ export interface CoreUsersPathsRetrieveRequest {
235
+ search?: string;
236
+ }
232
237
  export interface CoreUsersRecoveryEmailRetrieveRequest {
233
238
  emailStage: string;
234
239
  id: number;
@@ -649,6 +654,14 @@ export declare class CoreApi extends runtime.BaseAPI {
649
654
  * User Viewset
650
655
  */
651
656
  coreUsersPartialUpdate(requestParameters: CoreUsersPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<User>;
657
+ /**
658
+ * Get all user paths
659
+ */
660
+ coreUsersPathsRetrieveRaw(requestParameters: CoreUsersPathsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserPath>>;
661
+ /**
662
+ * Get all user paths
663
+ */
664
+ coreUsersPathsRetrieve(requestParameters?: CoreUsersPathsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserPath>;
652
665
  /**
653
666
  * Create a temporary link that a user can use to recover their accounts
654
667
  */
@@ -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 { ApplicationFromJSON, ApplicationRequestToJSON, AuthenticatedSessionFromJSON, CoordinateFromJSON, CurrentTenantFromJSON, FilePathRequestToJSON, GroupFromJSON, GroupRequestToJSON, LinkFromJSON, PaginatedApplicationListFromJSON, PaginatedAuthenticatedSessionListFromJSON, PaginatedGroupListFromJSON, PaginatedTenantListFromJSON, PaginatedTokenListFromJSON, PaginatedUserConsentListFromJSON, PaginatedUserListFromJSON, PatchedApplicationRequestToJSON, PatchedGroupRequestToJSON, PatchedTenantRequestToJSON, PatchedTokenRequestToJSON, PatchedUserRequestToJSON, PolicyTestResultFromJSON, SessionUserFromJSON, TenantFromJSON, TenantRequestToJSON, TokenFromJSON, TokenRequestToJSON, TokenSetKeyRequestToJSON, TokenViewFromJSON, UsedByFromJSON, UserFromJSON, UserConsentFromJSON, UserMetricsFromJSON, UserPasswordSetRequestToJSON, UserRequestToJSON, UserServiceAccountRequestToJSON, UserServiceAccountResponseFromJSON, } from '../models';
24
+ import { ApplicationFromJSON, ApplicationRequestToJSON, AuthenticatedSessionFromJSON, CoordinateFromJSON, CurrentTenantFromJSON, FilePathRequestToJSON, GroupFromJSON, GroupRequestToJSON, LinkFromJSON, PaginatedApplicationListFromJSON, PaginatedAuthenticatedSessionListFromJSON, PaginatedGroupListFromJSON, PaginatedTenantListFromJSON, PaginatedTokenListFromJSON, PaginatedUserConsentListFromJSON, PaginatedUserListFromJSON, PatchedApplicationRequestToJSON, PatchedGroupRequestToJSON, PatchedTenantRequestToJSON, PatchedTokenRequestToJSON, PatchedUserRequestToJSON, PolicyTestResultFromJSON, SessionUserFromJSON, TenantFromJSON, TenantRequestToJSON, TokenFromJSON, TokenRequestToJSON, TokenSetKeyRequestToJSON, TokenViewFromJSON, UsedByFromJSON, UserFromJSON, UserConsentFromJSON, UserMetricsFromJSON, UserPasswordSetRequestToJSON, UserPathFromJSON, UserRequestToJSON, UserServiceAccountRequestToJSON, UserServiceAccountResponseFromJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -1670,6 +1670,12 @@ export class CoreApi extends runtime.BaseAPI {
1670
1670
  if (requestParameters.pageSize !== undefined) {
1671
1671
  queryParameters['page_size'] = requestParameters.pageSize;
1672
1672
  }
1673
+ if (requestParameters.path !== undefined) {
1674
+ queryParameters['path'] = requestParameters.path;
1675
+ }
1676
+ if (requestParameters.pathStartswith !== undefined) {
1677
+ queryParameters['path_startswith'] = requestParameters.pathStartswith;
1678
+ }
1673
1679
  if (requestParameters.search !== undefined) {
1674
1680
  queryParameters['search'] = requestParameters.search;
1675
1681
  }
@@ -1793,6 +1799,37 @@ export class CoreApi extends runtime.BaseAPI {
1793
1799
  return yield response.value();
1794
1800
  });
1795
1801
  }
1802
+ /**
1803
+ * Get all user paths
1804
+ */
1805
+ coreUsersPathsRetrieveRaw(requestParameters, initOverrides) {
1806
+ return __awaiter(this, void 0, void 0, function* () {
1807
+ const queryParameters = {};
1808
+ if (requestParameters.search !== undefined) {
1809
+ queryParameters['search'] = requestParameters.search;
1810
+ }
1811
+ const headerParameters = {};
1812
+ if (this.configuration && this.configuration.apiKey) {
1813
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1814
+ }
1815
+ const response = yield this.request({
1816
+ path: `/core/users/paths/`,
1817
+ method: 'GET',
1818
+ headers: headerParameters,
1819
+ query: queryParameters,
1820
+ }, initOverrides);
1821
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserPathFromJSON(jsonValue));
1822
+ });
1823
+ }
1824
+ /**
1825
+ * Get all user paths
1826
+ */
1827
+ coreUsersPathsRetrieve(requestParameters = {}, initOverrides) {
1828
+ return __awaiter(this, void 0, void 0, function* () {
1829
+ const response = yield this.coreUsersPathsRetrieveRaw(requestParameters, initOverrides);
1830
+ return yield response.value();
1831
+ });
1832
+ }
1796
1833
  /**
1797
1834
  * Create a temporary link that a user can use to recover their accounts
1798
1835
  */
@@ -197,6 +197,7 @@ export interface SourcesSamlListRequest {
197
197
  ssoUrl?: string;
198
198
  temporaryUserDeleteAfter?: string;
199
199
  userMatchingMode?: SourcesSamlListUserMatchingModeEnum;
200
+ userPathTemplate?: string;
200
201
  }
201
202
  export interface SourcesSamlMetadataRetrieveRequest {
202
203
  slug: string;
@@ -1334,6 +1334,9 @@ export class SourcesApi extends runtime.BaseAPI {
1334
1334
  if (requestParameters.userMatchingMode !== undefined) {
1335
1335
  queryParameters['user_matching_mode'] = requestParameters.userMatchingMode;
1336
1336
  }
1337
+ if (requestParameters.userPathTemplate !== undefined) {
1338
+ queryParameters['user_path_template'] = requestParameters.userPathTemplate;
1339
+ }
1337
1340
  const headerParameters = {};
1338
1341
  if (this.configuration && this.configuration.apiKey) {
1339
1342
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -658,6 +658,7 @@ export interface StagesUserWriteListRequest {
658
658
  pageSize?: number;
659
659
  search?: string;
660
660
  stageUuid?: string;
661
+ userPathTemplate?: string;
661
662
  }
662
663
  export interface StagesUserWritePartialUpdateRequest {
663
664
  stageUuid: string;
@@ -5350,6 +5350,9 @@ export class StagesApi extends runtime.BaseAPI {
5350
5350
  if (requestParameters.stageUuid !== undefined) {
5351
5351
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
5352
5352
  }
5353
+ if (requestParameters.userPathTemplate !== undefined) {
5354
+ queryParameters['user_path_template'] = requestParameters.userPathTemplate;
5355
+ }
5353
5356
  const headerParameters = {};
5354
5357
  if (this.configuration && this.configuration.apiKey) {
5355
5358
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -95,6 +95,12 @@ export interface LDAPSource {
95
95
  * @memberof LDAPSource
96
96
  */
97
97
  readonly managed: string | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof LDAPSource
102
+ */
103
+ userPathTemplate?: string;
98
104
  /**
99
105
  *
100
106
  * @type {string}
@@ -35,6 +35,7 @@ export function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
36
36
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
37
37
  'managed': json['managed'],
38
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
38
39
  'serverUri': json['server_uri'],
39
40
  'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
40
41
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
@@ -69,6 +70,7 @@ export function LDAPSourceToJSON(value) {
69
70
  'enrollment_flow': value.enrollmentFlow,
70
71
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
71
72
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
73
+ 'user_path_template': value.userPathTemplate,
72
74
  'server_uri': value.serverUri,
73
75
  'peer_certificate': value.peerCertificate,
74
76
  'bind_cn': value.bindCn,
@@ -59,6 +59,12 @@ export interface LDAPSourceRequest {
59
59
  * @memberof LDAPSourceRequest
60
60
  */
61
61
  userMatchingMode?: UserMatchingModeEnum | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof LDAPSourceRequest
66
+ */
67
+ userPathTemplate?: string;
62
68
  /**
63
69
  *
64
70
  * @type {string}
@@ -29,6 +29,7 @@ export function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
30
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
31
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
32
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
32
33
  'serverUri': json['server_uri'],
33
34
  'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
34
35
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
@@ -64,6 +65,7 @@ export function LDAPSourceRequestToJSON(value) {
64
65
  'enrollment_flow': value.enrollmentFlow,
65
66
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
66
67
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
68
+ 'user_path_template': value.userPathTemplate,
67
69
  'server_uri': value.serverUri,
68
70
  'peer_certificate': value.peerCertificate,
69
71
  'bind_cn': value.bindCn,
@@ -97,6 +97,12 @@ export interface OAuthSource {
97
97
  * @memberof OAuthSource
98
98
  */
99
99
  readonly managed: string | null;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof OAuthSource
104
+ */
105
+ userPathTemplate?: string;
100
106
  /**
101
107
  *
102
108
  * @type {ProviderTypeEnum}
@@ -37,6 +37,7 @@ export function OAuthSourceFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
38
38
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
39
39
  'managed': json['managed'],
40
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
40
41
  'providerType': ProviderTypeEnumFromJSON(json['provider_type']),
41
42
  'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
42
43
  'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -66,6 +67,7 @@ export function OAuthSourceToJSON(value) {
66
67
  'enrollment_flow': value.enrollmentFlow,
67
68
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
68
69
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
70
+ 'user_path_template': value.userPathTemplate,
69
71
  'provider_type': ProviderTypeEnumToJSON(value.providerType),
70
72
  'request_token_url': value.requestTokenUrl,
71
73
  'authorization_url': value.authorizationUrl,
@@ -60,6 +60,12 @@ export interface OAuthSourceRequest {
60
60
  * @memberof OAuthSourceRequest
61
61
  */
62
62
  userMatchingMode?: UserMatchingModeEnum | null;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof OAuthSourceRequest
67
+ */
68
+ userPathTemplate?: string;
63
69
  /**
64
70
  *
65
71
  * @type {ProviderTypeEnum}
@@ -30,6 +30,7 @@ export function OAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
31
31
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
32
32
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
33
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
33
34
  'providerType': ProviderTypeEnumFromJSON(json['provider_type']),
34
35
  'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
35
36
  'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -58,6 +59,7 @@ export function OAuthSourceRequestToJSON(value) {
58
59
  'enrollment_flow': value.enrollmentFlow,
59
60
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
60
61
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
62
+ 'user_path_template': value.userPathTemplate,
61
63
  'provider_type': ProviderTypeEnumToJSON(value.providerType),
62
64
  'request_token_url': value.requestTokenUrl,
63
65
  'authorization_url': value.authorizationUrl,
@@ -59,6 +59,12 @@ export interface PatchedLDAPSourceRequest {
59
59
  * @memberof PatchedLDAPSourceRequest
60
60
  */
61
61
  userMatchingMode?: UserMatchingModeEnum | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof PatchedLDAPSourceRequest
66
+ */
67
+ userPathTemplate?: string;
62
68
  /**
63
69
  *
64
70
  * @type {string}
@@ -29,6 +29,7 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator)
29
29
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
30
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
31
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
32
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
32
33
  'serverUri': !exists(json, 'server_uri') ? undefined : json['server_uri'],
33
34
  'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
34
35
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
@@ -64,6 +65,7 @@ export function PatchedLDAPSourceRequestToJSON(value) {
64
65
  'enrollment_flow': value.enrollmentFlow,
65
66
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
66
67
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
68
+ 'user_path_template': value.userPathTemplate,
67
69
  'server_uri': value.serverUri,
68
70
  'peer_certificate': value.peerCertificate,
69
71
  'bind_cn': value.bindCn,
@@ -60,6 +60,12 @@ export interface PatchedOAuthSourceRequest {
60
60
  * @memberof PatchedOAuthSourceRequest
61
61
  */
62
62
  userMatchingMode?: UserMatchingModeEnum | null;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof PatchedOAuthSourceRequest
67
+ */
68
+ userPathTemplate?: string;
63
69
  /**
64
70
  *
65
71
  * @type {ProviderTypeEnum}
@@ -30,6 +30,7 @@ export function PatchedOAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator
30
30
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
31
31
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
32
32
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
33
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
33
34
  'providerType': !exists(json, 'provider_type') ? undefined : ProviderTypeEnumFromJSON(json['provider_type']),
34
35
  'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
35
36
  'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -58,6 +59,7 @@ export function PatchedOAuthSourceRequestToJSON(value) {
58
59
  'enrollment_flow': value.enrollmentFlow,
59
60
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
60
61
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
62
+ 'user_path_template': value.userPathTemplate,
61
63
  'provider_type': ProviderTypeEnumToJSON(value.providerType),
62
64
  'request_token_url': value.requestTokenUrl,
63
65
  'authorization_url': value.authorizationUrl,
@@ -59,6 +59,12 @@ export interface PatchedPlexSourceRequest {
59
59
  * @memberof PatchedPlexSourceRequest
60
60
  */
61
61
  userMatchingMode?: UserMatchingModeEnum | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof PatchedPlexSourceRequest
66
+ */
67
+ userPathTemplate?: string;
62
68
  /**
63
69
  * Client identifier used to talk to Plex.
64
70
  * @type {string}
@@ -29,6 +29,7 @@ export function PatchedPlexSourceRequestFromJSONTyped(json, ignoreDiscriminator)
29
29
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
30
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
31
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
32
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
32
33
  'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
33
34
  'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
34
35
  'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
@@ -50,6 +51,7 @@ export function PatchedPlexSourceRequestToJSON(value) {
50
51
  'enrollment_flow': value.enrollmentFlow,
51
52
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
52
53
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
54
+ 'user_path_template': value.userPathTemplate,
53
55
  'client_id': value.clientId,
54
56
  'allowed_servers': value.allowedServers,
55
57
  'allow_friends': value.allowFriends,
@@ -63,6 +63,12 @@ export interface PatchedSAMLSourceRequest {
63
63
  * @memberof PatchedSAMLSourceRequest
64
64
  */
65
65
  userMatchingMode?: UserMatchingModeEnum | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof PatchedSAMLSourceRequest
70
+ */
71
+ userPathTemplate?: string;
66
72
  /**
67
73
  * Flow used before authentication.
68
74
  * @type {string}
@@ -33,6 +33,7 @@ export function PatchedSAMLSourceRequestFromJSONTyped(json, ignoreDiscriminator)
33
33
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
34
34
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
35
35
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
36
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
36
37
  'preAuthenticationFlow': !exists(json, 'pre_authentication_flow') ? undefined : json['pre_authentication_flow'],
37
38
  'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
38
39
  'ssoUrl': !exists(json, 'sso_url') ? undefined : json['sso_url'],
@@ -61,6 +62,7 @@ export function PatchedSAMLSourceRequestToJSON(value) {
61
62
  'enrollment_flow': value.enrollmentFlow,
62
63
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
63
64
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
65
+ 'user_path_template': value.userPathTemplate,
64
66
  'pre_authentication_flow': value.preAuthenticationFlow,
65
67
  'issuer': value.issuer,
66
68
  'sso_url': value.ssoUrl,
@@ -59,6 +59,12 @@ export interface PatchedUserRequest {
59
59
  attributes?: {
60
60
  [key: string]: any;
61
61
  };
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof PatchedUserRequest
66
+ */
67
+ path?: string;
62
68
  }
63
69
  export declare function PatchedUserRequestFromJSON(json: any): PatchedUserRequest;
64
70
  export declare function PatchedUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserRequest;
@@ -27,6 +27,7 @@ export function PatchedUserRequestFromJSONTyped(json, ignoreDiscriminator) {
27
27
  'groups': !exists(json, 'groups') ? undefined : json['groups'],
28
28
  'email': !exists(json, 'email') ? undefined : json['email'],
29
29
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
30
+ 'path': !exists(json, 'path') ? undefined : json['path'],
30
31
  };
31
32
  }
32
33
  export function PatchedUserRequestToJSON(value) {
@@ -44,5 +45,6 @@ export function PatchedUserRequestToJSON(value) {
44
45
  'groups': value.groups,
45
46
  'email': value.email,
46
47
  'attributes': value.attributes,
48
+ 'path': value.path,
47
49
  };
48
50
  }
@@ -40,6 +40,12 @@ export interface PatchedUserWriteStageRequest {
40
40
  * @memberof PatchedUserWriteStageRequest
41
41
  */
42
42
  createUsersGroup?: string | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PatchedUserWriteStageRequest
47
+ */
48
+ userPathTemplate?: string;
43
49
  }
44
50
  export declare function PatchedUserWriteStageRequestFromJSON(json: any): PatchedUserWriteStageRequest;
45
51
  export declare function PatchedUserWriteStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserWriteStageRequest;
@@ -25,6 +25,7 @@ export function PatchedUserWriteStageRequestFromJSONTyped(json, ignoreDiscrimina
25
25
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequestFromJSON)),
26
26
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
27
27
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
28
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
28
29
  };
29
30
  }
30
31
  export function PatchedUserWriteStageRequestToJSON(value) {
@@ -39,5 +40,6 @@ export function PatchedUserWriteStageRequestToJSON(value) {
39
40
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequestToJSON)),
40
41
  'create_users_as_inactive': value.createUsersAsInactive,
41
42
  'create_users_group': value.createUsersGroup,
43
+ 'user_path_template': value.userPathTemplate,
42
44
  };
43
45
  }
@@ -95,6 +95,12 @@ export interface PlexSource {
95
95
  * @memberof PlexSource
96
96
  */
97
97
  readonly managed: string | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof PlexSource
102
+ */
103
+ userPathTemplate?: string;
98
104
  /**
99
105
  * Client identifier used to talk to Plex.
100
106
  * @type {string}
@@ -35,6 +35,7 @@ export function PlexSourceFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
36
36
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
37
37
  'managed': json['managed'],
38
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
38
39
  'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
39
40
  'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
40
41
  'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
@@ -56,6 +57,7 @@ export function PlexSourceToJSON(value) {
56
57
  'enrollment_flow': value.enrollmentFlow,
57
58
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
58
59
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
60
+ 'user_path_template': value.userPathTemplate,
59
61
  'client_id': value.clientId,
60
62
  'allowed_servers': value.allowedServers,
61
63
  'allow_friends': value.allowFriends,