Skip to content

Commit 1ea4a2c

Browse files
authored
Merge pull request watson-developer-cloud#779 from watson-developer-cloud/regenerate-sdk-release-8
Regenerate sdk release 8
2 parents b9acff6 + d33349e commit 1ea4a2c

File tree

13 files changed

+799
-33
lines changed

13 files changed

+799
-33
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ node_js:
55
- 6
66
- 8
77
before_install:
8-
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_320e4a7e27b3_key
9-
-iv $encrypted_320e4a7e27b3_iv -in auth.js.enc -out test/resources/auth.js -d ||
8+
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_ac3aacad7ba8_key
9+
-iv $encrypted_ac3aacad7ba8_iv -in auth.js.enc -out test/resources/auth.js -d ||
1010
true'
1111
- npm install -g typescript
1212
script:
1313
- tsc
14-
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test-travis; fi'
15-
- 'if [ "${TRAVIS_PULL_REQUEST}" = "true" ]; then npm run test-unit; fi'
14+
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test-travis; fi
15+
- if [ "${TRAVIS_PULL_REQUEST}" = "true" ]; then npm run test-unit; fi
1616
- sh scripts/typedoc/generate_typedoc.sh
1717
after_success:
1818
- npm run report-coverage

README.md

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Node.js client library to use the Watson APIs.
2727
* [Questions](#questions)
2828
* [IBM Watson services](#ibm-watson-services)
2929
* [Authorization](#authorization)
30-
* [Assistant](#assistant)
30+
* [Assistant v2](#assistant-v2)
31+
* [Assistant v1](#assistant-v1)
3132
* [Discovery](#discovery)
3233
* [Language Translator v3](#language-translator-v3)
3334
* [Language Translator v2](#language-translator-v2)
@@ -221,6 +222,21 @@ var myInstance = new watson.WhateverServiceV1({
221222
});
222223
```
223224

225+
### Configuring the HTTP client
226+
227+
The HTTP client can be configured to disable SSL verification. Note that this has serious security implications - only do this if you really mean to! ⚠️
228+
229+
To do this, set `disable_ssl` to `true` in the service constructor, like below:
230+
231+
```
232+
const discovery = new DiscoveryV1({
233+
url: '<service_url>',
234+
version: '<version-date>',
235+
iam_apikey: '<iam_api_key>',
236+
disable_ssl: true, // this will disable SSL verification for any request made with this object
237+
});
238+
```
239+
224240
## Documentation
225241

226242
You can find links to the documentation at https://console.bluemix.net/developer/watson/documentation. Find the service that you're interested in, click **API reference**, and then select the **Node** tab.
@@ -279,7 +295,39 @@ function (err, token) {
279295
});
280296
```
281297

282-
### Assistant
298+
### Assistant v2
299+
300+
Use the [Assistant][conversation] service to determine the intent of a message.
301+
302+
Note: You must first create a workspace via IBM Cloud. See [the documentation](https://console.bluemix.net/docs/services/conversation/index.html#about) for details.
303+
304+
```js
305+
var AssistantV1 = require('watson-developer-cloud/assistant/v1');
306+
307+
var assistant = new AssistantV2({
308+
username: '<username>',
309+
password: '<password>',
310+
url: 'https://gateway.watsonplatform.net/assistant/api/',
311+
version: '2018-09-19'
312+
});
313+
314+
assistant.message(
315+
{
316+
input: { text: "What's the weather?" },
317+
assistant_id: '<assistant id>',
318+
session_id: '<session id>',
319+
},
320+
function(err, response) {
321+
if (err) {
322+
console.error(err);
323+
} else {
324+
console.log(JSON.stringify(response, null, 2));
325+
}
326+
}
327+
);
328+
```
329+
330+
### Assistant v1
283331

284332
Use the [Assistant][conversation] service to determine the intent of a message.
285333

assistant/v1.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3976,8 +3976,6 @@ namespace AssistantV1 {
39763976
nodes_visited?: string[];
39773977
/** An array of objects containing detailed diagnostic information about the nodes that were triggered during processing of the input message. Included only if **nodes_visited_details** is set to `true` in the message request. */
39783978
nodes_visited_details?: DialogNodeVisitedDetails[];
3979-
/** An array of objects describing any actions requested by the dialog node. */
3980-
actions?: DialogNodeAction[];
39813979
/** OutputData accepts additional properties. */
39823980
[propName: string]: any;
39833981
}

0 commit comments

Comments
 (0)