@telia-ace/conversational-hub-bot-provider 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@telia-ace/conversational-hub-bot-provider",
3
+ "version": "0.0.2",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ }
11
+ },
12
+ "dependencies": {
13
+ "@telia-ace/widget-conversation": "*",
14
+ "@webprovisions/platform": "^1.1.4",
15
+ "@emotion/react": "11.11.1",
16
+ "@telia-ace/knowledge-widget-core": "*",
17
+ "@telia-ace/widget-utilities": "*"
18
+ }
19
+ }
package/plugin.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Container } from '@webprovisions/platform';
2
+ /**
3
+ * Plugin for communicating with Webconnector API in Conversational Hub.
4
+ */
5
+ export declare const ConversationalHubPlugin: (container: Container) => Promise<void>;
6
+ export default ConversationalHubPlugin;
package/types.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ export type AgentResponse = {
2
+ language: string;
3
+ type: string;
4
+ payload: {
5
+ text: string;
6
+ };
7
+ };
8
+ export type AgentPrompt = {
9
+ value: string;
10
+ text: string;
11
+ url?: string;
12
+ type: 'button' | 'link';
13
+ };
14
+ export type Action = {
15
+ actionKey: string;
16
+ label: string;
17
+ url?: string;
18
+ };