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
2 changes: 1 addition & 1 deletion activitysmith_openapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "1.2.1"
__version__ = "1.2.2"

# import apis into sdk package
from activitysmith_openapi.api.live_activities_api import LiveActivitiesApi
Expand Down
18 changes: 9 additions & 9 deletions activitysmith_openapi/api/live_activities_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def end_live_activity(
) -> LiveActivityEndResponse:
"""End a Live Activity

Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.
Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.

:param live_activity_end_request: (required)
:type live_activity_end_request: LiveActivityEndRequest
Expand Down Expand Up @@ -136,7 +136,7 @@ def end_live_activity_with_http_info(
) -> ApiResponse[LiveActivityEndResponse]:
"""End a Live Activity

Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.
Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.

:param live_activity_end_request: (required)
:type live_activity_end_request: LiveActivityEndRequest
Expand Down Expand Up @@ -205,7 +205,7 @@ def end_live_activity_without_preload_content(
) -> RESTResponseType:
"""End a Live Activity

Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.
Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.

:param live_activity_end_request: (required)
:type live_activity_end_request: LiveActivityEndRequest
Expand Down Expand Up @@ -940,7 +940,7 @@ def start_live_activity(
) -> LiveActivityStartResponse:
"""Start a Live Activity

Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.
Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.

:param live_activity_start_request: (required)
:type live_activity_start_request: LiveActivityStartRequest
Expand Down Expand Up @@ -1011,7 +1011,7 @@ def start_live_activity_with_http_info(
) -> ApiResponse[LiveActivityStartResponse]:
"""Start a Live Activity

Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.
Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.

:param live_activity_start_request: (required)
:type live_activity_start_request: LiveActivityStartRequest
Expand Down Expand Up @@ -1082,7 +1082,7 @@ def start_live_activity_without_preload_content(
) -> RESTResponseType:
"""Start a Live Activity

Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.
Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.

:param live_activity_start_request: (required)
:type live_activity_start_request: LiveActivityStartRequest
Expand Down Expand Up @@ -1224,7 +1224,7 @@ def update_live_activity(
) -> LiveActivityUpdateResponse:
"""Update a Live Activity

Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.
Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.

:param live_activity_update_request: (required)
:type live_activity_update_request: LiveActivityUpdateRequest
Expand Down Expand Up @@ -1293,7 +1293,7 @@ def update_live_activity_with_http_info(
) -> ApiResponse[LiveActivityUpdateResponse]:
"""Update a Live Activity

Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.
Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.

:param live_activity_update_request: (required)
:type live_activity_update_request: LiveActivityUpdateRequest
Expand Down Expand Up @@ -1362,7 +1362,7 @@ def update_live_activity_without_preload_content(
) -> RESTResponseType:
"""Update a Live Activity

Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.
Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.

:param live_activity_update_request: (required)
:type live_activity_update_request: LiveActivityUpdateRequest
Expand Down
2 changes: 1 addition & 1 deletion activitysmith_openapi/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.2.0/python'
self.user_agent = 'OpenAPI-Generator/1.2.2/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion activitysmith_openapi/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\
"SDK Package Version: 1.2.0".\
"SDK Package Version: 1.2.2".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
4 changes: 2 additions & 2 deletions activitysmith_openapi/docs/ContentStateEnd.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ContentStateEnd

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 include a non-empty metrics array. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
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. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.

## Properties

Expand All @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**percentage** | **float** | Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided. | [optional]
**value** | **float** | Current progress value. Use with upper_limit for type=progress. | [optional]
**upper_limit** | **float** | Maximum progress value. Use with value for type=progress. | [optional]
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type=metrics. | [optional]
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type=metrics or type=stats. | [optional]
**type** | **str** | Optional. When omitted, the API uses the existing Live Activity type. | [optional]
**color** | **str** | Optional. Accent color for the Live Activity. Defaults to blue. | [optional] [default to 'blue']
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to type=segmented_progress. | [optional]
Expand Down
4 changes: 2 additions & 2 deletions activitysmith_openapi/docs/ContentStateStart.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ContentStateStart

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 include a non-empty metrics array. 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 segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.

## Properties

Expand All @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**percentage** | **float** | Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided. | [optional]
**value** | **float** | Current progress value. Use with upper_limit for type=progress. | [optional]
**upper_limit** | **float** | Maximum progress value. Use with value for type=progress. | [optional]
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type=metrics. | [optional]
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type=metrics or type=stats. | [optional]
**type** | **str** | |
**color** | **str** | Optional. Accent color for the Live Activity. Defaults to blue. | [optional] [default to 'blue']
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to type=segmented_progress. | [optional]
Expand Down
4 changes: 2 additions & 2 deletions activitysmith_openapi/docs/ContentStateUpdate.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ContentStateUpdate

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 include a non-empty metrics array. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
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. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.

## Properties

Expand All @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**percentage** | **float** | Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided. | [optional]
**value** | **float** | Current progress value. Use with upper_limit for type=progress. | [optional]
**upper_limit** | **float** | Maximum progress value. Use with value for type=progress. | [optional]
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type=metrics. | [optional]
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for type=metrics or type=stats. | [optional]
**type** | **str** | Optional. When omitted, the API uses the existing Live Activity type. | [optional]
**color** | **str** | Optional. Accent color for the Live Activity. Defaults to blue. | [optional] [default to 'blue']
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to type=segmented_progress. | [optional]
Expand Down
6 changes: 3 additions & 3 deletions activitysmith_openapi/docs/LiveActivitiesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Method | HTTP request | Description

End a Live Activity

Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.
Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.

### Example

Expand Down Expand Up @@ -266,7 +266,7 @@ Name | Type | Description | Notes

Start a Live Activity

Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.
Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.

### Example

Expand Down Expand Up @@ -349,7 +349,7 @@ Name | Type | Description | Notes

Update a Live Activity

Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, and metrics activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.
Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, and stats activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.

### Example

Expand Down
1 change: 0 additions & 1 deletion activitysmith_openapi/docs/MetricValueUpdateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Latest metric value to display in widgets.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | [**MetricValueUpdateRequestValue**](MetricValueUpdateRequestValue.md) | |
**timestamp** | **datetime** | Optional ISO timestamp for when the metric value was measured. Defaults to the server receive time. | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion activitysmith_openapi/docs/MetricsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Metric value updated | - |
**400** | Bad request (invalid key, value, or timestamp) | - |
**400** | Bad request (invalid key or value) | - |
**404** | Metric not found | - |
**429** | Rate limit exceeded | - |

Expand Down
4 changes: 2 additions & 2 deletions activitysmith_openapi/docs/StreamContentState.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StreamContentState

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, and metrics types.
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, and stats types.

## Properties

Expand All @@ -17,7 +17,7 @@ Name | Type | Description | Notes
**color** | **str** | Optional. Accent color for the Live Activity. Defaults to blue. | [optional] [default to 'blue']
**step_color** | **str** | Optional. Overrides color for the current step. Only applies to segmented_progress. | [optional]
**step_colors** | **List[str]** | Optional. Colors for completed steps. When used with segmented_progress, the array length should match current_step. | [optional]
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for metrics activities. | [optional]
**metrics** | [**List[ActivityMetric]**](ActivityMetric.md) | Use for metrics and stats activities. | [optional]
**auto_dismiss_seconds** | **int** | Optional. Seconds before the ended Live Activity is dismissed. | [optional]
**auto_dismiss_minutes** | **int** | Optional. Minutes before the ended Live Activity is dismissed. | [optional]

Expand Down
8 changes: 4 additions & 4 deletions activitysmith_openapi/models/content_state_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class ContentStateEnd(BaseModel):
"""
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 include a non-empty metrics array. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
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. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
""" # noqa: E501
title: StrictStr
subtitle: Optional[StrictStr] = None
Expand All @@ -35,7 +35,7 @@ class ContentStateEnd(BaseModel):
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.")
value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current progress value. Use with upper_limit for type=progress.")
upper_limit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum progress value. Use with value for type=progress.")
metrics: Optional[Annotated[List[ActivityMetric], Field(min_length=1)]] = Field(default=None, description="Use for type=metrics.")
metrics: Optional[Annotated[List[ActivityMetric], Field(min_length=1, max_length=8)]] = Field(default=None, description="Use for type=metrics or type=stats.")
type: Optional[StrictStr] = Field(default=None, description="Optional. When omitted, the API uses the existing Live Activity type.")
color: Optional[StrictStr] = Field(default='blue', description="Optional. Accent color for the Live Activity. Defaults to blue.")
step_color: Optional[StrictStr] = Field(default=None, description="Optional. Overrides color for the current step. Only applies to type=segmented_progress.")
Expand All @@ -50,8 +50,8 @@ def type_validate_enum(cls, value):
if value is None:
return value

if value not in set(['segmented_progress', 'progress', 'metrics']):
raise ValueError("must be one of enum values ('segmented_progress', 'progress', 'metrics')")
if value not in set(['segmented_progress', 'progress', 'metrics', 'stats']):
raise ValueError("must be one of enum values ('segmented_progress', 'progress', 'metrics', 'stats')")
return value

@field_validator('color')
Expand Down
Loading