Skip to content

Commit cce2a39

Browse files
Update dependencies and use types from ibm-watson SDK (#195)
Update dependencies and use types from ibm-watson SDK
2 parents c48ff68 + 2cc95b8 commit cce2a39

File tree

8 files changed

+11256
-126
lines changed

8 files changed

+11256
-126
lines changed

.eslintrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ plugins:
1515
rules:
1616
no-console:
1717
- warn
18-
' @typescript-eslint/no-explicit-any':
19-
- warning
18+
'@typescript-eslint/no-explicit-any':
19+
- warn
2020
'@typescript-eslint/camelcase':
2121
- off
2222
prettier/prettier:

README.md

Lines changed: 140 additions & 88 deletions
Large diffs are not rendered by default.

lib/index.d.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,12 @@
1414
* limitations under the License.
1515
*/
1616
import Botkit = require('botkit');
17+
import AssistantV1 = require('ibm-watson/assistant/v1');
1718
import { MessageParams, MessageResponse } from 'ibm-watson/assistant/v1';
1819
import { Context } from 'ibm-watson/assistant/v1';
1920
import { BotkitMessage } from 'botkit';
20-
export interface WatsonMiddlewareConfig {
21-
version: string;
21+
export interface WatsonMiddlewareConfig extends AssistantV1.Options {
2222
workspace_id: string;
23-
url?: string;
24-
token?: string;
25-
headers?: {
26-
[index: string]: string;
27-
};
28-
use_unauthenticated?: boolean;
29-
username?: string;
30-
password?: string;
31-
iam_apikey?: string;
32-
iam_url?: string;
3323
minimum_confidence?: number;
3424
}
3525
/**

lib/index.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)