Skip to content

Commit

Permalink
[Librarian] Regenerated @ 277e53a232b830747a98a7b463b89f7d9a99ce03
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed May 19, 2021
1 parent 6986ba9 commit c827ef8
Show file tree
Hide file tree
Showing 41 changed files with 1,436 additions and 288 deletions.
23 changes: 23 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
twilio-node changelog
=====================

[2021-05-19] Version 3.63.0
---------------------------
**Library - Chore**
- [PR #673](https://github.com/twilio/twilio-node/pull/673): resolves jsdoc / underscore security vulnerability. Thanks to [@thinkingserious](https://github.com/thinkingserious)!

**Events**
- add query param to return types filtered by Schema Id
- Add query param to return sinks filtered by status
- Add query param to return sinks used/not used by a subscription

**Messaging**
- Add fetch and delete instance endpoints to us_app_to_person api **(breaking change)**
- Remove delete list endpoint from us_app_to_person api **(breaking change)**
- Update read list endpoint to return a list of us_app_to_person compliance objects **(breaking change)**
- Add `sid` field to Preregistered US App To Person response

**Supersim**
- Mark `unique_name` in Sim, Fleet, NAP resources as not PII

**Video**
- [Composer] GA maturity level


[2021-05-05] Version 3.62.0
---------------------------
**Library - Chore**
Expand Down
6 changes: 6 additions & 0 deletions lib/rest/events/v1/eventType.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,14 @@ interface EventTypeListInstance {
* If no pageSize is defined but a limit is defined,
* each() will attempt to read the limit with the most efficient
* page size, i.e. min(limit, 1000)
* @property schemaId - A string to filter Event Types by schema.
*/
interface EventTypeListInstanceEachOptions {
callback?: (item: EventTypeInstance, done: (err?: Error) => void) => void;
done?: Function;
limit?: number;
pageSize?: number;
schemaId?: string;
}

/**
Expand All @@ -171,10 +173,12 @@ interface EventTypeListInstanceEachOptions {
* If no page_size is defined but a limit is defined,
* list() will attempt to read the limit with the most
* efficient page size, i.e. min(limit, 1000)
* @property schemaId - A string to filter Event Types by schema.
*/
interface EventTypeListInstanceOptions {
limit?: number;
pageSize?: number;
schemaId?: string;
}

/**
Expand All @@ -183,11 +187,13 @@ interface EventTypeListInstanceOptions {
* @property pageNumber - Page Number, this value is simply for client state
* @property pageSize - Number of records to return, defaults to 50
* @property pageToken - PageToken provided by the API
* @property schemaId - A string to filter Event Types by schema.
*/
interface EventTypeListInstancePageOptions {
pageNumber?: number;
pageSize?: number;
pageToken?: string;
schemaId?: string;
}

interface EventTypePayload extends EventTypeResource, Page.TwilioResponsePayload {
Expand Down
4 changes: 4 additions & 0 deletions lib/rest/events/v1/eventType.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ EventTypeList = function EventTypeList(version) {
* @memberof Twilio.Events.V1.EventTypeList#
*
* @param {object} [opts] - Options for request
* @param {string} [opts.schemaId] - A string to filter Event Types by schema.
* @param {number} [opts.limit] -
* Upper limit for the number of records to return.
* each() guarantees never to return more than limit.
Expand Down Expand Up @@ -157,6 +158,7 @@ EventTypeList = function EventTypeList(version) {
* @memberof Twilio.Events.V1.EventTypeList#
*
* @param {object} [opts] - Options for request
* @param {string} [opts.schemaId] - A string to filter Event Types by schema.
* @param {number} [opts.limit] -
* Upper limit for the number of records to return.
* list() guarantees never to return more than limit.
Expand Down Expand Up @@ -217,6 +219,7 @@ EventTypeList = function EventTypeList(version) {
* @memberof Twilio.Events.V1.EventTypeList#
*
* @param {object} [opts] - Options for request
* @param {string} [opts.schemaId] - A string to filter Event Types by schema.
* @param {string} [opts.pageToken] - PageToken provided by the API
* @param {number} [opts.pageNumber] -
* Page Number, this value is simply for client state
Expand All @@ -235,6 +238,7 @@ EventTypeList = function EventTypeList(version) {

var deferred = Q.defer();
var data = values.of({
'SchemaId': _.get(opts, 'schemaId'),
'PageToken': opts.pageToken,
'Page': opts.pageNumber,
'PageSize': opts.pageSize
Expand Down
14 changes: 13 additions & 1 deletion lib/rest/events/v1/sink.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ interface SinkListInstance {
/**
* Options to pass to create
*
* @property description - Sink Description
* @property description - Sink Description.
* @property sinkConfiguration - JSON Sink configuration.
* @property sinkType - Sink type.
*/
Expand All @@ -177,6 +177,7 @@ interface SinkListInstanceCreateOptions {
* Function to process each record. If this and a positional
* callback are passed, this one will be used
* @property done - Function to be called upon completion of streaming
* @property inUse - A boolean to return sinks used/not used by a subscription.
* @property limit -
* Upper limit for the number of records to return.
* each() guarantees never to return more than limit.
Expand All @@ -187,17 +188,21 @@ interface SinkListInstanceCreateOptions {
* If no pageSize is defined but a limit is defined,
* each() will attempt to read the limit with the most efficient
* page size, i.e. min(limit, 1000)
* @property status - A string to filter sinks by status.
*/
interface SinkListInstanceEachOptions {
callback?: (item: SinkInstance, done: (err?: Error) => void) => void;
done?: Function;
inUse?: boolean;
limit?: number;
pageSize?: number;
status?: string;
}

/**
* Options to pass to list
*
* @property inUse - A boolean to return sinks used/not used by a subscription.
* @property limit -
* Upper limit for the number of records to return.
* list() guarantees never to return more than limit.
Expand All @@ -208,23 +213,30 @@ interface SinkListInstanceEachOptions {
* If no page_size is defined but a limit is defined,
* list() will attempt to read the limit with the most
* efficient page size, i.e. min(limit, 1000)
* @property status - A string to filter sinks by status.
*/
interface SinkListInstanceOptions {
inUse?: boolean;
limit?: number;
pageSize?: number;
status?: string;
}

/**
* Options to pass to page
*
* @property inUse - A boolean to return sinks used/not used by a subscription.
* @property pageNumber - Page Number, this value is simply for client state
* @property pageSize - Number of records to return, defaults to 50
* @property pageToken - PageToken provided by the API
* @property status - A string to filter sinks by status.
*/
interface SinkListInstancePageOptions {
inUse?: boolean;
pageNumber?: number;
pageSize?: number;
pageToken?: string;
status?: string;
}

interface SinkPayload extends SinkResource, Page.TwilioResponsePayload {
Expand Down
13 changes: 12 additions & 1 deletion lib/rest/events/v1/sink.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ SinkList = function SinkList(version) {
* @memberof Twilio.Events.V1.SinkList#
*
* @param {object} opts - Options for request
* @param {string} opts.description - Sink Description
* @param {string} opts.description - Sink Description.
* @param {object} opts.sinkConfiguration - JSON Sink configuration.
* @param {sink.sink_type} opts.sinkType - Sink type.
* @param {function} [callback] - Callback to handle processed record
Expand Down Expand Up @@ -127,6 +127,9 @@ SinkList = function SinkList(version) {
* @memberof Twilio.Events.V1.SinkList#
*
* @param {object} [opts] - Options for request
* @param {boolean} [opts.inUse] -
* A boolean to return sinks used/not used by a subscription.
* @param {string} [opts.status] - A string to filter sinks by status.
* @param {number} [opts.limit] -
* Upper limit for the number of records to return.
* each() guarantees never to return more than limit.
Expand Down Expand Up @@ -214,6 +217,9 @@ SinkList = function SinkList(version) {
* @memberof Twilio.Events.V1.SinkList#
*
* @param {object} [opts] - Options for request
* @param {boolean} [opts.inUse] -
* A boolean to return sinks used/not used by a subscription.
* @param {string} [opts.status] - A string to filter sinks by status.
* @param {number} [opts.limit] -
* Upper limit for the number of records to return.
* list() guarantees never to return more than limit.
Expand Down Expand Up @@ -274,6 +280,9 @@ SinkList = function SinkList(version) {
* @memberof Twilio.Events.V1.SinkList#
*
* @param {object} [opts] - Options for request
* @param {boolean} [opts.inUse] -
* A boolean to return sinks used/not used by a subscription.
* @param {string} [opts.status] - A string to filter sinks by status.
* @param {string} [opts.pageToken] - PageToken provided by the API
* @param {number} [opts.pageNumber] -
* Page Number, this value is simply for client state
Expand All @@ -292,6 +301,8 @@ SinkList = function SinkList(version) {

var deferred = Q.defer();
var data = values.of({
'InUse': serialize.bool(_.get(opts, 'inUse')),
'Status': _.get(opts, 'status'),
'PageToken': opts.pageToken,
'Page': opts.pageNumber,
'PageSize': opts.pageSize
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/flexApi/v1/flexFlow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare function FlexFlowList(version: V1): FlexFlowListInstance;
* @property integration.url - The External Webhook URL
* @property integration.workflowSid - The Workflow SID for a new Task
* @property integration.workspaceSid - The Workspace SID for a new Task
* @property integrationType - The integration type
* @property integrationType - The software that will handle inbound messages.
* @property janitorEnabled - Remove active Proxy sessions if the corresponding Task is deleted
* @property longLived - Reuse this chat channel for future interactions with a contact
*/
Expand Down Expand Up @@ -201,7 +201,7 @@ interface FlexFlowListInstance {
* @property integration.url - The External Webhook URL
* @property integration.workflowSid - The Workflow SID for a new Task
* @property integration.workspaceSid - The Workspace SID for a new Task
* @property integrationType - The integration type
* @property integrationType - The software that will handle inbound messages.
* @property janitorEnabled - Remove active Proxy sessions if the corresponding Task is deleted
* @property longLived - Reuse this chat channel for future interactions with a contact
*/
Expand Down
9 changes: 5 additions & 4 deletions lib/rest/flexApi/v1/flexFlow.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ FlexFlowList = function FlexFlowList(version) {
* @param {string} [opts.contactIdentity] - The channel contact's Identity
* @param {boolean} [opts.enabled] - Whether the new Flex Flow is enabled
* @param {flex_flow.integration_type} [opts.integrationType] -
* The integration type
* The software that will handle inbound messages.
* @param {string} [opts.integration.flowSid] - The SID of the Studio Flow
* @param {string} [opts.integration.url] - The External Webhook URL
* @param {string} [opts.integration.workspaceSid] -
Expand Down Expand Up @@ -509,7 +509,8 @@ FlexFlowPage.prototype[util.inspect.custom] = function inspect(depth, options) {
* @property {flex_flow.channel_type} channelType - The channel type
* @property {string} contactIdentity - The channel contact's Identity
* @property {boolean} enabled - Whether the Flex Flow is enabled
* @property {flex_flow.integration_type} integrationType - The integration type
* @property {flex_flow.integration_type} integrationType -
* The software that will handle inbound messages.
* @property {object} integration -
* An object that contains specific parameters for the integration
* @property {boolean} longLived -
Expand Down Expand Up @@ -588,7 +589,7 @@ FlexFlowInstance.prototype.fetch = function fetch(callback) {
* @param {string} [opts.contactIdentity] - The channel contact's Identity
* @param {boolean} [opts.enabled] - Whether the new Flex Flow is enabled
* @param {flex_flow.integration_type} [opts.integrationType] -
* The integration type
* The software that will handle inbound messages.
* @param {string} [opts.integration.flowSid] - The SID of the Studio Flow
* @param {string} [opts.integration.url] - The External Webhook URL
* @param {string} [opts.integration.workspaceSid] -
Expand Down Expand Up @@ -720,7 +721,7 @@ FlexFlowContext.prototype.fetch = function fetch(callback) {
* @param {string} [opts.contactIdentity] - The channel contact's Identity
* @param {boolean} [opts.enabled] - Whether the new Flex Flow is enabled
* @param {flex_flow.integration_type} [opts.integrationType] -
* The integration type
* The software that will handle inbound messages.
* @param {string} [opts.integration.flowSid] - The SID of the Studio Flow
* @param {string} [opts.integration.url] - The External Webhook URL
* @param {string} [opts.integration.workspaceSid] -
Expand Down
2 changes: 2 additions & 0 deletions lib/rest/messaging/v1/externalCampaign.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ interface ExternalCampaignResource {
campaign_id: string;
date_created: Date;
messaging_service_sid: string;
sid: string;
}

interface ExternalCampaignSolution {
Expand All @@ -75,6 +76,7 @@ declare class ExternalCampaignInstance extends SerializableClass {
campaignId: string;
dateCreated: Date;
messagingServiceSid: string;
sid: string;
/**
* Provide a user-friendly representation
*/
Expand Down
3 changes: 3 additions & 0 deletions lib/rest/messaging/v1/externalCampaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ ExternalCampaignPage.prototype[util.inspect.custom] = function inspect(depth,
*
* @constructor Twilio.Messaging.V1.ExternalCampaignInstance
*
* @property {string} sid -
* The unique string that identifies a US A2P Compliance resource
* @property {string} accountSid - The SID of the Account that created the resource
* @property {string} campaignId - ID of the preregistered campaign.
* @property {string} messagingServiceSid -
Expand All @@ -218,6 +220,7 @@ ExternalCampaignInstance = function ExternalCampaignInstance(version, payload) {
this._version = version;

// Marshaled Properties
this.sid = payload.sid; // jshint ignore:line
this.accountSid = payload.account_sid; // jshint ignore:line
this.campaignId = payload.campaign_id; // jshint ignore:line
this.messagingServiceSid = payload.messaging_service_sid; // jshint ignore:line
Expand Down
Loading

0 comments on commit c827ef8

Please sign in to comment.