@goauthentik/api 2022.12.2-1672911746 → 2022.12.2-1672921186
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.
- package/.openapi-generator/FILES +0 -4
- package/dist/apis/PoliciesApi.d.ts +2 -144
- package/dist/apis/PoliciesApi.js +1 -308
- package/dist/esm/apis/PoliciesApi.d.ts +2 -144
- package/dist/esm/apis/PoliciesApi.js +1 -308
- package/dist/esm/models/AppEnum.d.ts +0 -1
- package/dist/esm/models/AppEnum.js +0 -1
- package/dist/esm/models/index.d.ts +0 -4
- package/dist/esm/models/index.js +0 -4
- package/dist/models/AppEnum.d.ts +0 -1
- package/dist/models/AppEnum.js +0 -1
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.js +0 -4
- package/package.json +1 -1
- package/src/apis/PoliciesApi.ts +1 -396
- package/src/models/AppEnum.ts +0 -1
- package/src/models/index.ts +0 -4
- package/dist/esm/models/HaveIBeenPwendPolicy.d.ts +0 -81
- package/dist/esm/models/HaveIBeenPwendPolicy.js +0 -48
- package/dist/esm/models/HaveIBeenPwendPolicyRequest.d.ts +0 -45
- package/dist/esm/models/HaveIBeenPwendPolicyRequest.js +0 -42
- package/dist/esm/models/PaginatedHaveIBeenPwendPolicyList.d.ts +0 -35
- package/dist/esm/models/PaginatedHaveIBeenPwendPolicyList.js +0 -39
- package/dist/esm/models/PatchedHaveIBeenPwendPolicyRequest.d.ts +0 -45
- package/dist/esm/models/PatchedHaveIBeenPwendPolicyRequest.js +0 -42
- package/dist/models/HaveIBeenPwendPolicy.d.ts +0 -81
- package/dist/models/HaveIBeenPwendPolicy.js +0 -54
- package/dist/models/HaveIBeenPwendPolicyRequest.d.ts +0 -45
- package/dist/models/HaveIBeenPwendPolicyRequest.js +0 -48
- package/dist/models/PaginatedHaveIBeenPwendPolicyList.d.ts +0 -35
- package/dist/models/PaginatedHaveIBeenPwendPolicyList.js +0 -45
- package/dist/models/PatchedHaveIBeenPwendPolicyRequest.d.ts +0 -45
- package/dist/models/PatchedHaveIBeenPwendPolicyRequest.js +0 -48
- package/src/models/HaveIBeenPwendPolicy.ts +0 -122
- package/src/models/HaveIBeenPwendPolicyRequest.ts +0 -80
- package/src/models/PaginatedHaveIBeenPwendPolicyList.ts +0 -77
- package/src/models/PatchedHaveIBeenPwendPolicyRequest.ts +0 -80
package/.openapi-generator/FILES
CHANGED
|
@@ -153,8 +153,6 @@ src/models/Group.ts
|
|
|
153
153
|
src/models/GroupMember.ts
|
|
154
154
|
src/models/GroupMemberRequest.ts
|
|
155
155
|
src/models/GroupRequest.ts
|
|
156
|
-
src/models/HaveIBeenPwendPolicy.ts
|
|
157
|
-
src/models/HaveIBeenPwendPolicyRequest.ts
|
|
158
156
|
src/models/IdentificationChallenge.ts
|
|
159
157
|
src/models/IdentificationChallengeResponseRequest.ts
|
|
160
158
|
src/models/IdentificationStage.ts
|
|
@@ -240,7 +238,6 @@ src/models/PaginatedExpressionPolicyList.ts
|
|
|
240
238
|
src/models/PaginatedFlowList.ts
|
|
241
239
|
src/models/PaginatedFlowStageBindingList.ts
|
|
242
240
|
src/models/PaginatedGroupList.ts
|
|
243
|
-
src/models/PaginatedHaveIBeenPwendPolicyList.ts
|
|
244
241
|
src/models/PaginatedIdentificationStageList.ts
|
|
245
242
|
src/models/PaginatedInvitationList.ts
|
|
246
243
|
src/models/PaginatedInvitationStageList.ts
|
|
@@ -325,7 +322,6 @@ src/models/PatchedExpressionPolicyRequest.ts
|
|
|
325
322
|
src/models/PatchedFlowRequest.ts
|
|
326
323
|
src/models/PatchedFlowStageBindingRequest.ts
|
|
327
324
|
src/models/PatchedGroupRequest.ts
|
|
328
|
-
src/models/PatchedHaveIBeenPwendPolicyRequest.ts
|
|
329
325
|
src/models/PatchedIdentificationStageRequest.ts
|
|
330
326
|
src/models/PatchedInvitationRequest.ts
|
|
331
327
|
src/models/PatchedInvitationStageRequest.ts
|
|
@@ -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,
|
|
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?:
|
|
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];
|
package/dist/apis/PoliciesApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.PoliciesEventMatcherListActionEnum = exports.PoliciesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const models_1 = require("../models");
|
|
28
28
|
/**
|
|
@@ -1309,261 +1309,6 @@ class PoliciesApi extends runtime.BaseAPI {
|
|
|
1309
1309
|
return yield response.value();
|
|
1310
1310
|
});
|
|
1311
1311
|
}
|
|
1312
|
-
/**
|
|
1313
|
-
* Source Viewset
|
|
1314
|
-
*/
|
|
1315
|
-
policiesHaveibeenpwnedCreateRaw(requestParameters, initOverrides) {
|
|
1316
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1317
|
-
if (requestParameters.haveIBeenPwendPolicyRequest === null || requestParameters.haveIBeenPwendPolicyRequest === undefined) {
|
|
1318
|
-
throw new runtime.RequiredError('haveIBeenPwendPolicyRequest', 'Required parameter requestParameters.haveIBeenPwendPolicyRequest was null or undefined when calling policiesHaveibeenpwnedCreate.');
|
|
1319
|
-
}
|
|
1320
|
-
const queryParameters = {};
|
|
1321
|
-
const headerParameters = {};
|
|
1322
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1323
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1324
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1325
|
-
}
|
|
1326
|
-
const response = yield this.request({
|
|
1327
|
-
path: `/policies/haveibeenpwned/`,
|
|
1328
|
-
method: 'POST',
|
|
1329
|
-
headers: headerParameters,
|
|
1330
|
-
query: queryParameters,
|
|
1331
|
-
body: (0, models_1.HaveIBeenPwendPolicyRequestToJSON)(requestParameters.haveIBeenPwendPolicyRequest),
|
|
1332
|
-
}, initOverrides);
|
|
1333
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.HaveIBeenPwendPolicyFromJSON)(jsonValue));
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
|
-
/**
|
|
1337
|
-
* Source Viewset
|
|
1338
|
-
*/
|
|
1339
|
-
policiesHaveibeenpwnedCreate(requestParameters, initOverrides) {
|
|
1340
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1341
|
-
const response = yield this.policiesHaveibeenpwnedCreateRaw(requestParameters, initOverrides);
|
|
1342
|
-
return yield response.value();
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
/**
|
|
1346
|
-
* Source Viewset
|
|
1347
|
-
*/
|
|
1348
|
-
policiesHaveibeenpwnedDestroyRaw(requestParameters, initOverrides) {
|
|
1349
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1350
|
-
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
|
1351
|
-
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedDestroy.');
|
|
1352
|
-
}
|
|
1353
|
-
const queryParameters = {};
|
|
1354
|
-
const headerParameters = {};
|
|
1355
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1356
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1357
|
-
}
|
|
1358
|
-
const response = yield this.request({
|
|
1359
|
-
path: `/policies/haveibeenpwned/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
|
1360
|
-
method: 'DELETE',
|
|
1361
|
-
headers: headerParameters,
|
|
1362
|
-
query: queryParameters,
|
|
1363
|
-
}, initOverrides);
|
|
1364
|
-
return new runtime.VoidApiResponse(response);
|
|
1365
|
-
});
|
|
1366
|
-
}
|
|
1367
|
-
/**
|
|
1368
|
-
* Source Viewset
|
|
1369
|
-
*/
|
|
1370
|
-
policiesHaveibeenpwnedDestroy(requestParameters, initOverrides) {
|
|
1371
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1372
|
-
yield this.policiesHaveibeenpwnedDestroyRaw(requestParameters, initOverrides);
|
|
1373
|
-
});
|
|
1374
|
-
}
|
|
1375
|
-
/**
|
|
1376
|
-
* Source Viewset
|
|
1377
|
-
*/
|
|
1378
|
-
policiesHaveibeenpwnedListRaw(requestParameters, initOverrides) {
|
|
1379
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1380
|
-
const queryParameters = {};
|
|
1381
|
-
if (requestParameters.allowedCount !== undefined) {
|
|
1382
|
-
queryParameters['allowed_count'] = requestParameters.allowedCount;
|
|
1383
|
-
}
|
|
1384
|
-
if (requestParameters.created !== undefined) {
|
|
1385
|
-
queryParameters['created'] = requestParameters.created.toISOString();
|
|
1386
|
-
}
|
|
1387
|
-
if (requestParameters.executionLogging !== undefined) {
|
|
1388
|
-
queryParameters['execution_logging'] = requestParameters.executionLogging;
|
|
1389
|
-
}
|
|
1390
|
-
if (requestParameters.lastUpdated !== undefined) {
|
|
1391
|
-
queryParameters['last_updated'] = requestParameters.lastUpdated.toISOString();
|
|
1392
|
-
}
|
|
1393
|
-
if (requestParameters.name !== undefined) {
|
|
1394
|
-
queryParameters['name'] = requestParameters.name;
|
|
1395
|
-
}
|
|
1396
|
-
if (requestParameters.ordering !== undefined) {
|
|
1397
|
-
queryParameters['ordering'] = requestParameters.ordering;
|
|
1398
|
-
}
|
|
1399
|
-
if (requestParameters.page !== undefined) {
|
|
1400
|
-
queryParameters['page'] = requestParameters.page;
|
|
1401
|
-
}
|
|
1402
|
-
if (requestParameters.pageSize !== undefined) {
|
|
1403
|
-
queryParameters['page_size'] = requestParameters.pageSize;
|
|
1404
|
-
}
|
|
1405
|
-
if (requestParameters.passwordField !== undefined) {
|
|
1406
|
-
queryParameters['password_field'] = requestParameters.passwordField;
|
|
1407
|
-
}
|
|
1408
|
-
if (requestParameters.policyUuid !== undefined) {
|
|
1409
|
-
queryParameters['policy_uuid'] = requestParameters.policyUuid;
|
|
1410
|
-
}
|
|
1411
|
-
if (requestParameters.search !== undefined) {
|
|
1412
|
-
queryParameters['search'] = requestParameters.search;
|
|
1413
|
-
}
|
|
1414
|
-
const headerParameters = {};
|
|
1415
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1416
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1417
|
-
}
|
|
1418
|
-
const response = yield this.request({
|
|
1419
|
-
path: `/policies/haveibeenpwned/`,
|
|
1420
|
-
method: 'GET',
|
|
1421
|
-
headers: headerParameters,
|
|
1422
|
-
query: queryParameters,
|
|
1423
|
-
}, initOverrides);
|
|
1424
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedHaveIBeenPwendPolicyListFromJSON)(jsonValue));
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
/**
|
|
1428
|
-
* Source Viewset
|
|
1429
|
-
*/
|
|
1430
|
-
policiesHaveibeenpwnedList(requestParameters = {}, initOverrides) {
|
|
1431
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1432
|
-
const response = yield this.policiesHaveibeenpwnedListRaw(requestParameters, initOverrides);
|
|
1433
|
-
return yield response.value();
|
|
1434
|
-
});
|
|
1435
|
-
}
|
|
1436
|
-
/**
|
|
1437
|
-
* Source Viewset
|
|
1438
|
-
*/
|
|
1439
|
-
policiesHaveibeenpwnedPartialUpdateRaw(requestParameters, initOverrides) {
|
|
1440
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1441
|
-
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
|
1442
|
-
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedPartialUpdate.');
|
|
1443
|
-
}
|
|
1444
|
-
const queryParameters = {};
|
|
1445
|
-
const headerParameters = {};
|
|
1446
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1447
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1448
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1449
|
-
}
|
|
1450
|
-
const response = yield this.request({
|
|
1451
|
-
path: `/policies/haveibeenpwned/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
|
1452
|
-
method: 'PATCH',
|
|
1453
|
-
headers: headerParameters,
|
|
1454
|
-
query: queryParameters,
|
|
1455
|
-
body: (0, models_1.PatchedHaveIBeenPwendPolicyRequestToJSON)(requestParameters.patchedHaveIBeenPwendPolicyRequest),
|
|
1456
|
-
}, initOverrides);
|
|
1457
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.HaveIBeenPwendPolicyFromJSON)(jsonValue));
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
/**
|
|
1461
|
-
* Source Viewset
|
|
1462
|
-
*/
|
|
1463
|
-
policiesHaveibeenpwnedPartialUpdate(requestParameters, initOverrides) {
|
|
1464
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1465
|
-
const response = yield this.policiesHaveibeenpwnedPartialUpdateRaw(requestParameters, initOverrides);
|
|
1466
|
-
return yield response.value();
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
/**
|
|
1470
|
-
* Source Viewset
|
|
1471
|
-
*/
|
|
1472
|
-
policiesHaveibeenpwnedRetrieveRaw(requestParameters, initOverrides) {
|
|
1473
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1474
|
-
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
|
1475
|
-
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedRetrieve.');
|
|
1476
|
-
}
|
|
1477
|
-
const queryParameters = {};
|
|
1478
|
-
const headerParameters = {};
|
|
1479
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1480
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1481
|
-
}
|
|
1482
|
-
const response = yield this.request({
|
|
1483
|
-
path: `/policies/haveibeenpwned/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
|
1484
|
-
method: 'GET',
|
|
1485
|
-
headers: headerParameters,
|
|
1486
|
-
query: queryParameters,
|
|
1487
|
-
}, initOverrides);
|
|
1488
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.HaveIBeenPwendPolicyFromJSON)(jsonValue));
|
|
1489
|
-
});
|
|
1490
|
-
}
|
|
1491
|
-
/**
|
|
1492
|
-
* Source Viewset
|
|
1493
|
-
*/
|
|
1494
|
-
policiesHaveibeenpwnedRetrieve(requestParameters, initOverrides) {
|
|
1495
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1496
|
-
const response = yield this.policiesHaveibeenpwnedRetrieveRaw(requestParameters, initOverrides);
|
|
1497
|
-
return yield response.value();
|
|
1498
|
-
});
|
|
1499
|
-
}
|
|
1500
|
-
/**
|
|
1501
|
-
* Source Viewset
|
|
1502
|
-
*/
|
|
1503
|
-
policiesHaveibeenpwnedUpdateRaw(requestParameters, initOverrides) {
|
|
1504
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1505
|
-
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
|
1506
|
-
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedUpdate.');
|
|
1507
|
-
}
|
|
1508
|
-
if (requestParameters.haveIBeenPwendPolicyRequest === null || requestParameters.haveIBeenPwendPolicyRequest === undefined) {
|
|
1509
|
-
throw new runtime.RequiredError('haveIBeenPwendPolicyRequest', 'Required parameter requestParameters.haveIBeenPwendPolicyRequest was null or undefined when calling policiesHaveibeenpwnedUpdate.');
|
|
1510
|
-
}
|
|
1511
|
-
const queryParameters = {};
|
|
1512
|
-
const headerParameters = {};
|
|
1513
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1514
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1515
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1516
|
-
}
|
|
1517
|
-
const response = yield this.request({
|
|
1518
|
-
path: `/policies/haveibeenpwned/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
|
1519
|
-
method: 'PUT',
|
|
1520
|
-
headers: headerParameters,
|
|
1521
|
-
query: queryParameters,
|
|
1522
|
-
body: (0, models_1.HaveIBeenPwendPolicyRequestToJSON)(requestParameters.haveIBeenPwendPolicyRequest),
|
|
1523
|
-
}, initOverrides);
|
|
1524
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.HaveIBeenPwendPolicyFromJSON)(jsonValue));
|
|
1525
|
-
});
|
|
1526
|
-
}
|
|
1527
|
-
/**
|
|
1528
|
-
* Source Viewset
|
|
1529
|
-
*/
|
|
1530
|
-
policiesHaveibeenpwnedUpdate(requestParameters, initOverrides) {
|
|
1531
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1532
|
-
const response = yield this.policiesHaveibeenpwnedUpdateRaw(requestParameters, initOverrides);
|
|
1533
|
-
return yield response.value();
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
/**
|
|
1537
|
-
* Get a list of all objects that use this object
|
|
1538
|
-
*/
|
|
1539
|
-
policiesHaveibeenpwnedUsedByListRaw(requestParameters, initOverrides) {
|
|
1540
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1541
|
-
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
|
1542
|
-
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesHaveibeenpwnedUsedByList.');
|
|
1543
|
-
}
|
|
1544
|
-
const queryParameters = {};
|
|
1545
|
-
const headerParameters = {};
|
|
1546
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1547
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1548
|
-
}
|
|
1549
|
-
const response = yield this.request({
|
|
1550
|
-
path: `/policies/haveibeenpwned/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
|
1551
|
-
method: 'GET',
|
|
1552
|
-
headers: headerParameters,
|
|
1553
|
-
query: queryParameters,
|
|
1554
|
-
}, initOverrides);
|
|
1555
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
/**
|
|
1559
|
-
* Get a list of all objects that use this object
|
|
1560
|
-
*/
|
|
1561
|
-
policiesHaveibeenpwnedUsedByList(requestParameters, initOverrides) {
|
|
1562
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1563
|
-
const response = yield this.policiesHaveibeenpwnedUsedByListRaw(requestParameters, initOverrides);
|
|
1564
|
-
return yield response.value();
|
|
1565
|
-
});
|
|
1566
|
-
}
|
|
1567
1312
|
/**
|
|
1568
1313
|
* Password Policy Viewset
|
|
1569
1314
|
*/
|
|
@@ -2541,55 +2286,3 @@ exports.PoliciesEventMatcherListActionEnum = {
|
|
|
2541
2286
|
UserWrite: 'user_write',
|
|
2542
2287
|
UnknownDefaultOpenApi: '11184809'
|
|
2543
2288
|
};
|
|
2544
|
-
/**
|
|
2545
|
-
* @export
|
|
2546
|
-
*/
|
|
2547
|
-
exports.PoliciesEventMatcherListAppEnum = {
|
|
2548
|
-
Admin: 'authentik.admin',
|
|
2549
|
-
Api: 'authentik.api',
|
|
2550
|
-
Blueprints: 'authentik.blueprints',
|
|
2551
|
-
Core: 'authentik.core',
|
|
2552
|
-
Crypto: 'authentik.crypto',
|
|
2553
|
-
Events: 'authentik.events',
|
|
2554
|
-
Flows: 'authentik.flows',
|
|
2555
|
-
Lib: 'authentik.lib',
|
|
2556
|
-
Outposts: 'authentik.outposts',
|
|
2557
|
-
Policies: 'authentik.policies',
|
|
2558
|
-
PoliciesDummy: 'authentik.policies.dummy',
|
|
2559
|
-
PoliciesEventMatcher: 'authentik.policies.event_matcher',
|
|
2560
|
-
PoliciesExpiry: 'authentik.policies.expiry',
|
|
2561
|
-
PoliciesExpression: 'authentik.policies.expression',
|
|
2562
|
-
PoliciesHibp: 'authentik.policies.hibp',
|
|
2563
|
-
PoliciesPassword: 'authentik.policies.password',
|
|
2564
|
-
PoliciesReputation: 'authentik.policies.reputation',
|
|
2565
|
-
ProvidersLdap: 'authentik.providers.ldap',
|
|
2566
|
-
ProvidersOauth2: 'authentik.providers.oauth2',
|
|
2567
|
-
ProvidersProxy: 'authentik.providers.proxy',
|
|
2568
|
-
ProvidersSaml: 'authentik.providers.saml',
|
|
2569
|
-
Recovery: 'authentik.recovery',
|
|
2570
|
-
SourcesLdap: 'authentik.sources.ldap',
|
|
2571
|
-
SourcesOauth: 'authentik.sources.oauth',
|
|
2572
|
-
SourcesPlex: 'authentik.sources.plex',
|
|
2573
|
-
SourcesSaml: 'authentik.sources.saml',
|
|
2574
|
-
StagesAuthenticatorDuo: 'authentik.stages.authenticator_duo',
|
|
2575
|
-
StagesAuthenticatorSms: 'authentik.stages.authenticator_sms',
|
|
2576
|
-
StagesAuthenticatorStatic: 'authentik.stages.authenticator_static',
|
|
2577
|
-
StagesAuthenticatorTotp: 'authentik.stages.authenticator_totp',
|
|
2578
|
-
StagesAuthenticatorValidate: 'authentik.stages.authenticator_validate',
|
|
2579
|
-
StagesAuthenticatorWebauthn: 'authentik.stages.authenticator_webauthn',
|
|
2580
|
-
StagesCaptcha: 'authentik.stages.captcha',
|
|
2581
|
-
StagesConsent: 'authentik.stages.consent',
|
|
2582
|
-
StagesDeny: 'authentik.stages.deny',
|
|
2583
|
-
StagesDummy: 'authentik.stages.dummy',
|
|
2584
|
-
StagesEmail: 'authentik.stages.email',
|
|
2585
|
-
StagesIdentification: 'authentik.stages.identification',
|
|
2586
|
-
StagesInvitation: 'authentik.stages.invitation',
|
|
2587
|
-
StagesPassword: 'authentik.stages.password',
|
|
2588
|
-
StagesPrompt: 'authentik.stages.prompt',
|
|
2589
|
-
StagesUserDelete: 'authentik.stages.user_delete',
|
|
2590
|
-
StagesUserLogin: 'authentik.stages.user_login',
|
|
2591
|
-
StagesUserLogout: 'authentik.stages.user_logout',
|
|
2592
|
-
StagesUserWrite: 'authentik.stages.user_write',
|
|
2593
|
-
Tenants: 'authentik.tenants',
|
|
2594
|
-
UnknownDefaultOpenApi: '11184809'
|
|
2595
|
-
};
|