Skip to content

Commit

Permalink
[Librarian] Regenerated @ eb708812c2f90eac9e066ed4b9026bfb1276d419
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-ci committed May 25, 2018
1 parent 914dfe8 commit 956090b
Show file tree
Hide file tree
Showing 30 changed files with 484 additions and 234 deletions.
19 changes: 19 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
twilio-node changelog
=====================

[2018-05-25] Version 3.17.1
----------------------------
**Library**
- PR #349: Update Contributing section in README.md. Thanks to @dkundel!
- PR #347: Update dependencies to fix vulnerabilities (#343). Thanks to @dkundel!
- PR #351: Update request dependency. Thanks to @cjcodes!

**Api**
- Add more programmable video categories to usage records
- Add 'include_subaccounts' parameter to all variation of usage_record fetch

**Studio**
- Add endpoint to delete engagements

**Trunking**
- Added cnam_lookup_enabled parameter to Trunk resource.
- Added case-insensitivity for recording parameter to Trunk resource.


[2018-05-11] Version 3.17.0
----------------------------
**Library**
Expand Down
3 changes: 1 addition & 2 deletions lib/rest/api/v2010/account/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ CallList = function CallList(version, accountSid) {
* @param {string} [opts.statusCallbackMethod] -
* HTTP Method to use with StatusCallback
* @param {string} [opts.sendDigits] - Digits to send
* @param {string} [opts.ifMachine] -
* Action to take if a machine has answered the call
* @param {string} [opts.ifMachine] - The if_machine
* @param {number} [opts.timeout] - Number of seconds to wait for an answer
* @param {boolean} [opts.record] - Whether or not to record the Call
* @param {string} [opts.recordingChannels] -
Expand Down
6 changes: 4 additions & 2 deletions lib/rest/api/v2010/account/key.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@ KeyInstance.prototype.fetch = function fetch(callback) {
* @instance
*
* @param {object|function} opts - ...
* @param {string} [opts.friendlyName] - The friendly_name
* @param {string} [opts.friendlyName] -
* A descriptive string for this resource, chosen by your application, up to 64 characters long.
* @param {function} [callback] - Callback to handle processed record
*
* @returns {Promise} Resolves to processed KeyInstance
Expand Down Expand Up @@ -538,7 +539,8 @@ KeyContext.prototype.fetch = function fetch(callback) {
* @instance
*
* @param {object|function} opts - ...
* @param {string} [opts.friendlyName] - The friendly_name
* @param {string} [opts.friendlyName] -
* A descriptive string for this resource, chosen by your application, up to 64 characters long.
* @param {function} [callback] - Callback to handle processed record
*
* @returns {Promise} Resolves to processed KeyInstance
Expand Down
5 changes: 5 additions & 0 deletions lib/rest/api/v2010/account/usage/record/allTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ AllTimeList = function AllTimeList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -170,6 +171,7 @@ AllTimeList = function AllTimeList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -235,6 +237,7 @@ AllTimeList = function AllTimeList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [opts.pageToken] - PageToken provided by the API
* @param {number} [opts.pageNumber] -
* Page Number, this value is simply for client state
Expand All @@ -256,6 +259,7 @@ AllTimeList = function AllTimeList(version, accountSid) {
'Category': _.get(opts, 'category'),
'StartDate': serialize.iso8601Date(_.get(opts, 'startDate')),
'EndDate': serialize.iso8601Date(_.get(opts, 'endDate')),
'IncludeSubaccounts': serialize.bool(_.get(opts, 'includeSubaccounts')),
'PageToken': opts.pageToken,
'Page': opts.pageNumber,
'PageSize': opts.pageSize
Expand Down Expand Up @@ -295,6 +299,7 @@ AllTimeList = function AllTimeList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [targetUrl] - API-generated URL for the requested results page
* @param {function} [callback] - Callback to handle list of records
*
Expand Down
5 changes: 5 additions & 0 deletions lib/rest/api/v2010/account/usage/record/daily.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ DailyList = function DailyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -170,6 +171,7 @@ DailyList = function DailyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -235,6 +237,7 @@ DailyList = function DailyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [opts.pageToken] - PageToken provided by the API
* @param {number} [opts.pageNumber] -
* Page Number, this value is simply for client state
Expand All @@ -256,6 +259,7 @@ DailyList = function DailyList(version, accountSid) {
'Category': _.get(opts, 'category'),
'StartDate': serialize.iso8601Date(_.get(opts, 'startDate')),
'EndDate': serialize.iso8601Date(_.get(opts, 'endDate')),
'IncludeSubaccounts': serialize.bool(_.get(opts, 'includeSubaccounts')),
'PageToken': opts.pageToken,
'Page': opts.pageNumber,
'PageSize': opts.pageSize
Expand Down Expand Up @@ -295,6 +299,7 @@ DailyList = function DailyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [targetUrl] - API-generated URL for the requested results page
* @param {function} [callback] - Callback to handle list of records
*
Expand Down
5 changes: 5 additions & 0 deletions lib/rest/api/v2010/account/usage/record/lastMonth.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ LastMonthList = function LastMonthList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -170,6 +171,7 @@ LastMonthList = function LastMonthList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -235,6 +237,7 @@ LastMonthList = function LastMonthList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [opts.pageToken] - PageToken provided by the API
* @param {number} [opts.pageNumber] -
* Page Number, this value is simply for client state
Expand All @@ -256,6 +259,7 @@ LastMonthList = function LastMonthList(version, accountSid) {
'Category': _.get(opts, 'category'),
'StartDate': serialize.iso8601Date(_.get(opts, 'startDate')),
'EndDate': serialize.iso8601Date(_.get(opts, 'endDate')),
'IncludeSubaccounts': serialize.bool(_.get(opts, 'includeSubaccounts')),
'PageToken': opts.pageToken,
'Page': opts.pageNumber,
'PageSize': opts.pageSize
Expand Down Expand Up @@ -295,6 +299,7 @@ LastMonthList = function LastMonthList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [targetUrl] - API-generated URL for the requested results page
* @param {function} [callback] - Callback to handle list of records
*
Expand Down
5 changes: 5 additions & 0 deletions lib/rest/api/v2010/account/usage/record/monthly.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ MonthlyList = function MonthlyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -170,6 +171,7 @@ MonthlyList = function MonthlyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -235,6 +237,7 @@ MonthlyList = function MonthlyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [opts.pageToken] - PageToken provided by the API
* @param {number} [opts.pageNumber] -
* Page Number, this value is simply for client state
Expand All @@ -256,6 +259,7 @@ MonthlyList = function MonthlyList(version, accountSid) {
'Category': _.get(opts, 'category'),
'StartDate': serialize.iso8601Date(_.get(opts, 'startDate')),
'EndDate': serialize.iso8601Date(_.get(opts, 'endDate')),
'IncludeSubaccounts': serialize.bool(_.get(opts, 'includeSubaccounts')),
'PageToken': opts.pageToken,
'Page': opts.pageNumber,
'PageSize': opts.pageSize
Expand Down Expand Up @@ -295,6 +299,7 @@ MonthlyList = function MonthlyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [targetUrl] - API-generated URL for the requested results page
* @param {function} [callback] - Callback to handle list of records
*
Expand Down
5 changes: 5 additions & 0 deletions lib/rest/api/v2010/account/usage/record/thisMonth.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ ThisMonthList = function ThisMonthList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -170,6 +171,7 @@ ThisMonthList = function ThisMonthList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -235,6 +237,7 @@ ThisMonthList = function ThisMonthList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [opts.pageToken] - PageToken provided by the API
* @param {number} [opts.pageNumber] -
* Page Number, this value is simply for client state
Expand All @@ -256,6 +259,7 @@ ThisMonthList = function ThisMonthList(version, accountSid) {
'Category': _.get(opts, 'category'),
'StartDate': serialize.iso8601Date(_.get(opts, 'startDate')),
'EndDate': serialize.iso8601Date(_.get(opts, 'endDate')),
'IncludeSubaccounts': serialize.bool(_.get(opts, 'includeSubaccounts')),
'PageToken': opts.pageToken,
'Page': opts.pageNumber,
'PageSize': opts.pageSize
Expand Down Expand Up @@ -295,6 +299,7 @@ ThisMonthList = function ThisMonthList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [targetUrl] - API-generated URL for the requested results page
* @param {function} [callback] - Callback to handle list of records
*
Expand Down
5 changes: 5 additions & 0 deletions lib/rest/api/v2010/account/usage/record/today.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ TodayList = function TodayList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -170,6 +171,7 @@ TodayList = function TodayList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -235,6 +237,7 @@ TodayList = function TodayList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [opts.pageToken] - PageToken provided by the API
* @param {number} [opts.pageNumber] -
* Page Number, this value is simply for client state
Expand All @@ -256,6 +259,7 @@ TodayList = function TodayList(version, accountSid) {
'Category': _.get(opts, 'category'),
'StartDate': serialize.iso8601Date(_.get(opts, 'startDate')),
'EndDate': serialize.iso8601Date(_.get(opts, 'endDate')),
'IncludeSubaccounts': serialize.bool(_.get(opts, 'includeSubaccounts')),
'PageToken': opts.pageToken,
'Page': opts.pageNumber,
'PageSize': opts.pageSize
Expand Down Expand Up @@ -295,6 +299,7 @@ TodayList = function TodayList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [targetUrl] - API-generated URL for the requested results page
* @param {function} [callback] - Callback to handle list of records
*
Expand Down
5 changes: 5 additions & 0 deletions lib/rest/api/v2010/account/usage/record/yearly.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ YearlyList = function YearlyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -170,6 +171,7 @@ YearlyList = function YearlyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @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 @@ -235,6 +237,7 @@ YearlyList = function YearlyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [opts.pageToken] - PageToken provided by the API
* @param {number} [opts.pageNumber] -
* Page Number, this value is simply for client state
Expand All @@ -256,6 +259,7 @@ YearlyList = function YearlyList(version, accountSid) {
'Category': _.get(opts, 'category'),
'StartDate': serialize.iso8601Date(_.get(opts, 'startDate')),
'EndDate': serialize.iso8601Date(_.get(opts, 'endDate')),
'IncludeSubaccounts': serialize.bool(_.get(opts, 'includeSubaccounts')),
'PageToken': opts.pageToken,
'Page': opts.pageNumber,
'PageSize': opts.pageSize
Expand Down Expand Up @@ -295,6 +299,7 @@ YearlyList = function YearlyList(version, accountSid) {
* Only include usage that has occurred on or after this date.
* @param {Date} [opts.endDate] -
* Only include usage that has occurred on or before this date.
* @param {boolean} [opts.includeSubaccounts] - The include_subaccounts
* @param {string} [targetUrl] - API-generated URL for the requested results page
* @param {function} [callback] - Callback to handle list of records
*
Expand Down
Loading

0 comments on commit 956090b

Please sign in to comment.