# Schemas: t3/cloud

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

44 entries.

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

## `BootServiceBaseDirUnsupportedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/bootService.ts:748](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/bootService.ts#L748-L759)
- Shape: `{ _tag: "BootServiceBaseDirUnsupportedError"; baseDir: string }`

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

## `BootServiceCommandError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/bootService.ts:636](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/bootService.ts#L636-L651)
- Shape: `{ _tag: "BootServiceCommandError"; step: string; exitCode?: number; stdoutLength?: number; stderrLength?: number; cause?: unknown }`

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

## `BootServiceDowngradeRefusedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/bootService.ts:716](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/bootService.ts#L716-L726)
- Shape: `{ _tag: "BootServiceDowngradeRefusedError"; installedVersion: string; targetVersion: string }`

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

## `BootServiceInstallError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/bootService.ts:653](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/bootService.ts#L653-L660)
- Shape: `{ _tag: "BootServiceInstallError"; cause: unknown }`

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

## `BootServiceOtherBaseDirError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/bootService.ts:731](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/bootService.ts#L731-L746)
- Shape: `{ _tag: "BootServiceOtherBaseDirError"; installedBaseDir: string; baseDir: string }`

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

## `BootServicePrerequisiteError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/bootService.ts:695](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/bootService.ts#L695-L702)
- Shape: `{ _tag: "BootServicePrerequisiteError"; problem: "user-manager-unavailable" | "linger-unavailable" | "linger-disabled" | "service-disabled" | "service-stopped" | "restart-pending"; cause?: unknown }`

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

## `BootServiceUnsupportedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/bootService.ts:627](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/bootService.ts#L627-L634)
- Shape: `{ _tag: "BootServiceUnsupportedError"; platform: string }`

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

## `BootServiceUpdatePendingError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/bootService.ts:704](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/bootService.ts#L704-L714)
- Shape: `{ _tag: "BootServiceUpdatePendingError"; recoveryCommand?: string }`

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

## `CloudCliAuthorizationDeniedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:255](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L255-L262)
- Shape: `{ _tag: "CloudCliAuthorizationDeniedError" }`

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

## `CloudCliAuthorizationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:237](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L237-L244)
- Shape: `{ _tag: "CloudCliAuthorizationError"; cause: unknown }`

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

## `CloudCliAuthorizationTimeoutError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:246](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L246-L253)
- Shape: `{ _tag: "CloudCliAuthorizationTimeoutError"; cause: unknown }`

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

## `CloudCliCredentialReadError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:228](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L228-L235)
- Shape: `{ _tag: "CloudCliCredentialReadError"; cause: unknown }`

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

## `CloudCliCredentialRefreshError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:205](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L205-L224)
- Shape: `{ _tag: "CloudCliCredentialRefreshError"; cause: unknown; status?: number; oauthErrorCode?: "invalid_grant" | "invalid_client" | "unauthorized_client" | "unsupported_grant_type" | "invalid_request" | "invalid_scope" | "access_denied" }`

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

## `CloudCliCredentialRemovalError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:196](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L196-L203)
- Shape: `{ _tag: "CloudCliCredentialRemovalError"; cause: unknown }`

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

## `CloudCliTokenManagerError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:264](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L264-L271)
- Shape: `CloudCliCredentialRemovalError | CloudCliCredentialRefreshError | CloudCliCredentialReadError | CloudCliAuthorizationError | CloudCliAuthorizationTimeoutError | CloudCliAuthorizationDeniedError`

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

## `CloudLinkAccountMismatchError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:175](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L175-L182)
- Shape: `{ _tag: "CloudLinkAccountMismatchError" }`

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

## `CloudLinkAuthorizationMissingError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:184](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L184-L191)
- Shape: `{ _tag: "CloudLinkAuthorizationMissingError" }`

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

## `CloudLinkEndpointUnavailableError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:222](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L222-L234)
- Shape: `{ _tag: "CloudLinkEndpointUnavailableError"; reason: "runtime-not-started" | "origin-unconfirmed"; endpointRuntimeStatus: unknown }`

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

## `CloudLinkInternalError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:258](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L258-L273)
- Shape: `{ _tag: "CloudLinkInternalError"; operation: Object.keys; cause?: unknown }`

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

## `CloudLinkNotLinkedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:166](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L166-L173)
- Shape: `{ _tag: "CloudLinkNotLinkedError" }`

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

## `CloudLinkOriginInvalidError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:155](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L155-L164)
- Shape: `{ _tag: "CloudLinkOriginInvalidError"; origin: "endpoint" | "local" }`

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

## `CloudLinkProofRejectedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:195](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L195-L202)
- Shape: `{ _tag: "CloudLinkProofRejectedError"; request: "health" | "mint" }`

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

## `CloudLinkProofReplayedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:204](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L204-L211)
- Shape: `{ _tag: "CloudLinkProofReplayedError"; request: "health" | "mint" }`

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

## `CloudLinkRelayConfigInvalidError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:138](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L138-L153)
- Shape: `{ _tag: "CloudLinkRelayConfigInvalidError"; field: "relayUrl" | "relayIssuer" | "environmentCredential" | "cloudUserId" | "cloudMintPublicKey" }`

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

## `CloudLinkTunnelSupersededError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CloudLink.ts:213](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CloudLink.ts#L213-L220)
- Shape: `{ _tag: "CloudLinkTunnelSupersededError" }`

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

## `CloudManagedEndpointRuntimeStatus`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/ManagedEndpointRuntime.ts:33](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/ManagedEndpointRuntime.ts#L33)
- Shape: `{ status: "disabled" } | { status: "failed"; providerKind: RelayManagedEndpointRuntimeConfig["prov…; failure: "unsupported-platform" | "not-installed" | "spawn-failed"; reason: string; tunnelId?: string; tunnelName?: string } | { status: "running"; providerKind: "cloudflare_tunnel"; pid: number; tunnelId?: string; tunnelName?: string } | { status: "unsupported"; providerKind: RelayManagedEndpointRuntimeConfig["prov… }`

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

## `LoopbackAuthorizationResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:62](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L62)
- Shape: `{ _tag: "AuthorizationCode"; code: string } | { _tag: "HeadlessRequested" }`

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

## `ManagedEndpointConfirmedOrigin`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/config.ts:30](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/config.ts#L30-L33)
- Shape: `{ config: RelayManagedEndpointRuntimeConfig; origin: RelayManagedEndpointOrigin }`

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

## `ManagedTunnelStartupAction`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/managedTunnelStartup.ts:19](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/managedTunnelStartup.ts#L19)
- Shape: `{ action: "none" } | { action: "reconcile_link" } | { action: "request_recovery"; config: RelayManagedEndpointRuntimeConfig }`

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

## `PinnedRuntimeInstallError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/pinnedRuntime.ts:72](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/pinnedRuntime.ts#L72-L89)
- Shape: `{ _tag: "PinnedRuntimeInstallError"; step: string; exitCode?: number; stdoutLength?: number; stderrLength?: number; httpStatus?: number; downloadHost?: string; cause?: unknown }`

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

## `PinnedRuntimePreflightBlockedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/pinnedRuntime.ts:91](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/pinnedRuntime.ts#L91-L101)
- Shape: `{ _tag: "PinnedRuntimePreflightBlockedError"; version: string; reason: string }`

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

## `RelayRequestError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/relayResponse.ts:10](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/relayResponse.ts#L10-L22)
- Shape: `{ _tag: "RelayRequestError"; rejection: "unauthorized" | "forbidden" | "rejected" | "unavailable"; description: string; retryAfterMillis?: number }`

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

## `ServiceLauncherChildMessage`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/serviceProtocol.ts:135](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/serviceProtocol.ts#L135)
- Shape: `{ type: "request-update"; targetVersion: string; dbPath: string } | { type: "prepared"; updateId: string }`

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

## `ServiceLauncherClientError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/serviceLauncherClient.ts:33](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/serviceLauncherClient.ts#L33-L63)
- Shape: `{ _tag: "ServiceLauncherClientError"; operation: "decode-context" | "version-mismatch" | "unmanaged" | "send" | "disconnect" | "timeout"; cause?: unknown }`

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

## `ServiceLauncherParentMessage`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/serviceProtocol.ts:146](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/serviceProtocol.ts#L146)
- Shape: `{ type: "update-accepted"; updateId: string } | { type: "update-rejected"; reason: string } | { type: "committed"; updateId: string } | { type: "stop" }`

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

## `ServiceLauncherRejectedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/serviceLauncherClient.ts:65](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/serviceLauncherClient.ts#L65-L75)
- Shape: `{ _tag: "ServiceLauncherRejectedError"; targetVersion: string; reason: string }`

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

## `ServicePreflightResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/servicePreflight.ts:26](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/servicePreflight.ts#L26)
- Shape: `{ status: "ready"; version: string; launcherProtocol: SupportedLauncherProtocol } | { status: "blocked"; version: string; reason: string }`

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

## `ServiceProtectionError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/serviceProtection.ts:145](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/serviceProtection.ts#L145-L158)
- Shape: `{ _tag: "ServiceProtectionError"; step: string; exitCode?: number; cause?: unknown }`

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

## `decodeConfirmedOrigin`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/config.ts:39](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/config.ts#L39-L41)
- Shape: `Schema.decodeUnknownOption`

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

## `decodeRuntimeConfig`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/config.ts:26](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/config.ts#L26-L28)
- Shape: `Schema.decodeUnknownOption`

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

## `encodeConfirmedOriginJson`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/config.ts:35](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/config.ts#L35-L37)
- Shape: `Schema.encodeEffect`

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

## `encodeEndpointRuntimeConfigJson`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/config.ts:22](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/config.ts#L22-L24)
- Shape: `Schema.encodeEffect`

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

## `isCloudCliCredentialRefreshError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:226](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L226)
- Shape: `Schema.is`

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

## `isCloudCliTokenManagerError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/cloud/CliTokenManager.ts:273](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/cloud/CliTokenManager.ts#L273)
- Shape: `Schema.is`
