Skip to content

bovine_propan.types

FetchObjectMessage

Bases: BaseModel

Request to fetch object

Source code in bovine_process/bovine_propan/types.py
class FetchObjectMessage(BaseModel):
    """Request to fetch object"""

    bovine_name: str = Field(
        examples=["vanilla_1234"],
        description="Unique identifier of the actor in the database",
    )

    object_id: str = Field(description="The object to fetch")

ProcessingMessage

Bases: BaseModel

Message being processed

see source for field details

Source code in bovine_process/bovine_propan/types.py
class ProcessingMessage(BaseModel):
    """Message being processed

    see source for field details"""

    bovine_name: str = Field(
        examples=["vanilla_1234"],
        description="Unique identifier of the actor in the database",
    )

    submitter: str = Field(description="Actor that submitted the item")

    data: dict | list = Field(
        description="ActivityPub object being processed", examples=[{"type": "Like"}]
    )

SendMessage

Bases: BaseModel

Message being send

see source for field details

Source code in bovine_process/bovine_propan/types.py
class SendMessage(BaseModel):
    """Message being send

    see source for field details"""

    bovine_name: str = Field(
        examples=["vanilla_1234"],
        description="Unique identifier of the actor in the database",
    )

    recipient: str = Field(description="Actor the message is being send to")

    data: dict | list = Field(
        description="ActivityPub object being send", examples=[{"type": "Like"}]
    )