feat(accounts): add consent settings and organization management

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 13:00:39 +03:00
1 parent 24638d46d2
commit 391af7a1ef
83 files changed
+10198 -613

No files matched your search

+8 -4
View File
@@ -1,4 +1,4 @@
// Package consent grants the consents C1-C5 of the consent ledger.
// Package consent manages consent grants, revocations, and the C1 deletion request.
//
// A grant is checked against the current published text of its purpose and
// is recorded with the application clock; the client names the text version
@@ -9,9 +9,13 @@
// product function; a subject without C3 simply has no C3 record, and
// Current reports ErrConsentNotFound for it.
//
// Revocation is not part of this package. Its downstream effects (closing
// publication and grants, the deletion request, the manual path, stopping
// the import) belong to consent revocation, which calls ConsentLedger().Revoke.
// C1 revocation creates a durable account-deletion request and never deletes
// the account synchronously. Other revocations update the ledger and apply
// transaction-bound effects. C2 closes local publication, C3 leaves the
// manual assessment path available, and C5 denies future import through the
// current-consent gate. Outbox events are notifications rather than access
// checks; external FSP deletion and downstream contact-grant adapters are not
// implemented here.
package consent
import (