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

Function makeSession

src/components/Feedback.submit.test.ts:13–60  ·  view source on GitHub ↗
(
  overrides: Partial<ResolvedAuthSession> = {},
)

Source from the content-addressed store, hash-verified

11const originalDisableNonessentialTraffic = process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
12
13function makeSession(
14 overrides: Partial<ResolvedAuthSession> = {},
15): ResolvedAuthSession {
16 return {
17 principalKind: 'noumena_account',
18 principalSource: 'managed_oauth',
19 sessionState: 'usable',
20 headersKind: 'bearer',
21 providerAuthKind: 'noumena_first_party',
22 providerPlan: {
23 mode: 'noumena_managed',
24 source: 'managed_principal',
25 staticKeyEnvVarName: null,
26 },
27 isInteractive: true,
28 canRefresh: true,
29 canReauthenticateInteractively: true,
30 identity: {
31 email: 'user@noumena.net',
32 accountUuid: 'acct-1',
33 organizationUuid: 'org-1',
34 organizationName: 'Noumena',
35 },
36 subscription: {
37 subscriptionName: 'Noumena Max',
38 subscriptionType: 'max',
39 rateLimitTier: 'tier-1',
40 },
41 scopes: ['user:inference'],
42 hasUsableToken: true,
43 hasUsableApiKey: false,
44 accessToken: 'managed-token',
45 accessTokenExpiresAt: Date.now() + 60_000,
46 refreshTokenPresent: true,
47 apiKey: null,
48 rawAuthTokenSource: 'noumena.com',
49 rawApiKeySource: null,
50 recoveryAction: 'none',
51 recoveryMessage: null,
52 sourceDetails: {
53 usedLegacyCompat: false,
54 usedEnvVar: false,
55 usedFileDescriptor: false,
56 usedHelper: false,
57 },
58 ...overrides,
59 }
60}
61
62function makeFeedbackData(): FeedbackData {
63 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected