# Schemas: source-control-bitbucket

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

20 entries.

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

## `BitbucketApiError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:272](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L272-L286)
- Shape: `BitbucketUntrustedUrlError | BitbucketRepositoryLocatorError | BitbucketRequestError | BitbucketResponseError | BitbucketResponseBodyReadError | BitbucketResponseDecodeError | BitbucketRepositoryVcsResolveError | BitbucketRepositoryRemotesListError | BitbucketRepositoryRemoteNotFoundError | BitbucketPullRequestBodyReadError | BitbucketCheckoutError | SourceControlRateLimitPausedError | SettingsSecretUnresolvedError`

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

## `BitbucketCheckoutError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:238](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L238-L253)
- Shape: `{ _tag: "BitbucketCheckoutError"; cwd: string; reference: string; cause: unknown }`

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

## `BitbucketDiffCommitError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketPullRequestApi.ts:93](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketPullRequestApi.ts#L93-L104)
- Shape: `{ _tag: "BitbucketDiffCommitError" }`

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

## `BitbucketPullRequestBodyReadError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:221](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L221-L236)
- Shape: `{ _tag: "BitbucketPullRequestBodyReadError"; cwd: string; bodyFile: string; cause: unknown }`

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

## `BitbucketPullRequestBranchSchema`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/bitbucketPullRequests.ts:33](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/bitbucketPullRequests.ts#L33-L41)
- Shape: `{ repository?: BitbucketRepositoryRefSchema | null; branch: { name: GitRefName }; commit?: { hash?: string | null } | null }`

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

## `BitbucketPullRequestListSchema`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/bitbucketPullRequests.ts:58](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/bitbucketPullRequests.ts#L58-L61)
- Shape: `{ values: BitbucketPullRequestSchema[]; next?: TrimmedNonEmptyString }`

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

## `BitbucketPullRequestReadError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketPullRequestApi.ts:49](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketPullRequestApi.ts#L49-L63)
- Shape: `{ _tag: "BitbucketPullRequestReadError"; operation: string; cause: unknown }`

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

## `BitbucketPullRequestSchema`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/bitbucketPullRequests.ts:43](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/bitbucketPullRequests.ts#L43-L56)
- Shape: `{ id: PositiveInt; title: TrimmedNonEmptyString; state?: string | null; draft?: boolean; updated_on?: date; links: { html: { href: TrimmedNonEmptyString } }; source: BitbucketPullRequestBranchSchema; destination: BitbucketPullRequestBranchSchema }`

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

## `BitbucketRepositoryLocatorError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:83](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L83-L102)
- Shape: `{ _tag: "BitbucketRepositoryLocatorError"; repository: string }`

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

## `BitbucketRepositoryRefSchema`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/bitbucketPullRequests.ts:22](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/bitbucketPullRequests.ts#L22-L31)
- Shape: `{ full_name?: TrimmedNonEmptyString | null; workspace?: { slug?: TrimmedNonEmptyString | null } | null }`

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

## `BitbucketRepositoryRemoteNotFoundError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:206](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L206-L219)
- Shape: `{ _tag: "BitbucketRepositoryRemoteNotFoundError"; cwd: string }`

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

## `BitbucketRepositoryRemotesListError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:190](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L190-L204)
- Shape: `{ _tag: "BitbucketRepositoryRemotesListError"; cwd: string; cause: unknown }`

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

## `BitbucketRepositoryUnsupportedError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketPullRequestApi.ts:78](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketPullRequestApi.ts#L78-L91)
- Shape: `{ _tag: "BitbucketRepositoryUnsupportedError"; repository: string }`

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

## `BitbucketRepositoryVcsResolveError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:174](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L174-L188)
- Shape: `{ _tag: "BitbucketRepositoryVcsResolveError"; cwd: string; cause: unknown }`

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

## `BitbucketRequestError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:104](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L104-L118)
- Shape: `{ _tag: "BitbucketRequestError"; operation: "resolveRepository" | "getRepository" | "getBranchingModel" | "getPullRequest" | "listPullRequests" | "createRepository" | "createPullRequest" | "probeAuth" | "checkoutPullRequest" | "request"; cause: unknown }`

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

## `BitbucketResponseBodyReadError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:139](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L139-L155)
- Shape: `{ _tag: "BitbucketResponseBodyReadError"; operation: "resolveRepository" | "getRepository" | "getBranchingModel" | "getPullRequest" | "listPullRequests" | "createRepository" | "createPullRequest" | "probeAuth" | "checkoutPullRequest" | "request"; status: number; retryAt?: number; cause: unknown }`

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

## `BitbucketResponseDecodeError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:157](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L157-L172)
- Shape: `{ _tag: "BitbucketResponseDecodeError"; operation: "resolveRepository" | "getRepository" | "getBranchingModel" | "getPullRequest" | "listPullRequests" | "createRepository" | "createPullRequest" | "probeAuth" | "checkoutPullRequest" | "request"; status: number; cause: unknown }`

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

## `BitbucketResponseError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:120](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L120-L137)
- Shape: `{ _tag: "BitbucketResponseError"; operation: "resolveRepository" | "getRepository" | "getBranchingModel" | "getPullRequest" | "listPullRequests" | "createRepository" | "createPullRequest" | "probeAuth" | "checkoutPullRequest" | "request"; status: number; responseBodyLength: NonNegativeInt; retryAt?: number; userFacingDetail?: string }`

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

## `BitbucketUntrustedUrlError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketApi.ts:256](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketApi.ts#L256-L270)
- Shape: `{ _tag: "BitbucketUntrustedUrlError"; host: string }`

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

## `BitbucketViewerUnavailableError`

- Kind: schema
- Workspace: [@t3tools/source-control-bitbucket](../../architecture/t3tools-source-control-bitbucket.md)
- Source: [packages/source-control-bitbucket/src/server/BitbucketPullRequestApi.ts:65](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/source-control-bitbucket/src/server/BitbucketPullRequestApi.ts#L65-L76)
- Shape: `{ _tag: "BitbucketViewerUnavailableError" }`
