You've already forked pruchase_jhw
12 lines
284 B
Python
12 lines
284 B
Python
from typing import Any, Literal
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class NotificationEvent(BaseModel):
|
|
event_type: str
|
|
title: str
|
|
content_text: str
|
|
severity: Literal["info", "warning", "error"] = "info"
|
|
metadata: dict[str, Any] = Field(default_factory=dict)
|