@goauthentik/api 2025.10.0-rc1-1759846759 → 2025.10.0-rc1-1759854046

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2025.10.0-rc1-1759846759",
3
+ "version": "2025.10.0-rc1-1759854046",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -16,6 +16,7 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  GenericError,
19
+ GlobalTaskStatus,
19
20
  PaginatedScheduleList,
20
21
  PaginatedTaskList,
21
22
  PatchedScheduleRequest,
@@ -28,6 +29,8 @@ import type {
28
29
  import {
29
30
  GenericErrorFromJSON,
30
31
  GenericErrorToJSON,
32
+ GlobalTaskStatusFromJSON,
33
+ GlobalTaskStatusToJSON,
31
34
  PaginatedScheduleListFromJSON,
32
35
  PaginatedScheduleListToJSON,
33
36
  PaginatedTaskListFromJSON,
@@ -536,6 +539,43 @@ export class TasksApi extends runtime.BaseAPI {
536
539
  await this.tasksTasksRetryCreateRaw(requestParameters, initOverrides);
537
540
  }
538
541
 
542
+ /**
543
+ * Global status summary for all tasks
544
+ */
545
+ async tasksTasksStatusRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GlobalTaskStatus>> {
546
+ const queryParameters: any = {};
547
+
548
+ const headerParameters: runtime.HTTPHeaders = {};
549
+
550
+ if (this.configuration && this.configuration.accessToken) {
551
+ const token = this.configuration.accessToken;
552
+ const tokenString = await token("authentik", []);
553
+
554
+ if (tokenString) {
555
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
556
+ }
557
+ }
558
+
559
+ let urlPath = `/tasks/tasks/status/`;
560
+
561
+ const response = await this.request({
562
+ path: urlPath,
563
+ method: 'GET',
564
+ headers: headerParameters,
565
+ query: queryParameters,
566
+ }, initOverrides);
567
+
568
+ return new runtime.JSONApiResponse(response, (jsonValue) => GlobalTaskStatusFromJSON(jsonValue));
569
+ }
570
+
571
+ /**
572
+ * Global status summary for all tasks
573
+ */
574
+ async tasksTasksStatusRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GlobalTaskStatus> {
575
+ const response = await this.tasksTasksStatusRetrieveRaw(initOverrides);
576
+ return await response.value();
577
+ }
578
+
539
579
  /**
540
580
  * Get currently connected worker count.
541
581
  */
@@ -0,0 +1,137 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2025.10.0-rc1
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GlobalTaskStatus
20
+ */
21
+ export interface GlobalTaskStatus {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof GlobalTaskStatus
26
+ */
27
+ readonly queued: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof GlobalTaskStatus
32
+ */
33
+ readonly consumed: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof GlobalTaskStatus
38
+ */
39
+ readonly preprocess: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof GlobalTaskStatus
44
+ */
45
+ readonly running: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof GlobalTaskStatus
50
+ */
51
+ readonly postprocess: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof GlobalTaskStatus
56
+ */
57
+ readonly rejected: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof GlobalTaskStatus
62
+ */
63
+ readonly done: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof GlobalTaskStatus
68
+ */
69
+ readonly info: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof GlobalTaskStatus
74
+ */
75
+ readonly warning: number;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof GlobalTaskStatus
80
+ */
81
+ readonly error: number;
82
+ }
83
+
84
+ /**
85
+ * Check if a given object implements the GlobalTaskStatus interface.
86
+ */
87
+ export function instanceOfGlobalTaskStatus(value: object): value is GlobalTaskStatus {
88
+ if (!('queued' in value) || value['queued'] === undefined) return false;
89
+ if (!('consumed' in value) || value['consumed'] === undefined) return false;
90
+ if (!('preprocess' in value) || value['preprocess'] === undefined) return false;
91
+ if (!('running' in value) || value['running'] === undefined) return false;
92
+ if (!('postprocess' in value) || value['postprocess'] === undefined) return false;
93
+ if (!('rejected' in value) || value['rejected'] === undefined) return false;
94
+ if (!('done' in value) || value['done'] === undefined) return false;
95
+ if (!('info' in value) || value['info'] === undefined) return false;
96
+ if (!('warning' in value) || value['warning'] === undefined) return false;
97
+ if (!('error' in value) || value['error'] === undefined) return false;
98
+ return true;
99
+ }
100
+
101
+ export function GlobalTaskStatusFromJSON(json: any): GlobalTaskStatus {
102
+ return GlobalTaskStatusFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function GlobalTaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalTaskStatus {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'queued': json['queued'],
112
+ 'consumed': json['consumed'],
113
+ 'preprocess': json['preprocess'],
114
+ 'running': json['running'],
115
+ 'postprocess': json['postprocess'],
116
+ 'rejected': json['rejected'],
117
+ 'done': json['done'],
118
+ 'info': json['info'],
119
+ 'warning': json['warning'],
120
+ 'error': json['error'],
121
+ };
122
+ }
123
+
124
+ export function GlobalTaskStatusToJSON(json: any): GlobalTaskStatus {
125
+ return GlobalTaskStatusToJSONTyped(json, false);
126
+ }
127
+
128
+ export function GlobalTaskStatusToJSONTyped(value?: Omit<GlobalTaskStatus, 'queued'|'consumed'|'preprocess'|'running'|'postprocess'|'rejected'|'done'|'info'|'warning'|'error'> | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ };
136
+ }
137
+
@@ -167,6 +167,7 @@ export * from './GenericError';
167
167
  export * from './GeoIPPolicy';
168
168
  export * from './GeoIPPolicyRequest';
169
169
  export * from './GeoipBindingEnum';
170
+ export * from './GlobalTaskStatus';
170
171
  export * from './GoogleWorkspaceProvider';
171
172
  export * from './GoogleWorkspaceProviderGroup';
172
173
  export * from './GoogleWorkspaceProviderGroupRequest';