@goauthentik/api 2024.12.3-1739200400 → 2024.12.3-1739801838
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 +10 -0
- package/dist/apis/AuthenticatorsApi.d.ts +145 -1
- package/dist/apis/AuthenticatorsApi.js +458 -0
- package/dist/apis/RbacApi.d.ts +4 -0
- package/dist/apis/RbacApi.js +4 -0
- package/dist/apis/SourcesApi.d.ts +1 -0
- package/dist/apis/SourcesApi.js +3 -0
- package/dist/apis/StagesApi.d.ts +99 -1
- package/dist/apis/StagesApi.js +310 -0
- package/dist/esm/apis/AuthenticatorsApi.d.ts +145 -1
- package/dist/esm/apis/AuthenticatorsApi.js +459 -1
- package/dist/esm/apis/RbacApi.d.ts +4 -0
- package/dist/esm/apis/RbacApi.js +4 -0
- package/dist/esm/apis/SourcesApi.d.ts +1 -0
- package/dist/esm/apis/SourcesApi.js +3 -0
- package/dist/esm/apis/StagesApi.d.ts +99 -1
- package/dist/esm/apis/StagesApi.js +311 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AuthenticatorEmailChallenge.d.ts +72 -0
- package/dist/esm/models/AuthenticatorEmailChallenge.js +58 -0
- package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
- package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.js +45 -0
- package/dist/esm/models/AuthenticatorEmailStage.d.ts +153 -0
- package/dist/esm/models/AuthenticatorEmailStage.js +89 -0
- package/dist/esm/models/AuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/esm/models/AuthenticatorEmailStageRequest.js +74 -0
- package/dist/esm/models/ChallengeTypes.d.ts +3 -0
- package/dist/esm/models/ChallengeTypes.js +5 -0
- package/dist/esm/models/DeviceClassesEnum.d.ts +1 -0
- package/dist/esm/models/DeviceClassesEnum.js +1 -0
- package/dist/esm/models/EmailDevice.d.ts +51 -0
- package/dist/esm/models/EmailDevice.js +53 -0
- package/dist/esm/models/EmailDeviceRequest.d.ts +32 -0
- package/dist/esm/models/EmailDeviceRequest.js +43 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/ModelEnum.d.ts +2 -0
- package/dist/esm/models/ModelEnum.js +2 -0
- package/dist/esm/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
- package/dist/esm/models/PaginatedAuthenticatorEmailStageList.js +49 -0
- package/dist/esm/models/PaginatedEmailDeviceList.d.ts +40 -0
- package/dist/esm/models/PaginatedEmailDeviceList.js +49 -0
- package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.js +72 -0
- package/dist/esm/models/PatchedEmailDeviceRequest.d.ts +32 -0
- package/dist/esm/models/PatchedEmailDeviceRequest.js +41 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
- package/dist/models/AuthenticatorEmailChallenge.js +65 -0
- package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
- package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
- package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
- package/dist/models/AuthenticatorEmailStage.js +96 -0
- package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
- package/dist/models/ChallengeTypes.d.ts +3 -0
- package/dist/models/ChallengeTypes.js +5 -0
- package/dist/models/DeviceClassesEnum.d.ts +1 -0
- package/dist/models/DeviceClassesEnum.js +1 -0
- package/dist/models/EmailDevice.d.ts +51 -0
- package/dist/models/EmailDevice.js +60 -0
- package/dist/models/EmailDeviceRequest.d.ts +32 -0
- package/dist/models/EmailDeviceRequest.js +50 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/ModelEnum.d.ts +2 -0
- package/dist/models/ModelEnum.js +2 -0
- package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
- package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
- package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
- package/dist/models/PaginatedEmailDeviceList.js +56 -0
- package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
- package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
- package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
- package/dist/models/PatchedEmailDeviceRequest.js +48 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/AuthenticatorsApi.ts +617 -0
- package/src/apis/RbacApi.ts +4 -0
- package/src/apis/SourcesApi.ts +5 -0
- package/src/apis/StagesApi.ts +436 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/AuthenticatorEmailChallenge.ts +130 -0
- package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
- package/src/models/AuthenticatorEmailStage.ts +234 -0
- package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
- package/src/models/ChallengeTypes.ts +12 -1
- package/src/models/DeviceClassesEnum.ts +1 -0
- package/src/models/EmailDevice.ts +98 -0
- package/src/models/EmailDeviceRequest.ts +66 -0
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- package/src/models/ModelEnum.ts +2 -0
- package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
- package/src/models/PaginatedEmailDeviceList.ts +90 -0
- package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
- package/src/models/PatchedEmailDeviceRequest.ts +65 -0
- package/src/models/index.ts +10 -0
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { DeviceFromJSON, DuoDeviceFromJSON, DuoDeviceRequestToJSON, EndpointDeviceFromJSON, EndpointDeviceRequestToJSON, PaginatedDuoDeviceListFromJSON, PaginatedEndpointDeviceListFromJSON, PaginatedSMSDeviceListFromJSON, PaginatedStaticDeviceListFromJSON, PaginatedTOTPDeviceListFromJSON, PaginatedWebAuthnDeviceListFromJSON, PatchedDuoDeviceRequestToJSON, PatchedEndpointDeviceRequestToJSON, PatchedSMSDeviceRequestToJSON, PatchedStaticDeviceRequestToJSON, PatchedTOTPDeviceRequestToJSON, PatchedWebAuthnDeviceRequestToJSON, SMSDeviceFromJSON, SMSDeviceRequestToJSON, StaticDeviceFromJSON, StaticDeviceRequestToJSON, TOTPDeviceFromJSON, TOTPDeviceRequestToJSON, UsedByFromJSON, WebAuthnDeviceFromJSON, WebAuthnDeviceRequestToJSON, } from '../models/index';
|
|
24
|
+
import { DeviceFromJSON, DuoDeviceFromJSON, DuoDeviceRequestToJSON, EmailDeviceFromJSON, EmailDeviceRequestToJSON, EndpointDeviceFromJSON, EndpointDeviceRequestToJSON, PaginatedDuoDeviceListFromJSON, PaginatedEmailDeviceListFromJSON, PaginatedEndpointDeviceListFromJSON, PaginatedSMSDeviceListFromJSON, PaginatedStaticDeviceListFromJSON, PaginatedTOTPDeviceListFromJSON, PaginatedWebAuthnDeviceListFromJSON, PatchedDuoDeviceRequestToJSON, PatchedEmailDeviceRequestToJSON, PatchedEndpointDeviceRequestToJSON, PatchedSMSDeviceRequestToJSON, PatchedStaticDeviceRequestToJSON, PatchedTOTPDeviceRequestToJSON, PatchedWebAuthnDeviceRequestToJSON, SMSDeviceFromJSON, SMSDeviceRequestToJSON, StaticDeviceFromJSON, StaticDeviceRequestToJSON, TOTPDeviceFromJSON, TOTPDeviceRequestToJSON, UsedByFromJSON, WebAuthnDeviceFromJSON, WebAuthnDeviceRequestToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -291,6 +291,236 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
|
|
|
291
291
|
return yield response.value();
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Viewset for email authenticator devices (for admins)
|
|
296
|
+
*/
|
|
297
|
+
authenticatorsAdminEmailCreateRaw(requestParameters, initOverrides) {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
if (requestParameters['emailDeviceRequest'] == null) {
|
|
300
|
+
throw new runtime.RequiredError('emailDeviceRequest', 'Required parameter "emailDeviceRequest" was null or undefined when calling authenticatorsAdminEmailCreate().');
|
|
301
|
+
}
|
|
302
|
+
const queryParameters = {};
|
|
303
|
+
const headerParameters = {};
|
|
304
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
305
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
306
|
+
const token = this.configuration.accessToken;
|
|
307
|
+
const tokenString = yield token("authentik", []);
|
|
308
|
+
if (tokenString) {
|
|
309
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
const response = yield this.request({
|
|
313
|
+
path: `/authenticators/admin/email/`,
|
|
314
|
+
method: 'POST',
|
|
315
|
+
headers: headerParameters,
|
|
316
|
+
query: queryParameters,
|
|
317
|
+
body: EmailDeviceRequestToJSON(requestParameters['emailDeviceRequest']),
|
|
318
|
+
}, initOverrides);
|
|
319
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EmailDeviceFromJSON(jsonValue));
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Viewset for email authenticator devices (for admins)
|
|
324
|
+
*/
|
|
325
|
+
authenticatorsAdminEmailCreate(requestParameters, initOverrides) {
|
|
326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
const response = yield this.authenticatorsAdminEmailCreateRaw(requestParameters, initOverrides);
|
|
328
|
+
return yield response.value();
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Viewset for email authenticator devices (for admins)
|
|
333
|
+
*/
|
|
334
|
+
authenticatorsAdminEmailDestroyRaw(requestParameters, initOverrides) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
if (requestParameters['id'] == null) {
|
|
337
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling authenticatorsAdminEmailDestroy().');
|
|
338
|
+
}
|
|
339
|
+
const queryParameters = {};
|
|
340
|
+
const headerParameters = {};
|
|
341
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
342
|
+
const token = this.configuration.accessToken;
|
|
343
|
+
const tokenString = yield token("authentik", []);
|
|
344
|
+
if (tokenString) {
|
|
345
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
const response = yield this.request({
|
|
349
|
+
path: `/authenticators/admin/email/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
350
|
+
method: 'DELETE',
|
|
351
|
+
headers: headerParameters,
|
|
352
|
+
query: queryParameters,
|
|
353
|
+
}, initOverrides);
|
|
354
|
+
return new runtime.VoidApiResponse(response);
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Viewset for email authenticator devices (for admins)
|
|
359
|
+
*/
|
|
360
|
+
authenticatorsAdminEmailDestroy(requestParameters, initOverrides) {
|
|
361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
+
yield this.authenticatorsAdminEmailDestroyRaw(requestParameters, initOverrides);
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Viewset for email authenticator devices (for admins)
|
|
367
|
+
*/
|
|
368
|
+
authenticatorsAdminEmailListRaw(requestParameters, initOverrides) {
|
|
369
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
370
|
+
const queryParameters = {};
|
|
371
|
+
if (requestParameters['name'] != null) {
|
|
372
|
+
queryParameters['name'] = requestParameters['name'];
|
|
373
|
+
}
|
|
374
|
+
if (requestParameters['ordering'] != null) {
|
|
375
|
+
queryParameters['ordering'] = requestParameters['ordering'];
|
|
376
|
+
}
|
|
377
|
+
if (requestParameters['page'] != null) {
|
|
378
|
+
queryParameters['page'] = requestParameters['page'];
|
|
379
|
+
}
|
|
380
|
+
if (requestParameters['pageSize'] != null) {
|
|
381
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
382
|
+
}
|
|
383
|
+
if (requestParameters['search'] != null) {
|
|
384
|
+
queryParameters['search'] = requestParameters['search'];
|
|
385
|
+
}
|
|
386
|
+
const headerParameters = {};
|
|
387
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
388
|
+
const token = this.configuration.accessToken;
|
|
389
|
+
const tokenString = yield token("authentik", []);
|
|
390
|
+
if (tokenString) {
|
|
391
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
const response = yield this.request({
|
|
395
|
+
path: `/authenticators/admin/email/`,
|
|
396
|
+
method: 'GET',
|
|
397
|
+
headers: headerParameters,
|
|
398
|
+
query: queryParameters,
|
|
399
|
+
}, initOverrides);
|
|
400
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEmailDeviceListFromJSON(jsonValue));
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Viewset for email authenticator devices (for admins)
|
|
405
|
+
*/
|
|
406
|
+
authenticatorsAdminEmailList() {
|
|
407
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
408
|
+
const response = yield this.authenticatorsAdminEmailListRaw(requestParameters, initOverrides);
|
|
409
|
+
return yield response.value();
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Viewset for email authenticator devices (for admins)
|
|
414
|
+
*/
|
|
415
|
+
authenticatorsAdminEmailPartialUpdateRaw(requestParameters, initOverrides) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
if (requestParameters['id'] == null) {
|
|
418
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling authenticatorsAdminEmailPartialUpdate().');
|
|
419
|
+
}
|
|
420
|
+
const queryParameters = {};
|
|
421
|
+
const headerParameters = {};
|
|
422
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
423
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
424
|
+
const token = this.configuration.accessToken;
|
|
425
|
+
const tokenString = yield token("authentik", []);
|
|
426
|
+
if (tokenString) {
|
|
427
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
const response = yield this.request({
|
|
431
|
+
path: `/authenticators/admin/email/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
432
|
+
method: 'PATCH',
|
|
433
|
+
headers: headerParameters,
|
|
434
|
+
query: queryParameters,
|
|
435
|
+
body: PatchedEmailDeviceRequestToJSON(requestParameters['patchedEmailDeviceRequest']),
|
|
436
|
+
}, initOverrides);
|
|
437
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EmailDeviceFromJSON(jsonValue));
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Viewset for email authenticator devices (for admins)
|
|
442
|
+
*/
|
|
443
|
+
authenticatorsAdminEmailPartialUpdate(requestParameters, initOverrides) {
|
|
444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
445
|
+
const response = yield this.authenticatorsAdminEmailPartialUpdateRaw(requestParameters, initOverrides);
|
|
446
|
+
return yield response.value();
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Viewset for email authenticator devices (for admins)
|
|
451
|
+
*/
|
|
452
|
+
authenticatorsAdminEmailRetrieveRaw(requestParameters, initOverrides) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
454
|
+
if (requestParameters['id'] == null) {
|
|
455
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling authenticatorsAdminEmailRetrieve().');
|
|
456
|
+
}
|
|
457
|
+
const queryParameters = {};
|
|
458
|
+
const headerParameters = {};
|
|
459
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
460
|
+
const token = this.configuration.accessToken;
|
|
461
|
+
const tokenString = yield token("authentik", []);
|
|
462
|
+
if (tokenString) {
|
|
463
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
const response = yield this.request({
|
|
467
|
+
path: `/authenticators/admin/email/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
468
|
+
method: 'GET',
|
|
469
|
+
headers: headerParameters,
|
|
470
|
+
query: queryParameters,
|
|
471
|
+
}, initOverrides);
|
|
472
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EmailDeviceFromJSON(jsonValue));
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Viewset for email authenticator devices (for admins)
|
|
477
|
+
*/
|
|
478
|
+
authenticatorsAdminEmailRetrieve(requestParameters, initOverrides) {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
const response = yield this.authenticatorsAdminEmailRetrieveRaw(requestParameters, initOverrides);
|
|
481
|
+
return yield response.value();
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Viewset for email authenticator devices (for admins)
|
|
486
|
+
*/
|
|
487
|
+
authenticatorsAdminEmailUpdateRaw(requestParameters, initOverrides) {
|
|
488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
489
|
+
if (requestParameters['id'] == null) {
|
|
490
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling authenticatorsAdminEmailUpdate().');
|
|
491
|
+
}
|
|
492
|
+
if (requestParameters['emailDeviceRequest'] == null) {
|
|
493
|
+
throw new runtime.RequiredError('emailDeviceRequest', 'Required parameter "emailDeviceRequest" was null or undefined when calling authenticatorsAdminEmailUpdate().');
|
|
494
|
+
}
|
|
495
|
+
const queryParameters = {};
|
|
496
|
+
const headerParameters = {};
|
|
497
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
498
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
499
|
+
const token = this.configuration.accessToken;
|
|
500
|
+
const tokenString = yield token("authentik", []);
|
|
501
|
+
if (tokenString) {
|
|
502
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
const response = yield this.request({
|
|
506
|
+
path: `/authenticators/admin/email/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
507
|
+
method: 'PUT',
|
|
508
|
+
headers: headerParameters,
|
|
509
|
+
query: queryParameters,
|
|
510
|
+
body: EmailDeviceRequestToJSON(requestParameters['emailDeviceRequest']),
|
|
511
|
+
}, initOverrides);
|
|
512
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EmailDeviceFromJSON(jsonValue));
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Viewset for email authenticator devices (for admins)
|
|
517
|
+
*/
|
|
518
|
+
authenticatorsAdminEmailUpdate(requestParameters, initOverrides) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
520
|
+
const response = yield this.authenticatorsAdminEmailUpdateRaw(requestParameters, initOverrides);
|
|
521
|
+
return yield response.value();
|
|
522
|
+
});
|
|
523
|
+
}
|
|
294
524
|
/**
|
|
295
525
|
* Viewset for Endpoint authenticator devices (for admins)
|
|
296
526
|
*/
|
|
@@ -1701,6 +1931,234 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
|
|
|
1701
1931
|
return yield response.value();
|
|
1702
1932
|
});
|
|
1703
1933
|
}
|
|
1934
|
+
/**
|
|
1935
|
+
* Viewset for email authenticator devices
|
|
1936
|
+
*/
|
|
1937
|
+
authenticatorsEmailDestroyRaw(requestParameters, initOverrides) {
|
|
1938
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1939
|
+
if (requestParameters['id'] == null) {
|
|
1940
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling authenticatorsEmailDestroy().');
|
|
1941
|
+
}
|
|
1942
|
+
const queryParameters = {};
|
|
1943
|
+
const headerParameters = {};
|
|
1944
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1945
|
+
const token = this.configuration.accessToken;
|
|
1946
|
+
const tokenString = yield token("authentik", []);
|
|
1947
|
+
if (tokenString) {
|
|
1948
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
const response = yield this.request({
|
|
1952
|
+
path: `/authenticators/email/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1953
|
+
method: 'DELETE',
|
|
1954
|
+
headers: headerParameters,
|
|
1955
|
+
query: queryParameters,
|
|
1956
|
+
}, initOverrides);
|
|
1957
|
+
return new runtime.VoidApiResponse(response);
|
|
1958
|
+
});
|
|
1959
|
+
}
|
|
1960
|
+
/**
|
|
1961
|
+
* Viewset for email authenticator devices
|
|
1962
|
+
*/
|
|
1963
|
+
authenticatorsEmailDestroy(requestParameters, initOverrides) {
|
|
1964
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1965
|
+
yield this.authenticatorsEmailDestroyRaw(requestParameters, initOverrides);
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* Viewset for email authenticator devices
|
|
1970
|
+
*/
|
|
1971
|
+
authenticatorsEmailListRaw(requestParameters, initOverrides) {
|
|
1972
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1973
|
+
const queryParameters = {};
|
|
1974
|
+
if (requestParameters['name'] != null) {
|
|
1975
|
+
queryParameters['name'] = requestParameters['name'];
|
|
1976
|
+
}
|
|
1977
|
+
if (requestParameters['ordering'] != null) {
|
|
1978
|
+
queryParameters['ordering'] = requestParameters['ordering'];
|
|
1979
|
+
}
|
|
1980
|
+
if (requestParameters['page'] != null) {
|
|
1981
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1982
|
+
}
|
|
1983
|
+
if (requestParameters['pageSize'] != null) {
|
|
1984
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
1985
|
+
}
|
|
1986
|
+
if (requestParameters['search'] != null) {
|
|
1987
|
+
queryParameters['search'] = requestParameters['search'];
|
|
1988
|
+
}
|
|
1989
|
+
const headerParameters = {};
|
|
1990
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1991
|
+
const token = this.configuration.accessToken;
|
|
1992
|
+
const tokenString = yield token("authentik", []);
|
|
1993
|
+
if (tokenString) {
|
|
1994
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
const response = yield this.request({
|
|
1998
|
+
path: `/authenticators/email/`,
|
|
1999
|
+
method: 'GET',
|
|
2000
|
+
headers: headerParameters,
|
|
2001
|
+
query: queryParameters,
|
|
2002
|
+
}, initOverrides);
|
|
2003
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEmailDeviceListFromJSON(jsonValue));
|
|
2004
|
+
});
|
|
2005
|
+
}
|
|
2006
|
+
/**
|
|
2007
|
+
* Viewset for email authenticator devices
|
|
2008
|
+
*/
|
|
2009
|
+
authenticatorsEmailList() {
|
|
2010
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
2011
|
+
const response = yield this.authenticatorsEmailListRaw(requestParameters, initOverrides);
|
|
2012
|
+
return yield response.value();
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
2015
|
+
/**
|
|
2016
|
+
* Viewset for email authenticator devices
|
|
2017
|
+
*/
|
|
2018
|
+
authenticatorsEmailPartialUpdateRaw(requestParameters, initOverrides) {
|
|
2019
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2020
|
+
if (requestParameters['id'] == null) {
|
|
2021
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling authenticatorsEmailPartialUpdate().');
|
|
2022
|
+
}
|
|
2023
|
+
const queryParameters = {};
|
|
2024
|
+
const headerParameters = {};
|
|
2025
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2026
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2027
|
+
const token = this.configuration.accessToken;
|
|
2028
|
+
const tokenString = yield token("authentik", []);
|
|
2029
|
+
if (tokenString) {
|
|
2030
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
const response = yield this.request({
|
|
2034
|
+
path: `/authenticators/email/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
2035
|
+
method: 'PATCH',
|
|
2036
|
+
headers: headerParameters,
|
|
2037
|
+
query: queryParameters,
|
|
2038
|
+
body: PatchedEmailDeviceRequestToJSON(requestParameters['patchedEmailDeviceRequest']),
|
|
2039
|
+
}, initOverrides);
|
|
2040
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EmailDeviceFromJSON(jsonValue));
|
|
2041
|
+
});
|
|
2042
|
+
}
|
|
2043
|
+
/**
|
|
2044
|
+
* Viewset for email authenticator devices
|
|
2045
|
+
*/
|
|
2046
|
+
authenticatorsEmailPartialUpdate(requestParameters, initOverrides) {
|
|
2047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2048
|
+
const response = yield this.authenticatorsEmailPartialUpdateRaw(requestParameters, initOverrides);
|
|
2049
|
+
return yield response.value();
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
/**
|
|
2053
|
+
* Viewset for email authenticator devices
|
|
2054
|
+
*/
|
|
2055
|
+
authenticatorsEmailRetrieveRaw(requestParameters, initOverrides) {
|
|
2056
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2057
|
+
if (requestParameters['id'] == null) {
|
|
2058
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling authenticatorsEmailRetrieve().');
|
|
2059
|
+
}
|
|
2060
|
+
const queryParameters = {};
|
|
2061
|
+
const headerParameters = {};
|
|
2062
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2063
|
+
const token = this.configuration.accessToken;
|
|
2064
|
+
const tokenString = yield token("authentik", []);
|
|
2065
|
+
if (tokenString) {
|
|
2066
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
const response = yield this.request({
|
|
2070
|
+
path: `/authenticators/email/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
2071
|
+
method: 'GET',
|
|
2072
|
+
headers: headerParameters,
|
|
2073
|
+
query: queryParameters,
|
|
2074
|
+
}, initOverrides);
|
|
2075
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EmailDeviceFromJSON(jsonValue));
|
|
2076
|
+
});
|
|
2077
|
+
}
|
|
2078
|
+
/**
|
|
2079
|
+
* Viewset for email authenticator devices
|
|
2080
|
+
*/
|
|
2081
|
+
authenticatorsEmailRetrieve(requestParameters, initOverrides) {
|
|
2082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2083
|
+
const response = yield this.authenticatorsEmailRetrieveRaw(requestParameters, initOverrides);
|
|
2084
|
+
return yield response.value();
|
|
2085
|
+
});
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Viewset for email authenticator devices
|
|
2089
|
+
*/
|
|
2090
|
+
authenticatorsEmailUpdateRaw(requestParameters, initOverrides) {
|
|
2091
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2092
|
+
if (requestParameters['id'] == null) {
|
|
2093
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling authenticatorsEmailUpdate().');
|
|
2094
|
+
}
|
|
2095
|
+
if (requestParameters['emailDeviceRequest'] == null) {
|
|
2096
|
+
throw new runtime.RequiredError('emailDeviceRequest', 'Required parameter "emailDeviceRequest" was null or undefined when calling authenticatorsEmailUpdate().');
|
|
2097
|
+
}
|
|
2098
|
+
const queryParameters = {};
|
|
2099
|
+
const headerParameters = {};
|
|
2100
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2101
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2102
|
+
const token = this.configuration.accessToken;
|
|
2103
|
+
const tokenString = yield token("authentik", []);
|
|
2104
|
+
if (tokenString) {
|
|
2105
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
const response = yield this.request({
|
|
2109
|
+
path: `/authenticators/email/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
2110
|
+
method: 'PUT',
|
|
2111
|
+
headers: headerParameters,
|
|
2112
|
+
query: queryParameters,
|
|
2113
|
+
body: EmailDeviceRequestToJSON(requestParameters['emailDeviceRequest']),
|
|
2114
|
+
}, initOverrides);
|
|
2115
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EmailDeviceFromJSON(jsonValue));
|
|
2116
|
+
});
|
|
2117
|
+
}
|
|
2118
|
+
/**
|
|
2119
|
+
* Viewset for email authenticator devices
|
|
2120
|
+
*/
|
|
2121
|
+
authenticatorsEmailUpdate(requestParameters, initOverrides) {
|
|
2122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2123
|
+
const response = yield this.authenticatorsEmailUpdateRaw(requestParameters, initOverrides);
|
|
2124
|
+
return yield response.value();
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Get a list of all objects that use this object
|
|
2129
|
+
*/
|
|
2130
|
+
authenticatorsEmailUsedByListRaw(requestParameters, initOverrides) {
|
|
2131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2132
|
+
if (requestParameters['id'] == null) {
|
|
2133
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling authenticatorsEmailUsedByList().');
|
|
2134
|
+
}
|
|
2135
|
+
const queryParameters = {};
|
|
2136
|
+
const headerParameters = {};
|
|
2137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2138
|
+
const token = this.configuration.accessToken;
|
|
2139
|
+
const tokenString = yield token("authentik", []);
|
|
2140
|
+
if (tokenString) {
|
|
2141
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
const response = yield this.request({
|
|
2145
|
+
path: `/authenticators/email/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
2146
|
+
method: 'GET',
|
|
2147
|
+
headers: headerParameters,
|
|
2148
|
+
query: queryParameters,
|
|
2149
|
+
}, initOverrides);
|
|
2150
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
2151
|
+
});
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* Get a list of all objects that use this object
|
|
2155
|
+
*/
|
|
2156
|
+
authenticatorsEmailUsedByList(requestParameters, initOverrides) {
|
|
2157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2158
|
+
const response = yield this.authenticatorsEmailUsedByListRaw(requestParameters, initOverrides);
|
|
2159
|
+
return yield response.value();
|
|
2160
|
+
});
|
|
2161
|
+
}
|
|
1704
2162
|
/**
|
|
1705
2163
|
* Viewset for Endpoint authenticator devices
|
|
1706
2164
|
*/
|
|
@@ -403,6 +403,8 @@ export declare const RbacPermissionsAssignedByRolesListModelEnum: {
|
|
|
403
403
|
readonly AuthentikSourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
|
|
404
404
|
readonly AuthentikStagesAuthenticatorDuoAuthenticatorduostage: "authentik_stages_authenticator_duo.authenticatorduostage";
|
|
405
405
|
readonly AuthentikStagesAuthenticatorDuoDuodevice: "authentik_stages_authenticator_duo.duodevice";
|
|
406
|
+
readonly AuthentikStagesAuthenticatorEmailAuthenticatoremailstage: "authentik_stages_authenticator_email.authenticatoremailstage";
|
|
407
|
+
readonly AuthentikStagesAuthenticatorEmailEmaildevice: "authentik_stages_authenticator_email.emaildevice";
|
|
406
408
|
readonly AuthentikStagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: "authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage";
|
|
407
409
|
readonly AuthentikStagesAuthenticatorSmsAuthenticatorsmsstage: "authentik_stages_authenticator_sms.authenticatorsmsstage";
|
|
408
410
|
readonly AuthentikStagesAuthenticatorSmsSmsdevice: "authentik_stages_authenticator_sms.smsdevice";
|
|
@@ -507,6 +509,8 @@ export declare const RbacPermissionsAssignedByUsersListModelEnum: {
|
|
|
507
509
|
readonly AuthentikSourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
|
|
508
510
|
readonly AuthentikStagesAuthenticatorDuoAuthenticatorduostage: "authentik_stages_authenticator_duo.authenticatorduostage";
|
|
509
511
|
readonly AuthentikStagesAuthenticatorDuoDuodevice: "authentik_stages_authenticator_duo.duodevice";
|
|
512
|
+
readonly AuthentikStagesAuthenticatorEmailAuthenticatoremailstage: "authentik_stages_authenticator_email.authenticatoremailstage";
|
|
513
|
+
readonly AuthentikStagesAuthenticatorEmailEmaildevice: "authentik_stages_authenticator_email.emaildevice";
|
|
510
514
|
readonly AuthentikStagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: "authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage";
|
|
511
515
|
readonly AuthentikStagesAuthenticatorSmsAuthenticatorsmsstage: "authentik_stages_authenticator_sms.authenticatorsmsstage";
|
|
512
516
|
readonly AuthentikStagesAuthenticatorSmsSmsdevice: "authentik_stages_authenticator_sms.smsdevice";
|
package/dist/esm/apis/RbacApi.js
CHANGED
|
@@ -1102,6 +1102,8 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
1102
1102
|
AuthentikSourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|
|
1103
1103
|
AuthentikStagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
|
|
1104
1104
|
AuthentikStagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
|
|
1105
|
+
AuthentikStagesAuthenticatorEmailAuthenticatoremailstage: 'authentik_stages_authenticator_email.authenticatoremailstage',
|
|
1106
|
+
AuthentikStagesAuthenticatorEmailEmaildevice: 'authentik_stages_authenticator_email.emaildevice',
|
|
1105
1107
|
AuthentikStagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: 'authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage',
|
|
1106
1108
|
AuthentikStagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
|
|
1107
1109
|
AuthentikStagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
|
|
@@ -1205,6 +1207,8 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
1205
1207
|
AuthentikSourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|
|
1206
1208
|
AuthentikStagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
|
|
1207
1209
|
AuthentikStagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
|
|
1210
|
+
AuthentikStagesAuthenticatorEmailAuthenticatoremailstage: 'authentik_stages_authenticator_email.authenticatoremailstage',
|
|
1211
|
+
AuthentikStagesAuthenticatorEmailEmaildevice: 'authentik_stages_authenticator_email.emaildevice',
|
|
1208
1212
|
AuthentikStagesAuthenticatorEndpointGdtcAuthenticatorendpointgdtcstage: 'authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage',
|
|
1209
1213
|
AuthentikStagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
|
|
1210
1214
|
AuthentikStagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
|
|
@@ -81,6 +81,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
81
81
|
if (requestParameters['pageSize'] != null) {
|
|
82
82
|
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
83
83
|
}
|
|
84
|
+
if (requestParameters['pbmUuid'] != null) {
|
|
85
|
+
queryParameters['pbm_uuid'] = requestParameters['pbmUuid'];
|
|
86
|
+
}
|
|
84
87
|
if (requestParameters['search'] != null) {
|
|
85
88
|
queryParameters['search'] = requestParameters['search'];
|
|
86
89
|
}
|