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 8b0b263 commit b34a715
Show file tree
Hide file tree
Showing 79 changed files with 2,735 additions and 3,998 deletions.
48 changes: 48 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,54 @@
twilio-php Changelog
====================

[2020-02-19] Version 6.0.0
--------------------------
**Library - Fix**
- [PR #607](https://github.com/twilio/twilio-php/pull/607): migrate to phpdox for source code doc generation. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
- [PR #602](https://github.com/twilio/twilio-php/pull/602): only pass query option to Guzzle client if it is provided. Thanks to [@childish-sambino](https://github.com/childish-sambino)!

**Library - Feature**
- [PR #606](https://github.com/twilio/twilio-php/pull/606): add scalar param type declarations to generated API code. Thanks to [@childish-sambino](https://github.com/childish-sambino)! **(breaking change)**
- [PR #605](https://github.com/twilio/twilio-php/pull/605): add scalar param type declarations. Thanks to [@childish-sambino](https://github.com/childish-sambino)! **(breaking change)**

**Library - Chore**
- [PR #604](https://github.com/twilio/twilio-php/pull/604): add return types, drop 'array()' syntax, and address linter warnings in generated API code. Thanks to [@childish-sambino](https://github.com/childish-sambino)! **(breaking change)**
- [PR #603](https://github.com/twilio/twilio-php/pull/603): add return types, drop 'array()' syntax, and address linter warnings. Thanks to [@childish-sambino](https://github.com/childish-sambino)! **(breaking change)**
- [PR #595](https://github.com/twilio/twilio-php/pull/595): drop support for EOL versions of PHP. Thanks to [@childish-sambino](https://github.com/childish-sambino)! **(breaking change)**

**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 5.42.2
---------------------------
**Library - Fix**
Expand Down
4 changes: 4 additions & 0 deletions src/Twilio/Rest/Api/V2010/Account/CallInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
* @property array $subresourceUris
* @property string $to
* @property string $toFormatted
* @property string $trunkSid
* @property string $uri
* @property string $queueTime
*/
class CallInstance extends InstanceResource {
protected $_recordings;
Expand Down Expand Up @@ -90,7 +92,9 @@ public function __construct(Version $version, array $payload, string $accountSid
'subresourceUris' => Values::array_get($payload, 'subresource_uris'),
'to' => Values::array_get($payload, 'to'),
'toFormatted' => Values::array_get($payload, 'to_formatted'),
'trunkSid' => Values::array_get($payload, 'trunk_sid'),
'uri' => Values::array_get($payload, 'uri'),
'queueTime' => Values::array_get($payload, 'queue_time'),
];

$this->solution = ['accountSid' => $accountSid, 'sid' => $sid ?: $this->properties['sid'], ];
Expand Down
3 changes: 3 additions & 0 deletions src/Twilio/Rest/Api/V2010/Account/CallList.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public function create(string $to, string $from, array $options = []): CallInsta
'MachineDetectionSpeechThreshold' => $options['machineDetectionSpeechThreshold'],
'MachineDetectionSpeechEndThreshold' => $options['machineDetectionSpeechEndThreshold'],
'MachineDetectionSilenceTimeout' => $options['machineDetectionSilenceTimeout'],
'AsyncAmd' => $options['asyncAmd'],
'AsyncAmdStatusCallback' => $options['asyncAmdStatusCallback'],
'AsyncAmdStatusCallbackMethod' => $options['asyncAmdStatusCallbackMethod'],
'Byoc' => $options['byoc'],
]);

Expand Down
54 changes: 51 additions & 3 deletions src/Twilio/Rest/Api/V2010/Account/CallOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,16 @@ abstract class CallOptions {
* silence after speech activity
* @param int $machineDetectionSilenceTimeout Number of milliseconds of initial
* silence
* @param string $asyncAmd Enable asynchronous AMD
* @param string $asyncAmdStatusCallback The URL we should call to send amd
* status information to your application
* @param string $asyncAmdStatusCallbackMethod HTTP Method to use with
* async_amd_status_callback
* @param string $byoc BYOC trunk SID (Beta)
* @return CreateCallOptions Options builder
*/
public static function create(string $url = Values::NONE, string $twiml = Values::NONE, string $applicationSid = Values::NONE, string $method = Values::NONE, string $fallbackUrl = Values::NONE, string $fallbackMethod = Values::NONE, string $statusCallback = Values::NONE, string[] $statusCallbackEvent = Values::NONE, string $statusCallbackMethod = Values::NONE, string $sendDigits = Values::NONE, int $timeout = Values::NONE, bool $record = Values::NONE, string $recordingChannels = Values::NONE, string $recordingStatusCallback = Values::NONE, string $recordingStatusCallbackMethod = Values::NONE, string $sipAuthUsername = Values::NONE, string $sipAuthPassword = Values::NONE, string $machineDetection = Values::NONE, int $machineDetectionTimeout = Values::NONE, string[] $recordingStatusCallbackEvent = Values::NONE, string $trim = Values::NONE, string $callerId = Values::NONE, int $machineDetectionSpeechThreshold = Values::NONE, int $machineDetectionSpeechEndThreshold = Values::NONE, int $machineDetectionSilenceTimeout = Values::NONE, string $byoc = Values::NONE): CreateCallOptions {
return new CreateCallOptions($url, $twiml, $applicationSid, $method, $fallbackUrl, $fallbackMethod, $statusCallback, $statusCallbackEvent, $statusCallbackMethod, $sendDigits, $timeout, $record, $recordingChannels, $recordingStatusCallback, $recordingStatusCallbackMethod, $sipAuthUsername, $sipAuthPassword, $machineDetection, $machineDetectionTimeout, $recordingStatusCallbackEvent, $trim, $callerId, $machineDetectionSpeechThreshold, $machineDetectionSpeechEndThreshold, $machineDetectionSilenceTimeout, $byoc);
public static function create(string $url = Values::NONE, string $twiml = Values::NONE, string $applicationSid = Values::NONE, string $method = Values::NONE, string $fallbackUrl = Values::NONE, string $fallbackMethod = Values::NONE, string $statusCallback = Values::NONE, string[] $statusCallbackEvent = Values::NONE, string $statusCallbackMethod = Values::NONE, string $sendDigits = Values::NONE, int $timeout = Values::NONE, bool $record = Values::NONE, string $recordingChannels = Values::NONE, string $recordingStatusCallback = Values::NONE, string $recordingStatusCallbackMethod = Values::NONE, string $sipAuthUsername = Values::NONE, string $sipAuthPassword = Values::NONE, string $machineDetection = Values::NONE, int $machineDetectionTimeout = Values::NONE, string[] $recordingStatusCallbackEvent = Values::NONE, string $trim = Values::NONE, string $callerId = Values::NONE, int $machineDetectionSpeechThreshold = Values::NONE, int $machineDetectionSpeechEndThreshold = Values::NONE, int $machineDetectionSilenceTimeout = Values::NONE, string $asyncAmd = Values::NONE, string $asyncAmdStatusCallback = Values::NONE, string $asyncAmdStatusCallbackMethod = Values::NONE, string $byoc = Values::NONE): CreateCallOptions {
return new CreateCallOptions($url, $twiml, $applicationSid, $method, $fallbackUrl, $fallbackMethod, $statusCallback, $statusCallbackEvent, $statusCallbackMethod, $sendDigits, $timeout, $record, $recordingChannels, $recordingStatusCallback, $recordingStatusCallbackMethod, $sipAuthUsername, $sipAuthPassword, $machineDetection, $machineDetectionTimeout, $recordingStatusCallbackEvent, $trim, $callerId, $machineDetectionSpeechThreshold, $machineDetectionSpeechEndThreshold, $machineDetectionSilenceTimeout, $asyncAmd, $asyncAmdStatusCallback, $asyncAmdStatusCallbackMethod, $byoc);
}

/**
Expand Down Expand Up @@ -152,9 +157,14 @@ class CreateCallOptions extends Options {
* silence after speech activity
* @param int $machineDetectionSilenceTimeout Number of milliseconds of initial
* silence
* @param string $asyncAmd Enable asynchronous AMD
* @param string $asyncAmdStatusCallback The URL we should call to send amd
* status information to your application
* @param string $asyncAmdStatusCallbackMethod HTTP Method to use with
* async_amd_status_callback
* @param string $byoc BYOC trunk SID (Beta)
*/
public function __construct(string $url = Values::NONE, string $twiml = Values::NONE, string $applicationSid = Values::NONE, string $method = Values::NONE, string $fallbackUrl = Values::NONE, string $fallbackMethod = Values::NONE, string $statusCallback = Values::NONE, string[] $statusCallbackEvent = Values::NONE, string $statusCallbackMethod = Values::NONE, string $sendDigits = Values::NONE, int $timeout = Values::NONE, bool $record = Values::NONE, string $recordingChannels = Values::NONE, string $recordingStatusCallback = Values::NONE, string $recordingStatusCallbackMethod = Values::NONE, string $sipAuthUsername = Values::NONE, string $sipAuthPassword = Values::NONE, string $machineDetection = Values::NONE, int $machineDetectionTimeout = Values::NONE, string[] $recordingStatusCallbackEvent = Values::NONE, string $trim = Values::NONE, string $callerId = Values::NONE, int $machineDetectionSpeechThreshold = Values::NONE, int $machineDetectionSpeechEndThreshold = Values::NONE, int $machineDetectionSilenceTimeout = Values::NONE, string $byoc = Values::NONE) {
public function __construct(string $url = Values::NONE, string $twiml = Values::NONE, string $applicationSid = Values::NONE, string $method = Values::NONE, string $fallbackUrl = Values::NONE, string $fallbackMethod = Values::NONE, string $statusCallback = Values::NONE, string[] $statusCallbackEvent = Values::NONE, string $statusCallbackMethod = Values::NONE, string $sendDigits = Values::NONE, int $timeout = Values::NONE, bool $record = Values::NONE, string $recordingChannels = Values::NONE, string $recordingStatusCallback = Values::NONE, string $recordingStatusCallbackMethod = Values::NONE, string $sipAuthUsername = Values::NONE, string $sipAuthPassword = Values::NONE, string $machineDetection = Values::NONE, int $machineDetectionTimeout = Values::NONE, string[] $recordingStatusCallbackEvent = Values::NONE, string $trim = Values::NONE, string $callerId = Values::NONE, int $machineDetectionSpeechThreshold = Values::NONE, int $machineDetectionSpeechEndThreshold = Values::NONE, int $machineDetectionSilenceTimeout = Values::NONE, string $asyncAmd = Values::NONE, string $asyncAmdStatusCallback = Values::NONE, string $asyncAmdStatusCallbackMethod = Values::NONE, string $byoc = Values::NONE) {
$this->options['url'] = $url;
$this->options['twiml'] = $twiml;
$this->options['applicationSid'] = $applicationSid;
Expand All @@ -180,6 +190,9 @@ public function __construct(string $url = Values::NONE, string $twiml = Values::
$this->options['machineDetectionSpeechThreshold'] = $machineDetectionSpeechThreshold;
$this->options['machineDetectionSpeechEndThreshold'] = $machineDetectionSpeechEndThreshold;
$this->options['machineDetectionSilenceTimeout'] = $machineDetectionSilenceTimeout;
$this->options['asyncAmd'] = $asyncAmd;
$this->options['asyncAmdStatusCallback'] = $asyncAmdStatusCallback;
$this->options['asyncAmdStatusCallbackMethod'] = $asyncAmdStatusCallbackMethod;
$this->options['byoc'] = $byoc;
}

Expand Down Expand Up @@ -480,6 +493,41 @@ public function setMachineDetectionSilenceTimeout(int $machineDetectionSilenceTi
return $this;
}

/**
* Select whether to perform answering machine detection in the background. Default, blocks the execution of the call until Answering Machine Detection is completed. Can be: `true` or `false`.
*
* @param string $asyncAmd Enable asynchronous AMD
* @return $this Fluent Builder
*/
public function setAsyncAmd(string $asyncAmd): self {
$this->options['asyncAmd'] = $asyncAmd;
return $this;
}

/**
* The URL that we should call using the `async_amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
*
* @param string $asyncAmdStatusCallback The URL we should call to send amd
* status information to your application
* @return $this Fluent Builder
*/
public function setAsyncAmdStatusCallback(string $asyncAmdStatusCallback): self {
$this->options['asyncAmdStatusCallback'] = $asyncAmdStatusCallback;
return $this;
}

/**
* The HTTP method we should use when calling the `async_amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
*
* @param string $asyncAmdStatusCallbackMethod HTTP Method to use with
* async_amd_status_callback
* @return $this Fluent Builder
*/
public function setAsyncAmdStatusCallbackMethod(string $asyncAmdStatusCallbackMethod): self {
$this->options['asyncAmdStatusCallbackMethod'] = $asyncAmdStatusCallbackMethod;
return $this;
}

/**
* The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta)
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function create(string $from, string $to, array $options = []): Participa
'ConferenceRecordingStatusCallbackEvent' => Serialize::map($options['conferenceRecordingStatusCallbackEvent'], function($e) { return $e; }),
'Coaching' => Serialize::booleanToString($options['coaching']),
'CallSidToCoach' => $options['callSidToCoach'],
'Byoc' => $options['byoc'],
]);

$payload = $this->version->create(
Expand Down
Loading

0 comments on commit b34a715

Please sign in to comment.