T3 Code Atlas

contracts/usage

18 schemas in 1 file.

Nightlyv0.1.14-nightly.20261205.5772c0eed7328db2· 2026-12-05

Blast radius

3 direct · 5 transitive workspaces · 6 apps affected

What a change to these 18 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 surface2 RPC
Framework
effect-schema
Shape
›{17 fields }
sourcePath?: NonBlankString
costUsd: number
cacheSavingsUsd: number
categoryCostUsd?: UsageCategoryCost
fastCostUsd?: number
ultrafastCostUsd?: number
speedPremiumUsd?: number
costSource: UsageCostSource
unpricedRecords: NonNegativeInt
unpricedTokens?: NonNegativeInt
sessions: NonNegativeInt
Framework
effect-schema
Shape
›{4 fields }
input: number
cacheRead: number
cacheWrite: number
output: number
Framework
effect-schema
Shape
"providerReported" | "modelPriced" | "unpriced"
Framework
effect-schema
Shape
›{2 fields }
include?: UsageModelSelector[]
exclude?: UsageModelSelector[]
Framework
effect-schema
Shape
›{4 fields }
fetchedAt: string | null
knownModels: NonNegativeInt
Framework
effect-schema
Shape
"fresh" | "cached" | "unavailable"
Framework
effect-schema
Shape
›union8 members
| "claude"
| "codex"
| "grok"
| "cursor"
| "opencode"
| "antigravity"
| "pi"
| "muse"
Framework
effect-schema
Shape
›{4 fields }
_tag: "UsageReadError"
reason: "scanFailed" | "invalidWindow"
cause?: unknown
Framework
effect-schema
Shape
"day" | "hour"
Framework
effect-schema
Shape
›{8 fields }
scannedFiles: NonNegativeInt
skippedFiles: NonNegativeInt
malformedRecords: NonNegativeInt
distinctSessions: NonNegativeInt
message: TrimmedNonEmptyString | null
refreshing?: true
Framework
effect-schema
Shape
›{5 fields }
resolvedHomePath: NonBlankString
volumeId: string
physicalSourceId?: TrimmedNonEmptyString
Framework
effect-schema
Shape
"ok" | "missing" | "partial" | "failed"
Framework
effect-schema
Shape
›{11 fields }
contractVersion: number
readAt: string
sinceDay: UsageDay
untilDay: UsageDay
buckets: ForwardCompatibleArray
sources: ForwardCompatibleArray
pricing: UsagePricing
scanDurationMs: NonNegativeInt
modelFilter?: UsageModelFilter
accessRequests?: ForwardCompatibleArray
Framework
effect-schema
Shape
›{10 fields }
sinceDay: UsageDay
untilDay: UsageDay
resolution?: UsageResolution
awaitRefresh?: boolean
provisional?: boolean
maxStaleMs?: NonNegativeInt
modelFilter?: UsageModelFilter
Framework
effect-schema
Shape
›{5 fields }
uncachedInputTokens: NonNegativeInt
cachedInputTokens: NonNegativeInt
cacheCreationTokens: NonNegativeInt
outputTokens: NonNegativeInt
reasoningTokens: NonNegativeInt
Powered by Everdoc. Compiled from source by static analysis; no LLM in the loop.Nightly v0.1.14-nightly.20261205.5772c0eed7328db22026-12-05