(session: VoiceSession)
| 10 | | undefined |
| 11 | |
| 12 | export function hasUsableVoiceSession(session: VoiceSession): boolean { |
| 13 | return Boolean( |
| 14 | session && |
| 15 | session.providerPlan.mode === 'noumena_managed' && |
| 16 | session.headersKind === 'bearer' && |
| 17 | session.scopes.includes('user:inference') && |
| 18 | session.accessToken, |
| 19 | ) |
| 20 | } |
| 21 | |
| 22 | export function getCurrentVoiceSession(): ResolvedAuthSession | null { |
| 23 | const session = getAuthRuntime().getCurrentSession() |
no outgoing calls
no test coverage detected