Releases: watson-developer-cloud/salesforce-sdk
v5.3.0
5.3.0 (2020-03-03)
Features
- assistant: generated changes (7f4ddff)
- compare-comply: generated changes (2e35da4)
- discovery: generated changes (6fbbc17)
- language-translator: generated changes (b666d3f)
- nlc: generated changes (75fb2c8)
- nlu: generated changes (71270db)
- personality-insights: generated changes (801706d)
- speech-to-text: generated changes (7e34d77)
- text-to-speech: generated changes (917cdbe)
- tone-analyzer: generated changes (6a6f0f4)
- visual-recognition: generated changes (3bb2432)
v5.2.1
v5.2.0
v5.1.0
5.1.0 (2019-11-27)
Bug Fixes
- Discovery v1: Remove incorrectly-defined title prop from QueryResult and QueryNoticesResult (6deb3f2)
Features
- Assistant v1: Add disambiguationOptOut prop to dialog nodes (079c545)
- Assistant v1: Add offTopic prop to WorkspaceSystemSettings (869d179)
- Assistant v1: Add suggestionTextPolicy prop to WorkspaceSystemSettingsDisambiguation (d7d4a7d)
- Assistant v1: Add workspace webhook functionality (d78ad68)
- Discovery v2: Add initial generation of service (896b9ae)
- Visual Recognition v4: Add getTrainingUsage method (24e01e8)
v5.0.0
5.0.0 (2019-10-04)
See the migration guide for more details!
Bug Fixes
- Handle multipart form sending from Visual Recognition and others (8651e0d)
Features
- Assistant v1: Add constructor for external auth config and fix serialization bug (7790e43)
- Assistant v2: Add constructor for external auth config and fix serialization bug (82a8470)
- Compare and Comply: Add constructor for external auth config and fix serialization bug (ed19cf7)
- core: Add authenticator for bearer tokens (de3cdba)
- core: Add base classes around token auth (3bb0202)
- core: Add class for authenticating with external credentials (9498af7)
- core: Add new base authenticator and modify interface (d45ad8a)
- core: Add superclass methods to get mapping between SDK and API prop names (87c79b7)
- Discovery: Add constructor for external auth config and fix serialization bug (e3c8231)
- IBMWatsonJSONUtil: Add method to replace JSON keys in a model being serialized (b3fe6b5)
- Language Translator: Add constructor for external auth config and fix serialization bug (b0295b7)
- Natural Language Classifier: Add constructor for external auth config and fix serialization bug (1c11430)
- Natural Language Understanding: Add constructor for external auth config and fix serialization bug (befc99a)
- Personality Insights: Add constructor for external auth config and fix serialization bug (8d635f2)
- Replace property names as necessary when getting response back from API (9d1a5f4)
- Speech to Text: Add constructor for external auth config and fix serialization bug (3cc16fd)
- Text to Speech: Add constructor for external auth config and fix serialization bug (2ed7e7f)
- Tone Analyzer: Add constructor for external auth config and fix serialization bug (1af8d78)
- Visual Recognition v3: Add constructor for external auth config and fix serialization bug (a97436d)
- Visual Recognition v4: Add constructor for external auth config and fix serialization bug (fd54e14)
- Visual Recognition v4: Add newly generated service (fc497e9)
v4.4.5
v4.4.4
v4.4.3
v5.0.0-rc1
Breaking changes
There are some small breaking changes present, like some methods dropping a parameter or two or some parameters being renamed, but below are the big changes throughout the SDK.
Authentication methods
Authentication methods have changed to make things more extensible for the future. There are 5 authentication variants supplied in the SDK (shown below), and it's possible now to create your own authentication implementation if you need something specific by implementing the IBMWatsonAuthenticator
implementation.
Basic
You can authenticate with basic auth using the IBMWatsonBasicAuthenticator
. This allows you to pass in a username and password.
IBMWatsonAuthenticator auth = new IBMWatsonBasicAuthenticator("<username>", "<password>");
Bearer token
Use the IBMWatsonBearerTokenAuthenticator
. This one accepts just the bearer token.
IBMWatsonAuthenticator auth = new IBMWatsonBearerTokenAuthenticator("<bearer_token>");
Cloud Pak for Data
This class helps you authenticate with your services on (Cloud Pak for Data)[https://www.ibm.com/analytics/cloud-pak-for-data).
// constructor with required parameters
IBMWatsonAuthenticator authenticator = new IBMWatsonCloudPakForDataAuthenticator(
"<url>",
"<test_username>",
"<test_password>"
);
There's also another constructor to disable SSL verification or send request headers on the token exchange.
IAM
Like the IBMWatsonCloudPakForDataAuthenticator
, there's a basic constructor
IBMWatsonAuthenticator authenticator = new IBMWatsonIAMAuthenticator("<token>");
and another one to supply additional arguments like a particular token exchange URL, a client ID and secret, and the same options to disable SSL verification and send headers.
None
Finally, there's the IBMWatsonNoAuthAuthenticator
, which is pretty self-explanatory. Pass this when you don't need any authentication to happen.
Assistant service = new Assistant("2019-02-28", new IBMWatsonNoAuthAuthenticator());
More model builders
If you've used the SDK before, you're probably familiar with the use of the builder pattern across the board. With this release, we've tweaked the generation process to capture better which are models that are being constructed to be sent to the service. These are models we'd prefer to have builders, making it easier to put them together.
There are unfortunately a decent number of models which move to this pattern, but it's one we expect to use well into the future.