aeat.core.identity._bucket module¶
Bucket-identity alias for the per-profile storage container.
The bucket is the per-profile persistence container that sits above any
single record domain. Every record-owning domain (transactions,
invoices, attachments, modelo records) and every persistence adapter
that materialises those records consumes a bucket identity at its
boundary; promoting the BucketId alias to core.identity lets each
consumer import it without crossing a sibling-domain boundary.
The constraint shape — min_length=1, max_length=128, surrounding
whitespace stripped — pins the bucket identity at the pydantic boundary
so a malformed value is rejected on construction rather than leaking
into persisted records or wire payloads.