flip_api.domain.schemas.actions

Classes

ProjectAuditAction

Enum where members are also (and must be) strings

ModelAuditAction

Enum where members are also (and must be) strings

TrustAuditAction

Lifecycle events for the trust registry.

Module Contents

class flip_api.domain.schemas.actions.ProjectAuditAction[source]

Bases: enum.StrEnum

Enum where members are also (and must be) strings

DELETE = 'DELETE'
EDIT = 'EDIT'
APPROVE = 'APPROVE'
STAGE = 'STAGE'
UNSTAGE = 'UNSTAGE'
class flip_api.domain.schemas.actions.ModelAuditAction[source]

Bases: enum.StrEnum

Enum where members are also (and must be) strings

DELETE = 'DELETE'
EDIT = 'EDIT'
PREPARED = 'PREPARED'
TRAINING_STARTED = 'TRAINING_STARTED'
RESULTS_UPLOADED = 'RESULTS_UPLOADED'
class flip_api.domain.schemas.actions.TrustAuditAction[source]

Bases: enum.StrEnum

Lifecycle events for the trust registry.

Captured by trusts_services.utils.audit_helper.audit_trust_action: register_trust writes REGISTERED, delete_trust writes DELETED. The audit row is stored in trusts_audit with no FK to trust.id, so it persists past a hard delete.

REGISTERED = 'REGISTERED'
DELETED = 'DELETED'