()
| 1987 | } |
| 1988 | |
| 1989 | export function getSubscriptionName(): string { |
| 1990 | const subscriptionType = getSubscriptionType() |
| 1991 | |
| 1992 | switch (subscriptionType) { |
| 1993 | case 'enterprise': |
| 1994 | return 'Noumena Enterprise' |
| 1995 | case 'team': |
| 1996 | return 'Noumena Team' |
| 1997 | case 'max': |
| 1998 | return 'Noumena Max' |
| 1999 | case 'pro': |
| 2000 | return 'Noumena Pro' |
| 2001 | default: |
| 2002 | // Managed OAuth logins may not have a concrete subscription tier yet. |
| 2003 | // Preserve the first-party managed/account semantics instead of falling |
| 2004 | // back to the old Anthropic API naming. |
| 2005 | return 'Noumena Managed' |
| 2006 | } |
| 2007 | } |
| 2008 | |
| 2009 | /** Check if using third-party services (Bedrock or Vertex or Foundry) */ |
| 2010 | export function isUsing3PServices(): boolean { |
no test coverage detected