Approval-channel reference¶
The installed package exposes transport-neutral request models, a PostgreSQL store, and explicit migration helpers.
approval_channels ¶
Installable, transport-neutral approval request contracts.
__all__
module-attribute
¶
__all__ = ['ApprovalDecisionRecord', 'ApprovalPostgresMigration', 'ApprovalRequestBinding', 'ApprovalRequestError', 'ApprovalRequestRecord', 'ApprovalRequestView', 'PostgresApprovalRequestStore', 'approval_postgres_migration', 'migrate_approval_postgres', 'render_approval_postgres_migration']
ApprovalDecisionRecord ¶
ApprovalRequestBinding ¶
Bases: ActionModel
Immutable fields that a callback must never be allowed to supply.
schema_version
class-attribute
instance-attribute
¶
ApprovalRequestError ¶
Bases: RuntimeError
Content-safe approval request refusal.
ApprovalRequestRecord ¶
Bases: ActionModel
ApprovalRequestView ¶
PostgresApprovalRequestStore ¶
Persist immutable request bindings and first-write-wins decisions.
for_proposal
async
¶
for_proposal(tenant_reference: str, proposal_reference: str) -> ApprovalRequestRecord
record_decision
async
¶
record_decision(request_reference: str, decision: ApprovalDecisionRecord) -> ApprovalRequestRecord
ApprovalPostgresMigration
dataclass
¶
migrate_approval_postgres
async
¶
migrate_approval_postgres(pool: ConnectionSource, *, schema: str = 'threvo_approvals') -> ApprovalPostgresMigration
Apply the approval-store migration explicitly and verify history.
render_approval_postgres_migration ¶
Render immutable approval-store SQL for review or deployment.