Skip to content

Commit

Permalink
[Librarian] Regenerated @ 57ec4ad5f8748759418de47e7b3d02830cbe04cb
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-ci committed Aug 23, 2018
1 parent a992abc commit d942b4a
Show file tree
Hide file tree
Showing 82 changed files with 4,055 additions and 3,075 deletions.
18 changes: 18 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
twilio-node changelog
=====================

[2018-08-23] Version 3.19.2
----------------------------
**Library**
- PR #372: Tests for typescript. Thanks to @ekarson!

**Api**
- Add Proxy Active Sessions category to usage records

**Chat**
- Add User Channel instance resource

**Preview**
- Add `Actions` endpoints and remove `ResponseUrl` from assistants on the Understand api

**Pricing**
- add voice_country resource (v2)


[2018-08-09] Version 3.19.1
----------------------------
**Preview**
Expand Down
4 changes: 0 additions & 4 deletions lib/rest/Preview.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import DeployedDevices = require('./preview/DeployedDevices');
import Domain = require('../base/Domain');
import HostedNumbers = require('./preview/HostedNumbers');
import Marketplace = require('./preview/Marketplace');
import Studio = require('./preview/Studio');
import Sync = require('./preview/Sync');
import Twilio = require('./Twilio');
import Understand = require('./preview/Understand');
Expand All @@ -23,7 +22,6 @@ import { CommandListInstance } from './preview/wireless/command';
import { ExportConfigurationListInstance } from './preview/bulk_exports/exportConfiguration';
import { ExportListInstance } from './preview/bulk_exports/export';
import { FleetListInstance } from './preview/deployed_devices/fleet';
import { FlowListInstance } from './preview/studio/flow';
import { HostedNumberOrderListInstance } from './preview/hosted_numbers/hostedNumberOrder';
import { InstalledAddOnListInstance } from './preview/marketplace/installedAddOn';
import { RatePlanListInstance } from './preview/wireless/ratePlan';
Expand All @@ -49,15 +47,13 @@ declare class Preview extends Domain {
readonly exportConfiguration: ExportConfigurationListInstance;
readonly exports: ExportListInstance;
readonly fleets: FleetListInstance;
readonly flows: FlowListInstance;
readonly hostedNumberOrders: HostedNumberOrderListInstance;
readonly hosted_numbers: HostedNumbers;
readonly installedAddOns: InstalledAddOnListInstance;
readonly marketplace: Marketplace;
readonly ratePlans: RatePlanListInstance;
readonly services: ServiceListInstance;
readonly sims: SimListInstance;
readonly studio: Studio;
readonly sync: Sync;
readonly understand: Understand;
readonly wireless: Wireless;
Expand Down
4 changes: 3 additions & 1 deletion lib/rest/Pricing.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import Domain = require('../base/Domain');
import Twilio = require('./Twilio');
import V1 = require('./pricing/V1');
import V2 = require('./pricing/V2');
import { MessagingListInstance } from './pricing/v1/messaging';
import { PhoneNumberListInstance } from './pricing/v1/phoneNumber';
import { VoiceListInstance } from './pricing/v1/voice';
import { VoiceListInstance } from './pricing/v2/voice';


declare class Pricing extends Domain {
Expand All @@ -24,6 +25,7 @@ declare class Pricing extends Domain {
readonly messaging: MessagingListInstance;
readonly phoneNumbers: PhoneNumberListInstance;
readonly v1: V1;
readonly v2: V2;
readonly voice: VoiceListInstance;
}

Expand Down
15 changes: 13 additions & 2 deletions lib/rest/Pricing.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
var _ = require('lodash'); /* jshint ignore:line */
var Domain = require('../base/Domain'); /* jshint ignore:line */
var V1 = require('./pricing/V1'); /* jshint ignore:line */
var V2 = require('./pricing/V2'); /* jshint ignore:line */


/* jshint ignore:start */
Expand All @@ -21,10 +22,11 @@ var V1 = require('./pricing/V1'); /* jshint ignore:line */
* @constructor
*
* @property {Twilio.Pricing.V1} v1 - v1 version
* @property {Twilio.Pricing.V2} v2 - v2 version
* @property {Twilio.Pricing.V1.MessagingList} messaging - messaging resource
* @property {Twilio.Pricing.V1.PhoneNumberList} phoneNumbers -
* phoneNumbers resource
* @property {Twilio.Pricing.V1.VoiceList} voice - voice resource
* @property {Twilio.Pricing.V2.VoiceList} voice - voice resource
*
* @param {Twilio} twilio - The twilio client
*/
Expand All @@ -34,6 +36,7 @@ function Pricing(twilio) {

// Versions
this._v1 = undefined;
this._v2 = undefined;
}

_.extend(Pricing.prototype, Domain.prototype);
Expand All @@ -47,6 +50,14 @@ Object.defineProperty(Pricing.prototype,
}
});

Object.defineProperty(Pricing.prototype,
'v2', {
get: function() {
this._v2 = this._v2 || new V2(this);
return this._v2;
}
});

Object.defineProperty(Pricing.prototype,
'messaging', {
get: function() {
Expand All @@ -64,7 +75,7 @@ Object.defineProperty(Pricing.prototype,
Object.defineProperty(Pricing.prototype,
'voice', {
get: function() {
return this.v1.voice;
return this.v2.voice;
}
});

Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/sip/domain.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ declare class DomainInstance extends SerializableClass {
/**
* Initialize the DomainContext
*
* @property accountSid - The unique id of the account that sent the message
* @property apiVersion - The Twilio API version used to process the message
* @property accountSid - The unique id of the account that sent the call
* @property apiVersion - The Twilio API version used to process the call
* @property authType - The types of authentication mapped to the domain
* @property dateCreated - The date this resource was created
* @property dateUpdated - The date this resource was last updated
Expand Down
6 changes: 2 additions & 4 deletions lib/rest/api/v2010/account/sip/domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,8 @@ DomainPage.prototype.getInstance = function getInstance(payload) {
/**
* Initialize the DomainContext
*
* @property {string} accountSid -
* The unique id of the account that sent the message
* @property {string} apiVersion -
* The Twilio API version used to process the message
* @property {string} accountSid - The unique id of the account that sent the call
* @property {string} apiVersion - The Twilio API version used to process the call
* @property {string} authType - The types of authentication mapped to the domain
* @property {Date} dateCreated - The date this resource was created
* @property {Date} dateUpdated - The date this resource was last updated
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/api/v2010/account/sip/domain/authTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import V2010 = require('../../../../V2010');
* @description Initialize the AuthTypesList
*
* @param version - Version of the resource
* @param accountSid - The unique id of the account that sent the message
* @param accountSid - The unique id of the account that sent the call
* @param domainSid - A string that uniquely identifies the SIP Domain
*/
declare function AuthTypesList(version: V2010, accountSid: string, domainSid: string): AuthTypesListInstance;
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/api/v2010/account/sip/domain/authTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var AuthTypesList;
* @description Initialize the AuthTypesList
*
* @param {Twilio.Api.V2010} version - Version of the resource
* @param {string} accountSid - The unique id of the account that sent the message
* @param {string} accountSid - The unique id of the account that sent the call
* @param {string} domainSid - A string that uniquely identifies the SIP Domain
*/
/* jshint ignore:end */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import V2010 = require('../../../../../V2010');
* @description Initialize the AuthTypeCallsList
*
* @param version - Version of the resource
* @param accountSid - The unique id of the account that sent the message
* @param accountSid - The unique id of the account that sent the call
* @param domainSid - A string that uniquely identifies the SIP Domain
*/
declare function AuthTypeCallsList(version: V2010, accountSid: string, domainSid: string): AuthTypeCallsListInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var AuthTypeCallsList;
* @description Initialize the AuthTypeCallsList
*
* @param {Twilio.Api.V2010} version - Version of the resource
* @param {string} accountSid - The unique id of the account that sent the message
* @param {string} accountSid - The unique id of the account that sent the call
* @param {string} domainSid - A string that uniquely identifies the SIP Domain
*/
/* jshint ignore:end */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { SerializableClass } from '../../../../../../../../interfaces';
* @description Initialize the AuthCallsCredentialListMappingList
*
* @param version - Version of the resource
* @param accountSid - The unique id of the account that sent the message
* @param accountSid - The unique id of the account that sent the call
* @param domainSid - A string that uniquely identifies the SIP Domain
*/
declare function AuthCallsCredentialListMappingList(version: V2010, accountSid: string, domainSid: string): AuthCallsCredentialListMappingListInstance;
Expand Down Expand Up @@ -203,7 +203,7 @@ declare class AuthCallsCredentialListMappingInstance extends SerializableClass {
*
* @param version - Version of the resource
* @param payload - The instance payload
* @param accountSid - The unique id of the account that sent the message
* @param accountSid - The unique id of the account that sent the call
* @param domainSid - A string that uniquely identifies the SIP Domain
* @param sid - Fetch by unique credential list Sid
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var AuthCallsCredentialListMappingContext;
* @description Initialize the AuthCallsCredentialListMappingList
*
* @param {Twilio.Api.V2010} version - Version of the resource
* @param {string} accountSid - The unique id of the account that sent the message
* @param {string} accountSid - The unique id of the account that sent the call
* @param {string} domainSid - A string that uniquely identifies the SIP Domain
*/
/* jshint ignore:end */
Expand Down Expand Up @@ -407,7 +407,7 @@ AuthCallsCredentialListMappingPage.prototype.getInstance = function
*
* @param {V2010} version - Version of the resource
* @param {AuthCallsCredentialListMappingPayload} payload - The instance payload
* @param {sid} accountSid - The unique id of the account that sent the message
* @param {sid} accountSid - The unique id of the account that sent the call
* @param {sid} domainSid - A string that uniquely identifies the SIP Domain
* @param {sid} sid - Fetch by unique credential list Sid
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { SerializableClass } from '../../../../../../../../interfaces';
* @description Initialize the AuthCallsIpAccessControlListMappingList
*
* @param version - Version of the resource
* @param accountSid - The unique id of the account that sent the message
* @param accountSid - The unique id of the account that sent the call
* @param domainSid - A string that uniquely identifies the SIP Domain
*/
declare function AuthCallsIpAccessControlListMappingList(version: V2010, accountSid: string, domainSid: string): AuthCallsIpAccessControlListMappingListInstance;
Expand Down Expand Up @@ -203,7 +203,7 @@ declare class AuthCallsIpAccessControlListMappingInstance extends SerializableCl
*
* @param version - Version of the resource
* @param payload - The instance payload
* @param accountSid - The unique id of the account that sent the message
* @param accountSid - The unique id of the account that sent the call
* @param domainSid - A string that uniquely identifies the SIP Domain
* @param sid - Fetch by unique IP Access Control List Sid
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var AuthCallsIpAccessControlListMappingContext;
* @description Initialize the AuthCallsIpAccessControlListMappingList
*
* @param {Twilio.Api.V2010} version - Version of the resource
* @param {string} accountSid - The unique id of the account that sent the message
* @param {string} accountSid - The unique id of the account that sent the call
* @param {string} domainSid - A string that uniquely identifies the SIP Domain
*/
/* jshint ignore:end */
Expand Down Expand Up @@ -416,7 +416,7 @@ AuthCallsIpAccessControlListMappingPage.prototype.getInstance = function
* @param {V2010} version - Version of the resource
* @param {AuthCallsIpAccessControlListMappingPayload} payload -
* The instance payload
* @param {sid} accountSid - The unique id of the account that sent the message
* @param {sid} accountSid - The unique id of the account that sent the call
* @param {sid} domainSid - A string that uniquely identifies the SIP Domain
* @param {sid} sid - Fetch by unique IP Access Control List Sid
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import V2010 = require('../../../../../V2010');
* @description Initialize the AuthTypeRegistrationsList
*
* @param version - Version of the resource
* @param accountSid - The unique id of the account that sent the message
* @param accountSid - The unique id of the account that sent the call
* @param domainSid - A string that uniquely identifies the SIP Domain
*/
declare function AuthTypeRegistrationsList(version: V2010, accountSid: string, domainSid: string): AuthTypeRegistrationsListInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var AuthTypeRegistrationsList;
* @description Initialize the AuthTypeRegistrationsList
*
* @param {Twilio.Api.V2010} version - Version of the resource
* @param {string} accountSid - The unique id of the account that sent the message
* @param {string} accountSid - The unique id of the account that sent the call
* @param {string} domainSid - A string that uniquely identifies the SIP Domain
*/
/* jshint ignore:end */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { SerializableClass } from '../../../../../../../../interfaces';
* @description Initialize the AuthRegistrationsCredentialListMappingList
*
* @param version - Version of the resource
* @param accountSid - The unique id of the account that sent the message
* @param accountSid - The unique id of the account that sent the call
* @param domainSid - A string that uniquely identifies the SIP Domain
*/
declare function AuthRegistrationsCredentialListMappingList(version: V2010, accountSid: string, domainSid: string): AuthRegistrationsCredentialListMappingListInstance;
Expand Down Expand Up @@ -203,7 +203,7 @@ declare class AuthRegistrationsCredentialListMappingInstance extends Serializabl
*
* @param version - Version of the resource
* @param payload - The instance payload
* @param accountSid - The unique id of the account that sent the message
* @param accountSid - The unique id of the account that sent the call
* @param domainSid - A string that uniquely identifies the SIP Domain
* @param sid - Fetch by unique credential list Sid
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var AuthRegistrationsCredentialListMappingContext;
* @description Initialize the AuthRegistrationsCredentialListMappingList
*
* @param {Twilio.Api.V2010} version - Version of the resource
* @param {string} accountSid - The unique id of the account that sent the message
* @param {string} accountSid - The unique id of the account that sent the call
* @param {string} domainSid - A string that uniquely identifies the SIP Domain
*/
/* jshint ignore:end */
Expand Down Expand Up @@ -416,7 +416,7 @@ AuthRegistrationsCredentialListMappingPage.prototype.getInstance = function
* @param {V2010} version - Version of the resource
* @param {AuthRegistrationsCredentialListMappingPayload} payload -
* The instance payload
* @param {sid} accountSid - The unique id of the account that sent the message
* @param {sid} accountSid - The unique id of the account that sent the call
* @param {sid} domainSid - A string that uniquely identifies the SIP Domain
* @param {sid} sid - Fetch by unique credential list Sid
*/
Expand Down
Loading

0 comments on commit d942b4a

Please sign in to comment.