From 38dd97e51aac6988bcf1dab7395546457c17f631 Mon Sep 17 00:00:00 2001 From: activitysmith-bot Date: Fri, 13 Nov 2026 03:23:37 +0000 Subject: [PATCH] chore: regenerate SDK --- .../api/live_activities_api.rb | 4 +-- .../models/content_state_start.rb | 27 ++++++++++++++++--- .../models/content_state_update.rb | 25 +++++++++++++++-- .../models/stream_content_state.rb | 27 ++++++++++++++++--- generated/openapi-source.json | 4 +-- 5 files changed, 75 insertions(+), 12 deletions(-) diff --git a/generated/activitysmith_openapi/api/live_activities_api.rb b/generated/activitysmith_openapi/api/live_activities_api.rb index 19a3288..c6247e6 100644 --- a/generated/activitysmith_openapi/api/live_activities_api.rb +++ b/generated/activitysmith_openapi/api/live_activities_api.rb @@ -167,7 +167,7 @@ def end_live_activity_stream_with_http_info(stream_key, opts = {}) end # Start a new Live Activity or update an existing one - # Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them. + # Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer, and timer_start_at when the timer started earlier, for example to show time already gone in the progress bar. Omit them on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them. # @param stream_key [String] Stable identifier for one ongoing thing. Allowed characters: letters, numbers, underscores, and hyphens. # @param live_activity_stream_request [LiveActivityStreamRequest] # @param [Hash] opts the optional parameters @@ -178,7 +178,7 @@ def reconcile_live_activity_stream(stream_key, live_activity_stream_request, opt end # Start a new Live Activity or update an existing one - # Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them. + # Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer, and timer_start_at when the timer started earlier, for example to show time already gone in the progress bar. Omit them on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them. # @param stream_key [String] Stable identifier for one ongoing thing. Allowed characters: letters, numbers, underscores, and hyphens. # @param live_activity_stream_request [LiveActivityStreamRequest] # @param [Hash] opts the optional parameters diff --git a/generated/activitysmith_openapi/models/content_state_start.rb b/generated/activitysmith_openapi/models/content_state_start.rb index 933085e..1231128 100644 --- a/generated/activitysmith_openapi/models/content_state_start.rb +++ b/generated/activitysmith_openapi/models/content_state_start.rb @@ -14,8 +14,9 @@ require 'time' module OpenapiClient - # Start payload requires title and type. For segmented_progress include number_of_steps and current_step. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For value include a string or number in value; strings preserve currency, units, and other formatting. For alert include message. For timer include duration_seconds for countdowns, or set counts_down false without duration_seconds for an open-ended elapsed timer. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls. + # Start payload requires title and type. For segmented_progress include number_of_steps and current_step. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For value include a string or number in value; strings preserve currency, units, and other formatting. For alert include message. For timer include duration_seconds or timer_end_at for countdowns, or set counts_down false without them for an open-ended elapsed timer. Add timer_start_at for a timer that started earlier. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls. class ContentStateStart + # Title shown on the Live Activity. Send an empty string to show no title. attr_accessor :title attr_accessor :subtitle @@ -35,9 +36,15 @@ class ContentStateStart # Maximum progress value. Use with value for type=progress. attr_accessor :upper_limit - # Timer duration in seconds. For type=timer countdowns, required on start when counts_down is true or omitted. + # Timer duration in seconds. For type=timer countdowns, required on start when counts_down is true or omitted, unless you send timer_end_at. Counts from timer_start_at when you send it. attr_accessor :duration_seconds + # Use with type=timer. ISO 8601 date and time when the timer started. It can be in the past, so a countdown that started earlier shows the time already gone in its progress bar. Defaults to the request time. Must not be in the future. + attr_accessor :timer_start_at + + # Use with type=timer. ISO 8601 date and time when the countdown ends. Must be after timer_start_at, or in the future when timer_start_at is omitted. Send duration_seconds or timer_end_at, not both. + attr_accessor :timer_end_at + # Use with type=timer. When true or omitted, the timer counts down from duration_seconds. Set false for an elapsed timer; omit duration_seconds for an open-ended elapsed timer. attr_accessor :counts_down @@ -100,6 +107,8 @@ def self.attribute_map :'value' => :'value', :'upper_limit' => :'upper_limit', :'duration_seconds' => :'duration_seconds', + :'timer_start_at' => :'timer_start_at', + :'timer_end_at' => :'timer_end_at', :'counts_down' => :'counts_down', :'is_running' => :'is_running', :'metrics' => :'metrics', @@ -129,6 +138,8 @@ def self.openapi_types :'value' => :'LiveActivityValue', :'upper_limit' => :'Float', :'duration_seconds' => :'Float', + :'timer_start_at' => :'Time', + :'timer_end_at' => :'Time', :'counts_down' => :'Boolean', :'is_running' => :'Boolean', :'metrics' => :'Array', @@ -197,6 +208,14 @@ def initialize(attributes = {}) self.duration_seconds = attributes[:'duration_seconds'] end + if attributes.key?(:'timer_start_at') + self.timer_start_at = attributes[:'timer_start_at'] + end + + if attributes.key?(:'timer_end_at') + self.timer_end_at = attributes[:'timer_end_at'] + end + if attributes.key?(:'counts_down') self.counts_down = attributes[:'counts_down'] else @@ -435,6 +454,8 @@ def ==(o) value == o.value && upper_limit == o.upper_limit && duration_seconds == o.duration_seconds && + timer_start_at == o.timer_start_at && + timer_end_at == o.timer_end_at && counts_down == o.counts_down && is_running == o.is_running && metrics == o.metrics && @@ -456,7 +477,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [title, subtitle, number_of_steps, current_step, percentage, value, upper_limit, duration_seconds, counts_down, is_running, metrics, message, icon, badge, type, color, step_color, step_colors].hash + [title, subtitle, number_of_steps, current_step, percentage, value, upper_limit, duration_seconds, timer_start_at, timer_end_at, counts_down, is_running, metrics, message, icon, badge, type, color, step_color, step_colors].hash end # Builds the object from hash diff --git a/generated/activitysmith_openapi/models/content_state_update.rb b/generated/activitysmith_openapi/models/content_state_update.rb index 79d9a54..482adcf 100644 --- a/generated/activitysmith_openapi/models/content_state_update.rb +++ b/generated/activitysmith_openapi/models/content_state_update.rb @@ -16,6 +16,7 @@ module OpenapiClient # Update payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For value include a string or number in value; strings preserve currency, units, and other formatting. For alert include message. For timer, omit duration_seconds to preserve the current timer window or send duration_seconds to reset the timer from the update request time. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates. class ContentStateUpdate + # Title shown on the Live Activity. Send an empty string to show no title. attr_accessor :title attr_accessor :subtitle @@ -35,9 +36,15 @@ class ContentStateUpdate # Maximum progress value. Use with value for type=progress. attr_accessor :upper_limit - # Timer duration in seconds. For type=timer, sending duration_seconds resets the timer window from the update request time; omit it to preserve the existing timer window. + # Timer duration in seconds. For type=timer, sending duration_seconds resets the timer window from the update request time, or from timer_start_at when you send it. Omit it to preserve the existing timer window. attr_accessor :duration_seconds + # Use with type=timer. ISO 8601 date and time when the timer started. It can be in the past, so a countdown that started earlier shows the time already gone in its progress bar. Defaults to the request time. Must not be in the future. + attr_accessor :timer_start_at + + # Use with type=timer. ISO 8601 date and time when the countdown ends. Must be after timer_start_at, or in the future when timer_start_at is omitted. Send duration_seconds or timer_end_at, not both. Send timer_end_at alone to move the end and keep the current start. + attr_accessor :timer_end_at + # Use with type=timer. When true or omitted, the timer counts down from duration_seconds. Set false for an elapsed timer; omit duration_seconds for an open-ended elapsed timer. attr_accessor :counts_down @@ -101,6 +108,8 @@ def self.attribute_map :'value' => :'value', :'upper_limit' => :'upper_limit', :'duration_seconds' => :'duration_seconds', + :'timer_start_at' => :'timer_start_at', + :'timer_end_at' => :'timer_end_at', :'counts_down' => :'counts_down', :'is_running' => :'is_running', :'metrics' => :'metrics', @@ -130,6 +139,8 @@ def self.openapi_types :'value' => :'LiveActivityValue', :'upper_limit' => :'Float', :'duration_seconds' => :'Float', + :'timer_start_at' => :'Time', + :'timer_end_at' => :'Time', :'counts_down' => :'Boolean', :'is_running' => :'Boolean', :'metrics' => :'Array', @@ -198,6 +209,14 @@ def initialize(attributes = {}) self.duration_seconds = attributes[:'duration_seconds'] end + if attributes.key?(:'timer_start_at') + self.timer_start_at = attributes[:'timer_start_at'] + end + + if attributes.key?(:'timer_end_at') + self.timer_end_at = attributes[:'timer_end_at'] + end + if attributes.key?(:'counts_down') self.counts_down = attributes[:'counts_down'] else @@ -429,6 +448,8 @@ def ==(o) value == o.value && upper_limit == o.upper_limit && duration_seconds == o.duration_seconds && + timer_start_at == o.timer_start_at && + timer_end_at == o.timer_end_at && counts_down == o.counts_down && is_running == o.is_running && metrics == o.metrics && @@ -450,7 +471,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [title, subtitle, number_of_steps, current_step, percentage, value, upper_limit, duration_seconds, counts_down, is_running, metrics, message, icon, badge, type, color, step_color, step_colors].hash + [title, subtitle, number_of_steps, current_step, percentage, value, upper_limit, duration_seconds, timer_start_at, timer_end_at, counts_down, is_running, metrics, message, icon, badge, type, color, step_color, step_colors].hash end # Builds the object from hash diff --git a/generated/activitysmith_openapi/models/stream_content_state.rb b/generated/activitysmith_openapi/models/stream_content_state.rb index 2aa7739..6bcb596 100644 --- a/generated/activitysmith_openapi/models/stream_content_state.rb +++ b/generated/activitysmith_openapi/models/stream_content_state.rb @@ -14,8 +14,9 @@ require 'time' module OpenapiClient - # Current state for a managed Live Activity stream. Include type on the first PUT, and whenever the stream may need to start a fresh activity. Supports segmented_progress, progress, metrics, stats, alert, timer, and value types. For timer, send duration_seconds to start or reset a bounded timer; omit duration_seconds on later updates to preserve the existing timer window. + # Current state for a managed Live Activity stream. Include type on the first PUT, and whenever the stream may need to start a fresh activity. Supports segmented_progress, progress, metrics, stats, alert, timer, and value types. For timer, send duration_seconds or timer_end_at to start or reset a bounded timer, and timer_start_at for a timer that started earlier. Omit them on later updates to preserve the existing timer window. class StreamContentState + # Title shown on the Live Activity. Send an empty string to show no title. attr_accessor :title attr_accessor :subtitle @@ -35,9 +36,15 @@ class StreamContentState # Maximum progress value. Use with value for progress. attr_accessor :upper_limit - # Timer duration in seconds. For type=timer, send duration_seconds to start or reset the timer window; omit it on later stream updates to preserve the existing timer window. + # Timer duration in seconds. For type=timer, send duration_seconds to start or reset the timer window, counted from timer_start_at when you send it. Omit it on later stream updates to preserve the existing timer window. attr_accessor :duration_seconds + # Use with type=timer. ISO 8601 date and time when the timer started. It can be in the past, so a countdown that started earlier shows the time already gone in its progress bar. Defaults to the request time. Must not be in the future. + attr_accessor :timer_start_at + + # Use with type=timer. ISO 8601 date and time when the countdown ends. Must be after timer_start_at, or in the future when timer_start_at is omitted. Send duration_seconds or timer_end_at, not both. On later stream updates, send timer_end_at alone to move the end and keep the current start. + attr_accessor :timer_end_at + # Use with type=timer. When true or omitted, the timer counts down from duration_seconds. Set false for an elapsed timer; omit duration_seconds for an open-ended elapsed timer. attr_accessor :counts_down @@ -107,6 +114,8 @@ def self.attribute_map :'value' => :'value', :'upper_limit' => :'upper_limit', :'duration_seconds' => :'duration_seconds', + :'timer_start_at' => :'timer_start_at', + :'timer_end_at' => :'timer_end_at', :'counts_down' => :'counts_down', :'is_running' => :'is_running', :'type' => :'type', @@ -138,6 +147,8 @@ def self.openapi_types :'value' => :'LiveActivityValue', :'upper_limit' => :'Float', :'duration_seconds' => :'Float', + :'timer_start_at' => :'Time', + :'timer_end_at' => :'Time', :'counts_down' => :'Boolean', :'is_running' => :'Boolean', :'type' => :'String', @@ -208,6 +219,14 @@ def initialize(attributes = {}) self.duration_seconds = attributes[:'duration_seconds'] end + if attributes.key?(:'timer_start_at') + self.timer_start_at = attributes[:'timer_start_at'] + end + + if attributes.key?(:'timer_end_at') + self.timer_end_at = attributes[:'timer_end_at'] + end + if attributes.key?(:'counts_down') self.counts_down = attributes[:'counts_down'] else @@ -485,6 +504,8 @@ def ==(o) value == o.value && upper_limit == o.upper_limit && duration_seconds == o.duration_seconds && + timer_start_at == o.timer_start_at && + timer_end_at == o.timer_end_at && counts_down == o.counts_down && is_running == o.is_running && type == o.type && @@ -508,7 +529,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [title, subtitle, number_of_steps, current_step, percentage, value, upper_limit, duration_seconds, counts_down, is_running, type, color, step_color, step_colors, metrics, message, icon, badge, auto_dismiss_seconds, auto_dismiss_minutes].hash + [title, subtitle, number_of_steps, current_step, percentage, value, upper_limit, duration_seconds, timer_start_at, timer_end_at, counts_down, is_running, type, color, step_color, step_colors, metrics, message, icon, badge, auto_dismiss_seconds, auto_dismiss_minutes].hash end # Builds the object from hash diff --git a/generated/openapi-source.json b/generated/openapi-source.json index 6150a4d..bba4174 100644 --- a/generated/openapi-source.json +++ b/generated/openapi-source.json @@ -1,6 +1,6 @@ { "repository": "ActivitySmithHQ/activitysmith-backend", - "commit": "15ba559268fc8a9faa46ac73ed6c5fdc96f7e4f7", + "commit": "b94943aee5de9d2c386a3fe164cd585666cc3907", "path": "openapi.json", - "sha256": "1964b1e64ee810e2dd4cadb41916e59b836720b8607ef60c298e3f990aeb9cb8" + "sha256": "5491f8ab50edb32b94813dd77adcb09d289aef69f29008ec9117e05af6eaed28" }