createInvitedUser(username: string,adminLevel: AdminLevel,inviteCodeHash: string,inviteExpiry: string,inviteWrappedDataKey?: WrappedKey | null,): Promise<User>
Create an invited user (no password yet, has invite code). When the inviter passes a wrapped DATA_KEY handoff, the invitee self-activates at /join under the v2 scheme; otherwise an admin activates them later (legacy v1 path). kek_version is a placeholder here — there is no wrapped_data_key until activation, which sets the real version.
adminLevel: AdminLevel
Promise<User>