Skip to content

Commit

Permalink
[Librarian] Regenerated @ 53a3efb2ac31899fc77dbb856effaa058577215a
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-ci committed Nov 30, 2018
1 parent 7593775 commit 3b06f44
Show file tree
Hide file tree
Showing 40 changed files with 221 additions and 2,538 deletions.
22 changes: 22 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
twilio-node changelog
=====================

[2018-11-30] Version 3.25.0
----------------------------
**Api**
- Add `interactive_data` optional param to Messages create request

**Authy**
- Required authentication for `/v1/Forms/{type}` endpoint **(breaking change)**
- Removed `Challenge.reason` to `Challenge.responded_reason`
- Removed `verification_sid` from Challenge responses
- Removed `config` param from the Factor creation
- Replaced all occurrences of `FactorType` and `FormType` in favor of a unified `Type` **(breaking change)**

**Chat**
- Add Member attributes

**Preview**
- Removed `Authy` version from `preview` subdomain in favor to `authy` subdomain. **(breaking change)**

**Verify**
- Add `CustomCode` optional parameter on Verication creation.


[2018-11-16] Version 3.24.0
----------------------------
**Messaging**
Expand Down
10 changes: 5 additions & 5 deletions lib/rest/Authy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ var V1 = require('./authy/V1'); /* jshint ignore:line */
* @constructor
*
* @property {Twilio.Authy.V1} v1 - v1 version
* @property {Twilio.Authy.V1.ServiceList} services - services resource
* @property {Twilio.Authy.V1.FormList} forms - forms resource
* @property {Twilio.Authy.V1.ServiceList} services - services resource
*
* @param {Twilio} twilio - The twilio client
*/
Expand All @@ -46,16 +46,16 @@ Object.defineProperty(Authy.prototype,
});

Object.defineProperty(Authy.prototype,
'services', {
'forms', {
get: function() {
return this.v1.services;
return this.v1.forms;
}
});

Object.defineProperty(Authy.prototype,
'forms', {
'services', {
get: function() {
return this.v1.forms;
return this.v1.services;
}
});

Expand Down
2 changes: 0 additions & 2 deletions lib/rest/Preview.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

import AccSecurity = require('./preview/AccSecurity');
import Authy = require('./preview/Authy');
import BulkExports = require('./preview/BulkExports');
import DeployedDevices = require('./preview/DeployedDevices');
import Domain = require('../base/Domain');
Expand Down Expand Up @@ -41,7 +40,6 @@ declare class Preview extends Domain {
readonly acc_security: AccSecurity;
readonly assistants: AssistantListInstance;
readonly authorizationDocuments: AuthorizationDocumentListInstance;
readonly authy: Authy;
readonly availableAddOns: AvailableAddOnListInstance;
readonly bulk_exports: BulkExports;
readonly commands: CommandListInstance;
Expand Down
35 changes: 12 additions & 23 deletions lib/rest/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

var _ = require('lodash'); /* jshint ignore:line */
var AccSecurity = require('./preview/AccSecurity'); /* jshint ignore:line */
var Authy = require('./preview/Authy'); /* jshint ignore:line */
var BulkExports = require('./preview/BulkExports'); /* jshint ignore:line */
var DeployedDevices = require(
'./preview/DeployedDevices'); /* jshint ignore:line */
Expand All @@ -30,7 +29,6 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
*
* @constructor
*
* @property {Twilio.Preview.Authy} authy - authy version
* @property {Twilio.Preview.BulkExports} bulk_exports - bulk_exports version
* @property {Twilio.Preview.DeployedDevices} deployed_devices -
* deployed_devices version
Expand All @@ -40,7 +38,6 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
* @property {Twilio.Preview.Sync} sync - sync version
* @property {Twilio.Preview.Understand} understand - understand version
* @property {Twilio.Preview.Wireless} wireless - wireless version
* @property {Twilio.Preview.Sync.ServiceList} services - services resource
* @property {Twilio.Preview.BulkExports.ExportList} exports - exports resource
* @property {Twilio.Preview.BulkExports.ExportConfigurationList} exportConfiguration -
* exportConfiguration resource
Expand All @@ -49,10 +46,11 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
* authorizationDocuments resource
* @property {Twilio.Preview.HostedNumbers.HostedNumberOrderList} hostedNumberOrders -
* hostedNumberOrders resource
* @property {Twilio.Preview.Marketplace.InstalledAddOnList} installedAddOns -
* installedAddOns resource
* @property {Twilio.Preview.Marketplace.AvailableAddOnList} availableAddOns -
* availableAddOns resource
* @property {Twilio.Preview.Marketplace.InstalledAddOnList} installedAddOns -
* installedAddOns resource
* @property {Twilio.Preview.Sync.ServiceList} services - services resource
* @property {Twilio.Preview.Understand.AssistantList} assistants -
* assistants resource
* @property {Twilio.Preview.Wireless.CommandList} commands - commands resource
Expand All @@ -66,7 +64,6 @@ function Preview(twilio) {
Domain.prototype.constructor.call(this, twilio, 'https://preview.twilio.com');

// Versions
this._authy = undefined;
this._bulk_exports = undefined;
this._deployed_devices = undefined;
this._hosted_numbers = undefined;
Expand All @@ -80,14 +77,6 @@ function Preview(twilio) {
_.extend(Preview.prototype, Domain.prototype);
Preview.prototype.constructor = Preview;

Object.defineProperty(Preview.prototype,
'authy', {
get: function() {
this._authy = this._authy || new Authy(this);
return this._authy;
}
});

Object.defineProperty(Preview.prototype,
'bulk_exports', {
get: function() {
Expand Down Expand Up @@ -152,13 +141,6 @@ Object.defineProperty(Preview.prototype,
}
});

Object.defineProperty(Preview.prototype,
'services', {
get: function() {
return this.sync.services;
}
});

Object.defineProperty(Preview.prototype,
'exports', {
get: function() {
Expand Down Expand Up @@ -194,6 +176,13 @@ Object.defineProperty(Preview.prototype,
}
});

Object.defineProperty(Preview.prototype,
'availableAddOns', {
get: function() {
return this.marketplace.availableAddOns;
}
});

Object.defineProperty(Preview.prototype,
'installedAddOns', {
get: function() {
Expand All @@ -202,9 +191,9 @@ Object.defineProperty(Preview.prototype,
});

Object.defineProperty(Preview.prototype,
'availableAddOns', {
'services', {
get: function() {
return this.marketplace.availableAddOns;
return this.sync.services;
}
});

Expand Down
16 changes: 8 additions & 8 deletions lib/rest/Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ var V1 = require('./video/V1'); /* jshint ignore:line */
* @constructor
*
* @property {Twilio.Video.V1} v1 - v1 version
* @property {Twilio.Video.V1.CompositionList} compositions - compositions resource
* @property {Twilio.Video.V1.CompositionHookList} compositionHooks -
* compositionHooks resource
* @property {Twilio.Video.V1.CompositionSettingsList} compositionSettings -
* compositionSettings resource
* @property {Twilio.Video.V1.RecordingList} recordings - recordings resource
* @property {Twilio.Video.V1.RecordingSettingsList} recordingSettings -
* recordingSettings resource
* @property {Twilio.Video.V1.CompositionList} compositions - compositions resource
* @property {Twilio.Video.V1.RoomList} rooms - rooms resource
*
* @param {Twilio} twilio - The twilio client
Expand All @@ -52,6 +52,13 @@ Object.defineProperty(Video.prototype,
}
});

Object.defineProperty(Video.prototype,
'compositions', {
get: function() {
return this.v1.compositions;
}
});

Object.defineProperty(Video.prototype,
'compositionHooks', {
get: function() {
Expand Down Expand Up @@ -80,13 +87,6 @@ Object.defineProperty(Video.prototype,
}
});

Object.defineProperty(Video.prototype,
'compositions', {
get: function() {
return this.v1.compositions;
}
});

Object.defineProperty(Video.prototype,
'rooms', {
get: function() {
Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ interface MessageListInstance {
* @property contentRetention - The content_retention
* @property forceDelivery - The force_delivery
* @property from - The phone number that initiated the message
* @property interactiveData - JSON string representing interactive data message.
* @property maxPrice - The total maximum price up to the fourth decimal in US dollars acceptable for the message to be delivered.
* @property maxRate - The max_rate
* @property mediaUrl - The URL of the media you wish to send out with the message.
Expand All @@ -130,6 +131,7 @@ interface MessageListInstanceCreateOptions {
contentRetention?: MessageContentRetention;
forceDelivery?: boolean;
from?: string;
interactiveData?: string;
maxPrice?: number;
maxRate?: string;
mediaUrl?: string[];
Expand Down
5 changes: 4 additions & 1 deletion lib/rest/api/v2010/account/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ MessageList = function MessageList(version, accountSid) {
* @param {message.address_retention} [opts.addressRetention] -
* The address_retention
* @param {boolean} [opts.smartEncoded] - The smart_encoded
* @param {string} [opts.interactiveData] -
* JSON string representing interactive data message.
* @param {string} [opts.from] - The phone number that initiated the message
* @param {string} [opts.messagingServiceSid] -
* The 34 character unique id of the Messaging Service you want to associate with this Message.
Expand Down Expand Up @@ -110,7 +112,8 @@ MessageList = function MessageList(version, accountSid) {
'ProviderSid': _.get(opts, 'providerSid'),
'ContentRetention': _.get(opts, 'contentRetention'),
'AddressRetention': _.get(opts, 'addressRetention'),
'SmartEncoded': serialize.bool(_.get(opts, 'smartEncoded'))
'SmartEncoded': serialize.bool(_.get(opts, 'smartEncoded')),
'InteractiveData': _.get(opts, 'interactiveData')
});

var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
Expand Down
6 changes: 3 additions & 3 deletions lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ interface IpAccessControlListListInstance {
/**
* Constructs a ip_access_control_list
*
* @param sid - Fetch by unique ip-access-control-list Sid
* @param sid - Fetch by unique IpAccessControlList Sid
*/
get(sid: string): IpAccessControlListContext;
/**
Expand Down Expand Up @@ -184,7 +184,7 @@ declare class IpAccessControlListContext {
*
* @param version - Version of the resource
* @param accountSid - The account_sid
* @param sid - Fetch by unique ip-access-control-list Sid
* @param sid - Fetch by unique IpAccessControlList Sid
*/
constructor(version: V2010, accountSid: string, sid: string);

Expand Down Expand Up @@ -226,7 +226,7 @@ declare class IpAccessControlListInstance extends SerializableClass {
* @param version - Version of the resource
* @param payload - The instance payload
* @param accountSid - A 34 character string that uniquely identifies this resource.
* @param sid - Fetch by unique ip-access-control-list Sid
* @param sid - Fetch by unique IpAccessControlList Sid
*/
constructor(version: V2010, payload: IpAccessControlListPayload, accountSid: string, sid: string);

Expand Down
6 changes: 3 additions & 3 deletions lib/rest/api/v2010/account/sip/ipAccessControlList.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ IpAccessControlListList = function IpAccessControlListList(version, accountSid)
/**
* Constructs a ip_access_control_list
*
* @param {string} sid - Fetch by unique ip-access-control-list Sid
* @param {string} sid - Fetch by unique IpAccessControlList Sid
*
* @returns {Twilio.Api.V2010.AccountContext.SipContext.IpAccessControlListContext}
*/
Expand Down Expand Up @@ -390,7 +390,7 @@ IpAccessControlListPage.prototype.getInstance = function getInstance(payload) {
* @param {IpAccessControlListPayload} payload - The instance payload
* @param {sid} accountSid -
* A 34 character string that uniquely identifies this resource.
* @param {sid} sid - Fetch by unique ip-access-control-list Sid
* @param {sid} sid - Fetch by unique IpAccessControlList Sid
*/
/* jshint ignore:end */
IpAccessControlListInstance = function IpAccessControlListInstance(version,
Expand Down Expand Up @@ -507,7 +507,7 @@ IpAccessControlListInstance.prototype.toJSON = function toJSON() {
*
* @param {V2010} version - Version of the resource
* @param {sid} accountSid - The account_sid
* @param {sid} sid - Fetch by unique ip-access-control-list Sid
* @param {sid} sid - Fetch by unique IpAccessControlList Sid
*/
/* jshint ignore:end */
IpAccessControlListContext = function IpAccessControlListContext(version,
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/authy/V1.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ declare class V1 extends Version {
/**
* Initialize the V1 version of Authy
*
* @property services - services resource
* @property forms - forms resource
* @property services - services resource
*
* @param domain - The twilio domain
*/
Expand Down
16 changes: 8 additions & 8 deletions lib/rest/authy/V1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ var Version = require('../../base/Version'); /* jshint ignore:line */
/**
* Initialize the V1 version of Authy
*
* @property {Twilio.Authy.V1.ServiceList} services - services resource
* @property {Twilio.Authy.V1.FormList} forms - forms resource
* @property {Twilio.Authy.V1.ServiceList} services - services resource
*
* @param {Twilio.Authy} domain - The twilio domain
*/
Expand All @@ -29,26 +29,26 @@ function V1(domain) {
Version.prototype.constructor.call(this, domain, 'v1');

// Resources
this._services = undefined;
this._forms = undefined;
this._services = undefined;
}

_.extend(V1.prototype, Version.prototype);
V1.prototype.constructor = V1;

Object.defineProperty(V1.prototype,
'services', {
'forms', {
get: function() {
this._services = this._services || new ServiceList(this);
return this._services;
this._forms = this._forms || new FormList(this);
return this._forms;
}
});

Object.defineProperty(V1.prototype,
'forms', {
'services', {
get: function() {
this._forms = this._forms || new FormList(this);
return this._forms;
this._services = this._services || new ServiceList(this);
return this._services;
}
});

Expand Down
Loading

0 comments on commit 3b06f44

Please sign in to comment.