diff --git a/activitysmith_openapi/docs/LiveActivityLimitError.md b/activitysmith_openapi/docs/LiveActivityLimitError.md index d661fc6..25cb51a 100644 --- a/activitysmith_openapi/docs/LiveActivityLimitError.md +++ b/activitysmith_openapi/docs/LiveActivityLimitError.md @@ -8,7 +8,9 @@ Name | Type | Description | Notes **error** | **str** | | **message** | **str** | | **limit** | **int** | | -**active** | **int** | Current number of active Live Activities. | +**active** | **int** | Highest number of active Live Activities among the targeted devices. | +**blocked_devices** | **int** | Number of targeted devices that have reached the enforced iOS Live Activity concurrency threshold. Included only when targeted devices have mixed capacity. | [optional] +**targeted_devices** | **int** | Total number of targeted devices. Included only when targeted devices have mixed capacity. | [optional] ## Example diff --git a/activitysmith_openapi/docs/SendPushNotification429Response.md b/activitysmith_openapi/docs/SendPushNotification429Response.md index e1738e1..b4847aa 100644 --- a/activitysmith_openapi/docs/SendPushNotification429Response.md +++ b/activitysmith_openapi/docs/SendPushNotification429Response.md @@ -8,7 +8,9 @@ Name | Type | Description | Notes **error** | **str** | | **message** | **str** | | **limit** | **int** | | -**active** | **int** | Current number of active Live Activities. | +**active** | **int** | Highest number of active Live Activities among the targeted devices. | +**blocked_devices** | **int** | Number of targeted devices that have reached the enforced iOS Live Activity concurrency threshold. Included only when targeted devices have mixed capacity. | [optional] +**targeted_devices** | **int** | Total number of targeted devices. Included only when targeted devices have mixed capacity. | [optional] ## Example diff --git a/activitysmith_openapi/models/live_activity_limit_error.py b/activitysmith_openapi/models/live_activity_limit_error.py index f33b7e4..e3862e1 100644 --- a/activitysmith_openapi/models/live_activity_limit_error.py +++ b/activitysmith_openapi/models/live_activity_limit_error.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -29,8 +29,10 @@ class LiveActivityLimitError(BaseModel): error: StrictStr message: StrictStr limit: StrictInt - active: StrictInt = Field(description="Current number of active Live Activities.") - __properties: ClassVar[List[str]] = ["error", "message", "limit", "active"] + active: StrictInt = Field(description="Highest number of active Live Activities among the targeted devices.") + blocked_devices: Optional[StrictInt] = Field(default=None, description="Number of targeted devices that have reached the enforced iOS Live Activity concurrency threshold. Included only when targeted devices have mixed capacity.") + targeted_devices: Optional[StrictInt] = Field(default=None, description="Total number of targeted devices. Included only when targeted devices have mixed capacity.") + __properties: ClassVar[List[str]] = ["error", "message", "limit", "active", "blocked_devices", "targeted_devices"] model_config = ConfigDict( populate_by_name=True, @@ -86,7 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "error": obj.get("error"), "message": obj.get("message"), "limit": obj.get("limit"), - "active": obj.get("active") + "active": obj.get("active"), + "blocked_devices": obj.get("blocked_devices"), + "targeted_devices": obj.get("targeted_devices") }) return _obj diff --git a/activitysmith_openapi/test/test_live_activity_limit_error.py b/activitysmith_openapi/test/test_live_activity_limit_error.py index c618fef..99a9502 100644 --- a/activitysmith_openapi/test/test_live_activity_limit_error.py +++ b/activitysmith_openapi/test/test_live_activity_limit_error.py @@ -38,7 +38,9 @@ def make_instance(self, include_optional) -> LiveActivityLimitError: error = '', message = '', limit = 56, - active = 56 + active = 56, + blocked_devices = 56, + targeted_devices = 56 ) else: return LiveActivityLimitError( diff --git a/activitysmith_openapi/test/test_send_push_notification429_response.py b/activitysmith_openapi/test/test_send_push_notification429_response.py index 5466f95..d47464f 100644 --- a/activitysmith_openapi/test/test_send_push_notification429_response.py +++ b/activitysmith_openapi/test/test_send_push_notification429_response.py @@ -38,7 +38,9 @@ def make_instance(self, include_optional) -> SendPushNotification429Response: error = '', message = '', limit = 56, - active = 56 + active = 56, + blocked_devices = 56, + targeted_devices = 56 ) else: return SendPushNotification429Response(