Skip to content

SupabaseOwnerOrAdminNativePoliciesOptions

SupabaseOwnerOrAdminNativePoliciesOptions = object

Defined in: packages/contracts/src/supabase-rls.ts:56

optional adminRoleName?: string

Defined in: packages/contracts/src/supabase-rls.ts:61

Role value (in app_metadata.roles) that bypasses ownership (default “admin”).


optional adminRolesClaimPath?: readonly string[]

Defined in: packages/contracts/src/supabase-rls.ts:68

Path to the roles array in the claims. Defaults to adminRolesClaimPath; pass the SAME value to resolveOwnerOrAdminAccess / buildOwnerOrAdminShapeWhere so both surfaces read one claim.


ownerColumn: AnyColumn

Defined in: packages/contracts/src/supabase-rls.ts:58

Owner column on the governed row (e.g. authors.ownerId). The governed table name is derived from it.


role: PgRole

Defined in: packages/contracts/src/supabase-rls.ts:59


optional subjectCastType?: string

Defined in: packages/contracts/src/supabase-rls.ts:63

SQL type the JWT subject is cast to before comparison (default “uuid”).