Apps.constants.ts15 lines · main
| 1 | import { permissions } from '@supabase/shared-types' |
| 2 | |
| 3 | export interface Permission { |
| 4 | id: string |
| 5 | label: string |
| 6 | description: string |
| 7 | } |
| 8 | |
| 9 | export const PERMISSIONS: Permission[] = Object.values(permissions.FgaPermissions.PROJECT).map( |
| 10 | (perm) => ({ |
| 11 | id: perm.id, |
| 12 | label: perm.id, |
| 13 | description: perm.title, |
| 14 | }) |
| 15 | ) |