@slack/bolt 4.0.0-nextGen.9 → 4.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +22 -16
  2. package/dist/App.d.ts +39 -80
  3. package/dist/App.d.ts.map +1 -1
  4. package/dist/App.js +223 -234
  5. package/dist/App.js.map +1 -1
  6. package/dist/CustomFunction.d.ts +58 -0
  7. package/dist/CustomFunction.d.ts.map +1 -0
  8. package/dist/CustomFunction.js +144 -0
  9. package/dist/CustomFunction.js.map +1 -0
  10. package/dist/WorkflowStep.d.ts +89 -36
  11. package/dist/WorkflowStep.d.ts.map +1 -1
  12. package/dist/WorkflowStep.js +29 -8
  13. package/dist/WorkflowStep.js.map +1 -1
  14. package/dist/conversation-store.d.ts +1 -1
  15. package/dist/conversation-store.d.ts.map +1 -1
  16. package/dist/conversation-store.js +3 -3
  17. package/dist/conversation-store.js.map +1 -1
  18. package/dist/errors.d.ts +12 -7
  19. package/dist/errors.d.ts.map +1 -1
  20. package/dist/errors.js +42 -53
  21. package/dist/errors.js.map +1 -1
  22. package/dist/helpers.d.ts +16 -3
  23. package/dist/helpers.d.ts.map +1 -1
  24. package/dist/helpers.js +43 -11
  25. package/dist/helpers.js.map +1 -1
  26. package/dist/index.d.ts +4 -5
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +16 -11
  29. package/dist/index.js.map +1 -1
  30. package/dist/middleware/builtin.d.ts +20 -23
  31. package/dist/middleware/builtin.d.ts.map +1 -1
  32. package/dist/middleware/builtin.js +93 -110
  33. package/dist/middleware/builtin.js.map +1 -1
  34. package/dist/middleware/process.d.ts +3 -3
  35. package/dist/middleware/process.d.ts.map +1 -1
  36. package/dist/middleware/process.js +1 -1
  37. package/dist/middleware/process.js.map +1 -1
  38. package/dist/receivers/AwsLambdaReceiver.d.ts +77 -16
  39. package/dist/receivers/AwsLambdaReceiver.d.ts.map +1 -1
  40. package/dist/receivers/AwsLambdaReceiver.js +53 -25
  41. package/dist/receivers/AwsLambdaReceiver.js.map +1 -1
  42. package/dist/receivers/BufferedIncomingMessage.d.ts +2 -1
  43. package/dist/receivers/BufferedIncomingMessage.d.ts.map +1 -1
  44. package/dist/receivers/ExpressReceiver.d.ts +13 -13
  45. package/dist/receivers/ExpressReceiver.d.ts.map +1 -1
  46. package/dist/receivers/ExpressReceiver.js +70 -70
  47. package/dist/receivers/ExpressReceiver.js.map +1 -1
  48. package/dist/receivers/HTTPModuleFunctions.d.ts +18 -20
  49. package/dist/receivers/HTTPModuleFunctions.d.ts.map +1 -1
  50. package/dist/receivers/HTTPModuleFunctions.js +189 -171
  51. package/dist/receivers/HTTPModuleFunctions.js.map +1 -1
  52. package/dist/receivers/HTTPReceiver.d.ts +14 -14
  53. package/dist/receivers/HTTPReceiver.d.ts.map +1 -1
  54. package/dist/receivers/HTTPReceiver.js +102 -48
  55. package/dist/receivers/HTTPReceiver.js.map +1 -1
  56. package/dist/receivers/HTTPResponseAck.d.ts +7 -7
  57. package/dist/receivers/HTTPResponseAck.d.ts.map +1 -1
  58. package/dist/receivers/HTTPResponseAck.js +37 -5
  59. package/dist/receivers/HTTPResponseAck.js.map +1 -1
  60. package/dist/receivers/ParamsIncomingMessage.d.ts +14 -0
  61. package/dist/receivers/ParamsIncomingMessage.d.ts.map +1 -0
  62. package/dist/{types/block-suggestion/index.js → receivers/ParamsIncomingMessage.js} +1 -1
  63. package/dist/receivers/ParamsIncomingMessage.js.map +1 -0
  64. package/dist/receivers/SocketModeFunctions.d.ts +3 -5
  65. package/dist/receivers/SocketModeFunctions.d.ts.map +1 -1
  66. package/dist/receivers/SocketModeFunctions.js +14 -23
  67. package/dist/receivers/SocketModeFunctions.js.map +1 -1
  68. package/dist/receivers/SocketModeReceiver.d.ts +10 -9
  69. package/dist/receivers/SocketModeReceiver.d.ts.map +1 -1
  70. package/dist/receivers/SocketModeReceiver.js +41 -25
  71. package/dist/receivers/SocketModeReceiver.js.map +1 -1
  72. package/dist/receivers/custom-routes.d.ts +4 -3
  73. package/dist/receivers/custom-routes.d.ts.map +1 -1
  74. package/dist/receivers/custom-routes.js +10 -9
  75. package/dist/receivers/custom-routes.js.map +1 -1
  76. package/dist/receivers/verify-redirect-opts.d.ts +1 -1
  77. package/dist/receivers/verify-redirect-opts.d.ts.map +1 -1
  78. package/dist/receivers/verify-redirect-opts.js +3 -3
  79. package/dist/receivers/verify-redirect-opts.js.map +1 -1
  80. package/dist/receivers/verify-request.d.ts +1 -12
  81. package/dist/receivers/verify-request.d.ts.map +1 -1
  82. package/dist/receivers/verify-request.js +4 -18
  83. package/dist/receivers/verify-request.js.map +1 -1
  84. package/dist/types/actions/block-action.d.ts +41 -22
  85. package/dist/types/actions/block-action.d.ts.map +1 -1
  86. package/dist/types/actions/dialog-action.d.ts +0 -4
  87. package/dist/types/actions/dialog-action.d.ts.map +1 -1
  88. package/dist/types/actions/index.d.ts +25 -11
  89. package/dist/types/actions/index.d.ts.map +1 -1
  90. package/dist/types/actions/index.js +1 -0
  91. package/dist/types/actions/index.js.map +1 -1
  92. package/dist/types/actions/interactive-message.d.ts +3 -3
  93. package/dist/types/actions/interactive-message.d.ts.map +1 -1
  94. package/dist/types/actions/workflow-step-edit.d.ts +7 -7
  95. package/dist/types/actions/workflow-step-edit.d.ts.map +1 -1
  96. package/dist/types/command/index.d.ts +1 -2
  97. package/dist/types/command/index.d.ts.map +1 -1
  98. package/dist/types/events/index.d.ts +26 -24
  99. package/dist/types/events/index.d.ts.map +1 -1
  100. package/dist/types/events/index.js +4 -15
  101. package/dist/types/events/index.js.map +1 -1
  102. package/dist/types/index.d.ts +0 -2
  103. package/dist/types/index.d.ts.map +1 -1
  104. package/dist/types/index.js +0 -2
  105. package/dist/types/index.js.map +1 -1
  106. package/dist/types/middleware.d.ts +30 -30
  107. package/dist/types/middleware.d.ts.map +1 -1
  108. package/dist/types/middleware.js +3 -0
  109. package/dist/types/middleware.js.map +1 -1
  110. package/dist/types/options/index.d.ts +23 -59
  111. package/dist/types/options/index.d.ts.map +1 -1
  112. package/dist/types/receiver.d.ts +3 -3
  113. package/dist/types/receiver.d.ts.map +1 -1
  114. package/dist/types/shortcuts/global-shortcut.d.ts.map +1 -1
  115. package/dist/types/shortcuts/index.d.ts +14 -9
  116. package/dist/types/shortcuts/index.d.ts.map +1 -1
  117. package/dist/types/shortcuts/message-shortcut.d.ts.map +1 -1
  118. package/dist/types/utilities.d.ts +23 -13
  119. package/dist/types/utilities.d.ts.map +1 -1
  120. package/dist/types/utilities.js +7 -0
  121. package/dist/types/utilities.js.map +1 -1
  122. package/dist/types/view/index.d.ts +148 -12
  123. package/dist/types/view/index.d.ts.map +1 -1
  124. package/package.json +32 -61
  125. package/dist/Manifest.d.ts +0 -5
  126. package/dist/Manifest.d.ts.map +0 -1
  127. package/dist/Manifest.js +0 -16
  128. package/dist/Manifest.js.map +0 -1
  129. package/dist/SlackFunction.d.ts +0 -190
  130. package/dist/SlackFunction.d.ts.map +0 -1
  131. package/dist/SlackFunction.js +0 -441
  132. package/dist/SlackFunction.js.map +0 -1
  133. package/dist/Subscription.d.ts +0 -61
  134. package/dist/Subscription.d.ts.map +0 -1
  135. package/dist/Subscription.js +0 -169
  136. package/dist/Subscription.js.map +0 -1
  137. package/dist/cli/check-update.d.ts +0 -3
  138. package/dist/cli/check-update.d.ts.map +0 -1
  139. package/dist/cli/check-update.js +0 -13
  140. package/dist/cli/check-update.js.map +0 -1
  141. package/dist/cli/get-hooks.d.ts +0 -2
  142. package/dist/cli/get-hooks.d.ts.map +0 -1
  143. package/dist/cli/get-hooks.js +0 -19
  144. package/dist/cli/get-hooks.js.map +0 -1
  145. package/dist/cli/get-manifest.d.ts +0 -3
  146. package/dist/cli/get-manifest.d.ts.map +0 -1
  147. package/dist/cli/get-manifest.js +0 -16
  148. package/dist/cli/get-manifest.js.map +0 -1
  149. package/dist/cli/hook-utils/get-check-update-data.d.ts +0 -49
  150. package/dist/cli/hook-utils/get-check-update-data.d.ts.map +0 -1
  151. package/dist/cli/hook-utils/get-check-update-data.js +0 -252
  152. package/dist/cli/hook-utils/get-check-update-data.js.map +0 -1
  153. package/dist/cli/hook-utils/get-check-update-data.spec.d.ts +0 -2
  154. package/dist/cli/hook-utils/get-check-update-data.spec.d.ts.map +0 -1
  155. package/dist/cli/hook-utils/get-check-update-data.spec.js +0 -266
  156. package/dist/cli/hook-utils/get-check-update-data.spec.js.map +0 -1
  157. package/dist/cli/hook-utils/get-manifest-data.d.ts +0 -7
  158. package/dist/cli/hook-utils/get-manifest-data.d.ts.map +0 -1
  159. package/dist/cli/hook-utils/get-manifest-data.js +0 -30
  160. package/dist/cli/hook-utils/get-manifest-data.js.map +0 -1
  161. package/dist/cli/hook-utils/get-manifest-data.spec.d.ts +0 -2
  162. package/dist/cli/hook-utils/get-manifest-data.spec.d.ts.map +0 -1
  163. package/dist/cli/hook-utils/get-manifest-data.spec.js +0 -113
  164. package/dist/cli/hook-utils/get-manifest-data.spec.js.map +0 -1
  165. package/dist/cli/hook-utils/manifest.d.ts +0 -30
  166. package/dist/cli/hook-utils/manifest.d.ts.map +0 -1
  167. package/dist/cli/hook-utils/manifest.js +0 -103
  168. package/dist/cli/hook-utils/manifest.js.map +0 -1
  169. package/dist/cli/hook-utils/manifest.spec.d.ts +0 -2
  170. package/dist/cli/hook-utils/manifest.spec.d.ts.map +0 -1
  171. package/dist/cli/hook-utils/manifest.spec.js +0 -79
  172. package/dist/cli/hook-utils/manifest.spec.js.map +0 -1
  173. package/dist/cli/run.d.ts +0 -2
  174. package/dist/cli/run.d.ts.map +0 -1
  175. package/dist/cli/run.js +0 -37
  176. package/dist/cli/run.js.map +0 -1
  177. package/dist/cli/start.d.ts +0 -3
  178. package/dist/cli/start.d.ts.map +0 -1
  179. package/dist/cli/start.js +0 -40
  180. package/dist/cli/start.js.map +0 -1
  181. package/dist/receivers/http-utils.d.ts +0 -5
  182. package/dist/receivers/http-utils.d.ts.map +0 -1
  183. package/dist/receivers/http-utils.js +0 -19
  184. package/dist/receivers/http-utils.js.map +0 -1
  185. package/dist/receivers/render-html-for-install-path.d.ts +0 -3
  186. package/dist/receivers/render-html-for-install-path.d.ts.map +0 -1
  187. package/dist/receivers/render-html-for-install-path.js +0 -32
  188. package/dist/receivers/render-html-for-install-path.js.map +0 -1
  189. package/dist/types/block-suggestion/index.d.ts +0 -97
  190. package/dist/types/block-suggestion/index.d.ts.map +0 -1
  191. package/dist/types/block-suggestion/index.js.map +0 -1
  192. package/dist/types/events/base-events.d.ts +0 -1135
  193. package/dist/types/events/base-events.d.ts.map +0 -1
  194. package/dist/types/events/base-events.js +0 -5
  195. package/dist/types/events/base-events.js.map +0 -1
  196. package/dist/types/events/message-events.d.ts +0 -348
  197. package/dist/types/events/message-events.d.ts.map +0 -1
  198. package/dist/types/events/message-events.js +0 -3
  199. package/dist/types/events/message-events.js.map +0 -1
  200. package/dist/types/functions/index.d.ts +0 -26
  201. package/dist/types/functions/index.d.ts.map +0 -1
  202. package/dist/types/functions/index.js +0 -3
  203. package/dist/types/functions/index.js.map +0 -1
  204. package/dist/types/helpers.d.ts +0 -17
  205. package/dist/types/helpers.d.ts.map +0 -1
  206. package/dist/types/helpers.js +0 -3
  207. package/dist/types/helpers.js.map +0 -1
  208. package/dist/types/subscription/index.d.ts +0 -80
  209. package/dist/types/subscription/index.d.ts.map +0 -1
  210. package/dist/types/subscription/index.js +0 -3
  211. package/dist/types/subscription/index.js.map +0 -1
  212. package/src/cli/check-update.js +0 -13
  213. package/src/cli/get-hooks.js +0 -17
  214. package/src/cli/get-manifest.js +0 -16
  215. package/src/cli/hook-utils/get-check-update-data.js +0 -292
  216. package/src/cli/hook-utils/get-manifest-data.js +0 -39
  217. package/src/cli/hook-utils/manifest.js +0 -108
  218. package/src/cli/start.js +0 -43
@@ -1,79 +0,0 @@
1
- "use strict";
2
- require('mocha');
3
- const sinon = require('sinon');
4
- const { expect } = require('chai');
5
- const { fs } = require('memfs');
6
- const mockfs = require('mock-fs');
7
- const manifestUtils = require('./manifest');
8
- const { unionMerge, hasManifest, find } = manifestUtils;
9
- const rewiremock = require('rewiremock');
10
- describe('Slack CLI Script Hooks: get-manifest utilities', () => {
11
- describe('unionMerge', () => {
12
- it('should return a union of two arrays', () => {
13
- expect(unionMerge(["arwen"], ["strider"])).to.eql(["arwen", "strider"]);
14
- expect(unionMerge(["gandalf", "gandalf"], [])).to.eql(["gandalf"]);
15
- // setup
16
- const fellowship = ["frodo", "samwise", "merry", "pippin", "gandalf"];
17
- const hobbits = ["frodo", "samwise", "merry", "pippin"];
18
- const actualUnion = ["frodo", "samwise", "merry", "pippin", "gandalf"];
19
- const testUnion = unionMerge(fellowship, hobbits);
20
- // test
21
- expect(testUnion).to.eql(actualUnion);
22
- });
23
- });
24
- describe('hasManifest', () => {
25
- it('should return true if at least one non-empty object', () => {
26
- expect(hasManifest({}, {}, { testKey: "testValue" })).to.be.true;
27
- });
28
- it('should return false if all empty objects', () => {
29
- expect(hasManifest({}));
30
- });
31
- it('should handle an undefined or null objects', () => {
32
- expect(hasManifest(undefined, null, { testKey: "testValue" })).to.be.true;
33
- });
34
- });
35
- describe('find', () => {
36
- beforeEach(() => {
37
- mockfs({
38
- '/middle-earth': {
39
- 'README.md': '1',
40
- 'mordor': {
41
- 'sauron.js': '1',
42
- 'orc.js': '1',
43
- 'nazgul.js': '1',
44
- },
45
- 'node_modules': '1',
46
- 'eriador': {
47
- 'shire': {
48
- 'one-ring.js': '1',
49
- 'nazgul.js': '1',
50
- },
51
- },
52
- },
53
- });
54
- });
55
- afterEach(() => {
56
- mockfs.restore();
57
- });
58
- it('should find the required file in any part of directory', () => {
59
- const cwd = '/middle-earth';
60
- //test
61
- // when target exists
62
- const result = find(cwd, 'one-ring.js');
63
- expect(result).to.equal(`${cwd}/eriador/shire/one-ring.js`);
64
- // when target doesn't exist
65
- const result2 = find(cwd, 'hobbitses.js');
66
- expect(result2).to.equal(null);
67
- // when multiple similar files exist, it is greedy
68
- const result3 = find(cwd, 'nazgul.js');
69
- expect(result3).to.equal(`${cwd}/eriador/shire/nazgul.js`);
70
- });
71
- it('should not search within node_modules', () => {
72
- const cwd = '/middle-earth';
73
- //test
74
- const result = find(cwd, 'node_modules');
75
- expect(result).to.equal(null);
76
- });
77
- });
78
- });
79
- //# sourceMappingURL=manifest.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.spec.js","sourceRoot":"","sources":["../../../src/cli/hook-utils/manifest.spec.js"],"names":[],"mappings":";AAAA,OAAO,CAAC,OAAO,CAAC,CAAC;AACjB,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AACnC,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAChC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,MAAM,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAC5C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,aAAa,CAAC;AACxD,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAEzC,QAAQ,CAAC,gDAAgD,EAAE,GAAG,EAAE;IAC9D,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;QAC1B,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;YAE7C,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,EAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;YACvE,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;YAEnE,QAAQ;YACR,MAAM,UAAU,GAAG,CA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L,CAAC,CAAC,CAAC"}
package/dist/cli/run.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=run.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":""}
package/dist/cli/run.js DELETED
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const child_process_1 = require("child_process");
7
- const path_1 = __importDefault(require("path"));
8
- // Run script hook verifies that requirements for running an App in
9
- // in developerMode (via Socket Mode) are met
10
- (function _(cwd) {
11
- // TODO - Format so that its less miss-able in output
12
- process.stdout.write('Preparing local run in developer mode (Socket Mode)\n');
13
- // Check required local run tokens
14
- validate();
15
- // Kick off a subprocess to run the app in development mode
16
- const app = (0, child_process_1.spawn)('node', [`${path_1.default.resolve(cwd, 'app.js')}`]);
17
- app.stdout.setEncoding('utf-8');
18
- // TODO - Is there a way to configure this in spawn invocation
19
- app.stdout.on('data', (data) => {
20
- process.stdout.write(data);
21
- });
22
- app.stderr.on('data', (data) => {
23
- process.stderr.write(data);
24
- });
25
- app.on('close', (code) => {
26
- process.stdout.write(`bolt-app local run exited with code ${code}`);
27
- });
28
- }(process.cwd()));
29
- function validate() {
30
- if (!process.env.SLACK_CLI_XOXB) {
31
- throw new Error('Missing local run bot token. Please see slack-cli maintainers to troubleshoot.');
32
- }
33
- if (!process.env.SLACK_CLI_XAPP) {
34
- throw new Error('Missing local run app token. Please see slack-cli maintainers to troubleshoot');
35
- }
36
- }
37
- //# sourceMappingURL=run.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":";;;;;AAAA,iDAAsC;AACtC,gDAAwB;AAExB,mEAAmE;AACnE,6CAA6C;AAC7C,CAAC,SAAS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MappingURL=start.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/cli/start.js"],"names":[],"mappings":""}
package/dist/cli/start.js DELETED
@@ -1,40 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- const { spawn } = require('child_process');
4
- const path = require('path');
5
- const fs = require('fs');
6
- const { main: pkgJSONMain } = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));
7
- // Run script hook verifies that requirements for running an App in
8
- // in developerMode (via Socket Mode) are met
9
- (function _(cwd, customPath) {
10
- // TODO - Format so that its less miss-able in output
11
- console.log('Preparing local run in developer mode (Socket Mode)');
12
- // Check required local run tokens
13
- validate();
14
- // tries the provided path, then package.json main, then defaults to index.js in the current
15
- // working directory
16
- const pkgJSONDefault = 'index.js';
17
- const fullPath = path.resolve(cwd, customPath ? customPath : pkgJSONMain ? pkgJSONMain : pkgJSONDefault);
18
- console.log(fullPath);
19
- // Kick off a subprocess to run the app in development mode
20
- const app = spawn('node', [`${fullPath}`]);
21
- app.stdout.setEncoding('utf-8');
22
- app.stdout.on('data', (data) => {
23
- process.stdout.write(data);
24
- });
25
- app.stderr.on('data', (data) => {
26
- process.stderr.write(data);
27
- });
28
- app.on('close', (code) => {
29
- console.log(`bolt-app local run exited with code ${code}`);
30
- });
31
- }(process.cwd(), process.env.SLACK_CLI_CUSTOM_FILE_PATH));
32
- function validate() {
33
- if (!process.env.SLACK_CLI_XOXB) {
34
- throw new Error('Missing local run bot token. Please see slack-cli maintainers to troubleshoot.');
35
- }
36
- if (!process.env.SLACK_CLI_XAPP) {
37
- throw new Error('Missing local run app token. Please see slack-cli maintainers to troubleshoot');
38
- }
39
- }
40
- //# sourceMappingURL=start.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/cli/start.js"],"names":[],"mappings":";;AACA,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAC3C,MAA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AAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,uCAAuC,IAAI,EAAE,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAE1D,SAAS,QAAQ;IACf,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,gFAAgF,CAAC,CAAC;KACnG;IACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;KAClG;AACH,CAAC"}
@@ -1,5 +0,0 @@
1
- /// <reference types="node" />
2
- import { IncomingMessage } from 'http';
3
- export declare function extractRetryNum(req: IncomingMessage): number | undefined;
4
- export declare function extractRetryReason(req: IncomingMessage): string | undefined;
5
- //# sourceMappingURL=http-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http-utils.d.ts","sourceRoot":"","sources":["../../src/receivers/http-utils.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAMvC,wBAAgB,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,CAGxE;AAGD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,CAG3E"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extractRetryReason = exports.extractRetryNum = void 0;
4
- const logger_1 = require("@slack/logger");
5
- const HTTPModuleFunctions_1 = require("./HTTPModuleFunctions");
6
- const logger = new logger_1.ConsoleLogger();
7
- // Deprecated: this function will be removed in the near future
8
- function extractRetryNum(req) {
9
- logger.warn('This method is deprecated. Use HTTPModuleFunctions.extractRetryNumFromHTTPRequest(req) instead.');
10
- return HTTPModuleFunctions_1.HTTPModuleFunctions.extractRetryNumFromHTTPRequest(req);
11
- }
12
- exports.extractRetryNum = extractRetryNum;
13
- // Deprecated: this function will be removed in the near future
14
- function extractRetryReason(req) {
15
- logger.warn('This method is deprecated. Use HTTPModuleFunctions.extractRetryReasonFromHTTPRequest(req) instead.');
16
- return HTTPModuleFunctions_1.HTTPModuleFunctions.extractRetryReasonFromHTTPRequest(req);
17
- }
18
- exports.extractRetryReason = extractRetryReason;
19
- //# sourceMappingURL=http-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http-utils.js","sourceRoot":"","sources":["../../src/receivers/http-utils.ts"],"names":[],"mappings":";;;AAAA,0CAA8C;AAE9C,+DAA4D;AAE5D,MAAM,MAAM,GAAG,IAAI,sBAAa,EAAE,CAAC;AAEnC,+DAA+D;AAC/D,SAAgB,eAAe,CAAC,GAAoB;IAClD,MAAM,CAAC,IAAI,CAAC,iGAAiG,CAAC,CAAC;IAC/G,OAAO,yCAAmB,CAAC,8BAA8B,CAAC,GAAG,CAAC,CAAC;AACjE,CAAC;AAHD,0CAGC;AAED,+DAA+D;AAC/D,SAAgB,kBAAkB,CAAC,GAAoB;IACrD,MAAM,CAAC,IAAI,CAAC,oGAAoG,CAAC,CAAC;IAClH,OAAO,yCAAmB,CAAC,iCAAiC,CAAC,GAAG,CAAC,CAAC;AACpE,CAAC;AAHD,gDAGC"}
@@ -1,3 +0,0 @@
1
- export default function defaultRenderHtmlForInstallPath(addToSlackUrl: string): string;
2
- export declare function renderHtmlForInstallPath(addToSlackUrl: string): string;
3
- //# sourceMappingURL=render-html-for-install-path.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-html-for-install-path.d.ts","sourceRoot":"","sources":["../../src/receivers/render-html-for-install-path.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,+BAA+B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAgBrF;AAID,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEtE"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renderHtmlForInstallPath = void 0;
4
- const logger_1 = require("@slack/logger");
5
- const logger = new logger_1.ConsoleLogger();
6
- // Deprecated: this function will be removed in the near future
7
- // Use the ones from @slack/oauth (v2.5 or newer) instead
8
- function defaultRenderHtmlForInstallPath(addToSlackUrl) {
9
- logger.warn('This method is deprecated. Use defaultRenderHtmlForInstallPath from @slack/oauth instead.');
10
- // TODO: replace the internals of this method with the one from @slack/oauth@2.5 or newer
11
- return `<html>
12
- <body>
13
- <a href="${addToSlackUrl}">
14
- <img
15
- alt="Add to Slack"
16
- height="40"
17
- width="139"
18
- src="https://platform.slack-edge.com/img/add_to_slack.png"
19
- srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/add_to_slack@2x.png 2x"
20
- />
21
- </a>
22
- </body>
23
- </html>`;
24
- }
25
- exports.default = defaultRenderHtmlForInstallPath;
26
- // Deprecated: this function will be removed in the near future
27
- // For backward-compatibility
28
- function renderHtmlForInstallPath(addToSlackUrl) {
29
- return defaultRenderHtmlForInstallPath(addToSlackUrl);
30
- }
31
- exports.renderHtmlForInstallPath = renderHtmlForInstallPath;
32
- //# sourceMappingURL=render-html-for-install-path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-html-for-install-path.js","sourceRoot":"","sources":["../../src/receivers/render-html-for-install-path.ts"],"names":[],"mappings":";;;AAAA,0CAA8C;AAE9C,MAAM,MAAM,GAAG,IAAI,sBAAa,EAAE,CAAC;AAEnC,+DAA+D;AAC/D,yDAAyD;AACzD,SAAwB,+BAA+B,CAAC,aAAqB;IAC3E,MAAM,CAAC,IAAI,CAAC,2FAA2F,CAAC,CAAC;IACzG,yFAAyF;IACzF,OAAO;;mBAEU,aAAa;;;;;;;;;;YAUpB,CAAC;AACb,CAAC;AAhBD,kDAgBC;AAED,+DAA+D;AAC/D,6BAA6B;AAC7B,SAAgB,wBAAwB,CAAC,aAAqB;IAC5D,OAAO,+BAA+B,CAAC,aAAa,CAAC,CAAC;AACxD,CAAC;AAFD,4DAEC"}
@@ -1,97 +0,0 @@
1
- import { Option } from '@slack/types';
2
- import { StringIndexed, XOR } from '../helpers';
3
- import { AckFn } from '../utilities';
4
- import { ViewOutput } from '../view/index';
5
- import { FunctionExecutionContext } from '../functions';
6
- /**
7
- * Arguments which listeners and middleware receive to process a Block Suggestions request from Slack
8
- */
9
- export interface SlackBlockSuggestionsMiddlewareArgs<Source extends BlockSuggestionsSource = BlockSuggestionsSource> {
10
- payload: BlockSuggestionsPayloadFromType<Source>;
11
- body: this['payload'];
12
- options: this['payload'];
13
- ack: BlockSuggestionsAckFn;
14
- }
15
- /**
16
- * The source that comprises of Block Suggestions Requests.
17
- */
18
- export declare type BlockSuggestionsSource = 'block_suggestion';
19
- export declare type SlackBlockSuggestion = BlockSuggestionPayload;
20
- export interface BasicBlockSuggestionsPayload<Type extends string = string> {
21
- type: Type;
22
- value: string;
23
- }
24
- export declare type BlockSuggestionsPayloadFromType<T extends string> = KnownBlockSuggestionsPayloadFromType<T> extends never ? BasicBlockSuggestionsPayload<T> : KnownBlockSuggestionsPayloadFromType<T>;
25
- export declare type KnownBlockSuggestionsPayloadFromType<T extends string> = Extract<SlackBlockSuggestion, {
26
- type: T;
27
- }>;
28
- /**
29
- * Block Suggestion payload model for next-gen interactivity
30
- */
31
- export interface BlockSuggestionPayload extends StringIndexed {
32
- api_app_id: string;
33
- bot_access_token?: string;
34
- channel?: {
35
- id: string;
36
- name: string;
37
- };
38
- enterprise: {
39
- id: string;
40
- name: string;
41
- } | null;
42
- function_data?: FunctionExecutionContext;
43
- message?: {
44
- app_id: string;
45
- blocks: {
46
- block_id: string;
47
- type: string;
48
- [key: string]: any;
49
- }[];
50
- bot_id: string;
51
- is_locked?: boolean;
52
- latest_reply?: string;
53
- metadata?: {
54
- event_type: string;
55
- event_payload: {
56
- [key: string]: any;
57
- };
58
- };
59
- reply_count?: number;
60
- reply_users?: string[];
61
- reply_users_count?: number;
62
- team: string;
63
- text: string;
64
- thread_ts?: string;
65
- ts: string;
66
- type: 'message';
67
- user: string;
68
- };
69
- team: {
70
- domain: string;
71
- id: string;
72
- } | null;
73
- user: {
74
- id: string;
75
- name: string;
76
- team_id: string;
77
- };
78
- value: string;
79
- [key: string]: any;
80
- container: StringIndexed;
81
- view?: ViewOutput;
82
- }
83
- /**
84
- * Type function which given a Block Suggestion `Source` returns a corresponding type for the `ack()` function. The
85
- * function is used to fulfill the options request from a listener or middleware.
86
- */
87
- declare type BlockSuggestionsAckFn = AckFn<XOR<BlockSuggestionOptions, BlockSuggestionOptionGroups<BlockSuggestionOptions>>>;
88
- export interface BlockSuggestionOptions {
89
- options: Option[];
90
- }
91
- export interface BlockSuggestionOptionGroups<Options> {
92
- option_groups: ({
93
- label: string;
94
- } & Options)[];
95
- }
96
- export {};
97
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/block-suggestion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,mCAAmC,CAAC,MAAM,SAAS,sBAAsB,GAAG,sBAAsB;IACjH,OAAO,EAAE,+BAA+B,CAAC,MAAM,CAAC,CAAC;IACjD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACtB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACzB,GAAG,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AM,CAAC;YACnB,aAAa,EAAE;gBAEb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;aACpB,CAAC;SACH,CAAC;QACF,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;QACf,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,IAAI,CAAC;IACT,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,KAAK,EAAE,MAAM,CAAC;IAEd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,SAAS,EAAE,aAAa,CAAC;IAEzB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED;;;GAGG;AACH,aAAK,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,sBAAsB,EAAE,2BAA2B,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;AAErH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,2BAA2B,CAAC,OAAO;IAClD,aAAa,EAAE,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,EAAE,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/block-suggestion/index.ts"],"names":[],"mappings":""}