| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| export const HIGH_LEVEL_ACTIONS = [
|
|
|
| "provider.credentials.created",
|
| "provider.credentials.applied",
|
| "provider.credentials.updated",
|
| "provider.credentials.revoked",
|
| "provider.credentials.batch_revoked",
|
| "provider.credentials.bulk_created",
|
| "provider.credentials.bulk_imported",
|
| "provider.credentials.imported",
|
| "provider.validation.ssrf_blocked",
|
|
|
|
|
| "auth.login.success",
|
| "auth.login.error",
|
| "auth.login.failed",
|
| "auth.login.locked",
|
| "auth.login.misconfigured",
|
| "auth.login.setup_required",
|
| "auth.logout.success",
|
|
|
|
|
| "sync.token.created",
|
| "sync.token.revoked",
|
|
|
|
|
| "settings.update",
|
| "settings.update_failed",
|
|
|
|
|
| "service.reveal_api_key",
|
|
|
|
|
| "quota.pool.created",
|
| "quota.pool.updated",
|
| "quota.pool.deleted",
|
| "quota.plan.updated",
|
| "quota.store.driver_changed",
|
| ] as const;
|
|
|
| export type HighLevelAction = (typeof HIGH_LEVEL_ACTIONS)[number];
|
|
|
| const SET: ReadonlySet<string> = new Set<string>(HIGH_LEVEL_ACTIONS);
|
|
|
| export function isHighLevelAction(action: string): boolean {
|
| return SET.has(action);
|
| }
|
|
|