Skip to content

Commit c0e0b62

Browse files
committed
[Librarian] Regenerated @ 82775d167bff9b55d1399fe288c2934a02411e8c
1 parent fafd110 commit c0e0b62

File tree

14 files changed

+485
-17
lines changed

14 files changed

+485
-17
lines changed

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
twilio-node changelog
22
=====================
33

4+
[2023-01-11] Version 3.84.1
5+
---------------------------
6+
**Library - Test**
7+
- [PR #848](https://github.com/twilio/twilio-node/pull/848): bypass audit failures until v4 release. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
8+
9+
**Conversations**
10+
- Add support for creating Multi-Channel Rich Content Messages
11+
12+
**Lookups**
13+
- Changed the no data message for match postal code from `no_data` to `data_not_available` in identity match package
14+
15+
**Messaging**
16+
- Add update/edit tollfree verification API
17+
18+
419
[2022-12-14] Version 3.84.0
520
---------------------------
621
**Library - Docs**

lib/rest/conversations/v1/conversation/message.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ interface MessageListInstance {
184184
* @property attributes - A string metadata field you can use to store any data you wish.
185185
* @property author - The channel specific identifier of the message's author.
186186
* @property body - The content of the message.
187+
* @property contentSid - The unique ID of the multi-channel Rich Content template.
188+
* @property contentVariables - A structurally valid JSON string that contains values to resolve Rich Content template variables.
187189
* @property dateCreated - The date that this resource was created.
188190
* @property dateUpdated - The date that this resource was last updated.
189191
* @property mediaSid - The Media SID to be attached to the new Message.
@@ -193,6 +195,8 @@ interface MessageListInstanceCreateOptions {
193195
attributes?: string;
194196
author?: string;
195197
body?: string;
198+
contentSid?: string;
199+
contentVariables?: string;
196200
dateCreated?: Date;
197201
dateUpdated?: Date;
198202
mediaSid?: string;
@@ -270,6 +274,7 @@ interface MessageResource {
270274
attributes: string;
271275
author: string;
272276
body: string;
277+
content_sid: string;
273278
conversation_sid: string;
274279
date_created: Date;
275280
date_updated: Date;
@@ -353,6 +358,7 @@ declare class MessageInstance extends SerializableClass {
353358
attributes: string;
354359
author: string;
355360
body: string;
361+
contentSid: string;
356362
conversationSid: string;
357363
dateCreated: Date;
358364
dateUpdated: Date;

lib/rest/conversations/v1/conversation/message.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ MessageList = function MessageList(version, conversationSid) {
7272
* A string metadata field you can use to store any data you wish.
7373
* @param {string} [opts.mediaSid] -
7474
* The Media SID to be attached to the new Message.
75+
* @param {string} [opts.contentSid] -
76+
* The unique ID of the multi-channel Rich Content template.
77+
* @param {string} [opts.contentVariables] -
78+
* A structurally valid JSON string that contains values to resolve Rich Content template variables.
7579
* @param {message.webhook_enabled_type} [opts.xTwilioWebhookEnabled] -
7680
* The X-Twilio-Webhook-Enabled HTTP request header
7781
* @param {function} [callback] - Callback to handle processed record
@@ -93,7 +97,9 @@ MessageList = function MessageList(version, conversationSid) {
9397
'DateCreated': serialize.iso8601DateTime(_.get(opts, 'dateCreated')),
9498
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated')),
9599
'Attributes': _.get(opts, 'attributes'),
96-
'MediaSid': _.get(opts, 'mediaSid')
100+
'MediaSid': _.get(opts, 'mediaSid'),
101+
'ContentSid': _.get(opts, 'contentSid'),
102+
'ContentVariables': _.get(opts, 'contentVariables')
97103
});
98104
var headers = values.of({'X-Twilio-Webhook-Enabled': _.get(opts, 'xTwilioWebhookEnabled')});
99105

@@ -501,6 +507,8 @@ MessagePage.prototype[util.inspect.custom] = function inspect(depth, options) {
501507
* @property {object} delivery -
502508
* An object that contains the summary of delivery statuses for the message to non-chat participants.
503509
* @property {string} links - Absolute URL to access the receipts of this message.
510+
* @property {string} contentSid -
511+
* The unique ID of the multi-channel Rich Content template.
504512
*
505513
* @param {V1} version - Version of the resource
506514
* @param {MessagePayload} payload - The instance payload
@@ -528,6 +536,7 @@ MessageInstance = function MessageInstance(version, payload, conversationSid,
528536
this.url = payload.url; // jshint ignore:line
529537
this.delivery = payload.delivery; // jshint ignore:line
530538
this.links = payload.links; // jshint ignore:line
539+
this.contentSid = payload.content_sid; // jshint ignore:line
531540

532541
// Context
533542
this._context = undefined;

lib/rest/conversations/v1/service/conversation/message.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ interface MessageListInstance {
185185
* @property attributes - A string metadata field you can use to store any data you wish.
186186
* @property author - The channel specific identifier of the message's author.
187187
* @property body - The content of the message.
188+
* @property contentSid - The unique ID of the multi-channel Rich Content template.
189+
* @property contentVariables - A structurally valid JSON string that contains values to resolve Rich Content template variables.
188190
* @property dateCreated - The date that this resource was created.
189191
* @property dateUpdated - The date that this resource was last updated.
190192
* @property mediaSid - The Media SID to be attached to the new Message.
@@ -194,6 +196,8 @@ interface MessageListInstanceCreateOptions {
194196
attributes?: string;
195197
author?: string;
196198
body?: string;
199+
contentSid?: string;
200+
contentVariables?: string;
197201
dateCreated?: Date;
198202
dateUpdated?: Date;
199203
mediaSid?: string;
@@ -272,6 +276,7 @@ interface MessageResource {
272276
author: string;
273277
body: string;
274278
chat_service_sid: string;
279+
content_sid: string;
275280
conversation_sid: string;
276281
date_created: Date;
277282
date_updated: Date;
@@ -359,6 +364,7 @@ declare class MessageInstance extends SerializableClass {
359364
author: string;
360365
body: string;
361366
chatServiceSid: string;
367+
contentSid: string;
362368
conversationSid: string;
363369
dateCreated: Date;
364370
dateUpdated: Date;

lib/rest/conversations/v1/service/conversation/message.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ MessageList = function MessageList(version, chatServiceSid, conversationSid) {
7575
* A string metadata field you can use to store any data you wish.
7676
* @param {string} [opts.mediaSid] -
7777
* The Media SID to be attached to the new Message.
78+
* @param {string} [opts.contentSid] -
79+
* The unique ID of the multi-channel Rich Content template.
80+
* @param {string} [opts.contentVariables] -
81+
* A structurally valid JSON string that contains values to resolve Rich Content template variables.
7882
* @param {message.webhook_enabled_type} [opts.xTwilioWebhookEnabled] -
7983
* The X-Twilio-Webhook-Enabled HTTP request header
8084
* @param {function} [callback] - Callback to handle processed record
@@ -96,7 +100,9 @@ MessageList = function MessageList(version, chatServiceSid, conversationSid) {
96100
'DateCreated': serialize.iso8601DateTime(_.get(opts, 'dateCreated')),
97101
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated')),
98102
'Attributes': _.get(opts, 'attributes'),
99-
'MediaSid': _.get(opts, 'mediaSid')
103+
'MediaSid': _.get(opts, 'mediaSid'),
104+
'ContentSid': _.get(opts, 'contentSid'),
105+
'ContentVariables': _.get(opts, 'contentVariables')
100106
});
101107
var headers = values.of({'X-Twilio-Webhook-Enabled': _.get(opts, 'xTwilioWebhookEnabled')});
102108

@@ -517,6 +523,8 @@ MessagePage.prototype[util.inspect.custom] = function inspect(depth, options) {
517523
* An object that contains the summary of delivery statuses for the message to non-chat participants.
518524
* @property {string} url - An absolute URL for this message.
519525
* @property {string} links - Absolute URL to access the receipts of this message.
526+
* @property {string} contentSid -
527+
* The unique ID of the multi-channel Rich Content template.
520528
*
521529
* @param {V1} version - Version of the resource
522530
* @param {MessagePayload} payload - The instance payload
@@ -547,6 +555,7 @@ MessageInstance = function MessageInstance(version, payload, chatServiceSid,
547555
this.delivery = payload.delivery; // jshint ignore:line
548556
this.url = payload.url; // jshint ignore:line
549557
this.links = payload.links; // jshint ignore:line
558+
this.contentSid = payload.content_sid; // jshint ignore:line
550559

551560
// Context
552561
this._context = undefined;

lib/rest/messaging/v1/tollfreeVerification.d.ts

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,53 @@ type TollfreeVerificationStatus = 'PENDING_REVIEW'|'IN_REVIEW'|'TWILIO_APPROVED'
2424
*/
2525
declare function TollfreeVerificationList(version: V1): TollfreeVerificationListInstance;
2626

27+
/**
28+
* Options to pass to update
29+
*
30+
* @property additionalInformation - Additional information to be provided for verification
31+
* @property businessCity - The city of the business or organization using the Tollfree number
32+
* @property businessContactEmail - The email address of the contact for the business or organization using the Tollfree number
33+
* @property businessContactFirstName - The first name of the contact for the business or organization using the Tollfree number
34+
* @property businessContactLastName - The last name of the contact for the business or organization using the Tollfree number
35+
* @property businessContactPhone - The phone number of the contact for the business or organization using the Tollfree number
36+
* @property businessCountry - The country of the business or organization using the Tollfree number
37+
* @property businessName - The name of the business or organization using the Tollfree number
38+
* @property businessPostalCode - The postal code of the business or organization using the Tollfree number
39+
* @property businessStateProvinceRegion - The state/province/region of the business or organization using the Tollfree number
40+
* @property businessStreetAddress - The address of the business or organization using the Tollfree number
41+
* @property businessStreetAddress2 - The address of the business or organization using the Tollfree number
42+
* @property businessWebsite - The website of the business or organization using the Tollfree number
43+
* @property messageVolume - Estimate monthly volume of messages from the Tollfree Number
44+
* @property notificationEmail - The email address to receive the notification about the verification result.
45+
* @property optInImageUrls - Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL
46+
* @property optInType - Describe how a user opts-in to text messages
47+
* @property productionMessageSample - An example of message content, i.e. a sample message
48+
* @property useCaseCategories - The category of the use case for the Tollfree Number. List as many are applicable.
49+
* @property useCaseSummary - Further explaination on how messaging is used by the business or organization
50+
*/
51+
interface TollfreeVerificationInstanceUpdateOptions {
52+
additionalInformation?: string;
53+
businessCity?: string;
54+
businessContactEmail?: string;
55+
businessContactFirstName?: string;
56+
businessContactLastName?: string;
57+
businessContactPhone?: string;
58+
businessCountry?: string;
59+
businessName?: string;
60+
businessPostalCode?: string;
61+
businessStateProvinceRegion?: string;
62+
businessStreetAddress?: string;
63+
businessStreetAddress2?: string;
64+
businessWebsite?: string;
65+
messageVolume?: string;
66+
notificationEmail?: string;
67+
optInImageUrls?: string | string[];
68+
optInType?: TollfreeVerificationOptInType;
69+
productionMessageSample?: string;
70+
useCaseCategories?: string | string[];
71+
useCaseSummary?: string;
72+
}
73+
2774
interface TollfreeVerificationListInstance {
2875
/**
2976
* @param sid - sid of instance
@@ -329,6 +376,19 @@ declare class TollfreeVerificationContext {
329376
* Provide a user-friendly representation
330377
*/
331378
toJSON(): any;
379+
/**
380+
* update a TollfreeVerificationInstance
381+
*
382+
* @param callback - Callback to handle processed record
383+
*/
384+
update(callback?: (error: Error | null, items: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;
385+
/**
386+
* update a TollfreeVerificationInstance
387+
*
388+
* @param opts - Options for request
389+
* @param callback - Callback to handle processed record
390+
*/
391+
update(opts?: TollfreeVerificationInstanceUpdateOptions, callback?: (error: Error | null, items: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;
332392
}
333393

334394

@@ -384,6 +444,19 @@ declare class TollfreeVerificationInstance extends SerializableClass {
384444
toJSON(): any;
385445
tollfreePhoneNumberSid: string;
386446
trustProductSid: string;
447+
/**
448+
* update a TollfreeVerificationInstance
449+
*
450+
* @param callback - Callback to handle processed record
451+
*/
452+
update(callback?: (error: Error | null, items: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;
453+
/**
454+
* update a TollfreeVerificationInstance
455+
*
456+
* @param opts - Options for request
457+
* @param callback - Callback to handle processed record
458+
*/
459+
update(opts?: TollfreeVerificationInstanceUpdateOptions, callback?: (error: Error | null, items: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;
387460
url: string;
388461
useCaseCategories: string[];
389462
useCaseSummary: string;
@@ -415,4 +488,4 @@ declare class TollfreeVerificationPage extends Page<V1, TollfreeVerificationPayl
415488
toJSON(): any;
416489
}
417490

418-
export { TollfreeVerificationContext, TollfreeVerificationInstance, TollfreeVerificationList, TollfreeVerificationListInstance, TollfreeVerificationListInstanceCreateOptions, TollfreeVerificationListInstanceEachOptions, TollfreeVerificationListInstanceOptions, TollfreeVerificationListInstancePageOptions, TollfreeVerificationOptInType, TollfreeVerificationPage, TollfreeVerificationPayload, TollfreeVerificationResource, TollfreeVerificationSolution, TollfreeVerificationStatus }
491+
export { TollfreeVerificationContext, TollfreeVerificationInstance, TollfreeVerificationInstanceUpdateOptions, TollfreeVerificationList, TollfreeVerificationListInstance, TollfreeVerificationListInstanceCreateOptions, TollfreeVerificationListInstanceEachOptions, TollfreeVerificationListInstanceOptions, TollfreeVerificationListInstancePageOptions, TollfreeVerificationOptInType, TollfreeVerificationPage, TollfreeVerificationPayload, TollfreeVerificationResource, TollfreeVerificationSolution, TollfreeVerificationStatus }

0 commit comments

Comments
 (0)