# Schemas: contracts/ipc

> T3 Code · channel `stable` · v0.1.14 @ [`c0eed7328db2`](https://github.com/pingdotgg/t3code/tree/c0eed7328db2609e5a535be704e90638aef1c111) · 2026-12-05 · generated by Everdoc from source (no LLM).

97 entries.

<a id="schema-contextmenuitemschema"></a>

## `ContextMenuItemSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:58](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L58-L74)
- Shape: `{ id: string; label: string; detail?: string; destructive?: boolean; disabled?: boolean; header?: boolean; icon?: string; iconImage?: string; separatorBefore?: boolean; checked?: boolean; children?: suspend[] }`

<a id="schema-contextmenusource"></a>

## `ContextMenuSource`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:78](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L78)
- Shape: `"mouse" | "keyboard"`

<a id="schema-desktopappbrandingschema"></a>

## `DesktopAppBrandingSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:117](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L117-L121)
- Shape: `{ baseName: string; stageLabel: DesktopAppStageLabelSchema; displayName: string }`

<a id="schema-desktopappstagelabelschema"></a>

## `DesktopAppStageLabelSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:109](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L109)
- Shape: `"Alpha" | "Beta" | "Dev" | "Nightly"`

<a id="schema-desktopapplespeechresultschema"></a>

## `DesktopAppleSpeechResultSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1108](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1108-L1114)
- Shape: `{ ok: true; value: string } | { ok: false; code: "unavailable" | "unsupported-locale" | "failed" }`

<a id="schema-desktopapplespeechtranscribeinputschema"></a>

## `DesktopAppleSpeechTranscribeInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1117](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1117-L1121)
- Shape: `{ locale: string; pcm: Uint8Array }`

<a id="schema-desktopcaptureconfigapplied"></a>

## `DesktopCaptureConfigApplied`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:181](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L181-L184)
- Shape: `{ backupPath: string | null; warning: string | null }`

<a id="schema-desktopcaptureconfigpreview"></a>

## `DesktopCaptureConfigPreview`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:170](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L170-L178)
- Shape: `{ id: string; path: string; resolvedPath: string; before: string; after: string; shortcut: string; operation: "install" | "remove" }`

<a id="schema-desktopcaptureconfigrequest"></a>

## `DesktopCaptureConfigRequest`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:163](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L163-L167)
- Shape: `{ operation: "install" | "remove"; chooseFile: boolean; shortcut?: string }`

<a id="schema-desktopcaptureextensionstate"></a>

## `DesktopCaptureExtensionState`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:126](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L126-L138)
- Shape: `{ status: "not-installed" | "disabled" | "enabled" | "restart-required" | "update-required" | "extensions-disabled" | "unsupported" | "error"; message: string }`

<a id="schema-desktopcapturehelperstate"></a>

## `DesktopCaptureHelperState`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:141](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L141-L145)
- Shape: `{ status: "not-installed" | "update-required" | "ready" | "error"; message: string; feedbackAvailable?: boolean }`

<a id="schema-desktopclicommandstateschema"></a>

## `DesktopCliCommandStateSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:349](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L349-L358)
- Shape: `{ supported: boolean; installedPath: string | null; onPath: boolean; shadowedBy?: string; pathSetup?: { file: string; added: boolean }; launcherPath: string | null }`

<a id="schema-desktopdiscoveredsshhostschema"></a>

## `DesktopDiscoveredSshHostSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:420](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L420-L426)
- Shape: `{ alias: string; hostname: string; username: string | null; port: number | null; source: DesktopSshHostSourceSchema }`

<a id="schema-desktopenvironmentbootstrapschema"></a>

## `DesktopEnvironmentBootstrapSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:396](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L396-L403)
- Shape: `{ id: string; label: string; runningDistro?: string | null; httpBaseUrl: string | null; wsBaseUrl: string | null; bootstrapToken?: string }`

<a id="schema-desktopmediareadschema"></a>

## `DesktopMediaReadSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1100](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1100-L1104)
- Shape: `{ status: number; mimeType: string; data: Uint8Array }`

<a id="schema-desktoppendingsnapshot"></a>

## `DesktopPendingSnapShot`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:237](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L237-L243)
- Shape: `{ id: DesktopSnapShotId; name: string; mimeType: "image/png"; sizeBytes: number; source: SnapShotSource }`

<a id="schema-desktopportforwardinputschema"></a>

## `DesktopPortForwardInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1033](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1033-L1036)
- Shape: `{ environmentId: makeEntityId; remotePort: PortSchema }`

<a id="schema-desktopportforwardschema"></a>

## `DesktopPortForwardSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1023](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1023-L1028)
- Shape: `{ environmentId: makeEntityId; remotePort: PortSchema; localPort: PortSchema }`

<a id="schema-desktoppreviewannotationsendenabledinputschema"></a>

## `DesktopPreviewAnnotationSendEnabledInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1080](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1080-L1083)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; enabled: boolean }`

<a id="schema-desktoppreviewannotationthemeinputschema"></a>

## `DesktopPreviewAnnotationThemeInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1076](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1076-L1078)
- Shape: `{ theme: DesktopPreviewAnnotationThemeSchema }`

<a id="schema-desktoppreviewannotationthemeschema"></a>

## `DesktopPreviewAnnotationThemeSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:725](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L725-L744)
- Shape: `{ colorScheme: "light" | "dark"; radius: string; background: string; foreground: string; popover: string; popoverForeground: string; primary: string; primaryForeground: string; muted: string; mutedForeground: string; accent: string; accentForeground: string; border: string; input: string; ring: string; fontSans: string; fontMono: string }`

<a id="schema-desktoppreviewannotationvoiceconfigschema"></a>

## `DesktopPreviewAnnotationVoiceConfigSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1281](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1281-L1284)
- Shape: `{ sessionId: string; shortcuts: KeybindingShortcut[] }`

<a id="schema-desktoppreviewannotationvoiceeventschema"></a>

## `DesktopPreviewAnnotationVoiceEventSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1288](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1288-L1316)
- Shape: `{ sessionId: string; text: string; cursor: number; selectionEnd?: number; action: "sync" | "start" | "stop" | "cancel" | "skip" | "settings" | "key" | "focus" | "blur"; keyboard?: { type: "keydown" | "keyup"; key: string; code: string; metaKey: boolean; ctrlKey: boolean; shiftKey: boolean; altKey: boolean; repeat: boolean } }`

<a id="schema-desktoppreviewannotationvoicestateschema"></a>

## `DesktopPreviewAnnotationVoiceStateSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1320](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1320-L1340)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; sessionId: string; available: boolean; phase: "idle" | "preparing" | "recording" | "transcribing" | "post-processing" | "error"; status: string | null; errorAction: "retry" | "settings" | null; preview: string | null; level: number; shortcutLabel: string | null; freezesEditor: boolean; blocksSubmission: boolean; draft: { text: string; cursor: number } | null }`

<a id="schema-desktoppreviewartifactinputschema"></a>

## `DesktopPreviewArtifactInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1085](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1085-L1087)
- Shape: `{ path: string }`

<a id="schema-desktoppreviewcleardatainputschema"></a>

## `DesktopPreviewClearDataInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1038](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1038-L1042)
- Shape: `{ environmentId: makeEntityId; profileId?: BrowserProfileId }`

<a id="schema-desktoppreviewcolorschemeschema"></a>

## `DesktopPreviewColorSchemeSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:609](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L609-L610)
- Shape: `"system" | "light" | "dark"`

<a id="schema-desktoppreviewconfiginputschema"></a>

## `DesktopPreviewConfigInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1003](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1003-L1009)
- Shape: `{ environmentId: makeEntityId; profileId?: BrowserProfileId; tunnelLoopback?: boolean }`

<a id="schema-desktoppreviewcreatetabinputschema"></a>

## `DesktopPreviewCreateTabInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:978](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L978-L985)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; zoomFactor?: number; colorScheme?: DesktopPreviewColorSchemeSchema; serverTab?: { threadId: TrimmedNonEmptyString; tabId: TrimmedNonEmptyString } }`

<a id="schema-desktoppreviewfindinpageinputschema"></a>

## `DesktopPreviewFindInPageInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1054](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1054-L1059)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; text: string; forward: boolean; newSession: boolean }`

<a id="schema-desktoppreviewnavstatus"></a>

## `DesktopPreviewNavStatus`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:595](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L595)
- Shape: `{ kind: "Idle" } | { kind: "Loading"; url: string; title: string } | { kind: "Success"; url: string; title: string } | { kind: "LoadFailed"; url: string; title: string; code: number; description: string }`

<a id="schema-desktoppreviewnavigateinputschema"></a>

## `DesktopPreviewNavigateInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:998](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L998-L1001)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; url: string }`

<a id="schema-desktoppreviewpickelementinputschema"></a>

## `DesktopPreviewPickElementInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1344](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1344-L1347)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; voice?: DesktopPreviewAnnotationVoiceConfigSchema }`

<a id="schema-desktoppreviewreadartifactinputschema"></a>

## `DesktopPreviewReadArtifactInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1089](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1089-L1092)
- Shape: `{ artifactId: string; maxBytes: number }`

<a id="schema-desktoppreviewrecordingartifactschema"></a>

## `DesktopPreviewRecordingArtifactSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:763](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L763-L771)
- Shape: `{ id: string; tabId: DesktopPreviewTabIdSchema; path: string; mimeType: string; sizeBytes: number; createdAt: string }`

<a id="schema-desktoppreviewrecordinginputschema"></a>

## `DesktopPreviewRecordingInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:667](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L667-L683)
- Shape: `{ type: "pointer"; phase: "move" | "down" | "up" | "click"; x: number; y: number; width: number; height: number } | { type: "key"; label: string | null; held: boolean; width: number } | { type: "clear" }`

<a id="schema-desktoppreviewrecordingsaveinputschema"></a>

## `DesktopPreviewRecordingSaveInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1094](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1094-L1098)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; mimeType: string; data: Uint8Array }`

<a id="schema-desktoppreviewregisterwebviewinputschema"></a>

## `DesktopPreviewRegisterWebviewInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:993](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L993-L996)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; webContentsId: number }`

<a id="schema-desktoppreviewscreenshotartifactschema"></a>

## `DesktopPreviewScreenshotArtifactSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:782](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L782-L790)
- Shape: `{ id: string; tabId: DesktopPreviewTabIdSchema; path: string; mimeType: "image/png"; sizeBytes: number; createdAt: string }`

<a id="schema-desktoppreviewsetaudiomutedinputschema"></a>

## `DesktopPreviewSetAudioMutedInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1061](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1061-L1064)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; audioMuted: boolean }`

<a id="schema-desktoppreviewsetcapturedrawninputschema"></a>

## `DesktopPreviewSetCaptureDrawnInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1071](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1071-L1074)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; drawn: boolean }`

<a id="schema-desktoppreviewsetcolorschemeinputschema"></a>

## `DesktopPreviewSetColorSchemeInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1044](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1044-L1047)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; colorScheme: DesktopPreviewColorSchemeSchema }`

<a id="schema-desktoppreviewsetshowninputschema"></a>

## `DesktopPreviewSetShownInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1066](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1066-L1069)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; shown: boolean }`

<a id="schema-desktoppreviewsetzoomfactorinputschema"></a>

## `DesktopPreviewSetZoomFactorInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1049](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1049-L1052)
- Shape: `{ tabId: DesktopPreviewTabIdSchema; zoomFactor: number }`

<a id="schema-desktoppreviewtabidschema"></a>

## `DesktopPreviewTabIdSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:642](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L642-L644)
- Shape: `string`

<a id="schema-desktoppreviewtabinputschema"></a>

## `DesktopPreviewTabInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:973](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L973-L975)
- Shape: `{ tabId: DesktopPreviewTabIdSchema }`

<a id="schema-desktoppreviewtunnelaccessresolutioninputschema"></a>

## `DesktopPreviewTunnelAccessResolutionInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1016](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1016-L1020)
- Shape: `{ requestId: string; url: string | null }`

<a id="schema-desktoppreviewwebviewconfigschema"></a>

## `DesktopPreviewWebviewConfigSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:698](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L698-L703)
- Shape: `{ partition: string; webPreferences: string; preloadUrl: string | null }`

<a id="schema-desktopruntimearchschema"></a>

## `DesktopRuntimeArchSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:106](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L106)
- Shape: `"arm64" | "x64" | "other"`

<a id="schema-desktopserverexposuremodeschema"></a>

## `DesktopServerExposureModeSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:519](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L519-L522)
- Shape: `"local-only" | "network-accessible"`

<a id="schema-desktopserverexposurestateschema"></a>

## `DesktopServerExposureStateSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:532](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L532-L538)
- Shape: `{ mode: DesktopServerExposureModeSchema; endpointUrl: string | null; advertisedHost: string | null; tailscaleServeEnabled: boolean; tailscaleServePort: number }`

<a id="schema-desktopsharesloopbackinputschema"></a>

## `DesktopSharesLoopbackInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1031](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1031)
- Shape: `{ environmentId: makeEntityId }`

<a id="schema-desktopsnapshot"></a>

## `DesktopSnapShot`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:246](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L246-L249)
- Shape: `{ dataUrl: string }`

<a id="schema-desktopsnapshotanimationdestination"></a>

## `DesktopSnapShotAnimationDestination`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:252](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L252-L271)
- Shape: `{ id: DesktopSnapShotId; viewportFrame: { x: number; y: number; width: number; height: number }; backgroundColor: string; borderColor: string; borderWidth: number; cornerRadius: number; details?: { appName: unknown; windowTitle: unknown; appIconDataUrl: unknown } }`

<a id="schema-desktopsnapshotevent"></a>

## `DesktopSnapShotEvent`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:228](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L228-L234)
- Shape: `{ type: "requested"; id: DesktopSnapShotId } | { type: "started"; id: DesktopSnapShotId } | { type: "ready"; id: DesktopSnapShotId } | { type: "failed"; id?: DesktopSnapShotId } | { type: "shortcut-changed" }`

<a id="schema-desktopsnapshotid"></a>

## `DesktopSnapShotId`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:221](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L221-L224)
- Shape: `TrimmedNonEmptyString`

<a id="schema-desktopsnapshotmode"></a>

## `DesktopSnapShotMode`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:123](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L123)
- Shape: `"direct" | "portal" | "unavailable"`

<a id="schema-desktopsnapshotsetupaction"></a>

## `DesktopSnapShotSetupAction`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:148](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L148-L160)
- Shape: `"install-extension" | "enable-extension" | "disable-extension" | "install-kde-helper" | "remove-kde-helper" | "install-hyprland-helper" | "remove-hyprland-helper" | "test-mac-capture" | "allow-screen-recording" | "allow-accessibility" | "retry-shortcut"`

<a id="schema-desktopsnapshotshortcutavailability"></a>

## `DesktopSnapShotShortcutAvailability`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:215](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L215-L218)
- Shape: `{ available: boolean; message: string | null }`

<a id="schema-desktopsnapshotstate"></a>

## `DesktopSnapShotState`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:187](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L187-L212)
- Shape: `{ mode: DesktopSnapShotMode; windows?: boolean; linuxDesktop?: "gnome" | "kde" | "niri" | "hyprland"; linuxBackend?: "screenshot-portal" | "gnome-extension" | "niri" | "kde" | "hyprland" | "picker"; linuxFeedbackAvailable?: boolean; shortcut: SnapShotShortcut; shortcutRegistered: boolean; shortcutPending?: boolean; shortcutCanRetry?: boolean; shortcutLabel?: string; shortcutMessage: string | null; shortcutBinding?: string; shortcutConfigPath?: string; shortcutActionRegistered?: boolean; gnomeExtension?: DesktopCaptureExtensionState; kdeHelper?: DesktopCaptureHelperState; hyprlandHelper?: DesktopCaptureHelperState; macPermissions?: { screenRecording: boolean; accessibility: boolean }; shortcutVerified?: boolean; message: string | null }`

<a id="schema-desktopsshbearerbootstrapinputschema"></a>

## `DesktopSshBearerBootstrapInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:491](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L491-L494)
- Shape: `{ httpBaseUrl: string; credential: string }`

<a id="schema-desktopsshbearerrequestinputschema"></a>

## `DesktopSshBearerRequestInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:486](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L486-L489)
- Shape: `{ httpBaseUrl: string; bearerToken: string }`

<a id="schema-desktopsshenvironmentbootstrapschema"></a>

## `DesktopSshEnvironmentBootstrapSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:439](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L439-L447)
- Shape: `{ target: DesktopSshEnvironmentTargetSchema; httpBaseUrl: string; wsBaseUrl: string; pairingToken: string | null; tunnelClaim?: string; remotePort?: number; remoteServerKind?: "external" | "managed" }`

<a id="schema-desktopsshenvironmentensureinputschema"></a>

## `DesktopSshEnvironmentEnsureInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:472](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L472-L475)
- Shape: `{ target: DesktopSshEnvironmentTargetSchema; options?: DesktopSshEnvironmentEnsureOptionsSchema }`

<a id="schema-desktopsshenvironmentensureoptionsschema"></a>

## `DesktopSshEnvironmentEnsureOptionsSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:464](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L464-L467)
- Shape: `{ issuePairingToken?: boolean; claimTunnel?: boolean }`

<a id="schema-desktopsshenvironmentensureresultschema"></a>

## `DesktopSshEnvironmentEnsureResultSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:477](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L477-L480)
- Shape: `DesktopSshEnvironmentBootstrapSchema | DesktopSshPasswordPromptCancelledResultSchema`

<a id="schema-desktopsshenvironmenttargetschema"></a>

## `DesktopSshEnvironmentTargetSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:405](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L405-L410)
- Shape: `{ alias: string; hostname: string; username: string | null; port: number | null }`

<a id="schema-desktopsshhostsourceschema"></a>

## `DesktopSshHostSourceSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:414](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L414)
- Shape: `"ssh-config" | "known-hosts"`

<a id="schema-desktopsshhttpbaseurlinputschema"></a>

## `DesktopSshHttpBaseUrlInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:482](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L482-L484)
- Shape: `{ httpBaseUrl: string }`

<a id="schema-desktopsshpasswordpromptcancelledresultschema"></a>

## `DesktopSshPasswordPromptCancelledResultSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:459](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L459-L462)
- Shape: `{ type: "ssh-password-prompt-cancelled"; message: string }`

<a id="schema-desktopsshpasswordpromptresolutioninputschema"></a>

## `DesktopSshPasswordPromptResolutionInputSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:496](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L496-L499)
- Shape: `{ requestId: string; password: string | null }`

<a id="schema-desktopthemeschema"></a>

## `DesktopThemeSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:107](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L107)
- Shape: `"light" | "dark" | "system"`

<a id="schema-desktopupdateactionresultschema"></a>

## `DesktopUpdateActionResultSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:367](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L367-L371)
- Shape: `{ accepted: boolean; completed: boolean; state: DesktopUpdateStateSchema }`

<a id="schema-desktopupdatechannelschema"></a>

## `DesktopUpdateChannelSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:108](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L108)
- Shape: `"latest" | "nightly"`

<a id="schema-desktopupdatecheckresultschema"></a>

## `DesktopUpdateCheckResultSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:378](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L378-L381)
- Shape: `{ checked: boolean; state: DesktopUpdateStateSchema }`

<a id="schema-desktopupdatereleasenoteschema"></a>

## `DesktopUpdateReleaseNoteSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:317](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L317-L325)
- Shape: `{ version: string; items: string[]; totalItems: number; releasedAt?: string; intro?: string; stats?: string; footer?: string }`

<a id="schema-desktopupdatestateschema"></a>

## `DesktopUpdateStateSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:327](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L327-L347)
- Shape: `{ enabled: boolean; status: DesktopUpdateStatusSchema; channel: DesktopUpdateChannelSchema; currentVersion: string; hostArch: DesktopRuntimeArchSchema; appArch: DesktopRuntimeArchSchema; runningUnderArm64Translation: boolean; availableVersion: string | null; downloadedVersion: string | null; releaseNotes: DesktopUpdateReleaseNoteSchema[]; omittedReleaseCount: number; downloadPercent: number | null; checkedAt: string | null; message: string | null; errorContext: "check" | "download" | "install" | null; canRetry: boolean; notAppliedVersion?: string; channelBlockedByPolicy?: true; trackMismatch?: { buildChannel: DesktopUpdateChannelSchema } }`

<a id="schema-desktopupdatestatusschema"></a>

## `DesktopUpdateStatusSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:96](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L96-L105)
- Shape: `"disabled" | "idle" | "checking" | "up-to-date" | "available" | "downloading" | "downloaded" | "error"`

<a id="schema-desktopwsldistroschema"></a>

## `DesktopWslDistroSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:569](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L569-L573)
- Shape: `{ name: string; isDefault: boolean; version: 1 | 2 }`

<a id="schema-desktopwslstateschema"></a>

## `DesktopWslStateSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:586](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L586-L593)
- Shape: `{ enabled: boolean; distro: string | null; available: boolean; wslOnly: boolean; distros: DesktopWslDistroSchema[]; preflightError: string | null }`

<a id="schema-persistedsavedenvironmentrecordschema"></a>

## `PersistedSavedEnvironmentRecordSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:501](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L501-L514)
- Shape: `{ environmentId: makeEntityId; label: string; wsBaseUrl: string; httpBaseUrl: string; createdAt: string; lastConnectedAt: string | null; desktopSsh?: DesktopSshEnvironmentTargetSchema; relayManaged?: { relayUrl: string } }`

<a id="schema-pickfolderoptionsschema"></a>

## `PickFolderOptionsSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:545](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L545-L548)
- Shape: `{ initialPath?: string | null; targetEnvironmentId?: string }`

<a id="schema-pickedelementpayloadschema"></a>

## `PickedElementPayloadSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:819](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L819-L830)
- Shape: `{ pageUrl: string; pageTitle: string | null; tagName: string; selector: string | null; htmlPreview: string; componentName: string | null; source: PickedElementStackFrameSchema | null; stack: PickedElementStackFrameSchema[]; styles: string; pickedAt: string }`

<a id="schema-pickedelementstackframeschema"></a>

## `PickedElementStackFrameSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:799](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L799-L804)
- Shape: `{ functionName: string | null; fileName: string | null; lineNumber: number | null; columnNumber: number | null }`

<a id="schema-pickedthemefileschema"></a>

## `PickedThemeFileSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:557](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L557-L561)
- Shape: `{ name: string; size: number; text: string }`

<a id="schema-previewannotationelementtargetschema"></a>

## `PreviewAnnotationElementTargetSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:862](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L862-L867)
- Shape: `{ id: string; element: PickedElementPayloadSchema; rect: PreviewAnnotationRectSchema }`

<a id="schema-previewannotationpayloadschema"></a>

## `PreviewAnnotationPayloadSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:942](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L942-L955)
- Shape: `{ id: string; pageUrl: string; pageTitle: string | null; comment: string; elements: PreviewAnnotationElementTargetSchema[]; regions: PreviewAnnotationRegionTargetSchema[]; strokes: PreviewAnnotationStrokeTargetSchema[]; styleChanges: PreviewAnnotationStyleChangeSchema[]; screenshot: PreviewAnnotationScreenshotSchema | null; createdAt: string }`

<a id="schema-previewannotationpointschema"></a>

## `PreviewAnnotationPointSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:851](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L851-L854)
- Shape: `{ x: number; y: number }`

<a id="schema-previewannotationrectschema"></a>

## `PreviewAnnotationRectSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:839](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L839-L844)
- Shape: `{ x: number; y: number; width: number; height: number }`

<a id="schema-previewannotationregiontargetschema"></a>

## `PreviewAnnotationRegionTargetSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:874](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L874-L878)
- Shape: `{ id: string; rect: PreviewAnnotationRectSchema }`

<a id="schema-previewannotationscreenshotschema"></a>

## `PreviewAnnotationScreenshotSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:921](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L921-L927)
- Shape: `{ dataUrl: string; width: number; height: number; cropRect: PreviewAnnotationRectSchema }`

<a id="schema-previewannotationstroketargetschema"></a>

## `PreviewAnnotationStrokeTargetSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:888](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L888-L895)
- Shape: `{ id: string; color: string; width: number; points: PreviewAnnotationPointSchema[]; bounds: PreviewAnnotationRectSchema }`

<a id="schema-previewannotationstylechangeschema"></a>

## `PreviewAnnotationStyleChangeSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:905](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L905-L912)
- Shape: `{ targetId: string; selector: string | null; property: string; previousValue: string; value: string }`

<a id="schema-previewannotationsubmissionresultschema"></a>

## `PreviewAnnotationSubmissionResultSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:966](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L966-L971)
- Shape: `{ annotation: PreviewAnnotationPayloadSchema; submission: PreviewAnnotationSubmissionSchema; screenshotFailed?: boolean }`

<a id="schema-previewannotationsubmissionschema"></a>

## `PreviewAnnotationSubmissionSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:958](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L958-L959)
- Shape: `"attach" | "send"`

<a id="schema-quitshortcuthintevent"></a>

## `QuitShortcutHintEvent`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:40](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L40)
- Shape: `{ state: "down"; mode: Exclude } | { state: "up" }`

<a id="schema-systemsettingspaneschema"></a>

## `SystemSettingsPaneSchema`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/ipc.ts:1123](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/ipc.ts#L1123)
- Shape: `"full-disk-access"`
