replica
Called by the cloud with its client certificate
putTenant
The tenant as the cloud holds it, sent when it is created or changed and again with every replica push. `hubs` lists the tenant's hubs: Watch deletes a hub of the tenant that it holds and the list lacks, with its checks, which is how a decommissioning that Watch missed reaches it. With state `deleting` Watch deletes the tenant with everything it has (docs/schema/watch.sql `tenant_delete`) and answers 204; the cloud deletes its own rows only then.
putHub
A hub enrolled, renewed its Watch key, was revoked or had its Watch rotation changed (docs/watch.md §1). Sent at the change and again with every replica push. On the first call Watch creates the hub's hub and synthetic checks, which don't count against `watch_checks`; every call sets the key, name, installation, rotation and fallback numbers of both and the synthetic check's cadence, which only the cloud changes. A change of the rotation or the fallback numbers, a revocation and a deletion are told to the previous fallback numbers, and Watch takes at most 20 revocations and deletions an hour from the cloud (docs/watch.md §5). A null `watch_key` revokes the hub: its beats are rejected and its checks are paused until a call with a key resumes them (docs/watch.md §1).
deleteHub
The hub was decommissioned; its key and its hub and synthetic checks are deleted.
putRotationReplica
Full replica of the tenant's rotations, every 5 minutes: per rotation the person on call and the next one with their numbers, computed as for the hub's fallback cache (docs/on-call.md §2, on call with numbers).
postSyntheticMessage
Under the cloud's evaluation delivery (docs/on-call.md §4): the SMS of a synthetic incident, which a cloud with carriers sends to Watch's test number. Watch takes it as that SMS arriving (docs/watch.md §1); a repeated id is ignored. Only a Watch without a test number takes it.