buildPermissionList() — supabase Function Reference
Architecture documentation for the buildPermissionList() function in AccessToken.constants.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 3e732b74_4698_5293_2916_faf61bc26ab4["buildPermissionList()"] a3fc8b57_39bf_3416_7c70_7a4c9406e086["getResource()"] 3e732b74_4698_5293_2916_faf61bc26ab4 -->|calls| a3fc8b57_39bf_3416_7c70_7a4c9406e086 9282654a_291c_dbb0_907a_074fd7ba1734["getAction()"] 3e732b74_4698_5293_2916_faf61bc26ab4 -->|calls| 9282654a_291c_dbb0_907a_074fd7ba1734 style 3e732b74_4698_5293_2916_faf61bc26ab4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Account/AccessTokens/AccessToken.constants.ts lines 33–55
const buildPermissionList = () => {
const list: Array<{
scope: string
resource: string
action: string
id: string
title: string
}> = []
for (const [scope, scopePerms] of Object.entries(FGA)) {
for (const [key, perm] of Object.entries(scopePerms)) {
list.push({
scope: scope.toLowerCase(),
resource: getResource(key),
action: getAction(key),
id: perm.id,
title: perm.title,
})
}
}
return list
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does buildPermissionList() do?
buildPermissionList() is a function in the supabase codebase.
What does buildPermissionList() call?
buildPermissionList() calls 2 function(s): getAction, getResource.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free