MCPcopy Create free account
hub / github.com/Noumena-Network/code / getSubscriptionName

Function getSubscriptionName

src/utils/auth.ts:1989–2007  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1987}
1988
1989export 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) */
2010export function isUsing3PServices(): boolean {

Callers 1

getAccountInformationFunction · 0.85

Calls 1

getSubscriptionTypeFunction · 0.85

Tested by

no test coverage detected