cadrumo.application.auth._mutation module¶
Shared append-only bucket-event construction for auth mutations.
- class AuthBucketEventSpec(event_type, object_id, payload, occurred_at)[source]¶
Bases:
NamedTupleOne append-only auth bucket event prepared by an application mutation.
- Parameters:
-
event_type:
BucketEventType¶ Alias for field number 0
- build_auth_bucket_events(*, bucket_id, events)[source]¶
Build deterministic secret-free auth events for atomic persistence.
- Return type:
- Parameters:
bucket_id (str)
events (tuple[AuthBucketEventSpec, ...])