@goauthentik/api 2023.10.6-1706092584 → 2023.10.6-1706113408
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 +3 -2
- package/dist/apis/AdminApi.d.ts +1 -31
- package/dist/apis/AdminApi.js +0 -89
- package/dist/apis/EventsApi.d.ts +51 -1
- package/dist/apis/EventsApi.js +121 -1
- package/dist/apis/RbacApi.d.ts +0 -8
- package/dist/apis/RbacApi.js +0 -8
- package/dist/esm/apis/AdminApi.d.ts +1 -31
- package/dist/esm/apis/AdminApi.js +1 -90
- package/dist/esm/apis/EventsApi.d.ts +51 -1
- package/dist/esm/apis/EventsApi.js +121 -1
- package/dist/esm/apis/RbacApi.d.ts +0 -8
- package/dist/esm/apis/RbacApi.js +0 -8
- package/dist/esm/models/LDAPSyncStatus.d.ts +3 -3
- package/dist/esm/models/LDAPSyncStatus.js +2 -2
- package/dist/esm/models/ModelEnum.d.ts +1 -9
- package/dist/esm/models/ModelEnum.js +1 -9
- package/dist/esm/models/PaginatedSystemTaskList.d.ts +39 -0
- package/dist/esm/models/PaginatedSystemTaskList.js +48 -0
- package/dist/esm/models/SCIMSyncStatus.d.ts +3 -3
- package/dist/esm/models/SCIMSyncStatus.js +2 -2
- package/dist/esm/models/SystemTask.d.ts +86 -0
- package/dist/esm/models/SystemTask.js +66 -0
- package/dist/esm/models/SystemTaskStatusEnum.d.ts +29 -0
- package/dist/esm/models/SystemTaskStatusEnum.js +36 -0
- package/dist/esm/models/UsedByActionEnum.d.ts +8 -8
- package/dist/esm/models/UsedByActionEnum.js +8 -8
- package/dist/esm/models/index.d.ts +3 -2
- package/dist/esm/models/index.js +3 -2
- package/dist/models/LDAPSyncStatus.d.ts +3 -3
- package/dist/models/LDAPSyncStatus.js +2 -2
- package/dist/models/ModelEnum.d.ts +1 -9
- package/dist/models/ModelEnum.js +1 -9
- package/dist/models/PaginatedSystemTaskList.d.ts +39 -0
- package/dist/models/PaginatedSystemTaskList.js +55 -0
- package/dist/models/SCIMSyncStatus.d.ts +3 -3
- package/dist/models/SCIMSyncStatus.js +2 -2
- package/dist/models/SystemTask.d.ts +86 -0
- package/dist/models/SystemTask.js +73 -0
- package/dist/models/SystemTaskStatusEnum.d.ts +29 -0
- package/dist/models/SystemTaskStatusEnum.js +42 -0
- package/dist/models/UsedByActionEnum.d.ts +8 -8
- package/dist/models/UsedByActionEnum.js +8 -8
- package/dist/models/index.d.ts +3 -2
- package/dist/models/index.js +3 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +0 -108
- package/src/apis/EventsApi.ts +160 -0
- package/src/apis/RbacApi.ts +0 -8
- package/src/models/LDAPSyncStatus.ts +8 -8
- package/src/models/ModelEnum.ts +1 -9
- package/src/models/PaginatedSystemTaskList.ts +88 -0
- package/src/models/SCIMSyncStatus.ts +8 -8
- package/src/models/SystemTask.ts +148 -0
- package/src/models/SystemTaskStatusEnum.ts +44 -0
- package/src/models/UsedByActionEnum.ts +8 -8
- package/src/models/index.ts +3 -2
- package/dist/esm/models/Task.d.ts +0 -62
- package/dist/esm/models/Task.js +0 -58
- package/dist/esm/models/TaskStatusEnum.d.ts +0 -29
- package/dist/esm/models/TaskStatusEnum.js +0 -36
- package/dist/models/Task.d.ts +0 -62
- package/dist/models/Task.js +0 -65
- package/dist/models/TaskStatusEnum.d.ts +0 -29
- package/dist/models/TaskStatusEnum.js +0 -42
- package/src/models/Task.ts +0 -117
- package/src/models/TaskStatusEnum.ts +0 -44
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* * `unknown` - UNKNOWN
|
|
14
|
+
* * `successful` - SUCCESSFUL
|
|
15
|
+
* * `warning` - WARNING
|
|
16
|
+
* * `error` - ERROR
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const SystemTaskStatusEnum: {
|
|
20
|
+
readonly Unknown: "unknown";
|
|
21
|
+
readonly Successful: "successful";
|
|
22
|
+
readonly Warning: "warning";
|
|
23
|
+
readonly Error: "error";
|
|
24
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
25
|
+
};
|
|
26
|
+
export type SystemTaskStatusEnum = typeof SystemTaskStatusEnum[keyof typeof SystemTaskStatusEnum];
|
|
27
|
+
export declare function SystemTaskStatusEnumFromJSON(json: any): SystemTaskStatusEnum;
|
|
28
|
+
export declare function SystemTaskStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemTaskStatusEnum;
|
|
29
|
+
export declare function SystemTaskStatusEnumToJSON(value?: SystemTaskStatusEnum | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SystemTaskStatusEnumToJSON = exports.SystemTaskStatusEnumFromJSONTyped = exports.SystemTaskStatusEnumFromJSON = exports.SystemTaskStatusEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* * `unknown` - UNKNOWN
|
|
19
|
+
* * `successful` - SUCCESSFUL
|
|
20
|
+
* * `warning` - WARNING
|
|
21
|
+
* * `error` - ERROR
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.SystemTaskStatusEnum = {
|
|
25
|
+
Unknown: 'unknown',
|
|
26
|
+
Successful: 'successful',
|
|
27
|
+
Warning: 'warning',
|
|
28
|
+
Error: 'error',
|
|
29
|
+
UnknownDefaultOpenApi: '11184809'
|
|
30
|
+
};
|
|
31
|
+
function SystemTaskStatusEnumFromJSON(json) {
|
|
32
|
+
return SystemTaskStatusEnumFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.SystemTaskStatusEnumFromJSON = SystemTaskStatusEnumFromJSON;
|
|
35
|
+
function SystemTaskStatusEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
exports.SystemTaskStatusEnumFromJSONTyped = SystemTaskStatusEnumFromJSONTyped;
|
|
39
|
+
function SystemTaskStatusEnumToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
exports.SystemTaskStatusEnumToJSON = SystemTaskStatusEnumToJSON;
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* * `
|
|
14
|
-
* * `
|
|
15
|
-
* * `
|
|
16
|
-
* * `
|
|
13
|
+
* * `cascade` - CASCADE
|
|
14
|
+
* * `cascade_many` - CASCADE_MANY
|
|
15
|
+
* * `set_null` - SET_NULL
|
|
16
|
+
* * `set_default` - SET_DEFAULT
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
19
|
export declare const UsedByActionEnum: {
|
|
20
|
-
readonly Cascade: "
|
|
21
|
-
readonly CascadeMany: "
|
|
22
|
-
readonly SetNull: "
|
|
23
|
-
readonly SetDefault: "
|
|
20
|
+
readonly Cascade: "cascade";
|
|
21
|
+
readonly CascadeMany: "cascade_many";
|
|
22
|
+
readonly SetNull: "set_null";
|
|
23
|
+
readonly SetDefault: "set_default";
|
|
24
24
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
25
25
|
};
|
|
26
26
|
export type UsedByActionEnum = typeof UsedByActionEnum[keyof typeof UsedByActionEnum];
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UsedByActionEnumToJSON = exports.UsedByActionEnumFromJSONTyped = exports.UsedByActionEnumFromJSON = exports.UsedByActionEnum = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* * `
|
|
19
|
-
* * `
|
|
20
|
-
* * `
|
|
21
|
-
* * `
|
|
18
|
+
* * `cascade` - CASCADE
|
|
19
|
+
* * `cascade_many` - CASCADE_MANY
|
|
20
|
+
* * `set_null` - SET_NULL
|
|
21
|
+
* * `set_default` - SET_DEFAULT
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
24
24
|
exports.UsedByActionEnum = {
|
|
25
|
-
Cascade: '
|
|
26
|
-
CascadeMany: '
|
|
27
|
-
SetNull: '
|
|
28
|
-
SetDefault: '
|
|
25
|
+
Cascade: 'cascade',
|
|
26
|
+
CascadeMany: 'cascade_many',
|
|
27
|
+
SetNull: 'set_null',
|
|
28
|
+
SetDefault: 'set_default',
|
|
29
29
|
UnknownDefaultOpenApi: '11184809'
|
|
30
30
|
};
|
|
31
31
|
function UsedByActionEnumFromJSON(json) {
|
package/dist/models/index.d.ts
CHANGED
|
@@ -282,6 +282,7 @@ export * from './PaginatedServiceConnectionList';
|
|
|
282
282
|
export * from './PaginatedSourceList';
|
|
283
283
|
export * from './PaginatedStageList';
|
|
284
284
|
export * from './PaginatedStaticDeviceList';
|
|
285
|
+
export * from './PaginatedSystemTaskList';
|
|
285
286
|
export * from './PaginatedTOTPDeviceList';
|
|
286
287
|
export * from './PaginatedTenantList';
|
|
287
288
|
export * from './PaginatedTokenList';
|
|
@@ -474,10 +475,10 @@ export * from './StaticDeviceTokenRequest';
|
|
|
474
475
|
export * from './SubModeEnum';
|
|
475
476
|
export * from './SystemInfo';
|
|
476
477
|
export * from './SystemInfoRuntime';
|
|
478
|
+
export * from './SystemTask';
|
|
479
|
+
export * from './SystemTaskStatusEnum';
|
|
477
480
|
export * from './TOTPDevice';
|
|
478
481
|
export * from './TOTPDeviceRequest';
|
|
479
|
-
export * from './Task';
|
|
480
|
-
export * from './TaskStatusEnum';
|
|
481
482
|
export * from './Tenant';
|
|
482
483
|
export * from './TenantAdminGroupRequestRequest';
|
|
483
484
|
export * from './TenantRecoveryKeyRequestRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -300,6 +300,7 @@ __exportStar(require("./PaginatedServiceConnectionList"), exports);
|
|
|
300
300
|
__exportStar(require("./PaginatedSourceList"), exports);
|
|
301
301
|
__exportStar(require("./PaginatedStageList"), exports);
|
|
302
302
|
__exportStar(require("./PaginatedStaticDeviceList"), exports);
|
|
303
|
+
__exportStar(require("./PaginatedSystemTaskList"), exports);
|
|
303
304
|
__exportStar(require("./PaginatedTOTPDeviceList"), exports);
|
|
304
305
|
__exportStar(require("./PaginatedTenantList"), exports);
|
|
305
306
|
__exportStar(require("./PaginatedTokenList"), exports);
|
|
@@ -492,10 +493,10 @@ __exportStar(require("./StaticDeviceTokenRequest"), exports);
|
|
|
492
493
|
__exportStar(require("./SubModeEnum"), exports);
|
|
493
494
|
__exportStar(require("./SystemInfo"), exports);
|
|
494
495
|
__exportStar(require("./SystemInfoRuntime"), exports);
|
|
496
|
+
__exportStar(require("./SystemTask"), exports);
|
|
497
|
+
__exportStar(require("./SystemTaskStatusEnum"), exports);
|
|
495
498
|
__exportStar(require("./TOTPDevice"), exports);
|
|
496
499
|
__exportStar(require("./TOTPDeviceRequest"), exports);
|
|
497
|
-
__exportStar(require("./Task"), exports);
|
|
498
|
-
__exportStar(require("./TaskStatusEnum"), exports);
|
|
499
500
|
__exportStar(require("./Tenant"), exports);
|
|
500
501
|
__exportStar(require("./TenantAdminGroupRequestRequest"), exports);
|
|
501
502
|
__exportStar(require("./TenantRecoveryKeyRequestRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -22,7 +22,6 @@ import type {
|
|
|
22
22
|
Settings,
|
|
23
23
|
SettingsRequest,
|
|
24
24
|
SystemInfo,
|
|
25
|
-
Task,
|
|
26
25
|
ValidationError,
|
|
27
26
|
Version,
|
|
28
27
|
Workers,
|
|
@@ -42,8 +41,6 @@ import {
|
|
|
42
41
|
SettingsRequestToJSON,
|
|
43
42
|
SystemInfoFromJSON,
|
|
44
43
|
SystemInfoToJSON,
|
|
45
|
-
TaskFromJSON,
|
|
46
|
-
TaskToJSON,
|
|
47
44
|
ValidationErrorFromJSON,
|
|
48
45
|
ValidationErrorToJSON,
|
|
49
46
|
VersionFromJSON,
|
|
@@ -60,14 +57,6 @@ export interface AdminSettingsUpdateRequest {
|
|
|
60
57
|
settingsRequest?: SettingsRequest;
|
|
61
58
|
}
|
|
62
59
|
|
|
63
|
-
export interface AdminSystemTasksRetrieveRequest {
|
|
64
|
-
id: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface AdminSystemTasksRetryCreateRequest {
|
|
68
|
-
id: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
60
|
/**
|
|
72
61
|
*
|
|
73
62
|
*/
|
|
@@ -319,103 +308,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
319
308
|
return await response.value();
|
|
320
309
|
}
|
|
321
310
|
|
|
322
|
-
/**
|
|
323
|
-
* List system tasks
|
|
324
|
-
*/
|
|
325
|
-
async adminSystemTasksListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Task>>> {
|
|
326
|
-
const queryParameters: any = {};
|
|
327
|
-
|
|
328
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
329
|
-
|
|
330
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
331
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
const response = await this.request({
|
|
335
|
-
path: `/admin/system_tasks/`,
|
|
336
|
-
method: 'GET',
|
|
337
|
-
headers: headerParameters,
|
|
338
|
-
query: queryParameters,
|
|
339
|
-
}, initOverrides);
|
|
340
|
-
|
|
341
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TaskFromJSON));
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* List system tasks
|
|
346
|
-
*/
|
|
347
|
-
async adminSystemTasksList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Task>> {
|
|
348
|
-
const response = await this.adminSystemTasksListRaw(initOverrides);
|
|
349
|
-
return await response.value();
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Get a single system task
|
|
354
|
-
*/
|
|
355
|
-
async adminSystemTasksRetrieveRaw(requestParameters: AdminSystemTasksRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Task>> {
|
|
356
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
357
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling adminSystemTasksRetrieve.');
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
const queryParameters: any = {};
|
|
361
|
-
|
|
362
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
363
|
-
|
|
364
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
365
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
const response = await this.request({
|
|
369
|
-
path: `/admin/system_tasks/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
370
|
-
method: 'GET',
|
|
371
|
-
headers: headerParameters,
|
|
372
|
-
query: queryParameters,
|
|
373
|
-
}, initOverrides);
|
|
374
|
-
|
|
375
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => TaskFromJSON(jsonValue));
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Get a single system task
|
|
380
|
-
*/
|
|
381
|
-
async adminSystemTasksRetrieve(requestParameters: AdminSystemTasksRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Task> {
|
|
382
|
-
const response = await this.adminSystemTasksRetrieveRaw(requestParameters, initOverrides);
|
|
383
|
-
return await response.value();
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Retry task
|
|
388
|
-
*/
|
|
389
|
-
async adminSystemTasksRetryCreateRaw(requestParameters: AdminSystemTasksRetryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
390
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
391
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling adminSystemTasksRetryCreate.');
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
const queryParameters: any = {};
|
|
395
|
-
|
|
396
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
397
|
-
|
|
398
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
399
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
const response = await this.request({
|
|
403
|
-
path: `/admin/system_tasks/{id}/retry/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
404
|
-
method: 'POST',
|
|
405
|
-
headers: headerParameters,
|
|
406
|
-
query: queryParameters,
|
|
407
|
-
}, initOverrides);
|
|
408
|
-
|
|
409
|
-
return new runtime.VoidApiResponse(response);
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* Retry task
|
|
414
|
-
*/
|
|
415
|
-
async adminSystemTasksRetryCreate(requestParameters: AdminSystemTasksRetryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
416
|
-
await this.adminSystemTasksRetryCreateRaw(requestParameters, initOverrides);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
311
|
/**
|
|
420
312
|
* Get running and latest version.
|
|
421
313
|
*/
|
package/src/apis/EventsApi.ts
CHANGED
|
@@ -31,10 +31,12 @@ import type {
|
|
|
31
31
|
PaginatedNotificationList,
|
|
32
32
|
PaginatedNotificationRuleList,
|
|
33
33
|
PaginatedNotificationTransportList,
|
|
34
|
+
PaginatedSystemTaskList,
|
|
34
35
|
PatchedEventRequest,
|
|
35
36
|
PatchedNotificationRequest,
|
|
36
37
|
PatchedNotificationRuleRequest,
|
|
37
38
|
PatchedNotificationTransportRequest,
|
|
39
|
+
SystemTask,
|
|
38
40
|
TypeCreate,
|
|
39
41
|
UsedBy,
|
|
40
42
|
ValidationError,
|
|
@@ -72,6 +74,8 @@ import {
|
|
|
72
74
|
PaginatedNotificationRuleListToJSON,
|
|
73
75
|
PaginatedNotificationTransportListFromJSON,
|
|
74
76
|
PaginatedNotificationTransportListToJSON,
|
|
77
|
+
PaginatedSystemTaskListFromJSON,
|
|
78
|
+
PaginatedSystemTaskListToJSON,
|
|
75
79
|
PatchedEventRequestFromJSON,
|
|
76
80
|
PatchedEventRequestToJSON,
|
|
77
81
|
PatchedNotificationRequestFromJSON,
|
|
@@ -80,6 +84,8 @@ import {
|
|
|
80
84
|
PatchedNotificationRuleRequestToJSON,
|
|
81
85
|
PatchedNotificationTransportRequestFromJSON,
|
|
82
86
|
PatchedNotificationTransportRequestToJSON,
|
|
87
|
+
SystemTaskFromJSON,
|
|
88
|
+
SystemTaskToJSON,
|
|
83
89
|
TypeCreateFromJSON,
|
|
84
90
|
TypeCreateToJSON,
|
|
85
91
|
UsedByFromJSON,
|
|
@@ -219,6 +225,24 @@ export interface EventsRulesUsedByListRequest {
|
|
|
219
225
|
pbmUuid: string;
|
|
220
226
|
}
|
|
221
227
|
|
|
228
|
+
export interface EventsSystemTasksListRequest {
|
|
229
|
+
name?: string;
|
|
230
|
+
ordering?: string;
|
|
231
|
+
page?: number;
|
|
232
|
+
pageSize?: number;
|
|
233
|
+
search?: string;
|
|
234
|
+
status?: EventsSystemTasksListStatusEnum;
|
|
235
|
+
uid?: string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface EventsSystemTasksRetrieveRequest {
|
|
239
|
+
uuid: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface EventsSystemTasksRunCreateRequest {
|
|
243
|
+
uuid: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
222
246
|
export interface EventsTransportsCreateRequest {
|
|
223
247
|
notificationTransportRequest: NotificationTransportRequest;
|
|
224
248
|
}
|
|
@@ -1249,6 +1273,131 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1249
1273
|
return await response.value();
|
|
1250
1274
|
}
|
|
1251
1275
|
|
|
1276
|
+
/**
|
|
1277
|
+
* Read-only view set that returns all background tasks
|
|
1278
|
+
*/
|
|
1279
|
+
async eventsSystemTasksListRaw(requestParameters: EventsSystemTasksListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSystemTaskList>> {
|
|
1280
|
+
const queryParameters: any = {};
|
|
1281
|
+
|
|
1282
|
+
if (requestParameters.name !== undefined) {
|
|
1283
|
+
queryParameters['name'] = requestParameters.name;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
if (requestParameters.ordering !== undefined) {
|
|
1287
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
if (requestParameters.page !== undefined) {
|
|
1291
|
+
queryParameters['page'] = requestParameters.page;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
if (requestParameters.pageSize !== undefined) {
|
|
1295
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
if (requestParameters.search !== undefined) {
|
|
1299
|
+
queryParameters['search'] = requestParameters.search;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
if (requestParameters.status !== undefined) {
|
|
1303
|
+
queryParameters['status'] = requestParameters.status;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
if (requestParameters.uid !== undefined) {
|
|
1307
|
+
queryParameters['uid'] = requestParameters.uid;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1311
|
+
|
|
1312
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1313
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
const response = await this.request({
|
|
1317
|
+
path: `/events/system_tasks/`,
|
|
1318
|
+
method: 'GET',
|
|
1319
|
+
headers: headerParameters,
|
|
1320
|
+
query: queryParameters,
|
|
1321
|
+
}, initOverrides);
|
|
1322
|
+
|
|
1323
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSystemTaskListFromJSON(jsonValue));
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
/**
|
|
1327
|
+
* Read-only view set that returns all background tasks
|
|
1328
|
+
*/
|
|
1329
|
+
async eventsSystemTasksList(requestParameters: EventsSystemTasksListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSystemTaskList> {
|
|
1330
|
+
const response = await this.eventsSystemTasksListRaw(requestParameters, initOverrides);
|
|
1331
|
+
return await response.value();
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Read-only view set that returns all background tasks
|
|
1336
|
+
*/
|
|
1337
|
+
async eventsSystemTasksRetrieveRaw(requestParameters: EventsSystemTasksRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemTask>> {
|
|
1338
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
1339
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling eventsSystemTasksRetrieve.');
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
const queryParameters: any = {};
|
|
1343
|
+
|
|
1344
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1345
|
+
|
|
1346
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1347
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
const response = await this.request({
|
|
1351
|
+
path: `/events/system_tasks/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1352
|
+
method: 'GET',
|
|
1353
|
+
headers: headerParameters,
|
|
1354
|
+
query: queryParameters,
|
|
1355
|
+
}, initOverrides);
|
|
1356
|
+
|
|
1357
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SystemTaskFromJSON(jsonValue));
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Read-only view set that returns all background tasks
|
|
1362
|
+
*/
|
|
1363
|
+
async eventsSystemTasksRetrieve(requestParameters: EventsSystemTasksRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemTask> {
|
|
1364
|
+
const response = await this.eventsSystemTasksRetrieveRaw(requestParameters, initOverrides);
|
|
1365
|
+
return await response.value();
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Run task
|
|
1370
|
+
*/
|
|
1371
|
+
async eventsSystemTasksRunCreateRaw(requestParameters: EventsSystemTasksRunCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1372
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
1373
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling eventsSystemTasksRunCreate.');
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
const queryParameters: any = {};
|
|
1377
|
+
|
|
1378
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1379
|
+
|
|
1380
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1381
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
const response = await this.request({
|
|
1385
|
+
path: `/events/system_tasks/{uuid}/run/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1386
|
+
method: 'POST',
|
|
1387
|
+
headers: headerParameters,
|
|
1388
|
+
query: queryParameters,
|
|
1389
|
+
}, initOverrides);
|
|
1390
|
+
|
|
1391
|
+
return new runtime.VoidApiResponse(response);
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* Run task
|
|
1396
|
+
*/
|
|
1397
|
+
async eventsSystemTasksRunCreate(requestParameters: EventsSystemTasksRunCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1398
|
+
await this.eventsSystemTasksRunCreateRaw(requestParameters, initOverrides);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1252
1401
|
/**
|
|
1253
1402
|
* NotificationTransport Viewset
|
|
1254
1403
|
*/
|
|
@@ -1583,6 +1732,17 @@ export const EventsRulesListSeverityEnum = {
|
|
|
1583
1732
|
UnknownDefaultOpenApi: '11184809'
|
|
1584
1733
|
} as const;
|
|
1585
1734
|
export type EventsRulesListSeverityEnum = typeof EventsRulesListSeverityEnum[keyof typeof EventsRulesListSeverityEnum];
|
|
1735
|
+
/**
|
|
1736
|
+
* @export
|
|
1737
|
+
*/
|
|
1738
|
+
export const EventsSystemTasksListStatusEnum = {
|
|
1739
|
+
Error: 'error',
|
|
1740
|
+
Successful: 'successful',
|
|
1741
|
+
Unknown: 'unknown',
|
|
1742
|
+
Warning: 'warning',
|
|
1743
|
+
UnknownDefaultOpenApi: '11184809'
|
|
1744
|
+
} as const;
|
|
1745
|
+
export type EventsSystemTasksListStatusEnum = typeof EventsSystemTasksListStatusEnum[keyof typeof EventsSystemTasksListStatusEnum];
|
|
1586
1746
|
/**
|
|
1587
1747
|
* @export
|
|
1588
1748
|
*/
|
package/src/apis/RbacApi.ts
CHANGED
|
@@ -945,13 +945,9 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
945
945
|
PoliciesExpiryPasswordexpirypolicy: 'authentik_policies_expiry.passwordexpirypolicy',
|
|
946
946
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
|
947
947
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
|
948
|
-
PoliciesReputationReputation: 'authentik_policies_reputation.reputation',
|
|
949
948
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
|
950
949
|
ProvidersLdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
|
|
951
|
-
ProvidersOauth2Accesstoken: 'authentik_providers_oauth2.accesstoken',
|
|
952
|
-
ProvidersOauth2Authorizationcode: 'authentik_providers_oauth2.authorizationcode',
|
|
953
950
|
ProvidersOauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
|
|
954
|
-
ProvidersOauth2Refreshtoken: 'authentik_providers_oauth2.refreshtoken',
|
|
955
951
|
ProvidersOauth2Scopemapping: 'authentik_providers_oauth2.scopemapping',
|
|
956
952
|
ProvidersProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
|
|
957
953
|
ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
|
|
@@ -1030,13 +1026,9 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
1030
1026
|
PoliciesExpiryPasswordexpirypolicy: 'authentik_policies_expiry.passwordexpirypolicy',
|
|
1031
1027
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
|
1032
1028
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
|
1033
|
-
PoliciesReputationReputation: 'authentik_policies_reputation.reputation',
|
|
1034
1029
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
|
1035
1030
|
ProvidersLdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
|
|
1036
|
-
ProvidersOauth2Accesstoken: 'authentik_providers_oauth2.accesstoken',
|
|
1037
|
-
ProvidersOauth2Authorizationcode: 'authentik_providers_oauth2.authorizationcode',
|
|
1038
1031
|
ProvidersOauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
|
|
1039
|
-
ProvidersOauth2Refreshtoken: 'authentik_providers_oauth2.refreshtoken',
|
|
1040
1032
|
ProvidersOauth2Scopemapping: 'authentik_providers_oauth2.scopemapping',
|
|
1041
1033
|
ProvidersProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
|
|
1042
1034
|
ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { SystemTask } from './SystemTask';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
SystemTaskFromJSON,
|
|
19
|
+
SystemTaskFromJSONTyped,
|
|
20
|
+
SystemTaskToJSON,
|
|
21
|
+
} from './SystemTask';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* LDAP Source sync status
|
|
@@ -34,10 +34,10 @@ export interface LDAPSyncStatus {
|
|
|
34
34
|
readonly isRunning: boolean;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {Array<
|
|
37
|
+
* @type {Array<SystemTask>}
|
|
38
38
|
* @memberof LDAPSyncStatus
|
|
39
39
|
*/
|
|
40
|
-
readonly tasks: Array<
|
|
40
|
+
readonly tasks: Array<SystemTask>;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -62,7 +62,7 @@ export function LDAPSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
62
62
|
return {
|
|
63
63
|
|
|
64
64
|
'isRunning': json['is_running'],
|
|
65
|
-
'tasks': ((json['tasks'] as Array<any>).map(
|
|
65
|
+
'tasks': ((json['tasks'] as Array<any>).map(SystemTaskFromJSON)),
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
|
package/src/models/ModelEnum.ts
CHANGED
|
@@ -32,14 +32,10 @@
|
|
|
32
32
|
* * `authentik_policies_expression.expressionpolicy` - Expression Policy
|
|
33
33
|
* * `authentik_policies_password.passwordpolicy` - Password Policy
|
|
34
34
|
* * `authentik_policies_reputation.reputationpolicy` - Reputation Policy
|
|
35
|
-
* * `authentik_policies_reputation.reputation` - Reputation Score
|
|
36
35
|
* * `authentik_policies.policybinding` - Policy Binding
|
|
37
36
|
* * `authentik_providers_ldap.ldapprovider` - LDAP Provider
|
|
38
37
|
* * `authentik_providers_oauth2.scopemapping` - Scope Mapping
|
|
39
38
|
* * `authentik_providers_oauth2.oauth2provider` - OAuth2/OpenID Provider
|
|
40
|
-
* * `authentik_providers_oauth2.authorizationcode` - Authorization Code
|
|
41
|
-
* * `authentik_providers_oauth2.accesstoken` - OAuth2 Access Token
|
|
42
|
-
* * `authentik_providers_oauth2.refreshtoken` - OAuth2 Refresh Token
|
|
43
39
|
* * `authentik_providers_proxy.proxyprovider` - Proxy Provider
|
|
44
40
|
* * `authentik_providers_radius.radiusprovider` - Radius Provider
|
|
45
41
|
* * `authentik_providers_saml.samlprovider` - SAML Provider
|
|
@@ -59,7 +55,7 @@
|
|
|
59
55
|
* * `authentik_stages_authenticator_duo.duodevice` - Duo Device
|
|
60
56
|
* * `authentik_stages_authenticator_sms.authenticatorsmsstage` - SMS Authenticator Setup Stage
|
|
61
57
|
* * `authentik_stages_authenticator_sms.smsdevice` - SMS Device
|
|
62
|
-
* * `authentik_stages_authenticator_static.authenticatorstaticstage` - Static Authenticator Stage
|
|
58
|
+
* * `authentik_stages_authenticator_static.authenticatorstaticstage` - Static Authenticator Setup Stage
|
|
63
59
|
* * `authentik_stages_authenticator_static.staticdevice` - Static Device
|
|
64
60
|
* * `authentik_stages_authenticator_totp.authenticatortotpstage` - TOTP Authenticator Setup Stage
|
|
65
61
|
* * `authentik_stages_authenticator_totp.totpdevice` - TOTP Device
|
|
@@ -113,14 +109,10 @@ export const ModelEnum = {
|
|
|
113
109
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
|
114
110
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
|
115
111
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
|
116
|
-
PoliciesReputationReputation: 'authentik_policies_reputation.reputation',
|
|
117
112
|
PoliciesPolicybinding: 'authentik_policies.policybinding',
|
|
118
113
|
ProvidersLdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
|
|
119
114
|
ProvidersOauth2Scopemapping: 'authentik_providers_oauth2.scopemapping',
|
|
120
115
|
ProvidersOauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
|
|
121
|
-
ProvidersOauth2Authorizationcode: 'authentik_providers_oauth2.authorizationcode',
|
|
122
|
-
ProvidersOauth2Accesstoken: 'authentik_providers_oauth2.accesstoken',
|
|
123
|
-
ProvidersOauth2Refreshtoken: 'authentik_providers_oauth2.refreshtoken',
|
|
124
116
|
ProvidersProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
|
|
125
117
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
|
126
118
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|