MirrorEventtypetype MirrorEvent =
/** The primary took a change: `op` is what was done, and `path` the object it was done to (the new… (1476 characters)
type MirrorEvent =
/** The primary took a change: `op` is what was done, and `path` the object it was done to (the new name of a rename). */
| { readonly kind: "written"; readonly at: number; readonly op: "put" | "delete" | "rename" | "append"; readonly path: Path; readonly rev?: Revision }
/** Changes wait for the replicas: `pending` is how many paths. */
| { readonly kind: "queued"; readonly at: number; readonly pending: number }
/** A replica was brought up to the primary as far as it could be: how many changes were made and how many failed. */
| { readonly kind: "converged"; readonly at: number; readonly replica: string; readonly applied: number; readonly failed: number }
/** A replica is behind: `reachable` is false where it could not be reached. */
| { readonly kind: "behind"; readonly at: number; readonly replica: string; readonly pending: number; readonly reachable: boolean }
/** A replica was changed by someone else at these paths, which the mirror leaves as they are. */
| { readonly kind: "diverged"; readonly at: number; readonly replica: string; readonly paths: readonly Path[] }
/** A replica became the primary. */
| { readonly kind: "promoted"; readonly at: number; readonly from: string; readonly to: string; readonly lost: number }
/** A read was answered by a replica because the primary could not be reached. */
| { readonly kind: "degraded-read"; readonly at: number; readonly path: Path; readonly from: string };What a mirror tells.