Skip to content

Commit

Permalink
[Librarian] Regenerated @ 82775d167bff9b55d1399fe288c2934a02411e8c
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jan 11, 2023
1 parent fafd110 commit c0e0b62
Show file tree
Hide file tree
Showing 14 changed files with 485 additions and 17 deletions.
15 changes: 15 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
twilio-node changelog
=====================

[2023-01-11] Version 3.84.1
---------------------------
**Library - Test**
- [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)!

**Conversations**
- Add support for creating Multi-Channel Rich Content Messages

**Lookups**
- Changed the no data message for match postal code from `no_data` to `data_not_available` in identity match package

**Messaging**
- Add update/edit tollfree verification API


[2022-12-14] Version 3.84.0
---------------------------
**Library - Docs**
Expand Down
6 changes: 6 additions & 0 deletions lib/rest/conversations/v1/conversation/message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ interface MessageListInstance {
* @property attributes - A string metadata field you can use to store any data you wish.
* @property author - The channel specific identifier of the message's author.
* @property body - The content of the message.
* @property contentSid - The unique ID of the multi-channel Rich Content template.
* @property contentVariables - A structurally valid JSON string that contains values to resolve Rich Content template variables.
* @property dateCreated - The date that this resource was created.
* @property dateUpdated - The date that this resource was last updated.
* @property mediaSid - The Media SID to be attached to the new Message.
Expand All @@ -193,6 +195,8 @@ interface MessageListInstanceCreateOptions {
attributes?: string;
author?: string;
body?: string;
contentSid?: string;
contentVariables?: string;
dateCreated?: Date;
dateUpdated?: Date;
mediaSid?: string;
Expand Down Expand Up @@ -270,6 +274,7 @@ interface MessageResource {
attributes: string;
author: string;
body: string;
content_sid: string;
conversation_sid: string;
date_created: Date;
date_updated: Date;
Expand Down Expand Up @@ -353,6 +358,7 @@ declare class MessageInstance extends SerializableClass {
attributes: string;
author: string;
body: string;
contentSid: string;
conversationSid: string;
dateCreated: Date;
dateUpdated: Date;
Expand Down
11 changes: 10 additions & 1 deletion lib/rest/conversations/v1/conversation/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ MessageList = function MessageList(version, conversationSid) {
* A string metadata field you can use to store any data you wish.
* @param {string} [opts.mediaSid] -
* The Media SID to be attached to the new Message.
* @param {string} [opts.contentSid] -
* The unique ID of the multi-channel Rich Content template.
* @param {string} [opts.contentVariables] -
* A structurally valid JSON string that contains values to resolve Rich Content template variables.
* @param {message.webhook_enabled_type} [opts.xTwilioWebhookEnabled] -
* The X-Twilio-Webhook-Enabled HTTP request header
* @param {function} [callback] - Callback to handle processed record
Expand All @@ -93,7 +97,9 @@ MessageList = function MessageList(version, conversationSid) {
'DateCreated': serialize.iso8601DateTime(_.get(opts, 'dateCreated')),
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated')),
'Attributes': _.get(opts, 'attributes'),
'MediaSid': _.get(opts, 'mediaSid')
'MediaSid': _.get(opts, 'mediaSid'),
'ContentSid': _.get(opts, 'contentSid'),
'ContentVariables': _.get(opts, 'contentVariables')
});
var headers = values.of({'X-Twilio-Webhook-Enabled': _.get(opts, 'xTwilioWebhookEnabled')});

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

// Context
this._context = undefined;
Expand Down
6 changes: 6 additions & 0 deletions lib/rest/conversations/v1/service/conversation/message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ interface MessageListInstance {
* @property attributes - A string metadata field you can use to store any data you wish.
* @property author - The channel specific identifier of the message's author.
* @property body - The content of the message.
* @property contentSid - The unique ID of the multi-channel Rich Content template.
* @property contentVariables - A structurally valid JSON string that contains values to resolve Rich Content template variables.
* @property dateCreated - The date that this resource was created.
* @property dateUpdated - The date that this resource was last updated.
* @property mediaSid - The Media SID to be attached to the new Message.
Expand All @@ -194,6 +196,8 @@ interface MessageListInstanceCreateOptions {
attributes?: string;
author?: string;
body?: string;
contentSid?: string;
contentVariables?: string;
dateCreated?: Date;
dateUpdated?: Date;
mediaSid?: string;
Expand Down Expand Up @@ -272,6 +276,7 @@ interface MessageResource {
author: string;
body: string;
chat_service_sid: string;
content_sid: string;
conversation_sid: string;
date_created: Date;
date_updated: Date;
Expand Down Expand Up @@ -359,6 +364,7 @@ declare class MessageInstance extends SerializableClass {
author: string;
body: string;
chatServiceSid: string;
contentSid: string;
conversationSid: string;
dateCreated: Date;
dateUpdated: Date;
Expand Down
11 changes: 10 additions & 1 deletion lib/rest/conversations/v1/service/conversation/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ MessageList = function MessageList(version, chatServiceSid, conversationSid) {
* A string metadata field you can use to store any data you wish.
* @param {string} [opts.mediaSid] -
* The Media SID to be attached to the new Message.
* @param {string} [opts.contentSid] -
* The unique ID of the multi-channel Rich Content template.
* @param {string} [opts.contentVariables] -
* A structurally valid JSON string that contains values to resolve Rich Content template variables.
* @param {message.webhook_enabled_type} [opts.xTwilioWebhookEnabled] -
* The X-Twilio-Webhook-Enabled HTTP request header
* @param {function} [callback] - Callback to handle processed record
Expand All @@ -96,7 +100,9 @@ MessageList = function MessageList(version, chatServiceSid, conversationSid) {
'DateCreated': serialize.iso8601DateTime(_.get(opts, 'dateCreated')),
'DateUpdated': serialize.iso8601DateTime(_.get(opts, 'dateUpdated')),
'Attributes': _.get(opts, 'attributes'),
'MediaSid': _.get(opts, 'mediaSid')
'MediaSid': _.get(opts, 'mediaSid'),
'ContentSid': _.get(opts, 'contentSid'),
'ContentVariables': _.get(opts, 'contentVariables')
});
var headers = values.of({'X-Twilio-Webhook-Enabled': _.get(opts, 'xTwilioWebhookEnabled')});

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

// Context
this._context = undefined;
Expand Down
75 changes: 74 additions & 1 deletion lib/rest/messaging/v1/tollfreeVerification.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,53 @@ type TollfreeVerificationStatus = 'PENDING_REVIEW'|'IN_REVIEW'|'TWILIO_APPROVED'
*/
declare function TollfreeVerificationList(version: V1): TollfreeVerificationListInstance;

/**
* Options to pass to update
*
* @property additionalInformation - Additional information to be provided for verification
* @property businessCity - The city of the business or organization using the Tollfree number
* @property businessContactEmail - The email address of the contact for the business or organization using the Tollfree number
* @property businessContactFirstName - The first name of the contact for the business or organization using the Tollfree number
* @property businessContactLastName - The last name of the contact for the business or organization using the Tollfree number
* @property businessContactPhone - The phone number of the contact for the business or organization using the Tollfree number
* @property businessCountry - The country of the business or organization using the Tollfree number
* @property businessName - The name of the business or organization using the Tollfree number
* @property businessPostalCode - The postal code of the business or organization using the Tollfree number
* @property businessStateProvinceRegion - The state/province/region of the business or organization using the Tollfree number
* @property businessStreetAddress - The address of the business or organization using the Tollfree number
* @property businessStreetAddress2 - The address of the business or organization using the Tollfree number
* @property businessWebsite - The website of the business or organization using the Tollfree number
* @property messageVolume - Estimate monthly volume of messages from the Tollfree Number
* @property notificationEmail - The email address to receive the notification about the verification result.
* @property optInImageUrls - Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL
* @property optInType - Describe how a user opts-in to text messages
* @property productionMessageSample - An example of message content, i.e. a sample message
* @property useCaseCategories - The category of the use case for the Tollfree Number. List as many are applicable.
* @property useCaseSummary - Further explaination on how messaging is used by the business or organization
*/
interface TollfreeVerificationInstanceUpdateOptions {
additionalInformation?: string;
businessCity?: string;
businessContactEmail?: string;
businessContactFirstName?: string;
businessContactLastName?: string;
businessContactPhone?: string;
businessCountry?: string;
businessName?: string;
businessPostalCode?: string;
businessStateProvinceRegion?: string;
businessStreetAddress?: string;
businessStreetAddress2?: string;
businessWebsite?: string;
messageVolume?: string;
notificationEmail?: string;
optInImageUrls?: string | string[];
optInType?: TollfreeVerificationOptInType;
productionMessageSample?: string;
useCaseCategories?: string | string[];
useCaseSummary?: string;
}

interface TollfreeVerificationListInstance {
/**
* @param sid - sid of instance
Expand Down Expand Up @@ -329,6 +376,19 @@ declare class TollfreeVerificationContext {
* Provide a user-friendly representation
*/
toJSON(): any;
/**
* update a TollfreeVerificationInstance
*
* @param callback - Callback to handle processed record
*/
update(callback?: (error: Error | null, items: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;
/**
* update a TollfreeVerificationInstance
*
* @param opts - Options for request
* @param callback - Callback to handle processed record
*/
update(opts?: TollfreeVerificationInstanceUpdateOptions, callback?: (error: Error | null, items: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;
}


Expand Down Expand Up @@ -384,6 +444,19 @@ declare class TollfreeVerificationInstance extends SerializableClass {
toJSON(): any;
tollfreePhoneNumberSid: string;
trustProductSid: string;
/**
* update a TollfreeVerificationInstance
*
* @param callback - Callback to handle processed record
*/
update(callback?: (error: Error | null, items: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;
/**
* update a TollfreeVerificationInstance
*
* @param opts - Options for request
* @param callback - Callback to handle processed record
*/
update(opts?: TollfreeVerificationInstanceUpdateOptions, callback?: (error: Error | null, items: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;
url: string;
useCaseCategories: string[];
useCaseSummary: string;
Expand Down Expand Up @@ -415,4 +488,4 @@ declare class TollfreeVerificationPage extends Page<V1, TollfreeVerificationPayl
toJSON(): any;
}

export { TollfreeVerificationContext, TollfreeVerificationInstance, TollfreeVerificationList, TollfreeVerificationListInstance, TollfreeVerificationListInstanceCreateOptions, TollfreeVerificationListInstanceEachOptions, TollfreeVerificationListInstanceOptions, TollfreeVerificationListInstancePageOptions, TollfreeVerificationOptInType, TollfreeVerificationPage, TollfreeVerificationPayload, TollfreeVerificationResource, TollfreeVerificationSolution, TollfreeVerificationStatus }
export { TollfreeVerificationContext, TollfreeVerificationInstance, TollfreeVerificationInstanceUpdateOptions, TollfreeVerificationList, TollfreeVerificationListInstance, TollfreeVerificationListInstanceCreateOptions, TollfreeVerificationListInstanceEachOptions, TollfreeVerificationListInstanceOptions, TollfreeVerificationListInstancePageOptions, TollfreeVerificationOptInType, TollfreeVerificationPage, TollfreeVerificationPayload, TollfreeVerificationResource, TollfreeVerificationSolution, TollfreeVerificationStatus }
Loading

0 comments on commit c0e0b62

Please sign in to comment.