@goauthentik/api 2025.6.1-1749435349 → 2025.6.1-1749515784
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 +1 -3
- package/dist/apis/AdminApi.d.ts +1 -9
- package/dist/apis/AdminApi.d.ts.map +1 -1
- package/dist/apis/AdminApi.js +1 -29
- package/dist/apis/AdminApi.js.map +1 -1
- package/dist/apis/CoreApi.d.ts +1 -23
- package/dist/apis/CoreApi.d.ts.map +1 -1
- package/dist/apis/CoreApi.js +1 -63
- package/dist/apis/CoreApi.js.map +1 -1
- package/dist/apis/EventsApi.d.ts +74 -15
- package/dist/apis/EventsApi.d.ts.map +1 -1
- package/dist/apis/EventsApi.js +77 -36
- package/dist/apis/EventsApi.js.map +1 -1
- package/dist/esm/apis/AdminApi.d.ts +1 -9
- package/dist/esm/apis/AdminApi.d.ts.map +1 -1
- package/dist/esm/apis/AdminApi.js +1 -29
- package/dist/esm/apis/AdminApi.js.map +1 -1
- package/dist/esm/apis/CoreApi.d.ts +1 -23
- package/dist/esm/apis/CoreApi.d.ts.map +1 -1
- package/dist/esm/apis/CoreApi.js +1 -63
- package/dist/esm/apis/CoreApi.js.map +1 -1
- package/dist/esm/apis/EventsApi.d.ts +74 -15
- package/dist/esm/apis/EventsApi.d.ts.map +1 -1
- package/dist/esm/apis/EventsApi.js +77 -36
- package/dist/esm/apis/EventsApi.js.map +1 -1
- package/dist/esm/models/EventVolume.d.ts +46 -0
- package/dist/esm/models/EventVolume.d.ts.map +1 -0
- package/dist/esm/models/EventVolume.js +53 -0
- package/dist/esm/models/EventVolume.js.map +1 -0
- package/dist/esm/models/index.d.ts +1 -3
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -3
- package/dist/esm/models/index.js.map +1 -1
- package/dist/models/EventVolume.d.ts +46 -0
- package/dist/models/EventVolume.d.ts.map +1 -0
- package/dist/models/EventVolume.js +53 -0
- package/dist/models/EventVolume.js.map +1 -0
- package/dist/models/index.d.ts +1 -3
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -3
- package/dist/models/index.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +0 -37
- package/src/apis/CoreApi.ts +0 -96
- package/src/apis/EventsApi.ts +89 -53
- package/src/models/EventVolume.ts +94 -0
- package/src/models/index.ts +1 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/models/Coordinate.d.ts +0 -39
- package/dist/esm/models/Coordinate.d.ts.map +0 -1
- package/dist/esm/models/Coordinate.js +0 -45
- package/dist/esm/models/Coordinate.js.map +0 -1
- package/dist/esm/models/LoginMetrics.d.ts +0 -46
- package/dist/esm/models/LoginMetrics.d.ts.map +0 -1
- package/dist/esm/models/LoginMetrics.js +0 -49
- package/dist/esm/models/LoginMetrics.js.map +0 -1
- package/dist/esm/models/UserMetrics.d.ts +0 -46
- package/dist/esm/models/UserMetrics.d.ts.map +0 -1
- package/dist/esm/models/UserMetrics.js +0 -49
- package/dist/esm/models/UserMetrics.js.map +0 -1
- package/dist/models/Coordinate.d.ts +0 -39
- package/dist/models/Coordinate.d.ts.map +0 -1
- package/dist/models/Coordinate.js +0 -45
- package/dist/models/Coordinate.js.map +0 -1
- package/dist/models/LoginMetrics.d.ts +0 -46
- package/dist/models/LoginMetrics.d.ts.map +0 -1
- package/dist/models/LoginMetrics.js +0 -49
- package/dist/models/LoginMetrics.js.map +0 -1
- package/dist/models/UserMetrics.d.ts +0 -46
- package/dist/models/UserMetrics.d.ts.map +0 -1
- package/dist/models/UserMetrics.js +0 -49
- package/dist/models/UserMetrics.js.map +0 -1
- package/src/models/Coordinate.ts +0 -73
- package/src/models/LoginMetrics.ts +0 -89
- package/src/models/UserMetrics.ts +0 -89
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
App,
|
|
19
19
|
GenericError,
|
|
20
|
-
LoginMetrics,
|
|
21
20
|
PatchedSettingsRequest,
|
|
22
21
|
Settings,
|
|
23
22
|
SettingsRequest,
|
|
@@ -32,8 +31,6 @@ import {
|
|
|
32
31
|
AppToJSON,
|
|
33
32
|
GenericErrorFromJSON,
|
|
34
33
|
GenericErrorToJSON,
|
|
35
|
-
LoginMetricsFromJSON,
|
|
36
|
-
LoginMetricsToJSON,
|
|
37
34
|
PatchedSettingsRequestFromJSON,
|
|
38
35
|
PatchedSettingsRequestToJSON,
|
|
39
36
|
SettingsFromJSON,
|
|
@@ -110,40 +107,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
110
107
|
return await response.value();
|
|
111
108
|
}
|
|
112
109
|
|
|
113
|
-
/**
|
|
114
|
-
* Login Metrics per 1h
|
|
115
|
-
*/
|
|
116
|
-
async adminMetricsRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginMetrics>> {
|
|
117
|
-
const queryParameters: any = {};
|
|
118
|
-
|
|
119
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
120
|
-
|
|
121
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
-
const token = this.configuration.accessToken;
|
|
123
|
-
const tokenString = await token("authentik", []);
|
|
124
|
-
|
|
125
|
-
if (tokenString) {
|
|
126
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
const response = await this.request({
|
|
130
|
-
path: `/admin/metrics/`,
|
|
131
|
-
method: 'GET',
|
|
132
|
-
headers: headerParameters,
|
|
133
|
-
query: queryParameters,
|
|
134
|
-
}, initOverrides);
|
|
135
|
-
|
|
136
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => LoginMetricsFromJSON(jsonValue));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Login Metrics per 1h
|
|
141
|
-
*/
|
|
142
|
-
async adminMetricsRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginMetrics> {
|
|
143
|
-
const response = await this.adminMetricsRetrieveRaw(initOverrides);
|
|
144
|
-
return await response.value();
|
|
145
|
-
}
|
|
146
|
-
|
|
147
110
|
/**
|
|
148
111
|
* Read-only view list all installed models
|
|
149
112
|
*/
|
package/src/apis/CoreApi.ts
CHANGED
|
@@ -22,7 +22,6 @@ import type {
|
|
|
22
22
|
AuthenticatedSession,
|
|
23
23
|
Brand,
|
|
24
24
|
BrandRequest,
|
|
25
|
-
Coordinate,
|
|
26
25
|
CurrentBrand,
|
|
27
26
|
FilePathRequest,
|
|
28
27
|
GenericError,
|
|
@@ -56,7 +55,6 @@ import type {
|
|
|
56
55
|
User,
|
|
57
56
|
UserAccountRequest,
|
|
58
57
|
UserConsent,
|
|
59
|
-
UserMetrics,
|
|
60
58
|
UserPasswordSetRequest,
|
|
61
59
|
UserPath,
|
|
62
60
|
UserRequest,
|
|
@@ -79,8 +77,6 @@ import {
|
|
|
79
77
|
BrandToJSON,
|
|
80
78
|
BrandRequestFromJSON,
|
|
81
79
|
BrandRequestToJSON,
|
|
82
|
-
CoordinateFromJSON,
|
|
83
|
-
CoordinateToJSON,
|
|
84
80
|
CurrentBrandFromJSON,
|
|
85
81
|
CurrentBrandToJSON,
|
|
86
82
|
FilePathRequestFromJSON,
|
|
@@ -147,8 +143,6 @@ import {
|
|
|
147
143
|
UserAccountRequestToJSON,
|
|
148
144
|
UserConsentFromJSON,
|
|
149
145
|
UserConsentToJSON,
|
|
150
|
-
UserMetricsFromJSON,
|
|
151
|
-
UserMetricsToJSON,
|
|
152
146
|
UserPasswordSetRequestFromJSON,
|
|
153
147
|
UserPasswordSetRequestToJSON,
|
|
154
148
|
UserPathFromJSON,
|
|
@@ -228,10 +222,6 @@ export interface CoreApplicationsListRequest {
|
|
|
228
222
|
superuserFullList?: boolean;
|
|
229
223
|
}
|
|
230
224
|
|
|
231
|
-
export interface CoreApplicationsMetricsListRequest {
|
|
232
|
-
slug: string;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
225
|
export interface CoreApplicationsPartialUpdateRequest {
|
|
236
226
|
slug: string;
|
|
237
227
|
patchedApplicationRequest?: PatchedApplicationRequest;
|
|
@@ -488,10 +478,6 @@ export interface CoreUsersListRequest {
|
|
|
488
478
|
uuid?: string;
|
|
489
479
|
}
|
|
490
480
|
|
|
491
|
-
export interface CoreUsersMetricsRetrieveRequest {
|
|
492
|
-
id: number;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
481
|
export interface CoreUsersPartialUpdateRequest {
|
|
496
482
|
id: number;
|
|
497
483
|
patchedUserRequest?: PatchedUserRequest;
|
|
@@ -1075,47 +1061,6 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1075
1061
|
return await response.value();
|
|
1076
1062
|
}
|
|
1077
1063
|
|
|
1078
|
-
/**
|
|
1079
|
-
* Metrics for application logins
|
|
1080
|
-
*/
|
|
1081
|
-
async coreApplicationsMetricsListRaw(requestParameters: CoreApplicationsMetricsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Coordinate>>> {
|
|
1082
|
-
if (requestParameters['slug'] == null) {
|
|
1083
|
-
throw new runtime.RequiredError(
|
|
1084
|
-
'slug',
|
|
1085
|
-
'Required parameter "slug" was null or undefined when calling coreApplicationsMetricsList().'
|
|
1086
|
-
);
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
const queryParameters: any = {};
|
|
1090
|
-
|
|
1091
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1092
|
-
|
|
1093
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1094
|
-
const token = this.configuration.accessToken;
|
|
1095
|
-
const tokenString = await token("authentik", []);
|
|
1096
|
-
|
|
1097
|
-
if (tokenString) {
|
|
1098
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
const response = await this.request({
|
|
1102
|
-
path: `/core/applications/{slug}/metrics/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
1103
|
-
method: 'GET',
|
|
1104
|
-
headers: headerParameters,
|
|
1105
|
-
query: queryParameters,
|
|
1106
|
-
}, initOverrides);
|
|
1107
|
-
|
|
1108
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CoordinateFromJSON));
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* Metrics for application logins
|
|
1113
|
-
*/
|
|
1114
|
-
async coreApplicationsMetricsList(requestParameters: CoreApplicationsMetricsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Coordinate>> {
|
|
1115
|
-
const response = await this.coreApplicationsMetricsListRaw(requestParameters, initOverrides);
|
|
1116
|
-
return await response.value();
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
1064
|
/**
|
|
1120
1065
|
* Application Viewset
|
|
1121
1066
|
*/
|
|
@@ -3393,47 +3338,6 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
3393
3338
|
return await response.value();
|
|
3394
3339
|
}
|
|
3395
3340
|
|
|
3396
|
-
/**
|
|
3397
|
-
* User metrics per 1h
|
|
3398
|
-
*/
|
|
3399
|
-
async coreUsersMetricsRetrieveRaw(requestParameters: CoreUsersMetricsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserMetrics>> {
|
|
3400
|
-
if (requestParameters['id'] == null) {
|
|
3401
|
-
throw new runtime.RequiredError(
|
|
3402
|
-
'id',
|
|
3403
|
-
'Required parameter "id" was null or undefined when calling coreUsersMetricsRetrieve().'
|
|
3404
|
-
);
|
|
3405
|
-
}
|
|
3406
|
-
|
|
3407
|
-
const queryParameters: any = {};
|
|
3408
|
-
|
|
3409
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
3410
|
-
|
|
3411
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
3412
|
-
const token = this.configuration.accessToken;
|
|
3413
|
-
const tokenString = await token("authentik", []);
|
|
3414
|
-
|
|
3415
|
-
if (tokenString) {
|
|
3416
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3417
|
-
}
|
|
3418
|
-
}
|
|
3419
|
-
const response = await this.request({
|
|
3420
|
-
path: `/core/users/{id}/metrics/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
3421
|
-
method: 'GET',
|
|
3422
|
-
headers: headerParameters,
|
|
3423
|
-
query: queryParameters,
|
|
3424
|
-
}, initOverrides);
|
|
3425
|
-
|
|
3426
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => UserMetricsFromJSON(jsonValue));
|
|
3427
|
-
}
|
|
3428
|
-
|
|
3429
|
-
/**
|
|
3430
|
-
* User metrics per 1h
|
|
3431
|
-
*/
|
|
3432
|
-
async coreUsersMetricsRetrieve(requestParameters: CoreUsersMetricsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserMetrics> {
|
|
3433
|
-
const response = await this.coreUsersMetricsRetrieveRaw(requestParameters, initOverrides);
|
|
3434
|
-
return await response.value();
|
|
3435
|
-
}
|
|
3436
|
-
|
|
3437
3341
|
/**
|
|
3438
3342
|
* User Viewset
|
|
3439
3343
|
*/
|
package/src/apis/EventsApi.ts
CHANGED
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
Coordinate,
|
|
19
18
|
Event,
|
|
20
19
|
EventRequest,
|
|
21
20
|
EventTopPerUser,
|
|
21
|
+
EventVolume,
|
|
22
22
|
GenericError,
|
|
23
23
|
Notification,
|
|
24
24
|
NotificationRequest,
|
|
@@ -42,14 +42,14 @@ import type {
|
|
|
42
42
|
ValidationError,
|
|
43
43
|
} from '../models/index';
|
|
44
44
|
import {
|
|
45
|
-
CoordinateFromJSON,
|
|
46
|
-
CoordinateToJSON,
|
|
47
45
|
EventFromJSON,
|
|
48
46
|
EventToJSON,
|
|
49
47
|
EventRequestFromJSON,
|
|
50
48
|
EventRequestToJSON,
|
|
51
49
|
EventTopPerUserFromJSON,
|
|
52
50
|
EventTopPerUserToJSON,
|
|
51
|
+
EventVolumeFromJSON,
|
|
52
|
+
EventVolumeToJSON,
|
|
53
53
|
GenericErrorFromJSON,
|
|
54
54
|
GenericErrorToJSON,
|
|
55
55
|
NotificationFromJSON,
|
|
@@ -104,6 +104,7 @@ export interface EventsEventsDestroyRequest {
|
|
|
104
104
|
|
|
105
105
|
export interface EventsEventsListRequest {
|
|
106
106
|
action?: string;
|
|
107
|
+
actions?: Array<EventsEventsListActionsEnum>;
|
|
107
108
|
brandName?: string;
|
|
108
109
|
clientIp?: string;
|
|
109
110
|
contextAuthorizedApp?: string;
|
|
@@ -122,11 +123,6 @@ export interface EventsEventsPartialUpdateRequest {
|
|
|
122
123
|
patchedEventRequest?: PatchedEventRequest;
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
export interface EventsEventsPerMonthListRequest {
|
|
126
|
-
action?: string;
|
|
127
|
-
query?: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
126
|
export interface EventsEventsRetrieveRequest {
|
|
131
127
|
eventUuid: string;
|
|
132
128
|
}
|
|
@@ -143,12 +139,14 @@ export interface EventsEventsUpdateRequest {
|
|
|
143
139
|
|
|
144
140
|
export interface EventsEventsVolumeListRequest {
|
|
145
141
|
action?: string;
|
|
142
|
+
actions?: Array<EventsEventsVolumeListActionsEnum>;
|
|
146
143
|
brandName?: string;
|
|
147
144
|
clientIp?: string;
|
|
148
145
|
contextAuthorizedApp?: string;
|
|
149
146
|
contextModelApp?: string;
|
|
150
147
|
contextModelName?: string;
|
|
151
148
|
contextModelPk?: string;
|
|
149
|
+
historyDays?: number;
|
|
152
150
|
ordering?: string;
|
|
153
151
|
search?: string;
|
|
154
152
|
username?: string;
|
|
@@ -417,6 +415,10 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
417
415
|
queryParameters['action'] = requestParameters['action'];
|
|
418
416
|
}
|
|
419
417
|
|
|
418
|
+
if (requestParameters['actions'] != null) {
|
|
419
|
+
queryParameters['actions'] = requestParameters['actions'];
|
|
420
|
+
}
|
|
421
|
+
|
|
420
422
|
if (requestParameters['brandName'] != null) {
|
|
421
423
|
queryParameters['brand_name'] = requestParameters['brandName'];
|
|
422
424
|
}
|
|
@@ -533,48 +535,6 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
533
535
|
return await response.value();
|
|
534
536
|
}
|
|
535
537
|
|
|
536
|
-
/**
|
|
537
|
-
* Get the count of events per month
|
|
538
|
-
*/
|
|
539
|
-
async eventsEventsPerMonthListRaw(requestParameters: EventsEventsPerMonthListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Coordinate>>> {
|
|
540
|
-
const queryParameters: any = {};
|
|
541
|
-
|
|
542
|
-
if (requestParameters['action'] != null) {
|
|
543
|
-
queryParameters['action'] = requestParameters['action'];
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
if (requestParameters['query'] != null) {
|
|
547
|
-
queryParameters['query'] = requestParameters['query'];
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
551
|
-
|
|
552
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
553
|
-
const token = this.configuration.accessToken;
|
|
554
|
-
const tokenString = await token("authentik", []);
|
|
555
|
-
|
|
556
|
-
if (tokenString) {
|
|
557
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
const response = await this.request({
|
|
561
|
-
path: `/events/events/per_month/`,
|
|
562
|
-
method: 'GET',
|
|
563
|
-
headers: headerParameters,
|
|
564
|
-
query: queryParameters,
|
|
565
|
-
}, initOverrides);
|
|
566
|
-
|
|
567
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CoordinateFromJSON));
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* Get the count of events per month
|
|
572
|
-
*/
|
|
573
|
-
async eventsEventsPerMonthList(requestParameters: EventsEventsPerMonthListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Coordinate>> {
|
|
574
|
-
const response = await this.eventsEventsPerMonthListRaw(requestParameters, initOverrides);
|
|
575
|
-
return await response.value();
|
|
576
|
-
}
|
|
577
|
-
|
|
578
538
|
/**
|
|
579
539
|
* Event Read-Only Viewset
|
|
580
540
|
*/
|
|
@@ -712,13 +672,17 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
712
672
|
/**
|
|
713
673
|
* Get event volume for specified filters and timeframe
|
|
714
674
|
*/
|
|
715
|
-
async eventsEventsVolumeListRaw(requestParameters: EventsEventsVolumeListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
675
|
+
async eventsEventsVolumeListRaw(requestParameters: EventsEventsVolumeListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<EventVolume>>> {
|
|
716
676
|
const queryParameters: any = {};
|
|
717
677
|
|
|
718
678
|
if (requestParameters['action'] != null) {
|
|
719
679
|
queryParameters['action'] = requestParameters['action'];
|
|
720
680
|
}
|
|
721
681
|
|
|
682
|
+
if (requestParameters['actions'] != null) {
|
|
683
|
+
queryParameters['actions'] = requestParameters['actions'];
|
|
684
|
+
}
|
|
685
|
+
|
|
722
686
|
if (requestParameters['brandName'] != null) {
|
|
723
687
|
queryParameters['brand_name'] = requestParameters['brandName'];
|
|
724
688
|
}
|
|
@@ -743,6 +707,10 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
743
707
|
queryParameters['context_model_pk'] = requestParameters['contextModelPk'];
|
|
744
708
|
}
|
|
745
709
|
|
|
710
|
+
if (requestParameters['historyDays'] != null) {
|
|
711
|
+
queryParameters['history_days'] = requestParameters['historyDays'];
|
|
712
|
+
}
|
|
713
|
+
|
|
746
714
|
if (requestParameters['ordering'] != null) {
|
|
747
715
|
queryParameters['ordering'] = requestParameters['ordering'];
|
|
748
716
|
}
|
|
@@ -772,13 +740,13 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
772
740
|
query: queryParameters,
|
|
773
741
|
}, initOverrides);
|
|
774
742
|
|
|
775
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
743
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(EventVolumeFromJSON));
|
|
776
744
|
}
|
|
777
745
|
|
|
778
746
|
/**
|
|
779
747
|
* Get event volume for specified filters and timeframe
|
|
780
748
|
*/
|
|
781
|
-
async eventsEventsVolumeList(requestParameters: EventsEventsVolumeListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
749
|
+
async eventsEventsVolumeList(requestParameters: EventsEventsVolumeListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<EventVolume>> {
|
|
782
750
|
const response = await this.eventsEventsVolumeListRaw(requestParameters, initOverrides);
|
|
783
751
|
return await response.value();
|
|
784
752
|
}
|
|
@@ -1936,6 +1904,74 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1936
1904
|
|
|
1937
1905
|
}
|
|
1938
1906
|
|
|
1907
|
+
/**
|
|
1908
|
+
* @export
|
|
1909
|
+
*/
|
|
1910
|
+
export const EventsEventsListActionsEnum = {
|
|
1911
|
+
AuthorizeApplication: 'authorize_application',
|
|
1912
|
+
ConfigurationError: 'configuration_error',
|
|
1913
|
+
Custom: 'custom_',
|
|
1914
|
+
EmailSent: 'email_sent',
|
|
1915
|
+
FlowExecution: 'flow_execution',
|
|
1916
|
+
ImpersonationEnded: 'impersonation_ended',
|
|
1917
|
+
ImpersonationStarted: 'impersonation_started',
|
|
1918
|
+
InvitationUsed: 'invitation_used',
|
|
1919
|
+
Login: 'login',
|
|
1920
|
+
LoginFailed: 'login_failed',
|
|
1921
|
+
Logout: 'logout',
|
|
1922
|
+
ModelCreated: 'model_created',
|
|
1923
|
+
ModelDeleted: 'model_deleted',
|
|
1924
|
+
ModelUpdated: 'model_updated',
|
|
1925
|
+
PasswordSet: 'password_set',
|
|
1926
|
+
PolicyException: 'policy_exception',
|
|
1927
|
+
PolicyExecution: 'policy_execution',
|
|
1928
|
+
PropertyMappingException: 'property_mapping_exception',
|
|
1929
|
+
SecretRotate: 'secret_rotate',
|
|
1930
|
+
SecretView: 'secret_view',
|
|
1931
|
+
SourceLinked: 'source_linked',
|
|
1932
|
+
SuspiciousRequest: 'suspicious_request',
|
|
1933
|
+
SystemException: 'system_exception',
|
|
1934
|
+
SystemTaskException: 'system_task_exception',
|
|
1935
|
+
SystemTaskExecution: 'system_task_execution',
|
|
1936
|
+
UpdateAvailable: 'update_available',
|
|
1937
|
+
UserWrite: 'user_write',
|
|
1938
|
+
UnknownDefaultOpenApi: '11184809'
|
|
1939
|
+
} as const;
|
|
1940
|
+
export type EventsEventsListActionsEnum = typeof EventsEventsListActionsEnum[keyof typeof EventsEventsListActionsEnum];
|
|
1941
|
+
/**
|
|
1942
|
+
* @export
|
|
1943
|
+
*/
|
|
1944
|
+
export const EventsEventsVolumeListActionsEnum = {
|
|
1945
|
+
AuthorizeApplication: 'authorize_application',
|
|
1946
|
+
ConfigurationError: 'configuration_error',
|
|
1947
|
+
Custom: 'custom_',
|
|
1948
|
+
EmailSent: 'email_sent',
|
|
1949
|
+
FlowExecution: 'flow_execution',
|
|
1950
|
+
ImpersonationEnded: 'impersonation_ended',
|
|
1951
|
+
ImpersonationStarted: 'impersonation_started',
|
|
1952
|
+
InvitationUsed: 'invitation_used',
|
|
1953
|
+
Login: 'login',
|
|
1954
|
+
LoginFailed: 'login_failed',
|
|
1955
|
+
Logout: 'logout',
|
|
1956
|
+
ModelCreated: 'model_created',
|
|
1957
|
+
ModelDeleted: 'model_deleted',
|
|
1958
|
+
ModelUpdated: 'model_updated',
|
|
1959
|
+
PasswordSet: 'password_set',
|
|
1960
|
+
PolicyException: 'policy_exception',
|
|
1961
|
+
PolicyExecution: 'policy_execution',
|
|
1962
|
+
PropertyMappingException: 'property_mapping_exception',
|
|
1963
|
+
SecretRotate: 'secret_rotate',
|
|
1964
|
+
SecretView: 'secret_view',
|
|
1965
|
+
SourceLinked: 'source_linked',
|
|
1966
|
+
SuspiciousRequest: 'suspicious_request',
|
|
1967
|
+
SystemException: 'system_exception',
|
|
1968
|
+
SystemTaskException: 'system_task_exception',
|
|
1969
|
+
SystemTaskExecution: 'system_task_execution',
|
|
1970
|
+
UpdateAvailable: 'update_available',
|
|
1971
|
+
UserWrite: 'user_write',
|
|
1972
|
+
UnknownDefaultOpenApi: '11184809'
|
|
1973
|
+
} as const;
|
|
1974
|
+
export type EventsEventsVolumeListActionsEnum = typeof EventsEventsVolumeListActionsEnum[keyof typeof EventsEventsVolumeListActionsEnum];
|
|
1939
1975
|
/**
|
|
1940
1976
|
* @export
|
|
1941
1977
|
*/
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.6.1
|
|
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
|
+
import type { EventActions } from './EventActions';
|
|
17
|
+
import {
|
|
18
|
+
EventActionsFromJSON,
|
|
19
|
+
EventActionsFromJSONTyped,
|
|
20
|
+
EventActionsToJSON,
|
|
21
|
+
EventActionsToJSONTyped,
|
|
22
|
+
} from './EventActions';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Count of events of action created on day
|
|
26
|
+
* @export
|
|
27
|
+
* @interface EventVolume
|
|
28
|
+
*/
|
|
29
|
+
export interface EventVolume {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {EventActions}
|
|
33
|
+
* @memberof EventVolume
|
|
34
|
+
*/
|
|
35
|
+
action: EventActions;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof EventVolume
|
|
40
|
+
*/
|
|
41
|
+
time: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof EventVolume
|
|
46
|
+
*/
|
|
47
|
+
count: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the EventVolume interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfEventVolume(value: object): value is EventVolume {
|
|
56
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
57
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
58
|
+
if (!('count' in value) || value['count'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function EventVolumeFromJSON(json: any): EventVolume {
|
|
63
|
+
return EventVolumeFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function EventVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventVolume {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'action': EventActionsFromJSON(json['action']),
|
|
73
|
+
'time': (new Date(json['time'])),
|
|
74
|
+
'count': json['count'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function EventVolumeToJSON(json: any): EventVolume {
|
|
79
|
+
return EventVolumeToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function EventVolumeToJSONTyped(value?: EventVolume | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'action': EventActionsToJSON(value['action']),
|
|
90
|
+
'time': ((value['time']).toISOString()),
|
|
91
|
+
'count': value['count'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -89,7 +89,6 @@ export * from './ConsentStageModeEnum';
|
|
|
89
89
|
export * from './ConsentStageRequest';
|
|
90
90
|
export * from './ContextualFlowInfo';
|
|
91
91
|
export * from './ContextualFlowInfoLayoutEnum';
|
|
92
|
-
export * from './Coordinate';
|
|
93
92
|
export * from './CountryCodeEnum';
|
|
94
93
|
export * from './CurrentBrand';
|
|
95
94
|
export * from './DeliveryMethodEnum';
|
|
@@ -137,6 +136,7 @@ export * from './EventMatcherPolicy';
|
|
|
137
136
|
export * from './EventMatcherPolicyRequest';
|
|
138
137
|
export * from './EventRequest';
|
|
139
138
|
export * from './EventTopPerUser';
|
|
139
|
+
export * from './EventVolume';
|
|
140
140
|
export * from './EventsRequestedEnum';
|
|
141
141
|
export * from './ExpiringBaseGrantModel';
|
|
142
142
|
export * from './ExpressionPolicy';
|
|
@@ -236,7 +236,6 @@ export * from './Link';
|
|
|
236
236
|
export * from './LogEvent';
|
|
237
237
|
export * from './LogLevelEnum';
|
|
238
238
|
export * from './LoginChallengeTypes';
|
|
239
|
-
export * from './LoginMetrics';
|
|
240
239
|
export * from './LoginSource';
|
|
241
240
|
export * from './MatchingModeEnum';
|
|
242
241
|
export * from './Metadata';
|
|
@@ -717,7 +716,6 @@ export * from './UserLoginStageRequest';
|
|
|
717
716
|
export * from './UserLogoutStage';
|
|
718
717
|
export * from './UserLogoutStageRequest';
|
|
719
718
|
export * from './UserMatchingModeEnum';
|
|
720
|
-
export * from './UserMetrics';
|
|
721
719
|
export * from './UserOAuthSourceConnection';
|
|
722
720
|
export * from './UserOAuthSourceConnectionRequest';
|
|
723
721
|
export * from './UserObjectPermission';
|