Skip to content

Releases: watson-developer-cloud/salesforce-sdk

v5.3.0

03 Mar 23:04
Compare
Choose a tag to compare

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

17 Jan 20:56
Compare
Choose a tag to compare

5.2.1 (2020-01-17)

Bug Fixes

  • Natural Language Understanding: Add back model parameter in CategoriesOptions, which was mistak (2319ada)

v5.2.0

17 Jan 02:58
Compare
Choose a tag to compare

5.2.0 (2020-01-17)

Bug Fixes

  • Discovery v1: Ensure required parameters are sent to avoid service errors (51a9917)
  • Discovery v2: Ensure required parameters are sent to avoid service errors (e71019e)

Features

  • Assistant v2: Add xSystem property to MessageContextSkill model (9f53194)
  • Speech to Text: Add endOfPhraseSilenceTime and splitTranscriptAtPhraseEnd params to recognizeO (5bce0ab)

v5.1.0

27 Nov 17:21
Compare
Choose a tag to compare

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

04 Oct 21:19
Compare
Choose a tag to compare

5.0.0 (2019-10-04)

:shipit: :shipit: :shipit:
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

12 Sep 15:51
Compare
Choose a tag to compare

4.4.5 (2019-09-12)

Bug Fixes

  • Allow for sending files along with other non-file form data (65789c3)

v4.4.4

09 Sep 21:45
Compare
Choose a tag to compare

4.4.4 (2019-09-09)

Bug Fixes

  • Get test coverage of all classes to >= 75%

v4.4.3

31 Aug 00:06
Compare
Choose a tag to compare

4.4.3 (2019-08-30)

Bug Fixes

  • Fix problem with sending threshold parameter in IBMVisualRecognitionV1's classify() method

v5.0.0-rc1

29 Aug 19:08
Compare
Choose a tag to compare
v5.0.0-rc1 Pre-release
Pre-release

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.

v4.4.2

29 Aug 04:29
Compare
Choose a tag to compare

4.4.2 (2019-08-29)

Bug Fixes

  • Raise code coverage over 75% threshold (3e3a4a7)