# Schemas: shared

> 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).

42 entries.

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

## `ClerkPublishableKeyDecodeError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/relayAuth.ts:5](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/relayAuth.ts#L5-L15)
- Shape: `{ _tag: "ClerkPublishableKeyDecodeError"; keyPrefix: "pk_test" | "pk_live" | "unknown"; cause: unknown }`

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

## `ClerkPublishableKeyFrontendApiError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/relayAuth.ts:17](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/relayAuth.ts#L17-L29)
- Shape: `{ _tag: "ClerkPublishableKeyFrontendApiError"; keyPrefix: "pk_test" | "pk_live" | "unknown"; frontendApi: string; reason: "empty" | "contains-path" | "invalid-url"; cause?: unknown }`

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

## `CodexArtifactTemplateMarkdownSegment`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/codexMarkdownDirectives.ts:52](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/codexMarkdownDirectives.ts#L52)
- Shape: `{ kind: "markdown"; markdown: string; sourceOffset: number } | { kind: "artifact-template"; sourceOffset: number; template: CodexArtifactTemplate }`

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

## `CodexAuthCallbackError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/codexAuthCallback.ts:6](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/codexAuthCallback.ts#L6-L13)
- Shape: `{ _tag: "CodexAuthCallbackError"; detail: string }`

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

## `CodexAuthHandoff`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/codexAuthHandoff.ts:6](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/codexAuthHandoff.ts#L6-L12)
- Shape: `{ authorizationUrl: string; returnUrl: string; environmentId: makeEntityId; instanceId: TrimmedNonEmptyString; flowId: string }`

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

## `ComposerInlineToken`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/composerInlineTokens.ts:10](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/composerInlineTokens.ts#L10)
- Shape: `{ type: "mention"; value: string; source: string; start: number; end: number } | { type: "skill"; value: string; source: string; start: number; end: number }`

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

## `DpopPublicJwk`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/dpopCommon.ts:3](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/dpopCommon.ts#L3-L8)
- Shape: `{ kty: "EC"; crv: "P-256"; x: string; y: string }`

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

## `DpopVerificationFailureCode`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/dpop.ts:25](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/dpop.ts#L25-L35)
- Shape: `"missing_proof" | "malformed_proof" | "key_mismatch" | "method_mismatch" | "url_mismatch" | "access_token_hash_mismatch" | "time_window" | "invalid_signature" | "invalid_proof"`

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

## `DpopVerificationResult`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/dpop.ts:63](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/dpop.ts#L63)
- Shape: `{ ok: true; thumbprint: string; jti: string; iat: number } | { ok: false; code: DpopVerificationFailureCode; reason: string }`

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

## `DynamicToolTitle`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/toolActivity.ts:57](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/toolActivity.ts#L57)
- Shape: `{ kind: "title"; title: string } | { kind: "computer-use" } | { kind: "run-javascript" } | { kind: "skill"; name: string }`

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

## `HostnameLookupError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/HostProcess.ts:100](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/HostProcess.ts#L100-L107)
- Shape: `{ _tag: "HostnameLookupError"; hostname: string; cause: unknown }`

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

## `ManagedPolicyFileError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/managedPolicyFile.ts:20](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/managedPolicyFile.ts#L20-L33)
- Shape: `{ _tag: "ManagedPolicyFileError"; path: string; reason: string; cause?: unknown }`

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

## `MarkdownImageSource`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/markdownLinks.ts:336](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/markdownLinks.ts#L336)
- Shape: `{ _tag: "Direct"; uri: string } | { _tag: "WorkspaceFile"; path: string; relative?: true } | { _tag: "Blocked" }`

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

## `NetError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/Net.ts:13](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/Net.ts#L13-L16)
- Shape: `{ _tag: "NetError"; message: string; cause?: unknown }`

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

## `NetListenError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/Net.ts:18](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/Net.ts#L18-L27)
- Shape: `{ _tag: "NetListenError"; host: string; port: number; code: string; cause: unknown }`

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

## `NewThreadLink`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/promptLinks.ts:20](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/promptLinks.ts#L20)
- Shape: `{ kind: "new"; prompt: LinkedPrompt; repository: PromptLinkRepository | null; provider: string | null; model: string | null } | { kind: "pull-request"; pullRequest: PromptLinkPullRequest; prompt: LinkedPrompt | null }`

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

## `NodeRuntimeUnavailableError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/nodeRuntime.ts:20](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/nodeRuntime.ts#L20-L27)
- Shape: `{ _tag: "NodeRuntimeUnavailableError"; feature: "Local device support" | "Device automation" | "Antigravity" | "Antigravity sign-in"; cause?: unknown }`

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

## `OAuthScopeEncodingError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/oauthScope.ts:5](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/oauthScope.ts#L5-L16)
- Shape: `{ _tag: "OAuthScopeEncodingError"; scopes: string[]; invalidScopes: string[]; duplicateScopes: string[] }`

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

## `OtlpHeadersFromString`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/observability.ts:890](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/observability.ts#L890-L929)
- Shape: `string`

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

## `OtlpProtocol`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/observability.ts:21](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/observability.ts#L21)
- Shape: `"http/json" | "http/protobuf"`

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

## `PreviewUrlNormalizationError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/preview.ts:60](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/preview.ts#L60-L73)
- Shape: `{ _tag: "PreviewUrlNormalizationError"; inputLength: number; reason: "empty" | "parse" | "unsupported-protocol"; protocol?: string; cause?: unknown }`

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

## `PromptLinkResult`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/promptLinks.ts:34](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/promptLinks.ts#L34)
- Shape: `{ ok: true; value: T } | { ok: false; error: string }`

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

## `PtySpawnError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/PtyAdapter.ts:5](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/PtyAdapter.ts#L5-L19)
- Shape: `{ _tag: "PtySpawnError"; adapter: string; shell?: string; attemptedShells?: string[]; cause?: unknown }`

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

## `PullRequestAnchor`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/pullRequestAnchor.ts:14](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/pullRequestAnchor.ts#L14)
- Shape: `{ kind: "code" } | { kind: "commits" } | { kind: "checks" } | { kind: "diff"; digest: string; range: PullRequestAnchorRange | null } | { kind: "timeline"; anchor: string } | { kind: "summary"; anchor: string }`

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

## `PullRequestCompletion`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/pullRequestComposerTrigger.ts:150](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/pullRequestComposerTrigger.ts#L150)
- Shape: `{ kind: "mention"; token: string; actor: PullRequestActor } | { kind: "reference"; token: string; candidate: PullRequestReferenceCandidate }`

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

## `RegistryValue`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/managedPolicyFile.ts:155](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/managedPolicyFile.ts#L155)
- Shape: `{ name: string; type: "REG_SZ"; data: string } | { name: string; type: "REG_DWORD"; data: number } | { name: string; type: "other" }`

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

## `RelayClientInstallError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/relayClient.ts:69](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/relayClient.ts#L69-L85)
- Shape: `{ _tag: "RelayClientInstallError"; reason: "download_failed" | "invalid_checksum" | "install_locked" | "managed_by_policy" | "override_missing" | "unsupported_platform" | "validation_failed" | "write_failed"; message: string; cause?: unknown }`

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

## `RelayClientStatus`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/relayClient.ts:40](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/relayClient.ts#L40)
- Shape: `{ status: "available"; executablePath: string; source: RelayClientExecutableSource; version: string } | { status: "missing"; version: string } | { status: "unsupported"; platform: NodeJS.Platform; arch: string; version: string }`

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

## `RelayJwtError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/relayJwt.ts:21](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/relayJwt.ts#L21-L43)
- Shape: `{ _tag: "RelayJwtError"; operation: "sign" | "verify" | "decode"; typ?: string; issuer?: string; audience?: string; cause: unknown }`

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

## `RemoteBackendUrlInvalidError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/remote.ts:36](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/remote.ts#L36-L47)
- Shape: `{ _tag: "RemoteBackendUrlInvalidError"; source: "direct-host" | "hosted-pairing-host"; cause?: unknown; protocol?: string }`

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

## `RemoteBackendUrlMissingError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/remote.ts:15](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/remote.ts#L15-L22)
- Shape: `{ _tag: "RemoteBackendUrlMissingError" }`

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

## `RemotePairingCodeMissingError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/remote.ts:58](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/remote.ts#L58-L65)
- Shape: `{ _tag: "RemotePairingCodeMissingError"; host: string }`

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

## `RemotePairingTargetError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/remote.ts:67](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/remote.ts#L67-L73)
- Shape: `RemoteBackendUrlMissingError | RemotePairingUrlInvalidError | RemoteBackendUrlInvalidError | RemotePairingTokenMissingError | RemotePairingCodeMissingError`

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

## `RemotePairingTokenMissingError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/remote.ts:49](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/remote.ts#L49-L56)
- Shape: `{ _tag: "RemotePairingTokenMissingError"; host: string }`

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

## `RemotePairingUrlInvalidError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/remote.ts:24](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/remote.ts#L24-L34)
- Shape: `{ _tag: "RemotePairingUrlInvalidError"; cause?: unknown; protocol?: string }`

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

## `ResetCountdown`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/usageLimits.ts:830](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/usageLimits.ts#L830)
- Shape: `{ kind: "now" } | { kind: "momentarily" } | { kind: "in"; ms: number }`

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

## `RotatingFileSinkConfigurationError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/logging.ts:17](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/logging.ts#L17-L28)
- Shape: `{ _tag: "RotatingFileSinkConfigurationError"; option: "maxBytes" | "maxFiles"; received: number; minimum: number }`

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

## `RotatingFileSinkError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/logging.ts:30](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/logging.ts#L30-L41)
- Shape: `{ _tag: "RotatingFileSinkError"; operation: "initialize" | "read" | "write" | "rotate" | "prune"; filePath: string; cause: unknown }`

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

## `UnsupportedNodeSqliteOperationError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/nodeSqliteClient.ts:120](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/nodeSqliteClient.ts#L120-L127)
- Shape: `{ _tag: "UnsupportedNodeSqliteOperationError" }`

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

## `UnsupportedNodeSqliteVersionError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/nodeSqliteClient.ts:108](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/nodeSqliteClient.ts#L108-L118)
- Shape: `{ _tag: "UnsupportedNodeSqliteVersionError"; nodeVersion: string; requirement: string }`

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

## `WindowsRegistryError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/managedPolicyFile.ts:141](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/managedPolicyFile.ts#L141-L152)
- Shape: `{ _tag: "WindowsRegistryError"; code?: number; cause?: unknown }`

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

## `isPreviewUrlNormalizationError`

- Kind: schema
- Workspace: [@t3tools/shared](../../architecture/t3tools-shared.md)
- Source: [packages/shared/src/preview.ts:75](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/shared/src/preview.ts#L75)
- Shape: `Schema.is`
