Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions activitysmith_openapi/api/push_notifications_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def send_push_notification(
) -> PushNotificationResponse:
"""Send a push notification

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`. Optional `icon` shows a custom image, such as a service logo or avatar, next to a smaller app icon. Optional `interruption_level` sets how urgently iOS presents the notification. Optional tags to organize and filter notification history.
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`. Optional `icon` shows a custom image, such as a logo or avatar, next to a smaller app icon. Optional `interruption_level` sets how urgently iOS presents the notification. Optional tags to organize and filter notification history.

:param push_notification_request: (required)
:type push_notification_request: PushNotificationRequest
Expand Down Expand Up @@ -128,7 +128,7 @@ def send_push_notification_with_http_info(
) -> ApiResponse[PushNotificationResponse]:
"""Send a push notification

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`. Optional `icon` shows a custom image, such as a service logo or avatar, next to a smaller app icon. Optional `interruption_level` sets how urgently iOS presents the notification. Optional tags to organize and filter notification history.
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`. Optional `icon` shows a custom image, such as a logo or avatar, next to a smaller app icon. Optional `interruption_level` sets how urgently iOS presents the notification. Optional tags to organize and filter notification history.

:param push_notification_request: (required)
:type push_notification_request: PushNotificationRequest
Expand Down Expand Up @@ -200,7 +200,7 @@ def send_push_notification_without_preload_content(
) -> RESTResponseType:
"""Send a push notification

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`. Optional `icon` shows a custom image, such as a service logo or avatar, next to a smaller app icon. Optional `interruption_level` sets how urgently iOS presents the notification. Optional tags to organize and filter notification history.
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`. Optional `icon` shows a custom image, such as a logo or avatar, next to a smaller app icon. Optional `interruption_level` sets how urgently iOS presents the notification. Optional tags to organize and filter notification history.

:param push_notification_request: (required)
:type push_notification_request: PushNotificationRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Name | Type | Description | Notes
**users_notified** | **int** | | [optional]
**effective_channel_slugs** | **List[str]** | | [optional]
**tags** | **List[str]** | Optional tags to organize and filter notification history. | [optional]
**warning** | **str** | Present on `updated` responses when the current Live Activity has received more than 12 updates and has averaged more than one update every 2 minutes since it started. The update is still sent, but iOS may throttle Live Activities that update this often. | [optional]
**timestamp** | **datetime** | |

## Example
Expand Down
2 changes: 1 addition & 1 deletion activitysmith_openapi/docs/PushNotificationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Method | HTTP request | Description

Send a push notification

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`. Optional `icon` shows a custom image, such as a service logo or avatar, next to a smaller app icon. Optional `interruption_level` sets how urgently iOS presents the notification. Optional tags to organize and filter notification history.
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`. Optional `icon` shows a custom image, such as a logo or avatar, next to a smaller app icon. Optional `interruption_level` sets how urgently iOS presents the notification. Optional tags to organize and filter notification history.

### Example

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ class LiveActivityStreamPutResponse(BaseModel):
users_notified: Optional[StrictInt] = None
effective_channel_slugs: Optional[List[StrictStr]] = None
tags: Optional[List[Annotated[str, Field(min_length=1, strict=True, max_length=64)]]] = Field(default=None, description="Optional tags to organize and filter notification history.")
warning: Optional[StrictStr] = Field(default=None, description="Present on `updated` responses when the current Live Activity has received more than 12 updates and has averaged more than one update every 2 minutes since it started. The update is still sent, but iOS may throttle Live Activities that update this often.")
timestamp: datetime
__properties: ClassVar[List[str]] = ["success", "operation", "stream_key", "activity_id", "previous_activity_id", "devices_notified", "devices_queued", "users_notified", "effective_channel_slugs", "tags", "timestamp"]
__properties: ClassVar[List[str]] = ["success", "operation", "stream_key", "activity_id", "previous_activity_id", "devices_notified", "devices_queued", "users_notified", "effective_channel_slugs", "tags", "warning", "timestamp"]

@field_validator('operation')
def operation_validate_enum(cls, value):
Expand Down Expand Up @@ -114,6 +115,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"users_notified": obj.get("users_notified"),
"effective_channel_slugs": obj.get("effective_channel_slugs"),
"tags": obj.get("tags"),
"warning": obj.get("warning"),
"timestamp": obj.get("timestamp")
})
return _obj
Expand Down
4 changes: 2 additions & 2 deletions activitysmith_openapi/openapi-source.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"repository": "ActivitySmithHQ/activitysmith-backend",
"commit": "ce15d69eeb25776a3ae395e77d8b907ff7ba0709",
"commit": "b1dbf8cd72c375f8f79d4bb9bfb7654f16e18f70",
"path": "openapi.json",
"sha256": "b113d50e06d6581707d9472dda6e371b996441f58dceba87a88f79cb96508a7d"
"sha256": "ffe823b1c9af1b42f340b386ef712fc5deffa1b8e7d92b9ed4724d6eb72a92ed"
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> LiveActivityStreamPutResponse:
tags = [
'gB:9JLe6iL71-aa-.Ctq:dcsc.3-8:1gAa8Xa6u61ArrlGpCQjkQVRmfnjddwcDM0'
],
warning = '',
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
)
else:
Expand Down
Loading