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

@@ -0,0 +1,22 @@
package organization
import "errors"
var (
// ErrForbidden reports an account that cannot create or manage an
// organization.
ErrForbidden = errors.New("organization operation forbidden")
// ErrEmailNotVerified reports an account whose current email is not
// confirmed.
ErrEmailNotVerified = errors.New("organization requires a confirmed email")
// ErrIdempotencyKeyReused reports a live key first used with another body.
ErrIdempotencyKeyReused = errors.New("idempotency key reused with a different request")
// ErrInvalidIdempotencyKey reports a key outside the public contract bound.
ErrInvalidIdempotencyKey = errors.New("invalid idempotency key")
// ErrInvalidCreateRequest reports an oversized canonical request body.
ErrInvalidCreateRequest = errors.New("invalid organization create request")
)