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
4 changes: 2 additions & 2 deletions generated/activitysmith_openapi/api/push_notifications_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default)
@api_client = api_client
end
# 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 [PushNotificationRequest]
# @param [Hash] opts the optional parameters
# @return [PushNotificationResponse]
Expand All @@ -30,7 +30,7 @@ def send_push_notification(push_notification_request, opts = {})
end

# 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 [PushNotificationRequest]
# @param [Hash] opts the optional parameters
# @return [Array<(PushNotificationResponse, Integer, Hash)>] PushNotificationResponse data, response status code and response headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class LiveActivityStreamPutResponse
# Optional tags to organize and filter notification history.
attr_accessor :tags

# Present on `updated` responses when the previous update to this stream was less than 2 minutes ago. The update is still sent, but iOS may throttle frequent Live Activity updates.
attr_accessor :warning

attr_accessor :timestamp

class EnumAttributeValidator
Expand Down Expand Up @@ -74,6 +77,7 @@ def self.attribute_map
:'users_notified' => :'users_notified',
:'effective_channel_slugs' => :'effective_channel_slugs',
:'tags' => :'tags',
:'warning' => :'warning',
:'timestamp' => :'timestamp'
}
end
Expand All @@ -96,6 +100,7 @@ def self.openapi_types
:'users_notified' => :'Integer',
:'effective_channel_slugs' => :'Array<String>',
:'tags' => :'Array<String>',
:'warning' => :'String',
:'timestamp' => :'Time'
}
end
Expand Down Expand Up @@ -172,6 +177,10 @@ def initialize(attributes = {})
end
end

if attributes.key?(:'warning')
self.warning = attributes[:'warning']
end

if attributes.key?(:'timestamp')
self.timestamp = attributes[:'timestamp']
else
Expand Down Expand Up @@ -241,6 +250,7 @@ def ==(o)
users_notified == o.users_notified &&
effective_channel_slugs == o.effective_channel_slugs &&
tags == o.tags &&
warning == o.warning &&
timestamp == o.timestamp
end

Expand All @@ -253,7 +263,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[success, operation, stream_key, activity_id, previous_activity_id, devices_notified, devices_queued, users_notified, effective_channel_slugs, tags, timestamp].hash
[success, operation, stream_key, activity_id, previous_activity_id, devices_notified, devices_queued, users_notified, effective_channel_slugs, tags, warning, timestamp].hash
end

# Builds the object from hash
Expand Down
4 changes: 2 additions & 2 deletions generated/openapi-source.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"repository": "ActivitySmithHQ/activitysmith-backend",
"commit": "ce15d69eeb25776a3ae395e77d8b907ff7ba0709",
"commit": "3120827651d53be35682c307581b645e019e171a",
"path": "openapi.json",
"sha256": "b113d50e06d6581707d9472dda6e371b996441f58dceba87a88f79cb96508a7d"
"sha256": "6bb006eedfcefc69dc10084e894f499be330fa43cd17c5ddc2fa29d2acb4e356"
}
Loading