Source code for cadrumo.application.operations.events
"""Generic event vocabulary shared by operation public and owner contracts."""fromenumimportStrEnumfromtypingimportAnnotatedfrompydanticimportFieldtypeOperationEventSequence=Annotated[int,Field(ge=1)]typeOperationEventCode=Annotated[str,Field(min_length=3,max_length=128,pattern=r"^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$"),]
[docs]classOperationLogSeverity(StrEnum):"""Closed severity axis for safe operation log projections."""DEBUG="debug"INFO="info"WARNING="warning"ERROR="error"