Accounts 1.1.0: moving Events' users in, people.* requests, new recovery codes

POST /api/accounts/v1/requests (crosscode.identity-request/1): import.* keeps
each person's Events id as sub, password hash and authenticator secret
(sealed in transit), consent, notices and lockout; linked when the email
already has an account. people.* for product admins, limited to people the
product knows. New recovery codes after the first 2FA sign-in for people
moved in with 2FA. screen=signup. auth-client: request(), seal(), signUp.
8 new tests (47 in all).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 13:40:15 +02:00
co-authored by Claude Opus 5.5
parent 08fef930c1
commit 733992e917
19 changed files with 834 additions and 39 deletions
+4 -1
View File
@@ -97,7 +97,10 @@ export const importBatchSchema = base.extend({
people: z.array(importPersonSchema).min(1).max(IMPORT_BATCH_MAX),
});
/** Ends a move: Accounts compares the count and the ids' hash (`importIdsHash`) with what it holds. */
/**
* Ends a move: Accounts compares the count and the hash (`importIdsHash`) of the **subs** it gave
* back (`created`, `updated` and `linked`) with the people it holds as moved from this product.
*/
export const importFinishSchema = base.extend({
type: z.literal("import.finish"),
count: z.int().nonnegative(),