2025-12-01 18:56:16 +00:00
|
|
|
export type TActivityAction =
|
|
|
|
|
| 'login'
|
|
|
|
|
| 'logout'
|
|
|
|
|
| 'session_created'
|
|
|
|
|
| 'session_revoked'
|
2026-04-20 10:26:22 +00:00
|
|
|
| 'passport_device_enrolled'
|
|
|
|
|
| 'passport_device_revoked'
|
|
|
|
|
| 'passport_challenge_approved'
|
2025-12-01 18:56:16 +00:00
|
|
|
| 'org_created'
|
|
|
|
|
| 'org_joined'
|
|
|
|
|
| 'org_left'
|
|
|
|
|
| 'role_changed'
|
|
|
|
|
| 'profile_updated'
|
|
|
|
|
| 'app_connected'
|
|
|
|
|
| 'app_disconnected';
|
|
|
|
|
|
|
|
|
|
export interface IActivityLog {
|
|
|
|
|
id: string;
|
|
|
|
|
data: {
|
|
|
|
|
userId: string;
|
|
|
|
|
action: TActivityAction;
|
|
|
|
|
timestamp: number;
|
|
|
|
|
metadata: {
|
|
|
|
|
ip?: string;
|
|
|
|
|
userAgent?: string;
|
|
|
|
|
targetId?: string;
|
|
|
|
|
targetType?: string;
|
|
|
|
|
description: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|