Skip to content

Commit

Permalink
[Librarian] Regenerated @ 59055a0e4517ecbe8ab584e0f9b38f2a70cd94a8
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-ci committed Feb 19, 2020
1 parent 3d0e4a1 commit f8f368c
Show file tree
Hide file tree
Showing 69 changed files with 5,338 additions and 6,882 deletions.
35 changes: 35 additions & 0 deletions CHANGES.md
@@ -1,6 +1,41 @@
twilio-node changelog
=====================

[2020-02-19] Version 3.39.5
---------------------------
**Api**
- Make call create parameters `async_amd`, `async_amd_status_callback`, and `async_amd_status_callback_method` public
- Add `trunk_sid` as an optional field to Call resource fetch/read responses
- Add property `queue_time` to successful response of create, fetch, and update requests for Call
- Add optional parameter `byoc` to conference participant create.

**Authy**
- Added support for challenges associated to push factors

**Flex**
- Adding `ui_dependencies` to Flex Configuration

**Messaging**
- Deprecate Session API **(breaking change)**

**Numbers**
- Add Regulations API

**Studio**
- Add Execution and Step endpoints to v2 API
- Add webhook_url to Flow response and add new /TestUsers endpoint to v2 API

**Taskrouter**
- Adding `longest_relative_task_age_in_queue` and `longest_relative_task_sid_in_queue` to TaskQueue Real Time Statistics API.
- Add `wait_duration_in_queue_until_accepted` aggregations to TaskQueues Cumulative Statistics endpoint
- Add TaskQueueEnteredDate property to Tasks.

**Video**
- [Composer] Clarification for the composition hooks creation documentation: one source is mandatory, either the `audio_sources` or the `video_layout`, but one of them has to be provided
- [Composer] `audio_sources` type on the composer HTTP POST command, changed from `sid[]` to `string[]` **(breaking change)**
- [Composer] Clarification for the composition creation documentation: one source is mandatory, either the `audio_sources` or the `video_layout`, but one of them has to be provided


[2020-02-05] Version 3.39.4
---------------------------
**Api**
Expand Down
4 changes: 0 additions & 4 deletions lib/rest/Messaging.d.ts
Expand Up @@ -9,8 +9,6 @@ import Domain = require('../base/Domain');
import Twilio = require('./Twilio');
import V1 = require('./messaging/V1');
import { ServiceListInstance } from './messaging/v1/service';
import { SessionListInstance } from './messaging/v1/session';
import { WebhookListInstance } from './messaging/v1/webhook';


declare class Messaging extends Domain {
Expand All @@ -22,9 +20,7 @@ declare class Messaging extends Domain {
constructor(twilio: Twilio);

readonly services: ServiceListInstance;
readonly sessions: SessionListInstance;
readonly v1: V1;
readonly webhooks: WebhookListInstance;
}

export = Messaging;
16 changes: 0 additions & 16 deletions lib/rest/Messaging.js
Expand Up @@ -22,8 +22,6 @@ var V1 = require('./messaging/V1'); /* jshint ignore:line */
*
* @property {Twilio.Messaging.V1} v1 - v1 version
* @property {Twilio.Messaging.V1.ServiceList} services - services resource
* @property {Twilio.Messaging.V1.SessionList} sessions - sessions resource
* @property {Twilio.Messaging.V1.WebhookList} webhooks - webhooks resource
*
* @param {Twilio} twilio - The twilio client
*/
Expand Down Expand Up @@ -53,18 +51,4 @@ Object.defineProperty(Messaging.prototype,
}
});

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

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

module.exports = Messaging;
10 changes: 10 additions & 0 deletions lib/rest/api/v2010/account/call.d.ts
Expand Up @@ -135,6 +135,9 @@ interface CallListInstance {
* Options to pass to create
*
* @property applicationSid - The SID of the Application resource that will handle the call
* @property asyncAmd - Enable asynchronous AMD
* @property asyncAmdStatusCallback - The URL we should call to send amd status information to your application
* @property asyncAmdStatusCallbackMethod - HTTP Method to use with async_amd_status_callback
* @property byoc - BYOC trunk SID (Beta)
* @property callerId - The phone number, SIP address, or Client identifier that made this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`.
* @property fallbackMethod - HTTP Method to use with fallback_url
Expand Down Expand Up @@ -165,6 +168,9 @@ interface CallListInstance {
*/
interface CallListInstanceCreateOptions {
applicationSid?: string;
asyncAmd?: string;
asyncAmdStatusCallback?: string;
asyncAmdStatusCallbackMethod?: string;
byoc?: string;
callerId?: string;
fallbackMethod?: string;
Expand Down Expand Up @@ -333,12 +339,14 @@ interface CallResource {
phone_number_sid: string;
price: string;
price_unit: string;
queue_time: string;
sid: string;
start_time: Date;
status: CallStatus;
subresource_uris: string;
to: string;
to_formatted: string;
trunk_sid: string;
uri: string;
}

Expand Down Expand Up @@ -435,6 +443,7 @@ declare class CallInstance extends SerializableClass {
phoneNumberSid: string;
price: string;
priceUnit: string;
queueTime: string;
/**
* Access the recordings
*/
Expand All @@ -455,6 +464,7 @@ declare class CallInstance extends SerializableClass {
* Provide a user-friendly representation
*/
toJSON(): any;
trunkSid: string;
/**
* update a CallInstance
*
Expand Down
14 changes: 14 additions & 0 deletions lib/rest/api/v2010/account/call.js
Expand Up @@ -111,6 +111,11 @@ CallList = function CallList(version, accountSid) {
* Number of milliseconds of silence after speech activity
* @param {number} [opts.machineDetectionSilenceTimeout] -
* Number of milliseconds of initial silence
* @param {string} [opts.asyncAmd] - Enable asynchronous AMD
* @param {string} [opts.asyncAmdStatusCallback] -
* The URL we should call to send amd status information to your application
* @param {string} [opts.asyncAmdStatusCallbackMethod] -
* HTTP Method to use with async_amd_status_callback
* @param {string} [opts.byoc] - BYOC trunk SID (Beta)
* @param {string} [opts.url] - The absolute URL that returns TwiML for this call
* @param {string} [opts.twiml] - TwiML instructions for the call
Expand Down Expand Up @@ -161,6 +166,9 @@ CallList = function CallList(version, accountSid) {
'MachineDetectionSpeechThreshold': _.get(opts, 'machineDetectionSpeechThreshold'),
'MachineDetectionSpeechEndThreshold': _.get(opts, 'machineDetectionSpeechEndThreshold'),
'MachineDetectionSilenceTimeout': _.get(opts, 'machineDetectionSilenceTimeout'),
'AsyncAmd': _.get(opts, 'asyncAmd'),
'AsyncAmdStatusCallback': _.get(opts, 'asyncAmdStatusCallback'),
'AsyncAmdStatusCallbackMethod': _.get(opts, 'asyncAmdStatusCallbackMethod'),
'Byoc': _.get(opts, 'byoc')
});

Expand Down Expand Up @@ -643,8 +651,12 @@ CallPage.prototype[util.inspect.custom] = function inspect(depth, options) {
* The phone number, SIP address or Client identifier that received this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`.
* @property {string} toFormatted -
* The phone number, SIP address or Client identifier that received this call. Formatted for display.
* @property {string} trunkSid -
* The (optional) unique identifier of the trunk resource that was used for this call.
* @property {string} uri -
* The URI of this resource, relative to `https://api.twilio.com`
* @property {string} queueTime -
* The wait time in milliseconds before the call is placed.
*
* @param {V2010} version - Version of the resource
* @param {CallPayload} payload - The instance payload
Expand Down Expand Up @@ -680,7 +692,9 @@ CallInstance = function CallInstance(version, payload, accountSid, sid) {
this.subresourceUris = payload.subresource_uris; // jshint ignore:line
this.to = payload.to; // jshint ignore:line
this.toFormatted = payload.to_formatted; // jshint ignore:line
this.trunkSid = payload.trunk_sid; // jshint ignore:line
this.uri = payload.uri; // jshint ignore:line
this.queueTime = payload.queue_time; // jshint ignore:line

// Context
this._context = undefined;
Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/conference/participant.d.ts
Expand Up @@ -131,6 +131,7 @@ interface ParticipantListInstance {
* Options to pass to create
*
* @property beep - Whether to play a notification beep to the conference when the participant joins
* @property byoc - BYOC trunk SID (Beta)
* @property callSidToCoach - The SID of the participant who is being `coached`
* @property coaching - Indicates if the participant changed to coach
* @property conferenceRecord - Whether to record the conference the participant is joining
Expand Down Expand Up @@ -165,6 +166,7 @@ interface ParticipantListInstance {
*/
interface ParticipantListInstanceCreateOptions {
beep?: string;
byoc?: string;
callSidToCoach?: string;
coaching?: boolean;
conferenceRecord?: string;
Expand Down
4 changes: 3 additions & 1 deletion lib/rest/api/v2010/account/conference/participant.js
Expand Up @@ -121,6 +121,7 @@ ParticipantList = function ParticipantList(version, accountSid, conferenceSid) {
* @param {boolean} [opts.coaching] - Indicates if the participant changed to coach
* @param {string} [opts.callSidToCoach] -
* The SID of the participant who is being `coached`
* @param {string} [opts.byoc] - BYOC trunk SID (Beta)
* @param {function} [callback] - Callback to handle processed record
*
* @returns {Promise} Resolves to processed ParticipantInstance
Expand Down Expand Up @@ -170,7 +171,8 @@ ParticipantList = function ParticipantList(version, accountSid, conferenceSid) {
'RecordingStatusCallbackEvent': serialize.map(_.get(opts, 'recordingStatusCallbackEvent'), function(e) { return e; }),
'ConferenceRecordingStatusCallbackEvent': serialize.map(_.get(opts, 'conferenceRecordingStatusCallbackEvent'), function(e) { return e; }),
'Coaching': serialize.bool(_.get(opts, 'coaching')),
'CallSidToCoach': _.get(opts, 'callSidToCoach')
'CallSidToCoach': _.get(opts, 'callSidToCoach'),
'Byoc': _.get(opts, 'byoc')
});

var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/authy/v1/service/entity/factor/challenge.d.ts
Expand Up @@ -17,7 +17,7 @@ type ChallengeChallengeStatuses = 'pending'|'expired'|'approved'|'denied';

type ChallengeFactorStrengths = 'unknown'|'very_low'|'low'|'medium'|'high'|'very_high';

type ChallengeFactorTypes = 'app-push'|'sms'|'totp';
type ChallengeFactorTypes = 'app-push'|'sms'|'totp'|'push';

/**
* Initialize the ChallengeList
Expand Down
2 changes: 2 additions & 0 deletions lib/rest/flexApi/v1/configuration.d.ts
Expand Up @@ -78,6 +78,7 @@ interface ConfigurationResource {
taskrouter_worker_channels: object;
taskrouter_workspace_sid: string;
ui_attributes: object;
ui_dependencies: object;
ui_language: string;
ui_version: string;
url: string;
Expand Down Expand Up @@ -179,6 +180,7 @@ declare class ConfigurationInstance extends SerializableClass {
*/
toJSON(): any;
uiAttributes: object;
uiDependencies: object;
uiLanguage: string;
uiVersion: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/rest/flexApi/v1/configuration.js
Expand Up @@ -186,6 +186,8 @@ ConfigurationPage.prototype[util.inspect.custom] = function inspect(depth,
* @property {string} uiLanguage - The primary language of the Flex UI
* @property {object} uiAttributes -
* The object that describes Flex UI characteristics and settings
* @property {object} uiDependencies -
* The object that defines the NPM packages and versions to be used in Hosted Flex
* @property {string} uiVersion - The Pinned UI version
* @property {string} serviceVersion - The Flex Service version
* @property {boolean} callRecordingEnabled - Whether call recording is enabled
Expand Down Expand Up @@ -230,6 +232,7 @@ ConfigurationInstance = function ConfigurationInstance(version, payload) {
this.chatServiceInstanceSid = payload.chat_service_instance_sid; // jshint ignore:line
this.uiLanguage = payload.ui_language; // jshint ignore:line
this.uiAttributes = payload.ui_attributes; // jshint ignore:line
this.uiDependencies = payload.ui_dependencies; // jshint ignore:line
this.uiVersion = payload.ui_version; // jshint ignore:line
this.serviceVersion = payload.service_version; // jshint ignore:line
this.callRecordingEnabled = payload.call_recording_enabled; // jshint ignore:line
Expand Down
6 changes: 0 additions & 6 deletions lib/rest/messaging/V1.d.ts
Expand Up @@ -9,10 +9,6 @@ import Messaging = require('../Messaging');
import Version = require('../../base/Version');
import { ServiceList } from './v1/service';
import { ServiceListInstance } from './v1/service';
import { SessionList } from './v1/session';
import { SessionListInstance } from './v1/session';
import { WebhookList } from './v1/webhook';
import { WebhookListInstance } from './v1/webhook';


declare class V1 extends Version {
Expand All @@ -24,8 +20,6 @@ declare class V1 extends Version {
constructor(domain: Messaging);

readonly services: ServiceListInstance;
readonly sessions: SessionListInstance;
readonly webhooks: WebhookListInstance;
}

export = V1;
22 changes: 0 additions & 22 deletions lib/rest/messaging/V1.js
Expand Up @@ -11,9 +11,7 @@

var _ = require('lodash'); /* jshint ignore:line */
var ServiceList = require('./v1/service').ServiceList;
var SessionList = require('./v1/session').SessionList;
var Version = require('../../base/Version'); /* jshint ignore:line */
var WebhookList = require('./v1/webhook').WebhookList;


/* jshint ignore:start */
Expand All @@ -23,8 +21,6 @@ var WebhookList = require('./v1/webhook').WebhookList;
* @constructor Twilio.Messaging.V1
*
* @property {Twilio.Messaging.V1.ServiceList} services - services resource
* @property {Twilio.Messaging.V1.SessionList} sessions - sessions resource
* @property {Twilio.Messaging.V1.WebhookList} webhooks - webhooks resource
*
* @param {Twilio.Messaging} domain - The twilio domain
*/
Expand All @@ -34,8 +30,6 @@ function V1(domain) {

// Resources
this._services = undefined;
this._sessions = undefined;
this._webhooks = undefined;
}

_.extend(V1.prototype, Version.prototype);
Expand All @@ -49,20 +43,4 @@ Object.defineProperty(V1.prototype,
}
});

Object.defineProperty(V1.prototype,
'sessions', {
get: function() {
this._sessions = this._sessions || new SessionList(this);
return this._sessions;
}
});

Object.defineProperty(V1.prototype,
'webhooks', {
get: function() {
this._webhooks = this._webhooks || new WebhookList(this);
return this._webhooks;
}
});

module.exports = V1;

0 comments on commit f8f368c

Please sign in to comment.