Skip to content

Commit e5dc525

Browse files
committed
DEVX-10815: updating doc blocks
1 parent 83534fa commit e5dc525

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

messages/src/vonage_messages/models/mms.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MmsResource(BaseModel):
1212
1313
Args:
1414
url (str): The URL of the resource.
15-
caption (str, Optional): Additional text to accompany the resource.
15+
caption (str, Optional): Additional text to accompany the resource, with a maximum length of 3000 characters.
1616
"""
1717

1818
url: str
@@ -26,6 +26,7 @@ class BaseMms(BaseMessage):
2626
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
2727
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
2828
ttl (int, Optional): The duration in seconds for which the message is valid.
29+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
2930
client_ref (str, Optional): An optional client reference.
3031
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
3132
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -46,6 +47,7 @@ class MmsImage(BaseMms):
4647
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
4748
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
4849
ttl (int, Optional): The duration in seconds for which the message is valid.
50+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
4951
client_ref (str, Optional): An optional client reference.
5052
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
5153
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -63,6 +65,7 @@ class MmsVcard(BaseMms):
6365
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
6466
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
6567
ttl (int, Optional): The duration in seconds for which the message is valid.
68+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
6669
client_ref (str, Optional): An optional client reference.
6770
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
6871
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -80,6 +83,7 @@ class MmsAudio(BaseMms):
8083
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
8184
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
8285
ttl (int, Optional): The duration in seconds for which the message is valid.
86+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
8387
client_ref (str, Optional): An optional client reference.
8488
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
8589
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -97,6 +101,7 @@ class MmsVideo(BaseMms):
97101
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
98102
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
99103
ttl (int, Optional): The duration in seconds for which the message is valid.
104+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
100105
client_ref (str, Optional): An optional client reference.
101106
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
102107
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.

messages/src/vonage_messages/models/rcs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ class BaseRcs(BaseMessage):
195195
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
196196
from_ (str): The RCS Agent ID.
197197
ttl (int, Optional): The duration in seconds for which the message is valid.
198+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
198199
client_ref (str, Optional): An optional client reference.
199200
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
200201
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -218,6 +219,7 @@ class RcsText(BaseRcs):
218219
text (str): The text of the message.
219220
suggestions (List, Optional): An optional list of suggestions to include in the message. Can include up to 11 suggestions.
220221
ttl (int, Optional): The duration in seconds for which the message is valid.
222+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
221223
client_ref (str, Optional): An optional client reference.
222224
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
223225
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -249,6 +251,7 @@ class RcsImage(BaseRcs):
249251
from_ (str): The RCS Agent ID.
250252
image (RcsResource): The image resource.
251253
ttl (int, Optional): The duration in seconds for which the message is valid.
254+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
252255
client_ref (str, Optional): An optional client reference.
253256
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
254257
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -267,6 +270,7 @@ class RcsVideo(BaseRcs):
267270
from_ (str): The RCS Agent ID.
268271
video (RcsResource): The video resource.
269272
ttl (int, Optional): The duration in seconds for which the message is valid.
273+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
270274
client_ref (str, Optional): An optional client reference.
271275
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
272276
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -285,6 +289,7 @@ class RcsFile(BaseRcs):
285289
from_ (str): The RCS Agent ID.
286290
file (RcsResource): The file resource.
287291
ttl (int, Optional): The duration in seconds for which the message is valid.
292+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
288293
client_ref (str, Optional): An optional client reference.
289294
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
290295
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -363,6 +368,7 @@ class RcsCardMessage(RcsCardBase, BaseRcs):
363368
media_force_refresh (bool, Optional): Whether to force refresh the media on the card. If true, the media will be refreshed on the device even if the media URL is the same as a previous message. Defaults to false.
364369
suggestions (List, Optional): An optional list of suggestions to include in the message. A card can include up to 4 suggestions.
365370
ttl (int, Optional): The duration in seconds for which the message is valid.
371+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
366372
client_ref (str, Optional): An optional client reference.
367373
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
368374
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -382,6 +388,7 @@ class RcsCarousel(BaseRcs):
382388
cards (List[RcsCardItem]): A list of card items to include in the carousel. Can include up to 10 cards.
383389
suggestions (List, Optional): An optional list of suggestions to include in the message. Can include up to 11 suggestions.
384390
ttl (int, Optional): The duration in seconds for which the message is valid.
391+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
385392
client_ref (str, Optional): An optional client reference.
386393
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
387394
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
@@ -414,6 +421,7 @@ class RcsCustom(BaseRcs):
414421
from_ (str): The sender's phone number in E.164 format. Don't use a leading plus sign.
415422
custom (dict): The custom message data.
416423
ttl (int, Optional): The duration in seconds for which the message is valid.
424+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
417425
client_ref (str, Optional): An optional client reference.
418426
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
419427
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.

messages/src/vonage_messages/models/sms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class Sms(BaseMessage):
3838
Don't use a leading plus sign.
3939
text (str): The text of the message.
4040
ttl (int, Optional): The duration in seconds for which the message is valid.
41+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
4142
sms (SmsOptions, Optional): SMS options.
4243
client_ref (str, Optional): An optional client reference.
4344
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.

0 commit comments

Comments
 (0)