feat(federation): owner-initiated detached-account re-attach — proof-gated re-bind with stub merge (re-attach spec §3.2, §3.3)

This commit is contained in:
Jannis Braun
2026-07-03 02:06:00 +02:00
parent 7bff6c1a1b
commit d45366c4ff
6 changed files with 474 additions and 1 deletions
+18
View File
@@ -1163,6 +1163,24 @@ export interface FederationSyncResponse {
checkpoint: number;
}
// Detached-account re-attach (re-attach spec §3.13.2).
// Minted on the home instance D for a logged-in native user.
export interface AttachProofResponse {
token: string;
}
// Body of POST /api/users/@me/reattach on the peer R — the one-time proof token
// minted by the home instance, verified with D over signed S2S.
export interface ReattachRequest {
token: string;
}
// Success response of POST /api/users/@me/reattach — the re-bound self-view.
export interface ReattachResponse {
success: true;
user: User;
}
export interface FederationUserLookupRequest {
username: string;
}