feat: add assessment, privacy and support flows
This commit is contained in:
1 parent
ee3738ee73
commit
e4f24fa202
339 files changed
+56454
-1126
No files matched your search
@@ -151,6 +151,13 @@ type ConsentLedger interface {
|
||||
// CurrentContact.
|
||||
Current(ctx context.Context, subjectID uuid.UUID, purpose domain.ConsentPurpose) (domain.ConsentRecord, error)
|
||||
|
||||
// LockCurrentForUse returns and share-locks the current C3 record for the
|
||||
// subject. A caller that authorizes a real automated assessment must use it
|
||||
// inside the same transaction that creates or mutates that assessment. The
|
||||
// lock serializes the operation with C3 revocation until commit. Missing C3
|
||||
// returns ErrConsentNotFound; other purposes return domain.ErrInvalidConsent.
|
||||
LockCurrentForUse(ctx context.Context, subjectID uuid.UUID, purpose domain.ConsentPurpose) (domain.ConsentRecord, error)
|
||||
|
||||
// LockRegistration returns and locks the active registration C1 for one
|
||||
// registration version, or ErrConsentNotFound. Email confirmation calls it
|
||||
// inside the same transaction after consuming the token and applying the
|
||||
|
||||
Reference in new issue
Block a user