|
|
@@ -0,0 +1,13 @@
|
|
|
+from typing import Protocol, Union
|
|
|
+
|
|
|
+from anonflow.services.transport.content import (
|
|
|
+ ContentGroup,
|
|
|
+ ContentItem
|
|
|
+)
|
|
|
+from anonflow.services.transport.types import RequestContext
|
|
|
+
|
|
|
+
|
|
|
+class PostResponsesPort(Protocol):
|
|
|
+ async def post_prepared(self, context: RequestContext, content: Union[ContentItem, ContentGroup], is_approved: bool): ...
|
|
|
+ async def post_moderation_decision(self, context: RequestContext, is_approved: bool, reason: str): ...
|
|
|
+ async def post_moderation_started(self, context: RequestContext): ...
|