@goauthentik/api 2025.12.0-rc1-1765191857 → 2025.12.0-rc1-1765290953
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 +5 -0
- package/dist/apis/CoreApi.d.ts +44 -1
- package/dist/apis/CoreApi.d.ts.map +1 -1
- package/dist/apis/CoreApi.js +106 -1
- package/dist/apis/CoreApi.js.map +1 -1
- package/dist/apis/EventsApi.d.ts +59 -1
- package/dist/apis/EventsApi.d.ts.map +1 -1
- package/dist/apis/EventsApi.js +99 -1
- package/dist/apis/EventsApi.js.map +1 -1
- package/dist/apis/PoliciesApi.d.ts +1 -0
- package/dist/apis/PoliciesApi.d.ts.map +1 -1
- package/dist/apis/PoliciesApi.js +1 -0
- package/dist/apis/PoliciesApi.js.map +1 -1
- package/dist/apis/RbacApi.d.ts +1 -0
- package/dist/apis/RbacApi.d.ts.map +1 -1
- package/dist/apis/RbacApi.js +1 -0
- package/dist/apis/RbacApi.js.map +1 -1
- package/dist/apis/ReportsApi.d.ts +49 -0
- package/dist/apis/ReportsApi.d.ts.map +1 -0
- package/dist/apis/ReportsApi.js +158 -0
- package/dist/apis/ReportsApi.js.map +1 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.d.ts.map +1 -1
- package/dist/apis/index.js +1 -0
- package/dist/apis/index.js.map +1 -1
- package/dist/esm/apis/CoreApi.d.ts +44 -1
- package/dist/esm/apis/CoreApi.d.ts.map +1 -1
- package/dist/esm/apis/CoreApi.js +106 -1
- package/dist/esm/apis/CoreApi.js.map +1 -1
- package/dist/esm/apis/EventsApi.d.ts +59 -1
- package/dist/esm/apis/EventsApi.d.ts.map +1 -1
- package/dist/esm/apis/EventsApi.js +99 -1
- package/dist/esm/apis/EventsApi.js.map +1 -1
- package/dist/esm/apis/PoliciesApi.d.ts +1 -0
- package/dist/esm/apis/PoliciesApi.d.ts.map +1 -1
- package/dist/esm/apis/PoliciesApi.js +1 -0
- package/dist/esm/apis/PoliciesApi.js.map +1 -1
- package/dist/esm/apis/RbacApi.d.ts +1 -0
- package/dist/esm/apis/RbacApi.d.ts.map +1 -1
- package/dist/esm/apis/RbacApi.js +1 -0
- package/dist/esm/apis/RbacApi.js.map +1 -1
- package/dist/esm/apis/ReportsApi.d.ts +49 -0
- package/dist/esm/apis/ReportsApi.d.ts.map +1 -0
- package/dist/esm/apis/ReportsApi.js +158 -0
- package/dist/esm/apis/ReportsApi.js.map +1 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.d.ts.map +1 -1
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/apis/index.js.map +1 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.d.ts.map +1 -1
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AppEnum.js.map +1 -1
- package/dist/esm/models/ContentType.d.ts +45 -0
- package/dist/esm/models/ContentType.d.ts.map +1 -0
- package/dist/esm/models/ContentType.js +55 -0
- package/dist/esm/models/ContentType.js.map +1 -0
- package/dist/esm/models/DataExport.d.ts +74 -0
- package/dist/esm/models/DataExport.d.ts.map +1 -0
- package/dist/esm/models/DataExport.js +71 -0
- package/dist/esm/models/DataExport.js.map +1 -0
- package/dist/esm/models/EventActions.d.ts +1 -0
- package/dist/esm/models/EventActions.d.ts.map +1 -1
- package/dist/esm/models/EventActions.js +1 -0
- package/dist/esm/models/EventActions.js.map +1 -1
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.d.ts.map +1 -1
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/ModelEnum.js.map +1 -1
- package/dist/esm/models/Notification.d.ts +12 -0
- package/dist/esm/models/Notification.d.ts.map +1 -1
- package/dist/esm/models/Notification.js +4 -0
- package/dist/esm/models/Notification.js.map +1 -1
- package/dist/esm/models/NotificationRequest.d.ts +12 -0
- package/dist/esm/models/NotificationRequest.d.ts.map +1 -1
- package/dist/esm/models/NotificationRequest.js +4 -0
- package/dist/esm/models/NotificationRequest.js.map +1 -1
- package/dist/esm/models/PaginatedDataExportList.d.ts +49 -0
- package/dist/esm/models/PaginatedDataExportList.d.ts.map +1 -0
- package/dist/esm/models/PaginatedDataExportList.js +61 -0
- package/dist/esm/models/PaginatedDataExportList.js.map +1 -0
- package/dist/esm/models/PatchedNotificationRequest.d.ts +12 -0
- package/dist/esm/models/PatchedNotificationRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedNotificationRequest.js +4 -0
- package/dist/esm/models/PatchedNotificationRequest.js.map +1 -1
- package/dist/esm/models/RequestedBy.d.ts +39 -0
- package/dist/esm/models/RequestedBy.d.ts.map +1 -0
- package/dist/esm/models/RequestedBy.js +54 -0
- package/dist/esm/models/RequestedBy.js.map +1 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.d.ts.map +1 -1
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AppEnum.js.map +1 -1
- package/dist/models/ContentType.d.ts +45 -0
- package/dist/models/ContentType.d.ts.map +1 -0
- package/dist/models/ContentType.js +55 -0
- package/dist/models/ContentType.js.map +1 -0
- package/dist/models/DataExport.d.ts +74 -0
- package/dist/models/DataExport.d.ts.map +1 -0
- package/dist/models/DataExport.js +71 -0
- package/dist/models/DataExport.js.map +1 -0
- package/dist/models/EventActions.d.ts +1 -0
- package/dist/models/EventActions.d.ts.map +1 -1
- package/dist/models/EventActions.js +1 -0
- package/dist/models/EventActions.js.map +1 -1
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.d.ts.map +1 -1
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/ModelEnum.js.map +1 -1
- package/dist/models/Notification.d.ts +12 -0
- package/dist/models/Notification.d.ts.map +1 -1
- package/dist/models/Notification.js +4 -0
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationRequest.d.ts +12 -0
- package/dist/models/NotificationRequest.d.ts.map +1 -1
- package/dist/models/NotificationRequest.js +4 -0
- package/dist/models/NotificationRequest.js.map +1 -1
- package/dist/models/PaginatedDataExportList.d.ts +49 -0
- package/dist/models/PaginatedDataExportList.d.ts.map +1 -0
- package/dist/models/PaginatedDataExportList.js +61 -0
- package/dist/models/PaginatedDataExportList.js.map +1 -0
- package/dist/models/PatchedNotificationRequest.d.ts +12 -0
- package/dist/models/PatchedNotificationRequest.d.ts.map +1 -1
- package/dist/models/PatchedNotificationRequest.js +4 -0
- package/dist/models/PatchedNotificationRequest.js.map +1 -1
- package/dist/models/RequestedBy.d.ts +39 -0
- package/dist/models/RequestedBy.d.ts.map +1 -0
- package/dist/models/RequestedBy.js +54 -0
- package/dist/models/RequestedBy.js.map +1 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +4 -0
- package/dist/models/index.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +164 -0
- package/src/apis/EventsApi.ts +135 -0
- package/src/apis/PoliciesApi.ts +1 -0
- package/src/apis/RbacApi.ts +1 -0
- package/src/apis/ReportsApi.ts +190 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/ContentType.ts +81 -0
- package/src/models/DataExport.ts +130 -0
- package/src/models/EventActions.ts +1 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/Notification.ts +16 -0
- package/src/models/NotificationRequest.ts +16 -0
- package/src/models/PaginatedDataExportList.ts +99 -0
- package/src/models/PatchedNotificationRequest.ts +16 -0
- package/src/models/RequestedBy.ts +74 -0
- package/src/models/index.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
package/src/apis/CoreApi.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type {
|
|
|
23
23
|
Brand,
|
|
24
24
|
BrandRequest,
|
|
25
25
|
CurrentBrand,
|
|
26
|
+
DataExport,
|
|
26
27
|
GenericError,
|
|
27
28
|
Group,
|
|
28
29
|
GroupRequest,
|
|
@@ -78,6 +79,8 @@ import {
|
|
|
78
79
|
BrandRequestToJSON,
|
|
79
80
|
CurrentBrandFromJSON,
|
|
80
81
|
CurrentBrandToJSON,
|
|
82
|
+
DataExportFromJSON,
|
|
83
|
+
DataExportToJSON,
|
|
81
84
|
GenericErrorFromJSON,
|
|
82
85
|
GenericErrorToJSON,
|
|
83
86
|
GroupFromJSON,
|
|
@@ -443,6 +446,31 @@ export interface CoreUsersDestroyRequest {
|
|
|
443
446
|
id: number;
|
|
444
447
|
}
|
|
445
448
|
|
|
449
|
+
export interface CoreUsersExportCreateRequest {
|
|
450
|
+
attributes?: string;
|
|
451
|
+
dateJoined?: Date;
|
|
452
|
+
dateJoinedGt?: Date;
|
|
453
|
+
dateJoinedLt?: Date;
|
|
454
|
+
email?: string;
|
|
455
|
+
groupsByName?: Array<string>;
|
|
456
|
+
groupsByPk?: Array<string>;
|
|
457
|
+
isActive?: boolean;
|
|
458
|
+
isSuperuser?: boolean;
|
|
459
|
+
lastUpdated?: Date;
|
|
460
|
+
lastUpdatedGt?: Date;
|
|
461
|
+
lastUpdatedLt?: Date;
|
|
462
|
+
name?: string;
|
|
463
|
+
ordering?: string;
|
|
464
|
+
path?: string;
|
|
465
|
+
pathStartswith?: string;
|
|
466
|
+
rolesByName?: Array<string>;
|
|
467
|
+
rolesByPk?: Array<string>;
|
|
468
|
+
search?: string;
|
|
469
|
+
type?: Array<CoreUsersExportCreateTypeEnum>;
|
|
470
|
+
username?: string;
|
|
471
|
+
uuid?: string;
|
|
472
|
+
}
|
|
473
|
+
|
|
446
474
|
export interface CoreUsersImpersonateCreateRequest {
|
|
447
475
|
id: number;
|
|
448
476
|
impersonationRequest: ImpersonationRequest;
|
|
@@ -3212,6 +3240,131 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
3212
3240
|
await this.coreUsersDestroyRaw(requestParameters, initOverrides);
|
|
3213
3241
|
}
|
|
3214
3242
|
|
|
3243
|
+
/**
|
|
3244
|
+
* Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download
|
|
3245
|
+
*/
|
|
3246
|
+
async coreUsersExportCreateRaw(requestParameters: CoreUsersExportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataExport>> {
|
|
3247
|
+
const queryParameters: any = {};
|
|
3248
|
+
|
|
3249
|
+
if (requestParameters['attributes'] != null) {
|
|
3250
|
+
queryParameters['attributes'] = requestParameters['attributes'];
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
if (requestParameters['dateJoined'] != null) {
|
|
3254
|
+
queryParameters['date_joined'] = (requestParameters['dateJoined'] as any).toISOString();
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
if (requestParameters['dateJoinedGt'] != null) {
|
|
3258
|
+
queryParameters['date_joined__gt'] = (requestParameters['dateJoinedGt'] as any).toISOString();
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
if (requestParameters['dateJoinedLt'] != null) {
|
|
3262
|
+
queryParameters['date_joined__lt'] = (requestParameters['dateJoinedLt'] as any).toISOString();
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
if (requestParameters['email'] != null) {
|
|
3266
|
+
queryParameters['email'] = requestParameters['email'];
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
if (requestParameters['groupsByName'] != null) {
|
|
3270
|
+
queryParameters['groups_by_name'] = requestParameters['groupsByName'];
|
|
3271
|
+
}
|
|
3272
|
+
|
|
3273
|
+
if (requestParameters['groupsByPk'] != null) {
|
|
3274
|
+
queryParameters['groups_by_pk'] = requestParameters['groupsByPk'];
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
if (requestParameters['isActive'] != null) {
|
|
3278
|
+
queryParameters['is_active'] = requestParameters['isActive'];
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
if (requestParameters['isSuperuser'] != null) {
|
|
3282
|
+
queryParameters['is_superuser'] = requestParameters['isSuperuser'];
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
if (requestParameters['lastUpdated'] != null) {
|
|
3286
|
+
queryParameters['last_updated'] = (requestParameters['lastUpdated'] as any).toISOString();
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
if (requestParameters['lastUpdatedGt'] != null) {
|
|
3290
|
+
queryParameters['last_updated__gt'] = (requestParameters['lastUpdatedGt'] as any).toISOString();
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
if (requestParameters['lastUpdatedLt'] != null) {
|
|
3294
|
+
queryParameters['last_updated__lt'] = (requestParameters['lastUpdatedLt'] as any).toISOString();
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
if (requestParameters['name'] != null) {
|
|
3298
|
+
queryParameters['name'] = requestParameters['name'];
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
if (requestParameters['ordering'] != null) {
|
|
3302
|
+
queryParameters['ordering'] = requestParameters['ordering'];
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
if (requestParameters['path'] != null) {
|
|
3306
|
+
queryParameters['path'] = requestParameters['path'];
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
if (requestParameters['pathStartswith'] != null) {
|
|
3310
|
+
queryParameters['path_startswith'] = requestParameters['pathStartswith'];
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
if (requestParameters['rolesByName'] != null) {
|
|
3314
|
+
queryParameters['roles_by_name'] = requestParameters['rolesByName'];
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
if (requestParameters['rolesByPk'] != null) {
|
|
3318
|
+
queryParameters['roles_by_pk'] = requestParameters['rolesByPk'];
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
if (requestParameters['search'] != null) {
|
|
3322
|
+
queryParameters['search'] = requestParameters['search'];
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
if (requestParameters['type'] != null) {
|
|
3326
|
+
queryParameters['type'] = requestParameters['type'];
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
if (requestParameters['username'] != null) {
|
|
3330
|
+
queryParameters['username'] = requestParameters['username'];
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
if (requestParameters['uuid'] != null) {
|
|
3334
|
+
queryParameters['uuid'] = requestParameters['uuid'];
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3338
|
+
|
|
3339
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3340
|
+
const token = this.configuration.accessToken;
|
|
3341
|
+
const tokenString = await token("authentik", []);
|
|
3342
|
+
|
|
3343
|
+
if (tokenString) {
|
|
3344
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
let urlPath = `/core/users/export/`;
|
|
3349
|
+
|
|
3350
|
+
const response = await this.request({
|
|
3351
|
+
path: urlPath,
|
|
3352
|
+
method: 'POST',
|
|
3353
|
+
headers: headerParameters,
|
|
3354
|
+
query: queryParameters,
|
|
3355
|
+
}, initOverrides);
|
|
3356
|
+
|
|
3357
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataExportFromJSON(jsonValue));
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download
|
|
3362
|
+
*/
|
|
3363
|
+
async coreUsersExportCreate(requestParameters: CoreUsersExportCreateRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataExport> {
|
|
3364
|
+
const response = await this.coreUsersExportCreateRaw(requestParameters, initOverrides);
|
|
3365
|
+
return await response.value();
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3215
3368
|
/**
|
|
3216
3369
|
* Impersonate a user
|
|
3217
3370
|
*/
|
|
@@ -3928,6 +4081,17 @@ export const CoreTokensListIntentEnum = {
|
|
|
3928
4081
|
UnknownDefaultOpenApi: '11184809'
|
|
3929
4082
|
} as const;
|
|
3930
4083
|
export type CoreTokensListIntentEnum = typeof CoreTokensListIntentEnum[keyof typeof CoreTokensListIntentEnum];
|
|
4084
|
+
/**
|
|
4085
|
+
* @export
|
|
4086
|
+
*/
|
|
4087
|
+
export const CoreUsersExportCreateTypeEnum = {
|
|
4088
|
+
External: 'external',
|
|
4089
|
+
Internal: 'internal',
|
|
4090
|
+
InternalServiceAccount: 'internal_service_account',
|
|
4091
|
+
ServiceAccount: 'service_account',
|
|
4092
|
+
UnknownDefaultOpenApi: '11184809'
|
|
4093
|
+
} as const;
|
|
4094
|
+
export type CoreUsersExportCreateTypeEnum = typeof CoreUsersExportCreateTypeEnum[keyof typeof CoreUsersExportCreateTypeEnum];
|
|
3931
4095
|
/**
|
|
3932
4096
|
* @export
|
|
3933
4097
|
*/
|
package/src/apis/EventsApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
DataExport,
|
|
18
19
|
Event,
|
|
19
20
|
EventRequest,
|
|
20
21
|
EventTopPerUser,
|
|
@@ -40,6 +41,8 @@ import type {
|
|
|
40
41
|
ValidationError,
|
|
41
42
|
} from '../models/index';
|
|
42
43
|
import {
|
|
44
|
+
DataExportFromJSON,
|
|
45
|
+
DataExportToJSON,
|
|
43
46
|
EventFromJSON,
|
|
44
47
|
EventToJSON,
|
|
45
48
|
EventRequestFromJSON,
|
|
@@ -96,6 +99,20 @@ export interface EventsEventsDestroyRequest {
|
|
|
96
99
|
eventUuid: string;
|
|
97
100
|
}
|
|
98
101
|
|
|
102
|
+
export interface EventsEventsExportCreateRequest {
|
|
103
|
+
action?: string;
|
|
104
|
+
actions?: Array<EventsEventsExportCreateActionsEnum>;
|
|
105
|
+
brandName?: string;
|
|
106
|
+
clientIp?: string;
|
|
107
|
+
contextAuthorizedApp?: string;
|
|
108
|
+
contextModelApp?: string;
|
|
109
|
+
contextModelName?: string;
|
|
110
|
+
contextModelPk?: string;
|
|
111
|
+
ordering?: string;
|
|
112
|
+
search?: string;
|
|
113
|
+
username?: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
99
116
|
export interface EventsEventsListRequest {
|
|
100
117
|
action?: string;
|
|
101
118
|
actions?: Array<EventsEventsListActionsEnum>;
|
|
@@ -391,6 +408,87 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
391
408
|
await this.eventsEventsDestroyRaw(requestParameters, initOverrides);
|
|
392
409
|
}
|
|
393
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download
|
|
413
|
+
*/
|
|
414
|
+
async eventsEventsExportCreateRaw(requestParameters: EventsEventsExportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataExport>> {
|
|
415
|
+
const queryParameters: any = {};
|
|
416
|
+
|
|
417
|
+
if (requestParameters['action'] != null) {
|
|
418
|
+
queryParameters['action'] = requestParameters['action'];
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (requestParameters['actions'] != null) {
|
|
422
|
+
queryParameters['actions'] = requestParameters['actions'];
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (requestParameters['brandName'] != null) {
|
|
426
|
+
queryParameters['brand_name'] = requestParameters['brandName'];
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
if (requestParameters['clientIp'] != null) {
|
|
430
|
+
queryParameters['client_ip'] = requestParameters['clientIp'];
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (requestParameters['contextAuthorizedApp'] != null) {
|
|
434
|
+
queryParameters['context_authorized_app'] = requestParameters['contextAuthorizedApp'];
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
if (requestParameters['contextModelApp'] != null) {
|
|
438
|
+
queryParameters['context_model_app'] = requestParameters['contextModelApp'];
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
if (requestParameters['contextModelName'] != null) {
|
|
442
|
+
queryParameters['context_model_name'] = requestParameters['contextModelName'];
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
if (requestParameters['contextModelPk'] != null) {
|
|
446
|
+
queryParameters['context_model_pk'] = requestParameters['contextModelPk'];
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
if (requestParameters['ordering'] != null) {
|
|
450
|
+
queryParameters['ordering'] = requestParameters['ordering'];
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
if (requestParameters['search'] != null) {
|
|
454
|
+
queryParameters['search'] = requestParameters['search'];
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
if (requestParameters['username'] != null) {
|
|
458
|
+
queryParameters['username'] = requestParameters['username'];
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
462
|
+
|
|
463
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
464
|
+
const token = this.configuration.accessToken;
|
|
465
|
+
const tokenString = await token("authentik", []);
|
|
466
|
+
|
|
467
|
+
if (tokenString) {
|
|
468
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
let urlPath = `/events/events/export/`;
|
|
473
|
+
|
|
474
|
+
const response = await this.request({
|
|
475
|
+
path: urlPath,
|
|
476
|
+
method: 'POST',
|
|
477
|
+
headers: headerParameters,
|
|
478
|
+
query: queryParameters,
|
|
479
|
+
}, initOverrides);
|
|
480
|
+
|
|
481
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataExportFromJSON(jsonValue));
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download
|
|
486
|
+
*/
|
|
487
|
+
async eventsEventsExportCreate(requestParameters: EventsEventsExportCreateRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataExport> {
|
|
488
|
+
const response = await this.eventsEventsExportCreateRaw(requestParameters, initOverrides);
|
|
489
|
+
return await response.value();
|
|
490
|
+
}
|
|
491
|
+
|
|
394
492
|
/**
|
|
395
493
|
* Event Read-Only Viewset
|
|
396
494
|
*/
|
|
@@ -1850,6 +1948,41 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1850
1948
|
|
|
1851
1949
|
}
|
|
1852
1950
|
|
|
1951
|
+
/**
|
|
1952
|
+
* @export
|
|
1953
|
+
*/
|
|
1954
|
+
export const EventsEventsExportCreateActionsEnum = {
|
|
1955
|
+
AuthorizeApplication: 'authorize_application',
|
|
1956
|
+
ConfigurationError: 'configuration_error',
|
|
1957
|
+
Custom: 'custom_',
|
|
1958
|
+
EmailSent: 'email_sent',
|
|
1959
|
+
ExportReady: 'export_ready',
|
|
1960
|
+
FlowExecution: 'flow_execution',
|
|
1961
|
+
ImpersonationEnded: 'impersonation_ended',
|
|
1962
|
+
ImpersonationStarted: 'impersonation_started',
|
|
1963
|
+
InvitationUsed: 'invitation_used',
|
|
1964
|
+
Login: 'login',
|
|
1965
|
+
LoginFailed: 'login_failed',
|
|
1966
|
+
Logout: 'logout',
|
|
1967
|
+
ModelCreated: 'model_created',
|
|
1968
|
+
ModelDeleted: 'model_deleted',
|
|
1969
|
+
ModelUpdated: 'model_updated',
|
|
1970
|
+
PasswordSet: 'password_set',
|
|
1971
|
+
PolicyException: 'policy_exception',
|
|
1972
|
+
PolicyExecution: 'policy_execution',
|
|
1973
|
+
PropertyMappingException: 'property_mapping_exception',
|
|
1974
|
+
SecretRotate: 'secret_rotate',
|
|
1975
|
+
SecretView: 'secret_view',
|
|
1976
|
+
SourceLinked: 'source_linked',
|
|
1977
|
+
SuspiciousRequest: 'suspicious_request',
|
|
1978
|
+
SystemException: 'system_exception',
|
|
1979
|
+
SystemTaskException: 'system_task_exception',
|
|
1980
|
+
SystemTaskExecution: 'system_task_execution',
|
|
1981
|
+
UpdateAvailable: 'update_available',
|
|
1982
|
+
UserWrite: 'user_write',
|
|
1983
|
+
UnknownDefaultOpenApi: '11184809'
|
|
1984
|
+
} as const;
|
|
1985
|
+
export type EventsEventsExportCreateActionsEnum = typeof EventsEventsExportCreateActionsEnum[keyof typeof EventsEventsExportCreateActionsEnum];
|
|
1853
1986
|
/**
|
|
1854
1987
|
* @export
|
|
1855
1988
|
*/
|
|
@@ -1858,6 +1991,7 @@ export const EventsEventsListActionsEnum = {
|
|
|
1858
1991
|
ConfigurationError: 'configuration_error',
|
|
1859
1992
|
Custom: 'custom_',
|
|
1860
1993
|
EmailSent: 'email_sent',
|
|
1994
|
+
ExportReady: 'export_ready',
|
|
1861
1995
|
FlowExecution: 'flow_execution',
|
|
1862
1996
|
ImpersonationEnded: 'impersonation_ended',
|
|
1863
1997
|
ImpersonationStarted: 'impersonation_started',
|
|
@@ -1892,6 +2026,7 @@ export const EventsEventsVolumeListActionsEnum = {
|
|
|
1892
2026
|
ConfigurationError: 'configuration_error',
|
|
1893
2027
|
Custom: 'custom_',
|
|
1894
2028
|
EmailSent: 'email_sent',
|
|
2029
|
+
ExportReady: 'export_ready',
|
|
1895
2030
|
FlowExecution: 'flow_execution',
|
|
1896
2031
|
ImpersonationEnded: 'impersonation_ended',
|
|
1897
2032
|
ImpersonationStarted: 'impersonation_started',
|
package/src/apis/PoliciesApi.ts
CHANGED
|
@@ -4512,6 +4512,7 @@ export const PoliciesEventMatcherListActionEnum = {
|
|
|
4512
4512
|
ConfigurationError: 'configuration_error',
|
|
4513
4513
|
Custom: 'custom_',
|
|
4514
4514
|
EmailSent: 'email_sent',
|
|
4515
|
+
ExportReady: 'export_ready',
|
|
4515
4516
|
FlowExecution: 'flow_execution',
|
|
4516
4517
|
ImpersonationEnded: 'impersonation_ended',
|
|
4517
4518
|
ImpersonationStarted: 'impersonation_started',
|
package/src/apis/RbacApi.ts
CHANGED
|
@@ -1411,6 +1411,7 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
1411
1411
|
AuthentikProvidersSsfSsfprovider: 'authentik_providers_ssf.ssfprovider',
|
|
1412
1412
|
AuthentikRbacInitialpermissions: 'authentik_rbac.initialpermissions',
|
|
1413
1413
|
AuthentikRbacRole: 'authentik_rbac.role',
|
|
1414
|
+
AuthentikReportsDataexport: 'authentik_reports.dataexport',
|
|
1414
1415
|
AuthentikSourcesKerberosGroupkerberossourceconnection: 'authentik_sources_kerberos.groupkerberossourceconnection',
|
|
1415
1416
|
AuthentikSourcesKerberosKerberossource: 'authentik_sources_kerberos.kerberossource',
|
|
1416
1417
|
AuthentikSourcesKerberosKerberossourcepropertymapping: 'authentik_sources_kerberos.kerberossourcepropertymapping',
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.12.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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
DataExport,
|
|
19
|
+
GenericError,
|
|
20
|
+
PaginatedDataExportList,
|
|
21
|
+
ValidationError,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
DataExportFromJSON,
|
|
25
|
+
DataExportToJSON,
|
|
26
|
+
GenericErrorFromJSON,
|
|
27
|
+
GenericErrorToJSON,
|
|
28
|
+
PaginatedDataExportListFromJSON,
|
|
29
|
+
PaginatedDataExportListToJSON,
|
|
30
|
+
ValidationErrorFromJSON,
|
|
31
|
+
ValidationErrorToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface ReportsExportsDestroyRequest {
|
|
35
|
+
id: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ReportsExportsListRequest {
|
|
39
|
+
ordering?: string;
|
|
40
|
+
page?: number;
|
|
41
|
+
pageSize?: number;
|
|
42
|
+
search?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ReportsExportsRetrieveRequest {
|
|
46
|
+
id: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
export class ReportsApi extends runtime.BaseAPI {
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
*/
|
|
56
|
+
async reportsExportsDestroyRaw(requestParameters: ReportsExportsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
57
|
+
if (requestParameters['id'] == null) {
|
|
58
|
+
throw new runtime.RequiredError(
|
|
59
|
+
'id',
|
|
60
|
+
'Required parameter "id" was null or undefined when calling reportsExportsDestroy().'
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const queryParameters: any = {};
|
|
65
|
+
|
|
66
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
67
|
+
|
|
68
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
69
|
+
const token = this.configuration.accessToken;
|
|
70
|
+
const tokenString = await token("authentik", []);
|
|
71
|
+
|
|
72
|
+
if (tokenString) {
|
|
73
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
let urlPath = `/reports/exports/{id}/`;
|
|
78
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
79
|
+
|
|
80
|
+
const response = await this.request({
|
|
81
|
+
path: urlPath,
|
|
82
|
+
method: 'DELETE',
|
|
83
|
+
headers: headerParameters,
|
|
84
|
+
query: queryParameters,
|
|
85
|
+
}, initOverrides);
|
|
86
|
+
|
|
87
|
+
return new runtime.VoidApiResponse(response);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
*/
|
|
92
|
+
async reportsExportsDestroy(requestParameters: ReportsExportsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
93
|
+
await this.reportsExportsDestroyRaw(requestParameters, initOverrides);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
*/
|
|
98
|
+
async reportsExportsListRaw(requestParameters: ReportsExportsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedDataExportList>> {
|
|
99
|
+
const queryParameters: any = {};
|
|
100
|
+
|
|
101
|
+
if (requestParameters['ordering'] != null) {
|
|
102
|
+
queryParameters['ordering'] = requestParameters['ordering'];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (requestParameters['page'] != null) {
|
|
106
|
+
queryParameters['page'] = requestParameters['page'];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (requestParameters['pageSize'] != null) {
|
|
110
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (requestParameters['search'] != null) {
|
|
114
|
+
queryParameters['search'] = requestParameters['search'];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
118
|
+
|
|
119
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
120
|
+
const token = this.configuration.accessToken;
|
|
121
|
+
const tokenString = await token("authentik", []);
|
|
122
|
+
|
|
123
|
+
if (tokenString) {
|
|
124
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
let urlPath = `/reports/exports/`;
|
|
129
|
+
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: urlPath,
|
|
132
|
+
method: 'GET',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
}, initOverrides);
|
|
136
|
+
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedDataExportListFromJSON(jsonValue));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
*/
|
|
142
|
+
async reportsExportsList(requestParameters: ReportsExportsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedDataExportList> {
|
|
143
|
+
const response = await this.reportsExportsListRaw(requestParameters, initOverrides);
|
|
144
|
+
return await response.value();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
*/
|
|
149
|
+
async reportsExportsRetrieveRaw(requestParameters: ReportsExportsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataExport>> {
|
|
150
|
+
if (requestParameters['id'] == null) {
|
|
151
|
+
throw new runtime.RequiredError(
|
|
152
|
+
'id',
|
|
153
|
+
'Required parameter "id" was null or undefined when calling reportsExportsRetrieve().'
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const queryParameters: any = {};
|
|
158
|
+
|
|
159
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
160
|
+
|
|
161
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
162
|
+
const token = this.configuration.accessToken;
|
|
163
|
+
const tokenString = await token("authentik", []);
|
|
164
|
+
|
|
165
|
+
if (tokenString) {
|
|
166
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
let urlPath = `/reports/exports/{id}/`;
|
|
171
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
172
|
+
|
|
173
|
+
const response = await this.request({
|
|
174
|
+
path: urlPath,
|
|
175
|
+
method: 'GET',
|
|
176
|
+
headers: headerParameters,
|
|
177
|
+
query: queryParameters,
|
|
178
|
+
}, initOverrides);
|
|
179
|
+
|
|
180
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataExportFromJSON(jsonValue));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
*/
|
|
185
|
+
async reportsExportsRetrieve(requestParameters: ReportsExportsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataExport> {
|
|
186
|
+
const response = await this.reportsExportsRetrieveRaw(requestParameters, initOverrides);
|
|
187
|
+
return await response.value();
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
}
|
package/src/apis/index.ts
CHANGED
package/src/models/AppEnum.ts
CHANGED
|
@@ -89,6 +89,7 @@ export const AppEnum = {
|
|
|
89
89
|
AuthentikEnterpriseProvidersRadius: 'authentik.enterprise.providers.radius',
|
|
90
90
|
AuthentikEnterpriseProvidersScim: 'authentik.enterprise.providers.scim',
|
|
91
91
|
AuthentikEnterpriseProvidersSsf: 'authentik.enterprise.providers.ssf',
|
|
92
|
+
AuthentikEnterpriseReports: 'authentik.enterprise.reports',
|
|
92
93
|
AuthentikEnterpriseSearch: 'authentik.enterprise.search',
|
|
93
94
|
AuthentikEnterpriseStagesAuthenticatorEndpointGdtc: 'authentik.enterprise.stages.authenticator_endpoint_gdtc',
|
|
94
95
|
AuthentikEnterpriseStagesMtls: 'authentik.enterprise.stages.mtls',
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.12.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 ContentType
|
|
20
|
+
*/
|
|
21
|
+
export interface ContentType {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ContentType
|
|
26
|
+
*/
|
|
27
|
+
readonly id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ContentType
|
|
32
|
+
*/
|
|
33
|
+
readonly appLabel: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ContentType
|
|
38
|
+
*/
|
|
39
|
+
readonly model: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ContentType interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfContentType(value: object): value is ContentType {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('appLabel' in value) || value['appLabel'] === undefined) return false;
|
|
48
|
+
if (!('model' in value) || value['model'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ContentTypeFromJSON(json: any): ContentType {
|
|
53
|
+
return ContentTypeFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ContentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentType {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'appLabel': json['app_label'],
|
|
64
|
+
'model': json['model'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ContentTypeToJSON(json: any): ContentType {
|
|
69
|
+
return ContentTypeToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ContentTypeToJSONTyped(value?: Omit<ContentType, 'id'|'app_label'|'model'> | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|