T3 Code Atlas

contracts/device

53 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 53 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 surface11 RPC4 MCP
Framework
effect-schema
Shape
›union14 members · discriminated by type
›| "setAppearance"{4 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "setAppearance"
›| "setTextSize"{4 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "setTextSize"
›| "setToggle"{5 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "setToggle"
setting: "reduceMotion" | "increaseContrast" | "reduceTransparency" | "showBorders" | "voiceOver" | "networkEnabled"
value: boolean
›| "setLiquidGlass"{4 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "setLiquidGlass"
value: "clear" | "tinted"
›| "setColorFilter"{4 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "setColorFilter"
›| "setOrientation"{4 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "setOrientation"
›| "setLocation"{5 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "setLocation"
latitude: number
longitude: number
›| "clearLocation"{3 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "clearLocation"
›| "setPermission"{6 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "setPermission"
permission: DevicePermission
decision: "grant" | "revoke" | "reset"
›| "openUrl"{4 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "openUrl"
›| "launchApp"{4 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "launchApp"
›| "terminateApp"{4 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "terminateApp"
›| "shake"{3 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "shake"
›| "sendPush"{5 fields }
hostId?: DeviceHostId
deviceId: DeviceId
type: "sendPush"
›payload: union2 members
| string
| Record<string, unknown>
Framework
effect-schema
Shape
›{4 fields }
_tag: "DeviceActionUnavailableError"
operation: string
platform: DevicePlatform
reason: "unsupported" | "helper_missing"
Framework
effect-schema
Shape
"light" | "dark"
Framework
effect-schema
Shape
›{6 fields }
_tag: "DeviceBootError"
hostId: DeviceHostId
deviceId: DeviceId
reason: "disk_space" | "timeout" | "launch_failed"
diagnostics?: string
cause: unknown
Framework
effect-schema
Shape
›{4 fields }
hostId?: DeviceHostId
threadId: makeEntityId
deviceId?: DeviceId
shutdown?: boolean
Framework
effect-schema
Shape
"none" | "grayscale" | "red-green" | "green-red" | "blue-yellow"
Framework
effect-schema
Shape
›{3 fields }
enabled?: boolean
agentAccessEnabled?: boolean
onboardingCompleted?: boolean
Framework
effect-schema
Shape
›{5 fields }
hostId: DeviceHostId
deviceId: DeviceId
settings: DeviceSettings
foregroundApp: DeviceForegroundApp | null
readAt: string
Framework
effect-schema
Shape
›{2 fields }
hostId?: DeviceHostId
deviceId: DeviceId
Framework
effect-schema
Shape
›{3 fields }
signedInAs: string
credentialSource: "settings" | "env" | "eas-login"
›apps: arrayof
›{2 fields }
id: string
fullName: string
Framework
effect-schema
Shape
›{2 fields }
_tag: "DeviceEasAccountError"
reason: string
Framework
effect-schema
Shape
›{2 fields }
hostId?: DeviceHostId
accessToken?: SettingsSecretValue
Framework
effect-schema
Shape
›{3 fields }
id: string
name?: string
version?: string
Framework
effect-schema
Shape
"disabled" | "idle" | "installing" | "starting" | "ready" | "failed"
Framework
effect-schema
Shape
›record
value:
›{4 fields }
detail?: string
androidDiscoveryIncomplete?: boolean
incompletePlatforms?: DevicePlatform[]
Framework
effect-schema
Shape
›union3 members
›| {8 fields }
toolInspectionError?: string
hubInstalled: boolean
agentDeviceInstalled: boolean
kind: "local" | "ssh"
›| {8 fields }
toolInspectionError?: string
hubInstalled: boolean
agentDeviceInstalled: boolean
kind: "eas"
›| {8 fields }
toolInspectionError?: string
hubInstalled: boolean
agentDeviceInstalled: boolean
kind: "simlock"
Framework
effect-schema
Shape
›{5 fields }
_tag: "DeviceHostUnavailableError"
hostId: DeviceHostId
hostLabel?: string
reason: string
cause?: unknown
Framework
effect-schema
Shape
›{3 fields }
updateTool?: "hub" | "agent"
inspectOnly?: boolean
retryHostId?: DeviceHostId
Framework
effect-schema
Shape
›{3 fields }
_tag: "DeviceNotFoundError"
hostId: DeviceHostId
deviceId: DeviceId
Framework
effect-schema
Shape
›{5 fields }
threadId: makeEntityId
hostId?: DeviceHostId
deviceId: DeviceId
platform: DevicePlatform
boot?: boolean
Framework
effect-schema
Shape
›{5 fields }
_tag: "DeviceOperationError"
operation: string
reason: "command_failed" | "request_failed" | "invalid_payload" | "settings_failed" | "hub_rejected" | "package_manager_missing"
exitCode?: number
cause: unknown
Framework
effect-schema
Shape
"portrait" | "landscape_left" | "portrait_upside_down" | "landscape_right"
Framework
effect-schema
Shape
›union11 members
| "camera"
| "microphone"
| "photos"
| "contacts"
| "calendar"
| "reminders"
| "location"
| "notifications"
| "motion"
| "media-library"
| "faceid"
Framework
effect-schema
Shape
"ios" | "android"
Framework
effect-schema
Shape
›{3 fields }
platform: DevicePlatform
available: boolean
reason?: string
Framework
effect-schema
Shape
›{4 fields }
_tag: "DevicePlatformUnavailableError"
hostId: DeviceHostId
platform: DevicePlatform
reason: string
Framework
effect-schema
Shape
›{5 fields }
threadId: makeEntityId
hostId: DeviceHostId
deviceId: DeviceId
platform: DevicePlatform
openedAt: string
Framework
effect-schema
Shape
›{11 fields }
appearance?: DeviceAppearance
textSize?: DeviceTextSize
reduceMotion?: boolean
increaseContrast?: boolean
reduceTransparency?: boolean
showBorders?: boolean
voiceOver?: boolean
liquidGlass?: "clear" | "tinted"
colorFilter?: DeviceColorFilter
networkEnabled?: boolean
›location?: union2 members
›| {2 fields }
latitude: number
longitude: number
| null
Framework
effect-schema
Shape
›{3 fields }
hostId?: DeviceHostId
deviceId: DeviceId
platform: DevicePlatform
Framework
effect-schema
Shape
›{3 fields }
gatewayUrl: string
signedInAs: string
tokenSource: "entered" | "settings" | "env"
Framework
effect-schema
Shape
›{2 fields }
_tag: "DeviceSimlockIdentityError"
reason: string
Framework
effect-schema
Shape
›{3 fields }
gatewayUrl?: TrimmedString
hostId?: DeviceHostId
agentToken?: SettingsSecretValue
Framework
effect-schema
Shape
›{7 fields }
hostId: DeviceHostId
platform: DevicePlatform
version: string
booted: boolean
physical: boolean
Framework
effect-schema
Shape
"small" | "default" | "large" | "extra-large"
Framework
effect-schema
Shape
›{3 fields }
deviceId?: DeviceIdDevice to close. None: close all here.
hostId?: DeviceHostId
shutdown?: boolean
Framework
effect-schema
Shape
›{4 fields }
hostStatuses: DeviceHostStatuses
devices: DeviceSummary[]
›open: arrayof
›{2 fields }
hostId: DeviceHostId
deviceId: DeviceId
Framework
effect-schema
Shape
›{3 fields }
deviceId?: DeviceIdDevice id from `device_list`. Default: the booted or last used device.
platform?: DevicePlatformNeeded with no `deviceId` when both platforms exist.
hostId?: DeviceHostIdHost from `device_list`. Default local.
Framework
effect-schema
Shape
›{3 fields }
›agentDevice: {3 fields }
command: string
targetArgs: string[]
session: string
quickStart: string
Framework
effect-schema
Shape
›{2 fields }
›screenshot: {4 fields }
mimeType: "image/png"
data: string
width: number
height: number
Framework
effect-schema
Shape
›{2 fields }
deviceId?: DeviceIdDevice. Default: the last one opened here.
hostId?: DeviceHostId
Framework
effect-schema
Shape
›{3 fields }
_tag: "DeviceToolUnavailableError"
reason: string
cause?: unknown
Framework
effect-schema
Shape
›{3 fields }
requiredVersion: string
installedVersions: string[]
runningVersion: string | null
Framework
effect-schema
Shape
›{8 fields }
kind: "eas"
accessToken: SettingsSecretValue
maxSessionMinutes: number
idleMinutes: number
maxConcurrentSessions: number
Framework
effect-schema
Shape
›{7 fields }
kind: "simlock"
maxLeases: number
maxLeaseMinutes: number
Framework
effect-schema
Shape
›{6 fields }
kind: "ssh"
identityFile?: TrimmedNonEmptyString
port?: number
Powered by Everdoc. Compiled from source by static analysis; no LLM in the loop.Nightly v0.1.14-nightly.20261205.5772c0eed7328db22026-12-05