@goauthentik/api 2023.10.6-1706092584 → 2023.10.6-1706533149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +3 -2
  2. package/dist/apis/AdminApi.d.ts +1 -31
  3. package/dist/apis/AdminApi.js +0 -89
  4. package/dist/apis/EventsApi.d.ts +51 -1
  5. package/dist/apis/EventsApi.js +121 -1
  6. package/dist/apis/ProvidersApi.d.ts +2 -0
  7. package/dist/apis/ProvidersApi.js +6 -0
  8. package/dist/apis/RbacApi.d.ts +0 -8
  9. package/dist/apis/RbacApi.js +0 -8
  10. package/dist/esm/apis/AdminApi.d.ts +1 -31
  11. package/dist/esm/apis/AdminApi.js +1 -90
  12. package/dist/esm/apis/EventsApi.d.ts +51 -1
  13. package/dist/esm/apis/EventsApi.js +121 -1
  14. package/dist/esm/apis/ProvidersApi.d.ts +2 -0
  15. package/dist/esm/apis/ProvidersApi.js +6 -0
  16. package/dist/esm/apis/RbacApi.d.ts +0 -8
  17. package/dist/esm/apis/RbacApi.js +0 -8
  18. package/dist/esm/models/LDAPSyncStatus.d.ts +3 -3
  19. package/dist/esm/models/LDAPSyncStatus.js +2 -2
  20. package/dist/esm/models/ModelEnum.d.ts +1 -9
  21. package/dist/esm/models/ModelEnum.js +1 -9
  22. package/dist/esm/models/PaginatedSystemTaskList.d.ts +39 -0
  23. package/dist/esm/models/PaginatedSystemTaskList.js +48 -0
  24. package/dist/esm/models/SCIMSyncStatus.d.ts +3 -3
  25. package/dist/esm/models/SCIMSyncStatus.js +2 -2
  26. package/dist/esm/models/SystemTask.d.ts +86 -0
  27. package/dist/esm/models/SystemTask.js +66 -0
  28. package/dist/esm/models/SystemTaskStatusEnum.d.ts +29 -0
  29. package/dist/esm/models/SystemTaskStatusEnum.js +36 -0
  30. package/dist/esm/models/UsedByActionEnum.d.ts +8 -8
  31. package/dist/esm/models/UsedByActionEnum.js +8 -8
  32. package/dist/esm/models/index.d.ts +3 -2
  33. package/dist/esm/models/index.js +3 -2
  34. package/dist/models/LDAPSyncStatus.d.ts +3 -3
  35. package/dist/models/LDAPSyncStatus.js +2 -2
  36. package/dist/models/ModelEnum.d.ts +1 -9
  37. package/dist/models/ModelEnum.js +1 -9
  38. package/dist/models/PaginatedSystemTaskList.d.ts +39 -0
  39. package/dist/models/PaginatedSystemTaskList.js +55 -0
  40. package/dist/models/SCIMSyncStatus.d.ts +3 -3
  41. package/dist/models/SCIMSyncStatus.js +2 -2
  42. package/dist/models/SystemTask.d.ts +86 -0
  43. package/dist/models/SystemTask.js +73 -0
  44. package/dist/models/SystemTaskStatusEnum.d.ts +29 -0
  45. package/dist/models/SystemTaskStatusEnum.js +42 -0
  46. package/dist/models/UsedByActionEnum.d.ts +8 -8
  47. package/dist/models/UsedByActionEnum.js +8 -8
  48. package/dist/models/index.d.ts +3 -2
  49. package/dist/models/index.js +3 -2
  50. package/package.json +1 -1
  51. package/src/apis/AdminApi.ts +0 -108
  52. package/src/apis/EventsApi.ts +160 -0
  53. package/src/apis/ProvidersApi.ts +10 -0
  54. package/src/apis/RbacApi.ts +0 -8
  55. package/src/models/LDAPSyncStatus.ts +8 -8
  56. package/src/models/ModelEnum.ts +1 -9
  57. package/src/models/PaginatedSystemTaskList.ts +88 -0
  58. package/src/models/SCIMSyncStatus.ts +8 -8
  59. package/src/models/SystemTask.ts +148 -0
  60. package/src/models/SystemTaskStatusEnum.ts +44 -0
  61. package/src/models/UsedByActionEnum.ts +8 -8
  62. package/src/models/index.ts +3 -2
  63. package/dist/esm/models/Task.d.ts +0 -62
  64. package/dist/esm/models/Task.js +0 -58
  65. package/dist/esm/models/TaskStatusEnum.d.ts +0 -29
  66. package/dist/esm/models/TaskStatusEnum.js +0 -36
  67. package/dist/models/Task.d.ts +0 -62
  68. package/dist/models/Task.js +0 -65
  69. package/dist/models/TaskStatusEnum.d.ts +0 -29
  70. package/dist/models/TaskStatusEnum.js +0 -42
  71. package/src/models/Task.ts +0 -117
  72. package/src/models/TaskStatusEnum.ts +0 -44
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.6
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ import { SystemTaskStatusEnumFromJSON, SystemTaskStatusEnumToJSON, } from './SystemTaskStatusEnum';
16
+ /**
17
+ * Check if a given object implements the SystemTask interface.
18
+ */
19
+ export function instanceOfSystemTask(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "uuid" in value;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "fullName" in value;
24
+ isInstance = isInstance && "description" in value;
25
+ isInstance = isInstance && "startTimestamp" in value;
26
+ isInstance = isInstance && "finishTimestamp" in value;
27
+ isInstance = isInstance && "duration" in value;
28
+ isInstance = isInstance && "status" in value;
29
+ isInstance = isInstance && "messages" in value;
30
+ return isInstance;
31
+ }
32
+ export function SystemTaskFromJSON(json) {
33
+ return SystemTaskFromJSONTyped(json, false);
34
+ }
35
+ export function SystemTaskFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'uuid': json['uuid'],
41
+ 'name': json['name'],
42
+ 'fullName': json['full_name'],
43
+ 'uid': !exists(json, 'uid') ? undefined : json['uid'],
44
+ 'description': json['description'],
45
+ 'startTimestamp': (new Date(json['start_timestamp'])),
46
+ 'finishTimestamp': (new Date(json['finish_timestamp'])),
47
+ 'duration': json['duration'],
48
+ 'status': SystemTaskStatusEnumFromJSON(json['status']),
49
+ 'messages': json['messages'],
50
+ };
51
+ }
52
+ export function SystemTaskToJSON(value) {
53
+ if (value === undefined) {
54
+ return undefined;
55
+ }
56
+ if (value === null) {
57
+ return null;
58
+ }
59
+ return {
60
+ 'name': value.name,
61
+ 'uid': value.uid,
62
+ 'description': value.description,
63
+ 'status': SystemTaskStatusEnumToJSON(value.status),
64
+ 'messages': value.messages,
65
+ };
66
+ }
@@ -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,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.6
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * * `unknown` - UNKNOWN
16
+ * * `successful` - SUCCESSFUL
17
+ * * `warning` - WARNING
18
+ * * `error` - ERROR
19
+ * @export
20
+ */
21
+ export const SystemTaskStatusEnum = {
22
+ Unknown: 'unknown',
23
+ Successful: 'successful',
24
+ Warning: 'warning',
25
+ Error: 'error',
26
+ UnknownDefaultOpenApi: '11184809'
27
+ };
28
+ export function SystemTaskStatusEnumFromJSON(json) {
29
+ return SystemTaskStatusEnumFromJSONTyped(json, false);
30
+ }
31
+ export function SystemTaskStatusEnumFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ export function SystemTaskStatusEnumToJSON(value) {
35
+ return value;
36
+ }
@@ -10,17 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * * `CASCADE` - CASCADE
14
- * * `CASCADE_MANY` - CASCADE_MANY
15
- * * `SET_NULL` - SET_NULL
16
- * * `SET_DEFAULT` - SET_DEFAULT
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: "CASCADE";
21
- readonly CascadeMany: "CASCADE_MANY";
22
- readonly SetNull: "SET_NULL";
23
- readonly SetDefault: "SET_DEFAULT";
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];
@@ -12,17 +12,17 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * * `CASCADE` - CASCADE
16
- * * `CASCADE_MANY` - CASCADE_MANY
17
- * * `SET_NULL` - SET_NULL
18
- * * `SET_DEFAULT` - SET_DEFAULT
15
+ * * `cascade` - CASCADE
16
+ * * `cascade_many` - CASCADE_MANY
17
+ * * `set_null` - SET_NULL
18
+ * * `set_default` - SET_DEFAULT
19
19
  * @export
20
20
  */
21
21
  export const UsedByActionEnum = {
22
- Cascade: 'CASCADE',
23
- CascadeMany: 'CASCADE_MANY',
24
- SetNull: 'SET_NULL',
25
- SetDefault: 'SET_DEFAULT',
22
+ Cascade: 'cascade',
23
+ CascadeMany: 'cascade_many',
24
+ SetNull: 'set_null',
25
+ SetDefault: 'set_default',
26
26
  UnknownDefaultOpenApi: '11184809'
27
27
  };
28
28
  export function UsedByActionEnumFromJSON(json) {
@@ -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';
@@ -284,6 +284,7 @@ export * from './PaginatedServiceConnectionList';
284
284
  export * from './PaginatedSourceList';
285
285
  export * from './PaginatedStageList';
286
286
  export * from './PaginatedStaticDeviceList';
287
+ export * from './PaginatedSystemTaskList';
287
288
  export * from './PaginatedTOTPDeviceList';
288
289
  export * from './PaginatedTenantList';
289
290
  export * from './PaginatedTokenList';
@@ -476,10 +477,10 @@ export * from './StaticDeviceTokenRequest';
476
477
  export * from './SubModeEnum';
477
478
  export * from './SystemInfo';
478
479
  export * from './SystemInfoRuntime';
480
+ export * from './SystemTask';
481
+ export * from './SystemTaskStatusEnum';
479
482
  export * from './TOTPDevice';
480
483
  export * from './TOTPDeviceRequest';
481
- export * from './Task';
482
- export * from './TaskStatusEnum';
483
484
  export * from './Tenant';
484
485
  export * from './TenantAdminGroupRequestRequest';
485
486
  export * from './TenantRecoveryKeyRequestRequest';
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Task } from './Task';
12
+ import type { SystemTask } from './SystemTask';
13
13
  /**
14
14
  * LDAP Source sync status
15
15
  * @export
@@ -24,10 +24,10 @@ export interface LDAPSyncStatus {
24
24
  readonly isRunning: boolean;
25
25
  /**
26
26
  *
27
- * @type {Array<Task>}
27
+ * @type {Array<SystemTask>}
28
28
  * @memberof LDAPSyncStatus
29
29
  */
30
- readonly tasks: Array<Task>;
30
+ readonly tasks: Array<SystemTask>;
31
31
  }
32
32
  /**
33
33
  * Check if a given object implements the LDAPSyncStatus interface.
@@ -14,7 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LDAPSyncStatusToJSON = exports.LDAPSyncStatusFromJSONTyped = exports.LDAPSyncStatusFromJSON = exports.instanceOfLDAPSyncStatus = void 0;
17
- const Task_1 = require("./Task");
17
+ const SystemTask_1 = require("./SystemTask");
18
18
  /**
19
19
  * Check if a given object implements the LDAPSyncStatus interface.
20
20
  */
@@ -35,7 +35,7 @@ function LDAPSyncStatusFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'isRunning': json['is_running'],
38
- 'tasks': (json['tasks'].map(Task_1.TaskFromJSON)),
38
+ 'tasks': (json['tasks'].map(SystemTask_1.SystemTaskFromJSON)),
39
39
  };
40
40
  }
41
41
  exports.LDAPSyncStatusFromJSONTyped = LDAPSyncStatusFromJSONTyped;
@@ -28,14 +28,10 @@
28
28
  * * `authentik_policies_expression.expressionpolicy` - Expression Policy
29
29
  * * `authentik_policies_password.passwordpolicy` - Password Policy
30
30
  * * `authentik_policies_reputation.reputationpolicy` - Reputation Policy
31
- * * `authentik_policies_reputation.reputation` - Reputation Score
32
31
  * * `authentik_policies.policybinding` - Policy Binding
33
32
  * * `authentik_providers_ldap.ldapprovider` - LDAP Provider
34
33
  * * `authentik_providers_oauth2.scopemapping` - Scope Mapping
35
34
  * * `authentik_providers_oauth2.oauth2provider` - OAuth2/OpenID Provider
36
- * * `authentik_providers_oauth2.authorizationcode` - Authorization Code
37
- * * `authentik_providers_oauth2.accesstoken` - OAuth2 Access Token
38
- * * `authentik_providers_oauth2.refreshtoken` - OAuth2 Refresh Token
39
35
  * * `authentik_providers_proxy.proxyprovider` - Proxy Provider
40
36
  * * `authentik_providers_radius.radiusprovider` - Radius Provider
41
37
  * * `authentik_providers_saml.samlprovider` - SAML Provider
@@ -55,7 +51,7 @@
55
51
  * * `authentik_stages_authenticator_duo.duodevice` - Duo Device
56
52
  * * `authentik_stages_authenticator_sms.authenticatorsmsstage` - SMS Authenticator Setup Stage
57
53
  * * `authentik_stages_authenticator_sms.smsdevice` - SMS Device
58
- * * `authentik_stages_authenticator_static.authenticatorstaticstage` - Static Authenticator Stage
54
+ * * `authentik_stages_authenticator_static.authenticatorstaticstage` - Static Authenticator Setup Stage
59
55
  * * `authentik_stages_authenticator_static.staticdevice` - Static Device
60
56
  * * `authentik_stages_authenticator_totp.authenticatortotpstage` - TOTP Authenticator Setup Stage
61
57
  * * `authentik_stages_authenticator_totp.totpdevice` - TOTP Device
@@ -109,14 +105,10 @@ export declare const ModelEnum: {
109
105
  readonly PoliciesExpressionExpressionpolicy: "authentik_policies_expression.expressionpolicy";
110
106
  readonly PoliciesPasswordPasswordpolicy: "authentik_policies_password.passwordpolicy";
111
107
  readonly PoliciesReputationReputationpolicy: "authentik_policies_reputation.reputationpolicy";
112
- readonly PoliciesReputationReputation: "authentik_policies_reputation.reputation";
113
108
  readonly PoliciesPolicybinding: "authentik_policies.policybinding";
114
109
  readonly ProvidersLdapLdapprovider: "authentik_providers_ldap.ldapprovider";
115
110
  readonly ProvidersOauth2Scopemapping: "authentik_providers_oauth2.scopemapping";
116
111
  readonly ProvidersOauth2Oauth2provider: "authentik_providers_oauth2.oauth2provider";
117
- readonly ProvidersOauth2Authorizationcode: "authentik_providers_oauth2.authorizationcode";
118
- readonly ProvidersOauth2Accesstoken: "authentik_providers_oauth2.accesstoken";
119
- readonly ProvidersOauth2Refreshtoken: "authentik_providers_oauth2.refreshtoken";
120
112
  readonly ProvidersProxyProxyprovider: "authentik_providers_proxy.proxyprovider";
121
113
  readonly ProvidersRadiusRadiusprovider: "authentik_providers_radius.radiusprovider";
122
114
  readonly ProvidersSamlSamlprovider: "authentik_providers_saml.samlprovider";
@@ -33,14 +33,10 @@ exports.ModelEnumToJSON = exports.ModelEnumFromJSONTyped = exports.ModelEnumFrom
33
33
  * * `authentik_policies_expression.expressionpolicy` - Expression Policy
34
34
  * * `authentik_policies_password.passwordpolicy` - Password Policy
35
35
  * * `authentik_policies_reputation.reputationpolicy` - Reputation Policy
36
- * * `authentik_policies_reputation.reputation` - Reputation Score
37
36
  * * `authentik_policies.policybinding` - Policy Binding
38
37
  * * `authentik_providers_ldap.ldapprovider` - LDAP Provider
39
38
  * * `authentik_providers_oauth2.scopemapping` - Scope Mapping
40
39
  * * `authentik_providers_oauth2.oauth2provider` - OAuth2/OpenID Provider
41
- * * `authentik_providers_oauth2.authorizationcode` - Authorization Code
42
- * * `authentik_providers_oauth2.accesstoken` - OAuth2 Access Token
43
- * * `authentik_providers_oauth2.refreshtoken` - OAuth2 Refresh Token
44
40
  * * `authentik_providers_proxy.proxyprovider` - Proxy Provider
45
41
  * * `authentik_providers_radius.radiusprovider` - Radius Provider
46
42
  * * `authentik_providers_saml.samlprovider` - SAML Provider
@@ -60,7 +56,7 @@ exports.ModelEnumToJSON = exports.ModelEnumFromJSONTyped = exports.ModelEnumFrom
60
56
  * * `authentik_stages_authenticator_duo.duodevice` - Duo Device
61
57
  * * `authentik_stages_authenticator_sms.authenticatorsmsstage` - SMS Authenticator Setup Stage
62
58
  * * `authentik_stages_authenticator_sms.smsdevice` - SMS Device
63
- * * `authentik_stages_authenticator_static.authenticatorstaticstage` - Static Authenticator Stage
59
+ * * `authentik_stages_authenticator_static.authenticatorstaticstage` - Static Authenticator Setup Stage
64
60
  * * `authentik_stages_authenticator_static.staticdevice` - Static Device
65
61
  * * `authentik_stages_authenticator_totp.authenticatortotpstage` - TOTP Authenticator Setup Stage
66
62
  * * `authentik_stages_authenticator_totp.totpdevice` - TOTP Device
@@ -114,14 +110,10 @@ exports.ModelEnum = {
114
110
  PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
115
111
  PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
116
112
  PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
117
- PoliciesReputationReputation: 'authentik_policies_reputation.reputation',
118
113
  PoliciesPolicybinding: 'authentik_policies.policybinding',
119
114
  ProvidersLdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
120
115
  ProvidersOauth2Scopemapping: 'authentik_providers_oauth2.scopemapping',
121
116
  ProvidersOauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
122
- ProvidersOauth2Authorizationcode: 'authentik_providers_oauth2.authorizationcode',
123
- ProvidersOauth2Accesstoken: 'authentik_providers_oauth2.accesstoken',
124
- ProvidersOauth2Refreshtoken: 'authentik_providers_oauth2.refreshtoken',
125
117
  ProvidersProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
126
118
  ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
127
119
  ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
@@ -0,0 +1,39 @@
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
+ import type { Pagination } from './Pagination';
13
+ import type { SystemTask } from './SystemTask';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedSystemTaskList
18
+ */
19
+ export interface PaginatedSystemTaskList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedSystemTaskList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<SystemTask>}
29
+ * @memberof PaginatedSystemTaskList
30
+ */
31
+ results: Array<SystemTask>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedSystemTaskList interface.
35
+ */
36
+ export declare function instanceOfPaginatedSystemTaskList(value: object): boolean;
37
+ export declare function PaginatedSystemTaskListFromJSON(json: any): PaginatedSystemTaskList;
38
+ export declare function PaginatedSystemTaskListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSystemTaskList;
39
+ export declare function PaginatedSystemTaskListToJSON(value?: PaginatedSystemTaskList | null): any;
@@ -0,0 +1,55 @@
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.PaginatedSystemTaskListToJSON = exports.PaginatedSystemTaskListFromJSONTyped = exports.PaginatedSystemTaskListFromJSON = exports.instanceOfPaginatedSystemTaskList = void 0;
17
+ const Pagination_1 = require("./Pagination");
18
+ const SystemTask_1 = require("./SystemTask");
19
+ /**
20
+ * Check if a given object implements the PaginatedSystemTaskList interface.
21
+ */
22
+ function instanceOfPaginatedSystemTaskList(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "pagination" in value;
25
+ isInstance = isInstance && "results" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfPaginatedSystemTaskList = instanceOfPaginatedSystemTaskList;
29
+ function PaginatedSystemTaskListFromJSON(json) {
30
+ return PaginatedSystemTaskListFromJSONTyped(json, false);
31
+ }
32
+ exports.PaginatedSystemTaskListFromJSON = PaginatedSystemTaskListFromJSON;
33
+ function PaginatedSystemTaskListFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
39
+ 'results': (json['results'].map(SystemTask_1.SystemTaskFromJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedSystemTaskListFromJSONTyped = PaginatedSystemTaskListFromJSONTyped;
43
+ function PaginatedSystemTaskListToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
52
+ 'results': (value.results.map(SystemTask_1.SystemTaskToJSON)),
53
+ };
54
+ }
55
+ exports.PaginatedSystemTaskListToJSON = PaginatedSystemTaskListToJSON;
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Task } from './Task';
12
+ import type { SystemTask } from './SystemTask';
13
13
  /**
14
14
  * SCIM Provider sync status
15
15
  * @export
@@ -24,10 +24,10 @@ export interface SCIMSyncStatus {
24
24
  readonly isRunning: boolean;
25
25
  /**
26
26
  *
27
- * @type {Array<Task>}
27
+ * @type {Array<SystemTask>}
28
28
  * @memberof SCIMSyncStatus
29
29
  */
30
- readonly tasks: Array<Task>;
30
+ readonly tasks: Array<SystemTask>;
31
31
  }
32
32
  /**
33
33
  * Check if a given object implements the SCIMSyncStatus interface.
@@ -14,7 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SCIMSyncStatusToJSON = exports.SCIMSyncStatusFromJSONTyped = exports.SCIMSyncStatusFromJSON = exports.instanceOfSCIMSyncStatus = void 0;
17
- const Task_1 = require("./Task");
17
+ const SystemTask_1 = require("./SystemTask");
18
18
  /**
19
19
  * Check if a given object implements the SCIMSyncStatus interface.
20
20
  */
@@ -35,7 +35,7 @@ function SCIMSyncStatusFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'isRunning': json['is_running'],
38
- 'tasks': (json['tasks'].map(Task_1.TaskFromJSON)),
38
+ 'tasks': (json['tasks'].map(SystemTask_1.SystemTaskFromJSON)),
39
39
  };
40
40
  }
41
41
  exports.SCIMSyncStatusFromJSONTyped = SCIMSyncStatusFromJSONTyped;
@@ -0,0 +1,86 @@
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
+ import type { SystemTaskStatusEnum } from './SystemTaskStatusEnum';
13
+ /**
14
+ * Serialize TaskInfo and TaskResult
15
+ * @export
16
+ * @interface SystemTask
17
+ */
18
+ export interface SystemTask {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SystemTask
23
+ */
24
+ readonly uuid: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SystemTask
29
+ */
30
+ name: string;
31
+ /**
32
+ * Get full name with UID
33
+ * @type {string}
34
+ * @memberof SystemTask
35
+ */
36
+ readonly fullName: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SystemTask
41
+ */
42
+ uid?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SystemTask
47
+ */
48
+ description: string;
49
+ /**
50
+ * Timestamp when the task started
51
+ * @type {Date}
52
+ * @memberof SystemTask
53
+ */
54
+ readonly startTimestamp: Date;
55
+ /**
56
+ * Timestamp when the task finished
57
+ * @type {Date}
58
+ * @memberof SystemTask
59
+ */
60
+ readonly finishTimestamp: Date;
61
+ /**
62
+ * Get the duration a task took to run
63
+ * @type {number}
64
+ * @memberof SystemTask
65
+ */
66
+ readonly duration: number;
67
+ /**
68
+ *
69
+ * @type {SystemTaskStatusEnum}
70
+ * @memberof SystemTask
71
+ */
72
+ status: SystemTaskStatusEnum;
73
+ /**
74
+ *
75
+ * @type {Array<string>}
76
+ * @memberof SystemTask
77
+ */
78
+ messages: Array<string>;
79
+ }
80
+ /**
81
+ * Check if a given object implements the SystemTask interface.
82
+ */
83
+ export declare function instanceOfSystemTask(value: object): boolean;
84
+ export declare function SystemTaskFromJSON(json: any): SystemTask;
85
+ export declare function SystemTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemTask;
86
+ export declare function SystemTaskToJSON(value?: SystemTask | null): any;
@@ -0,0 +1,73 @@
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.SystemTaskToJSON = exports.SystemTaskFromJSONTyped = exports.SystemTaskFromJSON = exports.instanceOfSystemTask = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const SystemTaskStatusEnum_1 = require("./SystemTaskStatusEnum");
19
+ /**
20
+ * Check if a given object implements the SystemTask interface.
21
+ */
22
+ function instanceOfSystemTask(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "uuid" in value;
25
+ isInstance = isInstance && "name" in value;
26
+ isInstance = isInstance && "fullName" in value;
27
+ isInstance = isInstance && "description" in value;
28
+ isInstance = isInstance && "startTimestamp" in value;
29
+ isInstance = isInstance && "finishTimestamp" in value;
30
+ isInstance = isInstance && "duration" in value;
31
+ isInstance = isInstance && "status" in value;
32
+ isInstance = isInstance && "messages" in value;
33
+ return isInstance;
34
+ }
35
+ exports.instanceOfSystemTask = instanceOfSystemTask;
36
+ function SystemTaskFromJSON(json) {
37
+ return SystemTaskFromJSONTyped(json, false);
38
+ }
39
+ exports.SystemTaskFromJSON = SystemTaskFromJSON;
40
+ function SystemTaskFromJSONTyped(json, ignoreDiscriminator) {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'uuid': json['uuid'],
46
+ 'name': json['name'],
47
+ 'fullName': json['full_name'],
48
+ 'uid': !(0, runtime_1.exists)(json, 'uid') ? undefined : json['uid'],
49
+ 'description': json['description'],
50
+ 'startTimestamp': (new Date(json['start_timestamp'])),
51
+ 'finishTimestamp': (new Date(json['finish_timestamp'])),
52
+ 'duration': json['duration'],
53
+ 'status': (0, SystemTaskStatusEnum_1.SystemTaskStatusEnumFromJSON)(json['status']),
54
+ 'messages': json['messages'],
55
+ };
56
+ }
57
+ exports.SystemTaskFromJSONTyped = SystemTaskFromJSONTyped;
58
+ function SystemTaskToJSON(value) {
59
+ if (value === undefined) {
60
+ return undefined;
61
+ }
62
+ if (value === null) {
63
+ return null;
64
+ }
65
+ return {
66
+ 'name': value.name,
67
+ 'uid': value.uid,
68
+ 'description': value.description,
69
+ 'status': (0, SystemTaskStatusEnum_1.SystemTaskStatusEnumToJSON)(value.status),
70
+ 'messages': value.messages,
71
+ };
72
+ }
73
+ exports.SystemTaskToJSON = SystemTaskToJSON;