Notifications Type

NotificationTriggerAnalysis

Attributes:

analysis_id: GenericID
ID of the analysis to trigger.

NotificationTriggerHTTP

Attributes:

url: str
The URL to make the request to.
method: “POST” or “GET” or “PUT” or “DELETE” or “REDIRECT”
HTTP method to use for the request.
body: dict[str, Any]
Body of the HTTP request.

NotificationTriggerProfile

Attributes:

share_profile: “accept” or “refuse”
Action to take on a profile share.

NotificationButton

Attributes:

id: str
Unique identifier for the button.
label: str
Text displayed on the button.
color: Optional[str]
Color of the button.
Actions triggered when the button is clicked.

NotificationIconImage

Attributes:

image_url: str
URL of the image to use as the notification icon.
bg_color: Optional[HexColor]
Background color for the icon.
fit: Optional[“fill” or “contain” or “cover”]
How the image should fit in its container.

NotificationIconSVG

Attributes:

svg_url: str
URL of the SVG to use as the notification icon.
svg_color: Optional[HexColor]
Color of the SVG.
bg_color: Optional[HexColor]
Background color for the icon.

NotificationCreate

Attributes:

title: str
Title of the notification.
message: str
Content of the notification.
read: Optional[bool]
Whether the notification has been read.
Icon for the notification.
buttons: Optional[list[NotificationButton]]
Buttons to display with the notification.
buttons_enabled: Optional[bool]
Whether buttons are enabled.
buttons_autodisable: Optional[bool]
Whether buttons should automatically disable after being clicked.

NotificationQuery(Query)

Attributes:

fields: Optional[List[“created_at”]]
Fields to include in the query response.
filter: Optional[Dict[“read”, bool]]
Filters for the query.

NotificationInfo(NotificationCreate)

Attributes:

Unique identifier for the notification.
created_at: datetime
When the notification was created.

NotificationInfoBasic

Attributes:

Unique identifier for the notification.
created_at: datetime
When the notification was created.

NotificationCreateReturn

Attributes:

Unique identifier for the newly created notification.