GeneratedPolicy Type — supabase Architecture
Architecture documentation for the GeneratedPolicy type/interface in Policies.utils.ts from the supabase codebase.
Entity Profile
Source Code
apps/studio/components/interfaces/Auth/Policies/Policies.utils.ts lines 167–172
export type GeneratedPolicy = Required<
Pick<CreatePolicyBody, 'name' | 'table' | 'schema' | 'action' | 'roles'>
> &
Pick<CreatePolicyBody, 'command' | 'definition' | 'check'> & {
sql: string
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free