> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Partner sync

> Choose who operates a Fivetran or Airbyte connection, remove connections, and retire a partner provider.

A transfer mount's `partner` slot (`partner-sync@1`) chooses who operates its
Fivetran or Airbyte connections: Bijection's managed relay, or the same
managed driver on your own account, `placement.managed({ account })` with
`fivetran.account(...)` or `airbyte.workspace(...)` from
`@bijectionhq/library-transfer`. Choosing and switching
is ordinary [placement](https://docs.bijection.com/operate/placement.md). Everything else about a
connection (attachments, export credentials, teardown at the vendor and the
evidence for it) belongs to the transfer mount and is reached through its
operations with `bijection query` and `bijection mutate` on
`<transfers>.…`.

Export credentials that Bijection issues for a connection end when the
partner generation stops serving: the move's fence, a withdrawal or an
abandoned move revokes the generation's grant, and every export credential
issued under it ends in the same commit. A connection left at the vendor can
then pull nothing more.

A stock partner provider (a Fivetran account, an Airbyte Cloud workspace or a
self-hosted Airbyte without a controlled receiver) cannot prove where a used
connection stopped, and cannot continue from where another provider stopped.
A deploy that moves the slot to or from one therefore refuses with
`CannotResume`, before anything stops, until you deploy again with
`--restart <slot>`. `--trial` shows the refusal. The new provider then
starts a new history: Transfer opens a fresh attachment for each connection
and runs a full resync. Removing the slot still releases it.

A self-hosted Airbyte with a controlled receiver moves without a resync.
Name the receiver in the binding:

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bind(app.transfers.partner, placement.managed({ account: airbyte.workspace({
  url: "https://airbyte.acme.example",
  receiver: { url: "https://receiver.acme.example", mount: "mirror", credential: "transfers.receiver.operator" },
}) }));
```

`credential` names the secret holding a bearer for the receiver's operator
role. The move's stop asks the receiver for its signed close, and the new
generation's resume asks its receiver to seed from exactly that close. The
successor connection then starts from that checkpoint. A stop repeats the
same close, so binding back after the stop seeds a fresh generation from it.
A receiver whose writer had not caught up stops at a null point, and the
move then needs `--restart`. A receiver stopped before its first batch
never admits that writer again. A new history there needs a fresh writer
enrollment.

## Remove a connection

`bijection sync remove` starts removal. The connection stays in `removing`
until the provider confirms absence in the original account or workspace.
Managed Airbyte cleanup then removes its source. Use `bijection sync status`
to see the pending phase and retained observations. Rerunning removal after
an uncertain reply checks for confirmation of the original outcome.

* In a Fivetran account you operate, delete the original connection in
  Fivetran, then run removal to confirm its absence from the authenticated
  account and group.
* For Cloud Airbyte workspaces you operate, delete the source shown in
  `bijection sync status` after connection removal, then rerun removal to
  record the source's scoped absence.
* For self-hosted Airbyte, remove the connection there and pass
  `--confirm-external-removal` to record your confirmation and end local
  access.

`--revoke-client` confirms the end of every Bijection-issued grant recorded
for the attachment, including earlier rotation attempts.

## Retire a partner provider

Change providers by updating the binding and deploying. To withdraw the
slot, remove the Transfer mount and deploy. Withdrawal ends the generation's
export credentials in that commit. Control removes its managed connections and
unshared Airbyte sources, even after the Transfer mount is gone. Release
waits for confirmed removal and settlement of the original relay calls.
Customer-operated connections stay under your account's ownership.
`bijection mutate <transfers>.partners.observeScheduler`
requests a fresh scheduler read for a managed or customer-operated Fivetran
or Airbyte Cloud attachment.

## Billing

Managed partner sync requires a Bijection-issued export client. Each page
issued for it is the `pages` meter of the partner slot. For a customer
provider, a Bijection-issued client is issued under the attachment's
placement generation and bound to its sync and consumer; customer OAuth
continues to use your issuer.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.