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.

BucketId

Bucket identity (profile UUID or a system-scoped sentinel).

alias of Annotated[str, StringConstraints(strip_whitespace=True, to_upper=None, to_lower=None, strict=None, min_length=1, max_length=128, pattern=None, ascii_only=None)]