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.
authentik/web/src/api/Events.ts

30 lines
554 B
TypeScript
Raw Normal View History

import { Event } from "@goauthentik/api";
export interface EventUser {
pk: number;
email?: string;
username: string;
on_behalf_of?: EventUser;
}
export interface EventContext {
[key: string]: EventContext | EventModel | string | number | string[];
}
2020-12-01 21:17:07 +00:00
export interface EventWithContext extends Event {
user: EventUser;
context: EventContext;
2020-12-01 21:17:07 +00:00
}
export interface EventModel {
pk: string;
name: string;
app: string;
model_name: string;
}
export interface EventRequest {
path: string;
method: string;
}