( organizationId: string, userId: string, )
| 1 | export const workspacePermissionChecks = ( |
| 2 | organizationId: string, |
| 3 | userId: string, |
| 4 | ) => |
| 5 | ({ |
| 6 | createWorkspaceForUserID: { |
| 7 | object: { |
| 8 | resource_type: "workspace", |
| 9 | organization_id: organizationId, |
| 10 | owner_id: userId, |
| 11 | }, |
| 12 | action: "create", |
| 13 | }, |
| 14 | }) as const; |
| 15 | |
| 16 | export type WorkspacePermissions = Record< |
| 17 | keyof ReturnType<typeof workspacePermissionChecks>, |
no outgoing calls
no test coverage detected