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
/** For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template\\\'s default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. */
103
103
contentVariables?: string;
104
+
/** A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. */
105
+
tags?: string;
104
106
/** */
105
107
riskCheck?: MessageRiskCheck;
106
108
/** The sender\\\'s Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belong to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service\\\'s Sender Pool) or you can provide a specific sender from your Sender Pool. */
@@ -413,6 +415,7 @@ interface MessageResource {
413
415
price_unit: string;
414
416
api_version: string;
415
417
subresource_uris: Record<string,string>;
418
+
tags: any;
416
419
}
417
420
418
421
exportclassMessageInstance{
@@ -445,6 +448,7 @@ export class MessageInstance {
445
448
this.priceUnit=payload.price_unit;
446
449
this.apiVersion=payload.api_version;
447
450
this.subresourceUris=payload.subresource_uris;
451
+
this.tags=payload.tags;
448
452
449
453
this._solution={ accountSid,sid: sid||this.sid};
450
454
}
@@ -523,6 +527,10 @@ export class MessageInstance {
523
527
* A list of related resources identified by their URIs relative to `https://api.twilio.com`
524
528
*/
525
529
subresourceUris: Record<string,string>;
530
+
/**
531
+
* A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message.
532
+
*/
533
+
tags: any;
526
534
527
535
privateget_proxy(): MessageContext{
528
536
this._context=
@@ -632,6 +640,7 @@ export class MessageInstance {
632
640
priceUnit: this.priceUnit,
633
641
apiVersion: this.apiVersion,
634
642
subresourceUris: this.subresourceUris,
643
+
tags: this.tags,
635
644
};
636
645
}
637
646
@@ -807,6 +816,7 @@ export function MessageListInstance(
/** Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. */
55
+
/** [OBSOLETE] Former feature used to fallback to longcode sender after certain short code message failures. */
56
56
fallbackToLongCode?: boolean;
57
57
/** Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. */
/** Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. */
93
+
/** [OBSOLETE] Former feature used to fallback to longcode sender after certain short code message failures. */
94
94
fallbackToLongCode?: boolean;
95
95
/** Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. */
96
96
areaCodeGeomatch?: boolean;
@@ -509,7 +509,7 @@ export class ServiceInstance {
509
509
smartEncoding: boolean;
510
510
scanMessageContent: ServiceScanMessageContent;
511
511
/**
512
-
* Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance.
512
+
* [OBSOLETE] Former feature used to fallback to longcode sender after certain short code message failures.
0 commit comments