@goauthentik/api 2022.12.2-1672911746 → 2022.12.2-1672930008

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 (62) hide show
  1. package/.openapi-generator/FILES +1 -4
  2. package/dist/apis/PoliciesApi.d.ts +2 -144
  3. package/dist/apis/PoliciesApi.js +1 -308
  4. package/dist/apis/StagesApi.d.ts +11 -1
  5. package/dist/apis/StagesApi.js +13 -4
  6. package/dist/esm/apis/PoliciesApi.d.ts +2 -144
  7. package/dist/esm/apis/PoliciesApi.js +1 -308
  8. package/dist/esm/apis/StagesApi.d.ts +11 -1
  9. package/dist/esm/apis/StagesApi.js +12 -3
  10. package/dist/esm/models/AppEnum.d.ts +0 -1
  11. package/dist/esm/models/AppEnum.js +0 -1
  12. package/dist/esm/models/PatchedUserWriteStageRequest.d.ts +7 -6
  13. package/dist/esm/models/PatchedUserWriteStageRequest.js +3 -2
  14. package/dist/esm/models/UserCreationModeEnum.d.ts +25 -0
  15. package/dist/esm/models/UserCreationModeEnum.js +32 -0
  16. package/dist/esm/models/UserWriteStage.d.ts +7 -6
  17. package/dist/esm/models/UserWriteStage.js +3 -2
  18. package/dist/esm/models/UserWriteStageRequest.d.ts +7 -6
  19. package/dist/esm/models/UserWriteStageRequest.js +3 -2
  20. package/dist/esm/models/index.d.ts +1 -4
  21. package/dist/esm/models/index.js +1 -4
  22. package/dist/models/AppEnum.d.ts +0 -1
  23. package/dist/models/AppEnum.js +0 -1
  24. package/dist/models/PatchedUserWriteStageRequest.d.ts +7 -6
  25. package/dist/models/PatchedUserWriteStageRequest.js +3 -2
  26. package/dist/models/UserCreationModeEnum.d.ts +25 -0
  27. package/dist/models/UserCreationModeEnum.js +38 -0
  28. package/dist/models/UserWriteStage.d.ts +7 -6
  29. package/dist/models/UserWriteStage.js +3 -2
  30. package/dist/models/UserWriteStageRequest.d.ts +7 -6
  31. package/dist/models/UserWriteStageRequest.js +3 -2
  32. package/dist/models/index.d.ts +1 -4
  33. package/dist/models/index.js +1 -4
  34. package/package.json +1 -1
  35. package/src/apis/PoliciesApi.ts +1 -396
  36. package/src/apis/StagesApi.ts +15 -5
  37. package/src/models/AppEnum.ts +0 -1
  38. package/src/models/PatchedUserWriteStageRequest.ts +14 -8
  39. package/src/models/UserCreationModeEnum.ts +40 -0
  40. package/src/models/UserWriteStage.ts +14 -8
  41. package/src/models/UserWriteStageRequest.ts +14 -8
  42. package/src/models/index.ts +1 -4
  43. package/dist/esm/models/HaveIBeenPwendPolicy.d.ts +0 -81
  44. package/dist/esm/models/HaveIBeenPwendPolicy.js +0 -48
  45. package/dist/esm/models/HaveIBeenPwendPolicyRequest.d.ts +0 -45
  46. package/dist/esm/models/HaveIBeenPwendPolicyRequest.js +0 -42
  47. package/dist/esm/models/PaginatedHaveIBeenPwendPolicyList.d.ts +0 -35
  48. package/dist/esm/models/PaginatedHaveIBeenPwendPolicyList.js +0 -39
  49. package/dist/esm/models/PatchedHaveIBeenPwendPolicyRequest.d.ts +0 -45
  50. package/dist/esm/models/PatchedHaveIBeenPwendPolicyRequest.js +0 -42
  51. package/dist/models/HaveIBeenPwendPolicy.d.ts +0 -81
  52. package/dist/models/HaveIBeenPwendPolicy.js +0 -54
  53. package/dist/models/HaveIBeenPwendPolicyRequest.d.ts +0 -45
  54. package/dist/models/HaveIBeenPwendPolicyRequest.js +0 -48
  55. package/dist/models/PaginatedHaveIBeenPwendPolicyList.d.ts +0 -35
  56. package/dist/models/PaginatedHaveIBeenPwendPolicyList.js +0 -45
  57. package/dist/models/PatchedHaveIBeenPwendPolicyRequest.d.ts +0 -45
  58. package/dist/models/PatchedHaveIBeenPwendPolicyRequest.js +0 -48
  59. package/src/models/HaveIBeenPwendPolicy.ts +0 -122
  60. package/src/models/HaveIBeenPwendPolicyRequest.ts +0 -80
  61. package/src/models/PaginatedHaveIBeenPwendPolicyList.ts +0 -77
  62. package/src/models/PatchedHaveIBeenPwendPolicyRequest.ts +0 -80
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Cache, DummyPolicy, DummyPolicyRequest, EventMatcherPolicy, EventMatcherPolicyRequest, ExpressionPolicy, ExpressionPolicyRequest, HaveIBeenPwendPolicy, HaveIBeenPwendPolicyRequest, PaginatedDummyPolicyList, PaginatedEventMatcherPolicyList, PaginatedExpressionPolicyList, PaginatedHaveIBeenPwendPolicyList, PaginatedPasswordExpiryPolicyList, PaginatedPasswordPolicyList, PaginatedPolicyBindingList, PaginatedPolicyList, PaginatedReputationList, PaginatedReputationPolicyList, PasswordExpiryPolicy, PasswordExpiryPolicyRequest, PasswordPolicy, PasswordPolicyRequest, PatchedDummyPolicyRequest, PatchedEventMatcherPolicyRequest, PatchedExpressionPolicyRequest, PatchedHaveIBeenPwendPolicyRequest, PatchedPasswordExpiryPolicyRequest, PatchedPasswordPolicyRequest, PatchedPolicyBindingRequest, PatchedReputationPolicyRequest, Policy, PolicyBinding, PolicyBindingRequest, PolicyTestRequest, PolicyTestResult, Reputation, ReputationPolicy, ReputationPolicyRequest, TypeCreate, UsedBy } from '../models';
13
+ import { Cache, DummyPolicy, DummyPolicyRequest, EventMatcherPolicy, EventMatcherPolicyRequest, ExpressionPolicy, ExpressionPolicyRequest, PaginatedDummyPolicyList, PaginatedEventMatcherPolicyList, PaginatedExpressionPolicyList, PaginatedPasswordExpiryPolicyList, PaginatedPasswordPolicyList, PaginatedPolicyBindingList, PaginatedPolicyList, PaginatedReputationList, PaginatedReputationPolicyList, PasswordExpiryPolicy, PasswordExpiryPolicyRequest, PasswordPolicy, PasswordPolicyRequest, PatchedDummyPolicyRequest, PatchedEventMatcherPolicyRequest, PatchedExpressionPolicyRequest, PatchedPasswordExpiryPolicyRequest, PatchedPasswordPolicyRequest, PatchedPolicyBindingRequest, PatchedReputationPolicyRequest, Policy, PolicyBinding, PolicyBindingRequest, PolicyTestRequest, PolicyTestResult, Reputation, ReputationPolicy, ReputationPolicyRequest, TypeCreate, UsedBy } from '../models';
14
14
  export interface PoliciesAllDestroyRequest {
15
15
  policyUuid: string;
16
16
  }
@@ -107,7 +107,7 @@ export interface PoliciesEventMatcherDestroyRequest {
107
107
  }
108
108
  export interface PoliciesEventMatcherListRequest {
109
109
  action?: PoliciesEventMatcherListActionEnum;
110
- app?: PoliciesEventMatcherListAppEnum;
110
+ app?: string;
111
111
  clientIp?: string;
112
112
  created?: Date;
113
113
  executionLogging?: boolean;
@@ -165,39 +165,6 @@ export interface PoliciesExpressionUpdateRequest {
165
165
  export interface PoliciesExpressionUsedByListRequest {
166
166
  policyUuid: string;
167
167
  }
168
- export interface PoliciesHaveibeenpwnedCreateRequest {
169
- haveIBeenPwendPolicyRequest: HaveIBeenPwendPolicyRequest;
170
- }
171
- export interface PoliciesHaveibeenpwnedDestroyRequest {
172
- policyUuid: string;
173
- }
174
- export interface PoliciesHaveibeenpwnedListRequest {
175
- allowedCount?: number;
176
- created?: Date;
177
- executionLogging?: boolean;
178
- lastUpdated?: Date;
179
- name?: string;
180
- ordering?: string;
181
- page?: number;
182
- pageSize?: number;
183
- passwordField?: string;
184
- policyUuid?: string;
185
- search?: string;
186
- }
187
- export interface PoliciesHaveibeenpwnedPartialUpdateRequest {
188
- policyUuid: string;
189
- patchedHaveIBeenPwendPolicyRequest?: PatchedHaveIBeenPwendPolicyRequest;
190
- }
191
- export interface PoliciesHaveibeenpwnedRetrieveRequest {
192
- policyUuid: string;
193
- }
194
- export interface PoliciesHaveibeenpwnedUpdateRequest {
195
- policyUuid: string;
196
- haveIBeenPwendPolicyRequest: HaveIBeenPwendPolicyRequest;
197
- }
198
- export interface PoliciesHaveibeenpwnedUsedByListRequest {
199
- policyUuid: string;
200
- }
201
168
  export interface PoliciesPasswordCreateRequest {
202
169
  passwordPolicyRequest: PasswordPolicyRequest;
203
170
  }
@@ -619,62 +586,6 @@ export declare class PoliciesApi extends runtime.BaseAPI {
619
586
  * Get a list of all objects that use this object
620
587
  */
621
588
  policiesExpressionUsedByList(requestParameters: PoliciesExpressionUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<UsedBy>>;
622
- /**
623
- * Source Viewset
624
- */
625
- policiesHaveibeenpwnedCreateRaw(requestParameters: PoliciesHaveibeenpwnedCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<HaveIBeenPwendPolicy>>;
626
- /**
627
- * Source Viewset
628
- */
629
- policiesHaveibeenpwnedCreate(requestParameters: PoliciesHaveibeenpwnedCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<HaveIBeenPwendPolicy>;
630
- /**
631
- * Source Viewset
632
- */
633
- policiesHaveibeenpwnedDestroyRaw(requestParameters: PoliciesHaveibeenpwnedDestroyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
634
- /**
635
- * Source Viewset
636
- */
637
- policiesHaveibeenpwnedDestroy(requestParameters: PoliciesHaveibeenpwnedDestroyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
638
- /**
639
- * Source Viewset
640
- */
641
- policiesHaveibeenpwnedListRaw(requestParameters: PoliciesHaveibeenpwnedListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PaginatedHaveIBeenPwendPolicyList>>;
642
- /**
643
- * Source Viewset
644
- */
645
- policiesHaveibeenpwnedList(requestParameters?: PoliciesHaveibeenpwnedListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PaginatedHaveIBeenPwendPolicyList>;
646
- /**
647
- * Source Viewset
648
- */
649
- policiesHaveibeenpwnedPartialUpdateRaw(requestParameters: PoliciesHaveibeenpwnedPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<HaveIBeenPwendPolicy>>;
650
- /**
651
- * Source Viewset
652
- */
653
- policiesHaveibeenpwnedPartialUpdate(requestParameters: PoliciesHaveibeenpwnedPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<HaveIBeenPwendPolicy>;
654
- /**
655
- * Source Viewset
656
- */
657
- policiesHaveibeenpwnedRetrieveRaw(requestParameters: PoliciesHaveibeenpwnedRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<HaveIBeenPwendPolicy>>;
658
- /**
659
- * Source Viewset
660
- */
661
- policiesHaveibeenpwnedRetrieve(requestParameters: PoliciesHaveibeenpwnedRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<HaveIBeenPwendPolicy>;
662
- /**
663
- * Source Viewset
664
- */
665
- policiesHaveibeenpwnedUpdateRaw(requestParameters: PoliciesHaveibeenpwnedUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<HaveIBeenPwendPolicy>>;
666
- /**
667
- * Source Viewset
668
- */
669
- policiesHaveibeenpwnedUpdate(requestParameters: PoliciesHaveibeenpwnedUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<HaveIBeenPwendPolicy>;
670
- /**
671
- * Get a list of all objects that use this object
672
- */
673
- policiesHaveibeenpwnedUsedByListRaw(requestParameters: PoliciesHaveibeenpwnedUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
674
- /**
675
- * Get a list of all objects that use this object
676
- */
677
- policiesHaveibeenpwnedUsedByList(requestParameters: PoliciesHaveibeenpwnedUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<UsedBy>>;
678
589
  /**
679
590
  * Password Policy Viewset
680
591
  */
@@ -910,56 +821,3 @@ export declare const PoliciesEventMatcherListActionEnum: {
910
821
  readonly UnknownDefaultOpenApi: "11184809";
911
822
  };
912
823
  export type PoliciesEventMatcherListActionEnum = typeof PoliciesEventMatcherListActionEnum[keyof typeof PoliciesEventMatcherListActionEnum];
913
- /**
914
- * @export
915
- */
916
- export declare const PoliciesEventMatcherListAppEnum: {
917
- readonly Admin: "authentik.admin";
918
- readonly Api: "authentik.api";
919
- readonly Blueprints: "authentik.blueprints";
920
- readonly Core: "authentik.core";
921
- readonly Crypto: "authentik.crypto";
922
- readonly Events: "authentik.events";
923
- readonly Flows: "authentik.flows";
924
- readonly Lib: "authentik.lib";
925
- readonly Outposts: "authentik.outposts";
926
- readonly Policies: "authentik.policies";
927
- readonly PoliciesDummy: "authentik.policies.dummy";
928
- readonly PoliciesEventMatcher: "authentik.policies.event_matcher";
929
- readonly PoliciesExpiry: "authentik.policies.expiry";
930
- readonly PoliciesExpression: "authentik.policies.expression";
931
- readonly PoliciesHibp: "authentik.policies.hibp";
932
- readonly PoliciesPassword: "authentik.policies.password";
933
- readonly PoliciesReputation: "authentik.policies.reputation";
934
- readonly ProvidersLdap: "authentik.providers.ldap";
935
- readonly ProvidersOauth2: "authentik.providers.oauth2";
936
- readonly ProvidersProxy: "authentik.providers.proxy";
937
- readonly ProvidersSaml: "authentik.providers.saml";
938
- readonly Recovery: "authentik.recovery";
939
- readonly SourcesLdap: "authentik.sources.ldap";
940
- readonly SourcesOauth: "authentik.sources.oauth";
941
- readonly SourcesPlex: "authentik.sources.plex";
942
- readonly SourcesSaml: "authentik.sources.saml";
943
- readonly StagesAuthenticatorDuo: "authentik.stages.authenticator_duo";
944
- readonly StagesAuthenticatorSms: "authentik.stages.authenticator_sms";
945
- readonly StagesAuthenticatorStatic: "authentik.stages.authenticator_static";
946
- readonly StagesAuthenticatorTotp: "authentik.stages.authenticator_totp";
947
- readonly StagesAuthenticatorValidate: "authentik.stages.authenticator_validate";
948
- readonly StagesAuthenticatorWebauthn: "authentik.stages.authenticator_webauthn";
949
- readonly StagesCaptcha: "authentik.stages.captcha";
950
- readonly StagesConsent: "authentik.stages.consent";
951
- readonly StagesDeny: "authentik.stages.deny";
952
- readonly StagesDummy: "authentik.stages.dummy";
953
- readonly StagesEmail: "authentik.stages.email";
954
- readonly StagesIdentification: "authentik.stages.identification";
955
- readonly StagesInvitation: "authentik.stages.invitation";
956
- readonly StagesPassword: "authentik.stages.password";
957
- readonly StagesPrompt: "authentik.stages.prompt";
958
- readonly StagesUserDelete: "authentik.stages.user_delete";
959
- readonly StagesUserLogin: "authentik.stages.user_login";
960
- readonly StagesUserLogout: "authentik.stages.user_logout";
961
- readonly StagesUserWrite: "authentik.stages.user_write";
962
- readonly Tenants: "authentik.tenants";
963
- readonly UnknownDefaultOpenApi: "11184809";
964
- };
965
- export type PoliciesEventMatcherListAppEnum = typeof PoliciesEventMatcherListAppEnum[keyof typeof PoliciesEventMatcherListAppEnum];
@@ -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 { CacheFromJSON, DummyPolicyFromJSON, DummyPolicyRequestToJSON, EventMatcherPolicyFromJSON, EventMatcherPolicyRequestToJSON, ExpressionPolicyFromJSON, ExpressionPolicyRequestToJSON, HaveIBeenPwendPolicyFromJSON, HaveIBeenPwendPolicyRequestToJSON, PaginatedDummyPolicyListFromJSON, PaginatedEventMatcherPolicyListFromJSON, PaginatedExpressionPolicyListFromJSON, PaginatedHaveIBeenPwendPolicyListFromJSON, PaginatedPasswordExpiryPolicyListFromJSON, PaginatedPasswordPolicyListFromJSON, PaginatedPolicyBindingListFromJSON, PaginatedPolicyListFromJSON, PaginatedReputationListFromJSON, PaginatedReputationPolicyListFromJSON, PasswordExpiryPolicyFromJSON, PasswordExpiryPolicyRequestToJSON, PasswordPolicyFromJSON, PasswordPolicyRequestToJSON, PatchedDummyPolicyRequestToJSON, PatchedEventMatcherPolicyRequestToJSON, PatchedExpressionPolicyRequestToJSON, PatchedHaveIBeenPwendPolicyRequestToJSON, PatchedPasswordExpiryPolicyRequestToJSON, PatchedPasswordPolicyRequestToJSON, PatchedPolicyBindingRequestToJSON, PatchedReputationPolicyRequestToJSON, PolicyFromJSON, PolicyBindingFromJSON, PolicyBindingRequestToJSON, PolicyTestRequestToJSON, PolicyTestResultFromJSON, ReputationFromJSON, ReputationPolicyFromJSON, ReputationPolicyRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
24
+ import { CacheFromJSON, DummyPolicyFromJSON, DummyPolicyRequestToJSON, EventMatcherPolicyFromJSON, EventMatcherPolicyRequestToJSON, ExpressionPolicyFromJSON, ExpressionPolicyRequestToJSON, PaginatedDummyPolicyListFromJSON, PaginatedEventMatcherPolicyListFromJSON, PaginatedExpressionPolicyListFromJSON, PaginatedPasswordExpiryPolicyListFromJSON, PaginatedPasswordPolicyListFromJSON, PaginatedPolicyBindingListFromJSON, PaginatedPolicyListFromJSON, PaginatedReputationListFromJSON, PaginatedReputationPolicyListFromJSON, PasswordExpiryPolicyFromJSON, PasswordExpiryPolicyRequestToJSON, PasswordPolicyFromJSON, PasswordPolicyRequestToJSON, PatchedDummyPolicyRequestToJSON, PatchedEventMatcherPolicyRequestToJSON, PatchedExpressionPolicyRequestToJSON, PatchedPasswordExpiryPolicyRequestToJSON, PatchedPasswordPolicyRequestToJSON, PatchedPolicyBindingRequestToJSON, PatchedReputationPolicyRequestToJSON, PolicyFromJSON, PolicyBindingFromJSON, PolicyBindingRequestToJSON, PolicyTestRequestToJSON, PolicyTestResultFromJSON, ReputationFromJSON, ReputationPolicyFromJSON, ReputationPolicyRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -1306,261 +1306,6 @@ export class PoliciesApi extends runtime.BaseAPI {
1306
1306
  return yield response.value();
1307
1307
  });
1308
1308
  }
1309
- /**
1310
- * Source Viewset
1311
- */
1312
- policiesHaveibeenpwnedCreateRaw(requestParameters, initOverrides) {
1313
- return __awaiter(this, void 0, void 0, function* () {
1314
- if (requestParameters.haveIBeenPwendPolicyRequest === null || requestParameters.haveIBeenPwendPolicyRequest === undefined) {
1315
- throw new runtime.RequiredError('haveIBeenPwendPolicyRequest', 'Required parameter requestParameters.haveIBeenPwendPolicyRequest was null or undefined when calling policiesHaveibeenpwnedCreate.');
1316
- }
1317
- const queryParameters = {};
1318
- const headerParameters = {};
1319
- headerParameters['Content-Type'] = 'application/json';
1320
- if (this.configuration && this.configuration.apiKey) {
1321
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1322
- }
1323
- const response = yield this.request({
1324
- path: `/policies/haveibeenpwned/`,
1325
- method: 'POST',
1326
- headers: headerParameters,
1327
- query: queryParameters,
1328
- body: HaveIBeenPwendPolicyRequestToJSON(requestParameters.haveIBeenPwendPolicyRequest),
1329
- }, initOverrides);
1330
- return new runtime.JSONApiResponse(response, (jsonValue) => HaveIBeenPwendPolicyFromJSON(jsonValue));
1331
- });
1332
- }
1333
- /**
1334
- * Source Viewset
1335
- */
1336
- policiesHaveibeenpwnedCreate(requestParameters, initOverrides) {
1337
- return __awaiter(this, void 0, void 0, function* () {
1338
- const response = yield this.policiesHaveibeenpwnedCreateRaw(requestParameters, initOverrides);
1339
- return yield response.value();
1340
- });
1341
- }
1342
- /**
1343
- * Source Viewset
1344
- */
1345
- policiesHaveibeenpwnedDestroyRaw(requestParameters, initOverrides) {
1346
- return __awaiter(this, void 0, void 0, function* () {
1347
- if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
1348
- throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedDestroy.');
1349
- }
1350
- const queryParameters = {};
1351
- const headerParameters = {};
1352
- if (this.configuration && this.configuration.apiKey) {
1353
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1354
- }
1355
- const response = yield this.request({
1356
- path: `/policies/haveibeenpwned/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1357
- method: 'DELETE',
1358
- headers: headerParameters,
1359
- query: queryParameters,
1360
- }, initOverrides);
1361
- return new runtime.VoidApiResponse(response);
1362
- });
1363
- }
1364
- /**
1365
- * Source Viewset
1366
- */
1367
- policiesHaveibeenpwnedDestroy(requestParameters, initOverrides) {
1368
- return __awaiter(this, void 0, void 0, function* () {
1369
- yield this.policiesHaveibeenpwnedDestroyRaw(requestParameters, initOverrides);
1370
- });
1371
- }
1372
- /**
1373
- * Source Viewset
1374
- */
1375
- policiesHaveibeenpwnedListRaw(requestParameters, initOverrides) {
1376
- return __awaiter(this, void 0, void 0, function* () {
1377
- const queryParameters = {};
1378
- if (requestParameters.allowedCount !== undefined) {
1379
- queryParameters['allowed_count'] = requestParameters.allowedCount;
1380
- }
1381
- if (requestParameters.created !== undefined) {
1382
- queryParameters['created'] = requestParameters.created.toISOString();
1383
- }
1384
- if (requestParameters.executionLogging !== undefined) {
1385
- queryParameters['execution_logging'] = requestParameters.executionLogging;
1386
- }
1387
- if (requestParameters.lastUpdated !== undefined) {
1388
- queryParameters['last_updated'] = requestParameters.lastUpdated.toISOString();
1389
- }
1390
- if (requestParameters.name !== undefined) {
1391
- queryParameters['name'] = requestParameters.name;
1392
- }
1393
- if (requestParameters.ordering !== undefined) {
1394
- queryParameters['ordering'] = requestParameters.ordering;
1395
- }
1396
- if (requestParameters.page !== undefined) {
1397
- queryParameters['page'] = requestParameters.page;
1398
- }
1399
- if (requestParameters.pageSize !== undefined) {
1400
- queryParameters['page_size'] = requestParameters.pageSize;
1401
- }
1402
- if (requestParameters.passwordField !== undefined) {
1403
- queryParameters['password_field'] = requestParameters.passwordField;
1404
- }
1405
- if (requestParameters.policyUuid !== undefined) {
1406
- queryParameters['policy_uuid'] = requestParameters.policyUuid;
1407
- }
1408
- if (requestParameters.search !== undefined) {
1409
- queryParameters['search'] = requestParameters.search;
1410
- }
1411
- const headerParameters = {};
1412
- if (this.configuration && this.configuration.apiKey) {
1413
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1414
- }
1415
- const response = yield this.request({
1416
- path: `/policies/haveibeenpwned/`,
1417
- method: 'GET',
1418
- headers: headerParameters,
1419
- query: queryParameters,
1420
- }, initOverrides);
1421
- return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedHaveIBeenPwendPolicyListFromJSON(jsonValue));
1422
- });
1423
- }
1424
- /**
1425
- * Source Viewset
1426
- */
1427
- policiesHaveibeenpwnedList(requestParameters = {}, initOverrides) {
1428
- return __awaiter(this, void 0, void 0, function* () {
1429
- const response = yield this.policiesHaveibeenpwnedListRaw(requestParameters, initOverrides);
1430
- return yield response.value();
1431
- });
1432
- }
1433
- /**
1434
- * Source Viewset
1435
- */
1436
- policiesHaveibeenpwnedPartialUpdateRaw(requestParameters, initOverrides) {
1437
- return __awaiter(this, void 0, void 0, function* () {
1438
- if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
1439
- throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedPartialUpdate.');
1440
- }
1441
- const queryParameters = {};
1442
- const headerParameters = {};
1443
- headerParameters['Content-Type'] = 'application/json';
1444
- if (this.configuration && this.configuration.apiKey) {
1445
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1446
- }
1447
- const response = yield this.request({
1448
- path: `/policies/haveibeenpwned/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1449
- method: 'PATCH',
1450
- headers: headerParameters,
1451
- query: queryParameters,
1452
- body: PatchedHaveIBeenPwendPolicyRequestToJSON(requestParameters.patchedHaveIBeenPwendPolicyRequest),
1453
- }, initOverrides);
1454
- return new runtime.JSONApiResponse(response, (jsonValue) => HaveIBeenPwendPolicyFromJSON(jsonValue));
1455
- });
1456
- }
1457
- /**
1458
- * Source Viewset
1459
- */
1460
- policiesHaveibeenpwnedPartialUpdate(requestParameters, initOverrides) {
1461
- return __awaiter(this, void 0, void 0, function* () {
1462
- const response = yield this.policiesHaveibeenpwnedPartialUpdateRaw(requestParameters, initOverrides);
1463
- return yield response.value();
1464
- });
1465
- }
1466
- /**
1467
- * Source Viewset
1468
- */
1469
- policiesHaveibeenpwnedRetrieveRaw(requestParameters, initOverrides) {
1470
- return __awaiter(this, void 0, void 0, function* () {
1471
- if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
1472
- throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedRetrieve.');
1473
- }
1474
- const queryParameters = {};
1475
- const headerParameters = {};
1476
- if (this.configuration && this.configuration.apiKey) {
1477
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1478
- }
1479
- const response = yield this.request({
1480
- path: `/policies/haveibeenpwned/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1481
- method: 'GET',
1482
- headers: headerParameters,
1483
- query: queryParameters,
1484
- }, initOverrides);
1485
- return new runtime.JSONApiResponse(response, (jsonValue) => HaveIBeenPwendPolicyFromJSON(jsonValue));
1486
- });
1487
- }
1488
- /**
1489
- * Source Viewset
1490
- */
1491
- policiesHaveibeenpwnedRetrieve(requestParameters, initOverrides) {
1492
- return __awaiter(this, void 0, void 0, function* () {
1493
- const response = yield this.policiesHaveibeenpwnedRetrieveRaw(requestParameters, initOverrides);
1494
- return yield response.value();
1495
- });
1496
- }
1497
- /**
1498
- * Source Viewset
1499
- */
1500
- policiesHaveibeenpwnedUpdateRaw(requestParameters, initOverrides) {
1501
- return __awaiter(this, void 0, void 0, function* () {
1502
- if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
1503
- throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedUpdate.');
1504
- }
1505
- if (requestParameters.haveIBeenPwendPolicyRequest === null || requestParameters.haveIBeenPwendPolicyRequest === undefined) {
1506
- throw new runtime.RequiredError('haveIBeenPwendPolicyRequest', 'Required parameter requestParameters.haveIBeenPwendPolicyRequest was null or undefined when calling policiesHaveibeenpwnedUpdate.');
1507
- }
1508
- const queryParameters = {};
1509
- const headerParameters = {};
1510
- headerParameters['Content-Type'] = 'application/json';
1511
- if (this.configuration && this.configuration.apiKey) {
1512
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1513
- }
1514
- const response = yield this.request({
1515
- path: `/policies/haveibeenpwned/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1516
- method: 'PUT',
1517
- headers: headerParameters,
1518
- query: queryParameters,
1519
- body: HaveIBeenPwendPolicyRequestToJSON(requestParameters.haveIBeenPwendPolicyRequest),
1520
- }, initOverrides);
1521
- return new runtime.JSONApiResponse(response, (jsonValue) => HaveIBeenPwendPolicyFromJSON(jsonValue));
1522
- });
1523
- }
1524
- /**
1525
- * Source Viewset
1526
- */
1527
- policiesHaveibeenpwnedUpdate(requestParameters, initOverrides) {
1528
- return __awaiter(this, void 0, void 0, function* () {
1529
- const response = yield this.policiesHaveibeenpwnedUpdateRaw(requestParameters, initOverrides);
1530
- return yield response.value();
1531
- });
1532
- }
1533
- /**
1534
- * Get a list of all objects that use this object
1535
- */
1536
- policiesHaveibeenpwnedUsedByListRaw(requestParameters, initOverrides) {
1537
- return __awaiter(this, void 0, void 0, function* () {
1538
- if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
1539
- throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedUsedByList.');
1540
- }
1541
- const queryParameters = {};
1542
- const headerParameters = {};
1543
- if (this.configuration && this.configuration.apiKey) {
1544
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1545
- }
1546
- const response = yield this.request({
1547
- path: `/policies/haveibeenpwned/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1548
- method: 'GET',
1549
- headers: headerParameters,
1550
- query: queryParameters,
1551
- }, initOverrides);
1552
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
1553
- });
1554
- }
1555
- /**
1556
- * Get a list of all objects that use this object
1557
- */
1558
- policiesHaveibeenpwnedUsedByList(requestParameters, initOverrides) {
1559
- return __awaiter(this, void 0, void 0, function* () {
1560
- const response = yield this.policiesHaveibeenpwnedUsedByListRaw(requestParameters, initOverrides);
1561
- return yield response.value();
1562
- });
1563
- }
1564
1309
  /**
1565
1310
  * Password Policy Viewset
1566
1311
  */
@@ -2537,55 +2282,3 @@ export const PoliciesEventMatcherListActionEnum = {
2537
2282
  UserWrite: 'user_write',
2538
2283
  UnknownDefaultOpenApi: '11184809'
2539
2284
  };
2540
- /**
2541
- * @export
2542
- */
2543
- export const PoliciesEventMatcherListAppEnum = {
2544
- Admin: 'authentik.admin',
2545
- Api: 'authentik.api',
2546
- Blueprints: 'authentik.blueprints',
2547
- Core: 'authentik.core',
2548
- Crypto: 'authentik.crypto',
2549
- Events: 'authentik.events',
2550
- Flows: 'authentik.flows',
2551
- Lib: 'authentik.lib',
2552
- Outposts: 'authentik.outposts',
2553
- Policies: 'authentik.policies',
2554
- PoliciesDummy: 'authentik.policies.dummy',
2555
- PoliciesEventMatcher: 'authentik.policies.event_matcher',
2556
- PoliciesExpiry: 'authentik.policies.expiry',
2557
- PoliciesExpression: 'authentik.policies.expression',
2558
- PoliciesHibp: 'authentik.policies.hibp',
2559
- PoliciesPassword: 'authentik.policies.password',
2560
- PoliciesReputation: 'authentik.policies.reputation',
2561
- ProvidersLdap: 'authentik.providers.ldap',
2562
- ProvidersOauth2: 'authentik.providers.oauth2',
2563
- ProvidersProxy: 'authentik.providers.proxy',
2564
- ProvidersSaml: 'authentik.providers.saml',
2565
- Recovery: 'authentik.recovery',
2566
- SourcesLdap: 'authentik.sources.ldap',
2567
- SourcesOauth: 'authentik.sources.oauth',
2568
- SourcesPlex: 'authentik.sources.plex',
2569
- SourcesSaml: 'authentik.sources.saml',
2570
- StagesAuthenticatorDuo: 'authentik.stages.authenticator_duo',
2571
- StagesAuthenticatorSms: 'authentik.stages.authenticator_sms',
2572
- StagesAuthenticatorStatic: 'authentik.stages.authenticator_static',
2573
- StagesAuthenticatorTotp: 'authentik.stages.authenticator_totp',
2574
- StagesAuthenticatorValidate: 'authentik.stages.authenticator_validate',
2575
- StagesAuthenticatorWebauthn: 'authentik.stages.authenticator_webauthn',
2576
- StagesCaptcha: 'authentik.stages.captcha',
2577
- StagesConsent: 'authentik.stages.consent',
2578
- StagesDeny: 'authentik.stages.deny',
2579
- StagesDummy: 'authentik.stages.dummy',
2580
- StagesEmail: 'authentik.stages.email',
2581
- StagesIdentification: 'authentik.stages.identification',
2582
- StagesInvitation: 'authentik.stages.invitation',
2583
- StagesPassword: 'authentik.stages.password',
2584
- StagesPrompt: 'authentik.stages.prompt',
2585
- StagesUserDelete: 'authentik.stages.user_delete',
2586
- StagesUserLogin: 'authentik.stages.user_login',
2587
- StagesUserLogout: 'authentik.stages.user_logout',
2588
- StagesUserWrite: 'authentik.stages.user_write',
2589
- Tenants: 'authentik.tenants',
2590
- UnknownDefaultOpenApi: '11184809'
2591
- };
@@ -654,7 +654,6 @@ export interface StagesUserWriteDestroyRequest {
654
654
  stageUuid: string;
655
655
  }
656
656
  export interface StagesUserWriteListRequest {
657
- canCreateUsers?: boolean;
658
657
  createUsersAsInactive?: boolean;
659
658
  createUsersGroup?: string;
660
659
  name?: string;
@@ -663,6 +662,7 @@ export interface StagesUserWriteListRequest {
663
662
  pageSize?: number;
664
663
  search?: string;
665
664
  stageUuid?: string;
665
+ userCreationMode?: StagesUserWriteListUserCreationModeEnum;
666
666
  userPathTemplate?: string;
667
667
  }
668
668
  export interface StagesUserWritePartialUpdateRequest {
@@ -2037,3 +2037,13 @@ export declare const StagesPromptPromptsListTypeEnum: {
2037
2037
  readonly UnknownDefaultOpenApi: "11184809";
2038
2038
  };
2039
2039
  export type StagesPromptPromptsListTypeEnum = typeof StagesPromptPromptsListTypeEnum[keyof typeof StagesPromptPromptsListTypeEnum];
2040
+ /**
2041
+ * @export
2042
+ */
2043
+ export declare const StagesUserWriteListUserCreationModeEnum: {
2044
+ readonly AlwaysCreate: "always_create";
2045
+ readonly CreateWhenRequired: "create_when_required";
2046
+ readonly NeverCreate: "never_create";
2047
+ readonly UnknownDefaultOpenApi: "11184809";
2048
+ };
2049
+ export type StagesUserWriteListUserCreationModeEnum = typeof StagesUserWriteListUserCreationModeEnum[keyof typeof StagesUserWriteListUserCreationModeEnum];
@@ -5361,9 +5361,6 @@ export class StagesApi extends runtime.BaseAPI {
5361
5361
  stagesUserWriteListRaw(requestParameters, initOverrides) {
5362
5362
  return __awaiter(this, void 0, void 0, function* () {
5363
5363
  const queryParameters = {};
5364
- if (requestParameters.canCreateUsers !== undefined) {
5365
- queryParameters['can_create_users'] = requestParameters.canCreateUsers;
5366
- }
5367
5364
  if (requestParameters.createUsersAsInactive !== undefined) {
5368
5365
  queryParameters['create_users_as_inactive'] = requestParameters.createUsersAsInactive;
5369
5366
  }
@@ -5388,6 +5385,9 @@ export class StagesApi extends runtime.BaseAPI {
5388
5385
  if (requestParameters.stageUuid !== undefined) {
5389
5386
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
5390
5387
  }
5388
+ if (requestParameters.userCreationMode !== undefined) {
5389
+ queryParameters['user_creation_mode'] = requestParameters.userCreationMode;
5390
+ }
5391
5391
  if (requestParameters.userPathTemplate !== undefined) {
5392
5392
  queryParameters['user_path_template'] = requestParameters.userPathTemplate;
5393
5393
  }
@@ -5633,3 +5633,12 @@ export const StagesPromptPromptsListTypeEnum = {
5633
5633
  Username: 'username',
5634
5634
  UnknownDefaultOpenApi: '11184809'
5635
5635
  };
5636
+ /**
5637
+ * @export
5638
+ */
5639
+ export const StagesUserWriteListUserCreationModeEnum = {
5640
+ AlwaysCreate: 'always_create',
5641
+ CreateWhenRequired: 'create_when_required',
5642
+ NeverCreate: 'never_create',
5643
+ UnknownDefaultOpenApi: '11184809'
5644
+ };
@@ -25,7 +25,6 @@ export declare const AppEnum: {
25
25
  readonly PoliciesEventMatcher: "authentik.policies.event_matcher";
26
26
  readonly PoliciesExpiry: "authentik.policies.expiry";
27
27
  readonly PoliciesExpression: "authentik.policies.expression";
28
- readonly PoliciesHibp: "authentik.policies.hibp";
29
28
  readonly PoliciesPassword: "authentik.policies.password";
30
29
  readonly PoliciesReputation: "authentik.policies.reputation";
31
30
  readonly Policies: "authentik.policies";
@@ -27,7 +27,6 @@ export const AppEnum = {
27
27
  PoliciesEventMatcher: 'authentik.policies.event_matcher',
28
28
  PoliciesExpiry: 'authentik.policies.expiry',
29
29
  PoliciesExpression: 'authentik.policies.expression',
30
- PoliciesHibp: 'authentik.policies.hibp',
31
30
  PoliciesPassword: 'authentik.policies.password',
32
31
  PoliciesReputation: 'authentik.policies.reputation',
33
32
  Policies: 'authentik.policies',
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowSetRequest } from './FlowSetRequest';
13
+ import { UserCreationModeEnum } from './UserCreationModeEnum';
13
14
  /**
14
15
  * UserWriteStage Serializer
15
16
  * @export
@@ -28,6 +29,12 @@ export interface PatchedUserWriteStageRequest {
28
29
  * @memberof PatchedUserWriteStageRequest
29
30
  */
30
31
  flowSet?: Array<FlowSetRequest>;
32
+ /**
33
+ *
34
+ * @type {UserCreationModeEnum}
35
+ * @memberof PatchedUserWriteStageRequest
36
+ */
37
+ userCreationMode?: UserCreationModeEnum;
31
38
  /**
32
39
  * When set, newly created users are inactive and cannot login.
33
40
  * @type {boolean}
@@ -40,12 +47,6 @@ export interface PatchedUserWriteStageRequest {
40
47
  * @memberof PatchedUserWriteStageRequest
41
48
  */
42
49
  createUsersGroup?: string | null;
43
- /**
44
- * When set, this stage can create users. If not enabled and no user is available, stage will fail.
45
- * @type {boolean}
46
- * @memberof PatchedUserWriteStageRequest
47
- */
48
- canCreateUsers?: boolean;
49
50
  /**
50
51
  *
51
52
  * @type {string}
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
16
+ import { UserCreationModeEnumFromJSON, UserCreationModeEnumToJSON, } from './UserCreationModeEnum';
16
17
  export function PatchedUserWriteStageRequestFromJSON(json) {
17
18
  return PatchedUserWriteStageRequestFromJSONTyped(json, false);
18
19
  }
@@ -23,9 +24,9 @@ export function PatchedUserWriteStageRequestFromJSONTyped(json, ignoreDiscrimina
23
24
  return {
24
25
  'name': !exists(json, 'name') ? undefined : json['name'],
25
26
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
27
+ 'userCreationMode': !exists(json, 'user_creation_mode') ? undefined : UserCreationModeEnumFromJSON(json['user_creation_mode']),
26
28
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
27
29
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
28
- 'canCreateUsers': !exists(json, 'can_create_users') ? undefined : json['can_create_users'],
29
30
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
30
31
  };
31
32
  }
@@ -39,9 +40,9 @@ export function PatchedUserWriteStageRequestToJSON(value) {
39
40
  return {
40
41
  'name': value.name,
41
42
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
43
+ 'user_creation_mode': UserCreationModeEnumToJSON(value.userCreationMode),
42
44
  'create_users_as_inactive': value.createUsersAsInactive,
43
45
  'create_users_group': value.createUsersGroup,
44
- 'can_create_users': value.canCreateUsers,
45
46
  'user_path_template': value.userPathTemplate,
46
47
  };
47
48
  }