"""
Module domain specific code related to JBI.

This part of the code is not aware of the HTTP context it runs in.
"""

from enum import Enum


class Operation(str, Enum):
    """Enumeration of possible operations logged during WebHook execution."""

    HANDLE = "handle"
    EXECUTE = "execute"
    IGNORE = "ignore"
    SUCCESS = "success"

    CREATE = "create"
    UPDATE = "update"
    DELETE = "delete"
    COMMENT = "comment"
    ATTACHMENT = "attachment"
    LINK = "link"


ActionResult = tuple[bool, dict]
