From 371e4f6585539c4eb95e3891d725107f606e42df Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 11:27:24 -0500 Subject: [PATCH 01/18] fix for #2003 --- packages/botbuilder-adapter-web/src/web_adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/botbuilder-adapter-web/src/web_adapter.ts b/packages/botbuilder-adapter-web/src/web_adapter.ts index c525e7599..de4c522ab 100644 --- a/packages/botbuilder-adapter-web/src/web_adapter.ts +++ b/packages/botbuilder-adapter-web/src/web_adapter.ts @@ -157,7 +157,7 @@ export class WebAdapter extends BotAdapter { return ws.terminate(); } ws.isAlive = false; - ws.ping('', false, true); + ws.ping('', false, () =>{}); }); }, 30000); } From 881f34c7aca4339f503913ca5fe5aa22d377ec4e Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 11:27:45 -0500 Subject: [PATCH 02/18] updates to dependencies --- changelog.md | 7 + package-lock.json | 2447 +++++++++-------- package.json | 8 +- .../botbuilder-adapter-facebook/package.json | 6 +- .../botbuilder-adapter-hangouts/package.json | 6 +- .../package-lock.json | 244 +- .../botbuilder-adapter-slack/package.json | 6 +- .../package.json | 6 +- packages/botbuilder-adapter-web/CHANGELOG.md | 5 + packages/botbuilder-adapter-web/package.json | 8 +- .../botbuilder-adapter-webex/CHANGELOG.md | 6 + .../botbuilder-adapter-webex/package.json | 6 +- packages/botkit-plugin-cms/package.json | 6 +- packages/botkit/package.json | 6 +- 14 files changed, 1404 insertions(+), 1363 deletions(-) diff --git a/changelog.md b/changelog.md index 1bb0da9f3..a836bd261 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,13 @@ [Want to contribute? Read our guide!](https://github.com/howdyai/botkit/blob/master/CONTRIBUTING.md) +# 4.10.0 + +* Update dependencies to [Bot Framework 4.10] +* Update some dev dependencies like lerna, eslint, etc. + +* FIX: Adjust mechanism for handling templates in channelData to avoid data loss. Thanks [@ashitikov](https://github.com/ashitikov) for the [pull request](https://github.com/howdyai/botkit/pull/1979) + # 4.9.0 * Update dependencies to [Bot Framework 4.9](https://github.com/microsoft/botbuilder-js/releases/tag/4.9.0) diff --git a/package-lock.json b/package-lock.json index 6ec3257fb..4532b59c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,280 +4,270 @@ "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", - "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", + "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", "dev": true, "requires": { - "@babel/highlight": "^7.0.0" + "@babel/highlight": "^7.10.4" } }, "@babel/core": { - "version": "7.9.6", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.9.6.tgz", - "integrity": "sha512-nD3deLvbsApbHAHttzIssYqgb883yU/d9roe4RZymBCDaZryMJDbptVpEpeQuRh4BJ+SYI8le9YGxKvFEvl1Wg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.9.6", - "@babel/helper-module-transforms": "^7.9.0", - "@babel/helpers": "^7.9.6", - "@babel/parser": "^7.9.6", - "@babel/template": "^7.8.6", - "@babel/traverse": "^7.9.6", - "@babel/types": "^7.9.6", + "version": "7.11.4", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.11.4.tgz", + "integrity": "sha512-5deljj5HlqRXN+5oJTY7Zs37iH3z3b++KjiKtIsJy1NrjOOVSEaJHEetLBhyu0aQOSNNZ/0IuEAan9GzRuDXHg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/generator": "^7.11.4", + "@babel/helper-module-transforms": "^7.11.0", + "@babel/helpers": "^7.10.4", + "@babel/parser": "^7.11.4", + "@babel/template": "^7.10.4", + "@babel/traverse": "^7.11.0", + "@babel/types": "^7.11.0", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.1", "json5": "^2.1.2", - "lodash": "^4.17.13", + "lodash": "^4.17.19", "resolve": "^1.3.2", "semver": "^5.4.1", "source-map": "^0.5.0" }, "dependencies": { - "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", - "dev": true, - "requires": { - "@babel/highlight": "^7.8.3" - } + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true }, - "@babel/highlight": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", - "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.9.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true } } }, "@babel/generator": { - "version": "7.9.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.9.6.tgz", - "integrity": "sha512-+htwWKJbH2bL72HRluF8zumBxzuX0ZZUFl3JLNyoUjM/Ho8wnVpPXM6aUz8cfKDqQ/h7zHqKt4xzJteUosckqQ==", + "version": "7.11.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.11.4.tgz", + "integrity": "sha512-Rn26vueFx0eOoz7iifCN2UHT6rGtnkSGWSoDRIy8jZN3B91PzeSULbswfLoOWuTuAcNwpG/mxy+uCTDnZ9Mp1g==", "dev": true, "requires": { - "@babel/types": "^7.9.6", + "@babel/types": "^7.11.0", "jsesc": "^2.5.1", - "lodash": "^4.17.13", "source-map": "^0.5.0" } }, "@babel/helper-function-name": { - "version": "7.9.5", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.9.5.tgz", - "integrity": "sha512-JVcQZeXM59Cd1qanDUxv9fgJpt3NeKUaqBqUEvfmQ+BCOKq2xUgaWZW2hr0dkbyJgezYuplEoh5knmrnS68efw==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz", + "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.9.5" + "@babel/helper-get-function-arity": "^7.10.4", + "@babel/template": "^7.10.4", + "@babel/types": "^7.10.4" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz", + "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.4" } }, "@babel/helper-member-expression-to-functions": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz", - "integrity": "sha512-fO4Egq88utkQFjbPrSHGmGLFqmrshs11d46WI+WZDESt7Wu7wN2G2Iu+NMMZJFDOVRHAMIkB5SNh30NtwCA7RA==", + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.11.0.tgz", + "integrity": "sha512-JbFlKHFntRV5qKw3YC0CvQnDZ4XMwgzzBbld7Ly4Mj4cbFy3KywcR8NtNctRToMWJOVvLINJv525Gd6wwVEx/Q==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.11.0" } }, "@babel/helper-module-imports": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", - "integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.4.tgz", + "integrity": "sha512-nEQJHqYavI217oD9+s5MUBzk6x1IlvoS9WTPfgG43CbMEeStE0v+r+TucWdx8KFGowPGvyOkDT9+7DHedIDnVw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.4" } }, "@babel/helper-module-transforms": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.9.0.tgz", - "integrity": "sha512-0FvKyu0gpPfIQ8EkxlrAydOWROdHpBmiCiRwLkUiBGhCUPRRbVD2/tm3sFr/c/GWFrQ/ffutGUAnx7V0FzT2wA==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.8.3", - "@babel/helper-replace-supers": "^7.8.6", - "@babel/helper-simple-access": "^7.8.3", - "@babel/helper-split-export-declaration": "^7.8.3", - "@babel/template": "^7.8.6", - "@babel/types": "^7.9.0", - "lodash": "^4.17.13" + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.11.0.tgz", + "integrity": "sha512-02EVu8COMuTRO1TAzdMtpBPbe6aQ1w/8fePD2YgQmxZU4gpNWaL9gK3Jp7dxlkUlUCJOTaSeA+Hrm1BRQwqIhg==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.10.4", + "@babel/helper-replace-supers": "^7.10.4", + "@babel/helper-simple-access": "^7.10.4", + "@babel/helper-split-export-declaration": "^7.11.0", + "@babel/template": "^7.10.4", + "@babel/types": "^7.11.0", + "lodash": "^4.17.19" + }, + "dependencies": { + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true + } } }, "@babel/helper-optimise-call-expression": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz", - "integrity": "sha512-Kag20n86cbO2AvHca6EJsvqAd82gc6VMGule4HwebwMlwkpXuVqrNRj6CkCV2sKxgi9MyAUnZVnZ6lJ1/vKhHQ==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.4.tgz", + "integrity": "sha512-n3UGKY4VXwXThEiKrgRAoVPBMqeoPgHVqiHZOanAJCG9nQUL2pLRQirUzl0ioKclHGpGqRgIOkgcIJaIWLpygg==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.4" } }, "@babel/helper-replace-supers": { - "version": "7.9.6", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.9.6.tgz", - "integrity": "sha512-qX+chbxkbArLyCImk3bWV+jB5gTNU/rsze+JlcF6Nf8tVTigPJSI1o1oBow/9Resa1yehUO9lIipsmu9oG4RzA==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.4.tgz", + "integrity": "sha512-sPxZfFXocEymYTdVK1UNmFPBN+Hv5mJkLPsYWwGBxZAxaWfFu+xqp7b6qWD0yjNuNL2VKc6L5M18tOXUP7NU0A==", "dev": true, "requires": { - "@babel/helper-member-expression-to-functions": "^7.8.3", - "@babel/helper-optimise-call-expression": "^7.8.3", - "@babel/traverse": "^7.9.6", - "@babel/types": "^7.9.6" + "@babel/helper-member-expression-to-functions": "^7.10.4", + "@babel/helper-optimise-call-expression": "^7.10.4", + "@babel/traverse": "^7.10.4", + "@babel/types": "^7.10.4" } }, "@babel/helper-simple-access": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz", - "integrity": "sha512-VNGUDjx5cCWg4vvCTR8qQ7YJYZ+HBjxOgXEl7ounz+4Sn7+LMD3CFrCTEU6/qXKbA2nKg21CwhhBzO0RpRbdCw==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.4.tgz", + "integrity": "sha512-0fMy72ej/VEvF8ULmX6yb5MtHG4uH4Dbd6I/aHDb/JVg0bbivwt9Wg+h3uMvX+QSFtwr5MeItvazbrc4jtRAXw==", "dev": true, "requires": { - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/template": "^7.10.4", + "@babel/types": "^7.10.4" } }, "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz", + "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.11.0" } }, "@babel/helper-validator-identifier": { - "version": "7.9.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", - "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", + "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", "dev": true }, "@babel/helpers": { - "version": "7.9.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.9.6.tgz", - "integrity": "sha512-tI4bUbldloLcHWoRUMAj4g1bF313M/o6fBKhIsb3QnGVPwRm9JsNf/gqMkQ7zjqReABiffPV6RWj7hEglID5Iw==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.4.tgz", + "integrity": "sha512-L2gX/XeUONeEbI78dXSrJzGdz4GQ+ZTA/aazfUsFaWjSe95kiCuOZ5HsXvkiw3iwF+mFHSRUfJU8t6YavocdXA==", "dev": true, "requires": { - "@babel/template": "^7.8.3", - "@babel/traverse": "^7.9.6", - "@babel/types": "^7.9.6" + "@babel/template": "^7.10.4", + "@babel/traverse": "^7.10.4", + "@babel/types": "^7.10.4" } }, "@babel/highlight": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", - "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", + "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.4", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" + }, + "dependencies": { + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + } } }, "@babel/parser": { - "version": "7.9.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.6.tgz", - "integrity": "sha512-AoeIEJn8vt+d/6+PXDRPaksYhnlbMIiejioBZvvMQsOjW/JYK6k/0dKnvvP3EhK5GfMBWDPtrxRtegWdAcdq9Q==", + "version": "7.11.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.4.tgz", + "integrity": "sha512-MggwidiH+E9j5Sh8pbrX5sJvMcsqS5o+7iB42M9/k0CD63MjYbdP4nhSh7uB5wnv2/RVzTZFTxzF/kIa5mrCqA==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz", + "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", - "dev": true, - "requires": { - "@babel/highlight": "^7.8.3" - } - }, - "@babel/highlight": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", - "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.9.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - } + "@babel/code-frame": "^7.10.4", + "@babel/parser": "^7.10.4", + "@babel/types": "^7.10.4" } }, "@babel/traverse": { - "version": "7.9.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.9.6.tgz", - "integrity": "sha512-b3rAHSjbxy6VEAvlxM8OV/0X4XrG72zoxme6q1MOoe2vd0bEc+TwayhuC1+Dfgqh1QEG+pj7atQqvUprHIccsg==", + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.11.0.tgz", + "integrity": "sha512-ZB2V+LskoWKNpMq6E5UUCrjtDUh5IOTAyIl0dTjIEoXum/iKWkoIEKIRDnUucO6f+2FzNkE0oD4RLKoPIufDtg==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.9.6", - "@babel/helper-function-name": "^7.9.5", - "@babel/helper-split-export-declaration": "^7.8.3", - "@babel/parser": "^7.9.6", - "@babel/types": "^7.9.6", + "@babel/code-frame": "^7.10.4", + "@babel/generator": "^7.11.0", + "@babel/helper-function-name": "^7.10.4", + "@babel/helper-split-export-declaration": "^7.11.0", + "@babel/parser": "^7.11.0", + "@babel/types": "^7.11.0", "debug": "^4.1.0", "globals": "^11.1.0", - "lodash": "^4.17.13" + "lodash": "^4.17.19" }, "dependencies": { - "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", - "dev": true, - "requires": { - "@babel/highlight": "^7.8.3" - } + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true }, - "@babel/highlight": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", - "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.9.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true } } }, "@babel/types": { - "version": "7.9.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", - "integrity": "sha512-qxXzvBO//jO9ZnoasKF1uJzHd2+M6Q2ZPIVfnFps8JJvXy0ZBbwbNOmE6SGIY5XOY6d1Bo5lb9d9RJ8nv3WSeA==", + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.0.tgz", + "integrity": "sha512-O53yME4ZZI0jO1EVGtF1ePGl0LHirG4P1ibcD80XyzZcKhcMFeCXmh4Xb1ifGBIV233Qg12x4rBfQgA+tmOukA==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.9.5", - "lodash": "^4.17.13", + "@babel/helper-validator-identifier": "^7.10.4", + "lodash": "^4.17.19", "to-fast-properties": "^2.0.0" + }, + "dependencies": { + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true + } } }, "@evocateur/libnpmaccess": { @@ -389,6 +379,15 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } } } }, @@ -550,6 +549,19 @@ "chalk": "^2.3.1", "execa": "^1.0.0", "strong-log-transformer": "^2.0.0" + }, + "dependencies": { + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + } } }, "@lerna/clean": { @@ -590,6 +602,19 @@ "chalk": "^2.3.1", "figgy-pudding": "^3.5.1", "npmlog": "^4.1.2" + }, + "dependencies": { + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + } } }, "@lerna/collect-updates": { @@ -624,9 +649,9 @@ } }, "@lerna/conventional-commits": { - "version": "3.18.5", - "resolved": "https://registry.npmjs.org/@lerna/conventional-commits/-/conventional-commits-3.18.5.tgz", - "integrity": "sha512-qcvXIEJ3qSgalxXnQ7Yxp5H9Ta5TVyai6vEor6AAEHc20WiO7UIdbLDCxBtiiHMdGdpH85dTYlsoYUwsCJu3HQ==", + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@lerna/conventional-commits/-/conventional-commits-3.22.0.tgz", + "integrity": "sha512-z4ZZk1e8Mhz7+IS8NxHr64wyklHctCJyWpJKEZZPJiLFJ8yKto/x38O80R10pIzC0rr8Sy/OsjSH4bl0TbbgqA==", "dev": true, "requires": { "@lerna/validation-error": "3.13.0", @@ -651,9 +676,9 @@ } }, "@lerna/create": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/@lerna/create/-/create-3.21.0.tgz", - "integrity": "sha512-cRIopzKzE2vXJPmsiwCDMWo4Ct+KTmX3nvvkQLDoQNrrRK7w+3KQT3iiorbj1koD95RsVQA7mS2haWok9SIv0g==", + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@lerna/create/-/create-3.22.0.tgz", + "integrity": "sha512-MdiQQzCcB4E9fBF1TyMOaAEz9lUjIHp1Ju9H7f3lXze5JK6Fl5NYkouAvsLgY6YSIhXMY8AHW2zzXeBDY4yWkw==", "dev": true, "requires": { "@evocateur/pacote": "^9.6.3", @@ -777,13 +802,13 @@ } }, "@lerna/github-client": { - "version": "3.16.5", - "resolved": "https://registry.npmjs.org/@lerna/github-client/-/github-client-3.16.5.tgz", - "integrity": "sha512-rHQdn8Dv/CJrO3VouOP66zAcJzrHsm+wFuZ4uGAai2At2NkgKH+tpNhQy2H1PSC0Ezj9LxvdaHYrUzULqVK5Hw==", + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@lerna/github-client/-/github-client-3.22.0.tgz", + "integrity": "sha512-O/GwPW+Gzr3Eb5bk+nTzTJ3uv+jh5jGho9BOqKlajXaOkMYGBELEAqV5+uARNGWZFvYAiF4PgqHb6aCUu7XdXg==", "dev": true, "requires": { "@lerna/child-process": "3.16.5", - "@octokit/plugin-enterprise-rest": "^3.6.1", + "@octokit/plugin-enterprise-rest": "^6.0.1", "@octokit/rest": "^16.28.4", "git-url-parse": "^11.1.2", "npmlog": "^4.1.2" @@ -825,9 +850,9 @@ } }, "@lerna/import": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/@lerna/import/-/import-3.21.0.tgz", - "integrity": "sha512-aISkL4XD0Dqf5asDaOZWu65jgj8fWUhuQseZWuQe3UfHxav69fTS2YLIngUfencaOSZVOcVCom28YCzp61YDxw==", + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@lerna/import/-/import-3.22.0.tgz", + "integrity": "sha512-uWOlexasM5XR6tXi4YehODtH9Y3OZrFht3mGUFFT3OIl2s+V85xIGFfqFGMTipMPAGb2oF1UBLL48kR43hRsOg==", "dev": true, "requires": { "@lerna/child-process": "3.16.5", @@ -898,6 +923,19 @@ "@lerna/query-graph": "3.18.5", "chalk": "^2.3.1", "columnify": "^1.5.4" + }, + "dependencies": { + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + } } }, "@lerna/log-packed": { @@ -1105,9 +1143,9 @@ } }, "@lerna/publish": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/@lerna/publish/-/publish-3.21.0.tgz", - "integrity": "sha512-JZ+ehZB9UCQ9nqH8Ld/Yqc/If++aK/7XIubkrB9sQ5hf2GeIbmI/BrJpMgLW/e9T5bKrUBZPUvoUN3daVipA5A==", + "version": "3.22.1", + "resolved": "https://registry.npmjs.org/@lerna/publish/-/publish-3.22.1.tgz", + "integrity": "sha512-PG9CM9HUYDreb1FbJwFg90TCBQooGjj+n/pb3gw/eH5mEDq0p8wKdLFe0qkiqUkm/Ub5C8DbVFertIo0Vd0zcw==", "dev": true, "requires": { "@evocateur/libnpmaccess": "^3.1.2", @@ -1131,7 +1169,7 @@ "@lerna/run-lifecycle": "3.16.2", "@lerna/run-topologically": "3.18.5", "@lerna/validation-error": "3.13.0", - "@lerna/version": "3.21.0", + "@lerna/version": "3.22.1", "figgy-pudding": "^3.5.1", "fs-extra": "^8.1.0", "npm-package-arg": "^6.1.0", @@ -1275,17 +1313,17 @@ } }, "@lerna/version": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/@lerna/version/-/version-3.21.0.tgz", - "integrity": "sha512-nIT3u43fCNj6uSMN1dRxFnF4GhmIiOEqSTkGSjrMU+8kHKwzOqS/6X6TOzklBmCyEZOpF/fLlGqH3BZHnwLDzQ==", + "version": "3.22.1", + "resolved": "https://registry.npmjs.org/@lerna/version/-/version-3.22.1.tgz", + "integrity": "sha512-PSGt/K1hVqreAFoi3zjD0VEDupQ2WZVlVIwesrE5GbrL2BjXowjCsTDPqblahDUPy0hp6h7E2kG855yLTp62+g==", "dev": true, "requires": { "@lerna/check-working-tree": "3.16.5", "@lerna/child-process": "3.16.5", "@lerna/collect-updates": "3.20.0", "@lerna/command": "3.21.0", - "@lerna/conventional-commits": "3.18.5", - "@lerna/github-client": "3.16.5", + "@lerna/conventional-commits": "3.22.0", + "@lerna/github-client": "3.22.0", "@lerna/gitlab-client": "3.15.0", "@lerna/output": "3.13.0", "@lerna/prerelease-id-from-version": "3.16.0", @@ -1308,6 +1346,17 @@ "write-json-file": "^3.2.0" }, "dependencies": { + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -1343,55 +1392,43 @@ "dev": true }, "@octokit/auth-token": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.0.tgz", - "integrity": "sha512-eoOVMjILna7FVQf96iWc3+ZtE/ZT6y8ob8ZzcqKY1ibSQCnu4O/B7pJvzMx5cyZ/RjAff6DAdEb0O0Cjcxidkg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.2.tgz", + "integrity": "sha512-jE/lE/IKIz2v1+/P0u4fJqv0kYwXOTujKemJMFr6FeopsxlIK3+wKDCJGnysg81XID5TgZQbIfuJ5J0lnTiuyQ==", "dev": true, "requires": { - "@octokit/types": "^2.0.0" + "@octokit/types": "^5.0.0" } }, "@octokit/endpoint": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.1.tgz", - "integrity": "sha512-pOPHaSz57SFT/m3R5P8MUu4wLPszokn5pXcB/pzavLTQf2jbU+6iayTvzaY6/BiotuRS0qyEUkx3QglT4U958A==", + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.5.tgz", + "integrity": "sha512-70K5u6zd45ItOny6aHQAsea8HHQjlQq85yqOMe+Aj8dkhN2qSJ9T+Q3YjUjEYfPRBcuUWNgMn62DQnP/4LAIiQ==", "dev": true, "requires": { - "@octokit/types": "^2.11.1", - "is-plain-object": "^3.0.0", - "universal-user-agent": "^5.0.0" + "@octokit/types": "^5.0.0", + "is-plain-object": "^4.0.0", + "universal-user-agent": "^6.0.0" }, "dependencies": { "is-plain-object": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz", - "integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==", - "dev": true, - "requires": { - "isobject": "^4.0.0" - } - }, - "isobject": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", - "integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-4.1.1.tgz", + "integrity": "sha512-5Aw8LLVsDlZsETVMhoMXzqsXwQqr/0vlnBYzIXJbYo2F4yYlhLHs+Ez7Bod7IIQKWkJbJfxrWD7pA1Dw1TKrwA==", "dev": true }, "universal-user-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-5.0.0.tgz", - "integrity": "sha512-B5TPtzZleXyPrUMKCpEHFmVhMN6EhmJYjG5PQna9s7mXeSqGTLap4OpqLl5FCEFUI3UBmllkETwKf/db66Y54Q==", - "dev": true, - "requires": { - "os-name": "^3.1.0" - } + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "dev": true } } }, "@octokit/plugin-enterprise-rest": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/@octokit/plugin-enterprise-rest/-/plugin-enterprise-rest-3.6.2.tgz", - "integrity": "sha512-3wF5eueS5OHQYuAEudkpN+xVeUsg8vYEMMenEzLphUZ7PRZ8OJtDcsreL3ad9zxXmBbaFWzLmFcdob5CLyZftA==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-enterprise-rest/-/plugin-enterprise-rest-6.0.1.tgz", + "integrity": "sha512-93uGjlhUD+iNg1iWhUENAtJata6w5nE+V4urXOAlIXdco6xNZtUSfYY8dzp3Udy74aqO/B5UZL80x/YMa5PKRw==", "dev": true }, "@octokit/plugin-paginate-rest": { @@ -1401,6 +1438,17 @@ "dev": true, "requires": { "@octokit/types": "^2.0.1" + }, + "dependencies": { + "@octokit/types": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", + "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", + "dev": true, + "requires": { + "@types/node": ">= 8" + } + } } }, "@octokit/plugin-request-log": { @@ -1417,58 +1465,57 @@ "requires": { "@octokit/types": "^2.0.1", "deprecation": "^2.3.1" + }, + "dependencies": { + "@octokit/types": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", + "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", + "dev": true, + "requires": { + "@types/node": ">= 8" + } + } } }, "@octokit/request": { - "version": "5.4.2", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.2.tgz", - "integrity": "sha512-zKdnGuQ2TQ2vFk9VU8awFT4+EYf92Z/v3OlzRaSh4RIP0H6cvW1BFPXq4XYvNez+TPQjqN+0uSkCYnMFFhcFrw==", + "version": "5.4.7", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.7.tgz", + "integrity": "sha512-FN22xUDP0i0uF38YMbOfx6TotpcENP5W8yJM1e/LieGXn6IoRxDMnBf7tx5RKSW4xuUZ/1P04NFZy5iY3Rax1A==", "dev": true, "requires": { "@octokit/endpoint": "^6.0.1", "@octokit/request-error": "^2.0.0", - "@octokit/types": "^2.11.1", + "@octokit/types": "^5.0.0", "deprecation": "^2.0.0", - "is-plain-object": "^3.0.0", + "is-plain-object": "^4.0.0", "node-fetch": "^2.3.0", "once": "^1.4.0", - "universal-user-agent": "^5.0.0" + "universal-user-agent": "^6.0.0" }, "dependencies": { "@octokit/request-error": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.0.tgz", - "integrity": "sha512-rtYicB4Absc60rUv74Rjpzek84UbVHGHJRu4fNVlZ1mCcyUPPuzFfG9Rn6sjHrd95DEsmjSt1Axlc699ZlbDkw==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.2.tgz", + "integrity": "sha512-2BrmnvVSV1MXQvEkrb9zwzP0wXFNbPJij922kYBTLIlIafukrGOb+ABBT2+c6wZiuyWDH1K1zmjGQ0toN/wMWw==", "dev": true, "requires": { - "@octokit/types": "^2.0.0", + "@octokit/types": "^5.0.1", "deprecation": "^2.0.0", "once": "^1.4.0" } }, "is-plain-object": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz", - "integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==", - "dev": true, - "requires": { - "isobject": "^4.0.0" - } - }, - "isobject": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", - "integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-4.1.1.tgz", + "integrity": "sha512-5Aw8LLVsDlZsETVMhoMXzqsXwQqr/0vlnBYzIXJbYo2F4yYlhLHs+Ez7Bod7IIQKWkJbJfxrWD7pA1Dw1TKrwA==", "dev": true }, "universal-user-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-5.0.0.tgz", - "integrity": "sha512-B5TPtzZleXyPrUMKCpEHFmVhMN6EhmJYjG5PQna9s7mXeSqGTLap4OpqLl5FCEFUI3UBmllkETwKf/db66Y54Q==", - "dev": true, - "requires": { - "os-name": "^3.1.0" - } + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "dev": true } } }, @@ -1481,12 +1528,23 @@ "@octokit/types": "^2.0.0", "deprecation": "^2.0.0", "once": "^1.4.0" + }, + "dependencies": { + "@octokit/types": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", + "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", + "dev": true, + "requires": { + "@types/node": ">= 8" + } + } } }, "@octokit/rest": { - "version": "16.43.1", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz", - "integrity": "sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==", + "version": "16.43.2", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.43.2.tgz", + "integrity": "sha512-ngDBevLbBTFfrHZeiS7SAMAZ6ssuVmXuya+F/7RaVvlysgGa1JKJkKWY+jV6TCJYcW0OALfJ7nTIGXcBXzycfQ==", "dev": true, "requires": { "@octokit/auth-token": "^2.4.0", @@ -1508,9 +1566,9 @@ } }, "@octokit/types": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", - "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-5.4.1.tgz", + "integrity": "sha512-OlMlSySBJoJ6uozkr/i03nO5dlYQyE05vmQNZhAh9MyO4DPBP88QlwsDVLmVjIMFssvIZB6WO0ctIGMRG+xsJQ==", "dev": true, "requires": { "@types/node": ">= 8" @@ -1528,19 +1586,12 @@ "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==", "dev": true }, - "@types/events": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", - "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==", - "dev": true - }, "@types/glob": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", - "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-SEYeGAIQIQX8NN6LDKprLjbrd5dARM5EXsd8GI/A5l0apYI1fGMWgPHSe4ZKL4eozlAyI+doUE9XbYS4xCkQ1w==", "dev": true, "requires": { - "@types/events": "*", "@types/minimatch": "*", "@types/node": "*" } @@ -1564,9 +1615,9 @@ "dev": true }, "@types/node": { - "version": "14.0.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.4.tgz", - "integrity": "sha512-k3NqigXWRzQZVBDS5D1U70A5E8Qk4Kh+Ha/x4M8Bt9pF0X05eggfnC9+63Usc9Q928hRUIpIhTQaXsZwZBl4Ew==", + "version": "14.6.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.6.0.tgz", + "integrity": "sha512-mikldZQitV94akrc4sCcSjtJfsTKt4p+e/s0AGscVA6XArQ9kFclP+ZiYUMnq987rc6QlYxXv/EivqlfSLxpKA==", "dev": true }, "@types/normalize-package-data": { @@ -1684,15 +1735,15 @@ "dev": true }, "acorn": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz", - "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz", + "integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==", "dev": true }, "acorn-jsx": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.1.0.tgz", - "integrity": "sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.2.0.tgz", + "integrity": "sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ==", "dev": true }, "agent-base": { @@ -1724,21 +1775,21 @@ } }, "ajv": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", - "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", + "version": "6.12.4", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.4.tgz", + "integrity": "sha512-eienB2c9qVQs2KWexhkrdMLVDoIQCz5KSeLxwg9Lzk4DOfBtIK9PQwwufcsn1jjGuf9WZmqPMbGxOzfcuphJCQ==", "dev": true, "requires": { - "fast-deep-equal": "^2.0.1", + "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "ansi-colors": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", "dev": true }, "ansi-escapes": { @@ -1748,9 +1799,9 @@ "dev": true }, "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", "dev": true }, "ansi-styles": { @@ -1875,6 +1926,18 @@ "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", "dev": true }, + "array.prototype.map": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array.prototype.map/-/array.prototype.map-1.0.2.tgz", + "integrity": "sha512-Az3OYxgsa1g7xDYp86l0nnN4bcmuEITGe1rbdEBVkrqkzMgDcbdQ2R7r41pNzti+4NMces3H8gMmuioZUilLgw==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.4" + } + }, "arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", @@ -1939,9 +2002,9 @@ "dev": true }, "aws4": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz", - "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz", + "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==", "dev": true }, "balanced-match": { @@ -2021,9 +2084,9 @@ "dev": true }, "binary-extensions": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz", - "integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", + "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==", "dev": true }, "bluebird": { @@ -2250,14 +2313,55 @@ "dev": true }, "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "dev": true, + "requires": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, "chardet": { @@ -2267,19 +2371,19 @@ "dev": true }, "chokidar": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz", - "integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.1.tgz", + "integrity": "sha512-4QYCEWOcK3OJrxwvyyAOxFuhpvOVCYkr33LPfFNBjAD/w3sEzWsp2BUOkI4l9bHvWioAd0rc6NlHUOEaWkTeqg==", "dev": true, "requires": { "anymatch": "~3.1.1", "braces": "~3.0.2", - "fsevents": "~2.1.1", + "fsevents": "~2.1.2", "glob-parent": "~5.1.0", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", - "readdirp": "~3.2.0" + "readdirp": "~3.3.0" }, "dependencies": { "braces": { @@ -2368,9 +2472,9 @@ } }, "cli-width": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", - "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", + "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==", "dev": true }, "cliui": { @@ -2390,17 +2494,6 @@ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, "strip-ansi": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", @@ -2468,6 +2561,23 @@ "requires": { "strip-ansi": "^3.0.0", "wcwidth": "^1.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } } }, "combined-stream": { @@ -2479,13 +2589,6 @@ "delayed-stream": "~1.0.0" } }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true, - "optional": true - }, "commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", @@ -2493,23 +2596,29 @@ "dev": true }, "compare-func": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.4.tgz", - "integrity": "sha512-sq2sWtrqKPkEXAC8tEJA1+BqAH9GbFkGBtUOqrUX57VSfwp8xyktctk+uLoRy5eccTdxzDcVIztlYDpKs3Jv1Q==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", + "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", "dev": true, "requires": { "array-ify": "^1.0.0", - "dot-prop": "^3.0.0" + "dot-prop": "^5.1.0" }, "dependencies": { "dot-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", - "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz", + "integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==", "dev": true, "requires": { - "is-obj": "^1.0.0" + "is-obj": "^2.0.0" } + }, + "is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "dev": true } } }, @@ -2554,12 +2663,12 @@ "dev": true }, "conventional-changelog-angular": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.10.tgz", - "integrity": "sha512-k7RPPRs0vp8+BtPsM9uDxRl6KcgqtCJmzRD1wRtgqmhQ96g8ifBGo9O/TZBG23jqlXS/rg8BKRDELxfnQQGiaA==", + "version": "5.0.11", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.11.tgz", + "integrity": "sha512-nSLypht/1yEflhuTogC03i7DX7sOrXGsRn14g131Potqi6cbGbGEE9PSDEHKldabB6N76HiSyw9Ph+kLmC04Qw==", "dev": true, "requires": { - "compare-func": "^1.3.1", + "compare-func": "^2.0.0", "q": "^1.5.1" } }, @@ -2585,11 +2694,12 @@ }, "dependencies": { "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz", + "integrity": "sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==", "dev": true, "requires": { + "inherits": "^2.0.4", "readable-stream": "2 || 3" } } @@ -2602,12 +2712,12 @@ "dev": true }, "conventional-changelog-writer": { - "version": "4.0.16", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.16.tgz", - "integrity": "sha512-jmU1sDJDZpm/dkuFxBeRXvyNcJQeKhGtVcFFkwTphUAzyYWcwz2j36Wcv+Mv2hU3tpvLMkysOPXJTLO55AUrYQ==", + "version": "4.0.17", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.17.tgz", + "integrity": "sha512-IKQuK3bib/n032KWaSb8YlBFds+aLmzENtnKtxJy3+HqDq5kohu3g/UdNbIHeJWygfnEbZjnCKFxAW0y7ArZAw==", "dev": true, "requires": { - "compare-func": "^1.3.1", + "compare-func": "^2.0.0", "conventional-commits-filter": "^2.0.6", "dateformat": "^3.0.0", "handlebars": "^4.7.6", @@ -2626,11 +2736,12 @@ "dev": true }, "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz", + "integrity": "sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==", "dev": true, "requires": { + "inherits": "^2.0.4", "readable-stream": "2 || 3" } } @@ -2662,11 +2773,12 @@ }, "dependencies": { "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz", + "integrity": "sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==", "dev": true, "requires": { + "inherits": "^2.0.4", "readable-stream": "2 || 3" } } @@ -2746,12 +2858,6 @@ "trim-newlines": "^2.0.0" } }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, "minimist-options": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", @@ -2877,16 +2983,14 @@ } }, "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" } }, "currently-unhandled": { @@ -3096,9 +3200,9 @@ } }, "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true }, "dir-glob": { @@ -3120,18 +3224,18 @@ } }, "dot-prop": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", - "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.1.tgz", + "integrity": "sha512-l0p4+mIuJIua0mhxGoh4a+iNL9bmeK5DvnSVQa6T0OhrVmaEa1XScX5Etc673FePCJOArq/4Pa2cLGODUWTPOQ==", "dev": true, "requires": { "is-obj": "^1.0.0" } }, "duplexer": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", - "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", "dev": true }, "duplexify": { @@ -3163,12 +3267,12 @@ "dev": true }, "encoding": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", - "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", + "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", "dev": true, "requires": { - "iconv-lite": "~0.4.13" + "iconv-lite": "^0.6.2" } }, "end-of-stream": { @@ -3180,6 +3284,15 @@ "once": "^1.4.0" } }, + "enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "dev": true, + "requires": { + "ansi-colors": "^4.1.1" + } + }, "env-paths": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.0.tgz", @@ -3187,9 +3300,9 @@ "dev": true }, "envinfo": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.5.1.tgz", - "integrity": "sha512-hQBkDf2iO4Nv0CNHpCuSBeaSrveU6nThVxFGTrq/eDlV716UQk09zChaJae4mZRsos1x4YLY2TaH3LHUae3ZmQ==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.7.2.tgz", + "integrity": "sha512-k3Eh5bKuQnZjm49/L7H4cHzs2FlL5QjbTB3JrPxoTI8aJG7hVMe4uKyJxSYH4ahseby2waUwk5OaKX/nAsaYgg==", "dev": true }, "err-code": { @@ -3208,33 +3321,62 @@ } }, "es-abstract": { - "version": "1.17.4", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.4.tgz", - "integrity": "sha512-Ae3um/gb8F0mui/jPL+QiqmglkUsaQf7FwBEHYIFkztkneosu9imhqHpBzQ3h1vit8t5iQ74t6PEVvphBZiuiQ==", + "version": "1.17.6", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.6.tgz", + "integrity": "sha512-Fr89bON3WFyUi5EvAeI48QTWX0AyekGgLA8H+c+7fbfCkJwRWRMLd8CQedNEyJuoYYhmtEqY92pgte1FAhBlhw==", "dev": true, "requires": { "es-to-primitive": "^1.2.1", "function-bind": "^1.1.1", "has": "^1.0.3", "has-symbols": "^1.0.1", - "is-callable": "^1.1.5", - "is-regex": "^1.0.5", + "is-callable": "^1.2.0", + "is-regex": "^1.1.0", "object-inspect": "^1.7.0", "object-keys": "^1.1.1", "object.assign": "^4.1.0", - "string.prototype.trimleft": "^2.1.1", - "string.prototype.trimright": "^2.1.1" + "string.prototype.trimend": "^1.0.1", + "string.prototype.trimstart": "^1.0.1" } }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "es-array-method-boxes-properly": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", + "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", + "dev": true + }, + "es-get-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.0.tgz", + "integrity": "sha512-UfrmHuWQlNMTs35e1ypnvikg6jCz3SK8v8ImvmDsh36fCVUR1MqoFDiyn0/k52C8NqO3YsO8Oe0azeesNuqSsQ==", "dev": true, "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "es-abstract": "^1.17.4", + "has-symbols": "^1.0.1", + "is-arguments": "^1.0.4", + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-string": "^1.0.5", + "isarray": "^2.0.5" + }, + "dependencies": { + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + } + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" } }, "es6-error": { @@ -3265,22 +3407,23 @@ "dev": true }, "eslint": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", - "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.7.0.tgz", + "integrity": "sha512-1KUxLzos0ZVsyL81PnRN335nDtQ8/vZUD6uMtWbF+5zDtjKcsklIi78XoE0MVL93QvWTu+E5y44VyyCsOMBrIg==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "ajv": "^6.10.0", - "chalk": "^2.1.0", - "cross-spawn": "^6.0.5", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", "debug": "^4.0.1", "doctrine": "^3.0.0", - "eslint-scope": "^5.0.0", - "eslint-utils": "^1.4.3", - "eslint-visitor-keys": "^1.1.0", - "espree": "^6.1.2", - "esquery": "^1.0.1", + "enquirer": "^2.3.5", + "eslint-scope": "^5.1.0", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^1.3.0", + "espree": "^7.2.0", + "esquery": "^1.2.0", "esutils": "^2.0.2", "file-entry-cache": "^5.0.1", "functional-red-black-tree": "^1.0.1", @@ -3289,190 +3432,53 @@ "ignore": "^4.0.6", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", - "inquirer": "^7.0.0", "is-glob": "^4.0.0", "js-yaml": "^3.13.1", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.3.0", - "lodash": "^4.17.14", + "levn": "^0.4.1", + "lodash": "^4.17.19", "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", "natural-compare": "^1.4.0", - "optionator": "^0.8.3", + "optionator": "^0.9.1", "progress": "^2.0.0", - "regexpp": "^2.0.1", - "semver": "^6.1.2", - "strip-ansi": "^5.2.0", - "strip-json-comments": "^3.0.1", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", "table": "^5.2.3", "text-table": "^0.2.0", "v8-compile-cache": "^2.0.3" }, "dependencies": { - "ansi-escapes": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.0.tgz", - "integrity": "sha512-EiYhwo0v255HUL6eDyuLrXEkTi7WwVCLAw+SeOQ7M7qdun1z1pum4DEm/nuqIVbPvi9RPPc9k9LbyBv6H0DwVg==", - "dev": true, - "requires": { - "type-fest": "^0.8.1" - } - }, - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "requires": { - "restore-cursor": "^3.1.0" - } - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "figures": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.1.0.tgz", - "integrity": "sha512-ravh8VRXqHuMvZt/d8GblBeqDMkdJMBdv/2KntFH+ra5MXkO7nxNKpzQ3n6QD/2da1kH0aWmNISdvhM7gl2gVg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, - "globals": { - "version": "12.3.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", - "integrity": "sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==", - "dev": true, - "requires": { - "type-fest": "^0.8.1" - } - }, - "inquirer": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.4.tgz", - "integrity": "sha512-Bu5Td5+j11sCkqfqmUTiwv+tWisMtP0L7Q8WrqA2C/BbBhy1YTdFrvjjlrKq8oagA/tLQBski2Gcx/Sqyi2qSQ==", - "dev": true, - "requires": { - "ansi-escapes": "^4.2.1", - "chalk": "^2.4.2", - "cli-cursor": "^3.1.0", - "cli-width": "^2.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.15", - "mute-stream": "0.0.8", - "run-async": "^2.2.0", - "rxjs": "^6.5.3", - "string-width": "^4.1.0", - "strip-ansi": "^5.1.0", - "through": "^2.3.6" - } - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true - }, - "onetime": { + "eslint-scope": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", - "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.0.tgz", + "integrity": "sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==", "dev": true, "requires": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" } }, - "rxjs": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.4.tgz", - "integrity": "sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==", + "eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", "dev": true, "requires": { - "tslib": "^1.9.0" + "eslint-visitor-keys": "^1.1.0" } }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", "dev": true }, - "string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - } - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - } - } - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", "dev": true } } @@ -3503,14 +3509,22 @@ "dev": true }, "espree": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-6.1.2.tgz", - "integrity": "sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.2.0.tgz", + "integrity": "sha512-H+cQ3+3JYRMEIOl87e7QdHX70ocly5iW4+dttuR8iYSPr/hXKFb+7dBsZ7+u1adC4VrnPlTkv0+OwuPnDop19g==", "dev": true, "requires": { - "acorn": "^7.1.0", - "acorn-jsx": "^5.1.0", - "eslint-visitor-keys": "^1.1.0" + "acorn": "^7.3.1", + "acorn-jsx": "^5.2.0", + "eslint-visitor-keys": "^1.3.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + } } }, "esprima": { @@ -3520,12 +3534,20 @@ "dev": true }, "esquery": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", - "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz", + "integrity": "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==", "dev": true, "requires": { - "estraverse": "^4.0.0" + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } } }, "esrecurse": { @@ -3544,9 +3566,9 @@ "dev": true }, "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, "eventemitter3": { @@ -3568,6 +3590,57 @@ "p-finally": "^1.0.0", "signal-exit": "^3.0.0", "strip-eof": "^1.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } } }, "expand-brackets": { @@ -3656,6 +3729,17 @@ "chardet": "^0.7.0", "iconv-lite": "^0.4.24", "tmp": "^0.0.33" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } } }, "extglob": { @@ -3730,9 +3814,9 @@ "dev": true }, "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, "fast-glob": { @@ -3773,9 +3857,9 @@ } }, "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", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, "fast-levenshtein": { @@ -3940,9 +4024,9 @@ } }, "flatted": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", - "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", + "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", "dev": true }, "flush-write-stream": { @@ -3969,49 +4053,6 @@ "requires": { "cross-spawn": "^7.0.0", "signal-exit": "^3.0.2" - }, - "dependencies": { - "cross-spawn": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.2.tgz", - "integrity": "sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } } }, "forever-agent": { @@ -4051,9 +4092,9 @@ } }, "fromentries": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.2.0.tgz", - "integrity": "sha512-33X7H/wdfO99GdRLLgkjUrD4geAFdq/Uv0kl3HD4da6HDixd2GUg8Mw7dahLCV9r/EARkmtYBB6Tch4EEokFTQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.2.1.tgz", + "integrity": "sha512-Xu2Qh8yqYuDhQGOhD5iJGninErSfI9A3FrriD3tjUgV5VbJFeH8vfgZ9HnC6jWN80QDVNQK5vmxRAmEAp7Mevw==", "dev": true }, "fs-extra": { @@ -4127,6 +4168,43 @@ "string-width": "^1.0.1", "strip-ansi": "^3.0.1", "wide-align": "^1.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } } }, "genfun": { @@ -4238,12 +4316,6 @@ "trim-newlines": "^1.0.0" } }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, "parse-json": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", @@ -4431,12 +4503,6 @@ "trim-newlines": "^2.0.0" } }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, "minimist-options": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", @@ -4551,12 +4617,6 @@ "trim-newlines": "^2.0.0" } }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, "minimist-options": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", @@ -4604,9 +4664,9 @@ } }, "git-up": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/git-up/-/git-up-4.0.1.tgz", - "integrity": "sha512-LFTZZrBlrCrGCG07/dm1aCjjpL1z9L3+5aEeI9SBhAqSc+kiA9Or1bgZhQFNppJX6h/f5McrvJt1mQXTFm6Qrw==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/git-up/-/git-up-4.0.2.tgz", + "integrity": "sha512-kbuvus1dWQB2sSW4cbfTeGpCMd8ge9jx9RKnhXhuJ7tnvT+NIrTVfYZxjtflZddQYcmdOTlkAcjmx7bor+15AQ==", "dev": true, "requires": { "is-ssh": "^1.3.0", @@ -4614,9 +4674,9 @@ } }, "git-url-parse": { - "version": "11.1.2", - "resolved": "https://registry.npmjs.org/git-url-parse/-/git-url-parse-11.1.2.tgz", - "integrity": "sha512-gZeLVGY8QVKMIkckncX+iCq2/L8PlwncvDFKiWkBn9EtCfYDbliRTTp6qzyQ1VMdITUfq7293zDzfpjdiGASSQ==", + "version": "11.1.3", + "resolved": "https://registry.npmjs.org/git-url-parse/-/git-url-parse-11.1.3.tgz", + "integrity": "sha512-GPsfwticcu52WQ+eHp0IYkAyaOASgYdtsQDIt4rUp6GbiNt1P9ddrh3O0kQB0eD4UJZszVqNT3+9Zwcg40fywA==", "dev": true, "requires": { "git-up": "^4.0.0" @@ -4632,9 +4692,9 @@ } }, "glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -4646,9 +4706,9 @@ } }, "glob-parent": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz", - "integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", + "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", "dev": true, "requires": { "is-glob": "^4.0.1" @@ -4661,10 +4721,13 @@ "dev": true }, "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", + "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "dev": true, + "requires": { + "type-fest": "^0.8.1" + } }, "globby": { "version": "9.2.0", @@ -4683,9 +4746,9 @@ } }, "graceful-fs": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", - "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", "dev": true }, "growl": { @@ -4707,12 +4770,6 @@ "wordwrap": "^1.0.0" }, "dependencies": { - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -4728,12 +4785,12 @@ "dev": true }, "har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", "dev": true, "requires": { - "ajv": "^6.5.5", + "ajv": "^6.12.3", "har-schema": "^2.0.0" } }, @@ -4817,12 +4874,6 @@ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", "dev": true - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true } } }, @@ -4919,12 +4970,12 @@ } }, "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.2.tgz", + "integrity": "sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ==", "dev": true, "requires": { - "safer-buffer": ">= 2.1.2 < 3" + "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "iferr": { @@ -5022,6 +5073,14 @@ "semver": "2.x || 3.x || 4 || 5", "validate-npm-package-license": "^3.0.1", "validate-npm-package-name": "^3.0.0" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } } }, "inquirer": { @@ -5051,6 +5110,17 @@ "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", @@ -5117,6 +5187,12 @@ } } }, + "is-arguments": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.0.4.tgz", + "integrity": "sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA==", + "dev": true + }, "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", @@ -5139,9 +5215,9 @@ "dev": true }, "is-callable": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", - "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", "dev": true }, "is-ci": { @@ -5237,6 +5313,12 @@ "is-extglob": "^2.1.1" } }, + "is-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.1.tgz", + "integrity": "sha512-T/S49scO8plUiAOA2DBTBG3JHpn1yiw0kRp6dgiZ0v2/6twi5eiB0rHtHFH9ZIrvlWc6+4O+m4zg5+Z833aXgw==", + "dev": true + }, "is-number": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", @@ -5278,25 +5360,25 @@ "isobject": "^3.0.1" } }, - "is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", - "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", - "dev": true - }, "is-regex": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", - "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz", + "integrity": "sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg==", "dev": true, "requires": { - "has": "^1.0.3" + "has-symbols": "^1.0.1" } }, + "is-set": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.1.tgz", + "integrity": "sha512-eJEzOtVyenDs1TMzSQ3kU3K+E0GUS9sno+F0OBT97xsgcJsF9nXMBtkT9/kut5JEpM7oL7X/0qxR17K3mcwIAA==", + "dev": true + }, "is-ssh": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.1.tgz", - "integrity": "sha512-0eRIASHZt1E68/ixClI8bp2YK2wmBPVWEismTs6M+M099jKgrzl/3E976zIbImSIob48N2/XGe9y7ZiYdImSlg==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.2.tgz", + "integrity": "sha512-elEw0/0c2UscLrNG+OAorbP539E3rhliKPg+hDMWN9VwrDXfYK+4PBEykDPfxlYYtQvl84TascnQyobfQLHEhQ==", "dev": true, "requires": { "protocols": "^1.1.0" @@ -5308,6 +5390,12 @@ "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "dev": true }, + "is-string": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", + "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==", + "dev": true + }, "is-symbol": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", @@ -5418,17 +5506,6 @@ "uuid": "^3.3.3" }, "dependencies": { - "cross-spawn": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.2.tgz", - "integrity": "sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -5447,12 +5524,6 @@ "aggregate-error": "^3.0.0" } }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, "rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -5467,30 +5538,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } } } }, @@ -5566,6 +5613,22 @@ "istanbul-lib-report": "^3.0.0" } }, + "iterate-iterator": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/iterate-iterator/-/iterate-iterator-1.0.1.tgz", + "integrity": "sha512-3Q6tudGN05kbkDQDI4CqjaBf4qf85w6W6GnuZDtUVYwKgtC1q8yxYX7CZed7N+tLzQqS6roujWvszf13T+n9aw==", + "dev": true + }, + "iterate-value": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/iterate-value/-/iterate-value-1.0.2.tgz", + "integrity": "sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==", + "dev": true, + "requires": { + "es-get-iterator": "^1.0.2", + "iterate-iterator": "^1.0.1" + } + }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -5573,9 +5636,9 @@ "dev": true }, "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", + "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", "dev": true, "requires": { "argparse": "^1.0.7", @@ -5600,6 +5663,12 @@ "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", "dev": true }, + "json-parse-even-better-errors": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.0.tgz", + "integrity": "sha512-o3aP+RsWDJZayj1SbHNQAI8x0v3T3SKiGoZlNYfbUP1S3omJQ6i9CnqADqkSPaOAxwua4/1YWx5CM7oiChJt2Q==", + "dev": true + }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", @@ -5631,14 +5700,6 @@ "dev": true, "requires": { "minimist": "^1.2.5" - }, - "dependencies": { - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - } } }, "jsonfile": { @@ -5675,9 +5736,9 @@ "dev": true }, "lerna": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/lerna/-/lerna-3.21.0.tgz", - "integrity": "sha512-ux8yOwQEgIXOZVUfq+T8nVzPymL19vlIoPbysOP3YA4hcjKlqQIlsjI/1ugBe6b4MF7W4iV5vS3gH9cGqBBc1A==", + "version": "3.22.1", + "resolved": "https://registry.npmjs.org/lerna/-/lerna-3.22.1.tgz", + "integrity": "sha512-vk1lfVRFm+UuEFA7wkLKeSF7Iz13W+N/vFd48aW2yuS7Kv0RbNm2/qcDPV863056LMfkRlsEe+QYOw3palj5Lg==", "dev": true, "requires": { "@lerna/add": "3.21.0", @@ -5685,29 +5746,29 @@ "@lerna/changed": "3.21.0", "@lerna/clean": "3.21.0", "@lerna/cli": "3.18.5", - "@lerna/create": "3.21.0", + "@lerna/create": "3.22.0", "@lerna/diff": "3.21.0", "@lerna/exec": "3.21.0", - "@lerna/import": "3.21.0", + "@lerna/import": "3.22.0", "@lerna/info": "3.21.0", "@lerna/init": "3.21.0", "@lerna/link": "3.21.0", "@lerna/list": "3.21.0", - "@lerna/publish": "3.21.0", + "@lerna/publish": "3.22.1", "@lerna/run": "3.21.0", - "@lerna/version": "3.21.0", + "@lerna/version": "3.22.1", "import-local": "^2.0.0", "npmlog": "^4.1.2" } }, "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" } }, "lines-and-columns": { @@ -5727,6 +5788,14 @@ "pify": "^4.0.1", "strip-bom": "^3.0.0", "type-fest": "^0.3.0" + }, + "dependencies": { + "type-fest": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz", + "integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==", + "dev": true + } } }, "locate-path": { @@ -5740,9 +5809,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", "dev": true }, "lodash._reinterpolate": { @@ -5819,6 +5888,19 @@ "dev": true, "requires": { "chalk": "^2.4.2" + }, + "dependencies": { + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + } } }, "loud-rejection": { @@ -5841,9 +5923,9 @@ } }, "macos-release": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz", - "integrity": "sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.4.1.tgz", + "integrity": "sha512-H/QHeBIN1fIGJX517pvK8IEK53yQOW7YcEI55oYtgjDdoCQQz7eJS94qt5kNrscReEyuD/JcdFCm2XBEcGOITg==", "dev": true }, "make-dir": { @@ -5904,18 +5986,16 @@ } }, "meow": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/meow/-/meow-7.0.1.tgz", - "integrity": "sha512-tBKIQqVrAHqwit0vfuFPY3LlzJYkEOFyKa3bPgxzNl6q/RtN8KQ+ALYEASYuFayzSAsjlhXj/JZ10rH85Q6TUw==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-7.1.0.tgz", + "integrity": "sha512-kq5F0KVteskZ3JdfyQFivJEj2RaA8NFsS4+r9DaMKLcUHpk5OcHS3Q0XkCXONB1mZRPsu/Y/qImKri0nwSEZog==", "dev": true, "requires": { "@types/minimist": "^1.2.0", - "arrify": "^2.0.1", - "camelcase": "^6.0.0", "camelcase-keys": "^6.2.2", "decamelize-keys": "^1.1.0", "hard-rejection": "^2.1.0", - "minimist-options": "^4.0.2", + "minimist-options": "4.1.0", "normalize-package-data": "^2.5.0", "read-pkg-up": "^7.0.1", "redent": "^3.0.0", @@ -5924,18 +6004,6 @@ "yargs-parser": "^18.1.3" }, "dependencies": { - "arrify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", - "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", - "dev": true - }, - "camelcase": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.0.0.tgz", - "integrity": "sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==", - "dev": true - }, "find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -5965,9 +6033,9 @@ } }, "parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.1.tgz", + "integrity": "sha512-ztoZ4/DYeXQq4E21v169sC8qWINGpcosGv9XhTDvg9/hWvx/zrFkc9BiWxR58OJLHGk28j5BL0SDLeV2WmFZlQ==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -6035,22 +6103,14 @@ "requires": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - } } } } }, "merge2": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.3.0.tgz", - "integrity": "sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true }, "micromatch": { @@ -6096,9 +6156,9 @@ "dev": true }, "min-indent": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.0.tgz", - "integrity": "sha1-z8RcN+nsDY8KDsPdTvf3w6vjklY=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true }, "minimatch": { @@ -6111,9 +6171,9 @@ } }, "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", "dev": true }, "minimist-options": { @@ -6186,12 +6246,12 @@ } }, "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", "dev": true, "requires": { - "minimist": "0.0.8" + "minimist": "^1.2.5" } }, "mkdirp-promise": { @@ -6204,43 +6264,38 @@ } }, "mocha": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-7.1.2.tgz", - "integrity": "sha512-o96kdRKMKI3E8U0bjnfqW4QMk12MwZ4mhdBTf+B5a1q9+aq2HRnj+3ZdJu0B/ZhJeK78MgYuv6L8d/rA5AeBJA==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-8.1.1.tgz", + "integrity": "sha512-p7FuGlYH8t7gaiodlFreseLxEmxTgvyG9RgPHODFPySNhwUehu8NIb0vdSt3WFckSneswZ0Un5typYcWElk7HQ==", "dev": true, "requires": { - "ansi-colors": "3.2.3", + "ansi-colors": "4.1.1", "browser-stdout": "1.3.1", - "chokidar": "3.3.0", + "chokidar": "3.3.1", "debug": "3.2.6", - "diff": "3.5.0", + "diff": "4.0.2", "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", + "find-up": "4.1.0", + "glob": "7.1.6", "growl": "1.10.5", "he": "1.2.0", "js-yaml": "3.13.1", "log-symbols": "3.0.0", "minimatch": "3.0.4", - "mkdirp": "0.5.5", - "ms": "2.1.1", - "node-environment-flags": "1.0.6", + "ms": "2.1.2", "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", + "promise.allsettled": "1.0.2", + "serialize-javascript": "4.0.0", + "strip-json-comments": "3.0.1", + "supports-color": "7.1.0", + "which": "2.0.2", "wide-align": "1.1.3", + "workerpool": "6.0.0", "yargs": "13.3.2", "yargs-parser": "13.1.2", - "yargs-unparser": "1.6.0" + "yargs-unparser": "1.6.1" }, "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, "debug": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", @@ -6250,74 +6305,69 @@ "ms": "^2.1.1" } }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" } }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "dev": true, "requires": { - "minimist": "^1.2.5" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" + "p-locate": "^4.1.0" } }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "requires": { - "ansi-regex": "^4.1.0" + "p-limit": "^2.2.0" } }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", + "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", "dev": true }, "supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" } }, "yargs": { @@ -6336,6 +6386,42 @@ "which-module": "^2.0.0", "y18n": "^4.0.0", "yargs-parser": "^13.1.2" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + } } }, "yargs-parser": { @@ -6431,9 +6517,9 @@ "dev": true }, "neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, "nice-try": { @@ -6442,24 +6528,6 @@ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "dev": true }, - "node-environment-flags": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz", - "integrity": "sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw==", - "dev": true, - "requires": { - "object.getownpropertydescriptors": "^2.0.3", - "semver": "^5.7.0" - }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } - } - }, "node-fetch": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", @@ -6478,9 +6546,9 @@ } }, "node-gyp": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-5.1.0.tgz", - "integrity": "sha512-OUTryc5bt/P8zVgNUmC6xdXiDJxLMAW8cF5tLQOT9E5sOQj+UeQxnnPy74K3CLCa/SOjjBlbuzDLR8ANwA+wmw==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-5.1.1.tgz", + "integrity": "sha512-WH0WKGi+a4i4DUt2mHnvocex/xPLp9pYt5R6M2JdFB7pJ7Z34hveZ4nDTGTiLXCkitA9T8HFZjhinBCiVHYcWw==", "dev": true, "requires": { "env-paths": "^2.2.0", @@ -6501,6 +6569,15 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } } } }, @@ -6533,6 +6610,14 @@ "resolve": "^1.10.0", "semver": "2 || 3 || 4 || 5", "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } } }, "normalize-path": { @@ -6570,6 +6655,17 @@ "uid-number": "0.0.6", "umask": "^1.1.0", "which": "^1.3.1" + }, + "dependencies": { + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } } }, "npm-normalize-package-bin": { @@ -6618,6 +6714,14 @@ "figgy-pudding": "^3.5.1", "npm-package-arg": "^6.0.0", "semver": "^5.4.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } } }, "npm-run-path": { @@ -6627,6 +6731,14 @@ "dev": true, "requires": { "path-key": "^2.0.0" + }, + "dependencies": { + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + } } }, "npmlog": { @@ -6648,9 +6760,9 @@ "dev": true }, "nyc": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.0.1.tgz", - "integrity": "sha512-n0MBXYBYRqa67IVt62qW1r/d9UH/Qtr7SF1w/nQLJ9KxvWF6b2xCHImRAixHN9tnMMYHC2P14uo6KddNGwMgGg==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", + "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==", "dev": true, "requires": { "@istanbuljs/load-nyc-config": "^1.0.0", @@ -6661,6 +6773,7 @@ "find-cache-dir": "^3.2.0", "find-up": "^4.1.0", "foreground-child": "^2.0.0", + "get-package-type": "^0.1.0", "glob": "^7.1.6", "istanbul-lib-coverage": "^3.0.0", "istanbul-lib-hook": "^3.0.0", @@ -6681,12 +6794,6 @@ "yargs": "^15.0.2" }, "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, "ansi-styles": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", @@ -6731,26 +6838,12 @@ }, "find-up": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" } }, "is-fullwidth-code-point": { @@ -6833,15 +6926,6 @@ "strip-ansi": "^6.0.0" } }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - }, "wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", @@ -6854,9 +6938,9 @@ } }, "yargs": { - "version": "15.3.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz", - "integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==", + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, "requires": { "cliui": "^6.0.0", @@ -6869,7 +6953,7 @@ "string-width": "^4.2.0", "which-module": "^2.0.0", "y18n": "^4.0.0", - "yargs-parser": "^18.1.1" + "yargs-parser": "^18.1.2" } }, "yargs-parser": { @@ -6928,9 +7012,9 @@ } }, "object-inspect": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", - "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz", + "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==", "dev": true }, "object-keys": { @@ -7004,17 +7088,17 @@ } }, "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", "dev": true, "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" } }, "os-homedir": { @@ -7056,9 +7140,9 @@ "dev": true }, "p-limit": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz", - "integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" @@ -7173,9 +7257,9 @@ } }, "parse-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/parse-path/-/parse-path-4.0.1.tgz", - "integrity": "sha512-d7yhga0Oc+PwNXDvQ0Jv1BuWkLVPXcAoQ/WREgd6vNNoKYaW52KI+RdOFjI63wjkmps9yUE8VS4veP+AgpQ/hA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/parse-path/-/parse-path-4.0.2.tgz", + "integrity": "sha512-HSqVz6iuXSiL8C1ku5Gl1Z5cwDd9Wo0q8CoffdAghP6bz8pJa1tcMC+m4N+z6VAS8QdksnIGq1TB6EgR4vPR6w==", "dev": true, "requires": { "is-ssh": "^1.3.0", @@ -7183,9 +7267,9 @@ } }, "parse-url": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/parse-url/-/parse-url-5.0.1.tgz", - "integrity": "sha512-flNUPP27r3vJpROi0/R3/2efgKkyXqnXwyP1KQ2U0SfFRgdizOdWfvrrvJg1LuOoxs7GQhmxJlq23IpQ/BkByg==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/parse-url/-/parse-url-5.0.2.tgz", + "integrity": "sha512-Czj+GIit4cdWtxo3ISZCvLiUjErSo0iI3wJ+q9Oi3QuMYTI6OZu+7cewMWZ+C1YAnKhYTk6/TLuhIgCypLthPA==", "dev": true, "requires": { "is-ssh": "^1.3.0", @@ -7219,9 +7303,9 @@ "dev": true }, "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, "path-parse": { @@ -7296,9 +7380,9 @@ "dev": true }, "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, "process-nextick-args": { @@ -7338,6 +7422,19 @@ "retry": "^0.10.0" } }, + "promise.allsettled": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/promise.allsettled/-/promise.allsettled-1.0.2.tgz", + "integrity": "sha512-UpcYW5S1RaNKT6pd+s9jp9K9rlQge1UXKskec0j6Mmuq7UJCvlS2J2/s/yuPN8ehftf9HXMxWlKiPbGGUzpoRg==", + "dev": true, + "requires": { + "array.prototype.map": "^1.0.1", + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1", + "function-bind": "^1.1.1", + "iterate-value": "^1.0.0" + } + }, "promzard": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/promzard/-/promzard-0.3.0.tgz", @@ -7354,9 +7451,9 @@ "dev": true }, "protocols": { - "version": "1.4.7", - "resolved": "https://registry.npmjs.org/protocols/-/protocols-1.4.7.tgz", - "integrity": "sha512-Fx65lf9/YDn3hUX08XUc0J8rSux36rEsyiv21ZGUC1mOyeM3lTRpZLcrm8aAolzS4itwVfm7TAPyxC2E5zd6xg==", + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/protocols/-/protocols-1.4.8.tgz", + "integrity": "sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg==", "dev": true }, "protoduck": { @@ -7431,6 +7528,15 @@ "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", "dev": true }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, "read": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", @@ -7450,14 +7556,13 @@ } }, "read-package-json": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-2.1.1.tgz", - "integrity": "sha512-dAiqGtVc/q5doFz6096CcnXhpYk0ZN8dEKVkGLU0CsASt8SrgF6SF7OTKAYubfvFhWaqofl+Y8HK19GR8jwW+A==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-2.1.2.tgz", + "integrity": "sha512-D1KmuLQr6ZSJS0tW8hf3WGpRlwszJOXZ3E8Yd/DNRaM5d+1wVRZdHlpGBLAuovjr28LbWvjpWkBHMxpRGGjzNA==", "dev": true, "requires": { "glob": "^7.1.1", - "graceful-fs": "^4.1.2", - "json-parse-better-errors": "^1.0.1", + "json-parse-even-better-errors": "^2.3.0", "normalize-package-data": "^2.0.0", "npm-normalize-package-bin": "^1.0.0" } @@ -7595,12 +7700,12 @@ } }, "readdirp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz", - "integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.3.0.tgz", + "integrity": "sha512-zz0pAkSPOXXm1viEwygWIPSPkcBYjW1xU5j/JBh5t9bGCJwa6f9+BJa6VaB2g+b55yVrmXzqkyLf4xaWYM0IkQ==", "dev": true, "requires": { - "picomatch": "^2.0.4" + "picomatch": "^2.0.7" } }, "redent": { @@ -7624,9 +7729,9 @@ } }, "regexpp": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", - "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", + "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", "dev": true }, "release-zalgo": { @@ -7700,9 +7805,9 @@ "dev": true }, "resolve": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.0.tgz", - "integrity": "sha512-+hTmAldEGE80U2wJJDC1lebb5jWqvTYAfm3YZ1ckk1gBr0MnCqUKlwK1e+anaFljIl+F5tR5IoZcm4ZDA1zMQw==", + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", + "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", "dev": true, "requires": { "path-parse": "^1.0.6" @@ -7769,13 +7874,10 @@ } }, "run-async": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", - "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", - "dev": true, - "requires": { - "is-promise": "^2.1.0" - } + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", + "dev": true }, "run-queue": { "version": "1.0.3", @@ -7787,9 +7889,9 @@ } }, "rxjs": { - "version": "6.5.5", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.5.tgz", - "integrity": "sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ==", + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.2.tgz", + "integrity": "sha512-BHdBMVoWC2sL26w//BCu3YzKT4s2jip/WhwsGEDmeKYBhKDZeYezVUnHatYB7L85v5xs0BAQmg6BEYJEKxBabg==", "dev": true, "requires": { "tslib": "^1.9.0" @@ -7817,11 +7919,20 @@ "dev": true }, "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", "dev": true }, + "serialize-javascript": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", + "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", @@ -7861,24 +7972,24 @@ } }, "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "requires": { - "shebang-regex": "^1.0.0" + "shebang-regex": "^3.0.0" } }, "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", "dev": true }, "slash": { @@ -8134,22 +8245,13 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } } } }, "spdx-correct": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", "dev": true, "requires": { "spdx-expression-parse": "^3.0.0", @@ -8275,45 +8377,51 @@ "dev": true }, "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" }, "dependencies": { - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "number-is-nan": "^1.0.0" + "ansi-regex": "^4.1.0" } } } }, - "string.prototype.trimleft": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz", - "integrity": "sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag==", + "string.prototype.trimend": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", + "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", "dev": true, "requires": { "define-properties": "^1.1.3", - "function-bind": "^1.1.1" + "es-abstract": "^1.17.5" } }, - "string.prototype.trimright": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz", - "integrity": "sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g==", + "string.prototype.trimstart": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", + "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", "dev": true, "requires": { "define-properties": "^1.1.3", - "function-bind": "^1.1.1" + "es-abstract": "^1.17.5" } }, "string_decoder": { @@ -8334,12 +8442,12 @@ } }, "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "ansi-regex": "^5.0.0" } }, "strip-bom": { @@ -8364,9 +8472,9 @@ } }, "strip-json-comments": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", - "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true }, "strong-log-transformer": { @@ -8378,14 +8486,6 @@ "duplexer": "^0.1.1", "minimist": "^1.2.0", "through": "^2.3.4" - }, - "dependencies": { - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - } } }, "supports-color": { @@ -8407,34 +8507,6 @@ "lodash": "^4.17.14", "slice-ansi": "^2.1.0", "string-width": "^3.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } } }, "tar": { @@ -8504,9 +8576,9 @@ "dev": true }, "thenify": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.0.tgz", - "integrity": "sha1-5p44obq+lpsBCCB5eLn2K4hgSDk=", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", "dev": true, "requires": { "any-promise": "^1.0.0" @@ -8656,18 +8728,18 @@ "dev": true }, "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, "requires": { - "prelude-ls": "~1.1.2" + "prelude-ls": "^1.2.1" } }, "type-fest": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz", - "integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==", + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true }, "typedarray": { @@ -8692,14 +8764,11 @@ "dev": true }, "uglify-js": { - "version": "3.9.3", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.9.3.tgz", - "integrity": "sha512-r5ImcL6QyzQGVimQoov3aL2ZScywrOgBXGndbWrdehKoSvGe/RmiE5Jpw/v+GvxODt6l2tpBXwA7n+qZVlHBMA==", + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.10.1.tgz", + "integrity": "sha512-RjxApKkrPJB6kjJxQS3iZlf///REXWYxYJxO/MpmlQzVkDWVI3PSnCBWezMecmTU/TRkNxrl8bmsfFQCp+LO+Q==", "dev": true, - "optional": true, - "requires": { - "commander": "~2.20.3" - } + "optional": true }, "uid-number": { "version": "0.0.6", @@ -8847,9 +8916,9 @@ "dev": true }, "v8-compile-cache": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz", - "integrity": "sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz", + "integrity": "sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==", "dev": true }, "validate-npm-package-license": { @@ -8909,9 +8978,9 @@ } }, "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "requires": { "isexe": "^2.0.0" @@ -8930,12 +8999,39 @@ "dev": true, "requires": { "string-width": "^1.0.2 || 2" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } } }, "windows-release": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.3.0.tgz", - "integrity": "sha512-2HetyTg1Y+R+rUgrKeUEhAG/ZuOmTrI1NBb3ZyAGQMYmOJjBBPe4MTodghRkmLJZHwkuPi02anbeGP+Zf401LQ==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.3.3.tgz", + "integrity": "sha512-OSOGH1QYiW5yVor9TtmXKQvt2vjQqbYS+DqmsZw+r7xDwLXEeT3JGW0ZppFmHx4diyXmxt238KFR3N9jzevBRg==", "dev": true, "requires": { "execa": "^1.0.0" @@ -8953,6 +9049,12 @@ "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", "dev": true }, + "workerpool": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.0.0.tgz", + "integrity": "sha512-fU2OcNA/GVAJLLyKUoHkAgIhKb0JoCpSjLC/G2vYKxUjVmQwGbRVeoPJ1a8U4pnVofz4AQV5Y/NEw8oKqxEBtA==", + "dev": true + }, "wrap-ansi": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", @@ -8970,17 +9072,6 @@ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, "strip-ansi": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", @@ -9117,34 +9208,6 @@ "which-module": "^2.0.0", "y18n": "^4.0.0", "yargs-parser": "^15.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } } }, "yargs-parser": { @@ -9158,70 +9221,16 @@ } }, "yargs-unparser": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", - "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.1.tgz", + "integrity": "sha512-qZV14lK9MWsGCmcr7u5oXGH0dbGqZAIxTDrWXZDo5zUr6b6iUmelNKO6x6R1dQT24AH3LgRxJpr8meWy2unolA==", "dev": true, "requires": { + "camelcase": "^5.3.1", + "decamelize": "^1.2.0", "flat": "^4.1.0", - "lodash": "^4.17.15", - "yargs": "^13.3.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - }, - "yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", - "dev": true, - "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" - } - }, - "yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } + "is-plain-obj": "^1.1.0", + "yargs": "^14.2.3" } } } diff --git a/package.json b/package.json index ff223cf5f..c7903adec 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,10 @@ "devDependencies": { "@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/parser": "^2.17.0", - "eslint": "^6.8.0", - "lerna": "^3.21.0", - "mocha": "^7.1.2", - "nyc": "^15.0.1", + "eslint": "^7.7.0", + "lerna": "^3.22.1", + "mocha": "^8.1.1", + "nyc": "^15.1.0", "typescript": "^3.7.5" } } diff --git a/packages/botbuilder-adapter-facebook/package.json b/packages/botbuilder-adapter-facebook/package.json index 1106c7b33..fdb3da24a 100644 --- a/packages/botbuilder-adapter-facebook/package.json +++ b/packages/botbuilder-adapter-facebook/package.json @@ -39,10 +39,10 @@ "debug": "^4.1.0" }, "devDependencies": { - "eslint": "^6.8.0", - "eslint-config-standard": "^14.1.0", + "eslint": "^7.7.0", + "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.0", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1" } diff --git a/packages/botbuilder-adapter-hangouts/package.json b/packages/botbuilder-adapter-hangouts/package.json index d4ce92b47..cbf859b0d 100644 --- a/packages/botbuilder-adapter-hangouts/package.json +++ b/packages/botbuilder-adapter-hangouts/package.json @@ -40,10 +40,10 @@ "debug": "^4.1.0" }, "devDependencies": { - "eslint": "^6.8.0", - "eslint-config-standard": "^14.1.0", + "eslint": "^7.7.0", + "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.0", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1" } diff --git a/packages/botbuilder-adapter-slack/package-lock.json b/packages/botbuilder-adapter-slack/package-lock.json index dfba34eed..27af991b2 100644 --- a/packages/botbuilder-adapter-slack/package-lock.json +++ b/packages/botbuilder-adapter-slack/package-lock.json @@ -1,31 +1,22 @@ { "name": "botbuilder-adapter-slack", - "version": "1.0.8", + "version": "1.0.12", "lockfileVersion": 1, "requires": true, "dependencies": { "@azure/ms-rest-js": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@azure/ms-rest-js/-/ms-rest-js-1.2.6.tgz", - "integrity": "sha512-8cmDpxsQjVdveJwYKtNnkJorxEORLYJu9UHaUvLZA6yHExzDeISHAcSVWE0J05+VkJtqheVHF17M+2ro18Cdnw==", + "version": "1.8.15", + "resolved": "https://registry.npmjs.org/@azure/ms-rest-js/-/ms-rest-js-1.8.15.tgz", + "integrity": "sha512-kIB71V3DcrA4iysBbOsYcxd4WWlOE7OFtCUYNfflPODM0lbIR23A236QeTn5iAeYwcHmMjR/TAKp5KQQh/WqoQ==", "requires": { - "axios": "^0.18.0", + "@types/tunnel": "0.0.0", + "axios": "^0.19.0", "form-data": "^2.3.2", "tough-cookie": "^2.4.3", "tslib": "^1.9.2", + "tunnel": "0.0.6", "uuid": "^3.2.1", "xml2js": "^0.4.19" - }, - "dependencies": { - "axios": { - "version": "0.18.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.1.tgz", - "integrity": "sha512-0BfJq4NSfQXd+SkFdrvFbG7addhYSBA2mQwISr46pD6E5iqkWg02RAs8vyTT/j0RTnoYmeXauBuSv1qKwR179g==", - "requires": { - "follow-redirects": "1.5.10", - "is-buffer": "^2.0.2" - } - } } }, "@microsoft/recognizers-text": { @@ -162,6 +153,14 @@ "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" }, + "@types/tunnel": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/@types/tunnel/-/tunnel-0.0.0.tgz", + "integrity": "sha512-FGDp0iBRiBdPjOgjJmn1NH0KDLN+Z8fRmo+9J7XGBhubq1DPrGrbmG4UTlGzrpbCpesMqD0sWkzi27EYkOMHyg==", + "requires": { + "@types/node": "*" + } + }, "@types/ws": { "version": "6.0.4", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-6.0.4.tgz", @@ -202,16 +201,16 @@ }, "dependencies": { "@types/node": { - "version": "8.10.59", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.59.tgz", - "integrity": "sha512-8RkBivJrDCyPpBXhVZcjh7cQxVBSmRk9QM7hOketZzp6Tg79c0N8kkpAIito9bnJ3HCVCHVYz+KHTEbfQNfeVQ==" + "version": "8.10.62", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.62.tgz", + "integrity": "sha512-76fupxOYVxk36kb7O/6KtrAPZ9jnSK3+qisAX4tQMEuGNdlvl7ycwatlHqjoE6jHfVtXFM3pCrCixZOidc5cuw==" } } }, "ajv": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.0.tgz", - "integrity": "sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw==", + "version": "6.12.4", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.4.tgz", + "integrity": "sha512-eienB2c9qVQs2KWexhkrdMLVDoIQCz5KSeLxwg9Lzk4DOfBtIK9PQwwufcsn1jjGuf9WZmqPMbGxOzfcuphJCQ==", "requires": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -286,9 +285,9 @@ "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz", - "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==" + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz", + "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==" }, "axios": { "version": "0.19.2", @@ -355,108 +354,110 @@ } }, "botbuilder": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/botbuilder/-/botbuilder-4.7.2.tgz", - "integrity": "sha512-3NzqEiiRh37CDVypk47nDBsH5zAV6pi4qW1Kv26lx89UxfgQNjoN9tF+PLAqzbQHrWYDCBWYgpmyFn1NKLsY0g==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/botbuilder/-/botbuilder-4.10.0.tgz", + "integrity": "sha512-A80shB/vmAS6omhqZ8tY6IkBvzVzvCTEE6PeRm07uhrnDRdqAEklxXqkAxzko/oCNQ1/WUljtf92R0fpi4WQiw==", "requires": { - "@azure/ms-rest-js": "1.2.6", - "@types/node": "^10.12.18", + "@azure/ms-rest-js": "1.8.15", + "@types/node": "^10.17.27", "axios": "^0.19.0", - "botbuilder-core": "4.7.2", - "botframework-connector": "4.7.2", - "botframework-streaming": "4.7.2", + "botbuilder-core": "4.10.0", + "botframework-connector": "4.10.0", + "botframework-streaming": "4.10.0", "filenamify": "^4.1.0", - "fs-extra": "^7.0.1" + "fs-extra": "^7.0.1", + "moment-timezone": "^0.5.28" }, "dependencies": { "@types/node": { - "version": "10.17.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.17.tgz", - "integrity": "sha512-gpNnRnZP3VWzzj5k3qrpRC6Rk3H/uclhAVo1aIvwzK5p5cOrs9yEyQ8H/HBsBY0u5rrWxXEiVPQ0dEB6pkjE8Q==" + "version": "10.17.28", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.28.tgz", + "integrity": "sha512-dzjES1Egb4c1a89C7lKwQh8pwjYmlOAG9dW1pBgxEk57tMrLnssOfEthz8kdkNaBd7lIqQx7APm5+mZ619IiCQ==" } } }, "botbuilder-core": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/botbuilder-core/-/botbuilder-core-4.7.2.tgz", - "integrity": "sha512-4adVtnCB6+d+R6SJQlpd9HLzvLcBmuu9i/wqcvLaTiWen2Jv6+n8mHNsSg2lR2grIIYbV0ZKqfb0FLnlvFWH4A==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/botbuilder-core/-/botbuilder-core-4.10.0.tgz", + "integrity": "sha512-pRj3STTivYiwpXazMNKyYSo8RfoFiPNvbwKeoVoeTfMveugbljHvWyydbDe9D0yM5iJGm8SkN4r8rIa1aDO8iQ==", "requires": { "assert": "^1.4.1", - "botframework-schema": "4.7.2" + "botframework-schema": "4.10.0" } }, "botbuilder-dialogs": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/botbuilder-dialogs/-/botbuilder-dialogs-4.7.2.tgz", - "integrity": "sha512-YQyP2msfA9x6zTtSHvoG0OXvQ34j5gz4b4sKH+wCm4UBjknaGp+s7D6ARSQ1ocQNzbzRd7z98lKgoMBf3GJ3KA==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/botbuilder-dialogs/-/botbuilder-dialogs-4.10.0.tgz", + "integrity": "sha512-aW9xy/20VSz3R3b94jR8yBvBUzhbfXkrsReO0X1ZgvIi1h32EOSntMQUhG6ponLvofkxs8u5Vyhrn6F5Ogdy6g==", "requires": { "@microsoft/recognizers-text-choice": "1.1.4", "@microsoft/recognizers-text-date-time": "1.1.4", "@microsoft/recognizers-text-number": "1.1.4", "@microsoft/recognizers-text-suite": "1.1.4", - "@types/node": "^10.12.18", - "botbuilder-core": "4.7.2", + "@types/node": "^10.17.27", + "botbuilder-core": "4.10.0", "globalize": "^1.4.2" }, "dependencies": { "@types/node": { - "version": "10.17.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.17.tgz", - "integrity": "sha512-gpNnRnZP3VWzzj5k3qrpRC6Rk3H/uclhAVo1aIvwzK5p5cOrs9yEyQ8H/HBsBY0u5rrWxXEiVPQ0dEB6pkjE8Q==" + "version": "10.17.28", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.28.tgz", + "integrity": "sha512-dzjES1Egb4c1a89C7lKwQh8pwjYmlOAG9dW1pBgxEk57tMrLnssOfEthz8kdkNaBd7lIqQx7APm5+mZ619IiCQ==" } } }, "botframework-connector": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/botframework-connector/-/botframework-connector-4.7.2.tgz", - "integrity": "sha512-Ow5/aKDm3+WUP+XOQ0axeC5fEE/zZW8ZMQKuVjQZ2BZ81He2jwKPg50+TNOe62ljZAhsnHh3KGD/aEfVv2DecA==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/botframework-connector/-/botframework-connector-4.10.0.tgz", + "integrity": "sha512-xjqeBo4bp1hLtYAjCawj4byRSRhtn6eM1U+bphKn9GVey813/sROEGhACrqjAJ4wXSVjW04/caWj/qDUNCN2Vg==", "requires": { - "@azure/ms-rest-js": "1.2.6", + "@azure/ms-rest-js": "1.8.15", "@types/jsonwebtoken": "7.2.8", - "@types/node": "^10.12.18", + "@types/node": "^10.17.27", "adal-node": "0.2.1", "base64url": "^3.0.0", - "botframework-schema": "4.7.2", + "botframework-schema": "4.10.0", "form-data": "^2.3.3", "jsonwebtoken": "8.0.1", - "node-fetch": "^2.2.1", + "node-fetch": "^2.6.0", "rsa-pem-from-mod-exp": "^0.8.4" }, "dependencies": { "@types/node": { - "version": "10.17.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.17.tgz", - "integrity": "sha512-gpNnRnZP3VWzzj5k3qrpRC6Rk3H/uclhAVo1aIvwzK5p5cOrs9yEyQ8H/HBsBY0u5rrWxXEiVPQ0dEB6pkjE8Q==" + "version": "10.17.28", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.28.tgz", + "integrity": "sha512-dzjES1Egb4c1a89C7lKwQh8pwjYmlOAG9dW1pBgxEk57tMrLnssOfEthz8kdkNaBd7lIqQx7APm5+mZ619IiCQ==" } } }, "botframework-schema": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/botframework-schema/-/botframework-schema-4.7.2.tgz", - "integrity": "sha512-rSTywVl5dYzL4FNoK86s9kFPNkRx5iYJi7MAWEaSrhUiDV3KEHX/5VEHLa00d4nzQxC/jI9BqfbqdffpO97KIA==" + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/botframework-schema/-/botframework-schema-4.10.0.tgz", + "integrity": "sha512-Llix9JsmeRDL2vHKPdtOoZ1Na69TR5uqAInTpkuudYexEu5Q0zb8L97stWpxEDLNsMdkT/FyZJKCXnFpaNK9ug==" }, "botframework-streaming": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/botframework-streaming/-/botframework-streaming-4.7.2.tgz", - "integrity": "sha512-nkj7WTviO/8G2QCq9qyjRz9wPpx9fd5yO6YxeWLV2n81rxlF0KBosBs1kUCpbpX0xZjCwAmJC8urdqEktfcz8Q==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/botframework-streaming/-/botframework-streaming-4.10.0.tgz", + "integrity": "sha512-+fpEqL/3JbCRE7+/mJVI3U1L4jeL76V0YQkOnfzJ5eW0tK0En2rix5potkpYRev/N2lg8WriP5Qeyz2yJz9uew==", "requires": { "@types/ws": "^6.0.3", - "uuid": "^3.3.2", + "uuid": "^3.4.0", "ws": "^7.1.2" } }, "botkit": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/botkit/-/botkit-4.6.2.tgz", - "integrity": "sha512-tWasAdmN9BCNl91aGPip/IVHekdVwoMm2z4BvZmfIVyS89/g4fwfu1JCAWo79FK7sfvDUz2ZyNUc21Uh2E+T7w==", - "requires": { - "body-parser": "^1.18.3", - "botbuilder": "^4.7.1", - "botbuilder-dialogs": "^4.7.1", - "botframework-connector": "^4.7.1", + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/botkit/-/botkit-4.9.0.tgz", + "integrity": "sha512-sw6oLmtv7M39N2LPFaoJ0lZkYKkUSrkBvl+Q1QXxteXLn0W0rD1a67EKwfigL2LCltHJSJ2Zt+5/v+AvfwdBGQ==", + "requires": { + "body-parser": "^1.19.0", + "botbuilder": "^4.9.0", + "botbuilder-core": "^4.9.0", + "botbuilder-dialogs": "^4.9.0", + "botframework-connector": "^4.9.0", "debug": "^4.1.0", - "express": "^4.16.4", - "mustache": "^3.0.1", + "express": "^4.17.1", + "mustache": "^4.0.1", "path": "^0.12.7", "request": "^2.88.0", "ware": "^1.3.0" @@ -488,9 +489,9 @@ "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" }, "cldrjs": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/cldrjs/-/cldrjs-0.5.1.tgz", - "integrity": "sha512-xyiP8uAm8K1IhmpDndZLraloW1yqu0L+HYdQ7O1aGPxx9Cr+BMnPANlNhSt++UKfxytL2hd2NPXgTjiy7k43Ew==" + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/cldrjs/-/cldrjs-0.5.4.tgz", + "integrity": "sha512-6QkI7oPLUZ9vA5BQAmUOfh5JIpESfnYy/M8d7Ddl9Yx+z2TAnQgnc3kbgjkIgxsk5Y0tOY+n6itMWXzQQQ2IWg==" }, "co": { "version": "3.1.0", @@ -1915,9 +1916,9 @@ "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" }, "fast-deep-equal": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", - "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "fast-json-stable-stringify": { "version": "2.1.0", @@ -2040,9 +2041,9 @@ } }, "globalize": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/globalize/-/globalize-1.4.2.tgz", - "integrity": "sha512-IfKeYI5mAITBmT5EnH8kSQB5uGson4Fkj2XtTpyEbIS7IHNfLHoeTyLJ6tfjiKC6cJXng3IhVurDk5C7ORqFhQ==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/globalize/-/globalize-1.5.0.tgz", + "integrity": "sha512-76fcPQO/WLthtSwjgIZ/Zv2XSXqv9ifvl1PwIxJNCZNFHigGCpg3fBZ0poJ30b2kdDgofPkYl478lVZA6esESQ==", "requires": { "cldrjs": "^0.5.0" } @@ -2063,11 +2064,11 @@ "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" }, "har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", "requires": { - "ajv": "^6.5.5", + "ajv": "^6.12.3", "har-schema": "^2.0.0" } }, @@ -2151,11 +2152,6 @@ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, - "is-buffer": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", - "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==" - }, "is-callable": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", @@ -2311,9 +2307,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" }, "lodash.escaperegexp": { "version": "4.1.2", @@ -2427,15 +2423,28 @@ "brace-expansion": "^1.1.7" } }, + "moment": { + "version": "2.27.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.27.0.tgz", + "integrity": "sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ==" + }, + "moment-timezone": { + "version": "0.5.31", + "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.31.tgz", + "integrity": "sha512-+GgHNg8xRhMXfEbv81iDtrVeTcWt0kWmTEY1XQK14dICTXnWJnT0dxdlPspwqF3keKMVPXwayEsk1DI0AA/jdA==", + "requires": { + "moment": ">= 2.9.0" + } + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, "mustache": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/mustache/-/mustache-3.2.1.tgz", - "integrity": "sha512-RERvMFdLpaFfSRIEe632yDm5nsd0SDKn8hGmcUwswnyiE5mtdZLDybtHAz6hjJhawokF0hXvGLtx9mrQfm6FkA==" + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.0.1.tgz", + "integrity": "sha512-yL5VE97+OXn4+Er3THSmTdCFCtx5hHWzrolvH+JObZnUYwuaG7XV+Ch4fR2cIrcYI0tFHxS7iyFYl14bW8y2sA==" }, "negotiator": { "version": "0.6.2", @@ -2635,9 +2644,9 @@ } }, "psl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.7.0.tgz", - "integrity": "sha512-5NsSEDv8zY70ScRnOTn7bK7eanl2MvFrOrS/R6x+dBt5g1ghnj9Zv90kO8GwT8gxcu2ANyFprnFYB85IogIJOQ==" + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==" }, "punycode": { "version": "2.1.1", @@ -2751,9 +2760,9 @@ "integrity": "sha1-NipCxtMEBW1JOz8SvOq7LGV2ptQ=" }, "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" }, "safer-buffer": { "version": "2.1.2", @@ -2939,9 +2948,14 @@ } }, "tslib": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", - "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==" + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", + "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==" + }, + "tunnel": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==" }, "tunnel-agent": { "version": "0.6.0", @@ -2966,9 +2980,9 @@ } }, "underscore": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.2.tgz", - "integrity": "sha512-D39qtimx0c1fI3ya1Lnhk3E9nONswSKhnffBI0gME9C99fYOkNi04xs8K6pePLhvl1frbDemkaBQ5ikWllR2HQ==" + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.10.2.tgz", + "integrity": "sha512-N4P+Q/BuyuEKFJ43B9gYuOj4TQUHXX+j2FqguVOpjkssLUUrnJofCcBccJSCoeturDoZU6GorDTHSvUDlSQbTg==" }, "universalify": { "version": "0.1.2", @@ -3048,9 +3062,9 @@ } }, "ws": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.2.3.tgz", - "integrity": "sha512-HTDl9G9hbkNDk98naoR/cHDws7+EyYMOdL1BmjsZXRUjf7d+MficC4B7HLUPlSiho0vg+CWKrGIt/VJBd1xunQ==" + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz", + "integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==" }, "xml2js": { "version": "0.4.23", diff --git a/packages/botbuilder-adapter-slack/package.json b/packages/botbuilder-adapter-slack/package.json index 2c913f2a1..db72d1799 100644 --- a/packages/botbuilder-adapter-slack/package.json +++ b/packages/botbuilder-adapter-slack/package.json @@ -39,10 +39,10 @@ "debug": "^4.1.0" }, "devDependencies": { - "eslint": "^6.8.0", - "eslint-config-standard": "^14.1.0", + "eslint": "^7.7.0", + "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.0", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1" } diff --git a/packages/botbuilder-adapter-twilio-sms/package.json b/packages/botbuilder-adapter-twilio-sms/package.json index af247eae9..ce482e556 100644 --- a/packages/botbuilder-adapter-twilio-sms/package.json +++ b/packages/botbuilder-adapter-twilio-sms/package.json @@ -43,10 +43,10 @@ "twilio": "^3.29.2" }, "devDependencies": { - "eslint": "^6.8.0", - "eslint-config-standard": "^14.1.0", + "eslint": "^7.7.0", + "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.0", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1" } diff --git a/packages/botbuilder-adapter-web/CHANGELOG.md b/packages/botbuilder-adapter-web/CHANGELOG.md index 023e3a3f5..c75500d87 100644 --- a/packages/botbuilder-adapter-web/CHANGELOG.md +++ b/packages/botbuilder-adapter-web/CHANGELOG.md @@ -1,5 +1,10 @@ # botbuilder-adapter-web changelog +# 1.0.9 +* Update dependencies to Botkit 4.10, Bot Framework 4.10 + +* Fix to websocket ping call. [Issue #2003](https://github.com/howdyai/botkit/issues/2003) + # 1.0.8 * Update dependencies to Botkit 4.9, Bot Framework 4.9 diff --git a/packages/botbuilder-adapter-web/package.json b/packages/botbuilder-adapter-web/package.json index 8f196182c..a7325c7c8 100644 --- a/packages/botbuilder-adapter-web/package.json +++ b/packages/botbuilder-adapter-web/package.json @@ -39,13 +39,13 @@ "botbuilder": "^4.9.0", "debug": "^4.1.0", "url": "^0.11.0", - "ws": "^7.1.1" + "ws": "^7.3.1" }, "devDependencies": { - "eslint": "^6.8.0", - "eslint-config-standard": "^14.1.0", + "eslint": "^7.7.0", + "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.0", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1" } diff --git a/packages/botbuilder-adapter-webex/CHANGELOG.md b/packages/botbuilder-adapter-webex/CHANGELOG.md index 016f40ce8..3e08e1abd 100644 --- a/packages/botbuilder-adapter-webex/CHANGELOG.md +++ b/packages/botbuilder-adapter-webex/CHANGELOG.md @@ -1,5 +1,11 @@ # botbuilder-adapter-webex changelog +# 1.0.9 + +* Test for presence of channelData before accessing it. Thanks [@viveksyngh](https://github.com/viveksyngh) for the [pull request](https://github.com/howdyai/botkit/pull/2010) + + + # 1.0.8 * Update dependencies to Botkit 4.9, Bot Framework 4.9 diff --git a/packages/botbuilder-adapter-webex/package.json b/packages/botbuilder-adapter-webex/package.json index 66200a0e2..8e2d9e54c 100644 --- a/packages/botbuilder-adapter-webex/package.json +++ b/packages/botbuilder-adapter-webex/package.json @@ -40,10 +40,10 @@ "webex": "^1.80.148" }, "devDependencies": { - "eslint": "^6.8.0", - "eslint-config-standard": "^14.1.0", + "eslint": "^7.7.0", + "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.0", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1" } diff --git a/packages/botkit-plugin-cms/package.json b/packages/botkit-plugin-cms/package.json index 8885d6e14..ded44259b 100644 --- a/packages/botkit-plugin-cms/package.json +++ b/packages/botkit-plugin-cms/package.json @@ -34,10 +34,10 @@ "devDependencies": { "@types/express": "^4.17.2", "@types/node": "^10.17.5", - "eslint": "^6.8.0", - "eslint-config-standard": "^14.1.0", + "eslint": "^7.7.0", + "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.0", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1" } diff --git a/packages/botkit/package.json b/packages/botkit/package.json index 4f8958a5a..52f7e6744 100644 --- a/packages/botkit/package.json +++ b/packages/botkit/package.json @@ -47,10 +47,10 @@ "@types/debug": "^4.1.5", "@types/express": "^4.17.2", "@types/node": "^10.17.5", - "eslint": "^6.8.0", - "eslint-config-standard": "^14.1.0", + "eslint": "^7.7.0", + "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.0", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1" } From 5066fb0c9e605d81fd8079feafdaf6a2e055c847 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 12:12:47 -0500 Subject: [PATCH 03/18] Fix #1983: spawn the correct bot worker if adapter is specified. Add tests --- .../src/index.ts | 1 + packages/botkit/src/core.ts | 2 +- packages/botkit/tests/Core.tests.js | 30 ++++++++++++++++++- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/packages/botbuilder-adapter-twilio-sms/src/index.ts b/packages/botbuilder-adapter-twilio-sms/src/index.ts index b71577730..cc10a75ee 100644 --- a/packages/botbuilder-adapter-twilio-sms/src/index.ts +++ b/packages/botbuilder-adapter-twilio-sms/src/index.ts @@ -7,3 +7,4 @@ */ export * from './twilio_adapter'; +export * from './botworker'; diff --git a/packages/botkit/src/core.ts b/packages/botkit/src/core.ts index 23bffcb89..544697b2f 100644 --- a/packages/botkit/src/core.ts +++ b/packages/botkit/src/core.ts @@ -1090,7 +1090,7 @@ export class Botkit { } let worker: BotWorker = null; - const adapter = custom_adapter || (config && config.context && config.context.adapter) ? config.context.adapter : this.adapter; + const adapter = custom_adapter ? custom_adapter : ((config && config.context && config.context.adapter) ? config.context.adapter : this.adapter); if (adapter.botkit_worker) { const CustomBotWorker = adapter.botkit_worker; diff --git a/packages/botkit/tests/Core.tests.js b/packages/botkit/tests/Core.tests.js index 8b063df55..80e749612 100644 --- a/packages/botkit/tests/Core.tests.js +++ b/packages/botkit/tests/Core.tests.js @@ -1,8 +1,36 @@ const assert = require('assert'); -const { Botkit } = require('../'); +const { Botkit, BotWorker } = require('../'); +const { TwilioAdapter, TwilioBotWorker } = require('../../botbuilder-adapter-twilio-sms'); describe('Botkit', function() { it('should create a Botkit controller', function() { assert((new Botkit({ disable_console: true, disable_webserver: true }) instanceof Botkit), 'Botkit is wrong type'); }); + it ('should spawn appropriate bot worker with a single adapter', async function() { + const controller = new Botkit({ + disable_webserver: true, + adapter: new TwilioAdapter({enable_incomplete: true}), + }); + + const bot = await controller.spawn({}); + assert((bot instanceof TwilioBotWorker), 'Bot worker is wrong type'); + + + }); + it ('should spawn appropriate bot worker with a multiple adapter', async function() { + + const controller = new Botkit({ + disable_webserver: true, + }); + + const anotherAdapter = new TwilioAdapter({enable_incomplete: true}); + + const bot = await controller.spawn({}); + assert((bot instanceof BotWorker), 'Default Bot worker is wrong type'); + + const tbot = await controller.spawn({}, anotherAdapter); + assert((tbot instanceof TwilioBotWorker), 'Secondary Bot worker is wrong type'); + + }); + }); From 9090887910fe9cbafc1eb6c0b6237559a447c1a7 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 12:13:51 -0500 Subject: [PATCH 04/18] update changelog --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index a836bd261..80d961d2a 100644 --- a/changelog.md +++ b/changelog.md @@ -10,6 +10,7 @@ * Update some dev dependencies like lerna, eslint, etc. * FIX: Adjust mechanism for handling templates in channelData to avoid data loss. Thanks [@ashitikov](https://github.com/ashitikov) for the [pull request](https://github.com/howdyai/botkit/pull/1979) +* FIX: Botkit will now spawn the appropriate botworker if a custom adapter is passed in. Thanks to [@etiennellipse](https://github.com/etiennellipse) for [reporting this issue](https://github.com/howdyai/botkit/issues/1984)! # 4.9.0 From 18e2c7902c502f56e66886fa91a41ebce78be3ac Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 14:59:01 -0500 Subject: [PATCH 05/18] Fix for #1961: add teams helper features --- packages/botkit/src/adapter.ts | 14 +- packages/botkit/src/index.ts | 1 + packages/botkit/src/teamsHelpers.ts | 97 ++++++++++++++ packages/botkit/tests/Core.tests.js | 4 +- packages/testbot/features/middlewares.js | 4 +- packages/testbot/features/teams_features.js | 135 ++++++++++++++++++++ 6 files changed, 239 insertions(+), 16 deletions(-) create mode 100644 packages/botkit/src/teamsHelpers.ts create mode 100644 packages/testbot/features/teams_features.js diff --git a/packages/botkit/src/adapter.ts b/packages/botkit/src/adapter.ts index 2dd81ec35..f09c1bd3a 100644 --- a/packages/botkit/src/adapter.ts +++ b/packages/botkit/src/adapter.ts @@ -7,6 +7,7 @@ */ import { BotFrameworkAdapter, TurnContext } from 'botbuilder'; import { ConnectorClient, TokenApiClient } from 'botframework-connector'; +import { TeamsBotWorker } from './teamsHelpers'; import * as request from 'request'; import * as os from 'os'; @@ -27,19 +28,8 @@ const USER_AGENT: string = `Microsoft-BotFramework/3.1 Botkit/${ pjson.version } * * Adds middleware for adjusting location of tenant id field (MS Teams) */ export class BotkitBotFrameworkAdapter extends BotFrameworkAdapter { - public constructor(options) { - super(options); - // Fix a (temporary) issue with transitional location of MS Teams tenantId - // this fix should already be present in botbuilder 4.4 - // when/if that happens, this can be removed. - this.use(async (context, next) => { - if (!context.activity.conversation.tenantId && context.activity.channelData && context.activity.channelData.tenant) { - context.activity.conversation.tenantId = context.activity.channelData.tenant.id; - } - await next(); - }); - } + public botkit_worker = TeamsBotWorker; /** * Allows for mocking of the connector client in unit tests. diff --git a/packages/botkit/src/index.ts b/packages/botkit/src/index.ts index c99f5b900..bd9ec77c3 100644 --- a/packages/botkit/src/index.ts +++ b/packages/botkit/src/index.ts @@ -10,4 +10,5 @@ export * from './core'; export * from './conversation'; export * from './botworker'; export * from './dialogWrapper'; +export * from './teamsHelpers'; export * from './testClient'; diff --git a/packages/botkit/src/teamsHelpers.ts b/packages/botkit/src/teamsHelpers.ts new file mode 100644 index 000000000..5a0ecd226 --- /dev/null +++ b/packages/botkit/src/teamsHelpers.ts @@ -0,0 +1,97 @@ +/** + * @module botkit + */ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ +import { Botkit, BotkitMessage } from './core'; +import { BotWorker } from './botworker'; +import { TeamsInfo, MiddlewareSet, TurnContext, TaskModuleTaskInfo } from 'botbuilder'; + +/** + * An extension of the core BotWorker class that exposes the TeamsInfo helper class for MS Teams. + * This BotWorker is used with the built-in Bot Framework adapter. + */ +export class TeamsBotWorker extends BotWorker { + + public constructor(controller: Botkit, config) { + super(controller, config); + } + + /** + * Grants access to the TeamsInfo helper class + * See: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest + */ + public teams: TeamsInfo = TeamsInfo; + + /** + * Reply to a Teams task module task/fetch or task/submit with a task module response. + * See https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots + * @param message + * @param taskInfo { type: 'continue|message', value: {} } + */ + public async replyWithTaskInfo(message: BotkitMessage, taskInfo: any) { + if (!taskInfo || taskInfo == {}) { + // send a null response back + taskInfo = { + type: 'message', + value: '', + } + } + return new Promise((resolve, reject) => { + this.controller.middleware.send.run(this, taskInfo, async (err, bot, taskInfo) => { + if (err) { + return reject(err); + } + resolve(await this.getConfig('context').sendActivity({ + type: 'invokeResponse', + value: { + status: 200, + body: { + task: taskInfo + } + } + })); + }); + }); + } +} + +/** + * When used, causes Botkit to emit special events for teams "invokes" + * Based on https://github.com/microsoft/botbuilder-js/blob/master/libraries/botbuilder/src/teamsActivityHandler.ts + * This allows Botkit bots to respond directly to task/fetch or task/submit events, as an example. + */ +export class TeamsInvokeMiddleware extends MiddlewareSet { + /** + * Not for direct use - implements the MiddlewareSet's required onTurn function used to process the event + * @param context + * @param next + */ + public async onTurn(context: TurnContext, next: () => Promise): Promise { + if (context.activity.type === 'invoke') { + if (!context.activity.name && context.activity.channelId === 'msteams') { + context.activity.channelData.botkitEventType = 'cardAction'; + } else { + switch (context.activity.name) { + case 'fileConsent/invoke': + case 'actionableMessage/executeAction': + case 'composeExtension/queryLink': + case 'composeExtension/query': + case 'composeExtension/selectItem': + case 'composeExtension/submitAction': + case 'composeExtension/fetchTask': + case 'composeExtension/querySettingUrl': + case 'composeExtension/setting': + case 'composeExtension/onCardButtonClicked': + case 'task/fetch': + case 'task/submit': + context.activity.channelData.botkitEventType = context.activity.name; + break; + } + } + } + await next(); + } +} diff --git a/packages/botkit/tests/Core.tests.js b/packages/botkit/tests/Core.tests.js index 80e749612..bccef07c0 100644 --- a/packages/botkit/tests/Core.tests.js +++ b/packages/botkit/tests/Core.tests.js @@ -1,5 +1,5 @@ const assert = require('assert'); -const { Botkit, BotWorker } = require('../'); +const { Botkit, TeamsBotWorker } = require('../'); const { TwilioAdapter, TwilioBotWorker } = require('../../botbuilder-adapter-twilio-sms'); describe('Botkit', function() { @@ -26,7 +26,7 @@ describe('Botkit', function() { const anotherAdapter = new TwilioAdapter({enable_incomplete: true}); const bot = await controller.spawn({}); - assert((bot instanceof BotWorker), 'Default Bot worker is wrong type'); + assert((bot instanceof TeamsBotWorker), 'Default Bot worker is wrong type'); const tbot = await controller.spawn({}, anotherAdapter); assert((tbot instanceof TwilioBotWorker), 'Secondary Bot worker is wrong type'); diff --git a/packages/testbot/features/middlewares.js b/packages/testbot/features/middlewares.js index 48d670d4a..056e173e9 100644 --- a/packages/testbot/features/middlewares.js +++ b/packages/testbot/features/middlewares.js @@ -1,12 +1,12 @@ module.exports = function(controller) { controller.middleware.receive.use((bot, message, next) => { - console.log('IN > ', message.text); + console.log('IN > ', message.text, message.type); next(); }); controller.middleware.send.use((bot, message, next) => { - console.log('OUT > ', message.text, message.channelData.quick_replies ? message.channelData.quick_replies : null, message.channelData.attachments ? message.channelData.attachments : null); + console.log('OUT > ', message.text, message.channelData && message.channelData.quick_replies ? message.channelData.quick_replies : null, message.channelData && message.channelData.attachments ? message.channelData.attachments : null); next(); }); diff --git a/packages/testbot/features/teams_features.js b/packages/testbot/features/teams_features.js new file mode 100644 index 000000000..2416f79be --- /dev/null +++ b/packages/testbot/features/teams_features.js @@ -0,0 +1,135 @@ +const request = require('request'); + +module.exports = function(controller) { + + if (!controller.adapter.name) { + + const adaptiveCard = { + "type": "AdaptiveCard", + "body": [ + { + "type": "TextBlock", + "text": "Here is a ninja cat:" + }, + { + "type": "Image", + "url": "http://adaptivecards.io/content/cats/1.png", + "size": "Medium" + }, + { + "type": "ActionSet", + "actions": [ + { + "type": "Action.Submit", + "title": "Message Submit", + "id": "begin", + "data": { + "command": "message" + } + }, + { + "type": "Action.Submit", + "title": "Card Submit", + "id": "begin", + "data": { + "command": "card" + } + }, + { + "type": "Action.Submit", + "title": "Close", + "id": "begin", + "data": { + "command": "close" + } + }, + ], + "horizontalAlignment": "Center" + } + ], + "version": "1.0" + } + + controller.hears('getTeamDetails', 'message', async(bot, message) => { + try { + await bot.reply(message, JSON.stringify(await bot.teams.getTeamDetails(bot.getConfig('context')))); + } catch(err) { + await bot.reply(message, err.message); + } + }); + + + controller.hears('getMember', 'message', async(bot, message) => { + try { + await bot.reply(message, JSON.stringify(await bot.teams.getMember(bot.getConfig('context'), message.user))); + } catch(err) { + await bot.reply(message, err.message); + } + }); + + controller.hears('taskModule', 'message', async(bot, message) => { + await bot.reply(message,{ + attachments: [{ + "contentType": "application/vnd.microsoft.card.hero", + "content": { + "buttons": [ + { + "type": "invoke", + "title": "Task Module", + "value": {type: 'task/fetch'} + } + ], + "text": "Launch a task module by clicking the button.", + "title": "INVOKE A TASK MODULE!" + } + }] + }); + }); + + controller.on('task/fetch', async(bot, message) => { + await bot.replyWithTaskInfo(message,{ + "type": "continue", + "value": { + "title": "Task module title", + "height": 500, + "width": "medium", + card: { + contentType: 'application/vnd.microsoft.card.adaptive', + content: adaptiveCard, + } + } + }) + }); + + + controller.on('task/submit', async(bot, message) => { + + if (message.value.data.command == 'message') { + // reply with a message + await bot.replyWithTaskInfo(message, { + type: 'message', + value: 'Submitted!', + }); + } else if (message.value.data.command == 'card') { + // reply with another card + await bot.replyWithTaskInfo(message, { + "type": "continue", + "value": { + "title": "Task module title", + "height": 500, + "width": "medium", + card: { + contentType: 'application/vnd.microsoft.card.adaptive', + content: adaptiveCard, + } + } + }); + } else { + // just close the task module + await bot.replyWithTaskInfo(message, null); + } + + }); + + } +} \ No newline at end of file From 04f3366820624354f582af2b4caedfa03ce7a1f0 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 15:16:06 -0500 Subject: [PATCH 06/18] update docs --- changelog.md | 5 + packages/docs/index.json | 6541 ++++++++++++++++++++++-------- packages/docs/package-lock.json | 66 +- packages/docs/package.json | 2 +- packages/docs/platforms/slack.md | 5 + packages/docs/reference/core.md | 415 +- packages/docs/reference/index.md | 2 + packages/docs/reference/webex.md | 57 + 8 files changed, 5394 insertions(+), 1699 deletions(-) diff --git a/changelog.md b/changelog.md index 80d961d2a..75ee54234 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,11 @@ * Update dependencies to [Bot Framework 4.10] * Update some dev dependencies like lerna, eslint, etc. +* NEW: Additional support for Microsoft Teams! + * Bot workers spawned from the default adapter now feature `bot.teams` which is an instance to the [TeamsInfo helper class](https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest). + * Botkit now includes an optional middleware [TeamsInvokeMiddleware] for handling "invoke" responses from Teams including task modules. -- [Docs here](packages/docs/reference/core.md#TeamsInvokeMiddleware) + * Botkit now includes `bot.replyWithTaskInfo()` which can be used to respond to task module events. [Read about Taks Modules](https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules) -- [Docs here](packages/docs/reference/core.md#replyWithTaskInfo) + * FIX: Adjust mechanism for handling templates in channelData to avoid data loss. Thanks [@ashitikov](https://github.com/ashitikov) for the [pull request](https://github.com/howdyai/botkit/pull/1979) * FIX: Botkit will now spawn the appropriate botworker if a custom adapter is passed in. Thanks to [@etiennellipse](https://github.com/etiennellipse) for [reporting this issue](https://github.com/howdyai/botkit/issues/1984)! diff --git a/packages/docs/index.json b/packages/docs/index.json index 2a6d40e9a..76ad65b23 100644 --- a/packages/docs/index.json +++ b/packages/docs/index.json @@ -6,7 +6,7 @@ "path": "reference/core.md", "classes": [ { - "id": 126, + "id": 188, "name": "Botkit", "kind": 128, "kindString": "Class", @@ -19,7 +19,7 @@ }, "children": [ { - "id": 140, + "id": 202, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -34,7 +34,7 @@ }, "signatures": [ { - "id": 141, + "id": 203, "name": "new Botkit", "kind": 16384, "kindString": "Constructor signature", @@ -47,7 +47,7 @@ }, "parameters": [ { - "id": 142, + "id": 204, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -59,14 +59,14 @@ }, "type": { "type": "reference", - "id": 80, + "id": 140, "name": "BotkitConfiguration" } } ], "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } } @@ -74,13 +74,13 @@ "sources": [ { "fileName": "core.ts", - "line": 299, + "line": 310, "character": 28 } ] }, { - "id": 139, + "id": 201, "name": "PATH", "kind": 1024, "kindString": "Property", @@ -95,7 +95,7 @@ "sources": [ { "fileName": "core.ts", - "line": 294, + "line": 305, "character": 15 } ], @@ -105,7 +105,7 @@ } }, { - "id": 137, + "id": 199, "name": "adapter", "kind": 1024, "kindString": "Property", @@ -120,7 +120,7 @@ "sources": [ { "fileName": "core.ts", - "line": 284, + "line": 295, "character": 18 } ], @@ -130,7 +130,7 @@ } }, { - "id": 138, + "id": 200, "name": "dialogSet", "kind": 1024, "kindString": "Property", @@ -145,7 +145,7 @@ "sources": [ { "fileName": "core.ts", - "line": 289, + "line": 300, "character": 20 } ], @@ -155,7 +155,7 @@ } }, { - "id": 136, + "id": 198, "name": "http", "kind": 1024, "kindString": "Property", @@ -170,7 +170,7 @@ "sources": [ { "fileName": "core.ts", - "line": 279, + "line": 290, "character": 15 } ], @@ -180,7 +180,7 @@ } }, { - "id": 134, + "id": 196, "name": "storage", "kind": 1024, "kindString": "Property", @@ -195,7 +195,7 @@ "sources": [ { "fileName": "core.ts", - "line": 269, + "line": 280, "character": 18 } ], @@ -205,7 +205,7 @@ } }, { - "id": 127, + "id": 189, "name": "version", "kind": 1024, "kindString": "Property", @@ -220,7 +220,7 @@ "sources": [ { "fileName": "core.ts", - "line": 229, + "line": 240, "character": 18 } ], @@ -231,7 +231,7 @@ "defaultValue": "require('../package.json').version" }, { - "id": 135, + "id": 197, "name": "webserver", "kind": 1024, "kindString": "Property", @@ -246,7 +246,7 @@ "sources": [ { "fileName": "core.ts", - "line": 274, + "line": 285, "character": 20 } ], @@ -256,7 +256,7 @@ } }, { - "id": 158, + "id": 220, "name": "plugins", "kind": 262144, "kindString": "Accessor", @@ -270,7 +270,7 @@ }, "getSignature": [ { - "id": 159, + "id": 221, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -283,7 +283,7 @@ "type": { "type": "reflection", "declaration": { - "id": 160, + "id": 222, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -292,7 +292,7 @@ }, "indexSignature": [ { - "id": 161, + "id": 223, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -301,7 +301,7 @@ }, "parameters": [ { - "id": 162, + "id": 224, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -323,7 +323,7 @@ "sources": [ { "fileName": "core.ts", - "line": 559, + "line": 572, "character": 25 } ] @@ -334,13 +334,13 @@ "sources": [ { "fileName": "core.ts", - "line": 559, + "line": 572, "character": 22 } ] }, { - "id": 170, + "id": 232, "name": "addDep", "kind": 2048, "kindString": "Method", @@ -351,7 +351,7 @@ }, "signatures": [ { - "id": 171, + "id": 233, "name": "addDep", "kind": 4096, "kindString": "Call signature", @@ -364,7 +364,7 @@ }, "parameters": [ { - "id": 172, + "id": 234, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -389,13 +389,13 @@ "sources": [ { "fileName": "core.ts", - "line": 610, + "line": 623, "character": 17 } ] }, { - "id": 229, + "id": 291, "name": "addDialog", "kind": 2048, "kindString": "Method", @@ -406,7 +406,7 @@ }, "signatures": [ { - "id": 230, + "id": 292, "name": "addDialog", "kind": 4096, "kindString": "Call signature", @@ -419,7 +419,7 @@ }, "parameters": [ { - "id": 231, + "id": 293, "name": "dialog", "kind": 32768, "kindString": "Parameter", @@ -444,13 +444,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1161, + "line": 1178, "character": 20 } ] }, { - "id": 154, + "id": 216, "name": "addPluginExtension", "kind": 2048, "kindString": "Method", @@ -461,7 +461,7 @@ }, "signatures": [ { - "id": 155, + "id": 217, "name": "addPluginExtension", "kind": 4096, "kindString": "Call signature", @@ -474,7 +474,7 @@ }, "parameters": [ { - "id": 156, + "id": 218, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -490,7 +490,7 @@ } }, { - "id": 157, + "id": 219, "name": "extension", "kind": 32768, "kindString": "Parameter", @@ -515,13 +515,13 @@ "sources": [ { "fileName": "core.ts", - "line": 549, + "line": 562, "character": 29 } ] }, { - "id": 232, + "id": 294, "name": "afterDialog", "kind": 2048, "kindString": "Method", @@ -532,7 +532,7 @@ }, "signatures": [ { - "id": 233, + "id": 295, "name": "afterDialog", "kind": 4096, "kindString": "Call signature", @@ -545,7 +545,7 @@ }, "parameters": [ { - "id": 234, + "id": 296, "name": "dialog", "kind": 32768, "kindString": "Parameter", @@ -570,7 +570,7 @@ } }, { - "id": 235, + "id": 297, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -582,7 +582,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } } @@ -596,13 +596,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1188, + "line": 1205, "character": 22 } ] }, { - "id": 173, + "id": 235, "name": "completeDep", "kind": 2048, "kindString": "Method", @@ -613,7 +613,7 @@ }, "signatures": [ { - "id": 174, + "id": 236, "name": "completeDep", "kind": 4096, "kindString": "Call signature", @@ -625,7 +625,7 @@ }, "parameters": [ { - "id": 175, + "id": 237, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -650,13 +650,13 @@ "sources": [ { "fileName": "core.ts", - "line": 621, + "line": 634, "character": 22 } ] }, { - "id": 145, + "id": 207, "name": "getConfig", "kind": 2048, "kindString": "Method", @@ -667,7 +667,7 @@ }, "signatures": [ { - "id": 146, + "id": 208, "name": "getConfig", "kind": 4096, "kindString": "Call signature", @@ -681,7 +681,7 @@ }, "parameters": [ { - "id": 147, + "id": 209, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -707,13 +707,13 @@ "sources": [ { "fileName": "core.ts", - "line": 464, + "line": 477, "character": 20 } ] }, { - "id": 167, + "id": 229, "name": "getLocalView", "kind": 2048, "kindString": "Method", @@ -724,7 +724,7 @@ }, "signatures": [ { - "id": 168, + "id": 230, "name": "getLocalView", "kind": 4096, "kindString": "Call signature", @@ -736,7 +736,7 @@ }, "parameters": [ { - "id": 169, + "id": 231, "name": "path_to_view", "kind": 32768, "kindString": "Parameter", @@ -761,13 +761,13 @@ "sources": [ { "fileName": "core.ts", - "line": 588, + "line": 601, "character": 23 } ] }, { - "id": 181, + "id": 243, "name": "handleTurn", "kind": 2048, "kindString": "Method", @@ -778,7 +778,7 @@ }, "signatures": [ { - "id": 182, + "id": 244, "name": "handleTurn", "kind": 4096, "kindString": "Call signature", @@ -790,7 +790,7 @@ }, "parameters": [ { - "id": 183, + "id": 245, "name": "turnContext", "kind": 32768, "kindString": "Parameter", @@ -821,13 +821,13 @@ "sources": [ { "fileName": "core.ts", - "line": 698, + "line": 711, "character": 27 } ] }, { - "id": 187, + "id": 249, "name": "hears", "kind": 2048, "kindString": "Method", @@ -838,7 +838,7 @@ }, "signatures": [ { - "id": 188, + "id": 250, "name": "hears", "kind": 4096, "kindString": "Call signature", @@ -851,7 +851,7 @@ }, "parameters": [ { - "id": 189, + "id": 251, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -880,7 +880,7 @@ { "type": "reflection", "declaration": { - "id": 190, + "id": 252, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -889,7 +889,7 @@ }, "signatures": [ { - "id": 191, + "id": 253, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -898,7 +898,7 @@ }, "parameters": [ { - "id": 192, + "id": 254, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -907,7 +907,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -940,7 +940,7 @@ { "type": "reflection", "declaration": { - "id": 193, + "id": 255, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -949,7 +949,7 @@ }, "signatures": [ { - "id": 194, + "id": 256, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -958,7 +958,7 @@ }, "parameters": [ { - "id": 195, + "id": 257, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -967,7 +967,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -987,7 +987,7 @@ "sources": [ { "fileName": "core.ts", - "line": 899, + "line": 912, "character": 115 } ] @@ -997,7 +997,7 @@ } }, { - "id": 196, + "id": 258, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -1025,7 +1025,7 @@ } }, { - "id": 197, + "id": 259, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -1037,7 +1037,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } } @@ -1051,13 +1051,13 @@ "sources": [ { "fileName": "core.ts", - "line": 899, + "line": 912, "character": 16 } ] }, { - "id": 198, + "id": 260, "name": "interrupts", "kind": 2048, "kindString": "Method", @@ -1068,7 +1068,7 @@ }, "signatures": [ { - "id": 199, + "id": 261, "name": "interrupts", "kind": 4096, "kindString": "Call signature", @@ -1081,7 +1081,7 @@ }, "parameters": [ { - "id": 200, + "id": 262, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -1110,7 +1110,7 @@ { "type": "reflection", "declaration": { - "id": 201, + "id": 263, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1119,7 +1119,7 @@ }, "signatures": [ { - "id": 202, + "id": 264, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -1128,7 +1128,7 @@ }, "parameters": [ { - "id": 203, + "id": 265, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1137,7 +1137,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -1177,7 +1177,7 @@ { "type": "reflection", "declaration": { - "id": 204, + "id": 266, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1186,7 +1186,7 @@ }, "signatures": [ { - "id": 205, + "id": 267, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -1195,7 +1195,7 @@ }, "parameters": [ { - "id": 206, + "id": 268, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1204,7 +1204,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -1224,7 +1224,7 @@ "sources": [ { "fileName": "core.ts", - "line": 954, + "line": 967, "character": 131 } ] @@ -1234,7 +1234,7 @@ } }, { - "id": 207, + "id": 269, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -1262,7 +1262,7 @@ } }, { - "id": 208, + "id": 270, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -1274,7 +1274,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } } @@ -1288,13 +1288,13 @@ "sources": [ { "fileName": "core.ts", - "line": 954, + "line": 967, "character": 21 } ] }, { - "id": 222, + "id": 284, "name": "loadModule", "kind": 2048, "kindString": "Method", @@ -1305,7 +1305,7 @@ }, "signatures": [ { - "id": 223, + "id": 285, "name": "loadModule", "kind": 4096, "kindString": "Call signature", @@ -1317,7 +1317,7 @@ }, "parameters": [ { - "id": 224, + "id": 286, "name": "p", "kind": 32768, "kindString": "Parameter", @@ -1342,13 +1342,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1104, + "line": 1121, "character": 21 } ] }, { - "id": 225, + "id": 287, "name": "loadModules", "kind": 2048, "kindString": "Method", @@ -1359,7 +1359,7 @@ }, "signatures": [ { - "id": 226, + "id": 288, "name": "loadModules", "kind": 4096, "kindString": "Call signature", @@ -1372,7 +1372,7 @@ }, "parameters": [ { - "id": 227, + "id": 289, "name": "p", "kind": 32768, "kindString": "Parameter", @@ -1388,7 +1388,7 @@ } }, { - "id": 228, + "id": 290, "name": "exts", "kind": 32768, "kindString": "Parameter", @@ -1417,13 +1417,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1133, + "line": 1150, "character": 22 } ] }, { - "id": 209, + "id": 271, "name": "on", "kind": 2048, "kindString": "Method", @@ -1434,7 +1434,7 @@ }, "signatures": [ { - "id": 210, + "id": 272, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -1447,7 +1447,7 @@ }, "parameters": [ { - "id": 211, + "id": 273, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -1475,7 +1475,7 @@ } }, { - "id": 212, + "id": 274, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -1487,7 +1487,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } } @@ -1501,13 +1501,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1006, + "line": 1019, "character": 13 } ] }, { - "id": 163, + "id": 225, "name": "publicFolder", "kind": 2048, "kindString": "Method", @@ -1518,7 +1518,7 @@ }, "signatures": [ { - "id": 164, + "id": 226, "name": "publicFolder", "kind": 4096, "kindString": "Call signature", @@ -1531,7 +1531,7 @@ }, "parameters": [ { - "id": 165, + "id": 227, "name": "alias", "kind": 32768, "kindString": "Parameter", @@ -1547,7 +1547,7 @@ } }, { - "id": 166, + "id": 228, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -1572,13 +1572,13 @@ "sources": [ { "fileName": "core.ts", - "line": 574, + "line": 587, "character": 23 } ] }, { - "id": 176, + "id": 238, "name": "ready", "kind": 2048, "kindString": "Method", @@ -1589,7 +1589,7 @@ }, "signatures": [ { - "id": 177, + "id": 239, "name": "ready", "kind": 4096, "kindString": "Call signature", @@ -1602,7 +1602,7 @@ }, "parameters": [ { - "id": 178, + "id": 240, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -1615,7 +1615,7 @@ "type": { "type": "reflection", "declaration": { - "id": 179, + "id": 241, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1624,7 +1624,7 @@ }, "signatures": [ { - "id": 180, + "id": 242, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -1640,7 +1640,7 @@ "sources": [ { "fileName": "core.ts", - "line": 663, + "line": 676, "character": 25 } ] @@ -1657,13 +1657,13 @@ "sources": [ { "fileName": "core.ts", - "line": 663, + "line": 676, "character": 16 } ] }, { - "id": 184, + "id": 246, "name": "saveState", "kind": 2048, "kindString": "Method", @@ -1674,7 +1674,7 @@ }, "signatures": [ { - "id": 185, + "id": 247, "name": "saveState", "kind": 4096, "kindString": "Call signature", @@ -1686,7 +1686,7 @@ }, "parameters": [ { - "id": 186, + "id": 248, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -1698,7 +1698,7 @@ }, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } } @@ -1718,13 +1718,13 @@ "sources": [ { "fileName": "core.ts", - "line": 770, + "line": 783, "character": 26 } ] }, { - "id": 143, + "id": 205, "name": "shutdown", "kind": 2048, "kindString": "Method", @@ -1735,7 +1735,7 @@ }, "signatures": [ { - "id": 144, + "id": 206, "name": "shutdown", "kind": 4096, "kindString": "Call signature", @@ -1761,13 +1761,13 @@ "sources": [ { "fileName": "core.ts", - "line": 440, + "line": 453, "character": 25 } ] }, { - "id": 218, + "id": 280, "name": "spawn", "kind": 2048, "kindString": "Method", @@ -1778,7 +1778,7 @@ }, "signatures": [ { - "id": 219, + "id": 281, "name": "spawn", "kind": 4096, "kindString": "Call signature", @@ -1790,7 +1790,7 @@ }, "parameters": [ { - "id": 220, + "id": 282, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -1807,7 +1807,7 @@ } }, { - "id": 221, + "id": 283, "name": "custom_adapter", "kind": 32768, "kindString": "Parameter", @@ -1826,7 +1826,7 @@ "typeArguments": [ { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } ], @@ -1837,13 +1837,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1062, + "line": 1075, "character": 22 } ] }, { - "id": 213, + "id": 275, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -1854,7 +1854,7 @@ }, "signatures": [ { - "id": 214, + "id": 276, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -1867,7 +1867,7 @@ }, "parameters": [ { - "id": 215, + "id": 277, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -1883,7 +1883,7 @@ } }, { - "id": 216, + "id": 278, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -1896,12 +1896,12 @@ }, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } }, { - "id": 217, + "id": 279, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1914,7 +1914,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -1934,13 +1934,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1038, + "line": 1051, "character": 24 } ] }, { - "id": 148, + "id": 210, "name": "usePlugin", "kind": 2048, "kindString": "Method", @@ -1951,7 +1951,7 @@ }, "signatures": [ { - "id": 149, + "id": 211, "name": "usePlugin", "kind": 4096, "kindString": "Call signature", @@ -1963,7 +1963,7 @@ }, "parameters": [ { - "id": 150, + "id": 212, "name": "plugin_or_function", "kind": 32768, "kindString": "Parameter", @@ -1979,7 +1979,7 @@ { "type": "reflection", "declaration": { - "id": 151, + "id": 213, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1988,7 +1988,7 @@ }, "signatures": [ { - "id": 152, + "id": 214, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -1997,7 +1997,7 @@ }, "parameters": [ { - "id": 153, + "id": 215, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -2006,14 +2006,14 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } } ], "type": { "type": "reference", - "id": 114, + "id": 176, "name": "BotkitPlugin" } } @@ -2021,7 +2021,7 @@ "sources": [ { "fileName": "core.ts", - "line": 476, + "line": 489, "character": 40 } ] @@ -2029,7 +2029,7 @@ }, { "type": "reference", - "id": 114, + "id": 176, "name": "BotkitPlugin" } ] @@ -2045,13 +2045,13 @@ "sources": [ { "fileName": "core.ts", - "line": 476, + "line": 489, "character": 20 } ] }, { - "id": 128, + "id": 190, "name": "middleware", "kind": 2097152, "kindString": "Object literal", @@ -2066,7 +2066,7 @@ }, "children": [ { - "id": 130, + "id": 192, "name": "ingest", "kind": 32, "kindString": "Variable", @@ -2077,7 +2077,7 @@ "sources": [ { "fileName": "core.ts", - "line": 248, + "line": 259, "character": 14 } ], @@ -2088,7 +2088,7 @@ "defaultValue": "new Ware()" }, { - "id": 133, + "id": 195, "name": "interpret", "kind": 32, "kindString": "Variable", @@ -2099,7 +2099,7 @@ "sources": [ { "fileName": "core.ts", - "line": 251, + "line": 262, "character": 17 } ], @@ -2110,7 +2110,7 @@ "defaultValue": "new Ware()" }, { - "id": 132, + "id": 194, "name": "receive", "kind": 32, "kindString": "Variable", @@ -2121,7 +2121,7 @@ "sources": [ { "fileName": "core.ts", - "line": 250, + "line": 261, "character": 15 } ], @@ -2132,7 +2132,7 @@ "defaultValue": "new Ware()" }, { - "id": 131, + "id": 193, "name": "send", "kind": 32, "kindString": "Variable", @@ -2143,7 +2143,7 @@ "sources": [ { "fileName": "core.ts", - "line": 249, + "line": 260, "character": 12 } ], @@ -2154,7 +2154,7 @@ "defaultValue": "new Ware()" }, { - "id": 129, + "id": 191, "name": "spawn", "kind": 32, "kindString": "Variable", @@ -2165,7 +2165,7 @@ "sources": [ { "fileName": "core.ts", - "line": 247, + "line": 258, "character": 13 } ], @@ -2181,18 +2181,18 @@ "title": "Variables", "kind": 32, "children": [ - 130, - 133, - 132, - 131, - 129 + 192, + 195, + 194, + 193, + 191 ] } ], "sources": [ { "fileName": "core.ts", - "line": 246, + "line": 257, "character": 21 } ], @@ -2207,73 +2207,73 @@ "title": "Constructors", "kind": 512, "children": [ - 140 + 202 ] }, { "title": "Properties", "kind": 1024, "children": [ - 139, - 137, - 138, - 136, - 134, - 127, - 135 + 201, + 199, + 200, + 198, + 196, + 189, + 197 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 158 + 220 ] }, { "title": "Methods", "kind": 2048, "children": [ - 170, - 229, - 154, 232, - 173, - 145, - 167, - 181, - 187, - 198, - 222, + 291, + 216, + 294, + 235, + 207, + 229, + 243, + 249, + 260, + 284, + 287, + 271, 225, - 209, - 163, - 176, - 184, - 143, - 218, - 213, - 148 + 238, + 246, + 205, + 280, + 275, + 210 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 128 + 190 ] } ], "sources": [ { "fileName": "core.ts", - "line": 176, + "line": 187, "character": 19 } ], "props": [ { - "id": 139, + "id": 201, "name": "PATH", "kind": 1024, "kindString": "Property", @@ -2288,7 +2288,7 @@ "sources": [ { "fileName": "core.ts", - "line": 294, + "line": 305, "character": 15 } ], @@ -2298,7 +2298,7 @@ } }, { - "id": 137, + "id": 199, "name": "adapter", "kind": 1024, "kindString": "Property", @@ -2313,7 +2313,7 @@ "sources": [ { "fileName": "core.ts", - "line": 284, + "line": 295, "character": 18 } ], @@ -2323,7 +2323,7 @@ } }, { - "id": 138, + "id": 200, "name": "dialogSet", "kind": 1024, "kindString": "Property", @@ -2338,7 +2338,7 @@ "sources": [ { "fileName": "core.ts", - "line": 289, + "line": 300, "character": 20 } ], @@ -2348,7 +2348,7 @@ } }, { - "id": 136, + "id": 198, "name": "http", "kind": 1024, "kindString": "Property", @@ -2363,7 +2363,7 @@ "sources": [ { "fileName": "core.ts", - "line": 279, + "line": 290, "character": 15 } ], @@ -2373,7 +2373,7 @@ } }, { - "id": 134, + "id": 196, "name": "storage", "kind": 1024, "kindString": "Property", @@ -2388,7 +2388,7 @@ "sources": [ { "fileName": "core.ts", - "line": 269, + "line": 280, "character": 18 } ], @@ -2398,7 +2398,7 @@ } }, { - "id": 127, + "id": 189, "name": "version", "kind": 1024, "kindString": "Property", @@ -2413,7 +2413,7 @@ "sources": [ { "fileName": "core.ts", - "line": 229, + "line": 240, "character": 18 } ], @@ -2424,7 +2424,7 @@ "defaultValue": "require('../package.json').version" }, { - "id": 135, + "id": 197, "name": "webserver", "kind": 1024, "kindString": "Property", @@ -2439,7 +2439,7 @@ "sources": [ { "fileName": "core.ts", - "line": 274, + "line": 285, "character": 20 } ], @@ -2449,7 +2449,7 @@ } }, { - "id": 158, + "id": 220, "name": "plugins", "kind": 262144, "kindString": "Accessor", @@ -2463,7 +2463,7 @@ }, "getSignature": [ { - "id": 159, + "id": 221, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -2476,7 +2476,7 @@ "type": { "type": "reflection", "declaration": { - "id": 160, + "id": 222, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2485,7 +2485,7 @@ }, "indexSignature": [ { - "id": 161, + "id": 223, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2494,7 +2494,7 @@ }, "parameters": [ { - "id": 162, + "id": 224, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2516,7 +2516,7 @@ "sources": [ { "fileName": "core.ts", - "line": 559, + "line": 572, "character": 25 } ] @@ -2527,7 +2527,7 @@ "sources": [ { "fileName": "core.ts", - "line": 559, + "line": 572, "character": 22 } ] @@ -2535,7 +2535,7 @@ ], "methods": [ { - "id": 170, + "id": 232, "name": "addDep", "kind": 2048, "kindString": "Method", @@ -2546,7 +2546,7 @@ }, "signatures": [ { - "id": 171, + "id": 233, "name": "addDep", "kind": 4096, "kindString": "Call signature", @@ -2559,7 +2559,7 @@ }, "parameters": [ { - "id": 172, + "id": 234, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -2584,13 +2584,13 @@ "sources": [ { "fileName": "core.ts", - "line": 610, + "line": 623, "character": 17 } ] }, { - "id": 229, + "id": 291, "name": "addDialog", "kind": 2048, "kindString": "Method", @@ -2601,7 +2601,7 @@ }, "signatures": [ { - "id": 230, + "id": 292, "name": "addDialog", "kind": 4096, "kindString": "Call signature", @@ -2614,7 +2614,7 @@ }, "parameters": [ { - "id": 231, + "id": 293, "name": "dialog", "kind": 32768, "kindString": "Parameter", @@ -2639,13 +2639,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1161, + "line": 1178, "character": 20 } ] }, { - "id": 154, + "id": 216, "name": "addPluginExtension", "kind": 2048, "kindString": "Method", @@ -2656,7 +2656,7 @@ }, "signatures": [ { - "id": 155, + "id": 217, "name": "addPluginExtension", "kind": 4096, "kindString": "Call signature", @@ -2669,7 +2669,7 @@ }, "parameters": [ { - "id": 156, + "id": 218, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -2685,7 +2685,7 @@ } }, { - "id": 157, + "id": 219, "name": "extension", "kind": 32768, "kindString": "Parameter", @@ -2710,13 +2710,13 @@ "sources": [ { "fileName": "core.ts", - "line": 549, + "line": 562, "character": 29 } ] }, { - "id": 232, + "id": 294, "name": "afterDialog", "kind": 2048, "kindString": "Method", @@ -2727,7 +2727,7 @@ }, "signatures": [ { - "id": 233, + "id": 295, "name": "afterDialog", "kind": 4096, "kindString": "Call signature", @@ -2740,7 +2740,7 @@ }, "parameters": [ { - "id": 234, + "id": 296, "name": "dialog", "kind": 32768, "kindString": "Parameter", @@ -2765,7 +2765,7 @@ } }, { - "id": 235, + "id": 297, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -2777,7 +2777,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } } @@ -2791,13 +2791,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1188, + "line": 1205, "character": 22 } ] }, { - "id": 173, + "id": 235, "name": "completeDep", "kind": 2048, "kindString": "Method", @@ -2808,7 +2808,7 @@ }, "signatures": [ { - "id": 174, + "id": 236, "name": "completeDep", "kind": 4096, "kindString": "Call signature", @@ -2820,7 +2820,7 @@ }, "parameters": [ { - "id": 175, + "id": 237, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -2845,13 +2845,13 @@ "sources": [ { "fileName": "core.ts", - "line": 621, + "line": 634, "character": 22 } ] }, { - "id": 145, + "id": 207, "name": "getConfig", "kind": 2048, "kindString": "Method", @@ -2862,7 +2862,7 @@ }, "signatures": [ { - "id": 146, + "id": 208, "name": "getConfig", "kind": 4096, "kindString": "Call signature", @@ -2876,7 +2876,7 @@ }, "parameters": [ { - "id": 147, + "id": 209, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2902,13 +2902,13 @@ "sources": [ { "fileName": "core.ts", - "line": 464, + "line": 477, "character": 20 } ] }, { - "id": 167, + "id": 229, "name": "getLocalView", "kind": 2048, "kindString": "Method", @@ -2919,7 +2919,7 @@ }, "signatures": [ { - "id": 168, + "id": 230, "name": "getLocalView", "kind": 4096, "kindString": "Call signature", @@ -2931,7 +2931,7 @@ }, "parameters": [ { - "id": 169, + "id": 231, "name": "path_to_view", "kind": 32768, "kindString": "Parameter", @@ -2956,13 +2956,13 @@ "sources": [ { "fileName": "core.ts", - "line": 588, + "line": 601, "character": 23 } ] }, { - "id": 181, + "id": 243, "name": "handleTurn", "kind": 2048, "kindString": "Method", @@ -2973,7 +2973,7 @@ }, "signatures": [ { - "id": 182, + "id": 244, "name": "handleTurn", "kind": 4096, "kindString": "Call signature", @@ -2985,7 +2985,7 @@ }, "parameters": [ { - "id": 183, + "id": 245, "name": "turnContext", "kind": 32768, "kindString": "Parameter", @@ -3016,13 +3016,13 @@ "sources": [ { "fileName": "core.ts", - "line": 698, + "line": 711, "character": 27 } ] }, { - "id": 187, + "id": 249, "name": "hears", "kind": 2048, "kindString": "Method", @@ -3033,7 +3033,7 @@ }, "signatures": [ { - "id": 188, + "id": 250, "name": "hears", "kind": 4096, "kindString": "Call signature", @@ -3046,7 +3046,7 @@ }, "parameters": [ { - "id": 189, + "id": 251, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -3075,7 +3075,7 @@ { "type": "reflection", "declaration": { - "id": 190, + "id": 252, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3084,7 +3084,7 @@ }, "signatures": [ { - "id": 191, + "id": 253, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3093,7 +3093,7 @@ }, "parameters": [ { - "id": 192, + "id": 254, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -3102,7 +3102,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -3135,7 +3135,7 @@ { "type": "reflection", "declaration": { - "id": 193, + "id": 255, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3144,7 +3144,7 @@ }, "signatures": [ { - "id": 194, + "id": 256, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3153,7 +3153,7 @@ }, "parameters": [ { - "id": 195, + "id": 257, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -3162,7 +3162,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -3182,7 +3182,7 @@ "sources": [ { "fileName": "core.ts", - "line": 899, + "line": 912, "character": 115 } ] @@ -3192,7 +3192,7 @@ } }, { - "id": 196, + "id": 258, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -3220,7 +3220,7 @@ } }, { - "id": 197, + "id": 259, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -3232,7 +3232,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } } @@ -3246,13 +3246,13 @@ "sources": [ { "fileName": "core.ts", - "line": 899, + "line": 912, "character": 16 } ] }, { - "id": 198, + "id": 260, "name": "interrupts", "kind": 2048, "kindString": "Method", @@ -3263,7 +3263,7 @@ }, "signatures": [ { - "id": 199, + "id": 261, "name": "interrupts", "kind": 4096, "kindString": "Call signature", @@ -3276,7 +3276,7 @@ }, "parameters": [ { - "id": 200, + "id": 262, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -3305,7 +3305,7 @@ { "type": "reflection", "declaration": { - "id": 201, + "id": 263, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3314,7 +3314,7 @@ }, "signatures": [ { - "id": 202, + "id": 264, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3323,7 +3323,7 @@ }, "parameters": [ { - "id": 203, + "id": 265, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -3332,7 +3332,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -3372,7 +3372,7 @@ { "type": "reflection", "declaration": { - "id": 204, + "id": 266, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3381,7 +3381,7 @@ }, "signatures": [ { - "id": 205, + "id": 267, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3390,7 +3390,7 @@ }, "parameters": [ { - "id": 206, + "id": 268, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -3399,7 +3399,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -3419,7 +3419,7 @@ "sources": [ { "fileName": "core.ts", - "line": 954, + "line": 967, "character": 131 } ] @@ -3429,7 +3429,7 @@ } }, { - "id": 207, + "id": 269, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -3457,7 +3457,7 @@ } }, { - "id": 208, + "id": 270, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -3469,7 +3469,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } } @@ -3483,13 +3483,13 @@ "sources": [ { "fileName": "core.ts", - "line": 954, + "line": 967, "character": 21 } ] }, { - "id": 222, + "id": 284, "name": "loadModule", "kind": 2048, "kindString": "Method", @@ -3500,7 +3500,7 @@ }, "signatures": [ { - "id": 223, + "id": 285, "name": "loadModule", "kind": 4096, "kindString": "Call signature", @@ -3512,7 +3512,7 @@ }, "parameters": [ { - "id": 224, + "id": 286, "name": "p", "kind": 32768, "kindString": "Parameter", @@ -3537,13 +3537,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1104, + "line": 1121, "character": 21 } ] }, { - "id": 225, + "id": 287, "name": "loadModules", "kind": 2048, "kindString": "Method", @@ -3554,7 +3554,7 @@ }, "signatures": [ { - "id": 226, + "id": 288, "name": "loadModules", "kind": 4096, "kindString": "Call signature", @@ -3567,7 +3567,7 @@ }, "parameters": [ { - "id": 227, + "id": 289, "name": "p", "kind": 32768, "kindString": "Parameter", @@ -3583,7 +3583,7 @@ } }, { - "id": 228, + "id": 290, "name": "exts", "kind": 32768, "kindString": "Parameter", @@ -3612,13 +3612,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1133, + "line": 1150, "character": 22 } ] }, { - "id": 209, + "id": 271, "name": "on", "kind": 2048, "kindString": "Method", @@ -3629,7 +3629,7 @@ }, "signatures": [ { - "id": 210, + "id": 272, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -3642,7 +3642,7 @@ }, "parameters": [ { - "id": 211, + "id": 273, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -3670,7 +3670,7 @@ } }, { - "id": 212, + "id": 274, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -3682,7 +3682,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } } @@ -3696,13 +3696,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1006, + "line": 1019, "character": 13 } ] }, { - "id": 163, + "id": 225, "name": "publicFolder", "kind": 2048, "kindString": "Method", @@ -3713,7 +3713,7 @@ }, "signatures": [ { - "id": 164, + "id": 226, "name": "publicFolder", "kind": 4096, "kindString": "Call signature", @@ -3726,7 +3726,7 @@ }, "parameters": [ { - "id": 165, + "id": 227, "name": "alias", "kind": 32768, "kindString": "Parameter", @@ -3742,7 +3742,7 @@ } }, { - "id": 166, + "id": 228, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3767,13 +3767,13 @@ "sources": [ { "fileName": "core.ts", - "line": 574, + "line": 587, "character": 23 } ] }, { - "id": 176, + "id": 238, "name": "ready", "kind": 2048, "kindString": "Method", @@ -3784,7 +3784,7 @@ }, "signatures": [ { - "id": 177, + "id": 239, "name": "ready", "kind": 4096, "kindString": "Call signature", @@ -3797,7 +3797,7 @@ }, "parameters": [ { - "id": 178, + "id": 240, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -3810,7 +3810,7 @@ "type": { "type": "reflection", "declaration": { - "id": 179, + "id": 241, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3819,7 +3819,7 @@ }, "signatures": [ { - "id": 180, + "id": 242, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3835,7 +3835,7 @@ "sources": [ { "fileName": "core.ts", - "line": 663, + "line": 676, "character": 25 } ] @@ -3852,13 +3852,13 @@ "sources": [ { "fileName": "core.ts", - "line": 663, + "line": 676, "character": 16 } ] }, { - "id": 184, + "id": 246, "name": "saveState", "kind": 2048, "kindString": "Method", @@ -3869,7 +3869,7 @@ }, "signatures": [ { - "id": 185, + "id": 247, "name": "saveState", "kind": 4096, "kindString": "Call signature", @@ -3881,7 +3881,7 @@ }, "parameters": [ { - "id": 186, + "id": 248, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -3893,7 +3893,7 @@ }, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } } @@ -3913,13 +3913,13 @@ "sources": [ { "fileName": "core.ts", - "line": 770, + "line": 783, "character": 26 } ] }, { - "id": 143, + "id": 205, "name": "shutdown", "kind": 2048, "kindString": "Method", @@ -3930,7 +3930,7 @@ }, "signatures": [ { - "id": 144, + "id": 206, "name": "shutdown", "kind": 4096, "kindString": "Call signature", @@ -3956,13 +3956,13 @@ "sources": [ { "fileName": "core.ts", - "line": 440, + "line": 453, "character": 25 } ] }, { - "id": 218, + "id": 280, "name": "spawn", "kind": 2048, "kindString": "Method", @@ -3973,7 +3973,7 @@ }, "signatures": [ { - "id": 219, + "id": 281, "name": "spawn", "kind": 4096, "kindString": "Call signature", @@ -3985,7 +3985,7 @@ }, "parameters": [ { - "id": 220, + "id": 282, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -4002,7 +4002,7 @@ } }, { - "id": 221, + "id": 283, "name": "custom_adapter", "kind": 32768, "kindString": "Parameter", @@ -4021,7 +4021,7 @@ "typeArguments": [ { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } ], @@ -4032,13 +4032,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1062, + "line": 1075, "character": 22 } ] }, { - "id": 213, + "id": 275, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -4049,7 +4049,7 @@ }, "signatures": [ { - "id": 214, + "id": 276, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -4062,7 +4062,7 @@ }, "parameters": [ { - "id": 215, + "id": 277, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -4078,7 +4078,7 @@ } }, { - "id": 216, + "id": 278, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -4091,12 +4091,12 @@ }, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } }, { - "id": 217, + "id": 279, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -4109,7 +4109,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -4129,13 +4129,13 @@ "sources": [ { "fileName": "core.ts", - "line": 1038, + "line": 1051, "character": 24 } ] }, { - "id": 148, + "id": 210, "name": "usePlugin", "kind": 2048, "kindString": "Method", @@ -4146,7 +4146,7 @@ }, "signatures": [ { - "id": 149, + "id": 211, "name": "usePlugin", "kind": 4096, "kindString": "Call signature", @@ -4158,7 +4158,7 @@ }, "parameters": [ { - "id": 150, + "id": 212, "name": "plugin_or_function", "kind": 32768, "kindString": "Parameter", @@ -4174,7 +4174,7 @@ { "type": "reflection", "declaration": { - "id": 151, + "id": 213, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4183,7 +4183,7 @@ }, "signatures": [ { - "id": 152, + "id": 214, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -4192,7 +4192,7 @@ }, "parameters": [ { - "id": 153, + "id": 215, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -4201,14 +4201,14 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } } ], "type": { "type": "reference", - "id": 114, + "id": 176, "name": "BotkitPlugin" } } @@ -4216,7 +4216,7 @@ "sources": [ { "fileName": "core.ts", - "line": 476, + "line": 489, "character": 40 } ] @@ -4224,7 +4224,7 @@ }, { "type": "reference", - "id": 114, + "id": 176, "name": "BotkitPlugin" } ] @@ -4240,7 +4240,7 @@ "sources": [ { "fileName": "core.ts", - "line": 476, + "line": 489, "character": 20 } ] @@ -4248,7 +4248,7 @@ ], "constructors": [ { - "id": 140, + "id": 202, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4263,7 +4263,7 @@ }, "signatures": [ { - "id": 141, + "id": 203, "name": "new Botkit", "kind": 16384, "kindString": "Constructor signature", @@ -4276,7 +4276,7 @@ }, "parameters": [ { - "id": 142, + "id": 204, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -4288,14 +4288,14 @@ }, "type": { "type": "reference", - "id": 80, + "id": 140, "name": "BotkitConfiguration" } } ], "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } } @@ -4303,7 +4303,7 @@ "sources": [ { "fileName": "core.ts", - "line": 299, + "line": 310, "character": 28 } ] @@ -4311,7 +4311,7 @@ ] }, { - "id": 2, + "id": 114, "name": "BotkitBotFrameworkAdapter", "kind": 128, "kindString": "Class", @@ -4324,56 +4324,31 @@ }, "children": [ { - "id": 3, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 115, + "name": "botkit_worker", + "kind": 1024, + "kindString": "Property", "flags": { "isPublic": true, "isExported": true, "isExternal": true }, - "signatures": [ - { - "id": 4, - "name": "new BotkitBotFrameworkAdapter", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 5, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "id": 2, - "name": "BotkitBotFrameworkAdapter" - } - } - ], "sources": [ { "fileName": "adapter.ts", - "line": 29, - "character": 68 + "line": 32, + "character": 24 } - ] + ], + "type": { + "type": "reference", + "id": 52, + "name": "TeamsBotWorker" + }, + "defaultValue": "TeamsBotWorker" }, { - "id": 12, + "id": 122, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -4384,7 +4359,7 @@ }, "signatures": [ { - "id": 13, + "id": 123, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -4397,7 +4372,7 @@ }, "parameters": [ { - "id": 14, + "id": 124, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -4421,7 +4396,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 15, + "id": 125, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4430,7 +4405,7 @@ }, "children": [ { - "id": 16, + "id": 126, "name": "id", "kind": 32, "kindString": "Variable", @@ -4441,7 +4416,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 72, + "line": 62, "character": 63 } ], @@ -4451,7 +4426,7 @@ } }, { - "id": 17, + "id": 127, "name": "name", "kind": 32, "kindString": "Variable", @@ -4462,7 +4437,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 72, + "line": 62, "character": 77 } ], @@ -4477,15 +4452,15 @@ "title": "Variables", "kind": 32, "children": [ - 16, - 17 + 126, + 127 ] } ], "sources": [ { "fileName": "adapter.ts", - "line": 72, + "line": 62, "character": 60 } ] @@ -4500,7 +4475,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 72, + "line": 62, "character": 28 } ] @@ -4508,24 +4483,24 @@ ], "groups": [ { - "title": "Constructors", - "kind": 512, + "title": "Properties", + "kind": 1024, "children": [ - 3 + 115 ] }, { "title": "Methods", "kind": 2048, "children": [ - 12 + 122 ] } ], "sources": [ { "fileName": "adapter.ts", - "line": 29, + "line": 30, "character": 38 } ], @@ -4535,34 +4510,59 @@ "name": "any" } ], - "props": [], - "methods": [ + "props": [ { - "id": 12, - "name": "getChannels", - "kind": 2048, - "kindString": "Method", + "id": 115, + "name": "botkit_worker", + "kind": 1024, + "kindString": "Property", "flags": { "isPublic": true, "isExported": true, "isExternal": true }, - "signatures": [ + "sources": [ { - "id": 13, - "name": "getChannels", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Get the list of channels in a MS Teams team.\nCan only be called with a TurnContext that originated in a team conversation - 1:1 conversations happen _outside a team_ and thus do not contain the required information to call this API.", - "returns": "an array of channels in the format [{name: string, id: string}]\n" - }, + "fileName": "adapter.ts", + "line": 32, + "character": 24 + } + ], + "type": { + "type": "reference", + "id": 52, + "name": "TeamsBotWorker" + }, + "defaultValue": "TeamsBotWorker" + } + ], + "methods": [ + { + "id": 122, + "name": "getChannels", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 123, + "name": "getChannels", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Get the list of channels in a MS Teams team.\nCan only be called with a TurnContext that originated in a team conversation - 1:1 conversations happen _outside a team_ and thus do not contain the required information to call this API.", + "returns": "an array of channels in the format [{name: string, id: string}]\n" + }, "parameters": [ { - "id": 14, + "id": 124, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -4586,7 +4586,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 15, + "id": 125, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4595,7 +4595,7 @@ }, "children": [ { - "id": 16, + "id": 126, "name": "id", "kind": 32, "kindString": "Variable", @@ -4606,7 +4606,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 72, + "line": 62, "character": 63 } ], @@ -4616,7 +4616,7 @@ } }, { - "id": 17, + "id": 127, "name": "name", "kind": 32, "kindString": "Variable", @@ -4627,7 +4627,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 72, + "line": 62, "character": 77 } ], @@ -4642,15 +4642,15 @@ "title": "Variables", "kind": 32, "children": [ - 16, - 17 + 126, + 127 ] } ], "sources": [ { "fileName": "adapter.ts", - "line": 72, + "line": 62, "character": 60 } ] @@ -4665,67 +4665,17 @@ "sources": [ { "fileName": "adapter.ts", - "line": 72, + "line": 62, "character": 28 } ] } ], - "constructors": [ - { - "id": 3, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 4, - "name": "new BotkitBotFrameworkAdapter", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 5, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "id": 2, - "name": "BotkitBotFrameworkAdapter" - } - } - ], - "sources": [ - { - "fileName": "adapter.ts", - "line": 29, - "character": 68 - } - ] - } - ] + "constructors": [] }, { - "id": 25, - "name": "BotWorker", + "id": 52, + "name": "TeamsBotWorker", "kind": 128, "kindString": "Class", "flags": { @@ -4733,11 +4683,11 @@ "isExternal": true }, "comment": { - "shortText": "A base class for a `bot` instance, an object that contains the information and functionality for taking action in response to an incoming message.\nNote that adapters are likely to extend this class with additional platform-specific methods - refer to the adapter documentation for these extensions." + "shortText": "An extension of the core BotWorker class that exposes the TeamsInfo helper class for MS Teams.\nThis BotWorker is used with the built-in Bot Framework adapter." }, "children": [ { - "id": 26, + "id": 53, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4746,50 +4696,38 @@ "isExported": true, "isExternal": true }, - "comment": { - "shortText": "Create a new BotWorker instance. Do not call this directly - instead, use [controller.spawn()](#spawn)." - }, "signatures": [ { - "id": 27, - "name": "new BotWorker", + "id": 54, + "name": "new TeamsBotWorker", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, - "comment": { - "shortText": "Create a new BotWorker instance. Do not call this directly - instead, use [controller.spawn()](#spawn)." - }, "parameters": [ { - "id": 28, + "id": 55, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, - "comment": { - "shortText": "A pointer to the main Botkit controller" - }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } }, { - "id": 29, + "id": 56, "name": "config", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, - "comment": { - "shortText": "An object typically containing { dialogContext, reference, context, activity }\n" - }, "type": { "type": "intrinsic", "name": "any" @@ -4798,21 +4736,57 @@ ], "type": { "type": "reference", - "id": 25, - "name": "BotWorker" + "id": 52, + "name": "TeamsBotWorker" + }, + "overwrites": { + "type": "reference", + "id": 3, + "name": "BotWorker.__constructor" } } ], "sources": [ { - "fileName": "botworker.ts", - "line": 18, - "character": 25 + "fileName": "teamsHelpers.ts", + "line": 16, + "character": 47 } - ] + ], + "overwrites": { + "type": "reference", + "id": 3, + "name": "BotWorker.__constructor" + } + }, + { + "id": 57, + "name": "teams", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "comment": { + "shortText": " Grants access to the TeamsInfo helper class\nSee: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest" + }, + "sources": [ + { + "fileName": "teamsHelpers.ts", + "line": 26, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "TeamsInfo" + }, + "defaultValue": "TeamsInfo" }, { - "id": 30, + "id": 62, "name": "controller", "kind": 262144, "kindString": "Accessor", @@ -4826,7 +4800,7 @@ }, "getSignature": [ { - "id": 31, + "id": 63, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -4838,8 +4812,13 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" + }, + "inheritedFrom": { + "type": "reference", + "id": 7, + "name": "BotWorker.controller" } } ], @@ -4849,10 +4828,15 @@ "line": 35, "character": 25 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 7, + "name": "BotWorker.controller" + } }, { - "id": 42, + "id": 74, "name": "beginDialog", "kind": 2048, "kindString": "Method", @@ -4863,7 +4847,7 @@ }, "signatures": [ { - "id": 43, + "id": 75, "name": "beginDialog", "kind": 4096, "kindString": "Call signature", @@ -4876,7 +4860,7 @@ }, "parameters": [ { - "id": 44, + "id": 76, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -4892,7 +4876,7 @@ } }, { - "id": 45, + "id": 77, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -4918,6 +4902,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 19, + "name": "BotWorker.beginDialog" } } ], @@ -4927,10 +4916,15 @@ "line": 153, "character": 28 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 19, + "name": "BotWorker.beginDialog" + } }, { - "id": 46, + "id": 78, "name": "cancelAllDialogs", "kind": 2048, "kindString": "Method", @@ -4941,7 +4935,7 @@ }, "signatures": [ { - "id": 47, + "id": 79, "name": "cancelAllDialogs", "kind": 4096, "kindString": "Call signature", @@ -4960,6 +4954,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 23, + "name": "BotWorker.cancelAllDialogs" } } ], @@ -4969,10 +4968,15 @@ "line": 172, "character": 33 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 23, + "name": "BotWorker.cancelAllDialogs" + } }, { - "id": 59, + "id": 91, "name": "changeContext", "kind": 2048, "kindString": "Method", @@ -4983,7 +4987,7 @@ }, "signatures": [ { - "id": 60, + "id": 92, "name": "changeContext", "kind": 4096, "kindString": "Call signature", @@ -4996,7 +5000,7 @@ }, "parameters": [ { - "id": 61, + "id": 93, "name": "reference", "kind": 32768, "kindString": "Parameter", @@ -5023,11 +5027,16 @@ "typeArguments": [ { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 36, + "name": "BotWorker.changeContext" } } ], @@ -5037,10 +5046,15 @@ "line": 250, "character": 30 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 36, + "name": "BotWorker.changeContext" + } }, { - "id": 65, + "id": 97, "name": "ensureMessageFormat", "kind": 2048, "kindString": "Method", @@ -5051,7 +5065,7 @@ }, "signatures": [ { - "id": 66, + "id": 98, "name": "ensureMessageFormat", "kind": 4096, "kindString": "Call signature", @@ -5070,7 +5084,7 @@ }, "parameters": [ { - "id": 67, + "id": 99, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -5085,7 +5099,7 @@ "typeArguments": [ { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } ], @@ -5108,6 +5122,11 @@ } ], "name": "Partial" + }, + "inheritedFrom": { + "type": "reference", + "id": 42, + "name": "BotWorker.ensureMessageFormat" } } ], @@ -5117,10 +5136,15 @@ "line": 332, "character": 30 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 42, + "name": "BotWorker.ensureMessageFormat" + } }, { - "id": 48, + "id": 80, "name": "getActiveDialog", "kind": 2048, "kindString": "Method", @@ -5131,7 +5155,7 @@ }, "signatures": [ { - "id": 49, + "id": 81, "name": "getActiveDialog", "kind": 4096, "kindString": "Call signature", @@ -5154,6 +5178,11 @@ "name": "undefined" } ] + }, + "inheritedFrom": { + "type": "reference", + "id": 25, + "name": "BotWorker.getActiveDialog" } } ], @@ -5163,10 +5192,15 @@ "line": 182, "character": 26 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 25, + "name": "BotWorker.getActiveDialog" + } }, { - "id": 32, + "id": 64, "name": "getConfig", "kind": 2048, "kindString": "Method", @@ -5177,7 +5211,7 @@ }, "signatures": [ { - "id": 33, + "id": 65, "name": "getConfig", "kind": 4096, "kindString": "Call signature", @@ -5191,7 +5225,7 @@ }, "parameters": [ { - "id": 34, + "id": 66, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -5211,6 +5245,11 @@ "type": { "type": "intrinsic", "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "id": 9, + "name": "BotWorker.getConfig" } } ], @@ -5220,10 +5259,15 @@ "line": 50, "character": 20 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 9, + "name": "BotWorker.getConfig" + } }, { - "id": 50, + "id": 82, "name": "hasActiveDialog", "kind": 2048, "kindString": "Method", @@ -5234,7 +5278,7 @@ }, "signatures": [ { - "id": 51, + "id": 83, "name": "hasActiveDialog", "kind": 4096, "kindString": "Call signature", @@ -5248,6 +5292,11 @@ "type": { "type": "intrinsic", "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "id": 27, + "name": "BotWorker.hasActiveDialog" } } ], @@ -5257,10 +5306,15 @@ "line": 190, "character": 26 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 27, + "name": "BotWorker.hasActiveDialog" + } }, { - "id": 71, + "id": 103, "name": "httpBody", "kind": 2048, "kindString": "Method", @@ -5271,7 +5325,7 @@ }, "signatures": [ { - "id": 72, + "id": 104, "name": "httpBody", "kind": 4096, "kindString": "Call signature", @@ -5284,7 +5338,7 @@ }, "parameters": [ { - "id": 73, + "id": 105, "name": "body", "kind": 32768, "kindString": "Parameter", @@ -5303,6 +5357,11 @@ "type": { "type": "intrinsic", "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "id": 48, + "name": "BotWorker.httpBody" } } ], @@ -5312,10 +5371,15 @@ "line": 432, "character": 19 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 48, + "name": "BotWorker.httpBody" + } }, { - "id": 68, + "id": 100, "name": "httpStatus", "kind": 2048, "kindString": "Method", @@ -5326,7 +5390,7 @@ }, "signatures": [ { - "id": 69, + "id": 101, "name": "httpStatus", "kind": 4096, "kindString": "Call signature", @@ -5339,7 +5403,7 @@ }, "parameters": [ { - "id": 70, + "id": 102, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -5358,6 +5422,11 @@ "type": { "type": "intrinsic", "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "id": 45, + "name": "BotWorker.httpStatus" } } ], @@ -5367,10 +5436,15 @@ "line": 415, "character": 21 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 45, + "name": "BotWorker.httpStatus" + } }, { - "id": 52, + "id": 84, "name": "isDialogActive", "kind": 2048, "kindString": "Method", @@ -5381,7 +5455,7 @@ }, "signatures": [ { - "id": 53, + "id": 85, "name": "isDialogActive", "kind": 4096, "kindString": "Call signature", @@ -5394,7 +5468,7 @@ }, "parameters": [ { - "id": 54, + "id": 86, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -5413,6 +5487,11 @@ "type": { "type": "intrinsic", "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "id": 29, + "name": "BotWorker.isDialogActive" } } ], @@ -5422,10 +5501,15 @@ "line": 199, "character": 25 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 29, + "name": "BotWorker.isDialogActive" + } }, { - "id": 55, + "id": 87, "name": "replaceDialog", "kind": 2048, "kindString": "Method", @@ -5436,7 +5520,7 @@ }, "signatures": [ { - "id": 56, + "id": 88, "name": "replaceDialog", "kind": 4096, "kindString": "Call signature", @@ -5449,7 +5533,7 @@ }, "parameters": [ { - "id": 57, + "id": 89, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -5465,7 +5549,7 @@ } }, { - "id": 58, + "id": 90, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5491,6 +5575,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 32, + "name": "BotWorker.replaceDialog" } } ], @@ -5500,10 +5589,15 @@ "line": 218, "character": 30 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 32, + "name": "BotWorker.replaceDialog" + } }, { - "id": 38, + "id": 70, "name": "reply", "kind": 2048, "kindString": "Method", @@ -5514,7 +5608,7 @@ }, "signatures": [ { - "id": 39, + "id": 71, "name": "reply", "kind": 4096, "kindString": "Call signature", @@ -5528,7 +5622,7 @@ }, "parameters": [ { - "id": 40, + "id": 72, "name": "src", "kind": 32768, "kindString": "Parameter", @@ -5543,7 +5637,7 @@ "typeArguments": [ { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } ], @@ -5551,7 +5645,7 @@ } }, { - "id": 41, + "id": 73, "name": "resp", "kind": 32768, "kindString": "Parameter", @@ -5569,7 +5663,7 @@ "typeArguments": [ { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } ], @@ -5592,6 +5686,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 15, + "name": "BotWorker.reply" } } ], @@ -5601,10 +5700,90 @@ "line": 130, "character": 22 } + ], + "inheritedFrom": { + "type": "reference", + "id": 15, + "name": "BotWorker.reply" + } + }, + { + "id": 58, + "name": "replyWithTaskInfo", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 59, + "name": "replyWithTaskInfo", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Reply to a Teams task module task/fetch or task/submit with a task module response.\nSee https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots" + }, + "parameters": [ + { + "id": 60, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": {}, + "type": { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + }, + { + "id": 61, + "name": "taskInfo", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "}\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "teamsHelpers.ts", + "line": 34, + "character": 32 + } ] }, { - "id": 35, + "id": 67, "name": "say", "kind": 2048, "kindString": "Method", @@ -5615,7 +5794,7 @@ }, "signatures": [ { - "id": 36, + "id": 68, "name": "say", "kind": 4096, "kindString": "Call signature", @@ -5629,7 +5808,7 @@ }, "parameters": [ { - "id": 37, + "id": 69, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -5647,7 +5826,7 @@ "typeArguments": [ { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } ], @@ -5670,6 +5849,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 12, + "name": "BotWorker.say" } } ], @@ -5679,10 +5863,15 @@ "line": 99, "character": 20 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 12, + "name": "BotWorker.say" + } }, { - "id": 62, + "id": 94, "name": "startConversationWithUser", "kind": 2048, "kindString": "Method", @@ -5693,7 +5882,7 @@ }, "signatures": [ { - "id": 63, + "id": 95, "name": "startConversationWithUser", "kind": 4096, "kindString": "Call signature", @@ -5702,7 +5891,7 @@ }, "parameters": [ { - "id": 64, + "id": 96, "name": "reference", "kind": 32768, "kindString": "Parameter", @@ -5724,6 +5913,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 39, + "name": "BotWorker.startConversationWithUser" } } ], @@ -5733,7 +5927,12 @@ "line": 274, "character": 42 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 39, + "name": "BotWorker.startConversationWithUser" + } } ], "groups": [ @@ -5741,47 +5940,88 @@ "title": "Constructors", "kind": 512, "children": [ - 26 + 53 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 57 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 30 + 62 ] }, { "title": "Methods", "kind": 2048, "children": [ - 42, - 46, - 59, - 65, - 48, - 32, - 50, - 71, - 68, - 52, - 55, - 38, - 35, - 62 + 74, + 78, + 91, + 97, + 80, + 64, + 82, + 103, + 100, + 84, + 87, + 70, + 58, + 67, + 94 ] } ], "sources": [ { - "fileName": "botworker.ts", + "fileName": "teamsHelpers.ts", "line": 16, - "character": 22 + "character": 27 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 2, + "name": "BotWorker" } ], "props": [ { - "id": 30, + "id": 57, + "name": "teams", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "comment": { + "shortText": " Grants access to the TeamsInfo helper class\nSee: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest" + }, + "sources": [ + { + "fileName": "teamsHelpers.ts", + "line": 26, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "TeamsInfo" + }, + "defaultValue": "TeamsInfo" + }, + { + "id": 62, "name": "controller", "kind": 262144, "kindString": "Accessor", @@ -5795,7 +6035,7 @@ }, "getSignature": [ { - "id": 31, + "id": 63, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -5807,8 +6047,13 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" + }, + "inheritedFrom": { + "type": "reference", + "id": 7, + "name": "BotWorker.controller" } } ], @@ -5818,12 +6063,17 @@ "line": 35, "character": 25 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 7, + "name": "BotWorker.controller" + } } ], "methods": [ { - "id": 42, + "id": 74, "name": "beginDialog", "kind": 2048, "kindString": "Method", @@ -5834,7 +6084,7 @@ }, "signatures": [ { - "id": 43, + "id": 75, "name": "beginDialog", "kind": 4096, "kindString": "Call signature", @@ -5847,7 +6097,7 @@ }, "parameters": [ { - "id": 44, + "id": 76, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -5863,7 +6113,7 @@ } }, { - "id": 45, + "id": 77, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5889,6 +6139,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 19, + "name": "BotWorker.beginDialog" } } ], @@ -5898,10 +6153,15 @@ "line": 153, "character": 28 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 19, + "name": "BotWorker.beginDialog" + } }, { - "id": 46, + "id": 78, "name": "cancelAllDialogs", "kind": 2048, "kindString": "Method", @@ -5912,7 +6172,7 @@ }, "signatures": [ { - "id": 47, + "id": 79, "name": "cancelAllDialogs", "kind": 4096, "kindString": "Call signature", @@ -5931,6 +6191,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 23, + "name": "BotWorker.cancelAllDialogs" } } ], @@ -5940,10 +6205,15 @@ "line": 172, "character": 33 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 23, + "name": "BotWorker.cancelAllDialogs" + } }, { - "id": 59, + "id": 91, "name": "changeContext", "kind": 2048, "kindString": "Method", @@ -5954,7 +6224,7 @@ }, "signatures": [ { - "id": 60, + "id": 92, "name": "changeContext", "kind": 4096, "kindString": "Call signature", @@ -5967,7 +6237,7 @@ }, "parameters": [ { - "id": 61, + "id": 93, "name": "reference", "kind": 32768, "kindString": "Parameter", @@ -5994,11 +6264,16 @@ "typeArguments": [ { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 36, + "name": "BotWorker.changeContext" } } ], @@ -6008,10 +6283,15 @@ "line": 250, "character": 30 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 36, + "name": "BotWorker.changeContext" + } }, { - "id": 65, + "id": 97, "name": "ensureMessageFormat", "kind": 2048, "kindString": "Method", @@ -6022,7 +6302,7 @@ }, "signatures": [ { - "id": 66, + "id": 98, "name": "ensureMessageFormat", "kind": 4096, "kindString": "Call signature", @@ -6041,7 +6321,7 @@ }, "parameters": [ { - "id": 67, + "id": 99, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -6056,7 +6336,7 @@ "typeArguments": [ { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } ], @@ -6079,6 +6359,11 @@ } ], "name": "Partial" + }, + "inheritedFrom": { + "type": "reference", + "id": 42, + "name": "BotWorker.ensureMessageFormat" } } ], @@ -6088,10 +6373,15 @@ "line": 332, "character": 30 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 42, + "name": "BotWorker.ensureMessageFormat" + } }, { - "id": 48, + "id": 80, "name": "getActiveDialog", "kind": 2048, "kindString": "Method", @@ -6102,7 +6392,7 @@ }, "signatures": [ { - "id": 49, + "id": 81, "name": "getActiveDialog", "kind": 4096, "kindString": "Call signature", @@ -6125,6 +6415,11 @@ "name": "undefined" } ] + }, + "inheritedFrom": { + "type": "reference", + "id": 25, + "name": "BotWorker.getActiveDialog" } } ], @@ -6134,10 +6429,15 @@ "line": 182, "character": 26 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 25, + "name": "BotWorker.getActiveDialog" + } }, { - "id": 32, + "id": 64, "name": "getConfig", "kind": 2048, "kindString": "Method", @@ -6148,7 +6448,7 @@ }, "signatures": [ { - "id": 33, + "id": 65, "name": "getConfig", "kind": 4096, "kindString": "Call signature", @@ -6162,7 +6462,7 @@ }, "parameters": [ { - "id": 34, + "id": 66, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -6182,6 +6482,11 @@ "type": { "type": "intrinsic", "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "id": 9, + "name": "BotWorker.getConfig" } } ], @@ -6191,10 +6496,15 @@ "line": 50, "character": 20 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 9, + "name": "BotWorker.getConfig" + } }, { - "id": 50, + "id": 82, "name": "hasActiveDialog", "kind": 2048, "kindString": "Method", @@ -6205,7 +6515,7 @@ }, "signatures": [ { - "id": 51, + "id": 83, "name": "hasActiveDialog", "kind": 4096, "kindString": "Call signature", @@ -6219,6 +6529,11 @@ "type": { "type": "intrinsic", "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "id": 27, + "name": "BotWorker.hasActiveDialog" } } ], @@ -6228,10 +6543,15 @@ "line": 190, "character": 26 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 27, + "name": "BotWorker.hasActiveDialog" + } }, { - "id": 71, + "id": 103, "name": "httpBody", "kind": 2048, "kindString": "Method", @@ -6242,7 +6562,7 @@ }, "signatures": [ { - "id": 72, + "id": 104, "name": "httpBody", "kind": 4096, "kindString": "Call signature", @@ -6255,7 +6575,7 @@ }, "parameters": [ { - "id": 73, + "id": 105, "name": "body", "kind": 32768, "kindString": "Parameter", @@ -6274,6 +6594,11 @@ "type": { "type": "intrinsic", "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "id": 48, + "name": "BotWorker.httpBody" } } ], @@ -6283,10 +6608,15 @@ "line": 432, "character": 19 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 48, + "name": "BotWorker.httpBody" + } }, { - "id": 68, + "id": 100, "name": "httpStatus", "kind": 2048, "kindString": "Method", @@ -6297,7 +6627,7 @@ }, "signatures": [ { - "id": 69, + "id": 101, "name": "httpStatus", "kind": 4096, "kindString": "Call signature", @@ -6310,7 +6640,7 @@ }, "parameters": [ { - "id": 70, + "id": 102, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -6329,6 +6659,11 @@ "type": { "type": "intrinsic", "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "id": 45, + "name": "BotWorker.httpStatus" } } ], @@ -6338,10 +6673,15 @@ "line": 415, "character": 21 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 45, + "name": "BotWorker.httpStatus" + } }, { - "id": 52, + "id": 84, "name": "isDialogActive", "kind": 2048, "kindString": "Method", @@ -6352,7 +6692,7 @@ }, "signatures": [ { - "id": 53, + "id": 85, "name": "isDialogActive", "kind": 4096, "kindString": "Call signature", @@ -6365,7 +6705,7 @@ }, "parameters": [ { - "id": 54, + "id": 86, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -6384,6 +6724,11 @@ "type": { "type": "intrinsic", "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "id": 29, + "name": "BotWorker.isDialogActive" } } ], @@ -6393,10 +6738,15 @@ "line": 199, "character": 25 } - ] - }, + ], + "inheritedFrom": { + "type": "reference", + "id": 29, + "name": "BotWorker.isDialogActive" + } + }, { - "id": 55, + "id": 87, "name": "replaceDialog", "kind": 2048, "kindString": "Method", @@ -6407,7 +6757,7 @@ }, "signatures": [ { - "id": 56, + "id": 88, "name": "replaceDialog", "kind": 4096, "kindString": "Call signature", @@ -6420,7 +6770,7 @@ }, "parameters": [ { - "id": 57, + "id": 89, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -6436,7 +6786,7 @@ } }, { - "id": 58, + "id": 90, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6462,6 +6812,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 32, + "name": "BotWorker.replaceDialog" } } ], @@ -6471,10 +6826,15 @@ "line": 218, "character": 30 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 32, + "name": "BotWorker.replaceDialog" + } }, { - "id": 38, + "id": 70, "name": "reply", "kind": 2048, "kindString": "Method", @@ -6485,7 +6845,7 @@ }, "signatures": [ { - "id": 39, + "id": 71, "name": "reply", "kind": 4096, "kindString": "Call signature", @@ -6499,7 +6859,7 @@ }, "parameters": [ { - "id": 40, + "id": 72, "name": "src", "kind": 32768, "kindString": "Parameter", @@ -6514,7 +6874,7 @@ "typeArguments": [ { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } ], @@ -6522,7 +6882,7 @@ } }, { - "id": 41, + "id": 73, "name": "resp", "kind": 32768, "kindString": "Parameter", @@ -6540,7 +6900,7 @@ "typeArguments": [ { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } ], @@ -6563,6 +6923,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 15, + "name": "BotWorker.reply" } } ], @@ -6572,10 +6937,90 @@ "line": 130, "character": 22 } + ], + "inheritedFrom": { + "type": "reference", + "id": 15, + "name": "BotWorker.reply" + } + }, + { + "id": 58, + "name": "replyWithTaskInfo", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 59, + "name": "replyWithTaskInfo", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Reply to a Teams task module task/fetch or task/submit with a task module response.\nSee https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots" + }, + "parameters": [ + { + "id": 60, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": {}, + "type": { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + }, + { + "id": 61, + "name": "taskInfo", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "}\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "teamsHelpers.ts", + "line": 34, + "character": 32 + } ] }, { - "id": 35, + "id": 67, "name": "say", "kind": 2048, "kindString": "Method", @@ -6586,7 +7031,7 @@ }, "signatures": [ { - "id": 36, + "id": 68, "name": "say", "kind": 4096, "kindString": "Call signature", @@ -6600,7 +7045,7 @@ }, "parameters": [ { - "id": 37, + "id": 69, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -6618,7 +7063,7 @@ "typeArguments": [ { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } ], @@ -6641,6 +7086,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 12, + "name": "BotWorker.say" } } ], @@ -6650,10 +7100,15 @@ "line": 99, "character": 20 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 12, + "name": "BotWorker.say" + } }, { - "id": 62, + "id": 94, "name": "startConversationWithUser", "kind": 2048, "kindString": "Method", @@ -6664,7 +7119,7 @@ }, "signatures": [ { - "id": 63, + "id": 95, "name": "startConversationWithUser", "kind": 4096, "kindString": "Call signature", @@ -6673,7 +7128,7 @@ }, "parameters": [ { - "id": 64, + "id": 96, "name": "reference", "kind": 32768, "kindString": "Parameter", @@ -6695,6 +7150,11 @@ } ], "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 39, + "name": "BotWorker.startConversationWithUser" } } ], @@ -6704,12 +7164,17 @@ "line": 274, "character": 42 } - ] + ], + "inheritedFrom": { + "type": "reference", + "id": 39, + "name": "BotWorker.startConversationWithUser" + } } ], "constructors": [ { - "id": 26, + "id": 53, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6718,50 +7183,38 @@ "isExported": true, "isExternal": true }, - "comment": { - "shortText": "Create a new BotWorker instance. Do not call this directly - instead, use [controller.spawn()](#spawn)." - }, "signatures": [ { - "id": 27, - "name": "new BotWorker", + "id": 54, + "name": "new TeamsBotWorker", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, - "comment": { - "shortText": "Create a new BotWorker instance. Do not call this directly - instead, use [controller.spawn()](#spawn)." - }, "parameters": [ { - "id": 28, + "id": 55, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, - "comment": { - "shortText": "A pointer to the main Botkit controller" - }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } }, { - "id": 29, + "id": 56, "name": "config", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, - "comment": { - "shortText": "An object typically containing { dialogContext, reference, context, activity }\n" - }, "type": { "type": "intrinsic", "name": "any" @@ -6770,24 +7223,34 @@ ], "type": { "type": "reference", - "id": 25, - "name": "BotWorker" + "id": 52, + "name": "TeamsBotWorker" + }, + "overwrites": { + "type": "reference", + "id": 3, + "name": "BotWorker.__constructor" } } ], "sources": [ { - "fileName": "botworker.ts", - "line": 18, - "character": 25 + "fileName": "teamsHelpers.ts", + "line": 16, + "character": 47 } - ] + ], + "overwrites": { + "type": "reference", + "id": 3, + "name": "BotWorker.__constructor" + } } ] }, { - "id": 320, - "name": "BotkitConversation", + "id": 2, + "name": "BotWorker", "kind": 128, "kindString": "Class", "flags": { @@ -6795,27 +7258,11 @@ "isExternal": true }, "comment": { - "shortText": "An extension on the [BotBuilder Dialog Class](https://docs.microsoft.com/en-us/javascript/api/botbuilder-dialogs/dialog?view=botbuilder-ts-latest) that provides a Botkit-friendly interface for\ndefining and interacting with multi-message dialogs. Dialogs can be constructed using `say()`, `ask()` and other helper methods.", - "text": "```javascript\n// define the structure of your dialog...\nconst convo = new BotkitConversation('foo', controller);\nconvo.say('Hello!');\nconvo.ask('What is your name?', async(answer, convo, bot) => {\n await bot.say('Your name is ' + answer);\n});\ncontroller.dialogSet.add(convo);\n\n// later on, trigger this dialog by its id\ncontroller.on('event', async(bot, message) => {\n await bot.beginDialog('foo');\n})\n```\n" + "shortText": "A base class for a `bot` instance, an object that contains the information and functionality for taking action in response to an incoming message.\nNote that adapters are likely to extend this class with additional platform-specific methods - refer to the adapter documentation for these extensions." }, - "typeParameter": [ - { - "id": 321, - "name": "O", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], "children": [ { - "id": 323, + "id": 3, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6825,98 +7272,113 @@ "isExternal": true }, "comment": { - "shortText": "Create a new BotkitConversation object" + "shortText": "Create a new BotWorker instance. Do not call this directly - instead, use [controller.spawn()](#spawn)." }, "signatures": [ { - "id": 324, - "name": "new BotkitConversation", + "id": 4, + "name": "new BotWorker", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExported": true }, "comment": { - "shortText": "Create a new BotkitConversation object" + "shortText": "Create a new BotWorker instance. Do not call this directly - instead, use [controller.spawn()](#spawn)." }, "parameters": [ { - "id": 325, - "name": "dialogId", + "id": 5, + "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { - "shortText": "A unique identifier for this dialog, used to later trigger this dialog" + "shortText": "A pointer to the main Botkit controller" }, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "id": 188, + "name": "Botkit" } }, { - "id": 326, - "name": "controller", + "id": 6, + "name": "config", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { - "shortText": "A pointer to the main Botkit controller\n" + "shortText": "An object typically containing { dialogContext, reference, context, activity }\n" }, "type": { - "type": "reference", - "id": 126, - "name": "Botkit" + "type": "intrinsic", + "name": "any" } } ], "type": { "type": "reference", - "id": 320, - "name": "BotkitConversation" + "id": 2, + "name": "BotWorker" } } ], "sources": [ { - "fileName": "conversation.ts", - "line": 125, - "character": 32 + "fileName": "botworker.ts", + "line": 18, + "character": 25 } ] }, { - "id": 322, - "name": "script", - "kind": 1024, - "kindString": "Property", + "id": 7, + "name": "controller", + "kind": 262144, + "kindString": "Accessor", "flags": { "isPublic": true, "isExported": true, "isExternal": true }, "comment": { - "shortText": "A map of every message in the dialog, broken into threads" + "shortText": "Get a reference to the main Botkit controller." }, - "sources": [ + "getSignature": [ { - "fileName": "conversation.ts", - "line": 119, - "character": 17 + "id": 8, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Get a reference to the main Botkit controller." + }, + "type": { + "type": "reference", + "id": 188, + "name": "Botkit" + } } ], - "type": { - "type": "intrinsic", - "name": "any" - } + "sources": [ + { + "fileName": "botworker.ts", + "line": 35, + "character": 25 + } + ] }, { - "id": 330, - "name": "addAction", + "id": 19, + "name": "beginDialog", "kind": 2048, "kindString": "Method", "flags": { @@ -6926,28 +7388,28 @@ }, "signatures": [ { - "id": 331, - "name": "addAction", + "id": 20, + "name": "beginDialog", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { - "shortText": "An an action to the conversation timeline. This can be used to go to switch threads or end the dialog.", - "text": "When provided the name of another thread in the conversation, this will cause the bot to go immediately\nto that thread.\n\nOtherwise, use one of the following keywords:\n* `stop`\n* `repeat`\n* `complete`\n* `timeout`\n\n[Learn more about building conversations →](../conversations.md#build-a-conversation)\n\n```javascript\n\n// go to a thread called \"next_thread\"\nconvo.addAction('next_thread');\n\n// end the conversation and mark as successful\nconvo.addAction('complete');\n```" + "shortText": "Begin a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received.\n[See \"Using Dialogs\" in the core documentation.](../index.md#using-dialogs)", + "text": "```javascript\ncontroller.hears('hello', 'message', async(bot, message) => {\n await bot.beginDialog(GREETINGS_DIALOG);\n});\n```" }, "parameters": [ { - "id": 332, - "name": "action", + "id": 21, + "name": "id", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { - "text": "An action or thread name" + "text": "id of dialog" }, "type": { "type": "intrinsic", @@ -6955,8 +7417,2078 @@ } }, { - "id": 333, - "name": "thread_name", + "id": 22, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "object containing options to be passed into the dialog\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 153, + "character": 28 + } + ] + }, + { + "id": 23, + "name": "cancelAllDialogs", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 24, + "name": "cancelAllDialogs", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Cancel any and all active dialogs for the current user/context." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "DialogTurnResult" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 172, + "character": 33 + } + ] + }, + { + "id": 36, + "name": "changeContext", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 37, + "name": "changeContext", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Alter the context in which a bot instance will send messages.\nUse this method to create or adjust a bot instance so that it can send messages to a predefined user/channel combination.", + "text": "```javascript\n// get the reference field and store it.\nconst saved_reference = message.reference;\n\n// later on...\nlet bot = await controller.spawn();\nbot.changeContext(saved_reference);\nbot.say('Hello!');\n```\n" + }, + "parameters": [ + { + "id": 38, + "name": "reference", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A [ConversationReference](https://docs.microsoft.com/en-us/javascript/api/botframework-schema/conversationreference?view=botbuilder-ts-latest), most likely captured from an incoming message and stored for use in proactive messaging scenarios.\n" + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "ConversationReference" + } + ], + "name": "Partial" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 2, + "name": "BotWorker" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 250, + "character": 30 + } + ] + }, + { + "id": 42, + "name": "ensureMessageFormat", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 43, + "name": "ensureMessageFormat", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Take a crudely-formed Botkit message with any sort of field (may just be a string, may be a partial message object)\nand map it into a beautiful BotFramework Activity.\nAny fields not found in the Activity definition will be moved to activity.channelData.", + "returns": "a properly formed Activity object\n", + "tags": [ + { + "tag": "params", + "text": "message a string or partial outgoing message object" + } + ] + }, + "parameters": [ + { + "id": 44, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + ], + "name": "Partial" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "Activity" + } + ], + "name": "Partial" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 332, + "character": 30 + } + ] + }, + { + "id": 25, + "name": "getActiveDialog", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 26, + "name": "getActiveDialog", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Get a reference to the active dialog", + "returns": "a reference to the active dialog or undefined if no dialog is active\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Dialog" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 182, + "character": 26 + } + ] + }, + { + "id": 9, + "name": "getConfig", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 10, + "name": "getConfig", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Get a value from the BotWorker's configuration.", + "text": "```javascript\nlet original_context = bot.getConfig('context');\nawait original_context.sendActivity('send directly using the adapter instead of Botkit');\n```\n", + "returns": "The value stored in the configuration (or null if absent)\n" + }, + "parameters": [ + { + "id": 11, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "The name of a value stored in the configuration" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 50, + "character": 20 + } + ] + }, + { + "id": 27, + "name": "hasActiveDialog", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 28, + "name": "hasActiveDialog", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Check if any dialog is active or not", + "returns": "true if there is an active dialog, otherwise false\n" + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 190, + "character": 26 + } + ] + }, + { + "id": 48, + "name": "httpBody", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 49, + "name": "httpBody", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set the http response body for this turn.\nUse this to define the response value when the platform requires a synchronous response to the incoming webhook.", + "text": "Example handling of a /slash command from Slack:\n```javascript\ncontroller.on('slash_command', async(bot, message) => {\n bot.httpBody('This is a reply to the slash command.');\n})\n```\n" + }, + "parameters": [ + { + "id": 50, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "(any) a value that will be returned as the http response body\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 432, + "character": 19 + } + ] + }, + { + "id": 45, + "name": "httpStatus", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 46, + "name": "httpStatus", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set the http response status code for this turn", + "text": "```javascript\ncontroller.on('event', async(bot, message) => {\n // respond with a 500 error code for some reason!\n bot.httpStatus(500);\n});\n```\n" + }, + "parameters": [ + { + "id": 47, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "a valid http status code like 200 202 301 500 etc\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 415, + "character": 21 + } + ] + }, + { + "id": 29, + "name": "isDialogActive", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 30, + "name": "isDialogActive", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Check to see if a given dialog is currently active in the stack", + "returns": "true if dialog with id is located anywhere in the dialog stack\n" + }, + "parameters": [ + { + "id": 31, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The id of a dialog to look for in the dialog stack" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 199, + "character": 25 + } + ] + }, + { + "id": 32, + "name": "replaceDialog", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 33, + "name": "replaceDialog", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Replace any active dialogs with a new a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received.\n[See \"Using Dialogs\" in the core documentation.](../index.md#using-dialogs)", + "text": "```javascript\ncontroller.hears('hello', 'message', async(bot, message) => {\n await bot.replaceDialog(GREETINGS_DIALOG);\n});\n```" + }, + "parameters": [ + { + "id": 34, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "id of dialog" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 35, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "object containing options to be passed into the dialog\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 218, + "character": 30 + } + ] + }, + { + "id": 15, + "name": "reply", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 16, + "name": "reply", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Reply to an incoming message.\nMessage will be sent using the context of the source message, which may in some cases be different than the context used to spawn the bot.", + "text": "Note that like [bot.say()](#say), `reply()` can take a string or a message object.\n\n```javascript\ncontroller.on('event', async(bot, message) => {\n\n await bot.reply(message, 'I received an event and am replying to it.');\n\n});\n```\n", + "returns": "Return value will contain the results of the send action, typically `{id: }`\n" + }, + "parameters": [ + { + "id": 17, + "name": "src", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "An incoming message, usually passed in to a handler function" + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + ], + "name": "Partial" + } + }, + { + "id": 18, + "name": "resp", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A string containing the text of a reply, or more fully formed message object" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + ], + "name": "Partial" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 130, + "character": 22 + } + ] + }, + { + "id": 12, + "name": "say", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 13, + "name": "say", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Send a message using whatever context the `bot` was spawned in or set using [changeContext()](#changecontext) --\nor more likely, one of the platform-specific helpers like\n[startPrivateConversation()](../reference/slack.md#startprivateconversation) (Slack),\n[startConversationWithUser()](../reference/twilio-sms.md#startconversationwithuser) (Twilio SMS),\nand [startConversationWithUser()](../reference/facebook.md#startconversationwithuser) (Facebook Messenger).\nBe sure to check the platform documentation for others - most adapters include at least one.", + "text": "Simple use in event handler (acts the same as bot.reply)\n```javascript\ncontroller.on('event', async(bot, message) => {\n\n await bot.say('I received an event!');\n\n});\n```\n\nUse with a freshly spawned bot and bot.changeContext:\n```javascript\nlet bot = controller.spawn(OPTIONS);\nbot.changeContext(REFERENCE);\nbot.say('ALERT! I have some news.');\n```\n\nUse with multi-field message object:\n```javascript\ncontroller.on('event', async(bot, message) => {\n bot.say({\n text: 'I heard an event',\n attachments: [\n title: message.type,\n text: `The message was of type ${ message.type }`,\n // ...\n ]\n });\n});\n```\n", + "returns": "Return value will contain the results of the send action, typically `{id: }`\n" + }, + "parameters": [ + { + "id": 14, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A string containing the text of a reply, or more fully formed message object" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + ], + "name": "Partial" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 99, + "character": 20 + } + ] + }, + { + "id": 39, + "name": "startConversationWithUser", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 40, + "name": "startConversationWithUser", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 41, + "name": "reference", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 274, + "character": 42 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 3 + ] + }, + { + "title": "Accessors", + "kind": 262144, + "children": [ + 7 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 19, + 23, + 36, + 42, + 25, + 9, + 27, + 48, + 45, + 29, + 32, + 15, + 12, + 39 + ] + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 16, + "character": 22 + } + ], + "extendedBy": [ + { + "type": "reference", + "id": 52, + "name": "TeamsBotWorker" + } + ], + "props": [ + { + "id": 7, + "name": "controller", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "comment": { + "shortText": "Get a reference to the main Botkit controller." + }, + "getSignature": [ + { + "id": 8, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Get a reference to the main Botkit controller." + }, + "type": { + "type": "reference", + "id": 188, + "name": "Botkit" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 35, + "character": 25 + } + ] + } + ], + "methods": [ + { + "id": 19, + "name": "beginDialog", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 20, + "name": "beginDialog", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Begin a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received.\n[See \"Using Dialogs\" in the core documentation.](../index.md#using-dialogs)", + "text": "```javascript\ncontroller.hears('hello', 'message', async(bot, message) => {\n await bot.beginDialog(GREETINGS_DIALOG);\n});\n```" + }, + "parameters": [ + { + "id": 21, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "id of dialog" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 22, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "object containing options to be passed into the dialog\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 153, + "character": 28 + } + ] + }, + { + "id": 23, + "name": "cancelAllDialogs", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 24, + "name": "cancelAllDialogs", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Cancel any and all active dialogs for the current user/context." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "DialogTurnResult" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 172, + "character": 33 + } + ] + }, + { + "id": 36, + "name": "changeContext", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 37, + "name": "changeContext", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Alter the context in which a bot instance will send messages.\nUse this method to create or adjust a bot instance so that it can send messages to a predefined user/channel combination.", + "text": "```javascript\n// get the reference field and store it.\nconst saved_reference = message.reference;\n\n// later on...\nlet bot = await controller.spawn();\nbot.changeContext(saved_reference);\nbot.say('Hello!');\n```\n" + }, + "parameters": [ + { + "id": 38, + "name": "reference", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A [ConversationReference](https://docs.microsoft.com/en-us/javascript/api/botframework-schema/conversationreference?view=botbuilder-ts-latest), most likely captured from an incoming message and stored for use in proactive messaging scenarios.\n" + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "ConversationReference" + } + ], + "name": "Partial" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 2, + "name": "BotWorker" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 250, + "character": 30 + } + ] + }, + { + "id": 42, + "name": "ensureMessageFormat", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 43, + "name": "ensureMessageFormat", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Take a crudely-formed Botkit message with any sort of field (may just be a string, may be a partial message object)\nand map it into a beautiful BotFramework Activity.\nAny fields not found in the Activity definition will be moved to activity.channelData.", + "returns": "a properly formed Activity object\n", + "tags": [ + { + "tag": "params", + "text": "message a string or partial outgoing message object" + } + ] + }, + "parameters": [ + { + "id": 44, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + ], + "name": "Partial" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "Activity" + } + ], + "name": "Partial" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 332, + "character": 30 + } + ] + }, + { + "id": 25, + "name": "getActiveDialog", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 26, + "name": "getActiveDialog", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Get a reference to the active dialog", + "returns": "a reference to the active dialog or undefined if no dialog is active\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Dialog" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 182, + "character": 26 + } + ] + }, + { + "id": 9, + "name": "getConfig", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 10, + "name": "getConfig", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Get a value from the BotWorker's configuration.", + "text": "```javascript\nlet original_context = bot.getConfig('context');\nawait original_context.sendActivity('send directly using the adapter instead of Botkit');\n```\n", + "returns": "The value stored in the configuration (or null if absent)\n" + }, + "parameters": [ + { + "id": 11, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "The name of a value stored in the configuration" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 50, + "character": 20 + } + ] + }, + { + "id": 27, + "name": "hasActiveDialog", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 28, + "name": "hasActiveDialog", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Check if any dialog is active or not", + "returns": "true if there is an active dialog, otherwise false\n" + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 190, + "character": 26 + } + ] + }, + { + "id": 48, + "name": "httpBody", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 49, + "name": "httpBody", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set the http response body for this turn.\nUse this to define the response value when the platform requires a synchronous response to the incoming webhook.", + "text": "Example handling of a /slash command from Slack:\n```javascript\ncontroller.on('slash_command', async(bot, message) => {\n bot.httpBody('This is a reply to the slash command.');\n})\n```\n" + }, + "parameters": [ + { + "id": 50, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "(any) a value that will be returned as the http response body\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 432, + "character": 19 + } + ] + }, + { + "id": 45, + "name": "httpStatus", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 46, + "name": "httpStatus", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set the http response status code for this turn", + "text": "```javascript\ncontroller.on('event', async(bot, message) => {\n // respond with a 500 error code for some reason!\n bot.httpStatus(500);\n});\n```\n" + }, + "parameters": [ + { + "id": 47, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "a valid http status code like 200 202 301 500 etc\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 415, + "character": 21 + } + ] + }, + { + "id": 29, + "name": "isDialogActive", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 30, + "name": "isDialogActive", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Check to see if a given dialog is currently active in the stack", + "returns": "true if dialog with id is located anywhere in the dialog stack\n" + }, + "parameters": [ + { + "id": 31, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The id of a dialog to look for in the dialog stack" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 199, + "character": 25 + } + ] + }, + { + "id": 32, + "name": "replaceDialog", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 33, + "name": "replaceDialog", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Replace any active dialogs with a new a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received.\n[See \"Using Dialogs\" in the core documentation.](../index.md#using-dialogs)", + "text": "```javascript\ncontroller.hears('hello', 'message', async(bot, message) => {\n await bot.replaceDialog(GREETINGS_DIALOG);\n});\n```" + }, + "parameters": [ + { + "id": 34, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "id of dialog" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 35, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "object containing options to be passed into the dialog\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 218, + "character": 30 + } + ] + }, + { + "id": 15, + "name": "reply", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 16, + "name": "reply", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Reply to an incoming message.\nMessage will be sent using the context of the source message, which may in some cases be different than the context used to spawn the bot.", + "text": "Note that like [bot.say()](#say), `reply()` can take a string or a message object.\n\n```javascript\ncontroller.on('event', async(bot, message) => {\n\n await bot.reply(message, 'I received an event and am replying to it.');\n\n});\n```\n", + "returns": "Return value will contain the results of the send action, typically `{id: }`\n" + }, + "parameters": [ + { + "id": 17, + "name": "src", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "An incoming message, usually passed in to a handler function" + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + ], + "name": "Partial" + } + }, + { + "id": 18, + "name": "resp", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A string containing the text of a reply, or more fully formed message object" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + ], + "name": "Partial" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 130, + "character": 22 + } + ] + }, + { + "id": 12, + "name": "say", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 13, + "name": "say", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Send a message using whatever context the `bot` was spawned in or set using [changeContext()](#changecontext) --\nor more likely, one of the platform-specific helpers like\n[startPrivateConversation()](../reference/slack.md#startprivateconversation) (Slack),\n[startConversationWithUser()](../reference/twilio-sms.md#startconversationwithuser) (Twilio SMS),\nand [startConversationWithUser()](../reference/facebook.md#startconversationwithuser) (Facebook Messenger).\nBe sure to check the platform documentation for others - most adapters include at least one.", + "text": "Simple use in event handler (acts the same as bot.reply)\n```javascript\ncontroller.on('event', async(bot, message) => {\n\n await bot.say('I received an event!');\n\n});\n```\n\nUse with a freshly spawned bot and bot.changeContext:\n```javascript\nlet bot = controller.spawn(OPTIONS);\nbot.changeContext(REFERENCE);\nbot.say('ALERT! I have some news.');\n```\n\nUse with multi-field message object:\n```javascript\ncontroller.on('event', async(bot, message) => {\n bot.say({\n text: 'I heard an event',\n attachments: [\n title: message.type,\n text: `The message was of type ${ message.type }`,\n // ...\n ]\n });\n});\n```\n", + "returns": "Return value will contain the results of the send action, typically `{id: }`\n" + }, + "parameters": [ + { + "id": 14, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A string containing the text of a reply, or more fully formed message object" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + ], + "name": "Partial" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 99, + "character": 20 + } + ] + }, + { + "id": 39, + "name": "startConversationWithUser", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 40, + "name": "startConversationWithUser", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 41, + "name": "reference", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 274, + "character": 42 + } + ] + } + ], + "constructors": [ + { + "id": 3, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "comment": { + "shortText": "Create a new BotWorker instance. Do not call this directly - instead, use [controller.spawn()](#spawn)." + }, + "signatures": [ + { + "id": 4, + "name": "new BotWorker", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Create a new BotWorker instance. Do not call this directly - instead, use [controller.spawn()](#spawn)." + }, + "parameters": [ + { + "id": 5, + "name": "controller", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A pointer to the main Botkit controller" + }, + "type": { + "type": "reference", + "id": 188, + "name": "Botkit" + } + }, + { + "id": 6, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "An object typically containing { dialogContext, reference, context, activity }\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "id": 2, + "name": "BotWorker" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 18, + "character": 25 + } + ] + } + ] + }, + { + "id": 382, + "name": "BotkitConversation", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true, + "isExternal": true + }, + "comment": { + "shortText": "An extension on the [BotBuilder Dialog Class](https://docs.microsoft.com/en-us/javascript/api/botbuilder-dialogs/dialog?view=botbuilder-ts-latest) that provides a Botkit-friendly interface for\ndefining and interacting with multi-message dialogs. Dialogs can be constructed using `say()`, `ask()` and other helper methods.", + "text": "```javascript\n// define the structure of your dialog...\nconst convo = new BotkitConversation('foo', controller);\nconvo.say('Hello!');\nconvo.ask('What is your name?', async(answer, convo, bot) => {\n await bot.say('Your name is ' + answer);\n});\ncontroller.dialogSet.add(convo);\n\n// later on, trigger this dialog by its id\ncontroller.on('event', async(bot, message) => {\n await bot.beginDialog('foo');\n})\n```\n" + }, + "typeParameter": [ + { + "id": 383, + "name": "O", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "children": [ + { + "id": 385, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "comment": { + "shortText": "Create a new BotkitConversation object" + }, + "signatures": [ + { + "id": 386, + "name": "new BotkitConversation", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Create a new BotkitConversation object" + }, + "parameters": [ + { + "id": 387, + "name": "dialogId", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A unique identifier for this dialog, used to later trigger this dialog" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 388, + "name": "controller", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A pointer to the main Botkit controller\n" + }, + "type": { + "type": "reference", + "id": 188, + "name": "Botkit" + } + } + ], + "type": { + "type": "reference", + "id": 382, + "name": "BotkitConversation" + } + } + ], + "sources": [ + { + "fileName": "conversation.ts", + "line": 125, + "character": 32 + } + ] + }, + { + "id": 384, + "name": "script", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "comment": { + "shortText": "A map of every message in the dialog, broken into threads" + }, + "sources": [ + { + "fileName": "conversation.ts", + "line": 119, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 392, + "name": "addAction", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 393, + "name": "addAction", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "An an action to the conversation timeline. This can be used to go to switch threads or end the dialog.", + "text": "When provided the name of another thread in the conversation, this will cause the bot to go immediately\nto that thread.\n\nOtherwise, use one of the following keywords:\n* `stop`\n* `repeat`\n* `complete`\n* `timeout`\n\n[Learn more about building conversations →](../conversations.md#build-a-conversation)\n\n```javascript\n\n// go to a thread called \"next_thread\"\nconvo.addAction('next_thread');\n\n// end the conversation and mark as successful\nconvo.addAction('complete');\n```" + }, + "parameters": [ + { + "id": 394, + "name": "action", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "An action or thread name" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 395, + "name": "thread_name", "kind": 32768, "kindString": "Parameter", "flags": { @@ -6974,7 +9506,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -6988,7 +9520,7 @@ ] }, { - "id": 334, + "id": 396, "name": "addChildDialog", "kind": 2048, "kindString": "Method", @@ -6999,7 +9531,7 @@ }, "signatures": [ { - "id": 335, + "id": 397, "name": "addChildDialog", "kind": 4096, "kindString": "Call signature", @@ -7012,7 +9544,7 @@ }, "parameters": [ { - "id": 336, + "id": 398, "name": "dialog_id", "kind": 32768, "kindString": "Parameter", @@ -7028,7 +9560,7 @@ } }, { - "id": 337, + "id": 399, "name": "key_name", "kind": 32768, "kindString": "Parameter", @@ -7045,7 +9577,7 @@ } }, { - "id": 338, + "id": 400, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7064,7 +9596,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -7078,7 +9610,7 @@ ] }, { - "id": 339, + "id": 401, "name": "addGotoDialog", "kind": 2048, "kindString": "Method", @@ -7089,7 +9621,7 @@ }, "signatures": [ { - "id": 340, + "id": 402, "name": "addGotoDialog", "kind": 4096, "kindString": "Call signature", @@ -7102,7 +9634,7 @@ }, "parameters": [ { - "id": 341, + "id": 403, "name": "dialog_id", "kind": 32768, "kindString": "Parameter", @@ -7118,7 +9650,7 @@ } }, { - "id": 342, + "id": 404, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7137,7 +9669,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -7151,7 +9683,7 @@ ] }, { - "id": 343, + "id": 405, "name": "addMessage", "kind": 2048, "kindString": "Method", @@ -7162,7 +9694,7 @@ }, "signatures": [ { - "id": 344, + "id": 406, "name": "addMessage", "kind": 4096, "kindString": "Call signature", @@ -7175,7 +9707,7 @@ }, "parameters": [ { - "id": 345, + "id": 407, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -7193,7 +9725,7 @@ "typeArguments": [ { "type": "reference", - "id": 270, + "id": 332, "name": "BotkitMessageTemplate" } ], @@ -7207,7 +9739,7 @@ } }, { - "id": 346, + "id": 408, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7225,7 +9757,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -7239,7 +9771,7 @@ ] }, { - "id": 354, + "id": 416, "name": "addQuestion", "kind": 2048, "kindString": "Method", @@ -7250,7 +9782,7 @@ }, "signatures": [ { - "id": 355, + "id": 417, "name": "addQuestion", "kind": 4096, "kindString": "Call signature", @@ -7263,7 +9795,7 @@ }, "parameters": [ { - "id": 356, + "id": 418, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -7281,7 +9813,7 @@ "typeArguments": [ { "type": "reference", - "id": 270, + "id": 332, "name": "BotkitMessageTemplate" } ], @@ -7295,7 +9827,7 @@ } }, { - "id": 357, + "id": 419, "name": "handlers", "kind": 32768, "kindString": "Parameter", @@ -7310,14 +9842,14 @@ "types": [ { "type": "reference", - "id": 259, + "id": 321, "name": "BotkitConvoHandler" }, { "type": "array", "elementType": { "type": "reference", - "id": 265, + "id": 327, "name": "BotkitConvoTrigger" } } @@ -7325,7 +9857,7 @@ } }, { - "id": 358, + "id": 420, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7341,7 +9873,7 @@ { "type": "reflection", "declaration": { - "id": 359, + "id": 421, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7350,7 +9882,7 @@ }, "children": [ { - "id": 360, + "id": 422, "name": "key", "kind": 32, "kindString": "Variable", @@ -7376,7 +9908,7 @@ "title": "Variables", "kind": 32, "children": [ - 360 + 422 ] } ], @@ -7401,7 +9933,7 @@ } }, { - "id": 361, + "id": 423, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7419,7 +9951,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -7433,7 +9965,7 @@ ] }, { - "id": 370, + "id": 432, "name": "after", "kind": 2048, "kindString": "Method", @@ -7444,7 +9976,7 @@ }, "signatures": [ { - "id": 371, + "id": 433, "name": "after", "kind": 4096, "kindString": "Call signature", @@ -7457,7 +9989,7 @@ }, "parameters": [ { - "id": 372, + "id": 434, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -7470,7 +10002,7 @@ "type": { "type": "reflection", "declaration": { - "id": 373, + "id": 435, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7479,7 +10011,7 @@ }, "signatures": [ { - "id": 374, + "id": 436, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -7488,7 +10020,7 @@ }, "parameters": [ { - "id": 375, + "id": 437, "name": "results", "kind": 32768, "kindString": "Parameter", @@ -7501,7 +10033,7 @@ } }, { - "id": 376, + "id": 438, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -7510,7 +10042,7 @@ }, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } } @@ -7547,7 +10079,7 @@ ] }, { - "id": 347, + "id": 409, "name": "ask", "kind": 2048, "kindString": "Method", @@ -7558,7 +10090,7 @@ }, "signatures": [ { - "id": 348, + "id": 410, "name": "ask", "kind": 4096, "kindString": "Call signature", @@ -7571,7 +10103,7 @@ }, "parameters": [ { - "id": 349, + "id": 411, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -7589,7 +10121,7 @@ "typeArguments": [ { "type": "reference", - "id": 270, + "id": 332, "name": "BotkitMessageTemplate" } ], @@ -7603,7 +10135,7 @@ } }, { - "id": 350, + "id": 412, "name": "handlers", "kind": 32768, "kindString": "Parameter", @@ -7618,14 +10150,14 @@ "types": [ { "type": "reference", - "id": 259, + "id": 321, "name": "BotkitConvoHandler" }, { "type": "array", "elementType": { "type": "reference", - "id": 265, + "id": 327, "name": "BotkitConvoTrigger" } } @@ -7633,7 +10165,7 @@ } }, { - "id": 351, + "id": 413, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7649,7 +10181,7 @@ { "type": "reflection", "declaration": { - "id": 352, + "id": 414, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7658,7 +10190,7 @@ }, "children": [ { - "id": 353, + "id": 415, "name": "key", "kind": 32, "kindString": "Variable", @@ -7684,7 +10216,7 @@ "title": "Variables", "kind": 32, "children": [ - 353 + 415 ] } ], @@ -7711,7 +10243,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -7725,7 +10257,7 @@ ] }, { - "id": 362, + "id": 424, "name": "before", "kind": 2048, "kindString": "Method", @@ -7736,7 +10268,7 @@ }, "signatures": [ { - "id": 363, + "id": 425, "name": "before", "kind": 4096, "kindString": "Call signature", @@ -7749,7 +10281,7 @@ }, "parameters": [ { - "id": 364, + "id": 426, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7765,7 +10297,7 @@ } }, { - "id": 365, + "id": 427, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -7778,7 +10310,7 @@ "type": { "type": "reflection", "declaration": { - "id": 366, + "id": 428, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7787,7 +10319,7 @@ }, "signatures": [ { - "id": 367, + "id": 429, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -7796,7 +10328,7 @@ }, "parameters": [ { - "id": 368, + "id": 430, "name": "convo", "kind": 32768, "kindString": "Parameter", @@ -7805,12 +10337,12 @@ }, "type": { "type": "reference", - "id": 238, + "id": 300, "name": "BotkitDialogWrapper" } }, { - "id": 369, + "id": 431, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -7819,7 +10351,7 @@ }, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } } @@ -7862,7 +10394,7 @@ ] }, { - "id": 377, + "id": 439, "name": "onChange", "kind": 2048, "kindString": "Method", @@ -7873,7 +10405,7 @@ }, "signatures": [ { - "id": 378, + "id": 440, "name": "onChange", "kind": 4096, "kindString": "Call signature", @@ -7886,7 +10418,7 @@ }, "parameters": [ { - "id": 379, + "id": 441, "name": "variable", "kind": 32768, "kindString": "Parameter", @@ -7902,7 +10434,7 @@ } }, { - "id": 380, + "id": 442, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -7915,7 +10447,7 @@ "type": { "type": "reflection", "declaration": { - "id": 381, + "id": 443, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7924,7 +10456,7 @@ }, "signatures": [ { - "id": 382, + "id": 444, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -7933,7 +10465,7 @@ }, "parameters": [ { - "id": 383, + "id": 445, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -7946,7 +10478,7 @@ } }, { - "id": 384, + "id": 446, "name": "convo", "kind": 32768, "kindString": "Parameter", @@ -7959,7 +10491,7 @@ } }, { - "id": 385, + "id": 447, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -8010,7 +10542,7 @@ ] }, { - "id": 327, + "id": 389, "name": "say", "kind": 2048, "kindString": "Method", @@ -8021,7 +10553,7 @@ }, "signatures": [ { - "id": 328, + "id": 390, "name": "say", "kind": 4096, "kindString": "Call signature", @@ -8034,7 +10566,7 @@ }, "parameters": [ { - "id": 329, + "id": 391, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -8052,7 +10584,7 @@ "typeArguments": [ { "type": "reference", - "id": 270, + "id": 332, "name": "BotkitMessageTemplate" } ], @@ -8068,7 +10600,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -8087,30 +10619,30 @@ "title": "Constructors", "kind": 512, "children": [ - 323 + 385 ] }, { "title": "Properties", "kind": 1024, "children": [ - 322 + 384 ] }, { "title": "Methods", "kind": 2048, "children": [ - 330, - 334, - 339, - 343, - 354, - 370, - 347, - 362, - 377, - 327 + 392, + 396, + 401, + 405, + 416, + 432, + 409, + 424, + 439, + 389 ] } ], @@ -8129,7 +10661,7 @@ ], "props": [ { - "id": 322, + "id": 384, "name": "script", "kind": 1024, "kindString": "Property", @@ -8156,7 +10688,7 @@ ], "methods": [ { - "id": 330, + "id": 392, "name": "addAction", "kind": 2048, "kindString": "Method", @@ -8167,7 +10699,7 @@ }, "signatures": [ { - "id": 331, + "id": 393, "name": "addAction", "kind": 4096, "kindString": "Call signature", @@ -8180,7 +10712,7 @@ }, "parameters": [ { - "id": 332, + "id": 394, "name": "action", "kind": 32768, "kindString": "Parameter", @@ -8196,7 +10728,7 @@ } }, { - "id": 333, + "id": 395, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8215,7 +10747,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -8229,7 +10761,7 @@ ] }, { - "id": 334, + "id": 396, "name": "addChildDialog", "kind": 2048, "kindString": "Method", @@ -8240,7 +10772,7 @@ }, "signatures": [ { - "id": 335, + "id": 397, "name": "addChildDialog", "kind": 4096, "kindString": "Call signature", @@ -8253,7 +10785,7 @@ }, "parameters": [ { - "id": 336, + "id": 398, "name": "dialog_id", "kind": 32768, "kindString": "Parameter", @@ -8269,7 +10801,7 @@ } }, { - "id": 337, + "id": 399, "name": "key_name", "kind": 32768, "kindString": "Parameter", @@ -8286,7 +10818,7 @@ } }, { - "id": 338, + "id": 400, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8305,7 +10837,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -8319,7 +10851,7 @@ ] }, { - "id": 339, + "id": 401, "name": "addGotoDialog", "kind": 2048, "kindString": "Method", @@ -8330,7 +10862,7 @@ }, "signatures": [ { - "id": 340, + "id": 402, "name": "addGotoDialog", "kind": 4096, "kindString": "Call signature", @@ -8343,7 +10875,7 @@ }, "parameters": [ { - "id": 341, + "id": 403, "name": "dialog_id", "kind": 32768, "kindString": "Parameter", @@ -8359,7 +10891,7 @@ } }, { - "id": 342, + "id": 404, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8378,7 +10910,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -8392,7 +10924,7 @@ ] }, { - "id": 343, + "id": 405, "name": "addMessage", "kind": 2048, "kindString": "Method", @@ -8403,7 +10935,7 @@ }, "signatures": [ { - "id": 344, + "id": 406, "name": "addMessage", "kind": 4096, "kindString": "Call signature", @@ -8416,7 +10948,7 @@ }, "parameters": [ { - "id": 345, + "id": 407, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -8434,7 +10966,7 @@ "typeArguments": [ { "type": "reference", - "id": 270, + "id": 332, "name": "BotkitMessageTemplate" } ], @@ -8448,7 +10980,7 @@ } }, { - "id": 346, + "id": 408, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8466,7 +10998,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -8480,7 +11012,7 @@ ] }, { - "id": 354, + "id": 416, "name": "addQuestion", "kind": 2048, "kindString": "Method", @@ -8491,7 +11023,7 @@ }, "signatures": [ { - "id": 355, + "id": 417, "name": "addQuestion", "kind": 4096, "kindString": "Call signature", @@ -8504,7 +11036,7 @@ }, "parameters": [ { - "id": 356, + "id": 418, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -8522,7 +11054,7 @@ "typeArguments": [ { "type": "reference", - "id": 270, + "id": 332, "name": "BotkitMessageTemplate" } ], @@ -8536,7 +11068,7 @@ } }, { - "id": 357, + "id": 419, "name": "handlers", "kind": 32768, "kindString": "Parameter", @@ -8551,14 +11083,14 @@ "types": [ { "type": "reference", - "id": 259, + "id": 321, "name": "BotkitConvoHandler" }, { "type": "array", "elementType": { "type": "reference", - "id": 265, + "id": 327, "name": "BotkitConvoTrigger" } } @@ -8566,7 +11098,7 @@ } }, { - "id": 358, + "id": 420, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -8582,7 +11114,7 @@ { "type": "reflection", "declaration": { - "id": 359, + "id": 421, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8591,7 +11123,7 @@ }, "children": [ { - "id": 360, + "id": 422, "name": "key", "kind": 32, "kindString": "Variable", @@ -8617,7 +11149,7 @@ "title": "Variables", "kind": 32, "children": [ - 360 + 422 ] } ], @@ -8642,7 +11174,7 @@ } }, { - "id": 361, + "id": 423, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8660,7 +11192,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -8674,7 +11206,7 @@ ] }, { - "id": 370, + "id": 432, "name": "after", "kind": 2048, "kindString": "Method", @@ -8685,7 +11217,7 @@ }, "signatures": [ { - "id": 371, + "id": 433, "name": "after", "kind": 4096, "kindString": "Call signature", @@ -8698,7 +11230,7 @@ }, "parameters": [ { - "id": 372, + "id": 434, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -8711,7 +11243,7 @@ "type": { "type": "reflection", "declaration": { - "id": 373, + "id": 435, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8720,7 +11252,7 @@ }, "signatures": [ { - "id": 374, + "id": 436, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -8729,7 +11261,7 @@ }, "parameters": [ { - "id": 375, + "id": 437, "name": "results", "kind": 32768, "kindString": "Parameter", @@ -8742,7 +11274,7 @@ } }, { - "id": 376, + "id": 438, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -8751,7 +11283,7 @@ }, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } } @@ -8788,7 +11320,7 @@ ] }, { - "id": 347, + "id": 409, "name": "ask", "kind": 2048, "kindString": "Method", @@ -8799,7 +11331,7 @@ }, "signatures": [ { - "id": 348, + "id": 410, "name": "ask", "kind": 4096, "kindString": "Call signature", @@ -8812,7 +11344,7 @@ }, "parameters": [ { - "id": 349, + "id": 411, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -8830,7 +11362,7 @@ "typeArguments": [ { "type": "reference", - "id": 270, + "id": 332, "name": "BotkitMessageTemplate" } ], @@ -8844,7 +11376,7 @@ } }, { - "id": 350, + "id": 412, "name": "handlers", "kind": 32768, "kindString": "Parameter", @@ -8859,14 +11391,14 @@ "types": [ { "type": "reference", - "id": 259, + "id": 321, "name": "BotkitConvoHandler" }, { "type": "array", "elementType": { "type": "reference", - "id": 265, + "id": 327, "name": "BotkitConvoTrigger" } } @@ -8874,7 +11406,7 @@ } }, { - "id": 351, + "id": 413, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -8890,7 +11422,7 @@ { "type": "reflection", "declaration": { - "id": 352, + "id": 414, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8899,7 +11431,7 @@ }, "children": [ { - "id": 353, + "id": 415, "name": "key", "kind": 32, "kindString": "Variable", @@ -8925,7 +11457,7 @@ "title": "Variables", "kind": 32, "children": [ - 353 + 415 ] } ], @@ -8952,7 +11484,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -8966,7 +11498,7 @@ ] }, { - "id": 362, + "id": 424, "name": "before", "kind": 2048, "kindString": "Method", @@ -8977,7 +11509,7 @@ }, "signatures": [ { - "id": 363, + "id": 425, "name": "before", "kind": 4096, "kindString": "Call signature", @@ -8990,7 +11522,7 @@ }, "parameters": [ { - "id": 364, + "id": 426, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -9006,7 +11538,7 @@ } }, { - "id": 365, + "id": 427, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -9019,7 +11551,7 @@ "type": { "type": "reflection", "declaration": { - "id": 366, + "id": 428, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9028,7 +11560,7 @@ }, "signatures": [ { - "id": 367, + "id": 429, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -9037,7 +11569,7 @@ }, "parameters": [ { - "id": 368, + "id": 430, "name": "convo", "kind": 32768, "kindString": "Parameter", @@ -9046,12 +11578,12 @@ }, "type": { "type": "reference", - "id": 238, + "id": 300, "name": "BotkitDialogWrapper" } }, { - "id": 369, + "id": 431, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -9060,7 +11592,7 @@ }, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } } @@ -9103,7 +11635,7 @@ ] }, { - "id": 377, + "id": 439, "name": "onChange", "kind": 2048, "kindString": "Method", @@ -9114,7 +11646,7 @@ }, "signatures": [ { - "id": 378, + "id": 440, "name": "onChange", "kind": 4096, "kindString": "Call signature", @@ -9127,7 +11659,7 @@ }, "parameters": [ { - "id": 379, + "id": 441, "name": "variable", "kind": 32768, "kindString": "Parameter", @@ -9143,7 +11675,7 @@ } }, { - "id": 380, + "id": 442, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -9156,7 +11688,7 @@ "type": { "type": "reflection", "declaration": { - "id": 381, + "id": 443, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9165,7 +11697,7 @@ }, "signatures": [ { - "id": 382, + "id": 444, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -9174,7 +11706,7 @@ }, "parameters": [ { - "id": 383, + "id": 445, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -9187,7 +11719,7 @@ } }, { - "id": 384, + "id": 446, "name": "convo", "kind": 32768, "kindString": "Parameter", @@ -9200,7 +11732,7 @@ } }, { - "id": 385, + "id": 447, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -9251,7 +11783,7 @@ ] }, { - "id": 327, + "id": 389, "name": "say", "kind": 2048, "kindString": "Method", @@ -9262,7 +11794,7 @@ }, "signatures": [ { - "id": 328, + "id": 390, "name": "say", "kind": 4096, "kindString": "Call signature", @@ -9275,7 +11807,7 @@ }, "parameters": [ { - "id": 329, + "id": 391, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -9293,7 +11825,7 @@ "typeArguments": [ { "type": "reference", - "id": 270, + "id": 332, "name": "BotkitMessageTemplate" } ], @@ -9309,7 +11841,7 @@ ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -9325,7 +11857,7 @@ ], "constructors": [ { - "id": 323, + "id": 385, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -9339,7 +11871,7 @@ }, "signatures": [ { - "id": 324, + "id": 386, "name": "new BotkitConversation", "kind": 16384, "kindString": "Constructor signature", @@ -9351,7 +11883,7 @@ }, "parameters": [ { - "id": 325, + "id": 387, "name": "dialogId", "kind": 32768, "kindString": "Parameter", @@ -9367,7 +11899,7 @@ } }, { - "id": 326, + "id": 388, "name": "controller", "kind": 32768, "kindString": "Parameter", @@ -9379,14 +11911,14 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } } ], "type": { "type": "reference", - "id": 320, + "id": 382, "name": "BotkitConversation" } } @@ -9402,7 +11934,7 @@ ] }, { - "id": 238, + "id": 300, "name": "BotkitDialogWrapper", "kind": 128, "kindString": "Class", @@ -9415,7 +11947,7 @@ }, "children": [ { - "id": 243, + "id": 305, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -9426,7 +11958,7 @@ }, "signatures": [ { - "id": 244, + "id": 306, "name": "new BotkitDialogWrapper", "kind": 16384, "kindString": "Constructor signature", @@ -9435,7 +11967,7 @@ }, "parameters": [ { - "id": 245, + "id": 307, "name": "dc", "kind": 32768, "kindString": "Parameter", @@ -9448,7 +11980,7 @@ } }, { - "id": 246, + "id": 308, "name": "step", "kind": 32768, "kindString": "Parameter", @@ -9457,14 +11989,14 @@ }, "type": { "type": "reference", - "id": 307, + "id": 369, "name": "BotkitConversationStep" } } ], "type": { "type": "reference", - "id": 238, + "id": 300, "name": "BotkitDialogWrapper" } } @@ -9478,7 +12010,7 @@ ] }, { - "id": 239, + "id": 301, "name": "vars", "kind": 1024, "kindString": "Property", @@ -9500,7 +12032,7 @@ "type": { "type": "reflection", "declaration": { - "id": 240, + "id": 302, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9509,7 +12041,7 @@ }, "indexSignature": [ { - "id": 241, + "id": 303, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -9518,7 +12050,7 @@ }, "parameters": [ { - "id": 242, + "id": 304, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -9548,7 +12080,7 @@ } }, { - "id": 247, + "id": 309, "name": "gotoThread", "kind": 2048, "kindString": "Method", @@ -9559,7 +12091,7 @@ }, "signatures": [ { - "id": 248, + "id": 310, "name": "gotoThread", "kind": 4096, "kindString": "Call signature", @@ -9571,7 +12103,7 @@ }, "parameters": [ { - "id": 249, + "id": 311, "name": "thread", "kind": 32768, "kindString": "Parameter", @@ -9608,7 +12140,7 @@ ] }, { - "id": 250, + "id": 312, "name": "repeat", "kind": 2048, "kindString": "Method", @@ -9619,7 +12151,7 @@ }, "signatures": [ { - "id": 251, + "id": 313, "name": "repeat", "kind": 4096, "kindString": "Call signature", @@ -9650,7 +12182,7 @@ ] }, { - "id": 254, + "id": 316, "name": "setVar", "kind": 2048, "kindString": "Method", @@ -9661,7 +12193,7 @@ }, "signatures": [ { - "id": 255, + "id": 317, "name": "setVar", "kind": 4096, "kindString": "Call signature", @@ -9673,7 +12205,7 @@ }, "parameters": [ { - "id": 256, + "id": 318, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -9689,7 +12221,7 @@ } }, { - "id": 257, + "id": 319, "name": "val", "kind": 32768, "kindString": "Parameter", @@ -9720,7 +12252,7 @@ ] }, { - "id": 252, + "id": 314, "name": "stop", "kind": 2048, "kindString": "Method", @@ -9731,7 +12263,7 @@ }, "signatures": [ { - "id": 253, + "id": 315, "name": "stop", "kind": 4096, "kindString": "Call signature", @@ -9767,24 +12299,24 @@ "title": "Constructors", "kind": 512, "children": [ - 243 + 305 ] }, { "title": "Properties", "kind": 1024, "children": [ - 239 + 301 ] }, { "title": "Methods", "kind": 2048, "children": [ - 247, - 250, - 254, - 252 + 309, + 312, + 316, + 314 ] } ], @@ -9797,7 +12329,7 @@ ], "props": [ { - "id": 239, + "id": 301, "name": "vars", "kind": 1024, "kindString": "Property", @@ -9819,7 +12351,7 @@ "type": { "type": "reflection", "declaration": { - "id": 240, + "id": 302, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9828,7 +12360,7 @@ }, "indexSignature": [ { - "id": 241, + "id": 303, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -9837,7 +12369,7 @@ }, "parameters": [ { - "id": 242, + "id": 304, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -9869,7 +12401,7 @@ ], "methods": [ { - "id": 247, + "id": 309, "name": "gotoThread", "kind": 2048, "kindString": "Method", @@ -9880,7 +12412,7 @@ }, "signatures": [ { - "id": 248, + "id": 310, "name": "gotoThread", "kind": 4096, "kindString": "Call signature", @@ -9892,7 +12424,7 @@ }, "parameters": [ { - "id": 249, + "id": 311, "name": "thread", "kind": 32768, "kindString": "Parameter", @@ -9929,7 +12461,7 @@ ] }, { - "id": 250, + "id": 312, "name": "repeat", "kind": 2048, "kindString": "Method", @@ -9940,7 +12472,7 @@ }, "signatures": [ { - "id": 251, + "id": 313, "name": "repeat", "kind": 4096, "kindString": "Call signature", @@ -9971,7 +12503,7 @@ ] }, { - "id": 254, + "id": 316, "name": "setVar", "kind": 2048, "kindString": "Method", @@ -9982,7 +12514,7 @@ }, "signatures": [ { - "id": 255, + "id": 317, "name": "setVar", "kind": 4096, "kindString": "Call signature", @@ -9994,7 +12526,7 @@ }, "parameters": [ { - "id": 256, + "id": 318, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -10010,7 +12542,7 @@ } }, { - "id": 257, + "id": 319, "name": "val", "kind": 32768, "kindString": "Parameter", @@ -10041,7 +12573,7 @@ ] }, { - "id": 252, + "id": 314, "name": "stop", "kind": 2048, "kindString": "Method", @@ -10052,7 +12584,7 @@ }, "signatures": [ { - "id": 253, + "id": 315, "name": "stop", "kind": 4096, "kindString": "Call signature", @@ -10085,7 +12617,7 @@ ], "constructors": [ { - "id": 243, + "id": 305, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10096,7 +12628,7 @@ }, "signatures": [ { - "id": 244, + "id": 306, "name": "new BotkitDialogWrapper", "kind": 16384, "kindString": "Constructor signature", @@ -10105,7 +12637,7 @@ }, "parameters": [ { - "id": 245, + "id": 307, "name": "dc", "kind": 32768, "kindString": "Parameter", @@ -10118,7 +12650,7 @@ } }, { - "id": 246, + "id": 308, "name": "step", "kind": 32768, "kindString": "Parameter", @@ -10127,14 +12659,14 @@ }, "type": { "type": "reference", - "id": 307, + "id": 369, "name": "BotkitConversationStep" } } ], "type": { "type": "reference", - "id": 238, + "id": 300, "name": "BotkitDialogWrapper" } } @@ -10150,7 +12682,7 @@ ] }, { - "id": 403, + "id": 465, "name": "BotkitTestClient", "kind": 128, "kindString": "Class", @@ -10163,7 +12695,7 @@ }, "children": [ { - "id": 406, + "id": 468, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10178,7 +12710,7 @@ }, "signatures": [ { - "id": 407, + "id": 469, "name": "new BotkitTestClient", "kind": 16384, "kindString": "Constructor signature", @@ -10191,7 +12723,7 @@ }, "parameters": [ { - "id": 408, + "id": 470, "name": "channelId", "kind": 32768, "kindString": "Parameter", @@ -10207,7 +12739,7 @@ } }, { - "id": 409, + "id": 471, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -10219,12 +12751,12 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } }, { - "id": 410, + "id": 472, "name": "dialogToTest", "kind": 32768, "kindString": "Parameter", @@ -10252,7 +12784,7 @@ } }, { - "id": 411, + "id": 473, "name": "initialDialogOptions", "kind": 32768, "kindString": "Parameter", @@ -10269,7 +12801,7 @@ } }, { - "id": 412, + "id": 474, "name": "middlewares", "kind": 32768, "kindString": "Parameter", @@ -10289,7 +12821,7 @@ } }, { - "id": 413, + "id": 475, "name": "conversationState", "kind": 32768, "kindString": "Parameter", @@ -10308,12 +12840,12 @@ ], "type": { "type": "reference", - "id": 403, + "id": 465, "name": "BotkitTestClient" } }, { - "id": 414, + "id": 476, "name": "new BotkitTestClient", "kind": 16384, "kindString": "Constructor signature", @@ -10326,7 +12858,7 @@ }, "parameters": [ { - "id": 415, + "id": 477, "name": "testAdapter", "kind": 32768, "kindString": "Parameter", @@ -10339,7 +12871,7 @@ } }, { - "id": 416, + "id": 478, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -10351,12 +12883,12 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } }, { - "id": 417, + "id": 479, "name": "dialogToTest", "kind": 32768, "kindString": "Parameter", @@ -10384,7 +12916,7 @@ } }, { - "id": 418, + "id": 480, "name": "initialDialogOptions", "kind": 32768, "kindString": "Parameter", @@ -10401,7 +12933,7 @@ } }, { - "id": 419, + "id": 481, "name": "middlewares", "kind": 32768, "kindString": "Parameter", @@ -10421,7 +12953,7 @@ } }, { - "id": 420, + "id": 482, "name": "conversationState", "kind": 32768, "kindString": "Parameter", @@ -10440,7 +12972,7 @@ ], "type": { "type": "reference", - "id": 403, + "id": 465, "name": "BotkitTestClient" } } @@ -10464,7 +12996,7 @@ ] }, { - "id": 405, + "id": 467, "name": "conversationState", "kind": 1024, "kindString": "Property", @@ -10486,7 +13018,7 @@ } }, { - "id": 404, + "id": 466, "name": "dialogTurnResult", "kind": 1024, "kindString": "Property", @@ -10508,7 +13040,7 @@ } }, { - "id": 424, + "id": 486, "name": "getNextReply", "kind": 2048, "kindString": "Method", @@ -10519,7 +13051,7 @@ }, "signatures": [ { - "id": 425, + "id": 487, "name": "getNextReply", "kind": 4096, "kindString": "Call signature", @@ -10550,7 +13082,7 @@ ] }, { - "id": 421, + "id": 483, "name": "sendActivity", "kind": 2048, "kindString": "Method", @@ -10561,7 +13093,7 @@ }, "signatures": [ { - "id": 422, + "id": 484, "name": "sendActivity", "kind": 4096, "kindString": "Call signature", @@ -10574,7 +13106,7 @@ }, "parameters": [ { - "id": 423, + "id": 485, "name": "activity", "kind": 32768, "kindString": "Parameter", @@ -10631,23 +13163,23 @@ "title": "Constructors", "kind": 512, "children": [ - 406 + 468 ] }, { "title": "Properties", "kind": 1024, "children": [ - 405, - 404 + 467, + 466 ] }, { "title": "Methods", "kind": 2048, "children": [ - 424, - 421 + 486, + 483 ] } ], @@ -10660,7 +13192,7 @@ ], "props": [ { - "id": 405, + "id": 467, "name": "conversationState", "kind": 1024, "kindString": "Property", @@ -10682,7 +13214,7 @@ } }, { - "id": 404, + "id": 466, "name": "dialogTurnResult", "kind": 1024, "kindString": "Property", @@ -10706,7 +13238,7 @@ ], "methods": [ { - "id": 424, + "id": 486, "name": "getNextReply", "kind": 2048, "kindString": "Method", @@ -10717,7 +13249,7 @@ }, "signatures": [ { - "id": 425, + "id": 487, "name": "getNextReply", "kind": 4096, "kindString": "Call signature", @@ -10748,7 +13280,7 @@ ] }, { - "id": 421, + "id": 483, "name": "sendActivity", "kind": 2048, "kindString": "Method", @@ -10759,7 +13291,7 @@ }, "signatures": [ { - "id": 422, + "id": 484, "name": "sendActivity", "kind": 4096, "kindString": "Call signature", @@ -10772,7 +13304,7 @@ }, "parameters": [ { - "id": 423, + "id": 485, "name": "activity", "kind": 32768, "kindString": "Parameter", @@ -10826,7 +13358,7 @@ ], "constructors": [ { - "id": 406, + "id": 468, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10841,7 +13373,7 @@ }, "signatures": [ { - "id": 407, + "id": 469, "name": "new BotkitTestClient", "kind": 16384, "kindString": "Constructor signature", @@ -10854,7 +13386,7 @@ }, "parameters": [ { - "id": 408, + "id": 470, "name": "channelId", "kind": 32768, "kindString": "Parameter", @@ -10870,7 +13402,7 @@ } }, { - "id": 409, + "id": 471, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -10882,12 +13414,12 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } }, { - "id": 410, + "id": 472, "name": "dialogToTest", "kind": 32768, "kindString": "Parameter", @@ -10915,7 +13447,7 @@ } }, { - "id": 411, + "id": 473, "name": "initialDialogOptions", "kind": 32768, "kindString": "Parameter", @@ -10932,7 +13464,7 @@ } }, { - "id": 412, + "id": 474, "name": "middlewares", "kind": 32768, "kindString": "Parameter", @@ -10952,7 +13484,139 @@ } }, { - "id": 413, + "id": 475, + "name": "conversationState", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "(Optional) A ConversationState instance to use in the test client\n" + }, + "type": { + "type": "reference", + "name": "ConversationState" + } + } + ], + "type": { + "type": "reference", + "id": 465, + "name": "BotkitTestClient" + } + }, + { + "id": 476, + "name": "new BotkitTestClient", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Create a BotkitTestClient to test a dialog without having to create a full-fledged adapter.", + "text": "```javascript\nlet client = new BotkitTestClient('test', bot, MY_DIALOG, MY_OPTIONS);\nlet reply = await client.sendActivity('first message');\nassert.strictEqual(reply.text, 'first reply', 'reply failed');\n```\n" + }, + "parameters": [ + { + "id": 477, + "name": "testAdapter", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "TestAdapter" + } + }, + { + "id": 478, + "name": "bot", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "(Required) The Botkit bot that has the skill to test." + }, + "type": { + "type": "reference", + "id": 188, + "name": "Botkit" + } + }, + { + "id": 479, + "name": "dialogToTest", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "(Required) The identifier of the skill to test in the bot." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 480, + "name": "initialDialogOptions", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "(Optional) additional argument(s) to pass to the dialog being started." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 481, + "name": "middlewares", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "(Optional) a stack of middleware to be run when testing" + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Middleware" + } + } + }, + { + "id": 482, "name": "conversationState", "kind": 32768, "kindString": "Parameter", @@ -10971,167 +13635,296 @@ ], "type": { "type": "reference", - "id": 403, + "id": 465, "name": "BotkitTestClient" } - }, + } + ], + "sources": [ + { + "fileName": "testClient.ts", + "line": 27, + "character": 48 + }, + { + "fileName": "testClient.ts", + "line": 47, + "character": 182 + }, + { + "fileName": "testClient.ts", + "line": 48, + "character": 189 + } + ] + } + ] + }, + { + "id": 106, + "name": "TeamsInvokeMiddleware", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true, + "isExternal": true + }, + "comment": { + "shortText": "When used, causes Botkit to emit special events for teams \"invokes\"\nBased on https://github.com/microsoft/botbuilder-js/blob/master/libraries/botbuilder/src/teamsActivityHandler.ts\nThis allows Botkit bots to respond directly to task/fetch or task/submit events, as an example." + }, + "children": [ + { + "id": 107, + "name": "onTurn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 108, + "name": "onTurn", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Not for direct use - implements the MiddlewareSet's required onTurn function used to process the event" + }, + "parameters": [ + { + "id": 109, + "name": "context", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": {}, + "type": { + "type": "reference", + "name": "TurnContext" + } + }, + { + "id": 110, + "name": "next", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "\n" + }, + "type": { + "type": "reflection", + "declaration": { + "id": 111, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 112, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "teamsHelpers.ts", + "line": 72, + "character": 51 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" + } + } + ], + "sources": [ { - "id": 414, - "name": "new BotkitTestClient", - "kind": 16384, - "kindString": "Constructor signature", + "fileName": "teamsHelpers.ts", + "line": 72, + "character": 23 + } + ] + } + ], + "groups": [ + { + "title": "Methods", + "kind": 2048, + "children": [ + 107 + ] + } + ], + "sources": [ + { + "fileName": "teamsHelpers.ts", + "line": 66, + "character": 34 + } + ], + "extendedTypes": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "props": [], + "methods": [ + { + "id": 107, + "name": "onTurn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 108, + "name": "onTurn", + "kind": 4096, + "kindString": "Call signature", "flags": { "isExported": true }, "comment": { - "shortText": "Create a BotkitTestClient to test a dialog without having to create a full-fledged adapter.", - "text": "```javascript\nlet client = new BotkitTestClient('test', bot, MY_DIALOG, MY_OPTIONS);\nlet reply = await client.sendActivity('first message');\nassert.strictEqual(reply.text, 'first reply', 'reply failed');\n```\n" + "shortText": "Not for direct use - implements the MiddlewareSet's required onTurn function used to process the event" }, "parameters": [ { - "id": 415, - "name": "testAdapter", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "TestAdapter" - } - }, - { - "id": 416, - "name": "bot", + "id": 109, + "name": "context", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, - "comment": { - "shortText": "(Required) The Botkit bot that has the skill to test." - }, + "comment": {}, "type": { "type": "reference", - "id": 126, - "name": "Botkit" + "name": "TurnContext" } }, { - "id": 417, - "name": "dialogToTest", + "id": 110, + "name": "next", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, "comment": { - "shortText": "(Required) The identifier of the skill to test in the bot." + "text": "\n" }, "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 111, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" + "signatures": [ + { + "id": 112, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } } - } - ] - } - }, - { - "id": 418, - "name": "initialDialogOptions", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "(Optional) additional argument(s) to pass to the dialog being started." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 419, - "name": "middlewares", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "(Optional) a stack of middleware to be run when testing" - }, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Middleware" + ], + "sources": [ + { + "fileName": "teamsHelpers.ts", + "line": 72, + "character": 51 + } + ] } } - }, - { - "id": 420, - "name": "conversationState", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "(Optional) A ConversationState instance to use in the test client\n" - }, - "type": { - "type": "reference", - "name": "ConversationState" - } } ], "type": { "type": "reference", - "id": 403, - "name": "BotkitTestClient" + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" } } ], "sources": [ { - "fileName": "testClient.ts", - "line": 27, - "character": 48 - }, - { - "fileName": "testClient.ts", - "line": 47, - "character": 182 - }, - { - "fileName": "testClient.ts", - "line": 48, - "character": 189 + "fileName": "teamsHelpers.ts", + "line": 72, + "character": 23 } ] } - ] + ], + "constructors": [] } ], "interfaces": [ { - "id": 80, + "id": 140, "name": "BotkitConfiguration", "kind": 256, "kindString": "Interface", @@ -11144,7 +13937,7 @@ }, "children": [ { - "id": 83, + "id": 143, "name": "adapter", "kind": 1024, "kindString": "Property", @@ -11169,7 +13962,7 @@ } }, { - "id": 84, + "id": 144, "name": "adapterConfig", "kind": 1024, "kindString": "Property", @@ -11191,7 +13984,7 @@ "type": { "type": "reflection", "declaration": { - "id": 85, + "id": 145, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11200,7 +13993,7 @@ }, "indexSignature": [ { - "id": 86, + "id": 146, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -11209,7 +14002,7 @@ }, "parameters": [ { - "id": 87, + "id": 147, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -11239,7 +14032,7 @@ } }, { - "id": 82, + "id": 142, "name": "dialogStateProperty", "kind": 1024, "kindString": "Property", @@ -11264,7 +14057,7 @@ } }, { - "id": 92, + "id": 152, "name": "disable_console", "kind": 1024, "kindString": "Property", @@ -11289,7 +14082,7 @@ } }, { - "id": 91, + "id": 151, "name": "disable_webserver", "kind": 1024, "kindString": "Property", @@ -11314,8 +14107,58 @@ } }, { - "id": 90, - "name": "storage", + "id": 153, + "name": "jsonLimit", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isExternal": true, + "isOptional": true + }, + "comment": { + "shortText": "Limit of the size of incoming JSON payloads parsed by the Express bodyParser. Defaults to '100kb'" + }, + "sources": [ + { + "fileName": "core.ts", + "line": 80, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 150, + "name": "storage", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isExternal": true, + "isOptional": true + }, + "comment": { + "shortText": "A Storage interface compatible with [this specification](https://docs.microsoft.com/en-us/javascript/api/botbuilder-core/storage?view=botbuilder-ts-latest)\nDefaults to the ephemeral [MemoryStorage](https://docs.microsoft.com/en-us/javascript/api/botbuilder-core/memorystorage?view=botbuilder-ts-latest) implementation." + }, + "sources": [ + { + "fileName": "core.ts", + "line": 65, + "character": 11 + } + ], + "type": { + "type": "reference", + "name": "Storage" + } + }, + { + "id": 154, + "name": "urlEncodedLimit", "kind": 1024, "kindString": "Property", "flags": { @@ -11324,22 +14167,22 @@ "isOptional": true }, "comment": { - "shortText": "A Storage interface compatible with [this specification](https://docs.microsoft.com/en-us/javascript/api/botbuilder-core/storage?view=botbuilder-ts-latest)\nDefaults to the ephemeral [MemoryStorage](https://docs.microsoft.com/en-us/javascript/api/botbuilder-core/memorystorage?view=botbuilder-ts-latest) implementation." + "shortText": "Limit of the size of incoming URL encoded payloads parsed by the Express bodyParser. Defaults to '100kb'" }, "sources": [ { "fileName": "core.ts", - "line": 65, - "character": 11 + "line": 85, + "character": 19 } ], "type": { - "type": "reference", - "name": "Storage" + "type": "intrinsic", + "name": "string" } }, { - "id": 81, + "id": 141, "name": "webhook_uri", "kind": 1024, "kindString": "Property", @@ -11364,7 +14207,7 @@ } }, { - "id": 88, + "id": 148, "name": "webserver", "kind": 1024, "kindString": "Property", @@ -11374,7 +14217,7 @@ "isOptional": true }, "comment": { - "shortText": "An instance of Express used to define web endpoints. If not specified, oen will be created internally.\nNote: only use your own Express if you absolutely must for some reason. Otherwise, use `controller.webserver`" + "shortText": "An instance of Express used to define web endpoints. If not specified, one will be created internally.\nNote: only use your own Express if you absolutely must for some reason. Otherwise, use `controller.webserver`" }, "sources": [ { @@ -11389,7 +14232,7 @@ } }, { - "id": 89, + "id": 149, "name": "webserver_middlewares", "kind": 1024, "kindString": "Property", @@ -11422,15 +14265,17 @@ "title": "Properties", "kind": 1024, "children": [ - 83, - 84, - 82, - 92, - 91, - 90, - 81, - 88, - 89 + 143, + 144, + 142, + 152, + 151, + 153, + 150, + 154, + 141, + 148, + 149 ] } ], @@ -11443,7 +14288,7 @@ ], "props": [ { - "id": 83, + "id": 143, "name": "adapter", "kind": 1024, "kindString": "Property", @@ -11468,7 +14313,7 @@ } }, { - "id": 84, + "id": 144, "name": "adapterConfig", "kind": 1024, "kindString": "Property", @@ -11490,7 +14335,7 @@ "type": { "type": "reflection", "declaration": { - "id": 85, + "id": 145, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11499,7 +14344,7 @@ }, "indexSignature": [ { - "id": 86, + "id": 146, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -11508,7 +14353,7 @@ }, "parameters": [ { - "id": 87, + "id": 147, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -11538,7 +14383,7 @@ } }, { - "id": 82, + "id": 142, "name": "dialogStateProperty", "kind": 1024, "kindString": "Property", @@ -11563,7 +14408,7 @@ } }, { - "id": 92, + "id": 152, "name": "disable_console", "kind": 1024, "kindString": "Property", @@ -11588,7 +14433,7 @@ } }, { - "id": 91, + "id": 151, "name": "disable_webserver", "kind": 1024, "kindString": "Property", @@ -11613,7 +14458,32 @@ } }, { - "id": 90, + "id": 153, + "name": "jsonLimit", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isExternal": true, + "isOptional": true + }, + "comment": { + "shortText": "Limit of the size of incoming JSON payloads parsed by the Express bodyParser. Defaults to '100kb'" + }, + "sources": [ + { + "fileName": "core.ts", + "line": 80, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 150, "name": "storage", "kind": 1024, "kindString": "Property", @@ -11638,7 +14508,32 @@ } }, { - "id": 81, + "id": 154, + "name": "urlEncodedLimit", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isExternal": true, + "isOptional": true + }, + "comment": { + "shortText": "Limit of the size of incoming URL encoded payloads parsed by the Express bodyParser. Defaults to '100kb'" + }, + "sources": [ + { + "fileName": "core.ts", + "line": 85, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 141, "name": "webhook_uri", "kind": 1024, "kindString": "Property", @@ -11663,7 +14558,7 @@ } }, { - "id": 88, + "id": 148, "name": "webserver", "kind": 1024, "kindString": "Property", @@ -11673,7 +14568,7 @@ "isOptional": true }, "comment": { - "shortText": "An instance of Express used to define web endpoints. If not specified, oen will be created internally.\nNote: only use your own Express if you absolutely must for some reason. Otherwise, use `controller.webserver`" + "shortText": "An instance of Express used to define web endpoints. If not specified, one will be created internally.\nNote: only use your own Express if you absolutely must for some reason. Otherwise, use `controller.webserver`" }, "sources": [ { @@ -11688,7 +14583,7 @@ } }, { - "id": 89, + "id": 149, "name": "webserver_middlewares", "kind": 1024, "kindString": "Property", @@ -11718,7 +14613,7 @@ ] }, { - "id": 307, + "id": 369, "name": "BotkitConversationStep", "kind": 256, "kindString": "Interface", @@ -11728,7 +14623,7 @@ }, "children": [ { - "id": 308, + "id": 370, "name": "index", "kind": 1024, "kindString": "Property", @@ -11752,7 +14647,7 @@ } }, { - "id": 316, + "id": 378, "name": "next", "kind": 1024, "kindString": "Property", @@ -11773,7 +14668,7 @@ "type": { "type": "reflection", "declaration": { - "id": 317, + "id": 379, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11782,7 +14677,7 @@ }, "signatures": [ { - "id": 318, + "id": 380, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -11791,7 +14686,7 @@ }, "parameters": [ { - "id": 319, + "id": 381, "name": "stepResult", "kind": 32768, "kindString": "Parameter", @@ -11827,7 +14722,7 @@ } }, { - "id": 312, + "id": 374, "name": "options", "kind": 1024, "kindString": "Property", @@ -11851,7 +14746,7 @@ } }, { - "id": 313, + "id": 375, "name": "reason", "kind": 1024, "kindString": "Property", @@ -11875,7 +14770,7 @@ } }, { - "id": 314, + "id": 376, "name": "result", "kind": 1024, "kindString": "Property", @@ -11899,7 +14794,7 @@ } }, { - "id": 311, + "id": 373, "name": "state", "kind": 1024, "kindString": "Property", @@ -11923,7 +14818,7 @@ } }, { - "id": 309, + "id": 371, "name": "thread", "kind": 1024, "kindString": "Property", @@ -11947,7 +14842,7 @@ } }, { - "id": 310, + "id": 372, "name": "threadLength", "kind": 1024, "kindString": "Property", @@ -11971,7 +14866,7 @@ } }, { - "id": 315, + "id": 377, "name": "values", "kind": 1024, "kindString": "Property", @@ -12000,15 +14895,15 @@ "title": "Properties", "kind": 1024, "children": [ - 308, - 316, - 312, - 313, - 314, - 311, - 309, - 310, - 315 + 370, + 378, + 374, + 375, + 376, + 373, + 371, + 372, + 377 ] } ], @@ -12021,7 +14916,7 @@ ], "props": [ { - "id": 308, + "id": 370, "name": "index", "kind": 1024, "kindString": "Property", @@ -12045,7 +14940,7 @@ } }, { - "id": 316, + "id": 378, "name": "next", "kind": 1024, "kindString": "Property", @@ -12066,7 +14961,7 @@ "type": { "type": "reflection", "declaration": { - "id": 317, + "id": 379, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12075,7 +14970,7 @@ }, "signatures": [ { - "id": 318, + "id": 380, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -12084,7 +14979,7 @@ }, "parameters": [ { - "id": 319, + "id": 381, "name": "stepResult", "kind": 32768, "kindString": "Parameter", @@ -12120,7 +15015,7 @@ } }, { - "id": 312, + "id": 374, "name": "options", "kind": 1024, "kindString": "Property", @@ -12144,7 +15039,7 @@ } }, { - "id": 313, + "id": 375, "name": "reason", "kind": 1024, "kindString": "Property", @@ -12168,7 +15063,7 @@ } }, { - "id": 314, + "id": 376, "name": "result", "kind": 1024, "kindString": "Property", @@ -12192,7 +15087,7 @@ } }, { - "id": 311, + "id": 373, "name": "state", "kind": 1024, "kindString": "Property", @@ -12216,7 +15111,7 @@ } }, { - "id": 309, + "id": 371, "name": "thread", "kind": 1024, "kindString": "Property", @@ -12240,7 +15135,7 @@ } }, { - "id": 310, + "id": 372, "name": "threadLength", "kind": 1024, "kindString": "Property", @@ -12264,7 +15159,7 @@ } }, { - "id": 315, + "id": 377, "name": "values", "kind": 1024, "kindString": "Property", @@ -12290,7 +15185,7 @@ ] }, { - "id": 259, + "id": 321, "name": "BotkitConvoHandler", "kind": 256, "kindString": "Interface", @@ -12302,7 +15197,7 @@ }, "signatures": [ { - "id": 260, + "id": 322, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -12312,7 +15207,7 @@ }, "parameters": [ { - "id": 261, + "id": 323, "name": "answer", "kind": 32768, "kindString": "Parameter", @@ -12323,38 +15218,38 @@ } }, { - "id": 262, + "id": 324, "name": "convo", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 238, + "id": 300, "name": "BotkitDialogWrapper" } }, { - "id": 263, + "id": 325, "name": "bot", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } }, { - "id": 264, + "id": 326, "name": "message", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -12380,7 +15275,7 @@ ] }, { - "id": 265, + "id": 327, "name": "BotkitConvoTrigger", "kind": 256, "kindString": "Interface", @@ -12392,7 +15287,7 @@ }, "children": [ { - "id": 269, + "id": 331, "name": "default", "kind": 1024, "kindString": "Property", @@ -12413,7 +15308,7 @@ } }, { - "id": 268, + "id": 330, "name": "handler", "kind": 1024, "kindString": "Property", @@ -12429,12 +15324,12 @@ ], "type": { "type": "reference", - "id": 259, + "id": 321, "name": "BotkitConvoHandler" } }, { - "id": 267, + "id": 329, "name": "pattern", "kind": 1024, "kindString": "Property", @@ -12464,7 +15359,7 @@ } }, { - "id": 266, + "id": 328, "name": "type", "kind": 1024, "kindString": "Property", @@ -12490,10 +15385,10 @@ "title": "Properties", "kind": 1024, "children": [ - 269, - 268, - 267, - 266 + 331, + 330, + 329, + 328 ] } ], @@ -12506,7 +15401,7 @@ ], "props": [ { - "id": 269, + "id": 331, "name": "default", "kind": 1024, "kindString": "Property", @@ -12527,7 +15422,7 @@ } }, { - "id": 268, + "id": 330, "name": "handler", "kind": 1024, "kindString": "Property", @@ -12543,12 +15438,12 @@ ], "type": { "type": "reference", - "id": 259, + "id": 321, "name": "BotkitConvoHandler" } }, { - "id": 267, + "id": 329, "name": "pattern", "kind": 1024, "kindString": "Property", @@ -12578,7 +15473,7 @@ } }, { - "id": 266, + "id": 328, "name": "type", "kind": 1024, "kindString": "Property", @@ -12601,7 +15496,7 @@ ] }, { - "id": 103, + "id": 165, "name": "BotkitHandler", "kind": 256, "kindString": "Interface", @@ -12615,7 +15510,7 @@ }, "signatures": [ { - "id": 104, + "id": 166, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -12628,7 +15523,7 @@ }, "parameters": [ { - "id": 105, + "id": 167, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -12637,12 +15532,12 @@ }, "type": { "type": "reference", - "id": 25, + "id": 2, "name": "BotWorker" } }, { - "id": 106, + "id": 168, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -12651,7 +15546,7 @@ }, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -12671,13 +15566,13 @@ "sources": [ { "fileName": "core.ts", - "line": 143, + "line": 154, "character": 30 } ] }, { - "id": 93, + "id": 155, "name": "BotkitMessage", "kind": 256, "kindString": "Interface", @@ -12690,7 +15585,7 @@ }, "indexSignature": [ { - "id": 101, + "id": 163, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -12702,7 +15597,7 @@ }, "parameters": [ { - "id": 102, + "id": 164, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -12723,7 +15618,7 @@ ], "children": [ { - "id": 98, + "id": 160, "name": "channel", "kind": 1024, "kindString": "Property", @@ -12737,7 +15632,7 @@ "sources": [ { "fileName": "core.ts", - "line": 106, + "line": 117, "character": 11 } ], @@ -12747,7 +15642,7 @@ } }, { - "id": 100, + "id": 162, "name": "incoming_message", "kind": 1024, "kindString": "Property", @@ -12761,7 +15656,7 @@ "sources": [ { "fileName": "core.ts", - "line": 117, + "line": 128, "character": 20 } ], @@ -12771,7 +15666,7 @@ } }, { - "id": 99, + "id": 161, "name": "reference", "kind": 1024, "kindString": "Property", @@ -12785,7 +15680,7 @@ "sources": [ { "fileName": "core.ts", - "line": 112, + "line": 123, "character": 13 } ], @@ -12795,7 +15690,7 @@ } }, { - "id": 95, + "id": 157, "name": "text", "kind": 1024, "kindString": "Property", @@ -12810,7 +15705,7 @@ "sources": [ { "fileName": "core.ts", - "line": 91, + "line": 102, "character": 8 } ], @@ -12820,7 +15715,7 @@ } }, { - "id": 94, + "id": 156, "name": "type", "kind": 1024, "kindString": "Property", @@ -12834,7 +15729,7 @@ "sources": [ { "fileName": "core.ts", - "line": 86, + "line": 97, "character": 8 } ], @@ -12844,7 +15739,7 @@ } }, { - "id": 97, + "id": 159, "name": "user", "kind": 1024, "kindString": "Property", @@ -12858,7 +15753,7 @@ "sources": [ { "fileName": "core.ts", - "line": 101, + "line": 112, "character": 8 } ], @@ -12868,7 +15763,7 @@ } }, { - "id": 96, + "id": 158, "name": "value", "kind": 1024, "kindString": "Property", @@ -12883,7 +15778,7 @@ "sources": [ { "fileName": "core.ts", - "line": 96, + "line": 107, "character": 9 } ], @@ -12898,26 +15793,26 @@ "title": "Properties", "kind": 1024, "children": [ - 98, - 100, - 99, - 95, - 94, - 97, - 96 + 160, + 162, + 161, + 157, + 156, + 159, + 158 ] } ], "sources": [ { "fileName": "core.ts", - "line": 82, + "line": 93, "character": 30 } ], "props": [ { - "id": 98, + "id": 160, "name": "channel", "kind": 1024, "kindString": "Property", @@ -12931,7 +15826,7 @@ "sources": [ { "fileName": "core.ts", - "line": 106, + "line": 117, "character": 11 } ], @@ -12941,7 +15836,7 @@ } }, { - "id": 100, + "id": 162, "name": "incoming_message", "kind": 1024, "kindString": "Property", @@ -12955,7 +15850,7 @@ "sources": [ { "fileName": "core.ts", - "line": 117, + "line": 128, "character": 20 } ], @@ -12965,7 +15860,7 @@ } }, { - "id": 99, + "id": 161, "name": "reference", "kind": 1024, "kindString": "Property", @@ -12979,7 +15874,7 @@ "sources": [ { "fileName": "core.ts", - "line": 112, + "line": 123, "character": 13 } ], @@ -12989,7 +15884,7 @@ } }, { - "id": 95, + "id": 157, "name": "text", "kind": 1024, "kindString": "Property", @@ -13004,7 +15899,7 @@ "sources": [ { "fileName": "core.ts", - "line": 91, + "line": 102, "character": 8 } ], @@ -13014,7 +15909,7 @@ } }, { - "id": 94, + "id": 156, "name": "type", "kind": 1024, "kindString": "Property", @@ -13028,7 +15923,7 @@ "sources": [ { "fileName": "core.ts", - "line": 86, + "line": 97, "character": 8 } ], @@ -13038,7 +15933,7 @@ } }, { - "id": 97, + "id": 159, "name": "user", "kind": 1024, "kindString": "Property", @@ -13052,7 +15947,7 @@ "sources": [ { "fileName": "core.ts", - "line": 101, + "line": 112, "character": 8 } ], @@ -13062,7 +15957,7 @@ } }, { - "id": 96, + "id": 158, "name": "value", "kind": 1024, "kindString": "Property", @@ -13077,7 +15972,7 @@ "sources": [ { "fileName": "core.ts", - "line": 96, + "line": 107, "character": 9 } ], @@ -13089,7 +15984,7 @@ ] }, { - "id": 270, + "id": 332, "name": "BotkitMessageTemplate", "kind": 256, "kindString": "Interface", @@ -13101,7 +15996,7 @@ }, "children": [ { - "id": 276, + "id": 338, "name": "action", "kind": 1024, "kindString": "Property", @@ -13122,7 +16017,7 @@ } }, { - "id": 296, + "id": 358, "name": "attachment", "kind": 1024, "kindString": "Property", @@ -13143,21 +16038,21 @@ { "type": "reflection", "declaration": { - "id": 297, + "id": 359, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 298, + "id": 360, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 299, + "id": 361, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -13168,7 +16063,7 @@ } }, { - "id": 300, + "id": 362, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -13202,7 +16097,7 @@ } }, { - "id": 301, + "id": 363, "name": "attachmentLayout", "kind": 1024, "kindString": "Property", @@ -13223,7 +16118,7 @@ } }, { - "id": 286, + "id": 348, "name": "attachments", "kind": 1024, "kindString": "Property", @@ -13244,21 +16139,21 @@ { "type": "reflection", "declaration": { - "id": 287, + "id": 349, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 288, + "id": 350, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 289, + "id": 351, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -13269,7 +16164,7 @@ } }, { - "id": 290, + "id": 352, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -13309,7 +16204,7 @@ } }, { - "id": 291, + "id": 353, "name": "blocks", "kind": 1024, "kindString": "Property", @@ -13330,21 +16225,21 @@ { "type": "reflection", "declaration": { - "id": 292, + "id": 354, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 293, + "id": 355, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 294, + "id": 356, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -13355,7 +16250,7 @@ } }, { - "id": 295, + "id": 357, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -13395,7 +16290,7 @@ } }, { - "id": 302, + "id": 364, "name": "channelData", "kind": 1024, "kindString": "Property", @@ -13416,7 +16311,7 @@ } }, { - "id": 303, + "id": 365, "name": "collect", "kind": 1024, "kindString": "Property", @@ -13433,14 +16328,14 @@ "type": { "type": "reflection", "declaration": { - "id": 304, + "id": 366, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 305, + "id": 367, "name": "key", "kind": 32, "kindString": "Variable", @@ -13461,7 +16356,7 @@ } }, { - "id": 306, + "id": 368, "name": "options", "kind": 32, "kindString": "Variable", @@ -13480,7 +16375,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 265, + "id": 327, "name": "BotkitConvoTrigger" } } @@ -13491,8 +16386,8 @@ "title": "Variables", "kind": 32, "children": [ - 305, - 306 + 367, + 368 ] } ], @@ -13507,7 +16402,7 @@ } }, { - "id": 277, + "id": 339, "name": "execute", "kind": 1024, "kindString": "Property", @@ -13525,14 +16420,14 @@ "type": { "type": "reflection", "declaration": { - "id": 278, + "id": 340, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 279, + "id": 341, "name": "script", "kind": 32, "kindString": "Variable", @@ -13552,7 +16447,7 @@ } }, { - "id": 280, + "id": 342, "name": "thread", "kind": 32, "kindString": "Variable", @@ -13578,8 +16473,8 @@ "title": "Variables", "kind": 32, "children": [ - 279, - 280 + 341, + 342 ] } ], @@ -13594,7 +16489,7 @@ } }, { - "id": 281, + "id": 343, "name": "quick_replies", "kind": 1024, "kindString": "Property", @@ -13615,21 +16510,21 @@ { "type": "reflection", "declaration": { - "id": 282, + "id": 344, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 283, + "id": 345, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 284, + "id": 346, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -13640,7 +16535,7 @@ } }, { - "id": 285, + "id": 347, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -13680,7 +16575,7 @@ } }, { - "id": 271, + "id": 333, "name": "text", "kind": 1024, "kindString": "Property", @@ -13700,21 +16595,21 @@ { "type": "reflection", "declaration": { - "id": 272, + "id": 334, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 273, + "id": 335, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 274, + "id": 336, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -13725,7 +16620,7 @@ } }, { - "id": 275, + "id": 337, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -13737,11 +16632,8 @@ } ], "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } + "type": "intrinsic", + "name": "string" } } ], @@ -13770,16 +16662,16 @@ "title": "Properties", "kind": 1024, "children": [ - 276, - 296, - 301, - 286, - 291, - 302, - 303, - 277, - 281, - 271 + 338, + 358, + 363, + 348, + 353, + 364, + 365, + 339, + 343, + 333 ] } ], @@ -13792,7 +16684,7 @@ ], "props": [ { - "id": 276, + "id": 338, "name": "action", "kind": 1024, "kindString": "Property", @@ -13813,7 +16705,7 @@ } }, { - "id": 296, + "id": 358, "name": "attachment", "kind": 1024, "kindString": "Property", @@ -13834,21 +16726,21 @@ { "type": "reflection", "declaration": { - "id": 297, + "id": 359, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 298, + "id": 360, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 299, + "id": 361, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -13859,7 +16751,7 @@ } }, { - "id": 300, + "id": 362, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -13893,7 +16785,7 @@ } }, { - "id": 301, + "id": 363, "name": "attachmentLayout", "kind": 1024, "kindString": "Property", @@ -13914,7 +16806,7 @@ } }, { - "id": 286, + "id": 348, "name": "attachments", "kind": 1024, "kindString": "Property", @@ -13935,21 +16827,21 @@ { "type": "reflection", "declaration": { - "id": 287, + "id": 349, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 288, + "id": 350, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 289, + "id": 351, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -13960,7 +16852,7 @@ } }, { - "id": 290, + "id": 352, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14000,7 +16892,7 @@ } }, { - "id": 291, + "id": 353, "name": "blocks", "kind": 1024, "kindString": "Property", @@ -14021,21 +16913,21 @@ { "type": "reflection", "declaration": { - "id": 292, + "id": 354, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 293, + "id": 355, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 294, + "id": 356, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -14046,7 +16938,7 @@ } }, { - "id": 295, + "id": 357, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14086,7 +16978,7 @@ } }, { - "id": 302, + "id": 364, "name": "channelData", "kind": 1024, "kindString": "Property", @@ -14107,7 +16999,7 @@ } }, { - "id": 303, + "id": 365, "name": "collect", "kind": 1024, "kindString": "Property", @@ -14124,14 +17016,14 @@ "type": { "type": "reflection", "declaration": { - "id": 304, + "id": 366, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 305, + "id": 367, "name": "key", "kind": 32, "kindString": "Variable", @@ -14152,7 +17044,7 @@ } }, { - "id": 306, + "id": 368, "name": "options", "kind": 32, "kindString": "Variable", @@ -14171,7 +17063,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 265, + "id": 327, "name": "BotkitConvoTrigger" } } @@ -14182,8 +17074,8 @@ "title": "Variables", "kind": 32, "children": [ - 305, - 306 + 367, + 368 ] } ], @@ -14198,7 +17090,7 @@ } }, { - "id": 277, + "id": 339, "name": "execute", "kind": 1024, "kindString": "Property", @@ -14216,14 +17108,14 @@ "type": { "type": "reflection", "declaration": { - "id": 278, + "id": 340, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 279, + "id": 341, "name": "script", "kind": 32, "kindString": "Variable", @@ -14243,7 +17135,7 @@ } }, { - "id": 280, + "id": 342, "name": "thread", "kind": 32, "kindString": "Variable", @@ -14269,8 +17161,8 @@ "title": "Variables", "kind": 32, "children": [ - 279, - 280 + 341, + 342 ] } ], @@ -14285,7 +17177,7 @@ } }, { - "id": 281, + "id": 343, "name": "quick_replies", "kind": 1024, "kindString": "Property", @@ -14306,21 +17198,21 @@ { "type": "reflection", "declaration": { - "id": 282, + "id": 344, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 283, + "id": 345, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 284, + "id": 346, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -14331,7 +17223,7 @@ } }, { - "id": 285, + "id": 347, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14371,7 +17263,7 @@ } }, { - "id": 271, + "id": 333, "name": "text", "kind": 1024, "kindString": "Property", @@ -14391,21 +17283,21 @@ { "type": "reflection", "declaration": { - "id": 272, + "id": 334, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 273, + "id": 335, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 274, + "id": 336, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -14416,7 +17308,7 @@ } }, { - "id": 275, + "id": 337, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14428,11 +17320,8 @@ } ], "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } + "type": "intrinsic", + "name": "string" } } ], @@ -14458,7 +17347,7 @@ ] }, { - "id": 114, + "id": 176, "name": "BotkitPlugin", "kind": 256, "kindString": "Interface", @@ -14471,7 +17360,7 @@ }, "indexSignature": [ { - "id": 124, + "id": 186, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -14483,7 +17372,7 @@ }, "parameters": [ { - "id": 125, + "id": 187, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -14504,7 +17393,7 @@ ], "children": [ { - "id": 120, + "id": 182, "name": "init", "kind": 1024, "kindString": "Property", @@ -14516,14 +17405,14 @@ "sources": [ { "fileName": "core.ts", - "line": 167, + "line": 178, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 121, + "id": 183, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14532,7 +17421,7 @@ }, "signatures": [ { - "id": 122, + "id": 184, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -14541,7 +17430,7 @@ }, "parameters": [ { - "id": 123, + "id": 185, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -14550,7 +17439,7 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } } @@ -14564,7 +17453,7 @@ "sources": [ { "fileName": "core.ts", - "line": 167, + "line": 178, "character": 10 } ] @@ -14572,7 +17461,7 @@ } }, { - "id": 116, + "id": 178, "name": "middlewares", "kind": 1024, "kindString": "Property", @@ -14584,14 +17473,14 @@ "sources": [ { "fileName": "core.ts", - "line": 164, + "line": 175, "character": 15 } ], "type": { "type": "reflection", "declaration": { - "id": 117, + "id": 179, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14600,7 +17489,7 @@ }, "indexSignature": [ { - "id": 118, + "id": 180, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -14609,7 +17498,7 @@ }, "parameters": [ { - "id": 119, + "id": 181, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -14634,7 +17523,7 @@ "sources": [ { "fileName": "core.ts", - "line": 164, + "line": 175, "character": 17 } ] @@ -14642,7 +17531,7 @@ } }, { - "id": 115, + "id": 177, "name": "name", "kind": 1024, "kindString": "Property", @@ -14653,7 +17542,7 @@ "sources": [ { "fileName": "core.ts", - "line": 163, + "line": 174, "character": 8 } ], @@ -14668,22 +17557,22 @@ "title": "Properties", "kind": 1024, "children": [ - 120, - 116, - 115 + 182, + 178, + 177 ] } ], "sources": [ { "fileName": "core.ts", - "line": 162, + "line": 173, "character": 29 } ], "props": [ { - "id": 120, + "id": 182, "name": "init", "kind": 1024, "kindString": "Property", @@ -14695,14 +17584,14 @@ "sources": [ { "fileName": "core.ts", - "line": 167, + "line": 178, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 121, + "id": 183, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14711,7 +17600,7 @@ }, "signatures": [ { - "id": 122, + "id": 184, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -14720,7 +17609,7 @@ }, "parameters": [ { - "id": 123, + "id": 185, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -14729,7 +17618,7 @@ }, "type": { "type": "reference", - "id": 126, + "id": 188, "name": "Botkit" } } @@ -14743,7 +17632,7 @@ "sources": [ { "fileName": "core.ts", - "line": 167, + "line": 178, "character": 10 } ] @@ -14751,7 +17640,7 @@ } }, { - "id": 116, + "id": 178, "name": "middlewares", "kind": 1024, "kindString": "Property", @@ -14763,14 +17652,14 @@ "sources": [ { "fileName": "core.ts", - "line": 164, + "line": 175, "character": 15 } ], "type": { "type": "reflection", "declaration": { - "id": 117, + "id": 179, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14779,7 +17668,7 @@ }, "indexSignature": [ { - "id": 118, + "id": 180, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -14788,7 +17677,7 @@ }, "parameters": [ { - "id": 119, + "id": 181, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -14813,7 +17702,7 @@ "sources": [ { "fileName": "core.ts", - "line": 164, + "line": 175, "character": 17 } ] @@ -14821,7 +17710,7 @@ } }, { - "id": 115, + "id": 177, "name": "name", "kind": 1024, "kindString": "Property", @@ -14832,7 +17721,7 @@ "sources": [ { "fileName": "core.ts", - "line": 163, + "line": 174, "character": 8 } ], @@ -14844,7 +17733,7 @@ ] }, { - "id": 107, + "id": 169, "name": "BotkitTrigger", "kind": 256, "kindString": "Interface", @@ -14856,7 +17745,7 @@ }, "children": [ { - "id": 113, + "id": 175, "name": "handler", "kind": 1024, "kindString": "Property", @@ -14866,18 +17755,18 @@ "sources": [ { "fileName": "core.ts", - "line": 156, + "line": 167, "character": 11 } ], "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } }, { - "id": 109, + "id": 171, "name": "pattern", "kind": 1024, "kindString": "Property", @@ -14887,7 +17776,7 @@ "sources": [ { "fileName": "core.ts", - "line": 155, + "line": 166, "character": 11 } ], @@ -14905,28 +17794,28 @@ { "type": "reflection", "declaration": { - "id": 110, + "id": 172, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 111, + "id": 173, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 112, + "id": 174, "name": "message", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -14946,7 +17835,7 @@ "sources": [ { "fileName": "core.ts", - "line": 155, + "line": 166, "character": 30 } ] @@ -14956,7 +17845,7 @@ } }, { - "id": 108, + "id": 170, "name": "type", "kind": 1024, "kindString": "Property", @@ -14969,7 +17858,7 @@ "sources": [ { "fileName": "core.ts", - "line": 154, + "line": 165, "character": 8 } ], @@ -14984,22 +17873,22 @@ "title": "Properties", "kind": 1024, "children": [ - 113, - 109, - 108 + 175, + 171, + 170 ] } ], "sources": [ { "fileName": "core.ts", - "line": 150, + "line": 161, "character": 23 } ], "props": [ { - "id": 113, + "id": 175, "name": "handler", "kind": 1024, "kindString": "Property", @@ -15009,18 +17898,18 @@ "sources": [ { "fileName": "core.ts", - "line": 156, + "line": 167, "character": 11 } ], "type": { "type": "reference", - "id": 103, + "id": 165, "name": "BotkitHandler" } }, { - "id": 109, + "id": 171, "name": "pattern", "kind": 1024, "kindString": "Property", @@ -15030,7 +17919,7 @@ "sources": [ { "fileName": "core.ts", - "line": 155, + "line": 166, "character": 11 } ], @@ -15048,28 +17937,28 @@ { "type": "reflection", "declaration": { - "id": 110, + "id": 172, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 111, + "id": 173, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 112, + "id": 174, "name": "message", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 93, + "id": 155, "name": "BotkitMessage" } } @@ -15089,7 +17978,7 @@ "sources": [ { "fileName": "core.ts", - "line": 155, + "line": 166, "character": 30 } ] @@ -15099,7 +17988,7 @@ } }, { - "id": 108, + "id": 170, "name": "type", "kind": 1024, "kindString": "Property", @@ -15112,7 +18001,7 @@ "sources": [ { "fileName": "core.ts", - "line": 154, + "line": 165, "character": 8 } ], @@ -16692,7 +19581,7 @@ "path": "reference/webex.md", "classes": [ { - "id": 21, + "id": 30, "name": "WebexAdapter", "kind": 128, "kindString": "Class", @@ -16705,7 +19594,7 @@ }, "children": [ { - "id": 25, + "id": 34, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -16720,7 +19609,7 @@ }, "signatures": [ { - "id": 26, + "id": 35, "name": "new WebexAdapter", "kind": 16384, "kindString": "Constructor signature", @@ -16733,7 +19622,7 @@ }, "parameters": [ { - "id": 27, + "id": 36, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -16742,14 +19631,14 @@ }, "type": { "type": "reference", - "id": 15, + "id": 24, "name": "WebexAdapterOptions" } } ], "type": { "type": "reference", - "id": 21, + "id": 30, "name": "WebexAdapter" } } @@ -16763,7 +19652,7 @@ ] }, { - "id": 30, + "id": 39, "name": "identity", "kind": 262144, "kindString": "Accessor", @@ -16777,7 +19666,7 @@ }, "getSignature": [ { - "id": 31, + "id": 40, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -16802,7 +19691,7 @@ ] }, { - "id": 55, + "id": 64, "name": "continueConversation", "kind": 2048, "kindString": "Method", @@ -16813,7 +19702,7 @@ }, "signatures": [ { - "id": 56, + "id": 65, "name": "continueConversation", "kind": 4096, "kindString": "Call signature", @@ -16825,7 +19714,7 @@ }, "parameters": [ { - "id": 57, + "id": 66, "name": "reference", "kind": 32768, "kindString": "Parameter", @@ -16847,7 +19736,7 @@ } }, { - "id": 58, + "id": 67, "name": "logic", "kind": 32768, "kindString": "Parameter", @@ -16860,7 +19749,7 @@ "type": { "type": "reflection", "declaration": { - "id": 59, + "id": 68, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -16869,7 +19758,7 @@ }, "signatures": [ { - "id": 60, + "id": 69, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -16878,7 +19767,7 @@ }, "parameters": [ { - "id": 61, + "id": 70, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -16906,7 +19795,7 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 442, + "line": 450, "character": 87 } ] @@ -16929,13 +19818,13 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 442, + "line": 450, "character": 37 } ] }, { - "id": 51, + "id": 60, "name": "deleteActivity", "kind": 2048, "kindString": "Method", @@ -16946,7 +19835,7 @@ }, "signatures": [ { - "id": 52, + "id": 61, "name": "deleteActivity", "kind": 4096, "kindString": "Call signature", @@ -16958,7 +19847,7 @@ }, "parameters": [ { - "id": 53, + "id": 62, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -16974,7 +19863,7 @@ } }, { - "id": 54, + "id": 63, "name": "reference", "kind": 32768, "kindString": "Parameter", @@ -17011,13 +19900,13 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 424, + "line": 432, "character": 31 } ] }, { - "id": 28, + "id": 37, "name": "getIdentity", "kind": 2048, "kindString": "Method", @@ -17028,7 +19917,7 @@ }, "signatures": [ { - "id": 29, + "id": 38, "name": "getIdentity", "kind": 4096, "kindString": "Call signature", @@ -17059,7 +19948,7 @@ ] }, { - "id": 32, + "id": 41, "name": "init", "kind": 2048, "kindString": "Method", @@ -17070,7 +19959,7 @@ }, "signatures": [ { - "id": 33, + "id": 42, "name": "init", "kind": 4096, "kindString": "Call signature", @@ -17082,7 +19971,7 @@ }, "parameters": [ { - "id": 34, + "id": 43, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -17110,7 +19999,7 @@ ] }, { - "id": 62, + "id": 71, "name": "processActivity", "kind": 2048, "kindString": "Method", @@ -17121,7 +20010,7 @@ }, "signatures": [ { - "id": 63, + "id": 72, "name": "processActivity", "kind": 4096, "kindString": "Call signature", @@ -17133,7 +20022,7 @@ }, "parameters": [ { - "id": 64, + "id": 73, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -17149,7 +20038,7 @@ } }, { - "id": 65, + "id": 74, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -17165,7 +20054,7 @@ } }, { - "id": 66, + "id": 75, "name": "logic", "kind": 32768, "kindString": "Parameter", @@ -17178,7 +20067,7 @@ "type": { "type": "reflection", "declaration": { - "id": 67, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -17187,7 +20076,7 @@ }, "signatures": [ { - "id": 68, + "id": 77, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -17196,7 +20085,7 @@ }, "parameters": [ { - "id": 69, + "id": 78, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -17224,7 +20113,7 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 459, + "line": 467, "character": 49 } ] @@ -17247,13 +20136,13 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 459, + "line": 467, "character": 32 } ] }, { - "id": 40, + "id": 49, "name": "registerAdaptiveCardWebhookSubscription", "kind": 2048, "kindString": "Method", @@ -17264,7 +20153,7 @@ }, "signatures": [ { - "id": 41, + "id": 50, "name": "registerAdaptiveCardWebhookSubscription", "kind": 4096, "kindString": "Call signature", @@ -17276,7 +20165,7 @@ }, "parameters": [ { - "id": 42, + "id": 51, "name": "webhook_path", "kind": 32768, "kindString": "Parameter", @@ -17307,7 +20196,7 @@ ] }, { - "id": 37, + "id": 46, "name": "registerWebhookSubscription", "kind": 2048, "kindString": "Method", @@ -17318,7 +20207,7 @@ }, "signatures": [ { - "id": 38, + "id": 47, "name": "registerWebhookSubscription", "kind": 4096, "kindString": "Call signature", @@ -17330,7 +20219,7 @@ }, "parameters": [ { - "id": 39, + "id": 48, "name": "webhook_path", "kind": 32768, "kindString": "Parameter", @@ -17361,7 +20250,7 @@ ] }, { - "id": 35, + "id": 44, "name": "resetWebhookSubscriptions", "kind": 2048, "kindString": "Method", @@ -17372,7 +20261,7 @@ }, "signatures": [ { - "id": 36, + "id": 45, "name": "resetWebhookSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -17403,7 +20292,7 @@ ] }, { - "id": 43, + "id": 52, "name": "sendActivities", "kind": 2048, "kindString": "Method", @@ -17414,7 +20303,7 @@ }, "signatures": [ { - "id": 44, + "id": 53, "name": "sendActivities", "kind": 4096, "kindString": "Call signature", @@ -17426,7 +20315,7 @@ }, "parameters": [ { - "id": 45, + "id": 54, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -17442,7 +20331,7 @@ } }, { - "id": 46, + "id": 55, "name": "activities", "kind": 32768, "kindString": "Parameter", @@ -17496,29 +20385,29 @@ "title": "Constructors", "kind": 512, "children": [ - 25 + 34 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 30 + 39 ] }, { "title": "Methods", "kind": 2048, "children": [ - 55, - 51, - 28, - 32, - 62, - 40, + 64, + 60, 37, - 35, - 43 + 41, + 71, + 49, + 46, + 44, + 52 ] } ], @@ -17537,7 +20426,7 @@ ], "props": [ { - "id": 30, + "id": 39, "name": "identity", "kind": 262144, "kindString": "Accessor", @@ -17551,7 +20440,7 @@ }, "getSignature": [ { - "id": 31, + "id": 40, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -17578,7 +20467,7 @@ ], "methods": [ { - "id": 55, + "id": 64, "name": "continueConversation", "kind": 2048, "kindString": "Method", @@ -17589,7 +20478,7 @@ }, "signatures": [ { - "id": 56, + "id": 65, "name": "continueConversation", "kind": 4096, "kindString": "Call signature", @@ -17601,7 +20490,7 @@ }, "parameters": [ { - "id": 57, + "id": 66, "name": "reference", "kind": 32768, "kindString": "Parameter", @@ -17623,7 +20512,7 @@ } }, { - "id": 58, + "id": 67, "name": "logic", "kind": 32768, "kindString": "Parameter", @@ -17636,7 +20525,7 @@ "type": { "type": "reflection", "declaration": { - "id": 59, + "id": 68, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -17645,7 +20534,7 @@ }, "signatures": [ { - "id": 60, + "id": 69, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -17654,7 +20543,7 @@ }, "parameters": [ { - "id": 61, + "id": 70, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -17682,7 +20571,7 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 442, + "line": 450, "character": 87 } ] @@ -17705,13 +20594,13 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 442, + "line": 450, "character": 37 } ] }, { - "id": 51, + "id": 60, "name": "deleteActivity", "kind": 2048, "kindString": "Method", @@ -17722,7 +20611,7 @@ }, "signatures": [ { - "id": 52, + "id": 61, "name": "deleteActivity", "kind": 4096, "kindString": "Call signature", @@ -17734,7 +20623,7 @@ }, "parameters": [ { - "id": 53, + "id": 62, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -17750,7 +20639,7 @@ } }, { - "id": 54, + "id": 63, "name": "reference", "kind": 32768, "kindString": "Parameter", @@ -17787,13 +20676,13 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 424, + "line": 432, "character": 31 } ] }, { - "id": 28, + "id": 37, "name": "getIdentity", "kind": 2048, "kindString": "Method", @@ -17804,7 +20693,7 @@ }, "signatures": [ { - "id": 29, + "id": 38, "name": "getIdentity", "kind": 4096, "kindString": "Call signature", @@ -17835,7 +20724,7 @@ ] }, { - "id": 32, + "id": 41, "name": "init", "kind": 2048, "kindString": "Method", @@ -17846,7 +20735,7 @@ }, "signatures": [ { - "id": 33, + "id": 42, "name": "init", "kind": 4096, "kindString": "Call signature", @@ -17858,7 +20747,7 @@ }, "parameters": [ { - "id": 34, + "id": 43, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -17886,7 +20775,7 @@ ] }, { - "id": 62, + "id": 71, "name": "processActivity", "kind": 2048, "kindString": "Method", @@ -17897,7 +20786,7 @@ }, "signatures": [ { - "id": 63, + "id": 72, "name": "processActivity", "kind": 4096, "kindString": "Call signature", @@ -17909,7 +20798,7 @@ }, "parameters": [ { - "id": 64, + "id": 73, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -17925,7 +20814,7 @@ } }, { - "id": 65, + "id": 74, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -17941,7 +20830,7 @@ } }, { - "id": 66, + "id": 75, "name": "logic", "kind": 32768, "kindString": "Parameter", @@ -17954,7 +20843,7 @@ "type": { "type": "reflection", "declaration": { - "id": 67, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -17963,7 +20852,7 @@ }, "signatures": [ { - "id": 68, + "id": 77, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -17972,7 +20861,7 @@ }, "parameters": [ { - "id": 69, + "id": 78, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -18000,7 +20889,7 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 459, + "line": 467, "character": 49 } ] @@ -18023,13 +20912,13 @@ "sources": [ { "fileName": "webex_adapter.ts", - "line": 459, + "line": 467, "character": 32 } ] }, { - "id": 40, + "id": 49, "name": "registerAdaptiveCardWebhookSubscription", "kind": 2048, "kindString": "Method", @@ -18040,7 +20929,7 @@ }, "signatures": [ { - "id": 41, + "id": 50, "name": "registerAdaptiveCardWebhookSubscription", "kind": 4096, "kindString": "Call signature", @@ -18052,7 +20941,7 @@ }, "parameters": [ { - "id": 42, + "id": 51, "name": "webhook_path", "kind": 32768, "kindString": "Parameter", @@ -18083,7 +20972,7 @@ ] }, { - "id": 37, + "id": 46, "name": "registerWebhookSubscription", "kind": 2048, "kindString": "Method", @@ -18094,7 +20983,7 @@ }, "signatures": [ { - "id": 38, + "id": 47, "name": "registerWebhookSubscription", "kind": 4096, "kindString": "Call signature", @@ -18106,7 +20995,7 @@ }, "parameters": [ { - "id": 39, + "id": 48, "name": "webhook_path", "kind": 32768, "kindString": "Parameter", @@ -18137,7 +21026,7 @@ ] }, { - "id": 35, + "id": 44, "name": "resetWebhookSubscriptions", "kind": 2048, "kindString": "Method", @@ -18148,7 +21037,7 @@ }, "signatures": [ { - "id": 36, + "id": 45, "name": "resetWebhookSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -18179,7 +21068,7 @@ ] }, { - "id": 43, + "id": 52, "name": "sendActivities", "kind": 2048, "kindString": "Method", @@ -18190,7 +21079,7 @@ }, "signatures": [ { - "id": 44, + "id": 53, "name": "sendActivities", "kind": 4096, "kindString": "Call signature", @@ -18202,7 +21091,7 @@ }, "parameters": [ { - "id": 45, + "id": 54, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -18218,7 +21107,7 @@ } }, { - "id": 46, + "id": 55, "name": "activities", "kind": 32768, "kindString": "Parameter", @@ -18269,7 +21158,7 @@ ], "constructors": [ { - "id": 25, + "id": 34, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -18284,7 +21173,7 @@ }, "signatures": [ { - "id": 26, + "id": 35, "name": "new WebexAdapter", "kind": 16384, "kindString": "Constructor signature", @@ -18297,7 +21186,7 @@ }, "parameters": [ { - "id": 27, + "id": 36, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -18306,14 +21195,14 @@ }, "type": { "type": "reference", - "id": 15, + "id": 24, "name": "WebexAdapterOptions" } } ], "type": { "type": "reference", - "id": 21, + "id": 30, "name": "WebexAdapter" } } @@ -18368,7 +21257,7 @@ } }, { - "id": 11, + "id": 20, "name": "deleteMessage", "kind": 2048, "kindString": "Method", @@ -18379,7 +21268,7 @@ }, "signatures": [ { - "id": 12, + "id": 21, "name": "deleteMessage", "kind": 4096, "kindString": "Call signature", @@ -18392,7 +21281,7 @@ }, "parameters": [ { - "id": 13, + "id": 22, "name": "update", "kind": 32768, "kindString": "Parameter", @@ -18429,14 +21318,167 @@ "sources": [ { "fileName": "botworker.ts", - "line": 99, - "character": 30 + "line": 157, + "character": 30 + } + ] + }, + { + "id": 16, + "name": "replyInThread", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 17, + "name": "replyInThread", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Like bot.reply, but as a threaded response to the incoming message rather than a new message in the main channel." + }, + "parameters": [ + { + "id": 18, + "name": "src", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "an incoming message object" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 19, + "name": "resp", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "an outgoing message object (or part of one or just reply text)\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 138, + "character": 30 + } + ] + }, + { + "id": 7, + "name": "startConversationInRoom", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 8, + "name": "startConversationInRoom", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Switch a bot's context into a different room.\nAfter calling this method, messages sent with `bot.say` and any dialogs started with `bot.beginDialog` will occur in this new context.", + "text": "```javascript\ncontroller.hears('take this offline', 'message', async(bot, message) => {\n\n // switch to a different channel\n await bot.startConversationInRoom(WEBEX_ROOM_ID, message.user);\n\n // say hello\n await bot.say('Shall we discuss this matter over here?');\n // ... continue...\n await bot.beginDialog(ANOTHER_DIALOG);\n\n});\n```\n\nAlso useful when sending pro-active messages such as those sent on a schedule or in response to external events:\n```javascript\n// Spawn a worker\nlet bot = await controller.spawn();\n\n// Set the context for the bot's next action...\nawait bot.startConversationInRoom(CACHED_ROOM_ID, CACHED_USER_ID);\n\n// Begin a dialog in the 1:1 context\nawait bot.beginDialog(ALERT_DIALOG);\n```\n" + }, + "parameters": [ + { + "id": 9, + "name": "roomId", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A Webex rooom id, like one found in `message.channel`" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 10, + "name": "userId", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A Webex user id, like one found in `message.user`\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 75, + "character": 40 } ] }, { - "id": 7, - "name": "startConversationInRoom", + "id": 11, + "name": "startConversationInThread", "kind": 2048, "kindString": "Method", "flags": { @@ -18446,20 +21488,20 @@ }, "signatures": [ { - "id": 8, - "name": "startConversationInRoom", + "id": 12, + "name": "startConversationInThread", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { - "shortText": "Switch a bot's context into a different room.\nAfter calling this method, messages sent with `bot.say` and any dialogs started with `bot.beginDialog` will occur in this new context.", - "text": "```javascript\ncontroller.hears('take this offline', 'message', async(bot, message) => {\n\n // switch to a different channel\n await bot.startConversationInRoom(WEBEX_ROOM_ID, message.user);\n\n // say hello\n await bot.say('Shall we discuss this matter over here?');\n // ... continue...\n await bot.beginDialog(ANOTHER_DIALOG);\n\n});\n```\n\nAlso useful when sending pro-active messages such as those sent on a schedule or in response to external events:\n```javascript\n// Spawn a worker\nlet bot = await controller.spawn();\n\n// Set the context for the bot's next action...\nawait bot.startConversationInRoom(CACHED_ROOM_ID, CACHED_USER_ID);\n\n// Begin a dialog in the 1:1 context\nawait bot.beginDialog(ALERT_DIALOG);\n```\n" + "shortText": "Switch a bot's context into a specific thread within a room.\nAfter calling this method, messages sent with `bot.say` and any dialogs started with `bot.beginDialog` will occur in this new context.", + "text": "```javascript\ncontroller.hears('take this offline', 'message', async(bot, message) => {\n\n // switch to a different channel\n await bot.startConversationInThread(WEBEX_ROOM_ID, message.user, message.id);\n\n // say hello\n await bot.say('Shall we discuss this matter over here?');\n // ... continue...\n await bot.beginDialog(ANOTHER_DIALOG);\n\n});\n```\n\nAlso useful when sending pro-active messages such as those sent on a schedule or in response to external events:\n```javascript\n// Spawn a worker\nlet bot = await controller.spawn();\n\n// Set the context for the bot's next action...\nawait bot.startConversationInRoom(CACHED_ROOM_ID, CACHED_USER_ID);\n\n// Begin a dialog in the 1:1 context\nawait bot.beginDialog(ALERT_DIALOG);\n```\n" }, "parameters": [ { - "id": 9, + "id": 13, "name": "roomId", "kind": 32768, "kindString": "Parameter", @@ -18475,7 +21517,7 @@ } }, { - "id": 10, + "id": 14, "name": "userId", "kind": 32768, "kindString": "Parameter", @@ -18483,7 +21525,23 @@ "isExported": true }, "comment": { - "text": "A Webex user id, like one found in `message.user`\n" + "text": "A Webex user id, like one found in `message.user`" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 15, + "name": "parentId", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A webex message id that should be the parent message, like the one found in `message.id`\n" }, "type": { "type": "intrinsic", @@ -18506,8 +21564,8 @@ "sources": [ { "fileName": "botworker.ts", - "line": 75, - "character": 40 + "line": 120, + "character": 42 } ] }, @@ -18584,8 +21642,10 @@ "title": "Methods", "kind": 2048, "children": [ - 11, + 20, + 16, 7, + 11, 4 ] } @@ -18632,7 +21692,7 @@ ], "methods": [ { - "id": 11, + "id": 20, "name": "deleteMessage", "kind": 2048, "kindString": "Method", @@ -18643,7 +21703,7 @@ }, "signatures": [ { - "id": 12, + "id": 21, "name": "deleteMessage", "kind": 4096, "kindString": "Call signature", @@ -18656,7 +21716,7 @@ }, "parameters": [ { - "id": 13, + "id": 22, "name": "update", "kind": 32768, "kindString": "Parameter", @@ -18693,7 +21753,83 @@ "sources": [ { "fileName": "botworker.ts", - "line": 99, + "line": 157, + "character": 30 + } + ] + }, + { + "id": 16, + "name": "replyInThread", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 17, + "name": "replyInThread", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Like bot.reply, but as a threaded response to the incoming message rather than a new message in the main channel." + }, + "parameters": [ + { + "id": 18, + "name": "src", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "an incoming message object" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 19, + "name": "resp", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "an outgoing message object (or part of one or just reply text)\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 138, "character": 30 } ] @@ -18775,6 +21911,99 @@ } ] }, + { + "id": 11, + "name": "startConversationInThread", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "signatures": [ + { + "id": 12, + "name": "startConversationInThread", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Switch a bot's context into a specific thread within a room.\nAfter calling this method, messages sent with `bot.say` and any dialogs started with `bot.beginDialog` will occur in this new context.", + "text": "```javascript\ncontroller.hears('take this offline', 'message', async(bot, message) => {\n\n // switch to a different channel\n await bot.startConversationInThread(WEBEX_ROOM_ID, message.user, message.id);\n\n // say hello\n await bot.say('Shall we discuss this matter over here?');\n // ... continue...\n await bot.beginDialog(ANOTHER_DIALOG);\n\n});\n```\n\nAlso useful when sending pro-active messages such as those sent on a schedule or in response to external events:\n```javascript\n// Spawn a worker\nlet bot = await controller.spawn();\n\n// Set the context for the bot's next action...\nawait bot.startConversationInRoom(CACHED_ROOM_ID, CACHED_USER_ID);\n\n// Begin a dialog in the 1:1 context\nawait bot.beginDialog(ALERT_DIALOG);\n```\n" + }, + "parameters": [ + { + "id": 13, + "name": "roomId", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A Webex rooom id, like one found in `message.channel`" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 14, + "name": "userId", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A Webex user id, like one found in `message.user`" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 15, + "name": "parentId", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A webex message id that should be the parent message, like the one found in `message.id`\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "botworker.ts", + "line": 120, + "character": 42 + } + ] + }, { "id": 4, "name": "startPrivateConversation", @@ -18841,7 +22070,7 @@ ], "interfaces": [ { - "id": 15, + "id": 24, "name": "WebexAdapterOptions", "kind": 256, "kindString": "Interface", @@ -18851,7 +22080,7 @@ }, "children": [ { - "id": 16, + "id": 25, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -18875,7 +22104,7 @@ } }, { - "id": 20, + "id": 29, "name": "enable_incomplete", "kind": 1024, "kindString": "Property", @@ -18900,7 +22129,7 @@ } }, { - "id": 18, + "id": 27, "name": "public_address", "kind": 1024, "kindString": "Property", @@ -18924,7 +22153,7 @@ } }, { - "id": 17, + "id": 26, "name": "secret", "kind": 1024, "kindString": "Property", @@ -18949,7 +22178,7 @@ } }, { - "id": 19, + "id": 28, "name": "webhook_name", "kind": 1024, "kindString": "Property", @@ -18979,11 +22208,11 @@ "title": "Properties", "kind": 1024, "children": [ - 16, - 20, - 18, - 17, - 19 + 25, + 29, + 27, + 26, + 28 ] } ], @@ -18996,7 +22225,7 @@ ], "props": [ { - "id": 16, + "id": 25, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -19020,7 +22249,7 @@ } }, { - "id": 20, + "id": 29, "name": "enable_incomplete", "kind": 1024, "kindString": "Property", @@ -19045,7 +22274,7 @@ } }, { - "id": 18, + "id": 27, "name": "public_address", "kind": 1024, "kindString": "Property", @@ -19069,7 +22298,7 @@ } }, { - "id": 17, + "id": 26, "name": "secret", "kind": 1024, "kindString": "Property", @@ -19094,7 +22323,7 @@ } }, { - "id": 19, + "id": 28, "name": "webhook_name", "kind": 1024, "kindString": "Property", @@ -19367,7 +22596,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 447, + "line": 452, "character": 87 } ] @@ -19390,7 +22619,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 447, + "line": 452, "character": 37 } ] @@ -19472,7 +22701,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 424, + "line": 429, "character": 31 } ] @@ -19762,7 +22991,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 508, + "line": 513, "character": 49 } ] @@ -19785,7 +23014,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 508, + "line": 513, "character": 32 } ] @@ -19873,7 +23102,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 356, + "line": 361, "character": 31 } ] @@ -19955,7 +23184,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 401, + "line": 406, "character": 31 } ] @@ -20228,7 +23457,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 447, + "line": 452, "character": 87 } ] @@ -20251,7 +23480,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 447, + "line": 452, "character": 37 } ] @@ -20333,7 +23562,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 424, + "line": 429, "character": 31 } ] @@ -20623,7 +23852,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 508, + "line": 513, "character": 49 } ] @@ -20646,7 +23875,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 508, + "line": 513, "character": 32 } ] @@ -20734,7 +23963,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 356, + "line": 361, "character": 31 } ] @@ -20816,7 +24045,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 401, + "line": 406, "character": 31 } ] @@ -26527,7 +29756,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 792, + "line": 797, "character": 6 } ], @@ -26547,7 +29776,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 789, + "line": 794, "character": 8 } ], @@ -26567,7 +29796,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 790, + "line": 795, "character": 11 } ], @@ -26587,7 +29816,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 788, + "line": 793, "character": 8 } ], @@ -26607,7 +29836,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 791, + "line": 796, "character": 11 } ], @@ -26633,7 +29862,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 787, + "line": 792, "character": 24 } ], @@ -26655,7 +29884,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 792, + "line": 797, "character": 6 } ], @@ -26675,7 +29904,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 789, + "line": 794, "character": 8 } ], @@ -26695,7 +29924,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 790, + "line": 795, "character": 11 } ], @@ -26715,7 +29944,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 788, + "line": 793, "character": 8 } ], @@ -26735,7 +29964,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 791, + "line": 796, "character": 11 } ], @@ -26766,7 +29995,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 778, + "line": 783, "character": 11 } ], @@ -26786,7 +30015,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 780, + "line": 785, "character": 11 } ], @@ -26810,7 +30039,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 781, + "line": 786, "character": 12 } ], @@ -26832,7 +30061,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 780, + "line": 785, "character": 12 } ] @@ -26850,7 +30079,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 779, + "line": 784, "character": 6 } ], @@ -26874,7 +30103,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 777, + "line": 782, "character": 31 } ], @@ -26896,7 +30125,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 778, + "line": 783, "character": 11 } ], @@ -26916,7 +30145,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 780, + "line": 785, "character": 11 } ], @@ -26940,7 +30169,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 781, + "line": 786, "character": 12 } ], @@ -26962,7 +30191,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 780, + "line": 785, "character": 12 } ] @@ -26980,7 +30209,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 779, + "line": 784, "character": 6 } ], @@ -27020,7 +30249,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 734, + "line": 739, "character": 12 } ], @@ -27045,7 +30274,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 739, + "line": 744, "character": 12 } ], @@ -27070,7 +30299,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 743, + "line": 748, "character": 16 } ], @@ -27095,7 +30324,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 730, + "line": 735, "character": 23 } ], @@ -27120,7 +30349,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 772, + "line": 777, "character": 21 } ], @@ -27145,7 +30374,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 765, + "line": 770, "character": 20 } ], @@ -27198,7 +30427,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 765, + "line": 770, "character": 22 } ] @@ -27221,7 +30450,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 760, + "line": 765, "character": 19 } ], @@ -27274,7 +30503,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 760, + "line": 765, "character": 21 } ] @@ -27297,7 +30526,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 751, + "line": 756, "character": 16 } ], @@ -27322,7 +30551,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 755, + "line": 760, "character": 15 } ], @@ -27347,7 +30576,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 747, + "line": 752, "character": 10 } ], @@ -27375,7 +30604,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 726, + "line": 731, "character": 21 } ], @@ -27407,7 +30636,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 722, + "line": 727, "character": 36 } ], @@ -27428,7 +30657,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 734, + "line": 739, "character": 12 } ], @@ -27453,7 +30682,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 739, + "line": 744, "character": 12 } ], @@ -27478,7 +30707,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 743, + "line": 748, "character": 16 } ], @@ -27503,7 +30732,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 730, + "line": 735, "character": 23 } ], @@ -27528,7 +30757,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 772, + "line": 777, "character": 21 } ], @@ -27553,7 +30782,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 765, + "line": 770, "character": 20 } ], @@ -27606,7 +30835,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 765, + "line": 770, "character": 22 } ] @@ -27629,7 +30858,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 760, + "line": 765, "character": 19 } ], @@ -27682,7 +30911,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 760, + "line": 765, "character": 21 } ] @@ -27705,7 +30934,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 751, + "line": 756, "character": 16 } ], @@ -27730,7 +30959,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 755, + "line": 760, "character": 15 } ], @@ -27755,7 +30984,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 747, + "line": 752, "character": 10 } ], @@ -27783,7 +31012,7 @@ "sources": [ { "fileName": "slack_adapter.ts", - "line": 726, + "line": 731, "character": 21 } ], diff --git a/packages/docs/package-lock.json b/packages/docs/package-lock.json index 27f7e2a31..528890d18 100644 --- a/packages/docs/package-lock.json +++ b/packages/docs/package-lock.json @@ -71,9 +71,9 @@ } }, "graceful-fs": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", - "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==" }, "handlebars": { "version": "4.7.2", @@ -87,9 +87,9 @@ } }, "highlight.js": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.0.tgz", - "integrity": "sha512-A97kI1KAUzKoAiEoaGcf2O9YPS8nbDTCRFokaaeBhnqjQTvbAuAJrQMm21zw8s8xzaMtCQBtgbyGXLGxdxQyqQ==" + "version": "9.18.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.3.tgz", + "integrity": "sha512-zBZAmhSupHIl5sITeMqIJnYCDfAEc3Gdkqj65wC1lpI468MMQeeQkhcIAvk+RylAkxrCcI9xy9piHiXeQ1BdzQ==" }, "inflight": { "version": "1.0.6", @@ -106,9 +106,9 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "interpret": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", - "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==" + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==" }, "jquery": { "version": "3.5.1", @@ -124,19 +124,19 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" }, "lunr": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.8.tgz", - "integrity": "sha512-oxMeX/Y35PNFuZoHp+jUj5OSEmLCaIH4KTFJh7a93cHBoFmpw2IoPs22VIz7vyO2YUnx2Tn9dzIwO2P/4quIRg==" + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==" }, "marked": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.8.0.tgz", - "integrity": "sha512-MyUe+T/Pw4TZufHkzAfDj6HarCBWia2y27/bhuYkTaiUnfDYFnCP3KUN+9oM7Wi6JA2rymtVYbQu3spE0GCmxQ==" + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/marked/-/marked-0.8.2.tgz", + "integrity": "sha512-EGwzEeCcLniFX51DhTpmTom+dSA/MG/OBUDjnWtHbEnjAH180VzUeAw+oE4+Zv+CoYBWyRlYOTR0N8SO9R1PVw==" }, "minimatch": { "version": "3.0.4", @@ -197,17 +197,17 @@ } }, "resolve": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.0.tgz", - "integrity": "sha512-+hTmAldEGE80U2wJJDC1lebb5jWqvTYAfm3YZ1ckk1gBr0MnCqUKlwK1e+anaFljIl+F5tR5IoZcm4ZDA1zMQw==", + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", + "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", "requires": { "path-parse": "^1.0.6" } }, "shelljs": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.3.tgz", - "integrity": "sha512-fc0BKlAWiLpwZljmOvAOTE/gXawtCoNrP5oaY7KIaQbbyHeQVg01pSEuEGvGh3HEdBU4baCD7wQBwADmM/7f7A==", + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.4.tgz", + "integrity": "sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ==", "requires": { "glob": "^7.0.0", "interpret": "^1.0.0", @@ -220,9 +220,9 @@ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" }, "typedoc": { - "version": "0.16.9", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.16.9.tgz", - "integrity": "sha512-UvOGoy76yqwCXwxPgatwgXWfsQ3FczyZ6ZNLjhCPK+TsDir6LiU3YB6N9XZmPv36E+7LA860mnc8a0v6YADKFw==", + "version": "0.16.11", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.16.11.tgz", + "integrity": "sha512-YEa5i0/n0yYmLJISJ5+po6seYfJQJ5lQYcHCPF9ffTF92DB/TAZO/QrazX5skPHNPtmlIht5FdTXCM2kC7jQFQ==", "requires": { "@types/minimatch": "3.0.3", "fs-extra": "^8.1.0", @@ -249,9 +249,9 @@ } }, "typedoc-plugin-external-module-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/typedoc-plugin-external-module-name/-/typedoc-plugin-external-module-name-2.0.0.tgz", - "integrity": "sha512-BJONvKQWolyNqnzjKQIJflsuvyjapsCPR07maHiRvUOXIbhY56SqmYs+VKevq7SIFXsnlfTEE7meP+6Y/Q2Pyw==" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/typedoc-plugin-external-module-name/-/typedoc-plugin-external-module-name-2.1.0.tgz", + "integrity": "sha512-uYYe1yj6COwgyhl3Of71lkkhbEw7LVBEqAlXVvd7b9INGhJq59M1q9wdQdIWfpqe/9JegWSIR9ZDfY6mkPedJg==" }, "typescript": { "version": "3.7.5", @@ -269,9 +269,9 @@ } }, "underscore": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.2.tgz", - "integrity": "sha512-D39qtimx0c1fI3ya1Lnhk3E9nONswSKhnffBI0gME9C99fYOkNi04xs8K6pePLhvl1frbDemkaBQ5ikWllR2HQ==" + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.10.2.tgz", + "integrity": "sha512-N4P+Q/BuyuEKFJ43B9gYuOj4TQUHXX+j2FqguVOpjkssLUUrnJofCcBccJSCoeturDoZU6GorDTHSvUDlSQbTg==" }, "universalify": { "version": "0.1.2", diff --git a/packages/docs/package.json b/packages/docs/package.json index 56e4e86d9..8b3b43ab1 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -10,6 +10,6 @@ "dependencies": { "handlebars": "^4.7.2", "typedoc": "^0.16.9", - "typedoc-plugin-external-module-name": "^2.0.0" + "typedoc-plugin-external-module-name": "2.1.0" } } diff --git a/packages/docs/platforms/slack.md b/packages/docs/platforms/slack.md index 55da07a9e..b8ab0d7b1 100644 --- a/packages/docs/platforms/slack.md +++ b/packages/docs/platforms/slack.md @@ -241,6 +241,11 @@ Botkit will automatically construct your outgoing messages according to Slack's The preferred way of composing interactive messages is using Slack's Block Kit. [Read the official Slack documentation here](https://api.slack.com/messaging/composing/layouts). Slack provides a UI to help create your interactive messages. Check out [Block Kit Builder](https://api.slack.com/tools/block-kit-builder). +Additionally, there are open-source libraries available that assist with building out UIs for Slack: + +* [**Block Builder**](https://github.com/raycharius/slack-block-builder) – Zero-dependency library, with a SwiftUI-like builder syntax. +* [**JSX-Slack**](https://github.com/speee/jsx-slack) – JSX that transpiles to Slack API-compatible JSON. + Interactive messages using blocks can be sent via any of Botkit's built in functions by passing in the appropriate "blocks" as part of the message. Here is an example: ```javascript diff --git a/packages/docs/reference/core.md b/packages/docs/reference/core.md index 287010e0d..a861cd70a 100644 --- a/packages/docs/reference/core.md +++ b/packages/docs/reference/core.md @@ -9,10 +9,12 @@ This is a class reference for all the methods exposed by the [botkit](https://gi * Botkit * BotkitBotFrameworkAdapter +* TeamsBotWorker * BotWorker * BotkitConversation * BotkitDialogWrapper * BotkitTestClient +* TeamsInvokeMiddleware ## Interfaces @@ -524,16 +526,12 @@ This class includes the following methods: -### Create a new BotkitBotFrameworkAdapter() -**Parameters** - -| Argument | Type | Description -|--- |--- |--- -| options | any | - - +## Properties and Accessors +| Name | Type | Description +|--- |--- |--- +| botkit_worker | [TeamsBotWorker](#TeamsBotWorker) | ## BotkitBotFrameworkAdapter Class Methods @@ -556,6 +554,365 @@ an array of channels in the format [{name: string, id: string}] + +## TeamsBotWorker +An extension of the core BotWorker class that exposes the TeamsInfo helper class for MS Teams. +This BotWorker is used with the built-in Bot Framework adapter. + +To use this class in your application, first install the package: +```bash +npm install --save botkit +``` + +Then import this and other classes into your code: +```javascript +const { TeamsBotWorker } = require('botkit'); +``` + +This class includes the following methods: +* [beginDialog()](#beginDialog) +* [cancelAllDialogs()](#cancelAllDialogs) +* [changeContext()](#changeContext) +* [ensureMessageFormat()](#ensureMessageFormat) +* [getActiveDialog()](#getActiveDialog) +* [getConfig()](#getConfig) +* [hasActiveDialog()](#hasActiveDialog) +* [httpBody()](#httpBody) +* [httpStatus()](#httpStatus) +* [isDialogActive()](#isDialogActive) +* [replaceDialog()](#replaceDialog) +* [reply()](#reply) +* [replyWithTaskInfo()](#replyWithTaskInfo) +* [say()](#say) +* [startConversationWithUser()](#startConversationWithUser) + + + +### Create a new TeamsBotWorker() +**Parameters** + +| Argument | Type | Description +|--- |--- |--- +| controller | [Botkit](#Botkit) | +| config | any | + + + + +## Properties and Accessors + +| Name | Type | Description +|--- |--- |--- +| teams | TeamsInfo | Grants access to the TeamsInfo helper class
See: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest +| controller | | Get a reference to the main Botkit controller. + +## TeamsBotWorker Class Methods + +### beginDialog() +Begin a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received. +[See "Using Dialogs" in the core documentation.](../index.md#using-dialogs) + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| id| string | id of dialog +| options (optional)| any | object containing options to be passed into the dialog
+ + + +```javascript +controller.hears('hello', 'message', async(bot, message) => { + await bot.beginDialog(GREETINGS_DIALOG); +}); +``` + + +### cancelAllDialogs() +Cancel any and all active dialogs for the current user/context. + + + +### changeContext() +Alter the context in which a bot instance will send messages. +Use this method to create or adjust a bot instance so that it can send messages to a predefined user/channel combination. + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| reference| Partial<ConversationReference> | A [ConversationReference](https://docs.microsoft.com/en-us/javascript/api/botframework-schema/conversationreference?view=botbuilder-ts-latest), most likely captured from an incoming message and stored for use in proactive messaging scenarios.
+ + + +```javascript +// get the reference field and store it. +const saved_reference = message.reference; + +// later on... +let bot = await controller.spawn(); +bot.changeContext(saved_reference); +bot.say('Hello!'); +``` + + + +### ensureMessageFormat() +Take a crudely-formed Botkit message with any sort of field (may just be a string, may be a partial message object) +and map it into a beautiful BotFramework Activity. +Any fields not found in the Activity definition will be moved to activity.channelData. + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| message| | + + +**Returns** + +a properly formed Activity object + + + + + +### getActiveDialog() +Get a reference to the active dialog + +**Returns** + +a reference to the active dialog or undefined if no dialog is active + + + + + +### getConfig() +Get a value from the BotWorker's configuration. + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| key (optional)| string | The name of a value stored in the configuration + + +**Returns** + +The value stored in the configuration (or null if absent) + + + + +```javascript +let original_context = bot.getConfig('context'); +await original_context.sendActivity('send directly using the adapter instead of Botkit'); +``` + + + +### hasActiveDialog() +Check if any dialog is active or not + +**Returns** + +true if there is an active dialog, otherwise false + + + + + +### httpBody() +Set the http response body for this turn. +Use this to define the response value when the platform requires a synchronous response to the incoming webhook. + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| body| any | (any) a value that will be returned as the http response body
+ + + +Example handling of a /slash command from Slack: +```javascript +controller.on('slash_command', async(bot, message) => { + bot.httpBody('This is a reply to the slash command.'); +}) +``` + + + +### httpStatus() +Set the http response status code for this turn + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| status| number | a valid http status code like 200 202 301 500 etc
+ + + +```javascript +controller.on('event', async(bot, message) => { + // respond with a 500 error code for some reason! + bot.httpStatus(500); +}); +``` + + + +### isDialogActive() +Check to see if a given dialog is currently active in the stack + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| id| string | The id of a dialog to look for in the dialog stack + + +**Returns** + +true if dialog with id is located anywhere in the dialog stack + + + + + +### replaceDialog() +Replace any active dialogs with a new a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received. +[See "Using Dialogs" in the core documentation.](../index.md#using-dialogs) + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| id| string | id of dialog +| options (optional)| any | object containing options to be passed into the dialog
+ + + +```javascript +controller.hears('hello', 'message', async(bot, message) => { + await bot.replaceDialog(GREETINGS_DIALOG); +}); +``` + + +### reply() +Reply to an incoming message. +Message will be sent using the context of the source message, which may in some cases be different than the context used to spawn the bot. + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| src| Partial<BotkitMessage> | An incoming message, usually passed in to a handler function +| resp| | A string containing the text of a reply, or more fully formed message object + + +**Returns** + +Return value will contain the results of the send action, typically `{id: <id of message>}` + + + + +Note that like [bot.say()](#say), `reply()` can take a string or a message object. + +```javascript +controller.on('event', async(bot, message) => { + + await bot.reply(message, 'I received an event and am replying to it.'); + +}); +``` + + + +### replyWithTaskInfo() +Reply to a Teams task module task/fetch or task/submit with a task module response. +See https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| message| [BotkitMessage](#BotkitMessage) | +| taskInfo| any | }
+ + + + +### say() +Send a message using whatever context the `bot` was spawned in or set using [changeContext()](#changecontext) -- +or more likely, one of the platform-specific helpers like +[startPrivateConversation()](../reference/slack.md#startprivateconversation) (Slack), +[startConversationWithUser()](../reference/twilio-sms.md#startconversationwithuser) (Twilio SMS), +and [startConversationWithUser()](../reference/facebook.md#startconversationwithuser) (Facebook Messenger). +Be sure to check the platform documentation for others - most adapters include at least one. + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| message| | A string containing the text of a reply, or more fully formed message object + + +**Returns** + +Return value will contain the results of the send action, typically `{id: <id of message>}` + + + + +Simple use in event handler (acts the same as bot.reply) +```javascript +controller.on('event', async(bot, message) => { + + await bot.say('I received an event!'); + +}); +``` + +Use with a freshly spawned bot and bot.changeContext: +```javascript +let bot = controller.spawn(OPTIONS); +bot.changeContext(REFERENCE); +bot.say('ALERT! I have some news.'); +``` + +Use with multi-field message object: +```javascript +controller.on('event', async(bot, message) => { + bot.say({ + text: 'I heard an event', + attachments: [ + title: message.type, + text: `The message was of type ${ message.type }`, + // ... + ] + }); +}); +``` + + + +### startConversationWithUser() + + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| reference| any | + + + + ## BotWorker A base class for a `bot` instance, an object that contains the information and functionality for taking action in response to an incoming message. @@ -1419,6 +1776,44 @@ a TestFlow that can be used to assert replies etc + +## TeamsInvokeMiddleware +When used, causes Botkit to emit special events for teams "invokes" +Based on https://github.com/microsoft/botbuilder-js/blob/master/libraries/botbuilder/src/teamsActivityHandler.ts +This allows Botkit bots to respond directly to task/fetch or task/submit events, as an example. + +To use this class in your application, first install the package: +```bash +npm install --save botkit +``` + +Then import this and other classes into your code: +```javascript +const { TeamsInvokeMiddleware } = require('botkit'); +``` + +This class includes the following methods: +* [onTurn()](#onTurn) + + + + + +## TeamsInvokeMiddleware Class Methods + +### onTurn() +Not for direct use - implements the MiddlewareSet's required onTurn function used to process the event + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| context| TurnContext | +| next| |
+ + + + ## Interface BotkitConfiguration @@ -1433,9 +1828,11 @@ Defines the options used when instantiating Botkit to create the main app contro | dialogStateProperty | string | Name of the dialogState property in the ConversationState that will be used to automatically track the dialog state. Defaults to `dialogState`.
| disable_console | boolean | Disable messages normally sent to the console during startup.
| disable_webserver | boolean | Disable webserver. If true, Botkit will not create a webserver or expose any webhook endpoints automatically. Defaults to false.
+| jsonLimit | string | Limit of the size of incoming JSON payloads parsed by the Express bodyParser. Defaults to '100kb'
| storage | Storage | A Storage interface compatible with [this specification](https://docs.microsoft.com/en-us/javascript/api/botbuilder-core/storage?view=botbuilder-ts-latest)
Defaults to the ephemeral [MemoryStorage](https://docs.microsoft.com/en-us/javascript/api/botbuilder-core/memorystorage?view=botbuilder-ts-latest) implementation.
+| urlEncodedLimit | string | Limit of the size of incoming URL encoded payloads parsed by the Express bodyParser. Defaults to '100kb'
| webhook_uri | string | Path used to create incoming webhook URI. Defaults to `/api/messages`
-| webserver | any | An instance of Express used to define web endpoints. If not specified, oen will be created internally.
Note: only use your own Express if you absolutely must for some reason. Otherwise, use `controller.webserver`
+| webserver | any | An instance of Express used to define web endpoints. If not specified, one will be created internally.
Note: only use your own Express if you absolutely must for some reason. Otherwise, use `controller.webserver`
| webserver_middlewares | | An array of middlewares that will be automatically bound to the webserver.
Should be in the form (req, res, next) => {}
## Interface BotkitConversationStep diff --git a/packages/docs/reference/index.md b/packages/docs/reference/index.md index 742ea665f..51421a3ac 100644 --- a/packages/docs/reference/index.md +++ b/packages/docs/reference/index.md @@ -5,10 +5,12 @@ * [Botkit Core](../reference/core.md) * [Botkit](../reference/core.md#Botkit) * [BotkitBotFrameworkAdapter](../reference/core.md#BotkitBotFrameworkAdapter) + * [TeamsBotWorker](../reference/core.md#TeamsBotWorker) * [BotWorker](../reference/core.md#BotWorker) * [BotkitConversation](../reference/core.md#BotkitConversation) * [BotkitDialogWrapper](../reference/core.md#BotkitDialogWrapper) * [BotkitTestClient](../reference/core.md#BotkitTestClient) + * [TeamsInvokeMiddleware](../reference/core.md#TeamsInvokeMiddleware) * [Botkit for the Web](../reference/web.md) * [WebAdapter](../reference/web.md#WebAdapter) * [Botkit for Webex Teams](../reference/webex.md) diff --git a/packages/docs/reference/webex.md b/packages/docs/reference/webex.md index 9aace192c..fefc7ae73 100644 --- a/packages/docs/reference/webex.md +++ b/packages/docs/reference/webex.md @@ -223,7 +223,9 @@ const { WebexBotWorker } = require('botbuilder-adapter-webex'); This class includes the following methods: * [deleteMessage()](#deleteMessage) +* [replyInThread()](#replyInThread) * [startConversationInRoom()](#startConversationInRoom) +* [startConversationInThread()](#startConversationInThread) * [startPrivateConversation()](#startPrivateConversation) @@ -257,6 +259,19 @@ await bot.deleteMessage(sent); ``` + +### replyInThread() +Like bot.reply, but as a threaded response to the incoming message rather than a new message in the main channel. + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| src| any | an incoming message object +| resp| any | an outgoing message object (or part of one or just reply text)
+ + + ### startConversationInRoom() Switch a bot's context into a different room. @@ -298,6 +313,48 @@ await bot.beginDialog(ALERT_DIALOG); ``` + +### startConversationInThread() +Switch a bot's context into a specific thread within a room. +After calling this method, messages sent with `bot.say` and any dialogs started with `bot.beginDialog` will occur in this new context. + +**Parameters** + +| Argument | Type | description +|--- |--- |--- +| roomId| string | A Webex rooom id, like one found in `message.channel` +| userId| string | A Webex user id, like one found in `message.user` +| parentId| string | A webex message id that should be the parent message, like the one found in `message.id`
+ + + +```javascript +controller.hears('take this offline', 'message', async(bot, message) => { + + // switch to a different channel + await bot.startConversationInThread(WEBEX_ROOM_ID, message.user, message.id); + + // say hello + await bot.say('Shall we discuss this matter over here?'); + // ... continue... + await bot.beginDialog(ANOTHER_DIALOG); + +}); +``` + +Also useful when sending pro-active messages such as those sent on a schedule or in response to external events: +```javascript +// Spawn a worker +let bot = await controller.spawn(); + +// Set the context for the bot's next action... +await bot.startConversationInRoom(CACHED_ROOM_ID, CACHED_USER_ID); + +// Begin a dialog in the 1:1 context +await bot.beginDialog(ALERT_DIALOG); +``` + + ### startPrivateConversation() Change the context of the _next_ message From 268147ac18f5390a19583d1d6e3e6536b25510a0 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 15:31:34 -0500 Subject: [PATCH 07/18] update docs --- changelog.md | 2 +- packages/botkit/src/teamsHelpers.ts | 10 ++++++++ packages/docs/core.md | 40 +++++++++++++++++++++++++++++ packages/docs/index.json | 13 +++++----- packages/docs/reference/core.md | 11 ++++++++ 5 files changed, 69 insertions(+), 7 deletions(-) diff --git a/changelog.md b/changelog.md index 75ee54234..4758ef9b5 100644 --- a/changelog.md +++ b/changelog.md @@ -9,7 +9,7 @@ * Update dependencies to [Bot Framework 4.10] * Update some dev dependencies like lerna, eslint, etc. -* NEW: Additional support for Microsoft Teams! +* NEW: Additional support for Microsoft Teams! [Read all about it!](docs/core.md#ms-teams-extensions) * Bot workers spawned from the default adapter now feature `bot.teams` which is an instance to the [TeamsInfo helper class](https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest). * Botkit now includes an optional middleware [TeamsInvokeMiddleware] for handling "invoke" responses from Teams including task modules. -- [Docs here](packages/docs/reference/core.md#TeamsInvokeMiddleware) * Botkit now includes `bot.replyWithTaskInfo()` which can be used to respond to task module events. [Read about Taks Modules](https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules) -- [Docs here](packages/docs/reference/core.md#replyWithTaskInfo) diff --git a/packages/botkit/src/teamsHelpers.ts b/packages/botkit/src/teamsHelpers.ts index 5a0ecd226..609944e70 100644 --- a/packages/botkit/src/teamsHelpers.ts +++ b/packages/botkit/src/teamsHelpers.ts @@ -62,6 +62,16 @@ export class TeamsBotWorker extends BotWorker { * When used, causes Botkit to emit special events for teams "invokes" * Based on https://github.com/microsoft/botbuilder-js/blob/master/libraries/botbuilder/src/teamsActivityHandler.ts * This allows Botkit bots to respond directly to task/fetch or task/submit events, as an example. + * To use this, bind it to the adapter before creating the Botkit controller: + * ```javascript + * const Botkit = new Botkit({...}); + * botkit.adapter.use(new TeamsInvokeMiddleware()); + * + * // can bind directly to task/fetch, task/submit and other invoke types used by teams + * controller.on('task/fetch', async(bot, message) => { + * await bot.replyWithTaskInfo(message, taskInfo); + * }); + * ``` */ export class TeamsInvokeMiddleware extends MiddlewareSet { /** diff --git a/packages/docs/core.md b/packages/docs/core.md index 79af94aed..b35313361 100644 --- a/packages/docs/core.md +++ b/packages/docs/core.md @@ -33,6 +33,7 @@ The Botkit project includes several official adapters. Using these plugins, your * [Google Hangouts](platforms/hangouts.md) * [Facebook Messenger](platforms/facebook.md) * [Twilio SMS](platforms/twilio-sms.md) +* [Microsoft Teams](#ms-teams-extensions) In addition, the open source community has created a variety of plugins and extensions to Bot Framework. Check out the [Bot Builder Community Repo](https://github.com/BotBuilderCommunity/botbuilder-community-js) for additional adapters, storage connectors and middlewares. @@ -541,6 +542,45 @@ const controller = new Botkit({ }); ``` +## MS Teams Extensions + +Several helper extensions are included for using Botkit with Microsoft Teams. Connecting to Teams does not require a customized adapter - Botkit's default adapter does the job. However, to ease the use of advanced features in Teams, Botkit includes several extensions. + +* The [TeamsInvokeMiddleware](reference/core.md#teamsinvokemiddleware) is an optional adapter middleware which will cause Botkit to emit specially named events related to Teams "invoke" events. With this middleware enabled, Botkit will emit "task/fetch" and "task/submit" events, rather than plain "invoke" events. +* The BotWorker returned by this adapter includes `bot.teams`, which is an instance of the TeamsInfo helper. Using this, bots can access additional information about Teams. [See Docs]((https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest). +* The BotWorker also includes a helper method, `bot.replyWithTaskInfo()` that can be used to respond to Task Module related events. [See Docs](reference/core.md#replywithtaskinfo) + +Set up adapter with middleware: + +```javascript +const controller = new Botkit({ + webhook_uri: '/api/messages', + adapterConfig: { + appId: process.env.appId, + appPassword: process.env.appPassword + } +}); +controller.adapter.use(new TeamsInvokeMiddleware()); +``` + +Access Teams specific APIs: +```javascript +controller.hears('getTeamDetails', 'message', async(bot, message) => { + try { + await bot.reply(message, JSON.stringify(await bot.teams.getTeamDetails(bot.getConfig('context')))); + } catch(err) { + await bot.reply(message, err.message); + } +}); +``` + +Respond to Task Modules: +```javascript +controller.on('task/fetch', async(bot, message) => { + await bot.replyWithTaskInfo(message, {type: 'continue', value: { ... }}); +}); +``` + ## Building & Using Plugins Botkit includes a plugin loader that allows external packages to plugin to and modify the Botkit application. diff --git a/packages/docs/index.json b/packages/docs/index.json index 76ad65b23..9a16c6644 100644 --- a/packages/docs/index.json +++ b/packages/docs/index.json @@ -13670,7 +13670,8 @@ "isExternal": true }, "comment": { - "shortText": "When used, causes Botkit to emit special events for teams \"invokes\"\nBased on https://github.com/microsoft/botbuilder-js/blob/master/libraries/botbuilder/src/teamsActivityHandler.ts\nThis allows Botkit bots to respond directly to task/fetch or task/submit events, as an example." + "shortText": "When used, causes Botkit to emit special events for teams \"invokes\"\nBased on https://github.com/microsoft/botbuilder-js/blob/master/libraries/botbuilder/src/teamsActivityHandler.ts\nThis allows Botkit bots to respond directly to task/fetch or task/submit events, as an example.\nTo use this, bind it to the adapter before creating the Botkit controller:\n```javascript\nconst Botkit = new Botkit({...});\nbotkit.adapter.use(new TeamsInvokeMiddleware());", + "text": "// can bind directly to task/fetch, task/submit and other invoke types used by teams\ncontroller.on('task/fetch', async(bot, message) => {\n await bot.replyWithTaskInfo(message, taskInfo);\n});\n```\n" }, "children": [ { @@ -13755,7 +13756,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 72, + "line": 82, "character": 51 } ] @@ -13778,7 +13779,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 72, + "line": 82, "character": 23 } ] @@ -13796,7 +13797,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 66, + "line": 76, "character": 34 } ], @@ -13890,7 +13891,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 72, + "line": 82, "character": 51 } ] @@ -13913,7 +13914,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 72, + "line": 82, "character": 23 } ] diff --git a/packages/docs/reference/core.md b/packages/docs/reference/core.md index a861cd70a..4f3c17976 100644 --- a/packages/docs/reference/core.md +++ b/packages/docs/reference/core.md @@ -1781,6 +1781,17 @@ a TestFlow that can be used to assert replies etc When used, causes Botkit to emit special events for teams "invokes" Based on https://github.com/microsoft/botbuilder-js/blob/master/libraries/botbuilder/src/teamsActivityHandler.ts This allows Botkit bots to respond directly to task/fetch or task/submit events, as an example. +To use this, bind it to the adapter before creating the Botkit controller: +```javascript +const Botkit = new Botkit({...}); +botkit.adapter.use(new TeamsInvokeMiddleware()); + +// can bind directly to task/fetch, task/submit and other invoke types used by teams +controller.on('task/fetch', async(bot, message) => { + await bot.replyWithTaskInfo(message, taskInfo); +}); +``` + To use this class in your application, first install the package: ```bash From 3a25f50d8bb408784f033ce5ff25b647afc8e8bc Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 15:32:17 -0500 Subject: [PATCH 08/18] fix changelog --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 4758ef9b5..dba11175f 100644 --- a/changelog.md +++ b/changelog.md @@ -9,7 +9,7 @@ * Update dependencies to [Bot Framework 4.10] * Update some dev dependencies like lerna, eslint, etc. -* NEW: Additional support for Microsoft Teams! [Read all about it!](docs/core.md#ms-teams-extensions) +* NEW: Additional support for Microsoft Teams! [Read all about it!](packages/docs/core.md#ms-teams-extensions) * Bot workers spawned from the default adapter now feature `bot.teams` which is an instance to the [TeamsInfo helper class](https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest). * Botkit now includes an optional middleware [TeamsInvokeMiddleware] for handling "invoke" responses from Teams including task modules. -- [Docs here](packages/docs/reference/core.md#TeamsInvokeMiddleware) * Botkit now includes `bot.replyWithTaskInfo()` which can be used to respond to task module events. [Read about Taks Modules](https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules) -- [Docs here](packages/docs/reference/core.md#replyWithTaskInfo) From 16fdf1b322b37ed2c28596688539e9316b87a9dc Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 15:34:58 -0500 Subject: [PATCH 09/18] update docs --- packages/botkit/src/teamsHelpers.ts | 2 +- packages/docs/core.md | 2 +- packages/docs/index.json | 4 ++-- packages/docs/reference/core.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/botkit/src/teamsHelpers.ts b/packages/botkit/src/teamsHelpers.ts index 609944e70..c7adac1bc 100644 --- a/packages/botkit/src/teamsHelpers.ts +++ b/packages/botkit/src/teamsHelpers.ts @@ -29,7 +29,7 @@ export class TeamsBotWorker extends BotWorker { * Reply to a Teams task module task/fetch or task/submit with a task module response. * See https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots * @param message - * @param taskInfo { type: 'continue|message', value: {} } + * @param taskInfo an object in the form {type, value} */ public async replyWithTaskInfo(message: BotkitMessage, taskInfo: any) { if (!taskInfo || taskInfo == {}) { diff --git a/packages/docs/core.md b/packages/docs/core.md index b35313361..d9e5f3916 100644 --- a/packages/docs/core.md +++ b/packages/docs/core.md @@ -547,7 +547,7 @@ const controller = new Botkit({ Several helper extensions are included for using Botkit with Microsoft Teams. Connecting to Teams does not require a customized adapter - Botkit's default adapter does the job. However, to ease the use of advanced features in Teams, Botkit includes several extensions. * The [TeamsInvokeMiddleware](reference/core.md#teamsinvokemiddleware) is an optional adapter middleware which will cause Botkit to emit specially named events related to Teams "invoke" events. With this middleware enabled, Botkit will emit "task/fetch" and "task/submit" events, rather than plain "invoke" events. -* The BotWorker returned by this adapter includes `bot.teams`, which is an instance of the TeamsInfo helper. Using this, bots can access additional information about Teams. [See Docs]((https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest). +* The BotWorker returned by this adapter includes `bot.teams`, which is an instance of the TeamsInfo helper. Using this, bots can access additional information about Teams. [See Docs](https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest). * The BotWorker also includes a helper method, `bot.replyWithTaskInfo()` that can be used to respond to Task Module related events. [See Docs](reference/core.md#replywithtaskinfo) Set up adapter with middleware: diff --git a/packages/docs/index.json b/packages/docs/index.json index 9a16c6644..9265b20aa 100644 --- a/packages/docs/index.json +++ b/packages/docs/index.json @@ -5754,7 +5754,7 @@ "isExported": true }, "comment": { - "text": "}\n" + "text": "an object in the form {type, value}\n" }, "type": { "type": "intrinsic", @@ -6991,7 +6991,7 @@ "isExported": true }, "comment": { - "text": "}\n" + "text": "an object in the form {type, value}\n" }, "type": { "type": "intrinsic", diff --git a/packages/docs/reference/core.md b/packages/docs/reference/core.md index 4f3c17976..b2bb29156 100644 --- a/packages/docs/reference/core.md +++ b/packages/docs/reference/core.md @@ -842,7 +842,7 @@ See https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-ca | Argument | Type | description |--- |--- |--- | message| [BotkitMessage](#BotkitMessage) | -| taskInfo| any | }
+| taskInfo| any | an object in the form {type, value}
From e009f3ff0a26f53b094d0815d220bf8762919e2b Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 15:36:29 -0500 Subject: [PATCH 10/18] clean up --- changelog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index dba11175f..cef44285f 100644 --- a/changelog.md +++ b/changelog.md @@ -11,8 +11,8 @@ * NEW: Additional support for Microsoft Teams! [Read all about it!](packages/docs/core.md#ms-teams-extensions) * Bot workers spawned from the default adapter now feature `bot.teams` which is an instance to the [TeamsInfo helper class](https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest). - * Botkit now includes an optional middleware [TeamsInvokeMiddleware] for handling "invoke" responses from Teams including task modules. -- [Docs here](packages/docs/reference/core.md#TeamsInvokeMiddleware) - * Botkit now includes `bot.replyWithTaskInfo()` which can be used to respond to task module events. [Read about Taks Modules](https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules) -- [Docs here](packages/docs/reference/core.md#replyWithTaskInfo) + * Botkit now includes an optional middleware [TeamsInvokeMiddleware](packages/docs/reference/core.md#TeamsInvokeMiddleware) for handling "invoke" responses from Teams including task modules. + * Botkit now includes [bot.replyWithTaskInfo()](packages/docs/reference/core.md#replyWithTaskInfo) which can be used to respond to task module events. [Read more about Task Modules](https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules) * FIX: Adjust mechanism for handling templates in channelData to avoid data loss. Thanks [@ashitikov](https://github.com/ashitikov) for the [pull request](https://github.com/howdyai/botkit/pull/1979) * FIX: Botkit will now spawn the appropriate botworker if a custom adapter is passed in. Thanks to [@etiennellipse](https://github.com/etiennellipse) for [reporting this issue](https://github.com/howdyai/botkit/issues/1984)! From 8d5e9e11c065a6abfc91fa520cfe8d4d8e397844 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 15:47:24 -0500 Subject: [PATCH 11/18] clean up docs --- packages/botkit/src/teamsHelpers.ts | 8 +- packages/docs/index.json | 2415 ++------------------------- packages/docs/package-lock.json | 6 + packages/docs/package.json | 3 + packages/docs/reference/core.md | 311 +--- 5 files changed, 140 insertions(+), 2603 deletions(-) diff --git a/packages/botkit/src/teamsHelpers.ts b/packages/botkit/src/teamsHelpers.ts index c7adac1bc..99874a796 100644 --- a/packages/botkit/src/teamsHelpers.ts +++ b/packages/botkit/src/teamsHelpers.ts @@ -7,11 +7,13 @@ */ import { Botkit, BotkitMessage } from './core'; import { BotWorker } from './botworker'; -import { TeamsInfo, MiddlewareSet, TurnContext, TaskModuleTaskInfo } from 'botbuilder'; +import { TeamsInfo, MiddlewareSet, TurnContext } from 'botbuilder'; /** - * An extension of the core BotWorker class that exposes the TeamsInfo helper class for MS Teams. + * This is a specialized version of [Botkit's core BotWorker class](core.md#BotWorker) that includes additional methods for interacting with Microsoft Teams. + * It includes all functionality from the base class, as well as the extension methods below. * This BotWorker is used with the built-in Bot Framework adapter. + * @noInheritDoc */ export class TeamsBotWorker extends BotWorker { @@ -20,7 +22,7 @@ export class TeamsBotWorker extends BotWorker { } /** - * Grants access to the TeamsInfo helper class + * Grants access to the TeamsInfo helper class * See: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest */ public teams: TeamsInfo = TeamsInfo; diff --git a/packages/docs/index.json b/packages/docs/index.json index 9265b20aa..671fcd735 100644 --- a/packages/docs/index.json +++ b/packages/docs/index.json @@ -4683,7 +4683,7 @@ "isExternal": true }, "comment": { - "shortText": "An extension of the core BotWorker class that exposes the TeamsInfo helper class for MS Teams.\nThis BotWorker is used with the built-in Bot Framework adapter." + "shortText": "This is a specialized version of [Botkit's core BotWorker class](core.md#BotWorker) that includes additional methods for interacting with Microsoft Teams.\nIt includes all functionality from the base class, as well as the extension methods below.\nThis BotWorker is used with the built-in Bot Framework adapter." }, "children": [ { @@ -4749,2200 +4749,41 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 16, - "character": 47 - } - ], - "overwrites": { - "type": "reference", - "id": 3, - "name": "BotWorker.__constructor" - } - }, - { - "id": 57, - "name": "teams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": " Grants access to the TeamsInfo helper class\nSee: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest" - }, - "sources": [ - { - "fileName": "teamsHelpers.ts", - "line": 26, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "TeamsInfo" - }, - "defaultValue": "TeamsInfo" - }, - { - "id": 62, - "name": "controller", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "Get a reference to the main Botkit controller." - }, - "getSignature": [ - { - "id": 63, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Get a reference to the main Botkit controller." - }, - "type": { - "type": "reference", - "id": 188, - "name": "Botkit" - }, - "inheritedFrom": { - "type": "reference", - "id": 7, - "name": "BotWorker.controller" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 35, - "character": 25 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 7, - "name": "BotWorker.controller" - } - }, - { - "id": 74, - "name": "beginDialog", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 75, - "name": "beginDialog", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Begin a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received.\n[See \"Using Dialogs\" in the core documentation.](../index.md#using-dialogs)", - "text": "```javascript\ncontroller.hears('hello', 'message', async(bot, message) => {\n await bot.beginDialog(GREETINGS_DIALOG);\n});\n```" - }, - "parameters": [ - { - "id": 76, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "id of dialog" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 77, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "object containing options to be passed into the dialog\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 19, - "name": "BotWorker.beginDialog" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 153, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 19, - "name": "BotWorker.beginDialog" - } - }, - { - "id": 78, - "name": "cancelAllDialogs", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 79, - "name": "cancelAllDialogs", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Cancel any and all active dialogs for the current user/context." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "name": "DialogTurnResult" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 23, - "name": "BotWorker.cancelAllDialogs" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 172, - "character": 33 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 23, - "name": "BotWorker.cancelAllDialogs" - } - }, - { - "id": 91, - "name": "changeContext", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 92, - "name": "changeContext", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Alter the context in which a bot instance will send messages.\nUse this method to create or adjust a bot instance so that it can send messages to a predefined user/channel combination.", - "text": "```javascript\n// get the reference field and store it.\nconst saved_reference = message.reference;\n\n// later on...\nlet bot = await controller.spawn();\nbot.changeContext(saved_reference);\nbot.say('Hello!');\n```\n" - }, - "parameters": [ - { - "id": 93, - "name": "reference", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A [ConversationReference](https://docs.microsoft.com/en-us/javascript/api/botframework-schema/conversationreference?view=botbuilder-ts-latest), most likely captured from an incoming message and stored for use in proactive messaging scenarios.\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "name": "ConversationReference" - } - ], - "name": "Partial" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 2, - "name": "BotWorker" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 36, - "name": "BotWorker.changeContext" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 250, - "character": 30 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 36, - "name": "BotWorker.changeContext" - } - }, - { - "id": 97, - "name": "ensureMessageFormat", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 98, - "name": "ensureMessageFormat", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Take a crudely-formed Botkit message with any sort of field (may just be a string, may be a partial message object)\nand map it into a beautiful BotFramework Activity.\nAny fields not found in the Activity definition will be moved to activity.channelData.", - "returns": "a properly formed Activity object\n", - "tags": [ - { - "tag": "params", - "text": "message a string or partial outgoing message object" - } - ] - }, - "parameters": [ - { - "id": 99, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 155, - "name": "BotkitMessage" - } - ], - "name": "Partial" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "name": "Activity" - } - ], - "name": "Partial" - }, - "inheritedFrom": { - "type": "reference", - "id": 42, - "name": "BotWorker.ensureMessageFormat" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 332, - "character": 30 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 42, - "name": "BotWorker.ensureMessageFormat" - } - }, - { - "id": 80, - "name": "getActiveDialog", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 81, - "name": "getActiveDialog", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Get a reference to the active dialog", - "returns": "a reference to the active dialog or undefined if no dialog is active\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Dialog" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "id": 25, - "name": "BotWorker.getActiveDialog" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 182, - "character": 26 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 25, - "name": "BotWorker.getActiveDialog" - } - }, - { - "id": 64, - "name": "getConfig", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 65, - "name": "getConfig", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Get a value from the BotWorker's configuration.", - "text": "```javascript\nlet original_context = bot.getConfig('context');\nawait original_context.sendActivity('send directly using the adapter instead of Botkit');\n```\n", - "returns": "The value stored in the configuration (or null if absent)\n" - }, - "parameters": [ - { - "id": 66, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "The name of a value stored in the configuration" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "id": 9, - "name": "BotWorker.getConfig" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 50, - "character": 20 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 9, - "name": "BotWorker.getConfig" - } - }, - { - "id": 82, - "name": "hasActiveDialog", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 83, - "name": "hasActiveDialog", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Check if any dialog is active or not", - "returns": "true if there is an active dialog, otherwise false\n" - }, - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "id": 27, - "name": "BotWorker.hasActiveDialog" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 190, - "character": 26 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 27, - "name": "BotWorker.hasActiveDialog" - } - }, - { - "id": 103, - "name": "httpBody", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 104, - "name": "httpBody", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Set the http response body for this turn.\nUse this to define the response value when the platform requires a synchronous response to the incoming webhook.", - "text": "Example handling of a /slash command from Slack:\n```javascript\ncontroller.on('slash_command', async(bot, message) => {\n bot.httpBody('This is a reply to the slash command.');\n})\n```\n" - }, - "parameters": [ - { - "id": 105, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "(any) a value that will be returned as the http response body\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "id": 48, - "name": "BotWorker.httpBody" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 432, - "character": 19 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 48, - "name": "BotWorker.httpBody" - } - }, - { - "id": 100, - "name": "httpStatus", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 101, - "name": "httpStatus", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Set the http response status code for this turn", - "text": "```javascript\ncontroller.on('event', async(bot, message) => {\n // respond with a 500 error code for some reason!\n bot.httpStatus(500);\n});\n```\n" - }, - "parameters": [ - { - "id": 102, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "a valid http status code like 200 202 301 500 etc\n" - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "id": 45, - "name": "BotWorker.httpStatus" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 415, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 45, - "name": "BotWorker.httpStatus" - } - }, - { - "id": 84, - "name": "isDialogActive", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 85, - "name": "isDialogActive", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Check to see if a given dialog is currently active in the stack", - "returns": "true if dialog with id is located anywhere in the dialog stack\n" - }, - "parameters": [ - { - "id": 86, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The id of a dialog to look for in the dialog stack" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "id": 29, - "name": "BotWorker.isDialogActive" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 199, - "character": 25 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 29, - "name": "BotWorker.isDialogActive" - } - }, - { - "id": 87, - "name": "replaceDialog", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 88, - "name": "replaceDialog", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Replace any active dialogs with a new a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received.\n[See \"Using Dialogs\" in the core documentation.](../index.md#using-dialogs)", - "text": "```javascript\ncontroller.hears('hello', 'message', async(bot, message) => {\n await bot.replaceDialog(GREETINGS_DIALOG);\n});\n```" - }, - "parameters": [ - { - "id": 89, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "id of dialog" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 90, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "object containing options to be passed into the dialog\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 32, - "name": "BotWorker.replaceDialog" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 218, - "character": 30 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 32, - "name": "BotWorker.replaceDialog" - } - }, - { - "id": 70, - "name": "reply", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 71, - "name": "reply", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Reply to an incoming message.\nMessage will be sent using the context of the source message, which may in some cases be different than the context used to spawn the bot.", - "text": "Note that like [bot.say()](#say), `reply()` can take a string or a message object.\n\n```javascript\ncontroller.on('event', async(bot, message) => {\n\n await bot.reply(message, 'I received an event and am replying to it.');\n\n});\n```\n", - "returns": "Return value will contain the results of the send action, typically `{id: }`\n" - }, - "parameters": [ - { - "id": 72, - "name": "src", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "An incoming message, usually passed in to a handler function" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 155, - "name": "BotkitMessage" - } - ], - "name": "Partial" - } - }, - { - "id": 73, - "name": "resp", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A string containing the text of a reply, or more fully formed message object" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 155, - "name": "BotkitMessage" - } - ], - "name": "Partial" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 15, - "name": "BotWorker.reply" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 130, - "character": 22 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 15, - "name": "BotWorker.reply" - } - }, - { - "id": 58, - "name": "replyWithTaskInfo", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 59, - "name": "replyWithTaskInfo", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Reply to a Teams task module task/fetch or task/submit with a task module response.\nSee https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots" - }, - "parameters": [ - { - "id": 60, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": {}, - "type": { - "type": "reference", - "id": 155, - "name": "BotkitMessage" - } - }, - { - "id": 61, - "name": "taskInfo", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "an object in the form {type, value}\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "teamsHelpers.ts", - "line": 34, - "character": 32 - } - ] - }, - { - "id": 67, - "name": "say", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 68, - "name": "say", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Send a message using whatever context the `bot` was spawned in or set using [changeContext()](#changecontext) --\nor more likely, one of the platform-specific helpers like\n[startPrivateConversation()](../reference/slack.md#startprivateconversation) (Slack),\n[startConversationWithUser()](../reference/twilio-sms.md#startconversationwithuser) (Twilio SMS),\nand [startConversationWithUser()](../reference/facebook.md#startconversationwithuser) (Facebook Messenger).\nBe sure to check the platform documentation for others - most adapters include at least one.", - "text": "Simple use in event handler (acts the same as bot.reply)\n```javascript\ncontroller.on('event', async(bot, message) => {\n\n await bot.say('I received an event!');\n\n});\n```\n\nUse with a freshly spawned bot and bot.changeContext:\n```javascript\nlet bot = controller.spawn(OPTIONS);\nbot.changeContext(REFERENCE);\nbot.say('ALERT! I have some news.');\n```\n\nUse with multi-field message object:\n```javascript\ncontroller.on('event', async(bot, message) => {\n bot.say({\n text: 'I heard an event',\n attachments: [\n title: message.type,\n text: `The message was of type ${ message.type }`,\n // ...\n ]\n });\n});\n```\n", - "returns": "Return value will contain the results of the send action, typically `{id: }`\n" - }, - "parameters": [ - { - "id": 69, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A string containing the text of a reply, or more fully formed message object" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 155, - "name": "BotkitMessage" - } - ], - "name": "Partial" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 12, - "name": "BotWorker.say" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 99, - "character": 20 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 12, - "name": "BotWorker.say" - } - }, - { - "id": 94, - "name": "startConversationWithUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 95, - "name": "startConversationWithUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 96, - "name": "reference", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 39, - "name": "BotWorker.startConversationWithUser" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 274, - "character": 42 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 39, - "name": "BotWorker.startConversationWithUser" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 53 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 57 - ] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [ - 62 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 74, - 78, - 91, - 97, - 80, - 64, - 82, - 103, - 100, - 84, - 87, - 70, - 58, - 67, - 94 - ] - } - ], - "sources": [ - { - "fileName": "teamsHelpers.ts", - "line": 16, - "character": 27 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 2, - "name": "BotWorker" - } - ], - "props": [ - { - "id": 57, - "name": "teams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": " Grants access to the TeamsInfo helper class\nSee: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest" - }, - "sources": [ - { - "fileName": "teamsHelpers.ts", - "line": 26, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "TeamsInfo" - }, - "defaultValue": "TeamsInfo" - }, - { - "id": 62, - "name": "controller", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "Get a reference to the main Botkit controller." - }, - "getSignature": [ - { - "id": 63, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Get a reference to the main Botkit controller." - }, - "type": { - "type": "reference", - "id": 188, - "name": "Botkit" - }, - "inheritedFrom": { - "type": "reference", - "id": 7, - "name": "BotWorker.controller" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 35, - "character": 25 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 7, - "name": "BotWorker.controller" - } - } - ], - "methods": [ - { - "id": 74, - "name": "beginDialog", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 75, - "name": "beginDialog", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Begin a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received.\n[See \"Using Dialogs\" in the core documentation.](../index.md#using-dialogs)", - "text": "```javascript\ncontroller.hears('hello', 'message', async(bot, message) => {\n await bot.beginDialog(GREETINGS_DIALOG);\n});\n```" - }, - "parameters": [ - { - "id": 76, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "id of dialog" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 77, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "object containing options to be passed into the dialog\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 19, - "name": "BotWorker.beginDialog" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 153, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 19, - "name": "BotWorker.beginDialog" - } - }, - { - "id": 78, - "name": "cancelAllDialogs", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 79, - "name": "cancelAllDialogs", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Cancel any and all active dialogs for the current user/context." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "name": "DialogTurnResult" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 23, - "name": "BotWorker.cancelAllDialogs" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 172, - "character": 33 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 23, - "name": "BotWorker.cancelAllDialogs" - } - }, - { - "id": 91, - "name": "changeContext", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 92, - "name": "changeContext", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Alter the context in which a bot instance will send messages.\nUse this method to create or adjust a bot instance so that it can send messages to a predefined user/channel combination.", - "text": "```javascript\n// get the reference field and store it.\nconst saved_reference = message.reference;\n\n// later on...\nlet bot = await controller.spawn();\nbot.changeContext(saved_reference);\nbot.say('Hello!');\n```\n" - }, - "parameters": [ - { - "id": 93, - "name": "reference", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A [ConversationReference](https://docs.microsoft.com/en-us/javascript/api/botframework-schema/conversationreference?view=botbuilder-ts-latest), most likely captured from an incoming message and stored for use in proactive messaging scenarios.\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "name": "ConversationReference" - } - ], - "name": "Partial" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 2, - "name": "BotWorker" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 36, - "name": "BotWorker.changeContext" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 250, - "character": 30 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 36, - "name": "BotWorker.changeContext" - } - }, - { - "id": 97, - "name": "ensureMessageFormat", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 98, - "name": "ensureMessageFormat", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Take a crudely-formed Botkit message with any sort of field (may just be a string, may be a partial message object)\nand map it into a beautiful BotFramework Activity.\nAny fields not found in the Activity definition will be moved to activity.channelData.", - "returns": "a properly formed Activity object\n", - "tags": [ - { - "tag": "params", - "text": "message a string or partial outgoing message object" - } - ] - }, - "parameters": [ - { - "id": 99, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 155, - "name": "BotkitMessage" - } - ], - "name": "Partial" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "name": "Activity" - } - ], - "name": "Partial" - }, - "inheritedFrom": { - "type": "reference", - "id": 42, - "name": "BotWorker.ensureMessageFormat" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 332, - "character": 30 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 42, - "name": "BotWorker.ensureMessageFormat" - } - }, - { - "id": 80, - "name": "getActiveDialog", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 81, - "name": "getActiveDialog", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Get a reference to the active dialog", - "returns": "a reference to the active dialog or undefined if no dialog is active\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Dialog" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "id": 25, - "name": "BotWorker.getActiveDialog" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 182, - "character": 26 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 25, - "name": "BotWorker.getActiveDialog" - } - }, - { - "id": 64, - "name": "getConfig", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 65, - "name": "getConfig", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Get a value from the BotWorker's configuration.", - "text": "```javascript\nlet original_context = bot.getConfig('context');\nawait original_context.sendActivity('send directly using the adapter instead of Botkit');\n```\n", - "returns": "The value stored in the configuration (or null if absent)\n" - }, - "parameters": [ - { - "id": 66, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "The name of a value stored in the configuration" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "id": 9, - "name": "BotWorker.getConfig" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 50, - "character": 20 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 9, - "name": "BotWorker.getConfig" - } - }, - { - "id": 82, - "name": "hasActiveDialog", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 83, - "name": "hasActiveDialog", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Check if any dialog is active or not", - "returns": "true if there is an active dialog, otherwise false\n" - }, - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "id": 27, - "name": "BotWorker.hasActiveDialog" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 190, - "character": 26 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 27, - "name": "BotWorker.hasActiveDialog" - } - }, - { - "id": 103, - "name": "httpBody", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 104, - "name": "httpBody", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Set the http response body for this turn.\nUse this to define the response value when the platform requires a synchronous response to the incoming webhook.", - "text": "Example handling of a /slash command from Slack:\n```javascript\ncontroller.on('slash_command', async(bot, message) => {\n bot.httpBody('This is a reply to the slash command.');\n})\n```\n" - }, - "parameters": [ - { - "id": 105, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "(any) a value that will be returned as the http response body\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "id": 48, - "name": "BotWorker.httpBody" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 432, - "character": 19 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 48, - "name": "BotWorker.httpBody" - } - }, - { - "id": 100, - "name": "httpStatus", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 101, - "name": "httpStatus", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Set the http response status code for this turn", - "text": "```javascript\ncontroller.on('event', async(bot, message) => {\n // respond with a 500 error code for some reason!\n bot.httpStatus(500);\n});\n```\n" - }, - "parameters": [ - { - "id": 102, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "a valid http status code like 200 202 301 500 etc\n" - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "id": 45, - "name": "BotWorker.httpStatus" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 415, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 45, - "name": "BotWorker.httpStatus" - } - }, - { - "id": 84, - "name": "isDialogActive", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 85, - "name": "isDialogActive", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Check to see if a given dialog is currently active in the stack", - "returns": "true if dialog with id is located anywhere in the dialog stack\n" - }, - "parameters": [ - { - "id": 86, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The id of a dialog to look for in the dialog stack" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "id": 29, - "name": "BotWorker.isDialogActive" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 199, - "character": 25 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 29, - "name": "BotWorker.isDialogActive" - } - }, - { - "id": 87, - "name": "replaceDialog", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 88, - "name": "replaceDialog", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Replace any active dialogs with a new a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received.\n[See \"Using Dialogs\" in the core documentation.](../index.md#using-dialogs)", - "text": "```javascript\ncontroller.hears('hello', 'message', async(bot, message) => {\n await bot.replaceDialog(GREETINGS_DIALOG);\n});\n```" - }, - "parameters": [ - { - "id": 89, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "id of dialog" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 90, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "object containing options to be passed into the dialog\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 32, - "name": "BotWorker.replaceDialog" - } - } - ], - "sources": [ - { - "fileName": "botworker.ts", - "line": 218, - "character": 30 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 32, - "name": "BotWorker.replaceDialog" - } - }, - { - "id": 70, - "name": "reply", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 71, - "name": "reply", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Reply to an incoming message.\nMessage will be sent using the context of the source message, which may in some cases be different than the context used to spawn the bot.", - "text": "Note that like [bot.say()](#say), `reply()` can take a string or a message object.\n\n```javascript\ncontroller.on('event', async(bot, message) => {\n\n await bot.reply(message, 'I received an event and am replying to it.');\n\n});\n```\n", - "returns": "Return value will contain the results of the send action, typically `{id: }`\n" - }, - "parameters": [ - { - "id": 72, - "name": "src", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "An incoming message, usually passed in to a handler function" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 155, - "name": "BotkitMessage" - } - ], - "name": "Partial" - } - }, - { - "id": 73, - "name": "resp", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A string containing the text of a reply, or more fully formed message object" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 155, - "name": "BotkitMessage" - } - ], - "name": "Partial" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 15, - "name": "BotWorker.reply" - } + "line": 18, + "character": 47 } ], + "overwrites": { + "type": "reference", + "id": 3, + "name": "BotWorker.__constructor" + } + }, + { + "id": 57, + "name": "teams", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isExternal": true + }, + "comment": { + "shortText": "Grants access to the TeamsInfo helper class\nSee: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest" + }, "sources": [ { - "fileName": "botworker.ts", - "line": 130, - "character": 22 + "fileName": "teamsHelpers.ts", + "line": 28, + "character": 14 } ], - "inheritedFrom": { + "type": { "type": "reference", - "id": 15, - "name": "BotWorker.reply" - } + "name": "TeamsInfo" + }, + "defaultValue": "TeamsInfo" }, { "id": 58, @@ -7014,102 +4855,81 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 34, + "line": 36, "character": 32 } ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 53 + ] }, { - "id": 67, - "name": "say", + "title": "Properties", + "kind": 1024, + "children": [ + 57 + ] + }, + { + "title": "Methods", "kind": 2048, - "kindString": "Method", + "children": [ + 58 + ] + } + ], + "sources": [ + { + "fileName": "teamsHelpers.ts", + "line": 18, + "character": 27 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 2, + "name": "BotWorker" + } + ], + "props": [ + { + "id": 57, + "name": "teams", + "kind": 1024, + "kindString": "Property", "flags": { "isPublic": true, "isExported": true, "isExternal": true }, - "signatures": [ - { - "id": 68, - "name": "say", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Send a message using whatever context the `bot` was spawned in or set using [changeContext()](#changecontext) --\nor more likely, one of the platform-specific helpers like\n[startPrivateConversation()](../reference/slack.md#startprivateconversation) (Slack),\n[startConversationWithUser()](../reference/twilio-sms.md#startconversationwithuser) (Twilio SMS),\nand [startConversationWithUser()](../reference/facebook.md#startconversationwithuser) (Facebook Messenger).\nBe sure to check the platform documentation for others - most adapters include at least one.", - "text": "Simple use in event handler (acts the same as bot.reply)\n```javascript\ncontroller.on('event', async(bot, message) => {\n\n await bot.say('I received an event!');\n\n});\n```\n\nUse with a freshly spawned bot and bot.changeContext:\n```javascript\nlet bot = controller.spawn(OPTIONS);\nbot.changeContext(REFERENCE);\nbot.say('ALERT! I have some news.');\n```\n\nUse with multi-field message object:\n```javascript\ncontroller.on('event', async(bot, message) => {\n bot.say({\n text: 'I heard an event',\n attachments: [\n title: message.type,\n text: `The message was of type ${ message.type }`,\n // ...\n ]\n });\n});\n```\n", - "returns": "Return value will contain the results of the send action, typically `{id: }`\n" - }, - "parameters": [ - { - "id": 69, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A string containing the text of a reply, or more fully formed message object" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 155, - "name": "BotkitMessage" - } - ], - "name": "Partial" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 12, - "name": "BotWorker.say" - } - } - ], + "comment": { + "shortText": "Grants access to the TeamsInfo helper class\nSee: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest" + }, "sources": [ { - "fileName": "botworker.ts", - "line": 99, - "character": 20 + "fileName": "teamsHelpers.ts", + "line": 28, + "character": 14 } ], - "inheritedFrom": { + "type": { "type": "reference", - "id": 12, - "name": "BotWorker.say" - } - }, + "name": "TeamsInfo" + }, + "defaultValue": "TeamsInfo" + } + ], + "methods": [ { - "id": 94, - "name": "startConversationWithUser", + "id": 58, + "name": "replyWithTaskInfo", "kind": 2048, "kindString": "Method", "flags": { @@ -7119,22 +4939,43 @@ }, "signatures": [ { - "id": 95, - "name": "startConversationWithUser", + "id": 59, + "name": "replyWithTaskInfo", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Reply to a Teams task module task/fetch or task/submit with a task module response.\nSee https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots" + }, "parameters": [ { - "id": 96, - "name": "reference", + "id": 60, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": {}, + "type": { + "type": "reference", + "id": 155, + "name": "BotkitMessage" + } + }, + { + "id": 61, + "name": "taskInfo", "kind": 32768, "kindString": "Parameter", "flags": { "isExported": true }, + "comment": { + "text": "an object in the form {type, value}\n" + }, "type": { "type": "intrinsic", "name": "any" @@ -7146,30 +4987,20 @@ "typeArguments": [ { "type": "intrinsic", - "name": "void" + "name": "unknown" } ], "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 39, - "name": "BotWorker.startConversationWithUser" } } ], "sources": [ { - "fileName": "botworker.ts", - "line": 274, - "character": 42 + "fileName": "teamsHelpers.ts", + "line": 36, + "character": 32 } - ], - "inheritedFrom": { - "type": "reference", - "id": 39, - "name": "BotWorker.startConversationWithUser" - } + ] } ], "constructors": [ @@ -7236,7 +5067,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 16, + "line": 18, "character": 47 } ], @@ -13756,7 +11587,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 82, + "line": 84, "character": 51 } ] @@ -13779,7 +11610,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 82, + "line": 84, "character": 23 } ] @@ -13797,7 +11628,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 76, + "line": 78, "character": 34 } ], @@ -13891,7 +11722,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 82, + "line": 84, "character": 51 } ] @@ -13914,7 +11745,7 @@ "sources": [ { "fileName": "teamsHelpers.ts", - "line": 82, + "line": 84, "character": 23 } ] diff --git a/packages/docs/package-lock.json b/packages/docs/package-lock.json index 528890d18..80e8ef746 100644 --- a/packages/docs/package-lock.json +++ b/packages/docs/package-lock.json @@ -253,6 +253,12 @@ "resolved": "https://registry.npmjs.org/typedoc-plugin-external-module-name/-/typedoc-plugin-external-module-name-2.1.0.tgz", "integrity": "sha512-uYYe1yj6COwgyhl3Of71lkkhbEw7LVBEqAlXVvd7b9INGhJq59M1q9wdQdIWfpqe/9JegWSIR9ZDfY6mkPedJg==" }, + "typedoc-plugin-no-inherit": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/typedoc-plugin-no-inherit/-/typedoc-plugin-no-inherit-1.1.10.tgz", + "integrity": "sha512-BhSFAWlBTh9Bf6PSfruIqdQBM8gd/Gj8hVuRk5pVWkHu4I/SB24LzFr5gAo52ZlaQSeN72+VOkkRD6tNYl8Enw==", + "dev": true + }, "typescript": { "version": "3.7.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.5.tgz", diff --git a/packages/docs/package.json b/packages/docs/package.json index 8b3b43ab1..68ad1bccd 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -11,5 +11,8 @@ "handlebars": "^4.7.2", "typedoc": "^0.16.9", "typedoc-plugin-external-module-name": "2.1.0" + }, + "devDependencies": { + "typedoc-plugin-no-inherit": "^1.1.10" } } diff --git a/packages/docs/reference/core.md b/packages/docs/reference/core.md index b2bb29156..74794a8d1 100644 --- a/packages/docs/reference/core.md +++ b/packages/docs/reference/core.md @@ -556,7 +556,8 @@ an array of channels in the format [{name: string, id: string}] ## TeamsBotWorker -An extension of the core BotWorker class that exposes the TeamsInfo helper class for MS Teams. +This is a specialized version of [Botkit's core BotWorker class](core.md#BotWorker) that includes additional methods for interacting with Microsoft Teams. +It includes all functionality from the base class, as well as the extension methods below. This BotWorker is used with the built-in Bot Framework adapter. To use this class in your application, first install the package: @@ -570,21 +571,7 @@ const { TeamsBotWorker } = require('botkit'); ``` This class includes the following methods: -* [beginDialog()](#beginDialog) -* [cancelAllDialogs()](#cancelAllDialogs) -* [changeContext()](#changeContext) -* [ensureMessageFormat()](#ensureMessageFormat) -* [getActiveDialog()](#getActiveDialog) -* [getConfig()](#getConfig) -* [hasActiveDialog()](#hasActiveDialog) -* [httpBody()](#httpBody) -* [httpStatus()](#httpStatus) -* [isDialogActive()](#isDialogActive) -* [replaceDialog()](#replaceDialog) -* [reply()](#reply) * [replyWithTaskInfo()](#replyWithTaskInfo) -* [say()](#say) -* [startConversationWithUser()](#startConversationWithUser) @@ -603,235 +590,9 @@ This class includes the following methods: | Name | Type | Description |--- |--- |--- -| teams | TeamsInfo | Grants access to the TeamsInfo helper class
See: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest -| controller | | Get a reference to the main Botkit controller. +| teams | TeamsInfo | Grants access to the TeamsInfo helper class
See: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest ## TeamsBotWorker Class Methods - -### beginDialog() -Begin a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received. -[See "Using Dialogs" in the core documentation.](../index.md#using-dialogs) - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| id| string | id of dialog -| options (optional)| any | object containing options to be passed into the dialog
- - - -```javascript -controller.hears('hello', 'message', async(bot, message) => { - await bot.beginDialog(GREETINGS_DIALOG); -}); -``` - - -### cancelAllDialogs() -Cancel any and all active dialogs for the current user/context. - - - -### changeContext() -Alter the context in which a bot instance will send messages. -Use this method to create or adjust a bot instance so that it can send messages to a predefined user/channel combination. - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| reference| Partial<ConversationReference> | A [ConversationReference](https://docs.microsoft.com/en-us/javascript/api/botframework-schema/conversationreference?view=botbuilder-ts-latest), most likely captured from an incoming message and stored for use in proactive messaging scenarios.
- - - -```javascript -// get the reference field and store it. -const saved_reference = message.reference; - -// later on... -let bot = await controller.spawn(); -bot.changeContext(saved_reference); -bot.say('Hello!'); -``` - - - -### ensureMessageFormat() -Take a crudely-formed Botkit message with any sort of field (may just be a string, may be a partial message object) -and map it into a beautiful BotFramework Activity. -Any fields not found in the Activity definition will be moved to activity.channelData. - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| message| | - - -**Returns** - -a properly formed Activity object - - - - - -### getActiveDialog() -Get a reference to the active dialog - -**Returns** - -a reference to the active dialog or undefined if no dialog is active - - - - - -### getConfig() -Get a value from the BotWorker's configuration. - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| key (optional)| string | The name of a value stored in the configuration - - -**Returns** - -The value stored in the configuration (or null if absent) - - - - -```javascript -let original_context = bot.getConfig('context'); -await original_context.sendActivity('send directly using the adapter instead of Botkit'); -``` - - - -### hasActiveDialog() -Check if any dialog is active or not - -**Returns** - -true if there is an active dialog, otherwise false - - - - - -### httpBody() -Set the http response body for this turn. -Use this to define the response value when the platform requires a synchronous response to the incoming webhook. - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| body| any | (any) a value that will be returned as the http response body
- - - -Example handling of a /slash command from Slack: -```javascript -controller.on('slash_command', async(bot, message) => { - bot.httpBody('This is a reply to the slash command.'); -}) -``` - - - -### httpStatus() -Set the http response status code for this turn - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| status| number | a valid http status code like 200 202 301 500 etc
- - - -```javascript -controller.on('event', async(bot, message) => { - // respond with a 500 error code for some reason! - bot.httpStatus(500); -}); -``` - - - -### isDialogActive() -Check to see if a given dialog is currently active in the stack - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| id| string | The id of a dialog to look for in the dialog stack - - -**Returns** - -true if dialog with id is located anywhere in the dialog stack - - - - - -### replaceDialog() -Replace any active dialogs with a new a pre-defined dialog by specifying its id. The dialog will be started in the same context (same user, same channel) in which the original incoming message was received. -[See "Using Dialogs" in the core documentation.](../index.md#using-dialogs) - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| id| string | id of dialog -| options (optional)| any | object containing options to be passed into the dialog
- - - -```javascript -controller.hears('hello', 'message', async(bot, message) => { - await bot.replaceDialog(GREETINGS_DIALOG); -}); -``` - - -### reply() -Reply to an incoming message. -Message will be sent using the context of the source message, which may in some cases be different than the context used to spawn the bot. - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| src| Partial<BotkitMessage> | An incoming message, usually passed in to a handler function -| resp| | A string containing the text of a reply, or more fully formed message object - - -**Returns** - -Return value will contain the results of the send action, typically `{id: <id of message>}` - - - - -Note that like [bot.say()](#say), `reply()` can take a string or a message object. - -```javascript -controller.on('event', async(bot, message) => { - - await bot.reply(message, 'I received an event and am replying to it.'); - -}); -``` - - ### replyWithTaskInfo() Reply to a Teams task module task/fetch or task/submit with a task module response. @@ -846,72 +607,6 @@ See https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-ca - -### say() -Send a message using whatever context the `bot` was spawned in or set using [changeContext()](#changecontext) -- -or more likely, one of the platform-specific helpers like -[startPrivateConversation()](../reference/slack.md#startprivateconversation) (Slack), -[startConversationWithUser()](../reference/twilio-sms.md#startconversationwithuser) (Twilio SMS), -and [startConversationWithUser()](../reference/facebook.md#startconversationwithuser) (Facebook Messenger). -Be sure to check the platform documentation for others - most adapters include at least one. - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| message| | A string containing the text of a reply, or more fully formed message object - - -**Returns** - -Return value will contain the results of the send action, typically `{id: <id of message>}` - - - - -Simple use in event handler (acts the same as bot.reply) -```javascript -controller.on('event', async(bot, message) => { - - await bot.say('I received an event!'); - -}); -``` - -Use with a freshly spawned bot and bot.changeContext: -```javascript -let bot = controller.spawn(OPTIONS); -bot.changeContext(REFERENCE); -bot.say('ALERT! I have some news.'); -``` - -Use with multi-field message object: -```javascript -controller.on('event', async(bot, message) => { - bot.say({ - text: 'I heard an event', - attachments: [ - title: message.type, - text: `The message was of type ${ message.type }`, - // ... - ] - }); -}); -``` - - - -### startConversationWithUser() - - -**Parameters** - -| Argument | Type | description -|--- |--- |--- -| reference| any | - - - ## BotWorker From 9df4e425fb35081cf50cdf0b1fea4cb189945254 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 15:51:50 -0500 Subject: [PATCH 12/18] add link to test features --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index cef44285f..4ecc4ba1a 100644 --- a/changelog.md +++ b/changelog.md @@ -9,7 +9,7 @@ * Update dependencies to [Bot Framework 4.10] * Update some dev dependencies like lerna, eslint, etc. -* NEW: Additional support for Microsoft Teams! [Read all about it!](packages/docs/core.md#ms-teams-extensions) +* NEW: Additional support for Microsoft Teams! [Read all about it](packages/docs/core.md#ms-teams-extensions) or [see these new methods in action](packages/testbot/features/teams_features.js) * Bot workers spawned from the default adapter now feature `bot.teams` which is an instance to the [TeamsInfo helper class](https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest). * Botkit now includes an optional middleware [TeamsInvokeMiddleware](packages/docs/reference/core.md#TeamsInvokeMiddleware) for handling "invoke" responses from Teams including task modules. * Botkit now includes [bot.replyWithTaskInfo()](packages/docs/reference/core.md#replyWithTaskInfo) which can be used to respond to task module events. [Read more about Task Modules](https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-task-modules) From 3f7935329cbbf71fb89c1e84f76e7d103340205c Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 16:10:19 -0500 Subject: [PATCH 13/18] fix for #1936 - remove dependency on request --- packages/botkit/package.json | 1 - packages/botkit/src/adapter.ts | 26 ++++----------------- packages/testbot/features/teams_features.js | 8 +++++++ 3 files changed, 12 insertions(+), 23 deletions(-) diff --git a/packages/botkit/package.json b/packages/botkit/package.json index 52f7e6744..e9fe2bda7 100644 --- a/packages/botkit/package.json +++ b/packages/botkit/package.json @@ -40,7 +40,6 @@ "express": "^4.17.1", "mustache": "^4.0.1", "path": "^0.12.7", - "request": "^2.88.0", "ware": "^1.3.0" }, "devDependencies": { diff --git a/packages/botkit/src/adapter.ts b/packages/botkit/src/adapter.ts index f09c1bd3a..731959dc9 100644 --- a/packages/botkit/src/adapter.ts +++ b/packages/botkit/src/adapter.ts @@ -5,10 +5,9 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ -import { BotFrameworkAdapter, TurnContext } from 'botbuilder'; +import { BotFrameworkAdapter, TurnContext, TeamsInfo, ChannelInfo } from 'botbuilder'; import { ConnectorClient, TokenApiClient } from 'botframework-connector'; import { TeamsBotWorker } from './teamsHelpers'; -import * as request from 'request'; import * as os from 'os'; const pjson: any = require('../package.json'); // eslint-disable-line @typescript-eslint/no-var-requires @@ -59,27 +58,10 @@ export class BotkitBotFrameworkAdapter extends BotFrameworkAdapter { * @param context A TurnContext object representing a message or event from a user in Teams * @returns an array of channels in the format [{name: string, id: string}] */ - public async getChannels(context: TurnContext): Promise<{id: string; name: string}[]> { + public async getChannels(context: TurnContext): Promise { if (context.activity.channelData && context.activity.channelData.team) { - const token = await this.credentials.getToken(true); - - const uri = context.activity.serviceUrl + 'v3/teams/' + context.activity.channelData.team.id + '/conversations/'; - return new Promise((resolve, reject) => { - request({ - method: 'GET', - headers: { - Authorization: 'Bearer ' + token - }, - json: true, - uri: uri - }, async function(err, res, json) { - if (err) { - reject(err); - } else { - resolve(json.conversations ? json.conversations.map((c) => { if (!c.name) { c.name = 'General'; } return c; }) : []); - } - }); - }); + const channels = await TeamsInfo.getTeamChannels(context); + return channels ? channels.map((c) => { if (!c.name) { c.name = 'General'; } return c; }) : []; } else { console.error('getChannels cannot be called from unknown team'); return []; diff --git a/packages/testbot/features/teams_features.js b/packages/testbot/features/teams_features.js index 2416f79be..6d021b55f 100644 --- a/packages/testbot/features/teams_features.js +++ b/packages/testbot/features/teams_features.js @@ -58,6 +58,14 @@ module.exports = function(controller) { } }); + controller.hears('getTeamChannels', 'message', async(bot, message) => { + try { + await bot.reply(message, JSON.stringify(await bot.teams.getTeamChannels(bot.getConfig('context')))); + } catch(err) { + await bot.reply(message, err.message); + } + }); + controller.hears('getMember', 'message', async(bot, message) => { try { From c54f2b5be83d0ca7534db241c07fc68d671265eb Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 16:20:47 -0500 Subject: [PATCH 14/18] clean up some teams stuff --- packages/botbuilder-adapter-facebook/src/botworker.ts | 2 +- packages/testbot/bot.js | 10 +++++----- packages/testbot/features/teams_features.js | 4 +++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/botbuilder-adapter-facebook/src/botworker.ts b/packages/botbuilder-adapter-facebook/src/botworker.ts index f9d9322ed..d3e04dfc3 100644 --- a/packages/botbuilder-adapter-facebook/src/botworker.ts +++ b/packages/botbuilder-adapter-facebook/src/botworker.ts @@ -68,7 +68,7 @@ export class FacebookBotWorker extends BotWorker { * @param userId the PSID of a user the bot has previously interacted with */ public async startConversationWithUser(userId): Promise { - return this.changeContext({ + await this.changeContext({ channelId: 'facebook', // @ts-ignore conversation: { id: userId }, diff --git a/packages/testbot/bot.js b/packages/testbot/bot.js index 1e47152e3..6d6dda96e 100644 --- a/packages/testbot/bot.js +++ b/packages/testbot/bot.js @@ -145,12 +145,12 @@ const controller = new Botkit({ webhook_uri: '/api/messages', webserver_middlewares: [(req, res, next) => { console.log('REQ > ', req.url); next(); }], // disable_console: true, - adapter: adapter, + // adapter: adapter, // disable_webserver: true, - // adapterConfig: { - // appId: process.env.APP_ID, - // appPassword: process.env.APP_PASSWORD - // }, + adapterConfig: { + appId: process.env.APP_ID, + appPassword: process.env.APP_PASSWORD + }, storage }); diff --git a/packages/testbot/features/teams_features.js b/packages/testbot/features/teams_features.js index 6d021b55f..a1cb20a14 100644 --- a/packages/testbot/features/teams_features.js +++ b/packages/testbot/features/teams_features.js @@ -1,9 +1,11 @@ -const request = require('request'); +const { TeamsInvokeMiddleware } = require('botkit'); module.exports = function(controller) { if (!controller.adapter.name) { + controller.adapter.use(new TeamsInvokeMiddleware()); + const adaptiveCard = { "type": "AdaptiveCard", "body": [ From ef63df174a44c343274b67447440cdf83103a825 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 21 Aug 2020 16:39:22 -0500 Subject: [PATCH 15/18] update bot framework packages to 4.10.1 --- changelog.md | 2 +- packages/botbuilder-adapter-facebook/package.json | 2 +- packages/botbuilder-adapter-hangouts/package.json | 2 +- packages/botbuilder-adapter-slack/package.json | 4 ++-- packages/botbuilder-adapter-twilio-sms/package.json | 2 +- packages/botbuilder-adapter-web/package.json | 2 +- packages/botbuilder-adapter-webex/package.json | 2 +- packages/botkit/package.json | 8 ++++---- packages/testbot/bot.js | 10 +++++----- packages/testbot/package.json | 6 +++--- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/changelog.md b/changelog.md index 4ecc4ba1a..223ce55d1 100644 --- a/changelog.md +++ b/changelog.md @@ -6,7 +6,7 @@ # 4.10.0 -* Update dependencies to [Bot Framework 4.10] +* Update dependencies to [Bot Framework 4.10.1](https://github.com/microsoft/botbuilder-js/releases/tag/4.10) * Update some dev dependencies like lerna, eslint, etc. * NEW: Additional support for Microsoft Teams! [Read all about it](packages/docs/core.md#ms-teams-extensions) or [see these new methods in action](packages/testbot/features/teams_features.js) diff --git a/packages/botbuilder-adapter-facebook/package.json b/packages/botbuilder-adapter-facebook/package.json index fdb3da24a..adcbe4e90 100644 --- a/packages/botbuilder-adapter-facebook/package.json +++ b/packages/botbuilder-adapter-facebook/package.json @@ -34,7 +34,7 @@ "url": "https://github.com/howdyai/botkit.git" }, "dependencies": { - "botbuilder": "^4.9.0", + "botbuilder": "^4.10.1", "botkit": "^4.9.0", "debug": "^4.1.0" }, diff --git a/packages/botbuilder-adapter-hangouts/package.json b/packages/botbuilder-adapter-hangouts/package.json index cbf859b0d..7e89b6600 100644 --- a/packages/botbuilder-adapter-hangouts/package.json +++ b/packages/botbuilder-adapter-hangouts/package.json @@ -34,7 +34,7 @@ "url": "https://github.com/howdyai/botkit.git" }, "dependencies": { - "botbuilder": "^4.9.0", + "botbuilder": "^4.10.1", "googleapis": "^34.0.0", "botkit": "^4.9.0", "debug": "^4.1.0" diff --git a/packages/botbuilder-adapter-slack/package.json b/packages/botbuilder-adapter-slack/package.json index db72d1799..8beeced09 100644 --- a/packages/botbuilder-adapter-slack/package.json +++ b/packages/botbuilder-adapter-slack/package.json @@ -33,8 +33,8 @@ "url": "https://github.com/howdyai/botkit.git" }, "dependencies": { - "@slack/web-api": "^5.8.0", - "botbuilder": "^4.9.0", + "@slack/web-api": "^5.11.0", + "botbuilder": "^4.10.1", "botkit": "^4.9.0", "debug": "^4.1.0" }, diff --git a/packages/botbuilder-adapter-twilio-sms/package.json b/packages/botbuilder-adapter-twilio-sms/package.json index ce482e556..a375a453b 100644 --- a/packages/botbuilder-adapter-twilio-sms/package.json +++ b/packages/botbuilder-adapter-twilio-sms/package.json @@ -37,7 +37,7 @@ "url": "https://github.com/howdyai/botkit.git" }, "dependencies": { - "botbuilder": "^4.9.0", + "botbuilder": "^4.10.1", "botkit": "^4.9.0", "debug": "^4.1.0", "twilio": "^3.29.2" diff --git a/packages/botbuilder-adapter-web/package.json b/packages/botbuilder-adapter-web/package.json index a7325c7c8..d8d66917d 100644 --- a/packages/botbuilder-adapter-web/package.json +++ b/packages/botbuilder-adapter-web/package.json @@ -36,7 +36,7 @@ }, "dependencies": { "botkit": "^4.9.0", - "botbuilder": "^4.9.0", + "botbuilder": "^4.10.1", "debug": "^4.1.0", "url": "^0.11.0", "ws": "^7.3.1" diff --git a/packages/botbuilder-adapter-webex/package.json b/packages/botbuilder-adapter-webex/package.json index 8e2d9e54c..06f1f2329 100644 --- a/packages/botbuilder-adapter-webex/package.json +++ b/packages/botbuilder-adapter-webex/package.json @@ -33,7 +33,7 @@ "url": "https://github.com/howdyai/botkit.git" }, "dependencies": { - "botbuilder": "^4.9.0", + "botbuilder": "^4.10.1", "botkit": "^4.9.0", "debug": "^4.1.0", "url": "^0.11.0", diff --git a/packages/botkit/package.json b/packages/botkit/package.json index e9fe2bda7..e61cadd87 100644 --- a/packages/botkit/package.json +++ b/packages/botkit/package.json @@ -32,10 +32,10 @@ }, "dependencies": { "body-parser": "^1.19.0", - "botbuilder": "^4.9.0", - "botbuilder-core": "^4.9.0", - "botbuilder-dialogs": "^4.9.0", - "botframework-connector": "^4.9.0", + "botbuilder": "^4.10.1", + "botbuilder-core": "^4.10.1", + "botbuilder-dialogs": "^4.10.1", + "botframework-connector": "^4.10.1", "debug": "^4.1.0", "express": "^4.17.1", "mustache": "^4.0.1", diff --git a/packages/testbot/bot.js b/packages/testbot/bot.js index 6d6dda96e..1e47152e3 100644 --- a/packages/testbot/bot.js +++ b/packages/testbot/bot.js @@ -145,12 +145,12 @@ const controller = new Botkit({ webhook_uri: '/api/messages', webserver_middlewares: [(req, res, next) => { console.log('REQ > ', req.url); next(); }], // disable_console: true, - // adapter: adapter, + adapter: adapter, // disable_webserver: true, - adapterConfig: { - appId: process.env.APP_ID, - appPassword: process.env.APP_PASSWORD - }, + // adapterConfig: { + // appId: process.env.APP_ID, + // appPassword: process.env.APP_PASSWORD + // }, storage }); diff --git a/packages/testbot/package.json b/packages/testbot/package.json index 63b3c9d64..feec74adf 100644 --- a/packages/testbot/package.json +++ b/packages/testbot/package.json @@ -9,9 +9,9 @@ "author": "benbrown@gmail.com", "license": "MIT", "dependencies": { - "botbuilder": "^4.9.0", - "botbuilder-ai": "^4.9.0", - "botbuilder-dialogs": "^4.9.0", + "botbuilder": "^4.10.1", + "botbuilder-ai": "^4.10.1", + "botbuilder-dialogs": "^4.10.1", "botbuilder-adapter-facebook": "^1.0.0", "botbuilder-adapter-hangouts": "^1.0.0", "botbuilder-adapter-slack": "^1.0.0", From 8f82a605419a7004bcb150c92f18aa79d97cb690 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Mon, 24 Aug 2020 11:24:34 -0500 Subject: [PATCH 16/18] update version numbers and changelogs --- .../botbuilder-adapter-facebook/CHANGELOG.md | 4 + .../botbuilder-adapter-facebook/package.json | 4 +- .../botbuilder-adapter-hangouts/CHANGELOG.md | 5 + .../botbuilder-adapter-hangouts/package.json | 4 +- .../botbuilder-adapter-slack/CHANGELOG.md | 8 + .../botbuilder-adapter-slack/package.json | 4 +- .../CHANGELOG.md | 4 + .../package.json | 4 +- packages/botbuilder-adapter-web/CHANGELOG.md | 1 + packages/botbuilder-adapter-web/package.json | 4 +- .../botbuilder-adapter-webex/CHANGELOG.md | 2 + .../botbuilder-adapter-webex/package.json | 4 +- packages/botkit/package.json | 2 +- packages/docs/index.json | 1870 ++++++++--------- packages/generator-botkit/CHANGELOG.md | 4 + .../generators/app/templates/package.json | 2 +- packages/generator-botkit/package.json | 2 +- packages/testbot/package.json | 2 +- 18 files changed, 910 insertions(+), 1020 deletions(-) diff --git a/packages/botbuilder-adapter-facebook/CHANGELOG.md b/packages/botbuilder-adapter-facebook/CHANGELOG.md index 18de61d9d..d1750fa93 100644 --- a/packages/botbuilder-adapter-facebook/CHANGELOG.md +++ b/packages/botbuilder-adapter-facebook/CHANGELOG.md @@ -1,5 +1,9 @@ # botbuilder-adapter-facebook changelog +# 1.0.11 + +* Update dependencies to Botkit 4.10, Bot Framework 4.10 + # 1.0.10 * Update dependencies to Botkit 4.9, Bot Framework 4.9 diff --git a/packages/botbuilder-adapter-facebook/package.json b/packages/botbuilder-adapter-facebook/package.json index adcbe4e90..54bc7d500 100644 --- a/packages/botbuilder-adapter-facebook/package.json +++ b/packages/botbuilder-adapter-facebook/package.json @@ -1,6 +1,6 @@ { "name": "botbuilder-adapter-facebook", - "version": "1.0.10", + "version": "1.0.11", "description": "Connect Botkit or BotBuilder to Facebook Messenger", "main": "lib/index.js", "typings": "./lib/index.d.ts", @@ -35,7 +35,7 @@ }, "dependencies": { "botbuilder": "^4.10.1", - "botkit": "^4.9.0", + "botkit": "^4.10.0", "debug": "^4.1.0" }, "devDependencies": { diff --git a/packages/botbuilder-adapter-hangouts/CHANGELOG.md b/packages/botbuilder-adapter-hangouts/CHANGELOG.md index 36fbb60ed..a4d93eb0d 100644 --- a/packages/botbuilder-adapter-hangouts/CHANGELOG.md +++ b/packages/botbuilder-adapter-hangouts/CHANGELOG.md @@ -1,5 +1,10 @@ # botbuilder-adapter-hangouts changelog + +# 1.0.8 + +* Update dependencies to Botkit 4.10, Bot Framework 4.10 + # 1.0.7 * Update dependencies to Botkit 4.9, Bot Framework 4.9 diff --git a/packages/botbuilder-adapter-hangouts/package.json b/packages/botbuilder-adapter-hangouts/package.json index 7e89b6600..7f530c5fc 100644 --- a/packages/botbuilder-adapter-hangouts/package.json +++ b/packages/botbuilder-adapter-hangouts/package.json @@ -1,6 +1,6 @@ { "name": "botbuilder-adapter-hangouts", - "version": "1.0.7", + "version": "1.0.8", "description": "Connect Botkit or BotBuilder to Google Hangouts", "main": "./lib/index.js", "typings": "./lib/index.d.ts", @@ -36,7 +36,7 @@ "dependencies": { "botbuilder": "^4.10.1", "googleapis": "^34.0.0", - "botkit": "^4.9.0", + "botkit": "^4.10.0", "debug": "^4.1.0" }, "devDependencies": { diff --git a/packages/botbuilder-adapter-slack/CHANGELOG.md b/packages/botbuilder-adapter-slack/CHANGELOG.md index ba2a15a37..2c3ac5256 100644 --- a/packages/botbuilder-adapter-slack/CHANGELOG.md +++ b/packages/botbuilder-adapter-slack/CHANGELOG.md @@ -1,9 +1,17 @@ # botbuilder-adapter-slack changelog + +# 1.0.13 + +* Update dependencies to Botkit 4.10, Bot Framework 4.10 +* Update @slack/web-api to 5.11.0 + + # 1.0.12 * Adjust startPrivateConversation to use converations.open instead of im.open + # 1.0.11 * Update dependencies to Botkit 4.9, Bot Framework 4.9 diff --git a/packages/botbuilder-adapter-slack/package.json b/packages/botbuilder-adapter-slack/package.json index 8beeced09..f81520f8a 100644 --- a/packages/botbuilder-adapter-slack/package.json +++ b/packages/botbuilder-adapter-slack/package.json @@ -1,6 +1,6 @@ { "name": "botbuilder-adapter-slack", - "version": "1.0.12", + "version": "1.0.13", "description": "Connect Botkit or BotBuilder to Slack", "main": "./lib/index.js", "typings": "./lib/index.d.ts", @@ -35,7 +35,7 @@ "dependencies": { "@slack/web-api": "^5.11.0", "botbuilder": "^4.10.1", - "botkit": "^4.9.0", + "botkit": "^4.10.0", "debug": "^4.1.0" }, "devDependencies": { diff --git a/packages/botbuilder-adapter-twilio-sms/CHANGELOG.md b/packages/botbuilder-adapter-twilio-sms/CHANGELOG.md index 5053f65c4..e874d1b83 100644 --- a/packages/botbuilder-adapter-twilio-sms/CHANGELOG.md +++ b/packages/botbuilder-adapter-twilio-sms/CHANGELOG.md @@ -1,5 +1,9 @@ # botbuilder-adapter-twilio changelog +# 1.0.7 + +* Update dependencies to Botkit 4.10, Bot Framework 4.10 + # 1.0.6 * Update dependencies to Botkit 4.9, Bot Framework 4.9 diff --git a/packages/botbuilder-adapter-twilio-sms/package.json b/packages/botbuilder-adapter-twilio-sms/package.json index a375a453b..820233588 100644 --- a/packages/botbuilder-adapter-twilio-sms/package.json +++ b/packages/botbuilder-adapter-twilio-sms/package.json @@ -1,6 +1,6 @@ { "name": "botbuilder-adapter-twilio-sms", - "version": "1.0.6", + "version": "1.0.7", "description": "Connect Botkit or BotBuilder to Twilio SMS", "main": "./lib/index.js", "typings": "./lib/index.d.ts", @@ -38,7 +38,7 @@ }, "dependencies": { "botbuilder": "^4.10.1", - "botkit": "^4.9.0", + "botkit": "^4.10.0", "debug": "^4.1.0", "twilio": "^3.29.2" }, diff --git a/packages/botbuilder-adapter-web/CHANGELOG.md b/packages/botbuilder-adapter-web/CHANGELOG.md index c75500d87..422efd70f 100644 --- a/packages/botbuilder-adapter-web/CHANGELOG.md +++ b/packages/botbuilder-adapter-web/CHANGELOG.md @@ -1,6 +1,7 @@ # botbuilder-adapter-web changelog # 1.0.9 + * Update dependencies to Botkit 4.10, Bot Framework 4.10 * Fix to websocket ping call. [Issue #2003](https://github.com/howdyai/botkit/issues/2003) diff --git a/packages/botbuilder-adapter-web/package.json b/packages/botbuilder-adapter-web/package.json index d8d66917d..167564cd3 100644 --- a/packages/botbuilder-adapter-web/package.json +++ b/packages/botbuilder-adapter-web/package.json @@ -1,6 +1,6 @@ { "name": "botbuilder-adapter-web", - "version": "1.0.8", + "version": "1.0.9", "description": "Connect Botkit or BotBuilder to the Web", "main": "./lib/index.js", "typings": "./lib/index.d.ts", @@ -35,7 +35,7 @@ "url": "https://github.com/howdyai/botkit.git" }, "dependencies": { - "botkit": "^4.9.0", + "botkit": "^4.10.0", "botbuilder": "^4.10.1", "debug": "^4.1.0", "url": "^0.11.0", diff --git a/packages/botbuilder-adapter-webex/CHANGELOG.md b/packages/botbuilder-adapter-webex/CHANGELOG.md index 3e08e1abd..a0c2aed30 100644 --- a/packages/botbuilder-adapter-webex/CHANGELOG.md +++ b/packages/botbuilder-adapter-webex/CHANGELOG.md @@ -4,6 +4,8 @@ * Test for presence of channelData before accessing it. Thanks [@viveksyngh](https://github.com/viveksyngh) for the [pull request](https://github.com/howdyai/botkit/pull/2010) +* Update dependencies to Botkit 4.10, Bot Framework 4.10 + # 1.0.8 diff --git a/packages/botbuilder-adapter-webex/package.json b/packages/botbuilder-adapter-webex/package.json index 06f1f2329..a7227677f 100644 --- a/packages/botbuilder-adapter-webex/package.json +++ b/packages/botbuilder-adapter-webex/package.json @@ -1,6 +1,6 @@ { "name": "botbuilder-adapter-webex", - "version": "1.0.8", + "version": "1.0.9", "description": "Connect Botkit or BotBuilder to Webex Teams", "main": "./lib/index.js", "typings": "./lib/index.d.ts", @@ -34,7 +34,7 @@ }, "dependencies": { "botbuilder": "^4.10.1", - "botkit": "^4.9.0", + "botkit": "^4.10.0", "debug": "^4.1.0", "url": "^0.11.0", "webex": "^1.80.148" diff --git a/packages/botkit/package.json b/packages/botkit/package.json index e61cadd87..efb4e0c1a 100644 --- a/packages/botkit/package.json +++ b/packages/botkit/package.json @@ -1,6 +1,6 @@ { "name": "botkit", - "version": "4.9.0", + "version": "4.10.0", "description": "Building Blocks for Building Bots", "main": "lib/index.js", "typings": "./lib/index.d.ts", diff --git a/packages/docs/index.json b/packages/docs/index.json index 671fcd735..8968afc11 100644 --- a/packages/docs/index.json +++ b/packages/docs/index.json @@ -6,7 +6,7 @@ "path": "reference/core.md", "classes": [ { - "id": 188, + "id": 185, "name": "Botkit", "kind": 128, "kindString": "Class", @@ -19,7 +19,7 @@ }, "children": [ { - "id": 202, + "id": 199, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -34,7 +34,7 @@ }, "signatures": [ { - "id": 203, + "id": 200, "name": "new Botkit", "kind": 16384, "kindString": "Constructor signature", @@ -47,7 +47,7 @@ }, "parameters": [ { - "id": 204, + "id": 201, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -59,14 +59,14 @@ }, "type": { "type": "reference", - "id": 140, + "id": 137, "name": "BotkitConfiguration" } } ], "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } @@ -80,7 +80,7 @@ ] }, { - "id": 201, + "id": 198, "name": "PATH", "kind": 1024, "kindString": "Property", @@ -105,7 +105,7 @@ } }, { - "id": 199, + "id": 196, "name": "adapter", "kind": 1024, "kindString": "Property", @@ -130,7 +130,7 @@ } }, { - "id": 200, + "id": 197, "name": "dialogSet", "kind": 1024, "kindString": "Property", @@ -155,7 +155,7 @@ } }, { - "id": 198, + "id": 195, "name": "http", "kind": 1024, "kindString": "Property", @@ -180,7 +180,7 @@ } }, { - "id": 196, + "id": 193, "name": "storage", "kind": 1024, "kindString": "Property", @@ -205,7 +205,7 @@ } }, { - "id": 189, + "id": 186, "name": "version", "kind": 1024, "kindString": "Property", @@ -231,7 +231,7 @@ "defaultValue": "require('../package.json').version" }, { - "id": 197, + "id": 194, "name": "webserver", "kind": 1024, "kindString": "Property", @@ -256,7 +256,7 @@ } }, { - "id": 220, + "id": 217, "name": "plugins", "kind": 262144, "kindString": "Accessor", @@ -270,7 +270,7 @@ }, "getSignature": [ { - "id": 221, + "id": 218, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -283,7 +283,7 @@ "type": { "type": "reflection", "declaration": { - "id": 222, + "id": 219, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -292,7 +292,7 @@ }, "indexSignature": [ { - "id": 223, + "id": 220, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -301,7 +301,7 @@ }, "parameters": [ { - "id": 224, + "id": 221, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -340,7 +340,7 @@ ] }, { - "id": 232, + "id": 229, "name": "addDep", "kind": 2048, "kindString": "Method", @@ -351,7 +351,7 @@ }, "signatures": [ { - "id": 233, + "id": 230, "name": "addDep", "kind": 4096, "kindString": "Call signature", @@ -364,7 +364,7 @@ }, "parameters": [ { - "id": 234, + "id": 231, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -395,7 +395,7 @@ ] }, { - "id": 291, + "id": 288, "name": "addDialog", "kind": 2048, "kindString": "Method", @@ -406,7 +406,7 @@ }, "signatures": [ { - "id": 292, + "id": 289, "name": "addDialog", "kind": 4096, "kindString": "Call signature", @@ -419,7 +419,7 @@ }, "parameters": [ { - "id": 293, + "id": 290, "name": "dialog", "kind": 32768, "kindString": "Parameter", @@ -450,7 +450,7 @@ ] }, { - "id": 216, + "id": 213, "name": "addPluginExtension", "kind": 2048, "kindString": "Method", @@ -461,7 +461,7 @@ }, "signatures": [ { - "id": 217, + "id": 214, "name": "addPluginExtension", "kind": 4096, "kindString": "Call signature", @@ -474,7 +474,7 @@ }, "parameters": [ { - "id": 218, + "id": 215, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -490,7 +490,7 @@ } }, { - "id": 219, + "id": 216, "name": "extension", "kind": 32768, "kindString": "Parameter", @@ -521,7 +521,7 @@ ] }, { - "id": 294, + "id": 291, "name": "afterDialog", "kind": 2048, "kindString": "Method", @@ -532,7 +532,7 @@ }, "signatures": [ { - "id": 295, + "id": 292, "name": "afterDialog", "kind": 4096, "kindString": "Call signature", @@ -545,7 +545,7 @@ }, "parameters": [ { - "id": 296, + "id": 293, "name": "dialog", "kind": 32768, "kindString": "Parameter", @@ -570,7 +570,7 @@ } }, { - "id": 297, + "id": 294, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -582,7 +582,7 @@ }, "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } } @@ -602,7 +602,7 @@ ] }, { - "id": 235, + "id": 232, "name": "completeDep", "kind": 2048, "kindString": "Method", @@ -613,7 +613,7 @@ }, "signatures": [ { - "id": 236, + "id": 233, "name": "completeDep", "kind": 4096, "kindString": "Call signature", @@ -625,7 +625,7 @@ }, "parameters": [ { - "id": 237, + "id": 234, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -656,7 +656,7 @@ ] }, { - "id": 207, + "id": 204, "name": "getConfig", "kind": 2048, "kindString": "Method", @@ -667,7 +667,7 @@ }, "signatures": [ { - "id": 208, + "id": 205, "name": "getConfig", "kind": 4096, "kindString": "Call signature", @@ -681,7 +681,7 @@ }, "parameters": [ { - "id": 209, + "id": 206, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -713,7 +713,7 @@ ] }, { - "id": 229, + "id": 226, "name": "getLocalView", "kind": 2048, "kindString": "Method", @@ -724,7 +724,7 @@ }, "signatures": [ { - "id": 230, + "id": 227, "name": "getLocalView", "kind": 4096, "kindString": "Call signature", @@ -736,7 +736,7 @@ }, "parameters": [ { - "id": 231, + "id": 228, "name": "path_to_view", "kind": 32768, "kindString": "Parameter", @@ -767,7 +767,7 @@ ] }, { - "id": 243, + "id": 240, "name": "handleTurn", "kind": 2048, "kindString": "Method", @@ -778,7 +778,7 @@ }, "signatures": [ { - "id": 244, + "id": 241, "name": "handleTurn", "kind": 4096, "kindString": "Call signature", @@ -790,7 +790,7 @@ }, "parameters": [ { - "id": 245, + "id": 242, "name": "turnContext", "kind": 32768, "kindString": "Parameter", @@ -827,7 +827,7 @@ ] }, { - "id": 249, + "id": 246, "name": "hears", "kind": 2048, "kindString": "Method", @@ -838,7 +838,7 @@ }, "signatures": [ { - "id": 250, + "id": 247, "name": "hears", "kind": 4096, "kindString": "Call signature", @@ -851,7 +851,7 @@ }, "parameters": [ { - "id": 251, + "id": 248, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -880,7 +880,7 @@ { "type": "reflection", "declaration": { - "id": 252, + "id": 249, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -889,7 +889,7 @@ }, "signatures": [ { - "id": 253, + "id": 250, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -898,7 +898,7 @@ }, "parameters": [ { - "id": 254, + "id": 251, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -907,7 +907,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -940,7 +940,7 @@ { "type": "reflection", "declaration": { - "id": 255, + "id": 252, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -949,7 +949,7 @@ }, "signatures": [ { - "id": 256, + "id": 253, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -958,7 +958,7 @@ }, "parameters": [ { - "id": 257, + "id": 254, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -967,7 +967,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -997,7 +997,7 @@ } }, { - "id": 258, + "id": 255, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -1025,7 +1025,7 @@ } }, { - "id": 259, + "id": 256, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -1037,7 +1037,7 @@ }, "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } } @@ -1057,7 +1057,7 @@ ] }, { - "id": 260, + "id": 257, "name": "interrupts", "kind": 2048, "kindString": "Method", @@ -1068,7 +1068,7 @@ }, "signatures": [ { - "id": 261, + "id": 258, "name": "interrupts", "kind": 4096, "kindString": "Call signature", @@ -1081,7 +1081,7 @@ }, "parameters": [ { - "id": 262, + "id": 259, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -1110,7 +1110,7 @@ { "type": "reflection", "declaration": { - "id": 263, + "id": 260, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1119,7 +1119,7 @@ }, "signatures": [ { - "id": 264, + "id": 261, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -1128,7 +1128,7 @@ }, "parameters": [ { - "id": 265, + "id": 262, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1137,7 +1137,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -1177,7 +1177,7 @@ { "type": "reflection", "declaration": { - "id": 266, + "id": 263, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1186,7 +1186,7 @@ }, "signatures": [ { - "id": 267, + "id": 264, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -1195,7 +1195,7 @@ }, "parameters": [ { - "id": 268, + "id": 265, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1204,7 +1204,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -1234,7 +1234,7 @@ } }, { - "id": 269, + "id": 266, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -1262,7 +1262,7 @@ } }, { - "id": 270, + "id": 267, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -1274,7 +1274,7 @@ }, "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } } @@ -1294,7 +1294,7 @@ ] }, { - "id": 284, + "id": 281, "name": "loadModule", "kind": 2048, "kindString": "Method", @@ -1305,7 +1305,7 @@ }, "signatures": [ { - "id": 285, + "id": 282, "name": "loadModule", "kind": 4096, "kindString": "Call signature", @@ -1317,7 +1317,7 @@ }, "parameters": [ { - "id": 286, + "id": 283, "name": "p", "kind": 32768, "kindString": "Parameter", @@ -1348,7 +1348,7 @@ ] }, { - "id": 287, + "id": 284, "name": "loadModules", "kind": 2048, "kindString": "Method", @@ -1359,7 +1359,7 @@ }, "signatures": [ { - "id": 288, + "id": 285, "name": "loadModules", "kind": 4096, "kindString": "Call signature", @@ -1372,7 +1372,7 @@ }, "parameters": [ { - "id": 289, + "id": 286, "name": "p", "kind": 32768, "kindString": "Parameter", @@ -1388,7 +1388,7 @@ } }, { - "id": 290, + "id": 287, "name": "exts", "kind": 32768, "kindString": "Parameter", @@ -1423,7 +1423,7 @@ ] }, { - "id": 271, + "id": 268, "name": "on", "kind": 2048, "kindString": "Method", @@ -1434,7 +1434,7 @@ }, "signatures": [ { - "id": 272, + "id": 269, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -1447,7 +1447,7 @@ }, "parameters": [ { - "id": 273, + "id": 270, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -1475,7 +1475,7 @@ } }, { - "id": 274, + "id": 271, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -1487,7 +1487,7 @@ }, "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } } @@ -1507,7 +1507,7 @@ ] }, { - "id": 225, + "id": 222, "name": "publicFolder", "kind": 2048, "kindString": "Method", @@ -1518,7 +1518,7 @@ }, "signatures": [ { - "id": 226, + "id": 223, "name": "publicFolder", "kind": 4096, "kindString": "Call signature", @@ -1531,7 +1531,7 @@ }, "parameters": [ { - "id": 227, + "id": 224, "name": "alias", "kind": 32768, "kindString": "Parameter", @@ -1547,7 +1547,7 @@ } }, { - "id": 228, + "id": 225, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -1578,7 +1578,7 @@ ] }, { - "id": 238, + "id": 235, "name": "ready", "kind": 2048, "kindString": "Method", @@ -1589,7 +1589,7 @@ }, "signatures": [ { - "id": 239, + "id": 236, "name": "ready", "kind": 4096, "kindString": "Call signature", @@ -1602,7 +1602,7 @@ }, "parameters": [ { - "id": 240, + "id": 237, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -1615,7 +1615,7 @@ "type": { "type": "reflection", "declaration": { - "id": 241, + "id": 238, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1624,7 +1624,7 @@ }, "signatures": [ { - "id": 242, + "id": 239, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -1663,7 +1663,7 @@ ] }, { - "id": 246, + "id": 243, "name": "saveState", "kind": 2048, "kindString": "Method", @@ -1674,7 +1674,7 @@ }, "signatures": [ { - "id": 247, + "id": 244, "name": "saveState", "kind": 4096, "kindString": "Call signature", @@ -1686,7 +1686,7 @@ }, "parameters": [ { - "id": 248, + "id": 245, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -1724,7 +1724,7 @@ ] }, { - "id": 205, + "id": 202, "name": "shutdown", "kind": 2048, "kindString": "Method", @@ -1735,7 +1735,7 @@ }, "signatures": [ { - "id": 206, + "id": 203, "name": "shutdown", "kind": 4096, "kindString": "Call signature", @@ -1767,7 +1767,7 @@ ] }, { - "id": 280, + "id": 277, "name": "spawn", "kind": 2048, "kindString": "Method", @@ -1778,7 +1778,7 @@ }, "signatures": [ { - "id": 281, + "id": 278, "name": "spawn", "kind": 4096, "kindString": "Call signature", @@ -1790,7 +1790,7 @@ }, "parameters": [ { - "id": 282, + "id": 279, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -1807,7 +1807,7 @@ } }, { - "id": 283, + "id": 280, "name": "custom_adapter", "kind": 32768, "kindString": "Parameter", @@ -1843,7 +1843,7 @@ ] }, { - "id": 275, + "id": 272, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -1854,7 +1854,7 @@ }, "signatures": [ { - "id": 276, + "id": 273, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -1867,7 +1867,7 @@ }, "parameters": [ { - "id": 277, + "id": 274, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -1883,7 +1883,7 @@ } }, { - "id": 278, + "id": 275, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -1901,7 +1901,7 @@ } }, { - "id": 279, + "id": 276, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1914,7 +1914,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -1940,7 +1940,7 @@ ] }, { - "id": 210, + "id": 207, "name": "usePlugin", "kind": 2048, "kindString": "Method", @@ -1951,7 +1951,7 @@ }, "signatures": [ { - "id": 211, + "id": 208, "name": "usePlugin", "kind": 4096, "kindString": "Call signature", @@ -1963,7 +1963,7 @@ }, "parameters": [ { - "id": 212, + "id": 209, "name": "plugin_or_function", "kind": 32768, "kindString": "Parameter", @@ -1979,7 +1979,7 @@ { "type": "reflection", "declaration": { - "id": 213, + "id": 210, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1988,7 +1988,7 @@ }, "signatures": [ { - "id": 214, + "id": 211, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -1997,7 +1997,7 @@ }, "parameters": [ { - "id": 215, + "id": 212, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -2006,14 +2006,14 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } ], "type": { "type": "reference", - "id": 176, + "id": 173, "name": "BotkitPlugin" } } @@ -2029,7 +2029,7 @@ }, { "type": "reference", - "id": 176, + "id": 173, "name": "BotkitPlugin" } ] @@ -2051,7 +2051,7 @@ ] }, { - "id": 190, + "id": 187, "name": "middleware", "kind": 2097152, "kindString": "Object literal", @@ -2066,7 +2066,7 @@ }, "children": [ { - "id": 192, + "id": 189, "name": "ingest", "kind": 32, "kindString": "Variable", @@ -2088,7 +2088,7 @@ "defaultValue": "new Ware()" }, { - "id": 195, + "id": 192, "name": "interpret", "kind": 32, "kindString": "Variable", @@ -2110,7 +2110,7 @@ "defaultValue": "new Ware()" }, { - "id": 194, + "id": 191, "name": "receive", "kind": 32, "kindString": "Variable", @@ -2132,7 +2132,7 @@ "defaultValue": "new Ware()" }, { - "id": 193, + "id": 190, "name": "send", "kind": 32, "kindString": "Variable", @@ -2154,7 +2154,7 @@ "defaultValue": "new Ware()" }, { - "id": 191, + "id": 188, "name": "spawn", "kind": 32, "kindString": "Variable", @@ -2181,11 +2181,11 @@ "title": "Variables", "kind": 32, "children": [ + 189, 192, - 195, - 194, - 193, - 191 + 191, + 190, + 188 ] } ], @@ -2207,60 +2207,60 @@ "title": "Constructors", "kind": 512, "children": [ - 202 + 199 ] }, { "title": "Properties", "kind": 1024, "children": [ - 201, - 199, - 200, 198, 196, - 189, - 197 + 197, + 195, + 193, + 186, + 194 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 220 + 217 ] }, { "title": "Methods", "kind": 2048, "children": [ - 232, + 229, + 288, + 213, 291, - 216, - 294, + 232, + 204, + 226, + 240, + 246, + 257, + 281, + 284, + 268, + 222, 235, - 207, - 229, 243, - 249, - 260, - 284, - 287, - 271, - 225, - 238, - 246, - 205, - 280, - 275, - 210 + 202, + 277, + 272, + 207 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 190 + 187 ] } ], @@ -2273,7 +2273,7 @@ ], "props": [ { - "id": 201, + "id": 198, "name": "PATH", "kind": 1024, "kindString": "Property", @@ -2298,7 +2298,7 @@ } }, { - "id": 199, + "id": 196, "name": "adapter", "kind": 1024, "kindString": "Property", @@ -2323,7 +2323,7 @@ } }, { - "id": 200, + "id": 197, "name": "dialogSet", "kind": 1024, "kindString": "Property", @@ -2348,7 +2348,7 @@ } }, { - "id": 198, + "id": 195, "name": "http", "kind": 1024, "kindString": "Property", @@ -2373,7 +2373,7 @@ } }, { - "id": 196, + "id": 193, "name": "storage", "kind": 1024, "kindString": "Property", @@ -2398,7 +2398,7 @@ } }, { - "id": 189, + "id": 186, "name": "version", "kind": 1024, "kindString": "Property", @@ -2424,7 +2424,7 @@ "defaultValue": "require('../package.json').version" }, { - "id": 197, + "id": 194, "name": "webserver", "kind": 1024, "kindString": "Property", @@ -2449,7 +2449,7 @@ } }, { - "id": 220, + "id": 217, "name": "plugins", "kind": 262144, "kindString": "Accessor", @@ -2463,7 +2463,7 @@ }, "getSignature": [ { - "id": 221, + "id": 218, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -2476,7 +2476,7 @@ "type": { "type": "reflection", "declaration": { - "id": 222, + "id": 219, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2485,7 +2485,7 @@ }, "indexSignature": [ { - "id": 223, + "id": 220, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2494,7 +2494,7 @@ }, "parameters": [ { - "id": 224, + "id": 221, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2535,7 +2535,7 @@ ], "methods": [ { - "id": 232, + "id": 229, "name": "addDep", "kind": 2048, "kindString": "Method", @@ -2546,7 +2546,7 @@ }, "signatures": [ { - "id": 233, + "id": 230, "name": "addDep", "kind": 4096, "kindString": "Call signature", @@ -2559,7 +2559,7 @@ }, "parameters": [ { - "id": 234, + "id": 231, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -2590,7 +2590,7 @@ ] }, { - "id": 291, + "id": 288, "name": "addDialog", "kind": 2048, "kindString": "Method", @@ -2601,7 +2601,7 @@ }, "signatures": [ { - "id": 292, + "id": 289, "name": "addDialog", "kind": 4096, "kindString": "Call signature", @@ -2614,7 +2614,7 @@ }, "parameters": [ { - "id": 293, + "id": 290, "name": "dialog", "kind": 32768, "kindString": "Parameter", @@ -2645,7 +2645,7 @@ ] }, { - "id": 216, + "id": 213, "name": "addPluginExtension", "kind": 2048, "kindString": "Method", @@ -2656,7 +2656,7 @@ }, "signatures": [ { - "id": 217, + "id": 214, "name": "addPluginExtension", "kind": 4096, "kindString": "Call signature", @@ -2669,7 +2669,7 @@ }, "parameters": [ { - "id": 218, + "id": 215, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -2685,7 +2685,7 @@ } }, { - "id": 219, + "id": 216, "name": "extension", "kind": 32768, "kindString": "Parameter", @@ -2716,7 +2716,7 @@ ] }, { - "id": 294, + "id": 291, "name": "afterDialog", "kind": 2048, "kindString": "Method", @@ -2727,7 +2727,7 @@ }, "signatures": [ { - "id": 295, + "id": 292, "name": "afterDialog", "kind": 4096, "kindString": "Call signature", @@ -2740,7 +2740,7 @@ }, "parameters": [ { - "id": 296, + "id": 293, "name": "dialog", "kind": 32768, "kindString": "Parameter", @@ -2765,7 +2765,7 @@ } }, { - "id": 297, + "id": 294, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -2777,7 +2777,7 @@ }, "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } } @@ -2797,7 +2797,7 @@ ] }, { - "id": 235, + "id": 232, "name": "completeDep", "kind": 2048, "kindString": "Method", @@ -2808,7 +2808,7 @@ }, "signatures": [ { - "id": 236, + "id": 233, "name": "completeDep", "kind": 4096, "kindString": "Call signature", @@ -2820,7 +2820,7 @@ }, "parameters": [ { - "id": 237, + "id": 234, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -2851,7 +2851,7 @@ ] }, { - "id": 207, + "id": 204, "name": "getConfig", "kind": 2048, "kindString": "Method", @@ -2862,7 +2862,7 @@ }, "signatures": [ { - "id": 208, + "id": 205, "name": "getConfig", "kind": 4096, "kindString": "Call signature", @@ -2876,7 +2876,7 @@ }, "parameters": [ { - "id": 209, + "id": 206, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2908,7 +2908,7 @@ ] }, { - "id": 229, + "id": 226, "name": "getLocalView", "kind": 2048, "kindString": "Method", @@ -2919,7 +2919,7 @@ }, "signatures": [ { - "id": 230, + "id": 227, "name": "getLocalView", "kind": 4096, "kindString": "Call signature", @@ -2931,7 +2931,7 @@ }, "parameters": [ { - "id": 231, + "id": 228, "name": "path_to_view", "kind": 32768, "kindString": "Parameter", @@ -2962,7 +2962,7 @@ ] }, { - "id": 243, + "id": 240, "name": "handleTurn", "kind": 2048, "kindString": "Method", @@ -2973,7 +2973,7 @@ }, "signatures": [ { - "id": 244, + "id": 241, "name": "handleTurn", "kind": 4096, "kindString": "Call signature", @@ -2985,7 +2985,7 @@ }, "parameters": [ { - "id": 245, + "id": 242, "name": "turnContext", "kind": 32768, "kindString": "Parameter", @@ -3022,7 +3022,7 @@ ] }, { - "id": 249, + "id": 246, "name": "hears", "kind": 2048, "kindString": "Method", @@ -3033,7 +3033,7 @@ }, "signatures": [ { - "id": 250, + "id": 247, "name": "hears", "kind": 4096, "kindString": "Call signature", @@ -3046,7 +3046,7 @@ }, "parameters": [ { - "id": 251, + "id": 248, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -3075,7 +3075,7 @@ { "type": "reflection", "declaration": { - "id": 252, + "id": 249, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3084,7 +3084,7 @@ }, "signatures": [ { - "id": 253, + "id": 250, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3093,7 +3093,7 @@ }, "parameters": [ { - "id": 254, + "id": 251, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -3102,7 +3102,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -3135,7 +3135,7 @@ { "type": "reflection", "declaration": { - "id": 255, + "id": 252, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3144,7 +3144,7 @@ }, "signatures": [ { - "id": 256, + "id": 253, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3153,7 +3153,7 @@ }, "parameters": [ { - "id": 257, + "id": 254, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -3162,7 +3162,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -3192,7 +3192,7 @@ } }, { - "id": 258, + "id": 255, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -3220,7 +3220,7 @@ } }, { - "id": 259, + "id": 256, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -3232,7 +3232,7 @@ }, "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } } @@ -3252,7 +3252,7 @@ ] }, { - "id": 260, + "id": 257, "name": "interrupts", "kind": 2048, "kindString": "Method", @@ -3263,7 +3263,7 @@ }, "signatures": [ { - "id": 261, + "id": 258, "name": "interrupts", "kind": 4096, "kindString": "Call signature", @@ -3276,7 +3276,7 @@ }, "parameters": [ { - "id": 262, + "id": 259, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -3305,7 +3305,7 @@ { "type": "reflection", "declaration": { - "id": 263, + "id": 260, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3314,7 +3314,7 @@ }, "signatures": [ { - "id": 264, + "id": 261, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3323,7 +3323,7 @@ }, "parameters": [ { - "id": 265, + "id": 262, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -3332,7 +3332,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -3372,7 +3372,7 @@ { "type": "reflection", "declaration": { - "id": 266, + "id": 263, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3381,7 +3381,7 @@ }, "signatures": [ { - "id": 267, + "id": 264, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3390,7 +3390,7 @@ }, "parameters": [ { - "id": 268, + "id": 265, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -3399,7 +3399,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -3429,7 +3429,7 @@ } }, { - "id": 269, + "id": 266, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -3457,7 +3457,7 @@ } }, { - "id": 270, + "id": 267, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -3469,7 +3469,7 @@ }, "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } } @@ -3489,7 +3489,7 @@ ] }, { - "id": 284, + "id": 281, "name": "loadModule", "kind": 2048, "kindString": "Method", @@ -3500,7 +3500,7 @@ }, "signatures": [ { - "id": 285, + "id": 282, "name": "loadModule", "kind": 4096, "kindString": "Call signature", @@ -3512,7 +3512,7 @@ }, "parameters": [ { - "id": 286, + "id": 283, "name": "p", "kind": 32768, "kindString": "Parameter", @@ -3543,7 +3543,7 @@ ] }, { - "id": 287, + "id": 284, "name": "loadModules", "kind": 2048, "kindString": "Method", @@ -3554,7 +3554,7 @@ }, "signatures": [ { - "id": 288, + "id": 285, "name": "loadModules", "kind": 4096, "kindString": "Call signature", @@ -3567,7 +3567,7 @@ }, "parameters": [ { - "id": 289, + "id": 286, "name": "p", "kind": 32768, "kindString": "Parameter", @@ -3583,7 +3583,7 @@ } }, { - "id": 290, + "id": 287, "name": "exts", "kind": 32768, "kindString": "Parameter", @@ -3618,7 +3618,7 @@ ] }, { - "id": 271, + "id": 268, "name": "on", "kind": 2048, "kindString": "Method", @@ -3629,7 +3629,7 @@ }, "signatures": [ { - "id": 272, + "id": 269, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -3642,7 +3642,7 @@ }, "parameters": [ { - "id": 273, + "id": 270, "name": "events", "kind": 32768, "kindString": "Parameter", @@ -3670,7 +3670,7 @@ } }, { - "id": 274, + "id": 271, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -3682,7 +3682,7 @@ }, "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } } @@ -3702,7 +3702,7 @@ ] }, { - "id": 225, + "id": 222, "name": "publicFolder", "kind": 2048, "kindString": "Method", @@ -3713,7 +3713,7 @@ }, "signatures": [ { - "id": 226, + "id": 223, "name": "publicFolder", "kind": 4096, "kindString": "Call signature", @@ -3726,7 +3726,7 @@ }, "parameters": [ { - "id": 227, + "id": 224, "name": "alias", "kind": 32768, "kindString": "Parameter", @@ -3742,7 +3742,7 @@ } }, { - "id": 228, + "id": 225, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3773,7 +3773,7 @@ ] }, { - "id": 238, + "id": 235, "name": "ready", "kind": 2048, "kindString": "Method", @@ -3784,7 +3784,7 @@ }, "signatures": [ { - "id": 239, + "id": 236, "name": "ready", "kind": 4096, "kindString": "Call signature", @@ -3797,7 +3797,7 @@ }, "parameters": [ { - "id": 240, + "id": 237, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -3810,7 +3810,7 @@ "type": { "type": "reflection", "declaration": { - "id": 241, + "id": 238, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3819,7 +3819,7 @@ }, "signatures": [ { - "id": 242, + "id": 239, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -3858,7 +3858,7 @@ ] }, { - "id": 246, + "id": 243, "name": "saveState", "kind": 2048, "kindString": "Method", @@ -3869,7 +3869,7 @@ }, "signatures": [ { - "id": 247, + "id": 244, "name": "saveState", "kind": 4096, "kindString": "Call signature", @@ -3881,7 +3881,7 @@ }, "parameters": [ { - "id": 248, + "id": 245, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -3919,7 +3919,7 @@ ] }, { - "id": 205, + "id": 202, "name": "shutdown", "kind": 2048, "kindString": "Method", @@ -3930,7 +3930,7 @@ }, "signatures": [ { - "id": 206, + "id": 203, "name": "shutdown", "kind": 4096, "kindString": "Call signature", @@ -3962,7 +3962,7 @@ ] }, { - "id": 280, + "id": 277, "name": "spawn", "kind": 2048, "kindString": "Method", @@ -3973,7 +3973,7 @@ }, "signatures": [ { - "id": 281, + "id": 278, "name": "spawn", "kind": 4096, "kindString": "Call signature", @@ -3985,7 +3985,7 @@ }, "parameters": [ { - "id": 282, + "id": 279, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -4002,7 +4002,7 @@ } }, { - "id": 283, + "id": 280, "name": "custom_adapter", "kind": 32768, "kindString": "Parameter", @@ -4038,7 +4038,7 @@ ] }, { - "id": 275, + "id": 272, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -4049,7 +4049,7 @@ }, "signatures": [ { - "id": 276, + "id": 273, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -4062,7 +4062,7 @@ }, "parameters": [ { - "id": 277, + "id": 274, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -4078,7 +4078,7 @@ } }, { - "id": 278, + "id": 275, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -4096,7 +4096,7 @@ } }, { - "id": 279, + "id": 276, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -4109,7 +4109,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -4135,7 +4135,7 @@ ] }, { - "id": 210, + "id": 207, "name": "usePlugin", "kind": 2048, "kindString": "Method", @@ -4146,7 +4146,7 @@ }, "signatures": [ { - "id": 211, + "id": 208, "name": "usePlugin", "kind": 4096, "kindString": "Call signature", @@ -4158,7 +4158,7 @@ }, "parameters": [ { - "id": 212, + "id": 209, "name": "plugin_or_function", "kind": 32768, "kindString": "Parameter", @@ -4174,7 +4174,7 @@ { "type": "reflection", "declaration": { - "id": 213, + "id": 210, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4183,7 +4183,7 @@ }, "signatures": [ { - "id": 214, + "id": 211, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -4192,7 +4192,7 @@ }, "parameters": [ { - "id": 215, + "id": 212, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -4201,14 +4201,14 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } ], "type": { "type": "reference", - "id": 176, + "id": 173, "name": "BotkitPlugin" } } @@ -4224,7 +4224,7 @@ }, { "type": "reference", - "id": 176, + "id": 173, "name": "BotkitPlugin" } ] @@ -4248,7 +4248,7 @@ ], "constructors": [ { - "id": 202, + "id": 199, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4263,7 +4263,7 @@ }, "signatures": [ { - "id": 203, + "id": 200, "name": "new Botkit", "kind": 16384, "kindString": "Constructor signature", @@ -4276,7 +4276,7 @@ }, "parameters": [ { - "id": 204, + "id": 201, "name": "config", "kind": 32768, "kindString": "Parameter", @@ -4288,14 +4288,14 @@ }, "type": { "type": "reference", - "id": 140, + "id": 137, "name": "BotkitConfiguration" } } ], "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } @@ -4336,7 +4336,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 32, + "line": 31, "character": 24 } ], @@ -4394,77 +4394,8 @@ { "type": "array", "elementType": { - "type": "reflection", - "declaration": { - "id": 125, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 126, - "name": "id", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "adapter.ts", - "line": 62, - "character": 63 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 127, - "name": "name", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "adapter.ts", - "line": 62, - "character": 77 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 126, - 127 - ] - } - ], - "sources": [ - { - "fileName": "adapter.ts", - "line": 62, - "character": 60 - } - ] - } + "type": "reference", + "name": "ChannelInfo" } } ], @@ -4475,7 +4406,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 62, + "line": 61, "character": 28 } ] @@ -4500,7 +4431,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 30, + "line": 29, "character": 38 } ], @@ -4524,7 +4455,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 32, + "line": 31, "character": 24 } ], @@ -4559,102 +4490,33 @@ "comment": { "shortText": "Get the list of channels in a MS Teams team.\nCan only be called with a TurnContext that originated in a team conversation - 1:1 conversations happen _outside a team_ and thus do not contain the required information to call this API.", "returns": "an array of channels in the format [{name: string, id: string}]\n" - }, - "parameters": [ - { - "id": 124, - "name": "context", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A TurnContext object representing a message or event from a user in Teams" - }, - "type": { - "type": "reference", - "name": "TurnContext" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reflection", - "declaration": { - "id": 125, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 126, - "name": "id", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "adapter.ts", - "line": 62, - "character": 63 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 127, - "name": "name", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "adapter.ts", - "line": 62, - "character": 77 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 126, - 127 - ] - } - ], - "sources": [ - { - "fileName": "adapter.ts", - "line": 62, - "character": 60 - } - ] - } + }, + "parameters": [ + { + "id": 124, + "name": "context", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A TurnContext object representing a message or event from a user in Teams" + }, + "type": { + "type": "reference", + "name": "TurnContext" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "ChannelInfo" } } ], @@ -4665,7 +4527,7 @@ "sources": [ { "fileName": "adapter.ts", - "line": 62, + "line": 61, "character": 28 } ] @@ -4716,7 +4578,7 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } }, @@ -4819,7 +4681,7 @@ "comment": {}, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } }, @@ -4961,7 +4823,7 @@ "comment": {}, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } }, @@ -5034,7 +4896,7 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } }, @@ -5131,7 +4993,7 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } }, @@ -5194,7 +5056,7 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } @@ -5441,7 +5303,7 @@ "typeArguments": [ { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } ], @@ -5899,7 +5761,7 @@ "typeArguments": [ { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } ], @@ -5925,7 +5787,7 @@ "typeArguments": [ { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } ], @@ -6003,7 +5865,7 @@ "typeArguments": [ { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } ], @@ -6170,7 +6032,7 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } @@ -6419,7 +6281,7 @@ "typeArguments": [ { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } ], @@ -6877,7 +6739,7 @@ "typeArguments": [ { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } ], @@ -6903,7 +6765,7 @@ "typeArguments": [ { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } ], @@ -6981,7 +6843,7 @@ "typeArguments": [ { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } ], @@ -7110,7 +6972,7 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } }, @@ -7149,7 +7011,7 @@ ] }, { - "id": 382, + "id": 379, "name": "BotkitConversation", "kind": 128, "kindString": "Class", @@ -7163,7 +7025,7 @@ }, "typeParameter": [ { - "id": 383, + "id": 380, "name": "O", "kind": 131072, "kindString": "Type parameter", @@ -7178,7 +7040,7 @@ ], "children": [ { - "id": 385, + "id": 382, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -7192,7 +7054,7 @@ }, "signatures": [ { - "id": 386, + "id": 383, "name": "new BotkitConversation", "kind": 16384, "kindString": "Constructor signature", @@ -7204,7 +7066,7 @@ }, "parameters": [ { - "id": 387, + "id": 384, "name": "dialogId", "kind": 32768, "kindString": "Parameter", @@ -7220,7 +7082,7 @@ } }, { - "id": 388, + "id": 385, "name": "controller", "kind": 32768, "kindString": "Parameter", @@ -7232,14 +7094,14 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -7253,7 +7115,7 @@ ] }, { - "id": 384, + "id": 381, "name": "script", "kind": 1024, "kindString": "Property", @@ -7278,7 +7140,7 @@ } }, { - "id": 392, + "id": 389, "name": "addAction", "kind": 2048, "kindString": "Method", @@ -7289,7 +7151,7 @@ }, "signatures": [ { - "id": 393, + "id": 390, "name": "addAction", "kind": 4096, "kindString": "Call signature", @@ -7302,7 +7164,7 @@ }, "parameters": [ { - "id": 394, + "id": 391, "name": "action", "kind": 32768, "kindString": "Parameter", @@ -7318,7 +7180,7 @@ } }, { - "id": 395, + "id": 392, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7337,7 +7199,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -7351,7 +7213,7 @@ ] }, { - "id": 396, + "id": 393, "name": "addChildDialog", "kind": 2048, "kindString": "Method", @@ -7362,7 +7224,7 @@ }, "signatures": [ { - "id": 397, + "id": 394, "name": "addChildDialog", "kind": 4096, "kindString": "Call signature", @@ -7375,7 +7237,7 @@ }, "parameters": [ { - "id": 398, + "id": 395, "name": "dialog_id", "kind": 32768, "kindString": "Parameter", @@ -7391,7 +7253,7 @@ } }, { - "id": 399, + "id": 396, "name": "key_name", "kind": 32768, "kindString": "Parameter", @@ -7408,7 +7270,7 @@ } }, { - "id": 400, + "id": 397, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7427,7 +7289,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -7441,7 +7303,7 @@ ] }, { - "id": 401, + "id": 398, "name": "addGotoDialog", "kind": 2048, "kindString": "Method", @@ -7452,7 +7314,7 @@ }, "signatures": [ { - "id": 402, + "id": 399, "name": "addGotoDialog", "kind": 4096, "kindString": "Call signature", @@ -7465,7 +7327,7 @@ }, "parameters": [ { - "id": 403, + "id": 400, "name": "dialog_id", "kind": 32768, "kindString": "Parameter", @@ -7481,7 +7343,7 @@ } }, { - "id": 404, + "id": 401, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7500,7 +7362,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -7514,7 +7376,7 @@ ] }, { - "id": 405, + "id": 402, "name": "addMessage", "kind": 2048, "kindString": "Method", @@ -7525,7 +7387,7 @@ }, "signatures": [ { - "id": 406, + "id": 403, "name": "addMessage", "kind": 4096, "kindString": "Call signature", @@ -7538,7 +7400,7 @@ }, "parameters": [ { - "id": 407, + "id": 404, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -7556,7 +7418,7 @@ "typeArguments": [ { "type": "reference", - "id": 332, + "id": 329, "name": "BotkitMessageTemplate" } ], @@ -7570,7 +7432,7 @@ } }, { - "id": 408, + "id": 405, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7588,7 +7450,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -7602,7 +7464,7 @@ ] }, { - "id": 416, + "id": 413, "name": "addQuestion", "kind": 2048, "kindString": "Method", @@ -7613,7 +7475,7 @@ }, "signatures": [ { - "id": 417, + "id": 414, "name": "addQuestion", "kind": 4096, "kindString": "Call signature", @@ -7626,7 +7488,7 @@ }, "parameters": [ { - "id": 418, + "id": 415, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -7644,7 +7506,7 @@ "typeArguments": [ { "type": "reference", - "id": 332, + "id": 329, "name": "BotkitMessageTemplate" } ], @@ -7658,7 +7520,7 @@ } }, { - "id": 419, + "id": 416, "name": "handlers", "kind": 32768, "kindString": "Parameter", @@ -7673,14 +7535,14 @@ "types": [ { "type": "reference", - "id": 321, + "id": 318, "name": "BotkitConvoHandler" }, { "type": "array", "elementType": { "type": "reference", - "id": 327, + "id": 324, "name": "BotkitConvoTrigger" } } @@ -7688,7 +7550,7 @@ } }, { - "id": 420, + "id": 417, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7704,7 +7566,7 @@ { "type": "reflection", "declaration": { - "id": 421, + "id": 418, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7713,7 +7575,7 @@ }, "children": [ { - "id": 422, + "id": 419, "name": "key", "kind": 32, "kindString": "Variable", @@ -7739,7 +7601,7 @@ "title": "Variables", "kind": 32, "children": [ - 422 + 419 ] } ], @@ -7764,7 +7626,7 @@ } }, { - "id": 423, + "id": 420, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -7782,7 +7644,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -7796,7 +7658,7 @@ ] }, { - "id": 432, + "id": 429, "name": "after", "kind": 2048, "kindString": "Method", @@ -7807,7 +7669,7 @@ }, "signatures": [ { - "id": 433, + "id": 430, "name": "after", "kind": 4096, "kindString": "Call signature", @@ -7820,7 +7682,7 @@ }, "parameters": [ { - "id": 434, + "id": 431, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -7833,7 +7695,7 @@ "type": { "type": "reflection", "declaration": { - "id": 435, + "id": 432, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7842,7 +7704,7 @@ }, "signatures": [ { - "id": 436, + "id": 433, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -7851,7 +7713,7 @@ }, "parameters": [ { - "id": 437, + "id": 434, "name": "results", "kind": 32768, "kindString": "Parameter", @@ -7864,7 +7726,7 @@ } }, { - "id": 438, + "id": 435, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -7910,7 +7772,7 @@ ] }, { - "id": 409, + "id": 406, "name": "ask", "kind": 2048, "kindString": "Method", @@ -7921,7 +7783,7 @@ }, "signatures": [ { - "id": 410, + "id": 407, "name": "ask", "kind": 4096, "kindString": "Call signature", @@ -7934,7 +7796,7 @@ }, "parameters": [ { - "id": 411, + "id": 408, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -7952,7 +7814,7 @@ "typeArguments": [ { "type": "reference", - "id": 332, + "id": 329, "name": "BotkitMessageTemplate" } ], @@ -7966,7 +7828,7 @@ } }, { - "id": 412, + "id": 409, "name": "handlers", "kind": 32768, "kindString": "Parameter", @@ -7981,14 +7843,14 @@ "types": [ { "type": "reference", - "id": 321, + "id": 318, "name": "BotkitConvoHandler" }, { "type": "array", "elementType": { "type": "reference", - "id": 327, + "id": 324, "name": "BotkitConvoTrigger" } } @@ -7996,7 +7858,7 @@ } }, { - "id": 413, + "id": 410, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -8012,7 +7874,7 @@ { "type": "reflection", "declaration": { - "id": 414, + "id": 411, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8021,7 +7883,7 @@ }, "children": [ { - "id": 415, + "id": 412, "name": "key", "kind": 32, "kindString": "Variable", @@ -8047,7 +7909,7 @@ "title": "Variables", "kind": 32, "children": [ - 415 + 412 ] } ], @@ -8074,7 +7936,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -8088,7 +7950,7 @@ ] }, { - "id": 424, + "id": 421, "name": "before", "kind": 2048, "kindString": "Method", @@ -8099,7 +7961,7 @@ }, "signatures": [ { - "id": 425, + "id": 422, "name": "before", "kind": 4096, "kindString": "Call signature", @@ -8112,7 +7974,7 @@ }, "parameters": [ { - "id": 426, + "id": 423, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8128,7 +7990,7 @@ } }, { - "id": 427, + "id": 424, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -8141,7 +8003,7 @@ "type": { "type": "reflection", "declaration": { - "id": 428, + "id": 425, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8150,7 +8012,7 @@ }, "signatures": [ { - "id": 429, + "id": 426, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -8159,7 +8021,7 @@ }, "parameters": [ { - "id": 430, + "id": 427, "name": "convo", "kind": 32768, "kindString": "Parameter", @@ -8168,12 +8030,12 @@ }, "type": { "type": "reference", - "id": 300, + "id": 297, "name": "BotkitDialogWrapper" } }, { - "id": 431, + "id": 428, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -8225,7 +8087,7 @@ ] }, { - "id": 439, + "id": 436, "name": "onChange", "kind": 2048, "kindString": "Method", @@ -8236,7 +8098,7 @@ }, "signatures": [ { - "id": 440, + "id": 437, "name": "onChange", "kind": 4096, "kindString": "Call signature", @@ -8249,7 +8111,7 @@ }, "parameters": [ { - "id": 441, + "id": 438, "name": "variable", "kind": 32768, "kindString": "Parameter", @@ -8265,7 +8127,7 @@ } }, { - "id": 442, + "id": 439, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -8278,7 +8140,7 @@ "type": { "type": "reflection", "declaration": { - "id": 443, + "id": 440, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8287,7 +8149,7 @@ }, "signatures": [ { - "id": 444, + "id": 441, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -8296,7 +8158,7 @@ }, "parameters": [ { - "id": 445, + "id": 442, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -8309,7 +8171,7 @@ } }, { - "id": 446, + "id": 443, "name": "convo", "kind": 32768, "kindString": "Parameter", @@ -8322,7 +8184,7 @@ } }, { - "id": 447, + "id": 444, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -8373,7 +8235,7 @@ ] }, { - "id": 389, + "id": 386, "name": "say", "kind": 2048, "kindString": "Method", @@ -8384,7 +8246,7 @@ }, "signatures": [ { - "id": 390, + "id": 387, "name": "say", "kind": 4096, "kindString": "Call signature", @@ -8397,7 +8259,7 @@ }, "parameters": [ { - "id": 391, + "id": 388, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -8415,7 +8277,7 @@ "typeArguments": [ { "type": "reference", - "id": 332, + "id": 329, "name": "BotkitMessageTemplate" } ], @@ -8431,7 +8293,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -8450,30 +8312,30 @@ "title": "Constructors", "kind": 512, "children": [ - 385 + 382 ] }, { "title": "Properties", "kind": 1024, "children": [ - 384 + 381 ] }, { "title": "Methods", "kind": 2048, "children": [ - 392, - 396, - 401, - 405, - 416, - 432, - 409, - 424, - 439, - 389 + 389, + 393, + 398, + 402, + 413, + 429, + 406, + 421, + 436, + 386 ] } ], @@ -8492,7 +8354,7 @@ ], "props": [ { - "id": 384, + "id": 381, "name": "script", "kind": 1024, "kindString": "Property", @@ -8519,7 +8381,7 @@ ], "methods": [ { - "id": 392, + "id": 389, "name": "addAction", "kind": 2048, "kindString": "Method", @@ -8530,7 +8392,7 @@ }, "signatures": [ { - "id": 393, + "id": 390, "name": "addAction", "kind": 4096, "kindString": "Call signature", @@ -8543,7 +8405,7 @@ }, "parameters": [ { - "id": 394, + "id": 391, "name": "action", "kind": 32768, "kindString": "Parameter", @@ -8559,7 +8421,7 @@ } }, { - "id": 395, + "id": 392, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8578,7 +8440,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -8592,7 +8454,7 @@ ] }, { - "id": 396, + "id": 393, "name": "addChildDialog", "kind": 2048, "kindString": "Method", @@ -8603,7 +8465,7 @@ }, "signatures": [ { - "id": 397, + "id": 394, "name": "addChildDialog", "kind": 4096, "kindString": "Call signature", @@ -8616,7 +8478,7 @@ }, "parameters": [ { - "id": 398, + "id": 395, "name": "dialog_id", "kind": 32768, "kindString": "Parameter", @@ -8632,7 +8494,7 @@ } }, { - "id": 399, + "id": 396, "name": "key_name", "kind": 32768, "kindString": "Parameter", @@ -8649,7 +8511,7 @@ } }, { - "id": 400, + "id": 397, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8668,7 +8530,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -8682,7 +8544,7 @@ ] }, { - "id": 401, + "id": 398, "name": "addGotoDialog", "kind": 2048, "kindString": "Method", @@ -8693,7 +8555,7 @@ }, "signatures": [ { - "id": 402, + "id": 399, "name": "addGotoDialog", "kind": 4096, "kindString": "Call signature", @@ -8706,7 +8568,7 @@ }, "parameters": [ { - "id": 403, + "id": 400, "name": "dialog_id", "kind": 32768, "kindString": "Parameter", @@ -8722,7 +8584,7 @@ } }, { - "id": 404, + "id": 401, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8741,7 +8603,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -8755,7 +8617,7 @@ ] }, { - "id": 405, + "id": 402, "name": "addMessage", "kind": 2048, "kindString": "Method", @@ -8766,7 +8628,7 @@ }, "signatures": [ { - "id": 406, + "id": 403, "name": "addMessage", "kind": 4096, "kindString": "Call signature", @@ -8779,7 +8641,7 @@ }, "parameters": [ { - "id": 407, + "id": 404, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -8797,7 +8659,7 @@ "typeArguments": [ { "type": "reference", - "id": 332, + "id": 329, "name": "BotkitMessageTemplate" } ], @@ -8811,7 +8673,7 @@ } }, { - "id": 408, + "id": 405, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -8829,7 +8691,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -8843,7 +8705,7 @@ ] }, { - "id": 416, + "id": 413, "name": "addQuestion", "kind": 2048, "kindString": "Method", @@ -8854,7 +8716,7 @@ }, "signatures": [ { - "id": 417, + "id": 414, "name": "addQuestion", "kind": 4096, "kindString": "Call signature", @@ -8867,7 +8729,7 @@ }, "parameters": [ { - "id": 418, + "id": 415, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -8885,7 +8747,7 @@ "typeArguments": [ { "type": "reference", - "id": 332, + "id": 329, "name": "BotkitMessageTemplate" } ], @@ -8899,7 +8761,7 @@ } }, { - "id": 419, + "id": 416, "name": "handlers", "kind": 32768, "kindString": "Parameter", @@ -8914,14 +8776,14 @@ "types": [ { "type": "reference", - "id": 321, + "id": 318, "name": "BotkitConvoHandler" }, { "type": "array", "elementType": { "type": "reference", - "id": 327, + "id": 324, "name": "BotkitConvoTrigger" } } @@ -8929,7 +8791,7 @@ } }, { - "id": 420, + "id": 417, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -8945,7 +8807,7 @@ { "type": "reflection", "declaration": { - "id": 421, + "id": 418, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8954,7 +8816,7 @@ }, "children": [ { - "id": 422, + "id": 419, "name": "key", "kind": 32, "kindString": "Variable", @@ -8980,7 +8842,7 @@ "title": "Variables", "kind": 32, "children": [ - 422 + 419 ] } ], @@ -9005,7 +8867,7 @@ } }, { - "id": 423, + "id": 420, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -9023,7 +8885,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -9037,7 +8899,7 @@ ] }, { - "id": 432, + "id": 429, "name": "after", "kind": 2048, "kindString": "Method", @@ -9048,7 +8910,7 @@ }, "signatures": [ { - "id": 433, + "id": 430, "name": "after", "kind": 4096, "kindString": "Call signature", @@ -9061,7 +8923,7 @@ }, "parameters": [ { - "id": 434, + "id": 431, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -9074,7 +8936,7 @@ "type": { "type": "reflection", "declaration": { - "id": 435, + "id": 432, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9083,7 +8945,7 @@ }, "signatures": [ { - "id": 436, + "id": 433, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -9092,7 +8954,7 @@ }, "parameters": [ { - "id": 437, + "id": 434, "name": "results", "kind": 32768, "kindString": "Parameter", @@ -9105,7 +8967,7 @@ } }, { - "id": 438, + "id": 435, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -9151,7 +9013,7 @@ ] }, { - "id": 409, + "id": 406, "name": "ask", "kind": 2048, "kindString": "Method", @@ -9162,7 +9024,7 @@ }, "signatures": [ { - "id": 410, + "id": 407, "name": "ask", "kind": 4096, "kindString": "Call signature", @@ -9175,7 +9037,7 @@ }, "parameters": [ { - "id": 411, + "id": 408, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -9193,7 +9055,7 @@ "typeArguments": [ { "type": "reference", - "id": 332, + "id": 329, "name": "BotkitMessageTemplate" } ], @@ -9207,7 +9069,7 @@ } }, { - "id": 412, + "id": 409, "name": "handlers", "kind": 32768, "kindString": "Parameter", @@ -9222,14 +9084,14 @@ "types": [ { "type": "reference", - "id": 321, + "id": 318, "name": "BotkitConvoHandler" }, { "type": "array", "elementType": { "type": "reference", - "id": 327, + "id": 324, "name": "BotkitConvoTrigger" } } @@ -9237,7 +9099,7 @@ } }, { - "id": 413, + "id": 410, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -9253,7 +9115,7 @@ { "type": "reflection", "declaration": { - "id": 414, + "id": 411, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9262,7 +9124,7 @@ }, "children": [ { - "id": 415, + "id": 412, "name": "key", "kind": 32, "kindString": "Variable", @@ -9288,7 +9150,7 @@ "title": "Variables", "kind": 32, "children": [ - 415 + 412 ] } ], @@ -9315,7 +9177,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -9329,7 +9191,7 @@ ] }, { - "id": 424, + "id": 421, "name": "before", "kind": 2048, "kindString": "Method", @@ -9340,7 +9202,7 @@ }, "signatures": [ { - "id": 425, + "id": 422, "name": "before", "kind": 4096, "kindString": "Call signature", @@ -9353,7 +9215,7 @@ }, "parameters": [ { - "id": 426, + "id": 423, "name": "thread_name", "kind": 32768, "kindString": "Parameter", @@ -9369,7 +9231,7 @@ } }, { - "id": 427, + "id": 424, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -9382,7 +9244,7 @@ "type": { "type": "reflection", "declaration": { - "id": 428, + "id": 425, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9391,7 +9253,7 @@ }, "signatures": [ { - "id": 429, + "id": 426, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -9400,7 +9262,7 @@ }, "parameters": [ { - "id": 430, + "id": 427, "name": "convo", "kind": 32768, "kindString": "Parameter", @@ -9409,12 +9271,12 @@ }, "type": { "type": "reference", - "id": 300, + "id": 297, "name": "BotkitDialogWrapper" } }, { - "id": 431, + "id": 428, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -9466,7 +9328,7 @@ ] }, { - "id": 439, + "id": 436, "name": "onChange", "kind": 2048, "kindString": "Method", @@ -9477,7 +9339,7 @@ }, "signatures": [ { - "id": 440, + "id": 437, "name": "onChange", "kind": 4096, "kindString": "Call signature", @@ -9490,7 +9352,7 @@ }, "parameters": [ { - "id": 441, + "id": 438, "name": "variable", "kind": 32768, "kindString": "Parameter", @@ -9506,7 +9368,7 @@ } }, { - "id": 442, + "id": 439, "name": "handler", "kind": 32768, "kindString": "Parameter", @@ -9519,7 +9381,7 @@ "type": { "type": "reflection", "declaration": { - "id": 443, + "id": 440, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9528,7 +9390,7 @@ }, "signatures": [ { - "id": 444, + "id": 441, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -9537,7 +9399,7 @@ }, "parameters": [ { - "id": 445, + "id": 442, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -9550,7 +9412,7 @@ } }, { - "id": 446, + "id": 443, "name": "convo", "kind": 32768, "kindString": "Parameter", @@ -9563,7 +9425,7 @@ } }, { - "id": 447, + "id": 444, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -9614,7 +9476,7 @@ ] }, { - "id": 389, + "id": 386, "name": "say", "kind": 2048, "kindString": "Method", @@ -9625,7 +9487,7 @@ }, "signatures": [ { - "id": 390, + "id": 387, "name": "say", "kind": 4096, "kindString": "Call signature", @@ -9638,7 +9500,7 @@ }, "parameters": [ { - "id": 391, + "id": 388, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -9656,7 +9518,7 @@ "typeArguments": [ { "type": "reference", - "id": 332, + "id": 329, "name": "BotkitMessageTemplate" } ], @@ -9672,7 +9534,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -9688,7 +9550,7 @@ ], "constructors": [ { - "id": 385, + "id": 382, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -9702,7 +9564,7 @@ }, "signatures": [ { - "id": 386, + "id": 383, "name": "new BotkitConversation", "kind": 16384, "kindString": "Constructor signature", @@ -9714,7 +9576,7 @@ }, "parameters": [ { - "id": 387, + "id": 384, "name": "dialogId", "kind": 32768, "kindString": "Parameter", @@ -9730,7 +9592,7 @@ } }, { - "id": 388, + "id": 385, "name": "controller", "kind": 32768, "kindString": "Parameter", @@ -9742,14 +9604,14 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } ], "type": { "type": "reference", - "id": 382, + "id": 379, "name": "BotkitConversation" } } @@ -9765,7 +9627,7 @@ ] }, { - "id": 300, + "id": 297, "name": "BotkitDialogWrapper", "kind": 128, "kindString": "Class", @@ -9778,7 +9640,7 @@ }, "children": [ { - "id": 305, + "id": 302, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -9789,7 +9651,7 @@ }, "signatures": [ { - "id": 306, + "id": 303, "name": "new BotkitDialogWrapper", "kind": 16384, "kindString": "Constructor signature", @@ -9798,7 +9660,7 @@ }, "parameters": [ { - "id": 307, + "id": 304, "name": "dc", "kind": 32768, "kindString": "Parameter", @@ -9811,7 +9673,7 @@ } }, { - "id": 308, + "id": 305, "name": "step", "kind": 32768, "kindString": "Parameter", @@ -9820,14 +9682,14 @@ }, "type": { "type": "reference", - "id": 369, + "id": 366, "name": "BotkitConversationStep" } } ], "type": { "type": "reference", - "id": 300, + "id": 297, "name": "BotkitDialogWrapper" } } @@ -9841,7 +9703,7 @@ ] }, { - "id": 301, + "id": 298, "name": "vars", "kind": 1024, "kindString": "Property", @@ -9863,7 +9725,7 @@ "type": { "type": "reflection", "declaration": { - "id": 302, + "id": 299, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9872,7 +9734,7 @@ }, "indexSignature": [ { - "id": 303, + "id": 300, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -9881,7 +9743,7 @@ }, "parameters": [ { - "id": 304, + "id": 301, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -9911,7 +9773,7 @@ } }, { - "id": 309, + "id": 306, "name": "gotoThread", "kind": 2048, "kindString": "Method", @@ -9922,7 +9784,7 @@ }, "signatures": [ { - "id": 310, + "id": 307, "name": "gotoThread", "kind": 4096, "kindString": "Call signature", @@ -9934,7 +9796,7 @@ }, "parameters": [ { - "id": 311, + "id": 308, "name": "thread", "kind": 32768, "kindString": "Parameter", @@ -9971,7 +9833,7 @@ ] }, { - "id": 312, + "id": 309, "name": "repeat", "kind": 2048, "kindString": "Method", @@ -9982,7 +9844,7 @@ }, "signatures": [ { - "id": 313, + "id": 310, "name": "repeat", "kind": 4096, "kindString": "Call signature", @@ -10013,7 +9875,7 @@ ] }, { - "id": 316, + "id": 313, "name": "setVar", "kind": 2048, "kindString": "Method", @@ -10024,7 +9886,7 @@ }, "signatures": [ { - "id": 317, + "id": 314, "name": "setVar", "kind": 4096, "kindString": "Call signature", @@ -10036,7 +9898,7 @@ }, "parameters": [ { - "id": 318, + "id": 315, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -10052,7 +9914,7 @@ } }, { - "id": 319, + "id": 316, "name": "val", "kind": 32768, "kindString": "Parameter", @@ -10083,7 +9945,7 @@ ] }, { - "id": 314, + "id": 311, "name": "stop", "kind": 2048, "kindString": "Method", @@ -10094,7 +9956,7 @@ }, "signatures": [ { - "id": 315, + "id": 312, "name": "stop", "kind": 4096, "kindString": "Call signature", @@ -10130,24 +9992,24 @@ "title": "Constructors", "kind": 512, "children": [ - 305 + 302 ] }, { "title": "Properties", "kind": 1024, "children": [ - 301 + 298 ] }, { "title": "Methods", "kind": 2048, "children": [ + 306, 309, - 312, - 316, - 314 + 313, + 311 ] } ], @@ -10160,7 +10022,7 @@ ], "props": [ { - "id": 301, + "id": 298, "name": "vars", "kind": 1024, "kindString": "Property", @@ -10182,7 +10044,7 @@ "type": { "type": "reflection", "declaration": { - "id": 302, + "id": 299, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10191,7 +10053,7 @@ }, "indexSignature": [ { - "id": 303, + "id": 300, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -10200,7 +10062,7 @@ }, "parameters": [ { - "id": 304, + "id": 301, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -10232,7 +10094,7 @@ ], "methods": [ { - "id": 309, + "id": 306, "name": "gotoThread", "kind": 2048, "kindString": "Method", @@ -10243,7 +10105,7 @@ }, "signatures": [ { - "id": 310, + "id": 307, "name": "gotoThread", "kind": 4096, "kindString": "Call signature", @@ -10255,7 +10117,7 @@ }, "parameters": [ { - "id": 311, + "id": 308, "name": "thread", "kind": 32768, "kindString": "Parameter", @@ -10292,7 +10154,7 @@ ] }, { - "id": 312, + "id": 309, "name": "repeat", "kind": 2048, "kindString": "Method", @@ -10303,7 +10165,7 @@ }, "signatures": [ { - "id": 313, + "id": 310, "name": "repeat", "kind": 4096, "kindString": "Call signature", @@ -10334,7 +10196,7 @@ ] }, { - "id": 316, + "id": 313, "name": "setVar", "kind": 2048, "kindString": "Method", @@ -10345,7 +10207,7 @@ }, "signatures": [ { - "id": 317, + "id": 314, "name": "setVar", "kind": 4096, "kindString": "Call signature", @@ -10357,7 +10219,7 @@ }, "parameters": [ { - "id": 318, + "id": 315, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -10373,7 +10235,7 @@ } }, { - "id": 319, + "id": 316, "name": "val", "kind": 32768, "kindString": "Parameter", @@ -10404,7 +10266,7 @@ ] }, { - "id": 314, + "id": 311, "name": "stop", "kind": 2048, "kindString": "Method", @@ -10415,7 +10277,7 @@ }, "signatures": [ { - "id": 315, + "id": 312, "name": "stop", "kind": 4096, "kindString": "Call signature", @@ -10448,7 +10310,7 @@ ], "constructors": [ { - "id": 305, + "id": 302, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10459,7 +10321,7 @@ }, "signatures": [ { - "id": 306, + "id": 303, "name": "new BotkitDialogWrapper", "kind": 16384, "kindString": "Constructor signature", @@ -10468,7 +10330,7 @@ }, "parameters": [ { - "id": 307, + "id": 304, "name": "dc", "kind": 32768, "kindString": "Parameter", @@ -10481,7 +10343,7 @@ } }, { - "id": 308, + "id": 305, "name": "step", "kind": 32768, "kindString": "Parameter", @@ -10490,14 +10352,14 @@ }, "type": { "type": "reference", - "id": 369, + "id": 366, "name": "BotkitConversationStep" } } ], "type": { "type": "reference", - "id": 300, + "id": 297, "name": "BotkitDialogWrapper" } } @@ -10513,7 +10375,7 @@ ] }, { - "id": 465, + "id": 462, "name": "BotkitTestClient", "kind": 128, "kindString": "Class", @@ -10526,7 +10388,7 @@ }, "children": [ { - "id": 468, + "id": 465, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10541,7 +10403,7 @@ }, "signatures": [ { - "id": 469, + "id": 466, "name": "new BotkitTestClient", "kind": 16384, "kindString": "Constructor signature", @@ -10554,7 +10416,7 @@ }, "parameters": [ { - "id": 470, + "id": 467, "name": "channelId", "kind": 32768, "kindString": "Parameter", @@ -10570,7 +10432,7 @@ } }, { - "id": 471, + "id": 468, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -10582,12 +10444,12 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } }, { - "id": 472, + "id": 469, "name": "dialogToTest", "kind": 32768, "kindString": "Parameter", @@ -10615,7 +10477,7 @@ } }, { - "id": 473, + "id": 470, "name": "initialDialogOptions", "kind": 32768, "kindString": "Parameter", @@ -10632,7 +10494,7 @@ } }, { - "id": 474, + "id": 471, "name": "middlewares", "kind": 32768, "kindString": "Parameter", @@ -10652,7 +10514,7 @@ } }, { - "id": 475, + "id": 472, "name": "conversationState", "kind": 32768, "kindString": "Parameter", @@ -10671,12 +10533,12 @@ ], "type": { "type": "reference", - "id": 465, + "id": 462, "name": "BotkitTestClient" } }, { - "id": 476, + "id": 473, "name": "new BotkitTestClient", "kind": 16384, "kindString": "Constructor signature", @@ -10689,7 +10551,7 @@ }, "parameters": [ { - "id": 477, + "id": 474, "name": "testAdapter", "kind": 32768, "kindString": "Parameter", @@ -10702,7 +10564,7 @@ } }, { - "id": 478, + "id": 475, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -10714,12 +10576,12 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } }, { - "id": 479, + "id": 476, "name": "dialogToTest", "kind": 32768, "kindString": "Parameter", @@ -10747,7 +10609,7 @@ } }, { - "id": 480, + "id": 477, "name": "initialDialogOptions", "kind": 32768, "kindString": "Parameter", @@ -10764,7 +10626,7 @@ } }, { - "id": 481, + "id": 478, "name": "middlewares", "kind": 32768, "kindString": "Parameter", @@ -10784,7 +10646,7 @@ } }, { - "id": 482, + "id": 479, "name": "conversationState", "kind": 32768, "kindString": "Parameter", @@ -10803,7 +10665,7 @@ ], "type": { "type": "reference", - "id": 465, + "id": 462, "name": "BotkitTestClient" } } @@ -10827,7 +10689,7 @@ ] }, { - "id": 467, + "id": 464, "name": "conversationState", "kind": 1024, "kindString": "Property", @@ -10849,7 +10711,7 @@ } }, { - "id": 466, + "id": 463, "name": "dialogTurnResult", "kind": 1024, "kindString": "Property", @@ -10871,7 +10733,7 @@ } }, { - "id": 486, + "id": 483, "name": "getNextReply", "kind": 2048, "kindString": "Method", @@ -10882,7 +10744,7 @@ }, "signatures": [ { - "id": 487, + "id": 484, "name": "getNextReply", "kind": 4096, "kindString": "Call signature", @@ -10913,7 +10775,7 @@ ] }, { - "id": 483, + "id": 480, "name": "sendActivity", "kind": 2048, "kindString": "Method", @@ -10924,7 +10786,7 @@ }, "signatures": [ { - "id": 484, + "id": 481, "name": "sendActivity", "kind": 4096, "kindString": "Call signature", @@ -10937,7 +10799,7 @@ }, "parameters": [ { - "id": 485, + "id": 482, "name": "activity", "kind": 32768, "kindString": "Parameter", @@ -10994,23 +10856,23 @@ "title": "Constructors", "kind": 512, "children": [ - 468 + 465 ] }, { "title": "Properties", "kind": 1024, "children": [ - 467, - 466 + 464, + 463 ] }, { "title": "Methods", "kind": 2048, "children": [ - 486, - 483 + 483, + 480 ] } ], @@ -11023,7 +10885,7 @@ ], "props": [ { - "id": 467, + "id": 464, "name": "conversationState", "kind": 1024, "kindString": "Property", @@ -11045,7 +10907,7 @@ } }, { - "id": 466, + "id": 463, "name": "dialogTurnResult", "kind": 1024, "kindString": "Property", @@ -11069,7 +10931,7 @@ ], "methods": [ { - "id": 486, + "id": 483, "name": "getNextReply", "kind": 2048, "kindString": "Method", @@ -11080,7 +10942,7 @@ }, "signatures": [ { - "id": 487, + "id": 484, "name": "getNextReply", "kind": 4096, "kindString": "Call signature", @@ -11111,7 +10973,7 @@ ] }, { - "id": 483, + "id": 480, "name": "sendActivity", "kind": 2048, "kindString": "Method", @@ -11122,7 +10984,7 @@ }, "signatures": [ { - "id": 484, + "id": 481, "name": "sendActivity", "kind": 4096, "kindString": "Call signature", @@ -11135,7 +10997,7 @@ }, "parameters": [ { - "id": 485, + "id": 482, "name": "activity", "kind": 32768, "kindString": "Parameter", @@ -11189,7 +11051,7 @@ ], "constructors": [ { - "id": 468, + "id": 465, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -11204,7 +11066,7 @@ }, "signatures": [ { - "id": 469, + "id": 466, "name": "new BotkitTestClient", "kind": 16384, "kindString": "Constructor signature", @@ -11217,7 +11079,7 @@ }, "parameters": [ { - "id": 470, + "id": 467, "name": "channelId", "kind": 32768, "kindString": "Parameter", @@ -11233,7 +11095,7 @@ } }, { - "id": 471, + "id": 468, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -11245,12 +11107,12 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } }, { - "id": 472, + "id": 469, "name": "dialogToTest", "kind": 32768, "kindString": "Parameter", @@ -11278,7 +11140,7 @@ } }, { - "id": 473, + "id": 470, "name": "initialDialogOptions", "kind": 32768, "kindString": "Parameter", @@ -11295,7 +11157,7 @@ } }, { - "id": 474, + "id": 471, "name": "middlewares", "kind": 32768, "kindString": "Parameter", @@ -11315,7 +11177,7 @@ } }, { - "id": 475, + "id": 472, "name": "conversationState", "kind": 32768, "kindString": "Parameter", @@ -11334,12 +11196,12 @@ ], "type": { "type": "reference", - "id": 465, + "id": 462, "name": "BotkitTestClient" } }, { - "id": 476, + "id": 473, "name": "new BotkitTestClient", "kind": 16384, "kindString": "Constructor signature", @@ -11352,7 +11214,7 @@ }, "parameters": [ { - "id": 477, + "id": 474, "name": "testAdapter", "kind": 32768, "kindString": "Parameter", @@ -11365,7 +11227,7 @@ } }, { - "id": 478, + "id": 475, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -11377,12 +11239,12 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } }, { - "id": 479, + "id": 476, "name": "dialogToTest", "kind": 32768, "kindString": "Parameter", @@ -11410,7 +11272,7 @@ } }, { - "id": 480, + "id": 477, "name": "initialDialogOptions", "kind": 32768, "kindString": "Parameter", @@ -11427,7 +11289,7 @@ } }, { - "id": 481, + "id": 478, "name": "middlewares", "kind": 32768, "kindString": "Parameter", @@ -11447,7 +11309,7 @@ } }, { - "id": 482, + "id": 479, "name": "conversationState", "kind": 32768, "kindString": "Parameter", @@ -11466,7 +11328,7 @@ ], "type": { "type": "reference", - "id": 465, + "id": 462, "name": "BotkitTestClient" } } @@ -11756,7 +11618,7 @@ ], "interfaces": [ { - "id": 140, + "id": 137, "name": "BotkitConfiguration", "kind": 256, "kindString": "Interface", @@ -11769,7 +11631,7 @@ }, "children": [ { - "id": 143, + "id": 140, "name": "adapter", "kind": 1024, "kindString": "Property", @@ -11794,7 +11656,7 @@ } }, { - "id": 144, + "id": 141, "name": "adapterConfig", "kind": 1024, "kindString": "Property", @@ -11816,7 +11678,7 @@ "type": { "type": "reflection", "declaration": { - "id": 145, + "id": 142, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11825,7 +11687,7 @@ }, "indexSignature": [ { - "id": 146, + "id": 143, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -11834,7 +11696,7 @@ }, "parameters": [ { - "id": 147, + "id": 144, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -11864,7 +11726,7 @@ } }, { - "id": 142, + "id": 139, "name": "dialogStateProperty", "kind": 1024, "kindString": "Property", @@ -11889,7 +11751,7 @@ } }, { - "id": 152, + "id": 149, "name": "disable_console", "kind": 1024, "kindString": "Property", @@ -11914,7 +11776,7 @@ } }, { - "id": 151, + "id": 148, "name": "disable_webserver", "kind": 1024, "kindString": "Property", @@ -11939,7 +11801,7 @@ } }, { - "id": 153, + "id": 150, "name": "jsonLimit", "kind": 1024, "kindString": "Property", @@ -11964,7 +11826,7 @@ } }, { - "id": 150, + "id": 147, "name": "storage", "kind": 1024, "kindString": "Property", @@ -11989,7 +11851,7 @@ } }, { - "id": 154, + "id": 151, "name": "urlEncodedLimit", "kind": 1024, "kindString": "Property", @@ -12014,7 +11876,7 @@ } }, { - "id": 141, + "id": 138, "name": "webhook_uri", "kind": 1024, "kindString": "Property", @@ -12039,7 +11901,7 @@ } }, { - "id": 148, + "id": 145, "name": "webserver", "kind": 1024, "kindString": "Property", @@ -12064,7 +11926,7 @@ } }, { - "id": 149, + "id": 146, "name": "webserver_middlewares", "kind": 1024, "kindString": "Property", @@ -12097,17 +11959,17 @@ "title": "Properties", "kind": 1024, "children": [ - 143, - 144, - 142, - 152, - 151, - 153, - 150, - 154, + 140, 141, + 139, + 149, 148, - 149 + 150, + 147, + 151, + 138, + 145, + 146 ] } ], @@ -12120,7 +11982,7 @@ ], "props": [ { - "id": 143, + "id": 140, "name": "adapter", "kind": 1024, "kindString": "Property", @@ -12145,7 +12007,7 @@ } }, { - "id": 144, + "id": 141, "name": "adapterConfig", "kind": 1024, "kindString": "Property", @@ -12167,7 +12029,7 @@ "type": { "type": "reflection", "declaration": { - "id": 145, + "id": 142, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12176,7 +12038,7 @@ }, "indexSignature": [ { - "id": 146, + "id": 143, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -12185,7 +12047,7 @@ }, "parameters": [ { - "id": 147, + "id": 144, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -12215,7 +12077,7 @@ } }, { - "id": 142, + "id": 139, "name": "dialogStateProperty", "kind": 1024, "kindString": "Property", @@ -12240,7 +12102,7 @@ } }, { - "id": 152, + "id": 149, "name": "disable_console", "kind": 1024, "kindString": "Property", @@ -12265,7 +12127,7 @@ } }, { - "id": 151, + "id": 148, "name": "disable_webserver", "kind": 1024, "kindString": "Property", @@ -12290,7 +12152,7 @@ } }, { - "id": 153, + "id": 150, "name": "jsonLimit", "kind": 1024, "kindString": "Property", @@ -12315,7 +12177,7 @@ } }, { - "id": 150, + "id": 147, "name": "storage", "kind": 1024, "kindString": "Property", @@ -12340,7 +12202,7 @@ } }, { - "id": 154, + "id": 151, "name": "urlEncodedLimit", "kind": 1024, "kindString": "Property", @@ -12365,7 +12227,7 @@ } }, { - "id": 141, + "id": 138, "name": "webhook_uri", "kind": 1024, "kindString": "Property", @@ -12390,7 +12252,7 @@ } }, { - "id": 148, + "id": 145, "name": "webserver", "kind": 1024, "kindString": "Property", @@ -12415,7 +12277,7 @@ } }, { - "id": 149, + "id": 146, "name": "webserver_middlewares", "kind": 1024, "kindString": "Property", @@ -12445,7 +12307,7 @@ ] }, { - "id": 369, + "id": 366, "name": "BotkitConversationStep", "kind": 256, "kindString": "Interface", @@ -12455,7 +12317,7 @@ }, "children": [ { - "id": 370, + "id": 367, "name": "index", "kind": 1024, "kindString": "Property", @@ -12479,7 +12341,7 @@ } }, { - "id": 378, + "id": 375, "name": "next", "kind": 1024, "kindString": "Property", @@ -12500,7 +12362,7 @@ "type": { "type": "reflection", "declaration": { - "id": 379, + "id": 376, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12509,7 +12371,7 @@ }, "signatures": [ { - "id": 380, + "id": 377, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -12518,7 +12380,7 @@ }, "parameters": [ { - "id": 381, + "id": 378, "name": "stepResult", "kind": 32768, "kindString": "Parameter", @@ -12554,7 +12416,7 @@ } }, { - "id": 374, + "id": 371, "name": "options", "kind": 1024, "kindString": "Property", @@ -12578,7 +12440,7 @@ } }, { - "id": 375, + "id": 372, "name": "reason", "kind": 1024, "kindString": "Property", @@ -12602,7 +12464,7 @@ } }, { - "id": 376, + "id": 373, "name": "result", "kind": 1024, "kindString": "Property", @@ -12626,7 +12488,7 @@ } }, { - "id": 373, + "id": 370, "name": "state", "kind": 1024, "kindString": "Property", @@ -12650,7 +12512,7 @@ } }, { - "id": 371, + "id": 368, "name": "thread", "kind": 1024, "kindString": "Property", @@ -12674,7 +12536,7 @@ } }, { - "id": 372, + "id": 369, "name": "threadLength", "kind": 1024, "kindString": "Property", @@ -12698,7 +12560,7 @@ } }, { - "id": 377, + "id": 374, "name": "values", "kind": 1024, "kindString": "Property", @@ -12727,15 +12589,15 @@ "title": "Properties", "kind": 1024, "children": [ - 370, - 378, - 374, + 367, 375, - 376, - 373, 371, 372, - 377 + 373, + 370, + 368, + 369, + 374 ] } ], @@ -12748,7 +12610,7 @@ ], "props": [ { - "id": 370, + "id": 367, "name": "index", "kind": 1024, "kindString": "Property", @@ -12772,7 +12634,7 @@ } }, { - "id": 378, + "id": 375, "name": "next", "kind": 1024, "kindString": "Property", @@ -12793,7 +12655,7 @@ "type": { "type": "reflection", "declaration": { - "id": 379, + "id": 376, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12802,7 +12664,7 @@ }, "signatures": [ { - "id": 380, + "id": 377, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -12811,7 +12673,7 @@ }, "parameters": [ { - "id": 381, + "id": 378, "name": "stepResult", "kind": 32768, "kindString": "Parameter", @@ -12847,7 +12709,7 @@ } }, { - "id": 374, + "id": 371, "name": "options", "kind": 1024, "kindString": "Property", @@ -12871,7 +12733,7 @@ } }, { - "id": 375, + "id": 372, "name": "reason", "kind": 1024, "kindString": "Property", @@ -12895,7 +12757,7 @@ } }, { - "id": 376, + "id": 373, "name": "result", "kind": 1024, "kindString": "Property", @@ -12919,7 +12781,7 @@ } }, { - "id": 373, + "id": 370, "name": "state", "kind": 1024, "kindString": "Property", @@ -12943,7 +12805,7 @@ } }, { - "id": 371, + "id": 368, "name": "thread", "kind": 1024, "kindString": "Property", @@ -12967,7 +12829,7 @@ } }, { - "id": 372, + "id": 369, "name": "threadLength", "kind": 1024, "kindString": "Property", @@ -12991,7 +12853,7 @@ } }, { - "id": 377, + "id": 374, "name": "values", "kind": 1024, "kindString": "Property", @@ -13017,7 +12879,7 @@ ] }, { - "id": 321, + "id": 318, "name": "BotkitConvoHandler", "kind": 256, "kindString": "Interface", @@ -13029,7 +12891,7 @@ }, "signatures": [ { - "id": 322, + "id": 319, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -13039,7 +12901,7 @@ }, "parameters": [ { - "id": 323, + "id": 320, "name": "answer", "kind": 32768, "kindString": "Parameter", @@ -13050,19 +12912,19 @@ } }, { - "id": 324, + "id": 321, "name": "convo", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 300, + "id": 297, "name": "BotkitDialogWrapper" } }, { - "id": 325, + "id": 322, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -13074,14 +12936,14 @@ } }, { - "id": 326, + "id": 323, "name": "message", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -13107,7 +12969,7 @@ ] }, { - "id": 327, + "id": 324, "name": "BotkitConvoTrigger", "kind": 256, "kindString": "Interface", @@ -13119,7 +12981,7 @@ }, "children": [ { - "id": 331, + "id": 328, "name": "default", "kind": 1024, "kindString": "Property", @@ -13140,7 +13002,7 @@ } }, { - "id": 330, + "id": 327, "name": "handler", "kind": 1024, "kindString": "Property", @@ -13156,12 +13018,12 @@ ], "type": { "type": "reference", - "id": 321, + "id": 318, "name": "BotkitConvoHandler" } }, { - "id": 329, + "id": 326, "name": "pattern", "kind": 1024, "kindString": "Property", @@ -13191,7 +13053,7 @@ } }, { - "id": 328, + "id": 325, "name": "type", "kind": 1024, "kindString": "Property", @@ -13217,10 +13079,10 @@ "title": "Properties", "kind": 1024, "children": [ - 331, - 330, - 329, - 328 + 328, + 327, + 326, + 325 ] } ], @@ -13233,7 +13095,7 @@ ], "props": [ { - "id": 331, + "id": 328, "name": "default", "kind": 1024, "kindString": "Property", @@ -13254,7 +13116,7 @@ } }, { - "id": 330, + "id": 327, "name": "handler", "kind": 1024, "kindString": "Property", @@ -13270,12 +13132,12 @@ ], "type": { "type": "reference", - "id": 321, + "id": 318, "name": "BotkitConvoHandler" } }, { - "id": 329, + "id": 326, "name": "pattern", "kind": 1024, "kindString": "Property", @@ -13305,7 +13167,7 @@ } }, { - "id": 328, + "id": 325, "name": "type", "kind": 1024, "kindString": "Property", @@ -13328,7 +13190,7 @@ ] }, { - "id": 165, + "id": 162, "name": "BotkitHandler", "kind": 256, "kindString": "Interface", @@ -13342,7 +13204,7 @@ }, "signatures": [ { - "id": 166, + "id": 163, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -13355,7 +13217,7 @@ }, "parameters": [ { - "id": 167, + "id": 164, "name": "bot", "kind": 32768, "kindString": "Parameter", @@ -13369,7 +13231,7 @@ } }, { - "id": 168, + "id": 165, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -13378,7 +13240,7 @@ }, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -13404,7 +13266,7 @@ ] }, { - "id": 155, + "id": 152, "name": "BotkitMessage", "kind": 256, "kindString": "Interface", @@ -13417,7 +13279,7 @@ }, "indexSignature": [ { - "id": 163, + "id": 160, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -13429,7 +13291,7 @@ }, "parameters": [ { - "id": 164, + "id": 161, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -13450,7 +13312,7 @@ ], "children": [ { - "id": 160, + "id": 157, "name": "channel", "kind": 1024, "kindString": "Property", @@ -13474,7 +13336,7 @@ } }, { - "id": 162, + "id": 159, "name": "incoming_message", "kind": 1024, "kindString": "Property", @@ -13498,7 +13360,7 @@ } }, { - "id": 161, + "id": 158, "name": "reference", "kind": 1024, "kindString": "Property", @@ -13522,7 +13384,7 @@ } }, { - "id": 157, + "id": 154, "name": "text", "kind": 1024, "kindString": "Property", @@ -13547,7 +13409,7 @@ } }, { - "id": 156, + "id": 153, "name": "type", "kind": 1024, "kindString": "Property", @@ -13571,7 +13433,7 @@ } }, { - "id": 159, + "id": 156, "name": "user", "kind": 1024, "kindString": "Property", @@ -13595,7 +13457,7 @@ } }, { - "id": 158, + "id": 155, "name": "value", "kind": 1024, "kindString": "Property", @@ -13625,13 +13487,13 @@ "title": "Properties", "kind": 1024, "children": [ - 160, - 162, - 161, 157, - 156, 159, - 158 + 158, + 154, + 153, + 156, + 155 ] } ], @@ -13644,7 +13506,7 @@ ], "props": [ { - "id": 160, + "id": 157, "name": "channel", "kind": 1024, "kindString": "Property", @@ -13668,7 +13530,7 @@ } }, { - "id": 162, + "id": 159, "name": "incoming_message", "kind": 1024, "kindString": "Property", @@ -13692,7 +13554,7 @@ } }, { - "id": 161, + "id": 158, "name": "reference", "kind": 1024, "kindString": "Property", @@ -13716,7 +13578,7 @@ } }, { - "id": 157, + "id": 154, "name": "text", "kind": 1024, "kindString": "Property", @@ -13741,7 +13603,7 @@ } }, { - "id": 156, + "id": 153, "name": "type", "kind": 1024, "kindString": "Property", @@ -13765,7 +13627,7 @@ } }, { - "id": 159, + "id": 156, "name": "user", "kind": 1024, "kindString": "Property", @@ -13789,7 +13651,7 @@ } }, { - "id": 158, + "id": 155, "name": "value", "kind": 1024, "kindString": "Property", @@ -13816,7 +13678,7 @@ ] }, { - "id": 332, + "id": 329, "name": "BotkitMessageTemplate", "kind": 256, "kindString": "Interface", @@ -13828,7 +13690,7 @@ }, "children": [ { - "id": 338, + "id": 335, "name": "action", "kind": 1024, "kindString": "Property", @@ -13849,7 +13711,7 @@ } }, { - "id": 358, + "id": 355, "name": "attachment", "kind": 1024, "kindString": "Property", @@ -13870,21 +13732,21 @@ { "type": "reflection", "declaration": { - "id": 359, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 360, + "id": 357, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 361, + "id": 358, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -13895,7 +13757,7 @@ } }, { - "id": 362, + "id": 359, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -13929,7 +13791,7 @@ } }, { - "id": 363, + "id": 360, "name": "attachmentLayout", "kind": 1024, "kindString": "Property", @@ -13950,7 +13812,7 @@ } }, { - "id": 348, + "id": 345, "name": "attachments", "kind": 1024, "kindString": "Property", @@ -13971,21 +13833,21 @@ { "type": "reflection", "declaration": { - "id": 349, + "id": 346, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 350, + "id": 347, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 351, + "id": 348, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -13996,7 +13858,7 @@ } }, { - "id": 352, + "id": 349, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14036,7 +13898,7 @@ } }, { - "id": 353, + "id": 350, "name": "blocks", "kind": 1024, "kindString": "Property", @@ -14057,21 +13919,21 @@ { "type": "reflection", "declaration": { - "id": 354, + "id": 351, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 355, + "id": 352, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 356, + "id": 353, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -14082,7 +13944,7 @@ } }, { - "id": 357, + "id": 354, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14122,7 +13984,7 @@ } }, { - "id": 364, + "id": 361, "name": "channelData", "kind": 1024, "kindString": "Property", @@ -14143,7 +14005,7 @@ } }, { - "id": 365, + "id": 362, "name": "collect", "kind": 1024, "kindString": "Property", @@ -14160,14 +14022,14 @@ "type": { "type": "reflection", "declaration": { - "id": 366, + "id": 363, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 367, + "id": 364, "name": "key", "kind": 32, "kindString": "Variable", @@ -14188,7 +14050,7 @@ } }, { - "id": 368, + "id": 365, "name": "options", "kind": 32, "kindString": "Variable", @@ -14207,7 +14069,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 327, + "id": 324, "name": "BotkitConvoTrigger" } } @@ -14218,8 +14080,8 @@ "title": "Variables", "kind": 32, "children": [ - 367, - 368 + 364, + 365 ] } ], @@ -14234,7 +14096,7 @@ } }, { - "id": 339, + "id": 336, "name": "execute", "kind": 1024, "kindString": "Property", @@ -14252,14 +14114,14 @@ "type": { "type": "reflection", "declaration": { - "id": 340, + "id": 337, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 341, + "id": 338, "name": "script", "kind": 32, "kindString": "Variable", @@ -14279,7 +14141,7 @@ } }, { - "id": 342, + "id": 339, "name": "thread", "kind": 32, "kindString": "Variable", @@ -14305,8 +14167,8 @@ "title": "Variables", "kind": 32, "children": [ - 341, - 342 + 338, + 339 ] } ], @@ -14321,7 +14183,7 @@ } }, { - "id": 343, + "id": 340, "name": "quick_replies", "kind": 1024, "kindString": "Property", @@ -14342,21 +14204,21 @@ { "type": "reflection", "declaration": { - "id": 344, + "id": 341, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 345, + "id": 342, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 346, + "id": 343, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -14367,7 +14229,7 @@ } }, { - "id": 347, + "id": 344, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14407,7 +14269,7 @@ } }, { - "id": 333, + "id": 330, "name": "text", "kind": 1024, "kindString": "Property", @@ -14427,21 +14289,21 @@ { "type": "reflection", "declaration": { - "id": 334, + "id": 331, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 335, + "id": 332, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 336, + "id": 333, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -14452,7 +14314,7 @@ } }, { - "id": 337, + "id": 334, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14494,16 +14356,16 @@ "title": "Properties", "kind": 1024, "children": [ - 338, - 358, - 363, - 348, - 353, - 364, - 365, - 339, - 343, - 333 + 335, + 355, + 360, + 345, + 350, + 361, + 362, + 336, + 340, + 330 ] } ], @@ -14516,7 +14378,7 @@ ], "props": [ { - "id": 338, + "id": 335, "name": "action", "kind": 1024, "kindString": "Property", @@ -14537,7 +14399,7 @@ } }, { - "id": 358, + "id": 355, "name": "attachment", "kind": 1024, "kindString": "Property", @@ -14558,21 +14420,21 @@ { "type": "reflection", "declaration": { - "id": 359, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 360, + "id": 357, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 361, + "id": 358, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -14583,7 +14445,7 @@ } }, { - "id": 362, + "id": 359, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14617,7 +14479,7 @@ } }, { - "id": 363, + "id": 360, "name": "attachmentLayout", "kind": 1024, "kindString": "Property", @@ -14638,7 +14500,7 @@ } }, { - "id": 348, + "id": 345, "name": "attachments", "kind": 1024, "kindString": "Property", @@ -14659,21 +14521,21 @@ { "type": "reflection", "declaration": { - "id": 349, + "id": 346, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 350, + "id": 347, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 351, + "id": 348, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -14684,7 +14546,7 @@ } }, { - "id": 352, + "id": 349, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14724,7 +14586,7 @@ } }, { - "id": 353, + "id": 350, "name": "blocks", "kind": 1024, "kindString": "Property", @@ -14745,21 +14607,21 @@ { "type": "reflection", "declaration": { - "id": 354, + "id": 351, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 355, + "id": 352, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 356, + "id": 353, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -14770,7 +14632,7 @@ } }, { - "id": 357, + "id": 354, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -14810,7 +14672,7 @@ } }, { - "id": 364, + "id": 361, "name": "channelData", "kind": 1024, "kindString": "Property", @@ -14831,7 +14693,7 @@ } }, { - "id": 365, + "id": 362, "name": "collect", "kind": 1024, "kindString": "Property", @@ -14848,14 +14710,14 @@ "type": { "type": "reflection", "declaration": { - "id": 366, + "id": 363, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 367, + "id": 364, "name": "key", "kind": 32, "kindString": "Variable", @@ -14876,7 +14738,7 @@ } }, { - "id": 368, + "id": 365, "name": "options", "kind": 32, "kindString": "Variable", @@ -14895,7 +14757,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 327, + "id": 324, "name": "BotkitConvoTrigger" } } @@ -14906,8 +14768,8 @@ "title": "Variables", "kind": 32, "children": [ - 367, - 368 + 364, + 365 ] } ], @@ -14922,7 +14784,7 @@ } }, { - "id": 339, + "id": 336, "name": "execute", "kind": 1024, "kindString": "Property", @@ -14940,14 +14802,14 @@ "type": { "type": "reflection", "declaration": { - "id": 340, + "id": 337, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 341, + "id": 338, "name": "script", "kind": 32, "kindString": "Variable", @@ -14967,7 +14829,7 @@ } }, { - "id": 342, + "id": 339, "name": "thread", "kind": 32, "kindString": "Variable", @@ -14993,8 +14855,8 @@ "title": "Variables", "kind": 32, "children": [ - 341, - 342 + 338, + 339 ] } ], @@ -15009,7 +14871,7 @@ } }, { - "id": 343, + "id": 340, "name": "quick_replies", "kind": 1024, "kindString": "Property", @@ -15030,21 +14892,21 @@ { "type": "reflection", "declaration": { - "id": 344, + "id": 341, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 345, + "id": 342, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 346, + "id": 343, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -15055,7 +14917,7 @@ } }, { - "id": 347, + "id": 344, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -15095,7 +14957,7 @@ } }, { - "id": 333, + "id": 330, "name": "text", "kind": 1024, "kindString": "Property", @@ -15115,21 +14977,21 @@ { "type": "reflection", "declaration": { - "id": 334, + "id": 331, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 335, + "id": 332, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 336, + "id": 333, "name": "template", "kind": 32768, "kindString": "Parameter", @@ -15140,7 +15002,7 @@ } }, { - "id": 337, + "id": 334, "name": "vars", "kind": 32768, "kindString": "Parameter", @@ -15179,7 +15041,7 @@ ] }, { - "id": 176, + "id": 173, "name": "BotkitPlugin", "kind": 256, "kindString": "Interface", @@ -15192,7 +15054,7 @@ }, "indexSignature": [ { - "id": 186, + "id": 183, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -15204,7 +15066,7 @@ }, "parameters": [ { - "id": 187, + "id": 184, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -15225,7 +15087,7 @@ ], "children": [ { - "id": 182, + "id": 179, "name": "init", "kind": 1024, "kindString": "Property", @@ -15244,7 +15106,7 @@ "type": { "type": "reflection", "declaration": { - "id": 183, + "id": 180, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -15253,7 +15115,7 @@ }, "signatures": [ { - "id": 184, + "id": 181, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -15262,7 +15124,7 @@ }, "parameters": [ { - "id": 185, + "id": 182, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -15271,7 +15133,7 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } @@ -15293,7 +15155,7 @@ } }, { - "id": 178, + "id": 175, "name": "middlewares", "kind": 1024, "kindString": "Property", @@ -15312,7 +15174,7 @@ "type": { "type": "reflection", "declaration": { - "id": 179, + "id": 176, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -15321,7 +15183,7 @@ }, "indexSignature": [ { - "id": 180, + "id": 177, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -15330,7 +15192,7 @@ }, "parameters": [ { - "id": 181, + "id": 178, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -15363,7 +15225,7 @@ } }, { - "id": 177, + "id": 174, "name": "name", "kind": 1024, "kindString": "Property", @@ -15389,9 +15251,9 @@ "title": "Properties", "kind": 1024, "children": [ - 182, - 178, - 177 + 179, + 175, + 174 ] } ], @@ -15404,7 +15266,7 @@ ], "props": [ { - "id": 182, + "id": 179, "name": "init", "kind": 1024, "kindString": "Property", @@ -15423,7 +15285,7 @@ "type": { "type": "reflection", "declaration": { - "id": 183, + "id": 180, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -15432,7 +15294,7 @@ }, "signatures": [ { - "id": 184, + "id": 181, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -15441,7 +15303,7 @@ }, "parameters": [ { - "id": 185, + "id": 182, "name": "botkit", "kind": 32768, "kindString": "Parameter", @@ -15450,7 +15312,7 @@ }, "type": { "type": "reference", - "id": 188, + "id": 185, "name": "Botkit" } } @@ -15472,7 +15334,7 @@ } }, { - "id": 178, + "id": 175, "name": "middlewares", "kind": 1024, "kindString": "Property", @@ -15491,7 +15353,7 @@ "type": { "type": "reflection", "declaration": { - "id": 179, + "id": 176, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -15500,7 +15362,7 @@ }, "indexSignature": [ { - "id": 180, + "id": 177, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -15509,7 +15371,7 @@ }, "parameters": [ { - "id": 181, + "id": 178, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -15542,7 +15404,7 @@ } }, { - "id": 177, + "id": 174, "name": "name", "kind": 1024, "kindString": "Property", @@ -15565,7 +15427,7 @@ ] }, { - "id": 169, + "id": 166, "name": "BotkitTrigger", "kind": 256, "kindString": "Interface", @@ -15577,7 +15439,7 @@ }, "children": [ { - "id": 175, + "id": 172, "name": "handler", "kind": 1024, "kindString": "Property", @@ -15593,12 +15455,12 @@ ], "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } }, { - "id": 171, + "id": 168, "name": "pattern", "kind": 1024, "kindString": "Property", @@ -15626,28 +15488,28 @@ { "type": "reflection", "declaration": { - "id": 172, + "id": 169, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 173, + "id": 170, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 174, + "id": 171, "name": "message", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -15677,7 +15539,7 @@ } }, { - "id": 170, + "id": 167, "name": "type", "kind": 1024, "kindString": "Property", @@ -15705,9 +15567,9 @@ "title": "Properties", "kind": 1024, "children": [ - 175, - 171, - 170 + 172, + 168, + 167 ] } ], @@ -15720,7 +15582,7 @@ ], "props": [ { - "id": 175, + "id": 172, "name": "handler", "kind": 1024, "kindString": "Property", @@ -15736,12 +15598,12 @@ ], "type": { "type": "reference", - "id": 165, + "id": 162, "name": "BotkitHandler" } }, { - "id": 171, + "id": 168, "name": "pattern", "kind": 1024, "kindString": "Property", @@ -15769,28 +15631,28 @@ { "type": "reflection", "declaration": { - "id": 172, + "id": 169, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 173, + "id": 170, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 174, + "id": 171, "name": "message", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 155, + "id": 152, "name": "BotkitMessage" } } @@ -15820,7 +15682,7 @@ } }, { - "id": 170, + "id": 167, "name": "type", "kind": 1024, "kindString": "Property", diff --git a/packages/generator-botkit/CHANGELOG.md b/packages/generator-botkit/CHANGELOG.md index 57b855b35..73b36d762 100644 --- a/packages/generator-botkit/CHANGELOG.md +++ b/packages/generator-botkit/CHANGELOG.md @@ -1,3 +1,7 @@ +# 4.10.0 + +* Update to Botkit 4.10 + # 4.6.3 Fix issue introduced in 4.6.2 that removed required .env file templates diff --git a/packages/generator-botkit/generators/app/templates/package.json b/packages/generator-botkit/generators/app/templates/package.json index 499159b45..c7a3bfa02 100644 --- a/packages/generator-botkit/generators/app/templates/package.json +++ b/packages/generator-botkit/generators/app/templates/package.json @@ -8,7 +8,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { - "botkit": "^4.9.0", + "botkit": "^4.10.0", "botkit-plugin-cms": "^1.0.3", "botbuilder-storage-mongodb":"^0.9.5", "dotenv": "^7.0.0" diff --git a/packages/generator-botkit/package.json b/packages/generator-botkit/package.json index ffffbb2e9..a6a367e71 100644 --- a/packages/generator-botkit/package.json +++ b/packages/generator-botkit/package.json @@ -1,6 +1,6 @@ { "name": "generator-botkit", - "version": "4.9.1", + "version": "4.10.0", "description": "Automatically generate a Botkit application template for any supported platform", "scripts": {}, "files": [ diff --git a/packages/testbot/package.json b/packages/testbot/package.json index feec74adf..724c8582b 100644 --- a/packages/testbot/package.json +++ b/packages/testbot/package.json @@ -20,7 +20,7 @@ "botbuilder-adapter-webex": "^1.0.0", "botbuilder-dialogs-botkit-cms": "0.0.1", "botbuilder-storage-mongodb": "^0.9.5", - "botkit": "^4.9.0", + "botkit": "^4.10.0", "botkit-plugin-cms": "^1.0.3", "dotenv": "^6.2.0", "express-basic-auth": "^1.1.6", From 28e5ea77c1ea20c4ba60f44c1db66ec1a7315bca Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Mon, 24 Aug 2020 14:25:26 -0500 Subject: [PATCH 17/18] Fix for #1985: add tests that use custom adapters --- packages/botkit/src/adapter.ts | 1 - packages/botkit/src/core.ts | 2 +- packages/botkit/src/teamsHelpers.ts | 95 ++++++++++---------- packages/botkit/tests/CustomAdapter.tests.js | 67 ++++++++++++++ 4 files changed, 113 insertions(+), 52 deletions(-) create mode 100644 packages/botkit/tests/CustomAdapter.tests.js diff --git a/packages/botkit/src/adapter.ts b/packages/botkit/src/adapter.ts index 731959dc9..9a8bc149e 100644 --- a/packages/botkit/src/adapter.ts +++ b/packages/botkit/src/adapter.ts @@ -27,7 +27,6 @@ const USER_AGENT: string = `Microsoft-BotFramework/3.1 Botkit/${ pjson.version } * * Adds middleware for adjusting location of tenant id field (MS Teams) */ export class BotkitBotFrameworkAdapter extends BotFrameworkAdapter { - public botkit_worker = TeamsBotWorker; /** diff --git a/packages/botkit/src/core.ts b/packages/botkit/src/core.ts index 544697b2f..07113ffe0 100644 --- a/packages/botkit/src/core.ts +++ b/packages/botkit/src/core.ts @@ -1090,7 +1090,7 @@ export class Botkit { } let worker: BotWorker = null; - const adapter = custom_adapter ? custom_adapter : ((config && config.context && config.context.adapter) ? config.context.adapter : this.adapter); + const adapter = custom_adapter || ((config && config.context && config.context.adapter) ? config.context.adapter : this.adapter); if (adapter.botkit_worker) { const CustomBotWorker = adapter.botkit_worker; diff --git a/packages/botkit/src/teamsHelpers.ts b/packages/botkit/src/teamsHelpers.ts index 99874a796..feb04ae45 100644 --- a/packages/botkit/src/teamsHelpers.ts +++ b/packages/botkit/src/teamsHelpers.ts @@ -5,7 +5,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ -import { Botkit, BotkitMessage } from './core'; +import { BotkitMessage } from './core'; import { BotWorker } from './botworker'; import { TeamsInfo, MiddlewareSet, TurnContext } from 'botbuilder'; @@ -16,11 +16,6 @@ import { TeamsInfo, MiddlewareSet, TurnContext } from 'botbuilder'; * @noInheritDoc */ export class TeamsBotWorker extends BotWorker { - - public constructor(controller: Botkit, config) { - super(controller, config); - } - /** * Grants access to the TeamsInfo helper class * See: https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsinfo?view=botbuilder-ts-latest @@ -30,33 +25,33 @@ export class TeamsBotWorker extends BotWorker { /** * Reply to a Teams task module task/fetch or task/submit with a task module response. * See https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/task-modules/task-modules-bots - * @param message + * @param message * @param taskInfo an object in the form {type, value} */ - public async replyWithTaskInfo(message: BotkitMessage, taskInfo: any) { - if (!taskInfo || taskInfo == {}) { + public async replyWithTaskInfo(message: BotkitMessage, taskInfo: any): Promise { + if (!taskInfo || taskInfo == {}) { // send a null response back - taskInfo = { - type: 'message', - value: '', + taskInfo = { + type: 'message', + value: '' + }; } - } - return new Promise((resolve, reject) => { - this.controller.middleware.send.run(this, taskInfo, async (err, bot, taskInfo) => { - if (err) { - return reject(err); - } - resolve(await this.getConfig('context').sendActivity({ - type: 'invokeResponse', - value: { - status: 200, - body: { - task: taskInfo + return new Promise((resolve, reject) => { + this.controller.middleware.send.run(this, taskInfo, async (err, bot, taskInfo) => { + if (err) { + return reject(err); } - } - })); + resolve(await this.getConfig('context').sendActivity({ + type: 'invokeResponse', + value: { + status: 200, + body: { + task: taskInfo + } + } + })); + }); }); - }); } } @@ -82,28 +77,28 @@ export class TeamsInvokeMiddleware extends MiddlewareSet { * @param next */ public async onTurn(context: TurnContext, next: () => Promise): Promise { - if (context.activity.type === 'invoke') { - if (!context.activity.name && context.activity.channelId === 'msteams') { - context.activity.channelData.botkitEventType = 'cardAction'; - } else { - switch (context.activity.name) { - case 'fileConsent/invoke': - case 'actionableMessage/executeAction': - case 'composeExtension/queryLink': - case 'composeExtension/query': - case 'composeExtension/selectItem': - case 'composeExtension/submitAction': - case 'composeExtension/fetchTask': - case 'composeExtension/querySettingUrl': - case 'composeExtension/setting': - case 'composeExtension/onCardButtonClicked': - case 'task/fetch': - case 'task/submit': - context.activity.channelData.botkitEventType = context.activity.name; - break; - } + if (context.activity.type === 'invoke') { + if (!context.activity.name && context.activity.channelId === 'msteams') { + context.activity.channelData.botkitEventType = 'cardAction'; + } else { + switch (context.activity.name) { + case 'fileConsent/invoke': + case 'actionableMessage/executeAction': + case 'composeExtension/queryLink': + case 'composeExtension/query': + case 'composeExtension/selectItem': + case 'composeExtension/submitAction': + case 'composeExtension/fetchTask': + case 'composeExtension/querySettingUrl': + case 'composeExtension/setting': + case 'composeExtension/onCardButtonClicked': + case 'task/fetch': + case 'task/submit': + context.activity.channelData.botkitEventType = context.activity.name; + break; + } + } } - } - await next(); - } + await next(); + } } diff --git a/packages/botkit/tests/CustomAdapter.tests.js b/packages/botkit/tests/CustomAdapter.tests.js new file mode 100644 index 000000000..fe3edc05c --- /dev/null +++ b/packages/botkit/tests/CustomAdapter.tests.js @@ -0,0 +1,67 @@ +const { Botkit, BotkitConversation, BotkitTestClient, BotWorker } = require('..'); +const { TestAdapter, AutoSaveStateMiddleware } = require('botbuilder'); +const assert = require('assert'); + +class FakeBotWorker extends BotWorker { + constructor(controller, config) { + super(controller, config); + } + + getUser() { + return { + id: 123, + name: 'Roger' + }; + }; +} + +class FakeAdapter extends TestAdapter { + // Enables overriding the type of the BotWorker + // (this uses a Botkit features that allows setting a worker type) + botkit_worker = FakeBotWorker; +} + +class CustomTestClient extends BotkitTestClient { + constructor(channelId, bot, dialogToTest) { + super(channelId, bot, dialogToTest); + this._testAdapter = new FakeAdapter(this._callback, { channelId: channelId }).use(new AutoSaveStateMiddleware(this.conversationState)); + } +} + +function createDialog(controller) { + const dialog = new BotkitConversation('try_custom_worker', controller); + + dialog.ask('How you like me now?', async (response, convo, bot) => { + const botUser = bot.getUser(); + return bot.say(`You are: ${ botUser.name }`); + }, 'question'); + + return dialog; +} + +describe('Test something with custom worker', () => { + let botkit; + let client; + let testAdapter; + + it('bot can access user identity through custom bot worker', async () => { + testAdapter = new FakeAdapter({}); + botkit = new Botkit({ + disable_webserver: true, + disable_console: true, + adapter: testAdapter + }); + botkit.addDialog(createDialog(botkit)); + client = new CustomTestClient('test', botkit, ['try_custom_worker']); + + // Test the dialog through the client + let message = await client.sendActivity(''); + assert(message.text === 'How you like me now?'); + message = await client.sendActivity('nice!'); + assert(message.text === 'You are: Roger','Custom adapter spawning invalid bot'); + }); + + afterEach(async () => { + await botkit.shutdown(); + }); +}); From 29ed10c2ec4c4b3951a14a13a7ce1a422efa3b10 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Tue, 25 Aug 2020 11:47:26 -0500 Subject: [PATCH 18/18] linter cleanup --- packages/botbuilder-adapter-slack/src/slack_adapter.ts | 2 +- packages/botbuilder-adapter-web/src/web_adapter.ts | 4 +++- packages/botbuilder-adapter-webex/src/botworker.ts | 4 ++-- packages/botbuilder-adapter-webex/src/webex_adapter.ts | 4 ++-- packages/botkit/src/conversation.ts | 3 +-- packages/botkit/src/teamsHelpers.ts | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/botbuilder-adapter-slack/src/slack_adapter.ts b/packages/botbuilder-adapter-slack/src/slack_adapter.ts index d71232166..5dc61148b 100644 --- a/packages/botbuilder-adapter-slack/src/slack_adapter.ts +++ b/packages/botbuilder-adapter-slack/src/slack_adapter.ts @@ -172,7 +172,7 @@ export class SlackAdapter extends BotAdapter { this.middlewares = { spawn: [ - async (bot, next) => { + async (bot, next): Promise => { // make the Slack API available to all bot instances. bot.api = await this.getAPI(bot.getConfig('activity')).catch((err) => { debug('An error occurred while trying to get API creds for team', err); diff --git a/packages/botbuilder-adapter-web/src/web_adapter.ts b/packages/botbuilder-adapter-web/src/web_adapter.ts index de4c522ab..d32027ef5 100644 --- a/packages/botbuilder-adapter-web/src/web_adapter.ts +++ b/packages/botbuilder-adapter-web/src/web_adapter.ts @@ -157,7 +157,9 @@ export class WebAdapter extends BotAdapter { return ws.terminate(); } ws.isAlive = false; - ws.ping('', false, () =>{}); + ws.ping('', false, () => { + // noop + }); }); }, 30000); } diff --git a/packages/botbuilder-adapter-webex/src/botworker.ts b/packages/botbuilder-adapter-webex/src/botworker.ts index 90c00c1c6..47c3edc58 100644 --- a/packages/botbuilder-adapter-webex/src/botworker.ts +++ b/packages/botbuilder-adapter-webex/src/botworker.ts @@ -82,7 +82,7 @@ export class WebexBotWorker extends BotWorker { channelId: 'webex' }); } - + /** * Switch a bot's context into a specific thread within a room. * After calling this method, messages sent with `bot.say` and any dialogs started with `bot.beginDialog` will occur in this new context. @@ -137,7 +137,7 @@ export class WebexBotWorker extends BotWorker { */ public async replyInThread(src: any, resp: any): Promise { // set parentId to src.id - resp.parentId = src.parentId ? src.parentId : src.id; + resp.parentId = src.parentId ? src.parentId : src.id; return this.reply(src, resp); } diff --git a/packages/botbuilder-adapter-webex/src/webex_adapter.ts b/packages/botbuilder-adapter-webex/src/webex_adapter.ts index 70da91a01..4e038f86b 100644 --- a/packages/botbuilder-adapter-webex/src/webex_adapter.ts +++ b/packages/botbuilder-adapter-webex/src/webex_adapter.ts @@ -393,7 +393,7 @@ export class WebexAdapter extends BotAdapter { } else if (activity.channelData && activity.channelData.attachments) { message.attachments = activity.channelData.attachments; } - + // @ts-ignore ignore this webex specific field if (activity.conversation && activity.conversation.parentId) { // @ts-ignore ignore this webex specific field @@ -401,7 +401,7 @@ export class WebexAdapter extends BotAdapter { } else if (activity.channelData && activity.channelData.parentId) { message.parentId = activity.channelData.parentId; } - + const response = await this._api.messages.create(message); responses.push(response); diff --git a/packages/botkit/src/conversation.ts b/packages/botkit/src/conversation.ts index 4fd2e70e9..c3b5eb914 100644 --- a/packages/botkit/src/conversation.ts +++ b/packages/botkit/src/conversation.ts @@ -693,7 +693,6 @@ export class BotkitConversation extends Dialog { } if (line.action) { - const res = await this.handleAction(line, dc, step); if (res !== false) { return res; @@ -859,7 +858,7 @@ export class BotkitConversation extends Dialog { // copy all the values in channelData fields if (line.channelData && Object.keys(line.channelData).length > 0) { const channelDataParsed = this.parseTemplatesRecursive(JSON.parse(JSON.stringify(line.channelData)), vars); - + outgoing.channelData = { ...outgoing.channelData, ...channelDataParsed diff --git a/packages/botkit/src/teamsHelpers.ts b/packages/botkit/src/teamsHelpers.ts index feb04ae45..c95fca041 100644 --- a/packages/botkit/src/teamsHelpers.ts +++ b/packages/botkit/src/teamsHelpers.ts @@ -29,7 +29,7 @@ export class TeamsBotWorker extends BotWorker { * @param taskInfo an object in the form {type, value} */ public async replyWithTaskInfo(message: BotkitMessage, taskInfo: any): Promise { - if (!taskInfo || taskInfo == {}) { + if (!taskInfo || taskInfo === {}) { // send a null response back taskInfo = { type: 'message',