Skip to content

Commit eaf6bae

Browse files
activitysmith-sdk-bot[bot]activitysmith-bot
andauthored
chore: regenerate SDK (#41)
Co-authored-by: activitysmith-bot <activitysmith-bot@users.noreply.github.com>
1 parent 10a0315 commit eaf6bae

15 files changed

Lines changed: 73 additions & 73 deletions

activitysmith_openapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.4.2"
17+
__version__ = "1.5.0"
1818

1919
# import apis into sdk package
2020
from activitysmith_openapi.api.live_activities_api import LiveActivitiesApi

activitysmith_openapi/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(
8888
self.default_headers[header_name] = header_value
8989
self.cookie = cookie
9090
# Set default User-Agent.
91-
self.user_agent = 'OpenAPI-Generator/1.4.2/python'
91+
self.user_agent = 'OpenAPI-Generator/1.5.0/python'
9292
self.client_side_validation = configuration.client_side_validation
9393

9494
def __enter__(self):

activitysmith_openapi/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def to_debug_report(self):
393393
"OS: {env}\n"\
394394
"Python Version: {pyversion}\n"\
395395
"Version of the API: 1.0.0\n"\
396-
"SDK Package Version: 1.4.2".\
396+
"SDK Package Version: 1.5.0".\
397397
format(env=sys.platform, pyversion=sys.version)
398398

399399
def get_host_settings(self):

activitysmith_openapi/docs/ContentStateEnd.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ End payload requires title. For segmented_progress include current_step and opti
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**title** | **str** | |
10-
**subtitle** | **str** | | [optional]
11-
**number_of_steps** | **int** | Total number of steps. Use for type&#x3D;segmented_progress. Optional on end, and safe to change if the final workflow used more or fewer steps than originally planned. | [optional]
12-
**current_step** | **int** | Current step. Use for type&#x3D;segmented_progress. | [optional]
13-
**percentage** | **float** | Progress percentage (0–100). Use for type&#x3D;progress. Takes precedence over value/upper_limit if both are provided. | [optional]
14-
**value** | **float** | Current progress value. Use with upper_limit for type&#x3D;progress. | [optional]
15-
**upper_limit** | **float** | Maximum progress value. Use with value for type&#x3D;progress. | [optional]
16-
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type&#x3D;metrics or type&#x3D;stats. | [optional]
17-
**message** | **str** | Alert message. Use for type&#x3D;alert. | [optional]
18-
**icon** | [**LiveActivityAlertIcon**](LiveActivityAlertIcon.md) | Optional SF Symbol icon for type&#x3D;alert. | [optional]
19-
**badge** | [**LiveActivityAlertBadge**](LiveActivityAlertBadge.md) | Optional badge for type&#x3D;alert. | [optional]
20-
**type** | **str** | Optional. When omitted, the API uses the existing Live Activity type. | [optional]
21-
**color** | **str** | Optional. Accent color for progress, segmented_progress, and metrics Live Activities. For Alert Live Activities, this tints the action button when action is included. | [optional]
22-
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to type&#x3D;segmented_progress. | [optional]
23-
**step_colors** | **List[str]** | Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step. | [optional]
9+
**title** | **str** | |
10+
**subtitle** | **str** | | [optional]
11+
**number_of_steps** | **int** | Total number of steps. Use for type&#x3D;segmented_progress. Optional on end, and safe to change if the final workflow used more or fewer steps than originally planned. | [optional]
12+
**current_step** | **int** | Current completed step count. Use for type&#x3D;segmented_progress. Must be less than or equal to number_of_steps when number_of_steps is provided. | [optional]
13+
**percentage** | **float** | Progress percentage (0–100). Use for type&#x3D;progress. Takes precedence over value/upper_limit if both are provided. | [optional]
14+
**value** | **float** | Current progress value. Use with upper_limit for type&#x3D;progress. | [optional]
15+
**upper_limit** | **float** | Maximum progress value. Use with value for type&#x3D;progress. | [optional]
16+
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type&#x3D;metrics or type&#x3D;stats. | [optional]
17+
**message** | **str** | Alert message. Use for type&#x3D;alert. | [optional]
18+
**icon** | [**LiveActivityAlertIcon**](LiveActivityAlertIcon.md) | Optional SF Symbol icon for type&#x3D;alert. | [optional]
19+
**badge** | [**LiveActivityAlertBadge**](LiveActivityAlertBadge.md) | Optional badge for type&#x3D;alert. | [optional]
20+
**type** | **str** | Optional. When omitted, the API uses the existing Live Activity type. | [optional]
21+
**color** | **str** | Optional. Accent color for progress, segmented_progress, and metrics Live Activities. For Alert Live Activities, this tints the action button when action is included. | [optional]
22+
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to type&#x3D;segmented_progress. | [optional]
23+
**step_colors** | **List[str]** | Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step. | [optional]
2424
**auto_dismiss_minutes** | **int** | Optional. Minutes before the ended Live Activity is dismissed. Default 3. Set 0 for immediate dismissal. iOS will dismiss ended Live Activities after ~4 hours max. | [optional] [default to 3]
2525

2626
## Example

activitysmith_openapi/docs/ContentStateStart.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ Start payload requires title and type. For segmented_progress include number_of_
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**title** | **str** | |
10-
**subtitle** | **str** | | [optional]
11-
**number_of_steps** | **int** | Total number of steps. Use for type&#x3D;segmented_progress. This value can be increased or decreased later when updating or ending the same activity. | [optional]
12-
**current_step** | **int** | Current step. Use for type&#x3D;segmented_progress. | [optional]
13-
**percentage** | **float** | Progress percentage (0–100). Use for type&#x3D;progress. Takes precedence over value/upper_limit if both are provided. | [optional]
14-
**value** | **float** | Current progress value. Use with upper_limit for type&#x3D;progress. | [optional]
15-
**upper_limit** | **float** | Maximum progress value. Use with value for type&#x3D;progress. | [optional]
16-
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type&#x3D;metrics or type&#x3D;stats. | [optional]
17-
**message** | **str** | Required for type&#x3D;alert. | [optional]
18-
**icon** | [**LiveActivityAlertIcon**](LiveActivityAlertIcon.md) | Optional SF Symbol icon for type&#x3D;alert. | [optional]
19-
**badge** | [**LiveActivityAlertBadge**](LiveActivityAlertBadge.md) | Optional badge for type&#x3D;alert. | [optional]
20-
**type** | **str** | |
21-
**color** | **str** | Optional. Accent color for progress, segmented_progress, and metrics Live Activities. For Alert Live Activities, this tints the action button when action is included. | [optional]
22-
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to type&#x3D;segmented_progress. | [optional]
23-
**step_colors** | **List[str]** | Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step. | [optional]
9+
**title** | **str** | |
10+
**subtitle** | **str** | | [optional]
11+
**number_of_steps** | **int** | Total number of steps. Use for type&#x3D;segmented_progress. This value can be increased or decreased later when updating or ending the same activity. | [optional]
12+
**current_step** | **int** | Current completed step count. Use for type&#x3D;segmented_progress. Set 0 when the activity has started but no segment is complete yet. Must be less than or equal to number_of_steps. | [optional]
13+
**percentage** | **float** | Progress percentage (0–100). Use for type&#x3D;progress. Takes precedence over value/upper_limit if both are provided. | [optional]
14+
**value** | **float** | Current progress value. Use with upper_limit for type&#x3D;progress. | [optional]
15+
**upper_limit** | **float** | Maximum progress value. Use with value for type&#x3D;progress. | [optional]
16+
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type&#x3D;metrics or type&#x3D;stats. | [optional]
17+
**message** | **str** | Required for type&#x3D;alert. | [optional]
18+
**icon** | [**LiveActivityAlertIcon**](LiveActivityAlertIcon.md) | Optional SF Symbol icon for type&#x3D;alert. | [optional]
19+
**badge** | [**LiveActivityAlertBadge**](LiveActivityAlertBadge.md) | Optional badge for type&#x3D;alert. | [optional]
20+
**type** | **str** | |
21+
**color** | **str** | Optional. Accent color for progress, segmented_progress, and metrics Live Activities. For Alert Live Activities, this tints the action button when action is included. | [optional]
22+
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to type&#x3D;segmented_progress. | [optional]
23+
**step_colors** | **List[str]** | Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step. | [optional]
2424

2525
## Example
2626

activitysmith_openapi/docs/ContentStateUpdate.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ Update payload requires title. For segmented_progress include current_step and o
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**title** | **str** | |
10-
**subtitle** | **str** | | [optional]
11-
**number_of_steps** | **int** | Total number of steps. Use for type&#x3D;segmented_progress. Optional on update, and safe to change if the workflow gains or loses steps. | [optional]
12-
**current_step** | **int** | Current step. Use for type&#x3D;segmented_progress. | [optional]
13-
**percentage** | **float** | Progress percentage (0–100). Use for type&#x3D;progress. Takes precedence over value/upper_limit if both are provided. | [optional]
14-
**value** | **float** | Current progress value. Use with upper_limit for type&#x3D;progress. | [optional]
15-
**upper_limit** | **float** | Maximum progress value. Use with value for type&#x3D;progress. | [optional]
16-
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type&#x3D;metrics or type&#x3D;stats. | [optional]
17-
**message** | **str** | Alert message. Use for type&#x3D;alert. | [optional]
18-
**icon** | [**LiveActivityAlertIcon**](LiveActivityAlertIcon.md) | Optional SF Symbol icon for type&#x3D;alert. | [optional]
19-
**badge** | [**LiveActivityAlertBadge**](LiveActivityAlertBadge.md) | Optional badge for type&#x3D;alert. | [optional]
20-
**type** | **str** | Optional. When omitted, the API uses the existing Live Activity type. | [optional]
21-
**color** | **str** | Optional. Accent color for progress, segmented_progress, and metrics Live Activities. For Alert Live Activities, this tints the action button when action is included. | [optional]
22-
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to type&#x3D;segmented_progress. | [optional]
23-
**step_colors** | **List[str]** | Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step. | [optional]
9+
**title** | **str** | |
10+
**subtitle** | **str** | | [optional]
11+
**number_of_steps** | **int** | Total number of steps. Use for type&#x3D;segmented_progress. Optional on update, and safe to change if the workflow gains or loses steps. | [optional]
12+
**current_step** | **int** | Current completed step count. Use for type&#x3D;segmented_progress. Set 0 when no segment is complete yet. Must be less than or equal to number_of_steps when number_of_steps is provided. | [optional]
13+
**percentage** | **float** | Progress percentage (0–100). Use for type&#x3D;progress. Takes precedence over value/upper_limit if both are provided. | [optional]
14+
**value** | **float** | Current progress value. Use with upper_limit for type&#x3D;progress. | [optional]
15+
**upper_limit** | **float** | Maximum progress value. Use with value for type&#x3D;progress. | [optional]
16+
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type&#x3D;metrics or type&#x3D;stats. | [optional]
17+
**message** | **str** | Alert message. Use for type&#x3D;alert. | [optional]
18+
**icon** | [**LiveActivityAlertIcon**](LiveActivityAlertIcon.md) | Optional SF Symbol icon for type&#x3D;alert. | [optional]
19+
**badge** | [**LiveActivityAlertBadge**](LiveActivityAlertBadge.md) | Optional badge for type&#x3D;alert. | [optional]
20+
**type** | **str** | Optional. When omitted, the API uses the existing Live Activity type. | [optional]
21+
**color** | **str** | Optional. Accent color for progress, segmented_progress, and metrics Live Activities. For Alert Live Activities, this tints the action button when action is included. | [optional]
22+
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to type&#x3D;segmented_progress. | [optional]
23+
**step_colors** | **List[str]** | Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step. | [optional]
2424

2525
## Example
2626

activitysmith_openapi/docs/StreamContentState.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ Current state for a managed Live Activity stream. Include type on the first PUT,
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**title** | **str** | |
10-
**subtitle** | **str** | | [optional]
11-
**number_of_steps** | **int** | Use for segmented_progress. | [optional]
12-
**current_step** | **int** | Use for segmented_progress. | [optional]
13-
**percentage** | **float** | Use for progress. Takes precedence over value/upper_limit if both are provided. | [optional]
14-
**value** | **float** | Current progress value. Use with upper_limit for progress. | [optional]
15-
**upper_limit** | **float** | Maximum progress value. Use with value for progress. | [optional]
16-
**type** | **str** | Required on the first PUT or whenever the stream cannot infer the current activity type. | [optional]
17-
**color** | **str** | Optional. Accent color for progress, segmented_progress, and metrics Live Activities. For Alert Live Activities, this tints the action button when action is included. | [optional]
18-
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to segmented_progress. | [optional]
19-
**step_colors** | **List[str]** | Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step. | [optional]
20-
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for metrics and stats activities. | [optional]
21-
**message** | **str** | Required for type&#x3D;alert. | [optional]
22-
**icon** | [**LiveActivityAlertIcon**](LiveActivityAlertIcon.md) | Optional SF Symbol icon for type&#x3D;alert. | [optional]
23-
**badge** | [**LiveActivityAlertBadge**](LiveActivityAlertBadge.md) | Optional badge for type&#x3D;alert. | [optional]
24-
**auto_dismiss_seconds** | **int** | Optional. Seconds before the ended Live Activity is dismissed. | [optional]
25-
**auto_dismiss_minutes** | **int** | Optional. Minutes before the ended Live Activity is dismissed. | [optional]
9+
**title** | **str** | |
10+
**subtitle** | **str** | | [optional]
11+
**number_of_steps** | **int** | Use for segmented_progress. | [optional]
12+
**current_step** | **int** | Use for segmented_progress. Set 0 when no segment is complete yet. Must be less than or equal to number_of_steps when number_of_steps is provided. | [optional]
13+
**percentage** | **float** | Use for progress. Takes precedence over value/upper_limit if both are provided. | [optional]
14+
**value** | **float** | Current progress value. Use with upper_limit for progress. | [optional]
15+
**upper_limit** | **float** | Maximum progress value. Use with value for progress. | [optional]
16+
**type** | **str** | Required on the first PUT or whenever the stream cannot infer the current activity type. | [optional]
17+
**color** | **str** | Optional. Accent color for progress, segmented_progress, and metrics Live Activities. For Alert Live Activities, this tints the action button when action is included. | [optional]
18+
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to segmented_progress. | [optional]
19+
**step_colors** | **List[str]** | Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step. | [optional]
20+
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for metrics and stats activities. | [optional]
21+
**message** | **str** | Required for type&#x3D;alert. | [optional]
22+
**icon** | [**LiveActivityAlertIcon**](LiveActivityAlertIcon.md) | Optional SF Symbol icon for type&#x3D;alert. | [optional]
23+
**badge** | [**LiveActivityAlertBadge**](LiveActivityAlertBadge.md) | Optional badge for type&#x3D;alert. | [optional]
24+
**auto_dismiss_seconds** | **int** | Optional. Seconds before the ended Live Activity is dismissed. | [optional]
25+
**auto_dismiss_minutes** | **int** | Optional. Minutes before the ended Live Activity is dismissed. | [optional]
2626

2727
## Example
2828

activitysmith_openapi/models/content_state_end.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ContentStateEnd(BaseModel):
3333
title: StrictStr
3434
subtitle: Optional[StrictStr] = None
3535
number_of_steps: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of steps. Use for type=segmented_progress. Optional on end, and safe to change if the final workflow used more or fewer steps than originally planned.")
36-
current_step: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Current step. Use for type=segmented_progress.")
36+
current_step: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Current completed step count. Use for type=segmented_progress. Must be less than or equal to number_of_steps when number_of_steps is provided.")
3737
percentage: Optional[Union[Annotated[float, Field(le=100, strict=True, ge=0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=None, description="Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided.")
3838
value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current progress value. Use with upper_limit for type=progress.")
3939
upper_limit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum progress value. Use with value for type=progress.")

activitysmith_openapi/models/content_state_start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ContentStateStart(BaseModel):
3333
title: StrictStr
3434
subtitle: Optional[StrictStr] = None
3535
number_of_steps: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of steps. Use for type=segmented_progress. This value can be increased or decreased later when updating or ending the same activity.")
36-
current_step: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Current step. Use for type=segmented_progress.")
36+
current_step: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Current completed step count. Use for type=segmented_progress. Set 0 when the activity has started but no segment is complete yet. Must be less than or equal to number_of_steps.")
3737
percentage: Optional[Union[Annotated[float, Field(le=100, strict=True, ge=0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=None, description="Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided.")
3838
value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current progress value. Use with upper_limit for type=progress.")
3939
upper_limit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum progress value. Use with value for type=progress.")

0 commit comments

Comments
 (0)