Skip to content

Commit 46868c8

Browse files
author
activitysmith-bot
committed
chore: regenerate SDK
1 parent 077deab commit 46868c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1218
-65
lines changed

activitysmith_openapi/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,21 @@
3232
from activitysmith_openapi.exceptions import ApiException
3333

3434
# import models into sdk package
35+
from activitysmith_openapi.models.alert_payload import AlertPayload
36+
from activitysmith_openapi.models.bad_request_error import BadRequestError
37+
from activitysmith_openapi.models.channel_target import ChannelTarget
3538
from activitysmith_openapi.models.content_state_end import ContentStateEnd
3639
from activitysmith_openapi.models.content_state_start import ContentStateStart
3740
from activitysmith_openapi.models.content_state_update import ContentStateUpdate
41+
from activitysmith_openapi.models.forbidden_error import ForbiddenError
3842
from activitysmith_openapi.models.live_activity_end_request import LiveActivityEndRequest
3943
from activitysmith_openapi.models.live_activity_end_response import LiveActivityEndResponse
4044
from activitysmith_openapi.models.live_activity_limit_error import LiveActivityLimitError
4145
from activitysmith_openapi.models.live_activity_start_request import LiveActivityStartRequest
4246
from activitysmith_openapi.models.live_activity_start_response import LiveActivityStartResponse
4347
from activitysmith_openapi.models.live_activity_update_request import LiveActivityUpdateRequest
4448
from activitysmith_openapi.models.live_activity_update_response import LiveActivityUpdateResponse
49+
from activitysmith_openapi.models.no_recipients_error import NoRecipientsError
4550
from activitysmith_openapi.models.push_notification_request import PushNotificationRequest
4651
from activitysmith_openapi.models.push_notification_response import PushNotificationResponse
4752
from activitysmith_openapi.models.rate_limit_error import RateLimitError

activitysmith_openapi/api/live_activities_api.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def end_live_activity(
9696

9797
_response_types_map: Dict[str, Optional[str]] = {
9898
'200': "LiveActivityEndResponse",
99+
'403': "ForbiddenError",
99100
'429': "RateLimitError",
100101
}
101102
response_data = self.api_client.call_api(
@@ -164,6 +165,7 @@ def end_live_activity_with_http_info(
164165

165166
_response_types_map: Dict[str, Optional[str]] = {
166167
'200': "LiveActivityEndResponse",
168+
'403': "ForbiddenError",
167169
'429': "RateLimitError",
168170
}
169171
response_data = self.api_client.call_api(
@@ -232,6 +234,7 @@ def end_live_activity_without_preload_content(
232234

233235
_response_types_map: Dict[str, Optional[str]] = {
234236
'200': "LiveActivityEndResponse",
237+
'403': "ForbiddenError",
235238
'429': "RateLimitError",
236239
}
237240
response_data = self.api_client.call_api(
@@ -335,7 +338,7 @@ def start_live_activity(
335338
) -> LiveActivityStartResponse:
336339
"""Start a Live Activity
337340
338-
Starts a Live Activity on all registered devices and returns an activity_id.
341+
Starts a Live Activity on devices matched by API key scope and optional target channels.
339342
340343
:param live_activity_start_request: (required)
341344
:type live_activity_start_request: LiveActivityStartRequest
@@ -371,6 +374,9 @@ def start_live_activity(
371374

372375
_response_types_map: Dict[str, Optional[str]] = {
373376
'200': "LiveActivityStartResponse",
377+
'400': "BadRequestError",
378+
'403': "ForbiddenError",
379+
'404': "NoRecipientsError",
374380
'429': "RateLimitError",
375381
}
376382
response_data = self.api_client.call_api(
@@ -403,7 +409,7 @@ def start_live_activity_with_http_info(
403409
) -> ApiResponse[LiveActivityStartResponse]:
404410
"""Start a Live Activity
405411
406-
Starts a Live Activity on all registered devices and returns an activity_id.
412+
Starts a Live Activity on devices matched by API key scope and optional target channels.
407413
408414
:param live_activity_start_request: (required)
409415
:type live_activity_start_request: LiveActivityStartRequest
@@ -439,6 +445,9 @@ def start_live_activity_with_http_info(
439445

440446
_response_types_map: Dict[str, Optional[str]] = {
441447
'200': "LiveActivityStartResponse",
448+
'400': "BadRequestError",
449+
'403': "ForbiddenError",
450+
'404': "NoRecipientsError",
442451
'429': "RateLimitError",
443452
}
444453
response_data = self.api_client.call_api(
@@ -471,7 +480,7 @@ def start_live_activity_without_preload_content(
471480
) -> RESTResponseType:
472481
"""Start a Live Activity
473482
474-
Starts a Live Activity on all registered devices and returns an activity_id.
483+
Starts a Live Activity on devices matched by API key scope and optional target channels.
475484
476485
:param live_activity_start_request: (required)
477486
:type live_activity_start_request: LiveActivityStartRequest
@@ -507,6 +516,9 @@ def start_live_activity_without_preload_content(
507516

508517
_response_types_map: Dict[str, Optional[str]] = {
509518
'200': "LiveActivityStartResponse",
519+
'400': "BadRequestError",
520+
'403': "ForbiddenError",
521+
'404': "NoRecipientsError",
510522
'429': "RateLimitError",
511523
}
512524
response_data = self.api_client.call_api(
@@ -646,6 +658,7 @@ def update_live_activity(
646658

647659
_response_types_map: Dict[str, Optional[str]] = {
648660
'200': "LiveActivityUpdateResponse",
661+
'403': "ForbiddenError",
649662
'429': "RateLimitError",
650663
}
651664
response_data = self.api_client.call_api(
@@ -714,6 +727,7 @@ def update_live_activity_with_http_info(
714727

715728
_response_types_map: Dict[str, Optional[str]] = {
716729
'200': "LiveActivityUpdateResponse",
730+
'403': "ForbiddenError",
717731
'429': "RateLimitError",
718732
}
719733
response_data = self.api_client.call_api(
@@ -782,6 +796,7 @@ def update_live_activity_without_preload_content(
782796

783797
_response_types_map: Dict[str, Optional[str]] = {
784798
'200': "LiveActivityUpdateResponse",
799+
'403': "ForbiddenError",
785800
'429': "RateLimitError",
786801
}
787802
response_data = self.api_client.call_api(

activitysmith_openapi/api/push_notifications_api.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def send_push_notification(
5656
) -> PushNotificationResponse:
5757
"""Send a push notification
5858
59-
Sends a push notification to every paired device in your account.
59+
Sends a push notification to devices matched by API key scope and optional target channels.
6060
6161
:param push_notification_request: (required)
6262
:type push_notification_request: PushNotificationRequest
@@ -92,6 +92,9 @@ def send_push_notification(
9292

9393
_response_types_map: Dict[str, Optional[str]] = {
9494
'200': "PushNotificationResponse",
95+
'400': "BadRequestError",
96+
'403': "ForbiddenError",
97+
'404': "NoRecipientsError",
9598
'429': "SendPushNotification429Response",
9699
}
97100
response_data = self.api_client.call_api(
@@ -124,7 +127,7 @@ def send_push_notification_with_http_info(
124127
) -> ApiResponse[PushNotificationResponse]:
125128
"""Send a push notification
126129
127-
Sends a push notification to every paired device in your account.
130+
Sends a push notification to devices matched by API key scope and optional target channels.
128131
129132
:param push_notification_request: (required)
130133
:type push_notification_request: PushNotificationRequest
@@ -160,6 +163,9 @@ def send_push_notification_with_http_info(
160163

161164
_response_types_map: Dict[str, Optional[str]] = {
162165
'200': "PushNotificationResponse",
166+
'400': "BadRequestError",
167+
'403': "ForbiddenError",
168+
'404': "NoRecipientsError",
163169
'429': "SendPushNotification429Response",
164170
}
165171
response_data = self.api_client.call_api(
@@ -192,7 +198,7 @@ def send_push_notification_without_preload_content(
192198
) -> RESTResponseType:
193199
"""Send a push notification
194200
195-
Sends a push notification to every paired device in your account.
201+
Sends a push notification to devices matched by API key scope and optional target channels.
196202
197203
:param push_notification_request: (required)
198204
:type push_notification_request: PushNotificationRequest
@@ -228,6 +234,9 @@ def send_push_notification_without_preload_content(
228234

229235
_response_types_map: Dict[str, Optional[str]] = {
230236
'200': "PushNotificationResponse",
237+
'400': "BadRequestError",
238+
'403': "ForbiddenError",
239+
'404': "NoRecipientsError",
231240
'429': "SendPushNotification429Response",
232241
}
233242
response_data = self.api_client.call_api(
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# AlertPayload
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**title** | **str** | | [optional]
9+
**body** | **str** | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from activitysmith_openapi.models.alert_payload import AlertPayload
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of AlertPayload from a JSON string
19+
alert_payload_instance = AlertPayload.from_json(json)
20+
# print the JSON string representation of the object
21+
print(AlertPayload.to_json())
22+
23+
# convert the object into a dict
24+
alert_payload_dict = alert_payload_instance.to_dict()
25+
# create an instance of AlertPayload from a dict
26+
alert_payload_from_dict = AlertPayload.from_dict(alert_payload_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# BadRequestError
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**error** | **str** | |
9+
**message** | **str** | |
10+
11+
## Example
12+
13+
```python
14+
from activitysmith_openapi.models.bad_request_error import BadRequestError
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of BadRequestError from a JSON string
19+
bad_request_error_instance = BadRequestError.from_json(json)
20+
# print the JSON string representation of the object
21+
print(BadRequestError.to_json())
22+
23+
# convert the object into a dict
24+
bad_request_error_dict = bad_request_error_instance.to_dict()
25+
# create an instance of BadRequestError from a dict
26+
bad_request_error_from_dict = BadRequestError.from_dict(bad_request_error_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# ChannelTarget
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**channels** | **List[str]** | Channel slugs. When omitted, API key scope determines recipients. |
9+
10+
## Example
11+
12+
```python
13+
from activitysmith_openapi.models.channel_target import ChannelTarget
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of ChannelTarget from a JSON string
18+
channel_target_instance = ChannelTarget.from_json(json)
19+
# print the JSON string representation of the object
20+
print(ChannelTarget.to_json())
21+
22+
# convert the object into a dict
23+
channel_target_dict = channel_target_instance.to_dict()
24+
# create an instance of ChannelTarget from a dict
25+
channel_target_from_dict = ChannelTarget.from_dict(channel_target_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ForbiddenError
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**error** | **str** | |
9+
**message** | **str** | |
10+
11+
## Example
12+
13+
```python
14+
from activitysmith_openapi.models.forbidden_error import ForbiddenError
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of ForbiddenError from a JSON string
19+
forbidden_error_instance = ForbiddenError.from_json(json)
20+
# print the JSON string representation of the object
21+
print(ForbiddenError.to_json())
22+
23+
# convert the object into a dict
24+
forbidden_error_dict = forbidden_error_instance.to_dict()
25+
# create an instance of ForbiddenError from a dict
26+
forbidden_error_from_dict = ForbiddenError.from_dict(forbidden_error_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

activitysmith_openapi/docs/LiveActivitiesApi.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Name | Type | Description | Notes
8585
| Status code | Description | Response headers |
8686
|-------------|-------------|------------------|
8787
**200** | Live Activity ended | - |
88+
**403** | Forbidden (activity not owned by this API key account) | - |
8889
**429** | Rate limit exceeded | - |
8990

9091
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -94,7 +95,7 @@ Name | Type | Description | Notes
9495
9596
Start a Live Activity
9697

97-
Starts a Live Activity on all registered devices and returns an activity_id.
98+
Starts a Live Activity on devices matched by API key scope and optional target channels.
9899

99100
### Example
100101

@@ -165,6 +166,9 @@ Name | Type | Description | Notes
165166
| Status code | Description | Response headers |
166167
|-------------|-------------|------------------|
167168
**200** | Live Activity started | - |
169+
**400** | Bad request (invalid payload or channel targeting input) | - |
170+
**403** | Forbidden (API key scope or channel assignment violation) | - |
171+
**404** | No recipients found for effective channel target | - |
168172
**429** | Rate limit exceeded | - |
169173

170174
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -245,6 +249,7 @@ Name | Type | Description | Notes
245249
| Status code | Description | Response headers |
246250
|-------------|-------------|------------------|
247251
**200** | Live Activity updated (or queued) | - |
252+
**403** | Forbidden (activity not owned by this API key account) | - |
248253
**429** | Rate limit exceeded | - |
249254

250255
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

activitysmith_openapi/docs/LiveActivityStartRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**content_state** | [**ContentStateStart**](ContentStateStart.md) | |
9+
**alert** | [**AlertPayload**](AlertPayload.md) | | [optional]
10+
**target** | [**ChannelTarget**](ChannelTarget.md) | | [optional]
911

1012
## Example
1113

activitysmith_openapi/docs/LiveActivityStartResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**devices_notified** | **int** | | [optional]
1010
**users_notified** | **int** | | [optional]
1111
**activity_id** | **str** | |
12+
**effective_channel_slugs** | **List[str]** | | [optional]
1213
**timestamp** | **datetime** | |
1314

1415
## Example

0 commit comments

Comments
 (0)