# Schemas: t3code-relay

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

82 entries.

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

## `AccountDeletionFailed`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/accounts/AccountDeletion.ts:38](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/accounts/AccountDeletion.ts#L38-L56)
- Shape: `{ _tag: "AccountDeletionFailed"; userId: string; stage: "record-request" | "list-environments" | "clear-held-webhooks" | "deprovision" | "delete-rows" | "unlink-t3chat"; cause: unknown }`

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

## `AccountDeletionQueueFailed`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/accounts/AccountDeletion.ts:60](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/accounts/AccountDeletion.ts#L60-L63)
- Shape: `{ _tag: "AccountDeletionQueueFailed"; cause: unknown }`

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

## `AccountEmailFailed`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/accounts/AccountEmails.ts:13](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/accounts/AccountEmails.ts#L13-L16)
- Shape: `{ _tag: "AccountEmailFailed"; cause: unknown }`

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

## `AgentActivityRowDeletePersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/AgentActivityRows.ts:28](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/AgentActivityRows.ts#L28-L39)
- Shape: `{ _tag: "AgentActivityRowDeletePersistenceError"; environmentId: string; threadId: string; cause: unknown }`

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

## `AgentActivityRowListPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/AgentActivityRows.ts:53](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/AgentActivityRows.ts#L53-L63)
- Shape: `{ _tag: "AgentActivityRowListPersistenceError"; userId: string; cause: unknown }`

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

## `AgentActivityRowPruneTerminalPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/AgentActivityRows.ts:41](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/AgentActivityRows.ts#L41-L51)
- Shape: `{ _tag: "AgentActivityRowPruneTerminalPersistenceError"; updatedBefore: string; cause: unknown }`

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

## `AgentActivityRowUpsertPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/AgentActivityRows.ts:15](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/AgentActivityRows.ts#L15-L26)
- Shape: `{ _tag: "AgentActivityRowUpsertPersistenceError"; environmentId: string; threadId: string; cause: unknown }`

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

## `ApnsDeliveryJobClaimInFlight`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/ApnsDeliveries.ts:99](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/ApnsDeliveries.ts#L99-L108)
- Shape: `{ _tag: "ApnsDeliveryJobClaimInFlight"; sourceJobId: string }`

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

## `ApnsDeliveryJobCreatedAtInvalid`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:129](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L129-L140)
- Shape: `{ _tag: "ApnsDeliveryJobCreatedAtInvalid"; jobId: string; userId: string; deviceId: string; kind: "live_activity_update" | "live_activity_end" | "push_notification"; createdAt: string }`

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

## `ApnsDeliveryJobExpired`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:209](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L209-L220)
- Shape: `{ _tag: "ApnsDeliveryJobExpired"; jobId: string; userId: string; deviceId: string; kind: "live_activity_update" | "live_activity_end" | "push_notification"; expiresAt: string }`

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

## `ApnsDeliveryJobExpiresAtInvalid`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:142](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L142-L153)
- Shape: `{ _tag: "ApnsDeliveryJobExpiresAtInvalid"; jobId: string; userId: string; deviceId: string; kind: "live_activity_update" | "live_activity_end" | "push_notification"; expiresAt: string }`

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

## `ApnsDeliveryJobInvalid`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:195](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L195-L206)
- Shape: `ApnsDeliveryJobQueuePayloadInvalid | ApnsDeliveryJobLiveActivityAggregateMissing | ApnsDeliveryJobLiveActivityNotificationUnexpected | ApnsDeliveryJobPushNotificationMissing | ApnsDeliveryJobPushNotificationAggregateUnexpected | ApnsDeliveryJobCreatedAtInvalid | ApnsDeliveryJobExpiresAtInvalid | ApnsDeliveryJobTimeWindowInvalid | ApnsDeliveryJobTimeWindowTooLong | ApnsDeliveryJobSignatureInvalid`

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

## `ApnsDeliveryJobLiveActivityAggregateMissing`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:87](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L87-L97)
- Shape: `{ _tag: "ApnsDeliveryJobLiveActivityAggregateMissing"; jobId: string; userId: string; deviceId: string; kind: "live_activity_update" }`

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

## `ApnsDeliveryJobLiveActivityNotificationUnexpected`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:99](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L99-L109)
- Shape: `{ _tag: "ApnsDeliveryJobLiveActivityNotificationUnexpected"; jobId: string; userId: string; deviceId: string; kind: "live_activity_update" | "live_activity_end" }`

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

## `ApnsDeliveryJobPayload`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:49](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L49-L65)
- Shape: `{ version: 1; jobId: string; kind: "live_activity_update" | "live_activity_end" | "push_notification"; target: { userId: string; deviceId: string; token: string; bundleId?: string | null; apsEnvironment?: "sandbox" | "production" | null }; aggregate: RelayAgentActivityAggregateState | null; notification: ApnsNotificationPayload | null; alert?: ApnsLiveActivityAlert | null; createdAt: string; expiresAt: string }`

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

## `ApnsDeliveryJobPushNotificationAggregateUnexpected`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:120](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L120-L127)
- Shape: `{ _tag: "ApnsDeliveryJobPushNotificationAggregateUnexpected" }`

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

## `ApnsDeliveryJobPushNotificationMissing`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:111](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L111-L118)
- Shape: `{ _tag: "ApnsDeliveryJobPushNotificationMissing" }`

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

## `ApnsDeliveryJobQueuePayloadInvalid`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:75](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L75-L85)
- Shape: `{ _tag: "ApnsDeliveryJobQueuePayloadInvalid"; receivedType: string; cause: unknown }`

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

## `ApnsDeliveryJobSignatureInvalid`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:183](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L183-L193)
- Shape: `{ _tag: "ApnsDeliveryJobSignatureInvalid"; jobId: string; userId: string; deviceId: string; kind: "live_activity_update" | "live_activity_end" | "push_notification" }`

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

## `ApnsDeliveryJobTimeWindowInvalid`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:155](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L155-L167)
- Shape: `{ _tag: "ApnsDeliveryJobTimeWindowInvalid"; jobId: string; userId: string; deviceId: string; kind: "live_activity_update" | "live_activity_end" | "push_notification"; createdAt: string; expiresAt: string }`

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

## `ApnsDeliveryJobTimeWindowTooLong`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:169](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L169-L181)
- Shape: `{ _tag: "ApnsDeliveryJobTimeWindowTooLong"; jobId: string; userId: string; deviceId: string; kind: "live_activity_update" | "live_activity_end" | "push_notification"; createdAt: string; expiresAt: string }`

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

## `ApnsDeliveryJobVerificationError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:222](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L222-L225)
- Shape: `ApnsDeliveryJobInvalid | ApnsDeliveryJobExpired`

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

## `ApnsDeliveryQueueSendError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/ApnsDeliveryQueue.ts:29](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/ApnsDeliveryQueue.ts#L29-L43)
- Shape: `{ _tag: "ApnsDeliveryQueueSendError"; operation: "generate-job-id" | "send"; jobId: string | null; kind: RelayDeliveryKind; userId: string; deviceId: string; cause: unknown }`

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

## `ApnsDeliveryTransportError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/ApnsDeliveries.ts:110](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/ApnsDeliveries.ts#L110-L128)
- Shape: `{ _tag: "ApnsDeliveryTransportError"; deviceId: string; kind: RelayDeliveryKind; sourceJobId: string | null; apnsErrorTag: "ApnsJwtEncodingError" | "ApnsJwtSigningError" | "ApnsHttpRequestError"; requestStage: "send" | "read-response" | null; cause: unknown }`

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

## `ApnsEnvironment`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/Config.ts:8](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/Config.ts#L8)
- Shape: `"sandbox" | "production"`

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

## `ApnsHttpRequestError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/ApnsClient.ts:55](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/ApnsClient.ts#L55-L71)
- Shape: `{ _tag: "ApnsHttpRequestError"; requestKind: "live-activity" | "push-notification"; event: "update" | "end" | null; environment: ApnsEnvironment; bundleId: string; tokenSuffix: string; stage: "send" | "read-response"; status: number | null; cause: unknown }`

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

## `ApnsJwtEncodingError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsJwt.ts:14](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsJwt.ts#L14-L27)
- Shape: `{ _tag: "ApnsJwtEncodingError"; component: "header" | "payload"; teamId: string; keyId: string; issuedAtUnixSeconds: number; cause: unknown }`

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

## `ApnsJwtSigningError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsJwt.ts:29](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsJwt.ts#L29-L41)
- Shape: `{ _tag: "ApnsJwtSigningError"; teamId: string; keyId: string; issuedAtUnixSeconds: number; cause: unknown }`

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

## `ApnsLiveActivityAlert`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:43](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L43-L46)
- Shape: `{ title: string; body: string }`

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

## `ApnsNotificationPayload`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:32](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L32-L40)
- Shape: `{ title: string; body: string; environmentId: string; threadId: string; deepLink: string; phase?: RelayAgentAwarenessPhase; updatedAt?: string }`

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

## `ClerkUserLookupFailed`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/t3chat/T3ChatAccounts.ts:34](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/t3chat/T3ChatAccounts.ts#L34-L41)
- Shape: `{ _tag: "ClerkUserLookupFailed"; cause: unknown }`

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

## `CloudflareApiPaused`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedEndpointProvider.ts:423](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedEndpointProvider.ts#L423-L430)
- Shape: `{ _tag: "CloudflareApiPaused"; retryAfterMillis: number }`

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

## `DeliveryAttemptRecordPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/DeliveryAttempts.ts:14](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/DeliveryAttempts.ts#L14-L30)
- Shape: `{ _tag: "DeliveryAttemptRecordPersistenceError"; operation: "claim-source-job" | "complete-source-job" | "prune-expired"; sourceJobId: string | null; userId: string | null; environmentId: string | null; threadId: string | null; deviceId: string | null; kind: string | null; cause: unknown }`

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

## `DeviceListPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/Devices.ts:44](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/Devices.ts#L44-L54)
- Shape: `{ _tag: "DeviceListPersistenceError"; userId: string; cause: unknown }`

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

## `DeviceRegistrationPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/Devices.ts:16](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/Devices.ts#L16-L28)
- Shape: `{ _tag: "DeviceRegistrationPersistenceError"; userId: string; deviceId: string; stage: "claim-push-token" | "claim-push-to-start-token" | "upsert-device"; cause: unknown }`

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

## `DeviceUnregistrationPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/Devices.ts:30](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/Devices.ts#L30-L42)
- Shape: `{ _tag: "DeviceUnregistrationPersistenceError"; userId: string; deviceId: string; stage: "delete-live-activity" | "delete-device"; cause: unknown }`

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

## `DpopProofFailureCode`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/auth/DpopProofs.ts:32](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/auth/DpopProofs.ts#L32-L35)
- Shape: `DpopVerificationFailureCode | "replayed"`

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

## `DpopProofRejected`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/auth/DpopProofs.ts:38](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/auth/DpopProofs.ts#L38-L47)
- Shape: `{ _tag: "DpopProofRejected"; code: DpopProofFailureCode }`

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

## `DpopProofReplayPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/auth/DpopProofs.ts:16](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/auth/DpopProofs.ts#L16-L30)
- Shape: `{ _tag: "DpopProofReplayPersistenceError"; operation: "consume" | "prune-expired"; thumbprint?: string; jti?: string; iat?: number; expiresBefore?: string; cause: unknown }`

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

## `EnvValueNotSingleLineError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/clientConfig.ts:46](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/clientConfig.ts#L46-L53)
- Shape: `{ _tag: "EnvValueNotSingleLineError"; key: string }`

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

## `EnvironmentConnectNotAuthorized`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentConnector.ts:75](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentConnector.ts#L75-L86)
- Shape: `{ _tag: "EnvironmentConnectNotAuthorized"; environmentId: string; operation: "connect" | "status"; reason: RelayEnvironmentConnectNotAuthorizedReason }`

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

## `EnvironmentCredentialAuthenticatePersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentCredentials.ts:35](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentCredentials.ts#L35-L45)
- Shape: `{ _tag: "EnvironmentCredentialAuthenticatePersistenceError"; stage: "hash-token" | "lookup-credential"; cause: unknown }`

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

## `EnvironmentCredentialCreatePersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentCredentials.ts:16](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentCredentials.ts#L16-L33)
- Shape: `{ _tag: "EnvironmentCredentialCreatePersistenceError"; stage: "generate-credential" | "hash-token" | "insert-credential" | "revoke-previous-credentials"; environmentId: string; credentialId?: string; cause: unknown }`

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

## `EnvironmentCredentialRevokePersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentCredentials.ts:47](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentCredentials.ts#L47-L57)
- Shape: `{ _tag: "EnvironmentCredentialRevokePersistenceError"; environmentId: string; cause: unknown }`

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

## `EnvironmentLinkEnvironmentLookupPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentLinks.ts:78](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentLinks.ts#L78-L88)
- Shape: `{ _tag: "EnvironmentLinkEnvironmentLookupPersistenceError"; environmentId: string; cause: unknown }`

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

## `EnvironmentLinkListPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentLinks.ts:53](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentLinks.ts#L53-L63)
- Shape: `{ _tag: "EnvironmentLinkListPersistenceError"; userId: string; cause: unknown }`

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

## `EnvironmentLinkLookupPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentLinks.ts:65](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentLinks.ts#L65-L76)
- Shape: `{ _tag: "EnvironmentLinkLookupPersistenceError"; userId: string; environmentId: string; cause: unknown }`

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

## `EnvironmentLinkProofExpired`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentLinker.ts:28](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentLinker.ts#L28-L39)
- Shape: `{ _tag: "EnvironmentLinkProofExpired"; userId: string; environmentId: string; expiresAt: string }`

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

## `EnvironmentLinkProofInvalid`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentLinker.ts:41](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentLinker.ts#L41-L67)
- Shape: `{ _tag: "EnvironmentLinkProofInvalid"; userId: string; environmentId: string; reason: RelayEnvironmentLinkProofInvalidReason; stage: "decode_token" | "decode_payload" | "verify_proof" | "authorize_capabilities" | "validate_descriptor" | "verify_challenge" | "validate_expiration" | "consume_proof_nonce" | "consume_challenge_nonce" | "validate_origin" | "validate_existing_link" | "validate_endpoint"; cause?: unknown }`

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

## `EnvironmentLinkRevokePersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentLinks.ts:90](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentLinks.ts#L90-L101)
- Shape: `{ _tag: "EnvironmentLinkRevokePersistenceError"; userId: string; environmentId: string; cause: unknown }`

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

## `EnvironmentLinkUpsertPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentLinks.ts:27](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentLinks.ts#L27-L39)
- Shape: `{ _tag: "EnvironmentLinkUpsertPersistenceError"; userId: string; environmentId: string; deviceId?: string; cause: unknown }`

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

## `EnvironmentLinkUserListPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentLinks.ts:41](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentLinks.ts#L41-L51)
- Shape: `{ _tag: "EnvironmentLinkUserListPersistenceError"; environmentId: string; cause: unknown }`

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

## `EnvironmentMintRequestFailed`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentConnector.ts:88](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentConnector.ts#L88-L101)
- Shape: `{ _tag: "EnvironmentMintRequestFailed"; environmentId: string; operation: "connect" | "status"; cause: unknown; endpointFailure?: RelayEnvironmentEndpointFailure; endpointStatus?: number }`

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

## `EnvironmentMintRequestTimedOut`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentConnector.ts:103](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentConnector.ts#L103-L113)
- Shape: `{ _tag: "EnvironmentMintRequestTimedOut"; environmentId: string; timeoutMs: number }`

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

## `EnvironmentMintResponseInvalid`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentConnector.ts:115](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentConnector.ts#L115-L125)
- Shape: `{ _tag: "EnvironmentMintResponseInvalid"; environmentId: string; operation: "connect" | "status" }`

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

## `EnvironmentPublishSignatureExpired`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentPublishSignatures.ts:25](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentPublishSignatures.ts#L25-L36)
- Shape: `{ _tag: "EnvironmentPublishSignatureExpired"; environmentId: string; threadId: string; expiresAt: string }`

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

## `EnvironmentPublishSignatureInvalid`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/EnvironmentPublishSignatures.ts:38](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/EnvironmentPublishSignatures.ts#L38-L58)
- Shape: `{ _tag: "EnvironmentPublishSignatureInvalid"; environmentId: string; threadId: string; reason: RelayAgentActivityPublishProofInvalidReason; stage: "decode_token" | "verify_proof" | "validate_claims" | "validate_expiration" | "generate_replay_thumbprint" | "consume_nonce"; cause?: unknown }`

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

## `FcmAssertionSigningError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/FcmAssertionSigner.ts:10](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/FcmAssertionSigner.ts#L10-L17)
- Shape: `{ _tag: "FcmAssertionSigningError"; cause: unknown }`

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

## `FcmClientError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/FcmClient.ts:42](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/FcmClient.ts#L42-L50)
- Shape: `{ _tag: "FcmClientError"; operation: "configuration" | "authorize" | "send"; status: number | null; cause?: unknown }`

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

## `FcmDeliveryError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/FcmDeliveries.ts:52](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/FcmDeliveries.ts#L52-L59)
- Shape: `{ _tag: "FcmDeliveryError"; operation: "enqueue" | "decode-job" | "invalidate-token"; cause: unknown }`

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

## `FcmDeliveryJob`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/FcmDeliveries.ts:35](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/FcmDeliveries.ts#L35-L42)
- Shape: `{ userId: string; deviceId: string; token: string; state: RelayAgentActivityState | null; queuedAt: number; replay?: boolean }`

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

## `HookInboxError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/hooks/HookInbox.ts:7](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/hooks/HookInbox.ts#L7-L15)
- Shape: `{ _tag: "HookInboxError"; operation: "hold" | "wake" | "clear"; endpointKey: string; cause: unknown }`

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

## `LiveActivityDeliveryMarkPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/LiveActivities.ts:58](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/LiveActivities.ts#L58-L71)
- Shape: `{ _tag: "LiveActivityDeliveryMarkPersistenceError"; operation: "mark-delivery" | "invalidate-delivery-token"; userId: string; deviceId: string; kind: RelayDeliveryKind | null; cause: unknown }`

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

## `LiveActivityIdleTargetListPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/LiveActivities.ts:46](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/LiveActivities.ts#L46-L56)
- Shape: `{ _tag: "LiveActivityIdleTargetListPersistenceError"; deliveredBefore: string; cause: unknown }`

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

## `LiveActivityRegistrationPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/LiveActivities.ts:21](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/LiveActivities.ts#L21-L32)
- Shape: `{ _tag: "LiveActivityRegistrationPersistenceError"; userId: string; deviceId: string; cause: unknown }`

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

## `LiveActivityTargetListPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/LiveActivities.ts:34](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/LiveActivities.ts#L34-L44)
- Shape: `{ _tag: "LiveActivityTargetListPersistenceError"; userId: string; cause: unknown }`

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

## `ManagedEndpointAllocationPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedEndpointAllocations.ts:52](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedEndpointAllocations.ts#L52-L82)
- Shape: `{ _tag: "ManagedEndpointAllocationPersistenceError"; operation: "get" | "reserve" | "record-tunnel" | "record-dns" | "mark-ready" | "enable-recovery" | "list-tunnels" | "lock-tunnel" | "claim-release" | "claim-deprovision" | "remove-claimed" | "get-by-tunnel-name"; stage: "database-request" | "resolve-reservation"; userId: string; environmentId: string; hostname?: string; tunnelName?: string; tunnelId?: string; dnsRecordId?: string; cause?: unknown }`

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

## `ManagedEndpointCleanupMode`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/Config.ts:11](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/Config.ts#L11)
- Shape: `"off" | "dry-run" | "enabled"`

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

## `ManagedEndpointDeprovisioningFailed`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedEndpointProvider.ts:108](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedEndpointProvider.ts#L108-L122)
- Shape: `{ _tag: "ManagedEndpointDeprovisioningFailed"; stage: "load-allocation" | "load-tunnel" | "claim-release" | "claim-deprovision" | "delete-dns-record" | "delete-tunnel" | "disconnect-tunnel" | "remove-allocation"; userId: string; environmentId: string; tunnelId?: string; dnsRecordId?: string; cause: unknown }`

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

## `ManagedEndpointDnsClientError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedEndpointProvider.ts:318](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedEndpointProvider.ts#L318-L331)
- Shape: `{ _tag: "ManagedEndpointDnsClientError"; operation: "list-records" | "create-record" | "update-record" | "delete-record"; hostname?: string; dnsRecordId?: string; cause: unknown }`

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

## `ManagedEndpointOriginNotAllowed`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedEndpointProvider.ts:124](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedEndpointProvider.ts#L124-L136)
- Shape: `{ _tag: "ManagedEndpointOriginNotAllowed"; userId: string; environmentId: string; host: string; port: number }`

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

## `ManagedEndpointProvisioningFailed`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedEndpointProvider.ts:76](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedEndpointProvider.ts#L76-L95)
- Shape: `{ _tag: "ManagedEndpointProvisioningFailed"; stage: "derive-environment-hash" | "check-tunnel-limit" | "reserve-allocation" | "ensure-tunnel" | "validate-tunnel-response" | "record-tunnel" | "configure-tunnel" | "ensure-dns-record" | "record-dns" | "get-tunnel-token" | "mark-allocation-ready" | "load-allocation" | "verify-endpoint" | "verify-tunnel" | "sync-origin"; reason?: "claim-lost" | "endpoint-mismatch" | "invalid-tunnel-response"; userId: string; environmentId: string; hostname?: string; tunnelName?: string; tunnelId?: string; dnsRecordId?: string; returnedTunnelName?: string; returnedTunnelId?: string; cause?: unknown }`

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

## `ManagedEndpointProvisioningNotConfigured`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedEndpointProvider.ts:37](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedEndpointProvider.ts#L37-L50)
- Shape: `{ _tag: "ManagedEndpointProvisioningNotConfigured"; userId: string; environmentId: string; missingSettings: ("managedEndpointBaseDomain" | "managedEndpointNamespace")[] }`

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

## `ManagedEndpointTunnelClientError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedEndpointProvider.ts:231](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedEndpointProvider.ts#L231-L244)
- Shape: `{ _tag: "ManagedEndpointTunnelClientError"; operation: "get" | "list" | "create" | "put-configuration" | "get-configuration" | "get-token" | "delete" | "disconnect"; tunnelName?: string; tunnelId?: string; cause: unknown }`

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

## `ManagedTunnelLimitExceeded`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedTunnelLimits.ts:35](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedTunnelLimits.ts#L35-L47)
- Shape: `{ _tag: "ManagedTunnelLimitExceeded"; userId: string; environmentId: string; maxTunnels: number; activeTunnels: number }`

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

## `ManagedTunnelLimitPersistenceError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/environments/ManagedTunnelLimits.ts:22](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/environments/ManagedTunnelLimits.ts#L22-L33)
- Shape: `{ _tag: "ManagedTunnelLimitPersistenceError"; operation: "transaction" | "lock-user" | "load-limit" | "count-tunnels"; userId: string; cause: unknown }`

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

## `RelayPublicDomainLabelTooLongError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/deploymentConfig.ts:18](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/deploymentConfig.ts#L18-L29)
- Shape: `{ _tag: "RelayPublicDomainLabelTooLongError"; stage: string; label: string; maxLength: number }`

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

## `RelayUrlUnavailableError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/clientConfig.ts:26](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/clientConfig.ts#L26-L33)
- Shape: `{ _tag: "RelayUrlUnavailableError" }`

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

## `SignedApnsDeliveryJob`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/agentActivity/apnsDeliveryJobs.ts:68](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/agentActivity/apnsDeliveryJobs.ts#L68-L72)
- Shape: `{ algorithm: "hmac-sha256"; payload: ApnsDeliveryJobPayload; signature: string }`

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

## `SourceMapObjectError`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/mobileTelemetry/MobileTelemetry.ts:72](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/mobileTelemetry/MobileTelemetry.ts#L72-L75)
- Shape: `{ _tag: "SourceMapObjectError"; key: string; cause: unknown }`

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

## `T3ChatNotConfigured`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/t3chat/T3ChatAccounts.ts:25](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/t3chat/T3ChatAccounts.ts#L25-L32)
- Shape: `{ _tag: "T3ChatNotConfigured" }`

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

## `T3ChatRequestFailed`

- Kind: schema
- Workspace: [t3code-relay](../../architecture/t3code-relay.md)
- Source: [infra/relay/src/t3chat/T3ChatAccounts.ts:43](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/infra/relay/src/t3chat/T3ChatAccounts.ts#L43-L53)
- Shape: `{ _tag: "T3ChatRequestFailed"; operation: "get-link" | "unlink"; cause: unknown }`
