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
16 changes: 9 additions & 7 deletions generated/Model/ContentStateEnd.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* ContentStateEnd Class Doc Comment
*
* @category Class
* @description End 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 alert include message. For timer, omit duration_seconds to preserve and freeze the latest timer state. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
* @description End 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 and freeze the latest timer state. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
* @package ActivitySmith\Generated
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down Expand Up @@ -63,7 +63,7 @@ class ContentStateEnd implements ModelInterface, ArrayAccess, \JsonSerializable
'numberOfSteps' => 'int',
'currentStep' => 'int',
'percentage' => 'float',
'value' => 'float',
'value' => 'string',
'upperLimit' => 'float',
'durationSeconds' => 'float',
'countsDown' => 'bool',
Expand Down Expand Up @@ -343,6 +343,7 @@ public function getModelName()
public const TYPE_STATS = 'stats';
public const TYPE_ALERT = 'alert';
public const TYPE_TIMER = 'timer';
public const TYPE_VALUE = 'value';
public const COLOR_LIME = 'lime';
public const COLOR_GREEN = 'green';
public const COLOR_CYAN = 'cyan';
Expand Down Expand Up @@ -388,6 +389,7 @@ public function getTypeAllowableValues()
self::TYPE_STATS,
self::TYPE_ALERT,
self::TYPE_TIMER,
self::TYPE_VALUE,
];
}

Expand Down Expand Up @@ -750,7 +752,7 @@ public function setPercentage($percentage)
/**
* Gets value
*
* @return float|null
* @return string|null
*/
public function getValue()
{
Expand All @@ -760,7 +762,7 @@ public function getValue()
/**
* Sets value
*
* @param float|null $value Current progress value. Use with upper_limit for type=progress.
* @param string|null $value For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For type=progress, a numeric progress value used with upper_limit.
*
* @return self
*/
Expand Down Expand Up @@ -961,7 +963,7 @@ public function getIcon()
/**
* Sets icon
*
* @param \ActivitySmith\Generated\Model\LiveActivityAlertIcon|null $icon Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
* @param \ActivitySmith\Generated\Model\LiveActivityAlertIcon|null $icon Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
*
* @return self
*/
Expand All @@ -988,7 +990,7 @@ public function getBadge()
/**
* Sets badge
*
* @param \ActivitySmith\Generated\Model\LiveActivityAlertBadge|null $badge Optional badge. Supported by alert, progress, and segmented_progress.
* @param \ActivitySmith\Generated\Model\LiveActivityAlertBadge|null $badge Optional badge. Supported by alert, progress, segmented_progress, and value.
*
* @return self
*/
Expand Down Expand Up @@ -1052,7 +1054,7 @@ public function getColor()
/**
* Sets color
*
* @param string|null $color Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
* @param string|null $color Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
*
* @return self
*/
Expand Down
16 changes: 9 additions & 7 deletions generated/Model/ContentStateStart.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* ContentStateStart Class Doc Comment
*
* @category Class
* @description 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 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, and segmented_progress. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.
* @description 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.
* @package ActivitySmith\Generated
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down Expand Up @@ -63,7 +63,7 @@ class ContentStateStart implements ModelInterface, ArrayAccess, \JsonSerializabl
'numberOfSteps' => 'int',
'currentStep' => 'int',
'percentage' => 'float',
'value' => 'float',
'value' => 'string',
'upperLimit' => 'float',
'durationSeconds' => 'float',
'countsDown' => 'bool',
Expand Down Expand Up @@ -337,6 +337,7 @@ public function getModelName()
public const TYPE_STATS = 'stats';
public const TYPE_ALERT = 'alert';
public const TYPE_TIMER = 'timer';
public const TYPE_VALUE = 'value';
public const COLOR_LIME = 'lime';
public const COLOR_GREEN = 'green';
public const COLOR_CYAN = 'cyan';
Expand Down Expand Up @@ -382,6 +383,7 @@ public function getTypeAllowableValues()
self::TYPE_STATS,
self::TYPE_ALERT,
self::TYPE_TIMER,
self::TYPE_VALUE,
];
}

Expand Down Expand Up @@ -742,7 +744,7 @@ public function setPercentage($percentage)
/**
* Gets value
*
* @return float|null
* @return string|null
*/
public function getValue()
{
Expand All @@ -752,7 +754,7 @@ public function getValue()
/**
* Sets value
*
* @param float|null $value Current progress value. Use with upper_limit for type=progress.
* @param string|null $value For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For type=progress, a numeric progress value used with upper_limit.
*
* @return self
*/
Expand Down Expand Up @@ -953,7 +955,7 @@ public function getIcon()
/**
* Sets icon
*
* @param \ActivitySmith\Generated\Model\LiveActivityAlertIcon|null $icon Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
* @param \ActivitySmith\Generated\Model\LiveActivityAlertIcon|null $icon Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
*
* @return self
*/
Expand All @@ -980,7 +982,7 @@ public function getBadge()
/**
* Sets badge
*
* @param \ActivitySmith\Generated\Model\LiveActivityAlertBadge|null $badge Optional badge. Supported by alert, progress, and segmented_progress.
* @param \ActivitySmith\Generated\Model\LiveActivityAlertBadge|null $badge Optional badge. Supported by alert, progress, segmented_progress, and value.
*
* @return self
*/
Expand Down Expand Up @@ -1044,7 +1046,7 @@ public function getColor()
/**
* Sets color
*
* @param string|null $color Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
* @param string|null $color Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
*
* @return self
*/
Expand Down
16 changes: 9 additions & 7 deletions generated/Model/ContentStateUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* ContentStateUpdate Class Doc Comment
*
* @category Class
* @description 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 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, and segmented_progress. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
* @description 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.
* @package ActivitySmith\Generated
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down Expand Up @@ -63,7 +63,7 @@ class ContentStateUpdate implements ModelInterface, ArrayAccess, \JsonSerializab
'numberOfSteps' => 'int',
'currentStep' => 'int',
'percentage' => 'float',
'value' => 'float',
'value' => 'string',
'upperLimit' => 'float',
'durationSeconds' => 'float',
'countsDown' => 'bool',
Expand Down Expand Up @@ -337,6 +337,7 @@ public function getModelName()
public const TYPE_STATS = 'stats';
public const TYPE_ALERT = 'alert';
public const TYPE_TIMER = 'timer';
public const TYPE_VALUE = 'value';
public const COLOR_LIME = 'lime';
public const COLOR_GREEN = 'green';
public const COLOR_CYAN = 'cyan';
Expand Down Expand Up @@ -382,6 +383,7 @@ public function getTypeAllowableValues()
self::TYPE_STATS,
self::TYPE_ALERT,
self::TYPE_TIMER,
self::TYPE_VALUE,
];
}

Expand Down Expand Up @@ -739,7 +741,7 @@ public function setPercentage($percentage)
/**
* Gets value
*
* @return float|null
* @return string|null
*/
public function getValue()
{
Expand All @@ -749,7 +751,7 @@ public function getValue()
/**
* Sets value
*
* @param float|null $value Current progress value. Use with upper_limit for type=progress.
* @param string|null $value For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For type=progress, a numeric progress value used with upper_limit.
*
* @return self
*/
Expand Down Expand Up @@ -950,7 +952,7 @@ public function getIcon()
/**
* Sets icon
*
* @param \ActivitySmith\Generated\Model\LiveActivityAlertIcon|null $icon Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
* @param \ActivitySmith\Generated\Model\LiveActivityAlertIcon|null $icon Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
*
* @return self
*/
Expand All @@ -977,7 +979,7 @@ public function getBadge()
/**
* Sets badge
*
* @param \ActivitySmith\Generated\Model\LiveActivityAlertBadge|null $badge Optional badge. Supported by alert, progress, and segmented_progress.
* @param \ActivitySmith\Generated\Model\LiveActivityAlertBadge|null $badge Optional badge. Supported by alert, progress, segmented_progress, and value.
*
* @return self
*/
Expand Down Expand Up @@ -1041,7 +1043,7 @@ public function getColor()
/**
* Sets color
*
* @param string|null $color Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
* @param string|null $color Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion generated/Model/LiveActivityAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* LiveActivityAction Class Doc Comment
*
* @category Class
* @description Optional action button shown in the Live Activity UI. Use action for the primary button, or secondary_action for a secondary button on alert, progress, and segmented_progress Live Activities.
* @description Optional action button shown in the Live Activity UI. Use action for the primary button, or secondary_action for a secondary button on alert, progress, segmented_progress, and value Live Activities.
* @package ActivitySmith\Generated
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion generated/Model/LiveActivityEndRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public function getSecondaryAction()
/**
* Sets secondaryAction
*
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion generated/Model/LiveActivityStartRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public function getSecondaryAction()
/**
* Sets secondaryAction
*
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion generated/Model/LiveActivityStreamDeleteRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public function getSecondaryAction()
/**
* Sets secondaryAction
*
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion generated/Model/LiveActivityStreamRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function getSecondaryAction()
/**
* Sets secondaryAction
*
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion generated/Model/LiveActivityUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public function getSecondaryAction()
/**
* Sets secondaryAction
*
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
* @param \ActivitySmith\Generated\Model\LiveActivityAction|null $secondaryAction Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
*
* @return self
*/
Expand Down
Loading
Loading