(providerPlan: ProviderPlan)
| 327 | } |
| 328 | |
| 329 | function buildProviderAuthKind(providerPlan: ProviderPlan): ProviderAuthKind { |
| 330 | switch (providerPlan.mode) { |
| 331 | case 'noumena_managed': |
| 332 | return 'noumena_first_party' |
| 333 | case 'byok_static_env': |
| 334 | return 'byok_static_env' |
| 335 | case 'third_party_provider': |
| 336 | return 'third_party_provider' |
| 337 | case 'none': |
| 338 | return 'none' |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | function buildManagedSessionSnapshot(): null | ResolvedAuthSession { |
| 343 | const storedManagedTokens = getStoredManagedOauthTokens(false) |
no outgoing calls
no test coverage detected