Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class LiveActivityStreamDeleteResponse

attr_accessor :forced_completion

# Present when the stream had a current Live Activity. True when the end was sent to at least one device, or queued for a device that has not registered yet. False when no device received it, so the Live Activity may stay on the Lock Screen until iOS removes it or someone dismisses it.
attr_accessor :delivered

# Explains why the end may not have removed the Live Activity, for example because iOS had already ended a Live Activity that started more than 8 hours ago.
attr_accessor :warning

# Per-device delivery errors when some devices could not be reached.
Expand Down Expand Up @@ -77,6 +81,7 @@ def self.attribute_map
:'ignored' => :'ignored',
:'message' => :'message',
:'forced_completion' => :'forced_completion',
:'delivered' => :'delivered',
:'warning' => :'warning',
:'errors' => :'errors'
}
Expand All @@ -100,6 +105,7 @@ def self.openapi_types
:'ignored' => :'Boolean',
:'message' => :'String',
:'forced_completion' => :'Boolean',
:'delivered' => :'Boolean',
:'warning' => :'String',
:'errors' => :'Array<String>'
}
Expand Down Expand Up @@ -175,6 +181,10 @@ def initialize(attributes = {})
self.forced_completion = attributes[:'forced_completion']
end

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

if attributes.key?(:'warning')
self.warning = attributes[:'warning']
end
Expand Down Expand Up @@ -248,6 +258,7 @@ def ==(o)
ignored == o.ignored &&
message == o.message &&
forced_completion == o.forced_completion &&
delivered == o.delivered &&
warning == o.warning &&
errors == o.errors
end
Expand All @@ -261,7 +272,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[success, operation, stream_key, activity_id, devices_queued, devices_notified, timestamp, ignored, message, forced_completion, warning, errors].hash
[success, operation, stream_key, activity_id, devices_queued, devices_notified, timestamp, ignored, message, forced_completion, delivered, warning, errors].hash
end

# Builds the object from hash
Expand Down
22 changes: 21 additions & 1 deletion generated/activitysmith_openapi/models/no_recipients_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,23 @@ module OpenapiClient
class NoRecipientsError
attr_accessor :error

# Machine-readable reason. no_paired_devices: the account has no active paired iOS devices; pair an iPhone with the ActivitySmith app. no_recipients_found: devices are paired, but none matched the targeted channels. Treat unknown values as a generic no-delivery error.
attr_accessor :code

attr_accessor :message

# ActivitySmith App Store link. Present when code is no_paired_devices.
attr_accessor :app_store_url

attr_accessor :effective_channel_slugs

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'error' => :'error',
:'code' => :'code',
:'message' => :'message',
:'app_store_url' => :'app_store_url',
:'effective_channel_slugs' => :'effective_channel_slugs'
}
end
Expand All @@ -39,7 +47,9 @@ def self.acceptable_attributes
def self.openapi_types
{
:'error' => :'String',
:'code' => :'String',
:'message' => :'String',
:'app_store_url' => :'String',
:'effective_channel_slugs' => :'Array<String>'
}
end
Expand Down Expand Up @@ -71,12 +81,20 @@ def initialize(attributes = {})
self.error = nil
end

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

if attributes.key?(:'message')
self.message = attributes[:'message']
else
self.message = nil
end

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

if attributes.key?(:'effective_channel_slugs')
if (value = attributes[:'effective_channel_slugs']).is_a?(Array)
self.effective_channel_slugs = value
Expand Down Expand Up @@ -115,7 +133,9 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
error == o.error &&
code == o.code &&
message == o.message &&
app_store_url == o.app_store_url &&
effective_channel_slugs == o.effective_channel_slugs
end

Expand All @@ -128,7 +148,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[error, message, effective_channel_slugs].hash
[error, code, message, app_store_url, effective_channel_slugs].hash
end

# Builds the object from hash
Expand Down
2 changes: 1 addition & 1 deletion generated/activitysmith_openapi/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module OpenapiClient
VERSION = '1.13.0'
VERSION = '1.14.0'
end
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": "dd6757c5defa3d1e6524faef789b6829184fb852",
"commit": "ab7064d65ad2097e3b57dc435c10b4f80a0ee27e",
"path": "openapi.json",
"sha256": "24dae2d064095351d5e5cf800228e64a2d23c40b1e31a9754503081ddf31c5d8"
"sha256": "f0548e423e06f90169dae8d935b08f78291e9dbf95d4ae591e6d10d8eb269448"
}
Loading