This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-03-16 20:32:39 +00:00
|
|
|
import { Event } from "authentik-api";
|
2020-12-28 13:26:41 +00:00
|
|
|
|
|
|
|
export interface EventUser {
|
|
|
|
pk: number;
|
|
|
|
email?: string;
|
|
|
|
username: string;
|
|
|
|
on_behalf_of?: EventUser;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface EventContext {
|
2021-06-14 15:34:42 +00:00
|
|
|
[key: string]: EventContext | EventModel | string | number | string[];
|
2020-12-28 13:26:41 +00:00
|
|
|
}
|
2020-12-01 21:17:07 +00:00
|
|
|
|
2021-03-08 10:14:00 +00:00
|
|
|
export interface EventWithContext extends Event {
|
2020-12-28 13:26:41 +00:00
|
|
|
user: EventUser;
|
|
|
|
context: EventContext;
|
2020-12-01 21:17:07 +00:00
|
|
|
}
|
2021-06-14 15:34:42 +00:00
|
|
|
|
|
|
|
export interface EventModel {
|
|
|
|
pk: string;
|
|
|
|
name: string;
|
|
|
|
app: string;
|
|
|
|
model_name: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface EventRequest {
|
|
|
|
path: string;
|
|
|
|
method: string;
|
|
|
|
}
|