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
4 changes: 3 additions & 1 deletion activitysmith_openapi/docs/LiveActivityLimitError.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 8 additions & 4 deletions activitysmith_openapi/models/live_activity_limit_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
Expand Down Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion activitysmith_openapi/test/test_live_activity_limit_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down