fix(all): GB Apps now can talk to the kb.gbapp and ask for data.

This commit is contained in:
Rodrigo Rodriguez 2020-03-30 14:00:47 -03:00
parent 12741d50e7
commit 5bd4157782
6 changed files with 68 additions and 582 deletions

574
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "botlib",
"version": "1.4.0",
"version": "1.4.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -173,11 +173,6 @@
"integrity": "sha512-kmVtnxTuUuhCET669irqQmPAez4KFnFVKvpleVRyfC3g+SHD1hIkFZcWLim9BVcwUBLO59o8VZE4yGCmTif8Yw==",
"dev": true
},
"@types/caseless": {
"version": "0.12.1",
"resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.1.tgz",
"integrity": "sha512-FhlMa34NHp9K5MY1Uz8yb+ZvuX0pnvn3jScRSNAb75KHGB8d3rEU6hqMs3Z2vjuytcMfRg6c5CHMc3wtYyD2/A=="
},
"@types/chai": {
"version": "4.2.7",
"resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.2.7.tgz",
@ -214,27 +209,6 @@
"@types/node": "*"
}
},
"@types/filenamify": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@types/filenamify/-/filenamify-2.0.1.tgz",
"integrity": "sha512-QpmNRLMBSQtvd1eV8dodwiUCtSJRhg0EhV+9Xwpch1DhiXPh75qx6aRxVfHvzhQdPzrFJx9v+hpiC0FIVyPQOA=="
},
"@types/form-data": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.1.tgz",
"integrity": "sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ==",
"requires": {
"@types/node": "*"
}
},
"@types/is-stream": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@types/is-stream/-/is-stream-1.1.0.tgz",
"integrity": "sha512-jkZatu4QVbR60mpIzjINmtS1ZF4a/FqdTUTBeQDVOQ2PYyidtwFKr0B5G6ERukKwliq+7mIXvxyppwzG5EgRYg==",
"requires": {
"@types/node": "*"
}
},
"@types/jsonwebtoken": {
"version": "7.2.8",
"resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-7.2.8.tgz",
@ -266,25 +240,6 @@
"resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.28.tgz",
"integrity": "sha512-LMSOxMKNJ8tGqUVs8lSIT8RGo1XGWYada/ZU2QZcbcD6AW9futXDE99tfQA0K6DK60GXcwplsGGK5KABRmI5GA=="
},
"@types/node-fetch": {
"version": "1.6.9",
"resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-1.6.9.tgz",
"integrity": "sha512-n2r6WLoY7+uuPT7pnEtKJCmPUGyJ+cbyBR8Avnu4+m1nzz7DwBVuyIvvlBzCZ/nrpC7rIgb3D6pNavL7rFEa9g==",
"requires": {
"@types/node": "*"
}
},
"@types/request": {
"version": "2.48.0",
"resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.0.tgz",
"integrity": "sha512-KnfoOtqXKllSqfXSEvGTd8KDkNlpHs+PWr6I6XiEIWk/jckH3pNmWDXNFZyPkB9wApb8vzDq2wMByM/0GFSmXg==",
"requires": {
"@types/caseless": "*",
"@types/form-data": "*",
"@types/node": "*",
"@types/tough-cookie": "*"
}
},
"@types/sequelize": {
"version": "4.28.8",
"resolved": "https://registry.npmjs.org/@types/sequelize/-/sequelize-4.28.8.tgz",
@ -297,11 +252,6 @@
"@types/validator": "*"
}
},
"@types/tough-cookie": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.4.tgz",
"integrity": "sha512-Set5ZdrAaKI/qHdFlVMgm/GsAv/wkXhSTuZFkJ+JI7HK+wIkIlOaUXSXieIvJ0+OvGIqtREFoE+NHJtEq0gtEw=="
},
"@types/tunnel": {
"version": "0.0.0",
"resolved": "https://registry.npmjs.org/@types/tunnel/-/tunnel-0.0.0.tgz",
@ -310,14 +260,6 @@
"@types/node": "*"
}
},
"@types/uuid": {
"version": "3.4.4",
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-3.4.4.tgz",
"integrity": "sha512-tPIgT0GUmdJQNSHxp0X2jnpQfBSTfGxUMc/2CXBU2mnyTFVYVa2ojpoQ74w0U2yn2vw3jnC640+77lkFFpdVDw==",
"requires": {
"@types/node": "*"
}
},
"@types/validator": {
"version": "12.0.1",
"resolved": "https://registry.npmjs.org/@types/validator/-/validator-12.0.1.tgz",
@ -392,17 +334,6 @@
}
}
},
"ajv": {
"version": "5.5.2",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz",
"integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=",
"requires": {
"co": "^4.6.0",
"fast-deep-equal": "^1.0.0",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.3.0"
}
},
"ansi-colors": {
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz",
@ -476,14 +407,6 @@
"resolved": "https://registry.npmjs.org/async/-/async-3.1.0.tgz",
"integrity": "sha512-4vx/aaY6j/j3Lw3fbCHNWP0pPaTCew3F6F3hYyl/tHs/ndmV1q7NW9T5yuJ2XAGwdQrP+6Wu20x06U4APo/iQQ=="
},
"async-file": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/async-file/-/async-file-2.0.2.tgz",
"integrity": "sha1-Aq0HhWrDcX6DayCuxaTP4AxG3yM=",
"requires": {
"rimraf": "^2.5.2"
}
},
"asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
@ -619,14 +542,6 @@
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
"integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="
},
"boom": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz",
"integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=",
"requires": {
"hoek": "4.x.x"
}
},
"botbuilder": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/botbuilder/-/botbuilder-4.7.0.tgz",
@ -760,131 +675,6 @@
}
}
},
"botbuilder-choices": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botbuilder-choices/-/botbuilder-choices-4.0.0-preview1.2.tgz",
"integrity": "sha512-ULqQKFNh0kn9c3U681zdBT5MrO3Sc4Nakhl8LYRUUTgUZhYPyDJTUyCRueJ5/n78/bAzZWqDorbtIAFU7BuCtg==",
"requires": {
"@microsoft/recognizers-text-suite": "^1.0.0",
"@types/node": "^9.3.0",
"botbuilder": "4.0.0-preview1.2"
},
"dependencies": {
"@types/jsonwebtoken": {
"version": "7.2.5",
"resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-7.2.5.tgz",
"integrity": "sha512-8CIcK1Vzq4w5TJyJYkLVhqASmCo1FSO1XIPQM1qv+Xo2nnb9RoRHxx8pkIzSZ4Tm9r3V4ZyFbF/fBewNPdclwA==",
"requires": {
"@types/node": "*"
}
},
"base64url": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/base64url/-/base64url-2.0.0.tgz",
"integrity": "sha1-6sFuA+oUOO/5Qj1puqNiYu0fcLs="
},
"botbuilder": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botbuilder/-/botbuilder-4.0.0-preview1.2.tgz",
"integrity": "sha512-DDODRNzDXEnNpNSKDCVeKV5SnCTm9ZD6W3/2UaCDulQnFlXSWQd2M421ut4w9+qnzt+VIjJz/LyLkN4LxXqdvQ==",
"requires": {
"@types/filenamify": "^2.0.1",
"@types/node": "^9.3.0",
"async-file": "^2.0.2",
"botbuilder-core": "4.0.0-preview1.2",
"botbuilder-core-extensions": "4.0.0-preview1.2",
"botframework-connector": "4.0.0-preview1.2",
"filenamify": "^2.0.0",
"readline": "^1.3.0"
}
},
"botbuilder-core": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botbuilder-core/-/botbuilder-core-4.0.0-preview1.2.tgz",
"integrity": "sha512-3W8cT9ZdyrCocuNgqX6GBjXYhR9emggclZX7UIf6ZeVNImkQ/A9WmZzMtW6Fiqs+pFTnvaIzNRr0ira5oVVD1w==",
"requires": {
"@types/node": "^9.3.0",
"assert": "^1.4.1",
"botframework-schema": "4.0.0-preview1.2"
}
},
"botframework-connector": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botframework-connector/-/botframework-connector-4.0.0-preview1.2.tgz",
"integrity": "sha512-DhxVGpUPjI9l8YBgMGMGb3l7nN+jrvxVI9Xcc5DUYYn9VSp065NxnQFWBqBRDSvhUQSPofN00WcJymbwSbuYXA==",
"requires": {
"@types/jsonwebtoken": "7.2.5",
"@types/node": "^9.3.0",
"@types/request": "^2.47.0",
"base64url": "^2.0.0",
"botframework-schema": "4.0.0-preview1.2",
"jsonwebtoken": "8.0.1",
"ms-rest-js": "^0.2.5",
"request": "2.83.0",
"rsa-pem-from-mod-exp": "^0.8.4"
}
},
"botframework-schema": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botframework-schema/-/botframework-schema-4.0.0-preview1.2.tgz",
"integrity": "sha512-AVTUFV/v1elUid2KQCo9ToZrLXR/TF0aJwsPOINK5Lx00VkXcGN3nKZDQpGxAYfz4SUxyjVTPhwm59YaC2Mw4w==",
"requires": {
"@types/node": "^9.3.0"
}
},
"har-validator": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz",
"integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=",
"requires": {
"ajv": "^5.1.0",
"har-schema": "^2.0.0"
}
},
"oauth-sign": {
"version": "0.8.2",
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz",
"integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM="
},
"request": {
"version": "2.83.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz",
"integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==",
"requires": {
"aws-sign2": "~0.7.0",
"aws4": "^1.6.0",
"caseless": "~0.12.0",
"combined-stream": "~1.0.5",
"extend": "~3.0.1",
"forever-agent": "~0.6.1",
"form-data": "~2.3.1",
"har-validator": "~5.0.3",
"hawk": "~6.0.2",
"http-signature": "~1.2.0",
"is-typedarray": "~1.0.0",
"isstream": "~0.1.2",
"json-stringify-safe": "~5.0.1",
"mime-types": "~2.1.17",
"oauth-sign": "~0.8.2",
"performance-now": "^2.1.0",
"qs": "~6.5.1",
"safe-buffer": "^5.1.1",
"stringstream": "~0.0.5",
"tough-cookie": "~2.3.3",
"tunnel-agent": "^0.6.0",
"uuid": "^3.1.0"
}
},
"tough-cookie": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz",
"integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==",
"requires": {
"punycode": "^1.4.1"
}
}
}
},
"botbuilder-core": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/botbuilder-core/-/botbuilder-core-4.7.0.tgz",
@ -894,39 +684,6 @@
"botframework-schema": "4.7.0"
}
},
"botbuilder-core-extensions": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botbuilder-core-extensions/-/botbuilder-core-extensions-4.0.0-preview1.2.tgz",
"integrity": "sha512-GqX/nPv4lkUaJMvQNrVpODHMsYPkXkeAQuUpPjQby803POiJ1EysiVlEFzHnvDlqJDo3Sghwaqyo/YZ3+lmq6A==",
"requires": {
"@types/node": "^9.3.0",
"assert": "^1.4.1",
"async-file": "^2.0.2",
"botbuilder-core": "4.0.0-preview1.2",
"filenamify": "^2.0.0",
"rimraf": "^2.6.2"
},
"dependencies": {
"botbuilder-core": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botbuilder-core/-/botbuilder-core-4.0.0-preview1.2.tgz",
"integrity": "sha512-3W8cT9ZdyrCocuNgqX6GBjXYhR9emggclZX7UIf6ZeVNImkQ/A9WmZzMtW6Fiqs+pFTnvaIzNRr0ira5oVVD1w==",
"requires": {
"@types/node": "^9.3.0",
"assert": "^1.4.1",
"botframework-schema": "4.0.0-preview1.2"
}
},
"botframework-schema": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botframework-schema/-/botframework-schema-4.0.0-preview1.2.tgz",
"integrity": "sha512-AVTUFV/v1elUid2KQCo9ToZrLXR/TF0aJwsPOINK5Lx00VkXcGN3nKZDQpGxAYfz4SUxyjVTPhwm59YaC2Mw4w==",
"requires": {
"@types/node": "^9.3.0"
}
}
}
},
"botbuilder-dialogs": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/botbuilder-dialogs/-/botbuilder-dialogs-4.7.0.tgz",
@ -960,131 +717,6 @@
}
}
},
"botbuilder-prompts": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botbuilder-prompts/-/botbuilder-prompts-4.0.0-preview1.2.tgz",
"integrity": "sha512-ucYZjz5gqArXyB392otooPuxNAlENyFwcNBgHw42ey6PzAKi8zdz0zW12jUScMRsgUaZauyyJhO+D982j4/yjA==",
"requires": {
"@microsoft/recognizers-text-suite": "^1.0.0",
"botbuilder": "4.0.0-preview1.2",
"botbuilder-choices": "4.0.0-preview1.2"
},
"dependencies": {
"@types/jsonwebtoken": {
"version": "7.2.5",
"resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-7.2.5.tgz",
"integrity": "sha512-8CIcK1Vzq4w5TJyJYkLVhqASmCo1FSO1XIPQM1qv+Xo2nnb9RoRHxx8pkIzSZ4Tm9r3V4ZyFbF/fBewNPdclwA==",
"requires": {
"@types/node": "*"
}
},
"base64url": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/base64url/-/base64url-2.0.0.tgz",
"integrity": "sha1-6sFuA+oUOO/5Qj1puqNiYu0fcLs="
},
"botbuilder": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botbuilder/-/botbuilder-4.0.0-preview1.2.tgz",
"integrity": "sha512-DDODRNzDXEnNpNSKDCVeKV5SnCTm9ZD6W3/2UaCDulQnFlXSWQd2M421ut4w9+qnzt+VIjJz/LyLkN4LxXqdvQ==",
"requires": {
"@types/filenamify": "^2.0.1",
"@types/node": "^9.3.0",
"async-file": "^2.0.2",
"botbuilder-core": "4.0.0-preview1.2",
"botbuilder-core-extensions": "4.0.0-preview1.2",
"botframework-connector": "4.0.0-preview1.2",
"filenamify": "^2.0.0",
"readline": "^1.3.0"
}
},
"botbuilder-core": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botbuilder-core/-/botbuilder-core-4.0.0-preview1.2.tgz",
"integrity": "sha512-3W8cT9ZdyrCocuNgqX6GBjXYhR9emggclZX7UIf6ZeVNImkQ/A9WmZzMtW6Fiqs+pFTnvaIzNRr0ira5oVVD1w==",
"requires": {
"@types/node": "^9.3.0",
"assert": "^1.4.1",
"botframework-schema": "4.0.0-preview1.2"
}
},
"botframework-connector": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botframework-connector/-/botframework-connector-4.0.0-preview1.2.tgz",
"integrity": "sha512-DhxVGpUPjI9l8YBgMGMGb3l7nN+jrvxVI9Xcc5DUYYn9VSp065NxnQFWBqBRDSvhUQSPofN00WcJymbwSbuYXA==",
"requires": {
"@types/jsonwebtoken": "7.2.5",
"@types/node": "^9.3.0",
"@types/request": "^2.47.0",
"base64url": "^2.0.0",
"botframework-schema": "4.0.0-preview1.2",
"jsonwebtoken": "8.0.1",
"ms-rest-js": "^0.2.5",
"request": "2.83.0",
"rsa-pem-from-mod-exp": "^0.8.4"
}
},
"botframework-schema": {
"version": "4.0.0-preview1.2",
"resolved": "https://registry.npmjs.org/botframework-schema/-/botframework-schema-4.0.0-preview1.2.tgz",
"integrity": "sha512-AVTUFV/v1elUid2KQCo9ToZrLXR/TF0aJwsPOINK5Lx00VkXcGN3nKZDQpGxAYfz4SUxyjVTPhwm59YaC2Mw4w==",
"requires": {
"@types/node": "^9.3.0"
}
},
"har-validator": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz",
"integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=",
"requires": {
"ajv": "^5.1.0",
"har-schema": "^2.0.0"
}
},
"oauth-sign": {
"version": "0.8.2",
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz",
"integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM="
},
"request": {
"version": "2.83.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz",
"integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==",
"requires": {
"aws-sign2": "~0.7.0",
"aws4": "^1.6.0",
"caseless": "~0.12.0",
"combined-stream": "~1.0.5",
"extend": "~3.0.1",
"forever-agent": "~0.6.1",
"form-data": "~2.3.1",
"har-validator": "~5.0.3",
"hawk": "~6.0.2",
"http-signature": "~1.2.0",
"is-typedarray": "~1.0.0",
"isstream": "~0.1.2",
"json-stringify-safe": "~5.0.1",
"mime-types": "~2.1.17",
"oauth-sign": "~0.8.2",
"performance-now": "^2.1.0",
"qs": "~6.5.1",
"safe-buffer": "^5.1.1",
"stringstream": "~0.0.5",
"tough-cookie": "~2.3.3",
"tunnel-agent": "^0.6.0",
"uuid": "^3.1.0"
}
},
"tough-cookie": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz",
"integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==",
"requires": {
"punycode": "^1.4.1"
}
}
}
},
"botframework-connector": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/botframework-connector/-/botframework-connector-4.7.0.tgz",
@ -1272,11 +904,6 @@
"shimmer": "^1.1.0"
}
},
"co": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
"integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ="
},
"code-point-at": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
@ -1370,24 +997,6 @@
"which": "^1.2.9"
}
},
"cryptiles": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz",
"integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=",
"requires": {
"boom": "5.x.x"
},
"dependencies": {
"boom": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz",
"integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==",
"requires": {
"hoek": "4.x.x"
}
}
}
},
"cycle": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/cycle/-/cycle-1.0.3.tgz",
@ -1593,24 +1202,6 @@
"env-variable": "0.0.x"
}
},
"encoding": {
"version": "0.1.12",
"resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz",
"integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=",
"requires": {
"iconv-lite": "~0.4.13"
},
"dependencies": {
"iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"requires": {
"safer-buffer": ">= 2.1.2 < 3"
}
}
}
},
"end-of-stream": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
@ -1647,11 +1238,6 @@
"is-symbol": "^1.0.2"
}
},
"es6-denodeify": {
"version": "0.1.5",
"resolved": "https://registry.npmjs.org/es6-denodeify/-/es6-denodeify-0.1.5.tgz",
"integrity": "sha1-MdTV/pxVA+ElRgQ5MQ4WoqPznB8="
},
"escape-string-regexp": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
@ -1707,11 +1293,6 @@
"integrity": "sha1-Ys8SAjTGg3hdkCNIqADvPgzCC8A=",
"dev": true
},
"fast-deep-equal": {
"version": "1.1.0",
"resolved": "http://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz",
"integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ="
},
"fast-json-stable-stringify": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
@ -1727,58 +1308,11 @@
"resolved": "http://registry.npmjs.org/fecha/-/fecha-2.3.3.tgz",
"integrity": "sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg=="
},
"fetch-cookie": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-0.7.2.tgz",
"integrity": "sha512-Udm6ls1tV/pR9+EOjTYW2aGBadN03zOgVwu6grybxOg9ufACq7wE1HY/jh06DOykXH9FLYJC2RbUD3kJZcJBRg==",
"requires": {
"es6-denodeify": "^0.1.1",
"tough-cookie": "^2.3.1"
}
},
"fetch-ponyfill": {
"version": "github:amarzavery/fetch-ponyfill#136e6f8192bdb2aa0b7983f0b3b4361c357be9db",
"from": "github:amarzavery/fetch-ponyfill#master",
"requires": {
"fetch-cookie": "~0.6.0",
"node-fetch": "~1.7.1"
},
"dependencies": {
"fetch-cookie": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-0.6.0.tgz",
"integrity": "sha1-T+xOQIzAAH9sBOVTYYr0s97jf2k=",
"requires": {
"es6-denodeify": "^0.1.1",
"tough-cookie": "^2.3.1"
}
},
"node-fetch": {
"version": "1.7.3",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz",
"integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==",
"requires": {
"encoding": "^0.1.11",
"is-stream": "^1.0.1"
}
}
}
},
"filename-reserved-regex": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz",
"integrity": "sha1-q/c9+rc10EVECr/qLZHzieu/oik="
},
"filenamify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/filenamify/-/filenamify-2.1.0.tgz",
"integrity": "sha512-ICw7NTT6RsDp2rnYKVd8Fu4cr6ITzGy3+u4vUujPkabyaz+03F24NWEX7fs5fp+kBonlaqPH8fAO2NM+SXt/JA==",
"requires": {
"filename-reserved-regex": "^2.0.0",
"strip-outer": "^1.0.0",
"trim-repeated": "^1.0.0"
}
},
"find-up": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
@ -1987,17 +1521,6 @@
"safe-buffer": "^5.0.1"
}
},
"hawk": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz",
"integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==",
"requires": {
"boom": "4.x.x",
"cryptiles": "3.x.x",
"hoek": "4.x.x",
"sntp": "2.x.x"
}
},
"he": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
@ -2013,11 +1536,6 @@
"handlebars": "^4.5.3"
}
},
"hoek": {
"version": "4.2.1",
"resolved": "http://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz",
"integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA=="
},
"http-signature": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
@ -2178,11 +1696,6 @@
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
},
"json-schema-traverse": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz",
"integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A="
},
"json-stringify-safe": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
@ -2690,9 +2203,9 @@
"integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y="
},
"moment-timezone": {
"version": "0.5.27",
"resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.27.tgz",
"integrity": "sha512-EIKQs7h5sAsjhPCqN6ggx6cEbs94GK050254TIJySD1bzoM5JTYDwAU1IoVOeTOL6Gm27kYJ51/uuvq1kIlrbw==",
"version": "0.5.28",
"resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.28.tgz",
"integrity": "sha512-TDJkZvAyKIVWg5EtVqRzU97w0Rb0YVbfpqyjgu6GwXCAohVRqwZjf4fOzDE6p1Ch98Sro/8hQQi65WDXW5STPw==",
"requires": {
"moment": ">= 2.9.0"
}
@ -2752,33 +2265,6 @@
}
}
},
"ms-rest-js": {
"version": "0.2.8",
"resolved": "http://registry.npmjs.org/ms-rest-js/-/ms-rest-js-0.2.8.tgz",
"integrity": "sha512-KgiSsbJzKcPLx0Zaca5PEdGOwm8X4Np+aTukK6stMl2eAqSrHvncjteyeXi6v6O0ECLYeUWVbqcPJfpw1PjnZQ==",
"requires": {
"@types/form-data": "^2.2.1",
"@types/is-stream": "^1.1.0",
"@types/node": "^9.4.6",
"@types/node-fetch": "^1.6.7",
"@types/uuid": "^3.4.3",
"fetch-cookie": "^0.7.0",
"fetch-ponyfill": "github:amarzavery/fetch-ponyfill#136e6f8192bdb2aa0b7983f0b3b4361c357be9db",
"form-data": "^2.3.2",
"is-buffer": "^2.0.0",
"is-stream": "^1.1.0",
"moment": "^2.21.0",
"url-parse": "^1.2.0",
"uuid": "^3.2.1"
},
"dependencies": {
"is-buffer": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz",
"integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw=="
}
}
},
"neo-async": {
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz",
@ -3030,11 +2516,6 @@
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
"integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
},
"querystringify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.1.0.tgz",
"integrity": "sha512-sluvZZ1YiTLD5jsqZcDmFyV2EwToyXZBfpoVOmktMmW+VEnhgakFHnasVph65fOjGPTWN0Nw3+XQaSeMayr0kg=="
},
"readable-stream": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz",
@ -3048,11 +2529,6 @@
"util-deprecate": "~1.0.1"
}
},
"readline": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz",
"integrity": "sha1-xYDXfvLPyHUrEySYBg3JeTp6wBw="
},
"rechoir": {
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
@ -3128,14 +2604,6 @@
"any-promise": "^1.3.0"
}
},
"rimraf": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz",
"integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==",
"requires": {
"glob": "^7.0.5"
}
},
"rsa-pem-from-mod-exp": {
"version": "0.8.4",
"resolved": "https://registry.npmjs.org/rsa-pem-from-mod-exp/-/rsa-pem-from-mod-exp-0.8.4.tgz",
@ -3167,9 +2635,9 @@
"integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw=="
},
"sequelize": {
"version": "5.21.3",
"resolved": "https://registry.npmjs.org/sequelize/-/sequelize-5.21.3.tgz",
"integrity": "sha512-ptdeAxwTY0zbj7AK8m+SH3z52uHVrt/qmOTSIGo/kyfnSp3h5HeKlywkJf5GEk09kuRrPHfWARVSXH1W3IGU7g==",
"version": "5.21.5",
"resolved": "https://registry.npmjs.org/sequelize/-/sequelize-5.21.5.tgz",
"integrity": "sha512-n9hR5K4uQGmBGK/Y/iqewCeSFmKVsd0TRnh0tfoLoAkmXbKC4tpeK96RhKs7d+TTMtrJlgt2TNLVBaAxEwC4iw==",
"requires": {
"bluebird": "^3.5.0",
"cls-bluebird": "^2.1.0",
@ -3207,9 +2675,9 @@
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
},
"uuid": {
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz",
"integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ=="
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
},
"validator": {
"version": "10.11.0",
@ -3279,14 +2747,6 @@
"is-arrayish": "^0.3.1"
}
},
"sntp": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz",
"integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==",
"requires": {
"hoek": "4.x.x"
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
@ -3345,11 +2805,6 @@
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
},
"stringstream": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.6.tgz",
"integrity": "sha512-87GEBAkegbBcweToUrdzf3eLhWNg06FJTebl4BVJz/JgWy8CvEr9dRtX5qWphiynMSQlxxi+QqN0z5T32SLlhA=="
},
"strip-ansi": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
@ -3581,15 +3036,6 @@
"resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz",
"integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA=="
},
"url-parse": {
"version": "1.4.3",
"resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.3.tgz",
"integrity": "sha512-rh+KuAW36YKo0vClhQzLLveoj8FwPJNu65xLb7Mrt+eZht0IPT0IXgSv8gcMegZ6NvjJUALf6Mf25POlMwD1Fw==",
"requires": {
"querystringify": "^2.0.0",
"requires-port": "^1.0.0"
}
},
"util": {
"version": "0.10.3",
"resolved": "http://registry.npmjs.org/util/-/util-0.10.3.tgz",

View file

@ -1,6 +1,6 @@
{
"name": "botlib",
"version": "1.4.0",
"version": "1.4.2",
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp) and Libray packages (.gblib)",
"main": "dist/index.js",
"types": "dist/index",
@ -8,7 +8,8 @@
"contributors": [
"Rodrigo Rodriguez <me@rodrigorodriguez.com>",
"João Antonio Ferreira <joao.parana@gmail.com>",
"Jorge Ramos <jramos@pobox.com>"
"Jorge Ramos <jramos@pobox.com>",
"PH <ph.an@outlook.com>"
],
"license": "AGPL-3.0",
"repository": {
@ -21,35 +22,33 @@
"build-lib": "tsc"
},
"dependencies": {
"async": "^3.1.0",
"botbuilder": "^4.7.0",
"botbuilder-ai": "^4.7.0",
"botbuilder-azure": "^4.7.0",
"botbuilder-choices": "4.0.0-preview1.2",
"botbuilder-dialogs": "^4.7.0",
"botbuilder-prompts": "4.0.0-preview1.2",
"async": "3.1.0",
"botbuilder": "4.7.0",
"botbuilder-ai": "4.7.0",
"botbuilder-azure": "4.7.0",
"botbuilder-dialogs": "4.7.0",
"chrono-node": "1.3.11",
"dotenv-extended": "^2.7.1",
"dotenv-extended": "2.7.1",
"iconv-lite": "0.5.0",
"ms": "2.1.2",
"pragmatismo-io-framework": "1.0.20",
"reflect-metadata": "0.1.13",
"sequelize": "^5.21.3",
"sequelize-typescript": "^1.1.0",
"underscore": "^1.9.1",
"sequelize": "5.21.5",
"sequelize-typescript": "1.1.0",
"underscore": "1.9.1",
"wait-until": "0.0.2",
"winston": "3.2.1"
},
"devDependencies": {
"@types/chai": "^4.2.7",
"@types/chai": "4.2.7",
"@types/mocha": "5.2.7",
"@types/sequelize": "^4.28.8",
"@types/sequelize": "4.28.8",
"@types/winston": "2.4.4",
"chai": "4.2.0",
"mocha": "6.2.2",
"mocha-typescript": "1.1.17",
"ts-node": "^8.5.4",
"typedoc": "^0.15.6",
"typescript": "^3.7.4"
"ts-node": "8.5.4",
"typedoc": "0.15.6",
"typescript": "3.7.4"
}
}

View file

@ -38,6 +38,7 @@ import { IGBConversationalService, IGBPackage } from ".";
import { AzureText } from "pragmatismo-io-framework";
import { IGBAdminService } from "./IGBAdminService";
import { IGBDeployer } from "./IGBDeployer";
import { IGBKBService } from "./IGBKBService";
/** Minimal services for bot. */
@ -47,6 +48,7 @@ export class GBMinInstance {
instance: IGBInstance;
core: IGBCoreService;
conversationalService: IGBConversationalService;
kbService: IGBKBService;
adminService: IGBAdminService;
deployService: IGBDeployer;
textServices: AzureText;

View file

@ -44,4 +44,5 @@ export interface IGBConversationalService {
routeNLP(step: GBDialogStep, min: GBMinInstance, text: string): Promise<boolean>;
getCurrentLanguage(step: GBDialogStep);
getNewMobileCode();
sendMarkdownToMobile(min: GBMinInstance, step: GBDialogStep, mobile: string, text: string);
}

37
src/IGBKBService.ts Normal file
View file

@ -0,0 +1,37 @@
/*****************************************************************************\
| ( )_ _ |
| _ _ _ __ _ _ __ ___ ___ _ _ | ,_)(_) ___ ___ _ |
| ( '_`\ ( '__)/'_` ) /'_ `\/' _ ` _ `\ /'_` )| | | |/',__)/' _ `\ /'_`\ |
| | (_) )| | ( (_| |( (_) || ( ) ( ) |( (_| || |_ | |\__, \| (˅) |( (_) ) |
| | ,__/'(_) `\__,_)`\__ |(_) (_) (_)`\__,_)`\__)(_)(____/(_) (_)`\___/' |
| | | ( )_) | |
| (_) \___/' |
| |
| General Bots Copyright (c) Pragmatismo.io. All rights reserved. |
| Licensed under the AGPL-3.0. |
| |
| According to our dual licensing model, this program can be used either |
| under the terms of the GNU Affero General Public License, version 3, |
| or under a proprietary license. |
| |
| The texts of the GNU Affero General Public License with an additional |
| permission and of our proprietary license can be found at and |
| in the LICENSE file you have received along with this program. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY, without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU Affero General Public License for more details. |
| |
| "General Bots" is a registered trademark of Pragmatismo.io. |
| The licensing of the program under the AGPLv3 does not imply a |
| trademark license. Therefore any rights, title and interest in |
| our trademarks remain entirely with us. |
| |
\*****************************************************************************/
"use strict";
export interface IGBKBService {
getAnswerTextByMediaName(instanceId: number, answerMediaName: string): Promise<string>;
}

View file

@ -34,6 +34,7 @@
export { Sequelize } from "sequelize-typescript";
export { IGBConversationalService } from "./IGBConversationalService";
export { IGBKBService } from "./IGBKBService";
export { IGBCoreService } from "./IGBCoreService";
export { IGBDialog } from "./IGBDialog";
export { IGBPackage } from "./IGBPackage";