( workspaceState: WorkspaceOwnershipState )
| 94 | * keep their access — this policy only governs *new* invitations. |
| 95 | */ |
| 96 | export async function getWorkspaceInvitePolicy( |
| 97 | workspaceState: WorkspaceOwnershipState |
| 98 | ): Promise<WorkspaceInvitePolicy> { |
| 99 | const billedPlanCategory = isBillingEnabled |
| 100 | ? await resolveBilledPlanCategory(workspaceState) |
| 101 | : 'free' |
| 102 | return evaluateWorkspaceInvitePolicy(workspaceState, { billedPlanCategory }) |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Pure evaluator — given the billed account's resolved plan category, |
no test coverage detected