T3 Code Atlas

contracts/auth

50 schemas in 1 file.

Stablev0.1.14c0eed7328db2· 2026-12-05

Blast radius

6 direct · 2 transitive workspaces · 6 apps affected

What a change to these 50 schemas can reach, from workspace dependencies, imports, call sites, and protocol edges.

Affected apps (browser, edge, electron-main, electron-preload, node, react-native, worker)
Contracts in its surface274 RPC13 HTTP2 IPC
Framework
effect-schema
Shape
›{3 fields }
pairingLinks: AuthPairingLink[]
clientSessions: AuthClientSession[]
connectDevices?: AuthConnectDevice[]
Framework
effect-schema
Shape
›{4 fields }
version: 1
revision: number
type: "clientRemoved"
›payload: {1 field }
sessionId: makeEntityId
Framework
effect-schema
Shape
›{4 fields }
version: 1
revision: number
type: "clientUpserted"
Framework
effect-schema
Shape
›{2 fields }
_tag: "AuthAccessStreamError"
message: string
Framework
effect-schema
Shape
›{4 fields }
version: 1
revision: number
type: "pairingLinkRemoved"
›payload: {1 field }
Framework
effect-schema
Shape
›{4 fields }
version: 1
revision: number
type: "pairingLinkUpserted"
Framework
effect-schema
Shape
›{4 fields }
version: 1
revision: number
type: "snapshot"
Framework
effect-schema
Shape
›{5 fields }
access_token: TrimmedNonEmptyString
issued_token_type: "urn:ietf:params:oauth:token-type:access_token"
token_type: "Bearer" | "DPoP"
expires_in: number
Framework
effect-schema
Shape
›{1 field }
approved: boolean
Framework
effect-schema
Shape
›{5 fields }
authenticated: true
permissions?: ForwardCompatibleArray
expiresAt: date
Framework
effect-schema
Shape
"desktop" | "mobile" | "tablet" | "bot" | "unknown"
Framework
effect-schema
Shape
›{9 fields }
osMajorVersion?: number
deviceModel?: TrimmedNonEmptyString
surface?: ClientSurface
webDeployment?: ClientWebDeployment
Framework
effect-schema
Shape
›{11 fields }
sessionId: makeEntityId
permissions?: ForwardCompatibleArray
issuedAt: date
expiresAt: date
lastConnectedAt: date | null
connected: boolean
current: boolean
Framework
effect-schema
Shape
›{4 fields }
proofKeyThumbprint: TrimmedNonEmptyString
verificationCode: TrimmedNonEmptyString
approvedAt: date
Framework
effect-schema
Shape
›{2 fields }
verificationCode: TrimmedNonEmptyString
Framework
effect-schema
Shape
›union18 members
| "orchestration:read"
| "orchestration:operate"
| "settings:write"
| "providers:manage"
| "environment:maintain"
| "preview:operate"
| "diagnostics:read"
| "terminal:read"
| "terminal:operate"
| "filesystem:read"
| "filesystem:write"
| "review:write"
| "source-control:write"
| "access:read"
| "access:write"
| "relay:read"
| "relay:write"
| "relay:configure"
Framework
effect-schema
Shape
›union3 members · discriminated by _tag
›| "deny"{1 field }
_tag: "deny"
›| "pairing-code"{3 fields }
_tag: "pairing-code"
›| "browser-session"{3 fields }
_tag: "browser-session"
csrfToken: string
Framework
effect-schema
Shape
›{6 fields }
clientName: string
redirectHost: string
environmentHost: string
csrfToken?: string
oneClickAccess?: AuthMcpClientAccess[]
›runtimeModeCeiling?: {2 fields }
organization: string
maxRuntimeMode: RuntimeMode
Framework
effect-schema
Shape
›{2 fields }
_tag: "AuthMcpApprovalError"
httpApiStatus: 400
Framework
effect-schema
Shape
›{1 field }
redirectTo: string
Framework
effect-schema
Shape
›{7 fields }
response_type?: string
client_id?: string
redirect_uri?: string
code_challenge?: string
code_challenge_method?: string
state?: string
resource?: string
Framework
effect-schema
Shape
"read-only" | "approval-required" | "auto-accept-edits" | "auto" | "full-access"
Framework
effect-schema
Shape
›{4 fields }
client_name: ?
software_id: ?
redirect_uris: ?
token_endpoint_auth_method: ?
Framework
effect-schema
Shape
Schema.Error
Framework
effect-schema
Shape
›{2 fields }
token?: string
token_type_hint?: string
Framework
effect-schema
Shape
Schema.Error
Framework
effect-schema
Shape
›{6 fields }
grant_type?: string
code?: string
redirect_uri?: string
client_id?: string
code_verifier?: string
resource?: string
Framework
effect-schema
Shape
›{4 fields }
access_token: string
token_type: "Bearer"
expires_in: number
scope: string
Framework
effect-schema
Shape
›{1 field }
sessionId: makeEntityId
Framework
effect-schema
Shape
›{1 field }
proofKeyThumbprint: TrimmedNonEmptyString
Framework
effect-schema
Shape
›{1 field }
revoked: boolean
Framework
effect-schema
Shape
›{7 fields }
authenticated: boolean
permissions?: ForwardCompatibleArray
sessionMethod?: ServerAuthSessionMethod
sessionId?: makeEntityId
expiresAt?: date
Framework
effect-schema
Shape
›{8 fields }
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange"
subject_token: TrimmedNonEmptyString
subject_token_type: "urn:t3:params:oauth:token-type:environment-bootstrap" | "urn:ietf:params:oauth:token-type:access_token"
requested_token_type: "urn:ietf:params:oauth:token-type:access_token"
client_label?: TrimmedNonEmptyString
client_device_type?: AuthClientMetadataDeviceType
Framework
effect-schema
Shape
›{2 fields }
ticket: string
expiresAt: date
Framework
effect-schema
Shape
"rpc" | "media"
Framework
effect-schema
Shape
›{4 fields }
_tag: "EnvironmentAuthorizationError"
message: string
requiredScope: AuthEnvironmentScope
requiredPermission?: string
Framework
effect-schema
Shape
"desktop-bootstrap" | "one-time-token"
Framework
effect-schema
Shape
›{5 fields }
bootstrapMethods: ServerAuthBootstrapMethod[]
sessionMethods: ServerAuthSessionMethod[]
sessionCookieName: TrimmedNonEmptyString
serverUpdateScope?: "environment:maintain"
Framework
effect-schema
Shape
"desktop-managed-local" | "loopback-browser" | "remote-reachable" | "unsafe-no-auth"
Framework
effect-schema
Shape
"browser-session-cookie" | "bearer-access-token" | "dpop-access-token"
Powered by Everdoc. Compiled from source by static analysis; no LLM in the loop.Stable v0.1.14c0eed7328db22026-12-05