You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: activitysmith_openapi/api/push_notifications_api.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ def send_push_notification(
56
56
) ->PushNotificationResponse:
57
57
"""Send a push notification
58
58
59
-
Sends a push notification to devices matched by API key scope and optional target channels. Supports optional redirection URL (tap) and up to 4 interactive actions (long-press on iOS).
59
+
Sends a push notification to devices matched by API key scope and optional target channels. Supports optional redirection URL, optional media preview or playback when the notification is expanded, and up to 4 interactive actions. `media` cannot be combined with `actions`.
Sends a push notification to devices matched by API key scope and optional target channels. Supports optional redirection URL (tap) and up to 4 interactive actions (long-press on iOS).
130
+
Sends a push notification to devices matched by API key scope and optional target channels. Supports optional redirection URL, optional media preview or playback when the notification is expanded, and up to 4 interactive actions. `media` cannot be combined with `actions`.
Sends a push notification to devices matched by API key scope and optional target channels. Supports optional redirection URL (tap) and up to 4 interactive actions (long-press on iOS).
201
+
Sends a push notification to devices matched by API key scope and optional target channels. Supports optional redirection URL, optional media preview or playback when the notification is expanded, and up to 4 interactive actions. `media` cannot be combined with `actions`.
**media** | **str** | Optional HTTPS URL for an image, audio file, or video that users can preview or play when they expand the notification. If `redirection` is omitted, tapping the notification opens this URL. Cannot be combined with `actions`. | [optional]
12
+
**redirection** | **str** | Optional HTTPS URL opened when user taps the notification body. Overrides the default tap target from `media` when both are provided. | [optional]
13
+
**actions** | [**List[PushNotificationAction]**](PushNotificationAction.md) | Optional interactive actions shown when users expand the notification. Cannot be combined with `media`. | [optional]
Sends a push notification to devices matched by API key scope and optional target channels. Supports optional redirection URL (tap) and up to 4 interactive actions (long-press on iOS).
15
+
Sends a push notification to devices matched by API key scope and optional target channels. Supports optional redirection URL, optional media preview or playback when the notification is expanded, and up to 4 interactive actions. `media` cannot be combined with `actions`.
Copy file name to clipboardExpand all lines: activitysmith_openapi/models/push_notification_request.py
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -32,14 +32,25 @@ class PushNotificationRequest(BaseModel):
32
32
title: StrictStr
33
33
message: Optional[StrictStr] =None
34
34
subtitle: Optional[StrictStr] =None
35
-
redirection: Optional[Annotated[str, Field(strict=True)]] =Field(default=None, description="Optional HTTPS URL opened when user taps the notification body.")
media: Optional[Annotated[str, Field(strict=True)]] =Field(default=None, description="Optional HTTPS URL for an image, audio file, or video that users can preview or play when they expand the notification. If `redirection` is omitted, tapping the notification opens this URL. Cannot be combined with `actions`.")
36
+
redirection: Optional[Annotated[str, Field(strict=True)]] =Field(default=None, description="Optional HTTPS URL opened when user taps the notification body. Overrides the default tap target from `media` when both are provided.")
37
+
actions: Optional[Annotated[List[PushNotificationAction], Field(max_length=4)]] =Field(default=None, description="Optional interactive actions shown when users expand the notification. Cannot be combined with `media`.")
0 commit comments