Skip to content

Commit

Permalink
[Librarian] Regenerated @ 0f0b2504f7166f971139be89ca896dc5c087def3
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-ci committed Oct 16, 2019
1 parent 6c236bb commit accc904
Show file tree
Hide file tree
Showing 15 changed files with 77 additions and 85 deletions.
27 changes: 27 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
twilio-node changelog
=====================

[2019-10-16] Version 3.36.0
---------------------------
**Library**
- [PR #488](https://github.com/twilio/twilio-node/pull/488): Update a few property types in the lookups and trunking responses. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
- [PR #489](https://github.com/twilio/twilio-node/pull/489): Update instance property ordering. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
- [PR #487](https://github.com/twilio/twilio-node/pull/487): Allow for auto-deploy on tagged releases. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
- [PR #486](https://github.com/twilio/twilio-node/pull/486): breaking: Correct video composition date types. Thanks to [@childish-sambino](https://github.com/childish-sambino)! **(breaking change)**
- [PR #485](https://github.com/twilio/twilio-node/pull/485): Adding optional ca for specifying CA bundle. Thanks to [@ncausey](https://github.com/ncausey)!

**Api**
- Add new property `attempt` to sms_messages
- Fixed a typo in the documentation for Feedback outcome enum **(breaking change)**
- Update the call price to be optional for deserializing **(breaking change)**

**Flex**
- Added `JanitorEnabled` attribute to Flex Flow
- Change `features_enabled` Flex Configuration key to private **(breaking change)**

**Supersim**
- Add Fetch endpoint to Fleets resource for Super Sim Pilot
- Allow assigning a Sim to a Fleet for Super Sim Pilot
- Add Create endpoint to Fleets resource for Super Sim Pilot

**Twiml**
- Update `<Conference>` rename "whisper" attribute to "coach" **(breaking change)**


[2019-10-02] Version 3.35.1
---------------------------
**Library**
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/api/v2010/account/message/feedback.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Response = require('../../../../../http/response');
import V2010 = require('../../../V2010');
import { SerializableClass } from '../../../../../interfaces';

type FeedbackOutcome = 'confirmed'|'umconfirmed';
type FeedbackOutcome = 'confirmed'|'unconfirmed';

/**
* Initialize the FeedbackList
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/autopilot/v1/assistant/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ QueryPage.prototype[util.inspect.custom] = function inspect(depth, options) {
* @property {Date} dateUpdated -
* The RFC 2822 date and time in GMT when the resource was last updated
* @property {object} results -
* The natural language analysis results that include the Task recognized, the confidence score, and a list of identified Fields
* The natural language analysis results that include the Task recognized and a list of identified Fields
* @property {string} language -
* The ISO language-country string that specifies the language used by the Query
* @property {string} modelBuildSid -
Expand Down
2 changes: 0 additions & 2 deletions lib/rest/flexApi/v1/configuration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ interface ConfigurationResource {
crm_type: string;
date_created: Date;
date_updated: Date;
features_enabled: string[];
integrations: object[];
messaging_service_instance_sid: string;
outbound_call_flows: object;
Expand Down Expand Up @@ -150,7 +149,6 @@ declare class ConfigurationInstance extends SerializableClass {
crmType: string;
dateCreated: Date;
dateUpdated: Date;
featuresEnabled: string[];
/**
* fetch a ConfigurationInstance
*
Expand Down
2 changes: 0 additions & 2 deletions lib/rest/flexApi/v1/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ ConfigurationPage.prototype[util.inspect.custom] = function inspect(depth,
* @property {object} integrations -
* A list of objects that contain the configurations for the Integrations supported in this configuration
* @property {object} outboundCallFlows - The list of outbound call flows
* @property {string} featuresEnabled - The list of enabled features
* @property {string} serverlessServiceSids - The list of serverless service SIDs
* @property {string} url - The absolute URL of the Configuration resource
*
Expand Down Expand Up @@ -245,7 +244,6 @@ ConfigurationInstance = function ConfigurationInstance(version, payload) {
this.pluginServiceAttributes = payload.plugin_service_attributes; // jshint ignore:line
this.integrations = payload.integrations; // jshint ignore:line
this.outboundCallFlows = payload.outbound_call_flows; // jshint ignore:line
this.featuresEnabled = payload.features_enabled; // jshint ignore:line
this.serverlessServiceSids = payload.serverless_service_sids; // jshint ignore:line
this.url = payload.url; // jshint ignore:line

Expand Down
6 changes: 6 additions & 0 deletions lib/rest/flexApi/v1/flexFlow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ declare function FlexFlowList(version: V1): FlexFlowListInstance;
* @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 janitorEnabled - Boolean flag for enabling or disabling the Janitor
* @property longLived - Whether new channels created are long-lived
*/
interface FlexFlowInstanceUpdateOptions {
Expand All @@ -58,6 +59,7 @@ interface FlexFlowInstanceUpdateOptions {
creationOnMessage?: boolean;
};
integrationType?: FlexFlowIntegrationType;
janitorEnabled?: boolean;
longLived?: boolean;
}

Expand Down Expand Up @@ -152,6 +154,7 @@ interface FlexFlowListInstance {
* @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 janitorEnabled - Boolean flag for enabling or disabling the Janitor
* @property longLived - Whether new channels are long-lived
*/
interface FlexFlowListInstanceCreateOptions {
Expand All @@ -171,6 +174,7 @@ interface FlexFlowListInstanceCreateOptions {
creationOnMessage?: boolean;
};
integrationType?: FlexFlowIntegrationType;
janitorEnabled?: boolean;
longLived?: boolean;
}

Expand Down Expand Up @@ -251,6 +255,7 @@ interface FlexFlowResource {
friendly_name: string;
integration: object;
integration_type: FlexFlowIntegrationType;
janitor_enabled: boolean;
long_lived: boolean;
sid: string;
url: string;
Expand Down Expand Up @@ -322,6 +327,7 @@ declare class FlexFlowInstance extends SerializableClass {
friendlyName: string;
integration: object;
integrationType: FlexFlowIntegrationType;
janitorEnabled: boolean;
longLived: boolean;
/**
* remove a FlexFlowInstance
Expand Down
15 changes: 13 additions & 2 deletions lib/rest/flexApi/v1/flexFlow.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ FlexFlowList = function FlexFlowList(version) {
* @param {boolean} [opts.integration.creationOnMessage] -
* Whether to create a task when the first message arrives
* @param {boolean} [opts.longLived] - Whether new channels are long-lived
* @param {boolean} [opts.janitorEnabled] -
* Boolean flag for enabling or disabling the Janitor
* @param {function} [callback] - Callback to handle processed record
*
* @returns {Promise} Resolves to processed FlexFlowInstance
Expand Down Expand Up @@ -364,7 +366,8 @@ FlexFlowList = function FlexFlowList(version) {
'Integration.Timeout': _.get(opts, 'integration.timeout'),
'Integration.Priority': _.get(opts, 'integration.priority'),
'Integration.CreationOnMessage': serialize.bool(_.get(opts, 'integration.creationOnMessage')),
'LongLived': serialize.bool(_.get(opts, 'longLived'))
'LongLived': serialize.bool(_.get(opts, 'longLived')),
'JanitorEnabled': serialize.bool(_.get(opts, 'janitorEnabled'))
});

var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
Expand Down Expand Up @@ -508,6 +511,8 @@ FlexFlowPage.prototype[util.inspect.custom] = function inspect(depth, options) {
* @property {object} integration -
* An object that contains specific parameters for the integration
* @property {boolean} longLived - Whether new channels are long-lived
* @property {boolean} janitorEnabled -
* Boolean flag for enabling or disabling the Janitor
* @property {string} url - The absolute URL of the FlexFlow resource
*
* @param {V1} version - Version of the resource
Expand All @@ -531,6 +536,7 @@ FlexFlowInstance = function FlexFlowInstance(version, payload, sid) {
this.integrationType = payload.integration_type; // jshint ignore:line
this.integration = payload.integration; // jshint ignore:line
this.longLived = payload.long_lived; // jshint ignore:line
this.janitorEnabled = payload.janitor_enabled; // jshint ignore:line
this.url = payload.url; // jshint ignore:line

// Context
Expand Down Expand Up @@ -592,6 +598,8 @@ FlexFlowInstance.prototype.fetch = function fetch(callback) {
* @param {boolean} [opts.integration.creationOnMessage] -
* Whether to create a task when the first message arrives
* @param {boolean} [opts.longLived] - Whether new channels created are long-lived
* @param {boolean} [opts.janitorEnabled] -
* Boolean flag for enabling or disabling the Janitor
* @param {function} [callback] - Callback to handle processed record
*
* @returns {Promise} Resolves to processed FlexFlowInstance
Expand Down Expand Up @@ -719,6 +727,8 @@ FlexFlowContext.prototype.fetch = function fetch(callback) {
* @param {boolean} [opts.integration.creationOnMessage] -
* Whether to create a task when the first message arrives
* @param {boolean} [opts.longLived] - Whether new channels created are long-lived
* @param {boolean} [opts.janitorEnabled] -
* Boolean flag for enabling or disabling the Janitor
* @param {function} [callback] - Callback to handle processed record
*
* @returns {Promise} Resolves to processed FlexFlowInstance
Expand Down Expand Up @@ -747,7 +757,8 @@ FlexFlowContext.prototype.update = function update(opts, callback) {
'Integration.Timeout': _.get(opts, 'integration.timeout'),
'Integration.Priority': _.get(opts, 'integration.priority'),
'Integration.CreationOnMessage': serialize.bool(_.get(opts, 'integration.creationOnMessage')),
'LongLived': serialize.bool(_.get(opts, 'longLived'))
'LongLived': serialize.bool(_.get(opts, 'longLived')),
'JanitorEnabled': serialize.bool(_.get(opts, 'janitorEnabled'))
});

var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
Expand Down
4 changes: 2 additions & 2 deletions lib/twiml/VoiceResponse.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ declare namespace VoiceResponse {
* Options to pass to conference
*
* @property beep - Play beep when joining
* @property coach - Call coach
* @property endConferenceOnExit - End the conferenceon exit
* @property eventCallbackUrl - Event callback URL
* @property maxParticipants - Maximum number of participants
Expand All @@ -276,10 +277,10 @@ declare namespace VoiceResponse {
* @property trim - Trim the conference recording
* @property waitMethod - Wait URL method
* @property waitUrl - Wait URL
* @property whisper - Call whisper
*/
export interface ConferenceAttributes {
beep?: ConferenceBeep;
coach?: string;
endConferenceOnExit?: boolean;
eventCallbackUrl?: string;
maxParticipants?: number;
Expand All @@ -296,7 +297,6 @@ declare namespace VoiceResponse {
trim?: ConferenceTrim;
waitMethod?: string;
waitUrl?: string;
whisper?: string;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/twiml/VoiceResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@ Dial.prototype.client = function client(attributes, identity) {
* @param {number} [attributes.maxParticipants] - Maximum number of participants
* @param {conference.record} [attributes.record] - Record the conference
* @param {conference.region} [attributes.region] - Conference region
* @param {string} [attributes.whisper] - Call whisper
* @param {string} [attributes.coach] - Call coach
* @param {conference.trim} [attributes.trim] - Trim the conference recording
* @param {conference.event} [attributes.statusCallbackEvent] -
* Events to call status callback URL
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"xmlbuilder": "9.0.1"
},
"devDependencies": {
"@types/lodash": "^4.14.141",
"@types/lodash": "^4.14.144",
"@types/node": "^9.6.52",
"eslint": "^5.16.0",
"express": "^4.17.1",
Expand Down
31 changes: 8 additions & 23 deletions spec/integration/rest/api/v2010/account/notification.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ describe('Notification', function() {
var body = JSON.stringify({
'end': 0,
'first_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0',
'last_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=100',
'previous_page_uri': null,
'next_page_uri': null,
'notifications': [
{
Expand All @@ -147,15 +147,12 @@ describe('Notification', function() {
'request_method': null,
'request_url': '',
'sid': 'NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
}
],
'num_pages': 101,
'page': 0,
'page_size': 1,
'previous_page_uri': null,
'start': 0,
'total': 101,
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0'
});
holodeck.mock(new Response(200, body));
Expand All @@ -168,7 +165,7 @@ describe('Notification', function() {
var body = JSON.stringify({
'end': 0,
'first_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0',
'last_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=100',
'previous_page_uri': null,
'next_page_uri': null,
'notifications': [
{
Expand All @@ -185,15 +182,12 @@ describe('Notification', function() {
'request_method': null,
'request_url': '',
'sid': 'NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
}
],
'num_pages': 101,
'page': 0,
'page_size': 1,
'previous_page_uri': null,
'start': 0,
'total': 101,
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0'
});
holodeck.mock(new Response(200, body));
Expand All @@ -211,7 +205,7 @@ describe('Notification', function() {
var body = JSON.stringify({
'end': 0,
'first_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0',
'last_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=100',
'previous_page_uri': null,
'next_page_uri': null,
'notifications': [
{
Expand All @@ -228,15 +222,12 @@ describe('Notification', function() {
'request_method': null,
'request_url': '',
'sid': 'NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
}
],
'num_pages': 101,
'page': 0,
'page_size': 1,
'previous_page_uri': null,
'start': 0,
'total': 101,
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0'
});
holodeck.mock(new Response(200, body));
Expand Down Expand Up @@ -271,7 +262,7 @@ describe('Notification', function() {
var body = JSON.stringify({
'end': 0,
'first_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0',
'last_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=100',
'previous_page_uri': null,
'next_page_uri': null,
'notifications': [
{
Expand All @@ -288,15 +279,12 @@ describe('Notification', function() {
'request_method': null,
'request_url': '',
'sid': 'NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
}
],
'num_pages': 101,
'page': 0,
'page_size': 1,
'previous_page_uri': null,
'start': 0,
'total': 101,
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0'
});

Expand All @@ -317,15 +305,12 @@ describe('Notification', function() {
var body = JSON.stringify({
'end': 0,
'first_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0',
'last_page_uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=100',
'next_page_uri': null,
'notifications': [],
'num_pages': 101,
'page': 0,
'page_size': 1,
'previous_page_uri': null,
'start': 0,
'total': 101,
'uri': '/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?PageSize=1&Page=0'
});

Expand Down
Loading

0 comments on commit accc904

Please sign in to comment.