You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: messages/src/vonage_messages/models/mms.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ class MmsResource(BaseModel):
12
12
13
13
Args:
14
14
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.
16
16
"""
17
17
18
18
url: str
@@ -26,6 +26,7 @@ class BaseMms(BaseMessage):
26
26
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
27
27
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
28
28
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.
29
30
client_ref (str, Optional): An optional client reference.
30
31
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
31
32
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):
46
47
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
47
48
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
48
49
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.
49
51
client_ref (str, Optional): An optional client reference.
50
52
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
51
53
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):
63
65
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
64
66
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
65
67
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.
66
69
client_ref (str, Optional): An optional client reference.
67
70
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
68
71
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):
80
83
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
81
84
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
82
85
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.
83
87
client_ref (str, Optional): An optional client reference.
84
88
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
85
89
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):
97
101
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
98
102
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
99
103
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.
100
105
client_ref (str, Optional): An optional client reference.
101
106
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
102
107
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
Copy file name to clipboardExpand all lines: messages/src/vonage_messages/models/rcs.py
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,7 @@ class BaseRcs(BaseMessage):
195
195
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
196
196
from_ (str): The RCS Agent ID.
197
197
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.
198
199
client_ref (str, Optional): An optional client reference.
199
200
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
200
201
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):
218
219
text (str): The text of the message.
219
220
suggestions (List, Optional): An optional list of suggestions to include in the message. Can include up to 11 suggestions.
220
221
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.
221
223
client_ref (str, Optional): An optional client reference.
222
224
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
223
225
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):
249
251
from_ (str): The RCS Agent ID.
250
252
image (RcsResource): The image resource.
251
253
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.
252
255
client_ref (str, Optional): An optional client reference.
253
256
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
254
257
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):
267
270
from_ (str): The RCS Agent ID.
268
271
video (RcsResource): The video resource.
269
272
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.
270
274
client_ref (str, Optional): An optional client reference.
271
275
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
272
276
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):
285
289
from_ (str): The RCS Agent ID.
286
290
file (RcsResource): The file resource.
287
291
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.
288
293
client_ref (str, Optional): An optional client reference.
289
294
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
290
295
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):
363
368
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.
364
369
suggestions (List, Optional): An optional list of suggestions to include in the message. A card can include up to 4 suggestions.
365
370
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.
366
372
client_ref (str, Optional): An optional client reference.
367
373
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
368
374
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):
382
388
cards (List[RcsCardItem]): A list of card items to include in the carousel. Can include up to 10 cards.
383
389
suggestions (List, Optional): An optional list of suggestions to include in the message. Can include up to 11 suggestions.
384
390
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.
385
392
client_ref (str, Optional): An optional client reference.
386
393
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
387
394
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):
414
421
from_ (str): The sender's phone number in E.164 format. Don't use a leading plus sign.
415
422
custom (dict): The custom message data.
416
423
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.
417
425
client_ref (str, Optional): An optional client reference.
418
426
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
419
427
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
Copy file name to clipboardExpand all lines: messages/src/vonage_messages/models/sms.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ class Sms(BaseMessage):
38
38
Don't use a leading plus sign.
39
39
text (str): The text of the message.
40
40
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.
41
42
sms (SmsOptions, Optional): SMS options.
42
43
client_ref (str, Optional): An optional client reference.
43
44
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
0 commit comments