()
| 1137 | } |
| 1138 | |
| 1139 | export async function getAvailableProfiles(): Promise<Record<string, PermissionConfig>> { |
| 1140 | const config = await get() |
| 1141 | return { ...DEFAULT_PERMISSION_PROFILES, ...config.permission_profile } |
| 1142 | } |
| 1143 | |
| 1144 | export async function getProfile(name: string): Promise<PermissionConfig | undefined> { |
| 1145 | const profiles = await getAvailableProfiles() |