comms-router
comms-router copied to clipboard
Update dependency com.nexmo:client to v4 (main)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| com.nexmo:client | compile | major | 3.3.0 -> 4.3.1 |
By merging this PR, the issue #158 will be automatically resolved and closed:
| Severity | CVE | Reachability | |
|---|---|---|---|
Medium |
5.3 | WS-2017-3734 |
Release Notes
Nexmo/nexmo-java (com.nexmo:client)
v4.3.1
Fixed
- Fix UTF-8 Encoding for endpoints using JSON bodies.
v4.3.0
Added
- Added
NotifyActionfor use inNCCO.
Fixed
- Added header (application/json) for Redact client.
- Fixed Application Update to send json body as it is what the API now expects.
v4.2.1
Fixed
- Fixed the product name in Redact API for
messages.
v4.2.0
Added
- Missing builders for
StreamAction,AdvancedInsightRequest,StandardInsightRequest, andBasicInsightRequest.
Fixed
AbstractMethodwill force UTF-8 charset for requests usingStringEntity.- Tests will now run using static builder methods for each of the classes that use builders for construction.
v4.1.0
Added
- Added static
buildermethods toActionclasses to reduce some of the verbosity around using them. You can now doTalkAction action = TalkAction.builder("Hello World!").build();instead of justTalkAction action = new TalkAction.Builder("Hello World).build();. - Added static
buildermethods toNexmoClientto reduce some of the verbosity around instantiating the client. - Added
nccoproperty to theCallobject for use in theVoiceClient.createCallmethod. You can now send anNccodirectly to the API instead of defining ananswer_url.
v4.0.1
Added
channelsproperty toRecordActionas it was unintentionally removed during the version 4 release.
v4.0.0
Added
- Added
Nccoclass to wrapCollection<Action>and handle the serialization of NCCO json throughtoJson. - Added the following
Builderclasses:ConnectAction.BuilderConversationAction.BuilderInputAction.BuilderRecordAction.BuilderStreamAction.BuilderTalkAction.Builder
- Added
PhoneEndpointtocom.nexmo.voice.nccopackage for use withConnectAction. - Added
WebSocketEndpointtocom.nexmo.voice.nccopackage for use withConnectAction. - Added
SipEndpointtocom.nexmo.voice.nccopackage for use withConnectAction. - Added
EventMethodenumeration to replace the usage of strings. - Added
EventTypeenumeration and the ability to specify theeventTypeproperty ofConnectAction. - Added
NexmoClient.Builderto allow for fluent creation ofNexmoClient. - Added
getBasicNumberInsight,getStandardNumberInsight, andgetAdvancedNumberInsighttoInsightClientwhich takes a respective*InsightRequest. - Added
CallerIdentitydata object to be used in number insight. - Added
BuildertoCallsFilterclass to make filtering search results more intuative.
Changed
- Renamed all
Nccoclasses toActionclasses:- Renamed
Nccointerface toAction - Renamed
ConnectNccotoConnectAction - Renamed
ConversationNccotoConversationAction - Renamed
InputNccotoInputAction - Renamed
RecordNccotoRecordAction - Renamed
StreamNccotoStreamAction - Renamed
TalkNccotoTalkAction
- Renamed
- All
Actionclasses now must be constructed through the providedBuilderclass. - All
Actionclasses are now immutable. - The
eventUrlproperty ofConnectAction,ConversationAction,InputAction, andRecordActionis now aCollection<String>instead of an array. - The
eventMethodproperty ofConnectAction,ConversationAction,InputAction, andRecordActionis now anEventMethodenum instead of a String. - Removed
ConnectWebSocketNccoas it is built intoConnectAction. VerifyClientwill now return*Responseinstead of*Resultobjects.- Refactored
com.nexmo.client.voice.endpointsto be part of thecom.nexmo.client.voicepackage. - Made all
*Endpointand*Methodclasses package scoped. Users should always go through the appropriateClientclasses. - Moved
AbstractMethodto the root package. - Removed legacy
setUrimethods from the variousVoiceClientendpoints. This should be done throughHttpConfig. - Changed
BasicInsightRequest,StandardInsightRequest, andAdvancedInsightRequestto use builders as constructor telescoping is clunky. Added some static factory methods to these classes to allow shortcutting through the builder for "simple" requests. - Updated
BasicInsightEndpoint,StandardInsightEndpoint, andAdvancedInsightEndpointto a more restrictive scope and moved them to thecom.nexmo.client.insightpackage. - Changed
statusproperty ofBasicInsightResponseto anInsightStatusenumeration. - Changed
SendMessageEndpointfrom XML to JSON. It now returns aSmsSubmissionResponseinstead of an array result.
v3.10.0
Added
- Added the ability to specify the number of channels to record in
RecordNcco
Changed
- Update base uri to always have the version string appended to it.
v3.9.0
Added
- Added missing voices to
VoiceNameenum. - Added configuration object to be used with
HttpWrapperto allow for customization. - Added the ability to customize the base URI used for the various endpoints.
- Added
ConnectWebSocketNccoto handle connecting to WebSocket endpoints similar toConnectNccoto maintain backwards compatibility. - Added
getDisplayNamemethod toVoiceNameto represent the name that is used in serialization.
Changed
TalkNccoto useVoiceNameobject instead ofStringHttpWrappernow uses system properties by default.
v3.8.0
Added
- Added
com.nexmo.client.incoming.MessageEventto assist with the deserialization of the JSON payload used for incoming messages. - Added
com.nexmo.client.incoming.CallEventto assist with the deserialization of the JSON payload used for call events. - Added
com.nexmo.client.incoming.InputEventto assist with the deserialization of the JSON payload used for input events. - Added
com.nexmo.client.incoming.RecordEventto assist with the deserialization of the JSON payload used for record events. - Added secret management methods to
AccountClientin the form of the following methods:listSecretsfor listing all secrets.getSecretfor getting information on a specific secret.revokeSecretfor revoking a secret.createSecretfor creating a new secret.
Changed
- User Agent String now includes the Java version in addition to the client version.
enumclasses that are used to deserialize JSON have been updated to return anUNKNOWNvalue instead of throwing anIllegalArgumentExceptionwhen the value cannot be deserialized. Theseenums are:RecordingFormatMachineDetectionModifyCallActionCallDirectionCallStatusRoamingDetails.RoamingStatusAdvancedInsightResponse.PortedStatusAdvancedInsightResponse.ValidityAdvancedInsightResponse.Reachability
Fixed
- Updated
StreamNcco'sstreamUrlto serialize into an array for use in the Voice API.
v3.7.0
Added
- Added
RedactClientand the ability to interact with the Nexmo Redact API.
Changed
TalkNcconow usesVoiceNameinternally instead ofStringfor thevoiceNameproperty.
v3.6.0
Added
- Added
getSmsPricetoAccountClientfor getting SMS pricing for a country. - Added
getVoicePricetoAccountClientfor getting voice pricing for a country. - Added
getPrefixPricetoAccountClientfor getting SMS and voice pricing for a prefix. - Added
topUptoAccountClientfor topping up your account which has auto-reload enabled. - Added
getSmstoSmsClientfor searching for a single message by id. - Added
ConversionClientand the ability to interact with the Nexmo Conversion API.
v3.5.0
Changed
-
Updated
VerifyClientto use the JSON endpoints instead of XML. -
Updated endpoints which are used by
VerifyClientfrom public to package scope in order to encourage usage throughVerifyClient. -
Deprecated XML version of the following endpoints:
VerifyEndpointCheckEndpointSearchEndpoint
-
Deprecated the following XML results:
VerifyResultshould useVerifyResponseCheckResultshould useCheckResponseSearchResultshould useSearchVerifyResponse
-
Deprecated the following XML methods:
VerifyCheckMethod
Added
- Added
VerifyStatusenumeration to use for statuses coming back from the verify endpoint. - Added
VerifyResponse,CheckResponse, andSearchVerifyResponsefor JSON responses to match other JSON using endpoints. - Added
VerifyMethod,CheckMethod, andSearchMethodfor better segregation between endpoint and method classes. - Add
splitattribute to theRecordNccoobject.
Fixed
- Updated
ConversationNcco'smusicOnHoldUrlto serialize into an array for use in the Voice API.
v3.4.1
Changed
- Updated Jackson Databind dependency to newer version.
v3.4.0
Changed
- Modify call now works with the API again, returning
null(because the API now returns 204 No Content) - VerifyRequest now supports all supported parameters.
- Client-side validation for the
fromparameter's length on theMessageclass has been removed.
Added
- Add
levelattribute to theTalkNccoobject.
- [ ] If you want to rebase/retry this PR, check this box
Medium