Skip to content

Commit 08a1cb0

Browse files
committed
[Librarian] Regenerated @ 38fb28edc02f73b8635b45a5612c5ae33eab39fe
1 parent c796ab4 commit 08a1cb0

File tree

13 files changed

+803
-71
lines changed

13 files changed

+803
-71
lines changed

CHANGES.md

+20
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ twilio-python Changelog
33

44
Here you can see the full list of changes between each twilio-python release.
55

6+
[2023-08-24] Version 8.7.0
7+
--------------------------
8+
**Library - Test**
9+
- [PR #719](https://github.com/twilio/twilio-python/pull/719): Update test_webhook.py. Thanks to [@kridai](https://github.com/kridai)!
10+
11+
**Api**
12+
- Add new property `RiskCheck` for SMS pumping protection feature only (public beta to be available soon): Include this parameter with a value of `disable` to skip any kind of risk check on the respective message request
13+
14+
**Flex**
15+
- Changing `sid<UO>` path param to `sid<UT>` in interaction channel participant update endpoint **(breaking change)**
16+
17+
**Messaging**
18+
- Add Channel Sender api
19+
- Fixing country code docs and removing Zipwhip references
20+
21+
**Numbers**
22+
- Request status changed in numbers/v2/BulkHostedNumberOrders **(breaking change)**
23+
- Add bulk hosting orders API under version `/v2
24+
25+
626
[2023-08-10] Version 8.6.0
727
--------------------------
828
**Insights**

twilio/rest/api/v2010/account/message/__init__.py

+19-9
Large diffs are not rendered by default.

twilio/rest/conversations/v1/service/conversation/participant.py

+34-34
Large diffs are not rendered by default.

twilio/rest/insights/v1/room/participant.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ class TwilioRealm(object):
6666
:ivar room_sid: Unique identifier for the room.
6767
:ivar status:
6868
:ivar codecs: Codecs detected from the participant. Can be `VP8`, `H264`, or `VP9`.
69-
:ivar end_reason: Reason the participant left the room. See [the list of possible values here](https://www.twilio.com/docs/video/video-log-analyzer/video-log-analyzer-api#end_reason).
69+
:ivar end_reason: Reason the participant left the room. See [the list of possible values here](https://www.twilio.com/docs/video/troubleshooting/video-log-analyzer-api#end_reason).
7070
:ivar error_code: Errors encountered by the participant.
7171
:ivar error_code_url: Twilio error code dictionary link.
7272
:ivar media_region:
73-
:ivar properties: Object containing information about the participant's data from the room. See [below](https://www.twilio.com/docs/video/video-log-analyzer/video-log-analyzer-api#properties) for more information.
73+
:ivar properties: Object containing information about the participant's data from the room. See [below](https://www.twilio.com/docs/video/troubleshooting/video-log-analyzer-api#properties) for more information.
7474
:ivar edge_location:
75-
:ivar publisher_info: Object containing information about the SDK name and version. See [below](https://www.twilio.com/docs/video/video-log-analyzer/video-log-analyzer-api#publisher_info) for more information.
75+
:ivar publisher_info: Object containing information about the SDK name and version. See [below](https://www.twilio.com/docs/video/troubleshooting/video-log-analyzer-api#publisher_info) for more information.
7676
:ivar url: URL of the participant resource.
7777
"""
7878

twilio/rest/media/v1/media_processor.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class UpdateStatus(object):
4141
:ivar sid: The unique string generated to identify the MediaProcessor resource.
4242
:ivar date_created: The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
4343
:ivar date_updated: The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
44-
:ivar extension: The [Media Extension](/docs/live/api/media-extensions-overview) name or URL. Ex: `video-composer-v2`
45-
:ivar extension_context: The context of the Media Extension, represented as a JSON dictionary. See the documentation for the specific [Media Extension](/docs/live/api/media-extensions-overview) you are using for more information about the context to send.
44+
:ivar extension: The [Media Extension](/docs/live/media-extensions-overview) name or URL. Ex: `video-composer-v2`
45+
:ivar extension_context: The context of the Media Extension, represented as a JSON dictionary. See the documentation for the specific [Media Extension](/docs/live/media-extensions-overview) you are using for more information about the context to send.
4646
:ivar status:
4747
:ivar url: The absolute URL of the resource.
4848
:ivar ended_reason: The reason why a MediaProcessor ended. When a MediaProcessor is in progress, will be `null`. When a MediaProcessor is completed, can be `ended-via-api`, `max-duration-exceeded`, `error-loading-extension`, `error-streaming-media` or `internal-service-error`. See [ended reasons](/docs/live/api/mediaprocessors#mediaprocessor-ended-reason-values) for more details.
49-
:ivar status_callback: The URL to which Twilio will send asynchronous webhook requests for every MediaProcessor event. See [Status Callbacks](/docs/live/status-callbacks) for details.
49+
:ivar status_callback: The URL to which Twilio will send asynchronous webhook requests for every MediaProcessor event. See [Status Callbacks](/docs/live/api/status-callbacks) for details.
5050
:ivar status_callback_method: The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
5151
:ivar max_duration: The maximum time, in seconds, that the MediaProcessor can run before automatically ends. The default value is 300 seconds, and the maximum value is 90000 seconds. Once this maximum duration is reached, Twilio will end the MediaProcessor, regardless of whether media is still streaming.
5252
"""
@@ -307,10 +307,10 @@ def create(
307307
"""
308308
Create the MediaProcessorInstance
309309
310-
:param extension: The [Media Extension](/docs/live/api/media-extensions-overview) name or URL. Ex: `video-composer-v2`
311-
:param extension_context: The context of the Media Extension, represented as a JSON dictionary. See the documentation for the specific [Media Extension](/docs/live/api/media-extensions-overview) you are using for more information about the context to send.
312-
:param extension_environment: User-defined environment variables for the Media Extension, represented as a JSON dictionary of key/value strings. See the documentation for the specific [Media Extension](/docs/live/api/media-extensions-overview) you are using for more information about whether you need to provide this.
313-
:param status_callback: The URL to which Twilio will send asynchronous webhook requests for every MediaProcessor event. See [Status Callbacks](/docs/live/status-callbacks) for details.
310+
:param extension: The [Media Extension](/docs/live/media-extensions-overview) name or URL. Ex: `video-composer-v2`
311+
:param extension_context: The context of the Media Extension, represented as a JSON dictionary. See the documentation for the specific [Media Extension](/docs/live/media-extensions-overview) you are using for more information about the context to send.
312+
:param extension_environment: User-defined environment variables for the Media Extension, represented as a JSON dictionary of key/value strings. See the documentation for the specific [Media Extension](/docs/live/media-extensions-overview) you are using for more information about whether you need to provide this.
313+
:param status_callback: The URL to which Twilio will send asynchronous webhook requests for every MediaProcessor event. See [Status Callbacks](/docs/live/api/status-callbacks) for details.
314314
:param status_callback_method: The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
315315
:param max_duration: The maximum time, in seconds, that the MediaProcessor can run before automatically ends. The default value is 300 seconds, and the maximum value is 90000 seconds. Once this maximum duration is reached, Twilio will end the MediaProcessor, regardless of whether media is still streaming.
316316
@@ -347,10 +347,10 @@ async def create_async(
347347
"""
348348
Asynchronously create the MediaProcessorInstance
349349
350-
:param extension: The [Media Extension](/docs/live/api/media-extensions-overview) name or URL. Ex: `video-composer-v2`
351-
:param extension_context: The context of the Media Extension, represented as a JSON dictionary. See the documentation for the specific [Media Extension](/docs/live/api/media-extensions-overview) you are using for more information about the context to send.
352-
:param extension_environment: User-defined environment variables for the Media Extension, represented as a JSON dictionary of key/value strings. See the documentation for the specific [Media Extension](/docs/live/api/media-extensions-overview) you are using for more information about whether you need to provide this.
353-
:param status_callback: The URL to which Twilio will send asynchronous webhook requests for every MediaProcessor event. See [Status Callbacks](/docs/live/status-callbacks) for details.
350+
:param extension: The [Media Extension](/docs/live/media-extensions-overview) name or URL. Ex: `video-composer-v2`
351+
:param extension_context: The context of the Media Extension, represented as a JSON dictionary. See the documentation for the specific [Media Extension](/docs/live/media-extensions-overview) you are using for more information about the context to send.
352+
:param extension_environment: User-defined environment variables for the Media Extension, represented as a JSON dictionary of key/value strings. See the documentation for the specific [Media Extension](/docs/live/media-extensions-overview) you are using for more information about whether you need to provide this.
353+
:param status_callback: The URL to which Twilio will send asynchronous webhook requests for every MediaProcessor event. See [Status Callbacks](/docs/live/api/status-callbacks) for details.
354354
:param status_callback_method: The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
355355
:param max_duration: The maximum time, in seconds, that the MediaProcessor can run before automatically ends. The default value is 300 seconds, and the maximum value is 90000 seconds. Once this maximum duration is reached, Twilio will end the MediaProcessor, regardless of whether media is still streaming.
356356

twilio/rest/media/v1/media_recording.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Status(object):
5151
:ivar sid: The unique string generated to identify the MediaRecording resource.
5252
:ivar media_size: The size of the recording media in bytes.
5353
:ivar status:
54-
:ivar status_callback: The URL to which Twilio will send asynchronous webhook requests for every MediaRecording event. See [Status Callbacks](/docs/live/status-callbacks) for more details.
54+
:ivar status_callback: The URL to which Twilio will send asynchronous webhook requests for every MediaRecording event. See [Status Callbacks](/docs/live/api/status-callbacks) for more details.
5555
:ivar status_callback_method: The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
5656
:ivar url: The absolute URL of the resource.
5757
"""

twilio/rest/media/v1/player_streamer/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class UpdateStatus(object):
5353
:ivar sid: The unique string generated to identify the PlayerStreamer resource.
5454
:ivar status:
5555
:ivar url: The absolute URL of the resource.
56-
:ivar status_callback: The URL to which Twilio will send asynchronous webhook requests for every PlayerStreamer event. See [Status Callbacks](/docs/live/status-callbacks) for more details.
56+
:ivar status_callback: The URL to which Twilio will send asynchronous webhook requests for every PlayerStreamer event. See [Status Callbacks](/docs/live/api/status-callbacks) for more details.
5757
:ivar status_callback_method: The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
5858
:ivar ended_reason:
5959
:ivar max_duration: The maximum time, in seconds, that the PlayerStreamer is active (`created` or `started`) before automatically ends. The default value is 300 seconds, and the maximum value is 90000 seconds. Once this maximum duration is reached, Twilio will end the PlayerStreamer, regardless of whether media is still streaming.
@@ -337,7 +337,7 @@ def create(
337337
Create the PlayerStreamerInstance
338338
339339
:param video: Specifies whether the PlayerStreamer is configured to stream video. Defaults to `true`.
340-
:param status_callback: The URL to which Twilio will send asynchronous webhook requests for every PlayerStreamer event. See [Status Callbacks](/docs/live/status-callbacks) for more details.
340+
:param status_callback: The URL to which Twilio will send asynchronous webhook requests for every PlayerStreamer event. See [Status Callbacks](/docs/live/api/status-callbacks) for more details.
341341
:param status_callback_method: The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
342342
:param max_duration: The maximum time, in seconds, that the PlayerStreamer is active (`created` or `started`) before automatically ends. The default value is 300 seconds, and the maximum value is 90000 seconds. Once this maximum duration is reached, Twilio will end the PlayerStreamer, regardless of whether media is still streaming.
343343
@@ -371,7 +371,7 @@ async def create_async(
371371
Asynchronously create the PlayerStreamerInstance
372372
373373
:param video: Specifies whether the PlayerStreamer is configured to stream video. Defaults to `true`.
374-
:param status_callback: The URL to which Twilio will send asynchronous webhook requests for every PlayerStreamer event. See [Status Callbacks](/docs/live/status-callbacks) for more details.
374+
:param status_callback: The URL to which Twilio will send asynchronous webhook requests for every PlayerStreamer event. See [Status Callbacks](/docs/live/api/status-callbacks) for more details.
375375
:param status_callback_method: The HTTP method Twilio should use to call the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
376376
:param max_duration: The maximum time, in seconds, that the PlayerStreamer is active (`created` or `started`) before automatically ends. The default value is 300 seconds, and the maximum value is 90000 seconds. Once this maximum duration is reached, Twilio will end the PlayerStreamer, regardless of whether media is still streaming.
377377

twilio/rest/messaging/v1/service/__init__.py

+21
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from twilio.base.version import Version
2323
from twilio.base.page import Page
2424
from twilio.rest.messaging.v1.service.alpha_sender import AlphaSenderList
25+
from twilio.rest.messaging.v1.service.channel_sender import ChannelSenderList
2526
from twilio.rest.messaging.v1.service.phone_number import PhoneNumberList
2627
from twilio.rest.messaging.v1.service.short_code import ShortCodeList
2728
from twilio.rest.messaging.v1.service.us_app_to_person import UsAppToPersonList
@@ -294,6 +295,13 @@ def alpha_senders(self) -> AlphaSenderList:
294295
"""
295296
return self._proxy.alpha_senders
296297

298+
@property
299+
def channel_senders(self) -> ChannelSenderList:
300+
"""
301+
Access the channel_senders
302+
"""
303+
return self._proxy.channel_senders
304+
297305
@property
298306
def phone_numbers(self) -> PhoneNumberList:
299307
"""
@@ -349,6 +357,7 @@ def __init__(self, version: Version, sid: str):
349357
self._uri = "/Services/{sid}".format(**self._solution)
350358

351359
self._alpha_senders: Optional[AlphaSenderList] = None
360+
self._channel_senders: Optional[ChannelSenderList] = None
352361
self._phone_numbers: Optional[PhoneNumberList] = None
353362
self._short_codes: Optional[ShortCodeList] = None
354363
self._us_app_to_person: Optional[UsAppToPersonList] = None
@@ -572,6 +581,18 @@ def alpha_senders(self) -> AlphaSenderList:
572581
)
573582
return self._alpha_senders
574583

584+
@property
585+
def channel_senders(self) -> ChannelSenderList:
586+
"""
587+
Access the channel_senders
588+
"""
589+
if self._channel_senders is None:
590+
self._channel_senders = ChannelSenderList(
591+
self._version,
592+
self._solution["sid"],
593+
)
594+
return self._channel_senders
595+
575596
@property
576597
def phone_numbers(self) -> PhoneNumberList:
577598
"""

0 commit comments

Comments
 (0)