Skip to content

Commit

Permalink
[Librarian] Regenerated @ 922c1fef02b8c8fbbbe2315aa9b9d1dba49f3fc0
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Oct 19, 2023
1 parent f6ffe70 commit 012b210
Show file tree
Hide file tree
Showing 22 changed files with 152 additions and 122 deletions.
28 changes: 28 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
twilio-php Changelog
====================

[2023-10-19] Version 7.12.0
---------------------------
**Accounts**
- Updated Safelist metadata to correct the docs.
- Add Global SafeList API changes

**Api**
- Added optional parameter `CallToken` for create participant api

**Flex**
- Adding `offline_config` to Flex Configuration

**Intelligence**
- Deleted `redacted` parameter from fetching transcript in v2 **(breaking change)**

**Lookups**
- Add new `phone_number_quality_score` package to the lookup response
- Remove `disposable_phone_number_risk` package **(breaking change)**

**Messaging**
- Update US App To Person documentation with current `message_samples` requirements

**Taskrouter**
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint
- Add `virtual_start_time` property to tasks
- Updating `task_queue_data` format from `map` to `array` in the response of bulk get endpoint of TaskQueue Real Time Statistics API **(breaking change)**


[2023-10-05] Version 7.11.1
---------------------------
**Library - Chore**
Expand Down
11 changes: 11 additions & 0 deletions src/Twilio/Rest/Accounts/V1.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,21 @@
use Twilio\InstanceContext;
use Twilio\Rest\Accounts\V1\AuthTokenPromotionList;
use Twilio\Rest\Accounts\V1\CredentialList;
use Twilio\Rest\Accounts\V1\SafelistList;
use Twilio\Rest\Accounts\V1\SecondaryAuthTokenList;
use Twilio\Version;

/**
* @property AuthTokenPromotionList $authTokenPromotion
* @property CredentialList $credentials
* @property SafelistList $safelist
* @property SecondaryAuthTokenList $secondaryAuthToken
*/
class V1 extends Version
{
protected $_authTokenPromotion;
protected $_credentials;
protected $_safelist;
protected $_secondaryAuthToken;

/**
Expand Down Expand Up @@ -61,6 +64,14 @@ protected function getCredentials(): CredentialList
return $this->_credentials;
}

protected function getSafelist(): SafelistList
{
if (!$this->_safelist) {
$this->_safelist = new SafelistList($this);
}
return $this->_safelist;
}

protected function getSecondaryAuthToken(): SecondaryAuthTokenList
{
if (!$this->_secondaryAuthToken) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Api
* Twilio - Accounts
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
Expand All @@ -15,7 +15,7 @@
*/


namespace Twilio\Rest\Api\V2010;
namespace Twilio\Rest\Accounts\V1;

use Twilio\Exceptions\TwilioException;
use Twilio\InstanceResource;
Expand Down Expand Up @@ -76,7 +76,7 @@ public function __get(string $name)
*/
public function __toString(): string
{
return '[Twilio.Api.V2010.SafelistInstance]';
return '[Twilio.Accounts.V1.SafelistInstance]';
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Api
* Twilio - Accounts
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

namespace Twilio\Rest\Api\V2010;
namespace Twilio\Rest\Accounts\V1;

use Twilio\Exceptions\TwilioException;
use Twilio\ListResource;
Expand All @@ -39,7 +39,7 @@ public function __construct(
$this->solution = [
];

$this->uri = '/SafeList/Numbers.json';
$this->uri = '/SafeList/Numbers';
}

/**
Expand Down Expand Up @@ -120,6 +120,6 @@ public function fetch(array $options = []): SafelistInstance
*/
public function __toString(): string
{
return '[Twilio.Api.V2010.SafelistList]';
return '[Twilio.Accounts.V1.SafelistList]';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Api
* Twilio - Accounts
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

namespace Twilio\Rest\Api\V2010;
namespace Twilio\Rest\Accounts\V1;

use Twilio\Options;
use Twilio\Values;
Expand Down Expand Up @@ -87,7 +87,7 @@ public function setPhoneNumber(string $phoneNumber): self
public function __toString(): string
{
$options = \http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Api.V2010.DeleteSafelistOptions ' . $options . ']';
return '[Twilio.Accounts.V1.DeleteSafelistOptions ' . $options . ']';
}
}

Expand Down Expand Up @@ -124,7 +124,7 @@ public function setPhoneNumber(string $phoneNumber): self
public function __toString(): string
{
$options = \http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Api.V2010.FetchSafelistOptions ' . $options . ']';
return '[Twilio.Accounts.V1.FetchSafelistOptions ' . $options . ']';
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Api
* Twilio - Accounts
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

namespace Twilio\Rest\Api\V2010;
namespace Twilio\Rest\Accounts\V1;

use Twilio\Http\Response;
use Twilio\Page;
Expand All @@ -36,7 +36,7 @@ public function __construct(Version $version, Response $response, array $solutio

/**
* @param array $payload Payload response from the API
* @return SafelistInstance \Twilio\Rest\Api\V2010\SafelistInstance
* @return SafelistInstance \Twilio\Rest\Accounts\V1\SafelistInstance
*/
public function buildInstance(array $payload): SafelistInstance
{
Expand All @@ -50,6 +50,6 @@ public function buildInstance(array $payload): SafelistInstance
*/
public function __toString(): string
{
return '[Twilio.Api.V2010.SafelistPage]';
return '[Twilio.Accounts.V1.SafelistPage]';
}
}
11 changes: 0 additions & 11 deletions src/Twilio/Rest/Api/V2010.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
use Twilio\InstanceContext;
use Twilio\Rest\Api\V2010\AccountInstance;
use Twilio\Rest\Api\V2010\AccountList;
use Twilio\Rest\Api\V2010\SafelistList;
use Twilio\Rest\Api\V2010\AccountContext;
use Twilio\Version;

/**
* @property AccountList $accounts
* @property SafelistList $safelist
* @property AccountContext $account
* @property \Twilio\Rest\Api\V2010\Account\RecordingList $recordings
* @property \Twilio\Rest\Api\V2010\Account\UsageList $usage
Expand Down Expand Up @@ -74,7 +72,6 @@
class V2010 extends Version
{
protected $_accounts;
protected $_safelist;
protected $_account = null;
protected $_recordings = null;
protected $_usage = null;
Expand Down Expand Up @@ -120,14 +117,6 @@ protected function getAccounts(): AccountList
return $this->_accounts;
}

protected function getSafelist(): SafelistList
{
if (!$this->_safelist) {
$this->_safelist = new SafelistList($this);
}
return $this->_safelist;
}

/**
* @return AccountContext Account provided as the authenticating account
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ public function create(string $from, string $to, array $options = []): Participa
$options['amdStatusCallbackMethod'],
'Trim' =>
$options['trim'],
'CallToken' =>
$options['callToken'],
]);

$payload = $this->version->create('POST', $this->uri, [], $data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ abstract class ParticipantOptions
* @param string $amdStatusCallback The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
* @param string $amdStatusCallbackMethod The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
* @param string $trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
* @param string $callToken A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
* @return CreateParticipantOptions Options builder
*/
public static function create(
Expand Down Expand Up @@ -114,7 +115,8 @@ public static function create(
int $machineDetectionSilenceTimeout = Values::INT_NONE,
string $amdStatusCallback = Values::NONE,
string $amdStatusCallbackMethod = Values::NONE,
string $trim = Values::NONE
string $trim = Values::NONE,
string $callToken = Values::NONE

): CreateParticipantOptions
{
Expand Down Expand Up @@ -163,7 +165,8 @@ public static function create(
$machineDetectionSilenceTimeout,
$amdStatusCallback,
$amdStatusCallbackMethod,
$trim
$trim,
$callToken
);
}

Expand Down Expand Up @@ -288,6 +291,7 @@ class CreateParticipantOptions extends Options
* @param string $amdStatusCallback The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
* @param string $amdStatusCallbackMethod The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
* @param string $trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
* @param string $callToken A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
*/
public function __construct(

Expand Down Expand Up @@ -335,7 +339,8 @@ public function __construct(
int $machineDetectionSilenceTimeout = Values::INT_NONE,
string $amdStatusCallback = Values::NONE,
string $amdStatusCallbackMethod = Values::NONE,
string $trim = Values::NONE
string $trim = Values::NONE,
string $callToken = Values::NONE

) {
$this->options['statusCallback'] = $statusCallback;
Expand Down Expand Up @@ -383,6 +388,7 @@ public function __construct(
$this->options['amdStatusCallback'] = $amdStatusCallback;
$this->options['amdStatusCallbackMethod'] = $amdStatusCallbackMethod;
$this->options['trim'] = $trim;
$this->options['callToken'] = $callToken;
}

/**
Expand Down Expand Up @@ -925,6 +931,18 @@ public function setTrim(string $trim): self
return $this;
}

/**
* A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
*
* @param string $callToken A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
* @return $this Fluent Builder
*/
public function setCallToken(string $callToken): self
{
$this->options['callToken'] = $callToken;
return $this;
}

/**
* Provide a friendly representation
*
Expand Down
2 changes: 2 additions & 0 deletions src/Twilio/Rest/FlexApi/V1/ConfigurationInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
* @property array|null $flexUiStatusReport
* @property array|null $agentConvEndMethods
* @property array|null $citrixVoiceVdi
* @property array|null $offlineConfig
*/
class ConfigurationInstance extends InstanceResource
{
Expand Down Expand Up @@ -135,6 +136,7 @@ public function __construct(Version $version, array $payload)
'flexUiStatusReport' => Values::array_get($payload, 'flex_ui_status_report'),
'agentConvEndMethods' => Values::array_get($payload, 'agent_conv_end_methods'),
'citrixVoiceVdi' => Values::array_get($payload, 'citrix_voice_vdi'),
'offlineConfig' => Values::array_get($payload, 'offline_config'),
];

$this->solution = [];
Expand Down
8 changes: 4 additions & 4 deletions src/Twilio/Rest/Intelligence/V2/Transcript/MediaOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
abstract class MediaOptions
{
/**
* @param bool $redacted Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
* @param bool $redacted Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
* @return FetchMediaOptions Options builder
*/
public static function fetch(
Expand All @@ -40,7 +40,7 @@ public static function fetch(
class FetchMediaOptions extends Options
{
/**
* @param bool $redacted Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
* @param bool $redacted Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
*/
public function __construct(

Expand All @@ -51,9 +51,9 @@ public function __construct(
}

/**
* Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
* Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
*
* @param bool $redacted Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
* @param bool $redacted Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
* @return $this Fluent Builder
*/
public function setRedacted(bool $redacted): self
Expand Down
Loading

0 comments on commit 012b210

Please sign in to comment.