CredentialsRegistry
Global in-memory registry of :class:CredentialsDataBase subclasses.
Populated at import time by the @credentials_type decorator. It is
indexed by the globally unique type_id (<brick_name>.<unique_name>)
of each credentials data class. Any brick can register its own credentials
data class, so the set of available credentials types is no longer hardcoded.
Return all registered credentials data classes, keyed by type id.
dict[str, type[CredentialsDataBase]]Return the ids of all registered credentials data classes.
listReturn the credentials data class registered for the given id.
Raises if no data class is registered for the given id.
strtype[CredentialsDataBase]Return the credentials data class registered for the given id, or None.
Legacy type ids (old uppercase enum values) are resolved through
:attr:_legacy_aliases so rows not yet normalized by the 0.23.0
migration still resolve.
strtype[CredentialsDataBase] | NoneRegister a credentials data class. Called by the decorator.
Raises if a data class with the same type_id is already registered,
which means two credentials data classes of the same brick share a name.
type[CredentialsDataBase]