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

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 (155) hide show
  1. package/dist/App.d.ts +17 -42
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +53 -152
  4. package/dist/App.js.map +1 -1
  5. package/dist/WorkflowFunction.d.ts +63 -0
  6. package/dist/WorkflowFunction.d.ts.map +1 -0
  7. package/dist/WorkflowFunction.js +130 -0
  8. package/dist/WorkflowFunction.js.map +1 -0
  9. package/dist/errors.d.ts +1 -13
  10. package/dist/errors.d.ts.map +1 -1
  11. package/dist/errors.js +1 -25
  12. package/dist/errors.js.map +1 -1
  13. package/dist/helpers.d.ts +15 -2
  14. package/dist/helpers.d.ts.map +1 -1
  15. package/dist/helpers.js +40 -9
  16. package/dist/helpers.js.map +1 -1
  17. package/dist/index.d.ts +0 -2
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +0 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/middleware/builtin.d.ts +2 -2
  22. package/dist/middleware/builtin.d.ts.map +1 -1
  23. package/dist/middleware/builtin.js +1 -0
  24. package/dist/middleware/builtin.js.map +1 -1
  25. package/dist/middleware/process.d.ts.map +1 -1
  26. package/dist/middleware/process.js.map +1 -1
  27. package/dist/receivers/AwsLambdaReceiver.d.ts.map +1 -1
  28. package/dist/receivers/AwsLambdaReceiver.js +1 -1
  29. package/dist/receivers/AwsLambdaReceiver.js.map +1 -1
  30. package/dist/receivers/ExpressReceiver.d.ts.map +1 -1
  31. package/dist/receivers/ExpressReceiver.js +2 -2
  32. package/dist/receivers/ExpressReceiver.js.map +1 -1
  33. package/dist/receivers/HTTPModuleFunctions.d.ts +1 -1
  34. package/dist/receivers/HTTPModuleFunctions.d.ts.map +1 -1
  35. package/dist/receivers/HTTPModuleFunctions.js +13 -1
  36. package/dist/receivers/HTTPModuleFunctions.js.map +1 -1
  37. package/dist/receivers/HTTPReceiver.d.ts.map +1 -1
  38. package/dist/receivers/HTTPReceiver.js +11 -5
  39. package/dist/receivers/HTTPReceiver.js.map +1 -1
  40. package/dist/receivers/HTTPResponseAck.d.ts +1 -1
  41. package/dist/receivers/HTTPResponseAck.d.ts.map +1 -1
  42. package/dist/receivers/ParamsIncomingMessage.d.ts +14 -0
  43. package/dist/receivers/ParamsIncomingMessage.d.ts.map +1 -0
  44. package/dist/{types/block-suggestion/index.js → receivers/ParamsIncomingMessage.js} +1 -1
  45. package/dist/receivers/ParamsIncomingMessage.js.map +1 -0
  46. package/dist/receivers/SocketModeReceiver.d.ts +3 -2
  47. package/dist/receivers/SocketModeReceiver.d.ts.map +1 -1
  48. package/dist/receivers/SocketModeReceiver.js +13 -5
  49. package/dist/receivers/SocketModeReceiver.js.map +1 -1
  50. package/dist/receivers/custom-routes.d.ts +4 -3
  51. package/dist/receivers/custom-routes.d.ts.map +1 -1
  52. package/dist/receivers/custom-routes.js.map +1 -1
  53. package/dist/receivers/http-utils.d.ts.map +1 -1
  54. package/dist/receivers/http-utils.js.map +1 -1
  55. package/dist/receivers/verify-request.d.ts +1 -1
  56. package/dist/receivers/verify-request.d.ts.map +1 -1
  57. package/dist/receivers/verify-request.js +1 -1
  58. package/dist/receivers/verify-request.js.map +1 -1
  59. package/dist/types/actions/block-action.d.ts +27 -8
  60. package/dist/types/actions/block-action.d.ts.map +1 -1
  61. package/dist/types/actions/dialog-action.d.ts +0 -4
  62. package/dist/types/actions/dialog-action.d.ts.map +1 -1
  63. package/dist/types/events/base-events.d.ts +85 -33
  64. package/dist/types/events/base-events.d.ts.map +1 -1
  65. package/dist/types/events/base-events.js.map +1 -1
  66. package/dist/types/index.d.ts +0 -2
  67. package/dist/types/index.d.ts.map +1 -1
  68. package/dist/types/index.js +0 -2
  69. package/dist/types/index.js.map +1 -1
  70. package/dist/types/middleware.d.ts +5 -17
  71. package/dist/types/middleware.d.ts.map +1 -1
  72. package/dist/types/middleware.js.map +1 -1
  73. package/dist/types/options/index.d.ts +9 -10
  74. package/dist/types/options/index.d.ts.map +1 -1
  75. package/dist/types/shortcuts/index.d.ts +1 -1
  76. package/dist/types/shortcuts/index.d.ts.map +1 -1
  77. package/dist/types/utilities.d.ts +9 -8
  78. package/dist/types/utilities.d.ts.map +1 -1
  79. package/dist/types/view/index.d.ts +134 -6
  80. package/dist/types/view/index.d.ts.map +1 -1
  81. package/package.json +14 -29
  82. package/dist/Manifest.d.ts +0 -5
  83. package/dist/Manifest.d.ts.map +0 -1
  84. package/dist/Manifest.js +0 -16
  85. package/dist/Manifest.js.map +0 -1
  86. package/dist/SlackFunction.d.ts +0 -190
  87. package/dist/SlackFunction.d.ts.map +0 -1
  88. package/dist/SlackFunction.js +0 -441
  89. package/dist/SlackFunction.js.map +0 -1
  90. package/dist/Subscription.d.ts +0 -61
  91. package/dist/Subscription.d.ts.map +0 -1
  92. package/dist/Subscription.js +0 -169
  93. package/dist/Subscription.js.map +0 -1
  94. package/dist/cli/check-update.d.ts +0 -3
  95. package/dist/cli/check-update.d.ts.map +0 -1
  96. package/dist/cli/check-update.js +0 -13
  97. package/dist/cli/check-update.js.map +0 -1
  98. package/dist/cli/get-hooks.d.ts +0 -2
  99. package/dist/cli/get-hooks.d.ts.map +0 -1
  100. package/dist/cli/get-hooks.js +0 -19
  101. package/dist/cli/get-hooks.js.map +0 -1
  102. package/dist/cli/get-manifest.d.ts +0 -3
  103. package/dist/cli/get-manifest.d.ts.map +0 -1
  104. package/dist/cli/get-manifest.js +0 -16
  105. package/dist/cli/get-manifest.js.map +0 -1
  106. package/dist/cli/hook-utils/get-check-update-data.d.ts +0 -49
  107. package/dist/cli/hook-utils/get-check-update-data.d.ts.map +0 -1
  108. package/dist/cli/hook-utils/get-check-update-data.js +0 -252
  109. package/dist/cli/hook-utils/get-check-update-data.js.map +0 -1
  110. package/dist/cli/hook-utils/get-check-update-data.spec.d.ts +0 -2
  111. package/dist/cli/hook-utils/get-check-update-data.spec.d.ts.map +0 -1
  112. package/dist/cli/hook-utils/get-check-update-data.spec.js +0 -266
  113. package/dist/cli/hook-utils/get-check-update-data.spec.js.map +0 -1
  114. package/dist/cli/hook-utils/get-manifest-data.d.ts +0 -7
  115. package/dist/cli/hook-utils/get-manifest-data.d.ts.map +0 -1
  116. package/dist/cli/hook-utils/get-manifest-data.js +0 -30
  117. package/dist/cli/hook-utils/get-manifest-data.js.map +0 -1
  118. package/dist/cli/hook-utils/get-manifest-data.spec.d.ts +0 -2
  119. package/dist/cli/hook-utils/get-manifest-data.spec.d.ts.map +0 -1
  120. package/dist/cli/hook-utils/get-manifest-data.spec.js +0 -113
  121. package/dist/cli/hook-utils/get-manifest-data.spec.js.map +0 -1
  122. package/dist/cli/hook-utils/manifest.d.ts +0 -30
  123. package/dist/cli/hook-utils/manifest.d.ts.map +0 -1
  124. package/dist/cli/hook-utils/manifest.js +0 -103
  125. package/dist/cli/hook-utils/manifest.js.map +0 -1
  126. package/dist/cli/hook-utils/manifest.spec.d.ts +0 -2
  127. package/dist/cli/hook-utils/manifest.spec.d.ts.map +0 -1
  128. package/dist/cli/hook-utils/manifest.spec.js +0 -79
  129. package/dist/cli/hook-utils/manifest.spec.js.map +0 -1
  130. package/dist/cli/run.d.ts +0 -2
  131. package/dist/cli/run.d.ts.map +0 -1
  132. package/dist/cli/run.js +0 -37
  133. package/dist/cli/run.js.map +0 -1
  134. package/dist/cli/start.d.ts +0 -3
  135. package/dist/cli/start.d.ts.map +0 -1
  136. package/dist/cli/start.js +0 -40
  137. package/dist/cli/start.js.map +0 -1
  138. package/dist/types/block-suggestion/index.d.ts +0 -97
  139. package/dist/types/block-suggestion/index.d.ts.map +0 -1
  140. package/dist/types/block-suggestion/index.js.map +0 -1
  141. package/dist/types/functions/index.d.ts +0 -26
  142. package/dist/types/functions/index.d.ts.map +0 -1
  143. package/dist/types/functions/index.js +0 -3
  144. package/dist/types/functions/index.js.map +0 -1
  145. package/dist/types/subscription/index.d.ts +0 -80
  146. package/dist/types/subscription/index.d.ts.map +0 -1
  147. package/dist/types/subscription/index.js +0 -3
  148. package/dist/types/subscription/index.js.map +0 -1
  149. package/src/cli/check-update.js +0 -13
  150. package/src/cli/get-hooks.js +0 -17
  151. package/src/cli/get-manifest.js +0 -16
  152. package/src/cli/hook-utils/get-check-update-data.js +0 -292
  153. package/src/cli/hook-utils/get-manifest-data.js +0 -39
  154. package/src/cli/hook-utils/manifest.js +0 -108
  155. 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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W,CAAC,CAAC;YACvC,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,GAAG,0BAA0B,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;YAC/C,MAAM,GAAG,GAAG,eAAe,CAAC;YAC5B,MAAM;YACN,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,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,CAAC,CAAC,GAAW;IACrB,qDAAqD;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC9E,kCAAkC;IAClC,QAAQ,EAAE,CAAC;IAEX,2DAA2D;IAC3D,MAAM,GAAG,GAAG,IAAA,qBAAK,EAAC,MAAM,EAAE,CAAC,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9D,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC,8DAA8D;IAC9D,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QAC7B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QAC7B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QACvB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,uCAAuC,IAAI,EAAE,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAElB,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,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=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,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC;AAErF,mEAAmE;AACnE,6CAA6C;AAC7C,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,UAAU;IACzB,qDAAqD;IACrD,OAAO,CAAC,GAAG,CAAC,qDAAqD,CAAC,CAAC;IACnE,kCAAkC;IAClC,QAAQ,EAAE,CAAC;IAEX,6FAA6F;IAC7F,oBAAoB;IACpB,MAAM,cAAc,GAAG,UAAU,CAAC;IAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IACzG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAEtB,2DAA2D;IAC3D,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC3C,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QAC7B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QAC7B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,GAAG,CAAC,EAAE,CAAC,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,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,EAAE,qBAAqB,CAAC;CAC5B;AAED;;GAEG;AACH,oBAAY,sBAAsB,GAAG,kBAAkB,CAAC;AAExD,oBAAY,oBAAoB,GAAG,sBAAsB,CAAC;AAE1D,MAAM,WAAW,4BAA4B,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IACxE,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,+BAA+B,CAAC,CAAC,SAAS,MAAM,IAAI,oCAAoC,CAAC,CAAC,CAAC,SAAS,KAAK,GACjH,4BAA4B,CAAC,CAAC,CAAC,GAC/B,oCAAoC,CAAC,CAAC,CAAC,CAAC;AAE5C,oBAAY,oCAAoC,CAAC,CAAC,SAAS,MAAM,IAAI,OAAO,CAAC,oBAA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AAC;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":""}
@@ -1,26 +0,0 @@
1
- /**
2
- * Execution Context
3
- */
4
- export interface FunctionExecutionContext {
5
- execution_id: string;
6
- inputs: Record<string, unknown>;
7
- function: {
8
- callback_id: string;
9
- };
10
- }
11
- /**
12
- * FunctionInteractivityContext
13
- */
14
- export interface FunctionInteractivityContext {
15
- interactor: {
16
- secret: string;
17
- id: string;
18
- };
19
- interactivity_pointer: string;
20
- }
21
- export interface FunctionContext {
22
- bot_access_token?: string;
23
- function_data?: FunctionExecutionContext;
24
- interactivity?: FunctionInteractivityContext;
25
- }
26
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/functions/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;KACrB,CAAA;CACF;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE;QACV,MAAM,EAAE,MAAM,CAAC;QACf,EAAE,EAAE,MAAM,CAAC;KACZ,CAAA;IACD,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAID,MAAM,WAAW,eAAe;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,wBAAwB,CAAC;IACzC,aAAa,CAAC,EAAE,4BAA4B,CAAC;CAC9C"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/functions/index.ts"],"names":[],"mappings":""}
@@ -1,80 +0,0 @@
1
- import { ViewsOpenResponse } from '@slack/web-api';
2
- import { View } from '@slack/types';
3
- import { Middleware } from '../middleware';
4
- import { SayFn, AckFn } from '../utilities';
5
- export interface NotificationSubscription<T extends string = string> {
6
- type: T;
7
- token: string;
8
- action_ts: string;
9
- action_id: string;
10
- user: {
11
- id: string;
12
- name: string;
13
- };
14
- team: {
15
- id: string;
16
- domain: string;
17
- enterprise_id?: string;
18
- enterprise_name?: string;
19
- };
20
- }
21
- export interface SubscriptionCreateRequested extends NotificationSubscription<'notification_subscription_create_requested'> {
22
- channel: {
23
- id: string;
24
- };
25
- notification_subscription_action_trigger_id: string;
26
- notification_subscription: {
27
- resource_link: string;
28
- };
29
- }
30
- export interface SubscriptionConfigureRequested extends NotificationSubscription<'notification_subscription_configure_requested'> {
31
- notification_subscription_action_trigger_id: string;
32
- notification_subscription: {
33
- id: string;
34
- };
35
- }
36
- export interface SubscriptionDeleted extends NotificationSubscription<'notification_subscription_deleted'> {
37
- notification_subscription: {
38
- id: string;
39
- };
40
- }
41
- export declare type SubscriptionInteraction = SubscriptionCreateRequested | SubscriptionConfigureRequested | SubscriptionDeleted;
42
- /**
43
- * Utility mixin for middlewares to open a configuration modal view (views.open)
44
- */
45
- export interface UseConfigure {
46
- configure: {
47
- (params: View): Promise<ViewsOpenResponse>;
48
- };
49
- }
50
- /**
51
- * Utility mixin for middlewares which can be used to send a message to the user
52
- * */
53
- export interface UseSay {
54
- say: SayFn;
55
- }
56
- /**
57
- * Values and utilities middlewares receive in order to process incoming notification
58
- * subscription interactive payloads.
59
- * */
60
- export interface SubscriptionMiddlewareArgs<S extends SubscriptionInteraction = SubscriptionInteraction> {
61
- payload: S;
62
- body: S;
63
- ack: AckFn<void>;
64
- }
65
- export interface SubscriptionOnCreateMiddlewareArgs extends SubscriptionMiddlewareArgs, UseConfigure, UseSay {
66
- }
67
- export interface SubscriptionOnConfigureMiddlewareArgs extends SubscriptionMiddlewareArgs, UseConfigure {
68
- }
69
- export declare type SlackSubscriptionMiddlewareArgs = SubscriptionMiddlewareArgs | SubscriptionOnCreateMiddlewareArgs | SubscriptionOnConfigureMiddlewareArgs;
70
- /**
71
- * Types for middleware which handle notification subscription interaction
72
- * payloads defined above
73
- * */
74
- export declare type SubscriptionOnCreateMiddleware = Middleware<SubscriptionOnCreateMiddlewareArgs>;
75
- export declare type SubscriptionOnConfigureMiddleware = Middleware<SubscriptionOnConfigureMiddlewareArgs>;
76
- export declare type SubscriptionOnDeletedMiddleware = Middleware<SubscriptionMiddlewareArgs>;
77
- export interface SubConfigureFn {
78
- (params: View): Promise<ViewsOpenResponse>;
79
- }
80
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/subscription/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc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O,CAAC,iBAAiB,CAAC,CAAA;KAC3C,CAAC;CACH;AACD;;KAEK;AACL,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,KAAK,CAAC;CACZ;AACD;;;KAGK;AACL,MAAM,WAAW,0BAA0B,CAAC,CAAC,SAAS,uBAAuB,GAAG,uBAAuB;IACrG,OAAO,EAAE,CAAC,CAAC;IACX,IAAI,EAAE,CAAC,CAAC;IAGR,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CAClB;AACD,MAAM,WAAW,kCAAmC,SAAQ,0BAA0B,EAAE,YAAY,EAAE,MAAM;CAAG;AAC/G,MAAM,WAAW,qCAAsC,SAAQ,0BAA0B,EAAE,YAAY;CAAG;AAC1G,oBAAY,+BAA+B,GAC3C,0BAA0B,GAC1B,kCAAkC,GAClC,qCAAqC,CAAC;AAEtC;;;KAGK;AACL,oBAAY,8BAA8B,GAAG,UAAU,CAAC,kCAAkC,CAAC,CAAC;AAC5F,oBAAY,iCAAiC,GAAG,UAAU,CAAC,qCAAqC,CAAC,CAAC;AAClG,oBAAY,+BAA+B,GAAG,UAAU,CAAC,0BAA0B,CAAC,CAAC;AAErF,MAAM,WAAW,cAAc;IAC7B,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC5C"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/subscription/index.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node --no-warnings
2
- const { checkForSDKUpdates } = require('./hook-utils/get-check-update-data');
3
-
4
- /**
5
- * Implements the check-update hook and looks for available SDK updates.
6
- * Returns an object detailing info on Slack dependencies to pass up to the CLI.
7
- */
8
- (async function _(cwd) {
9
- let updates = await checkForSDKUpdates(cwd);
10
-
11
- // write updates to stdout
12
- console.log(JSON.stringify(updates));
13
- }(process.cwd()));
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- console.log(JSON.stringify({
3
- hooks: {
4
- 'get-manifest': 'npx -q --no-install -p @slack/bolt slack-cli-get-manifest',
5
- 'check-update': 'npx -q --no-install -p @slack/bolt slack-cli-check-update',
6
- start: 'npx -q --no-install -p @slack/bolt slack-cli-start',
7
- },
8
- config: {
9
- watch: {
10
- 'filter-regex': '^manifest\\.(ts|js|json)$',
11
- paths: [
12
- '.',
13
- ],
14
- },
15
- 'sdk-managed-connection-enabled': true,
16
- },
17
- }));
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env node
2
- const { getManifestData } = require('./hook-utils/get-manifest-data');
3
-
4
- /**
5
- * Implements the get-manifest script hook required by the Slack CLI
6
- * Returns a manifest JSON string to stdout.
7
- * Looks for a manifest.ts, .js and .json files. If multiple are found
8
- * Then any manifest.ts (or missing that, manifest.js) defined
9
- * properties will merge into any manifest.json
10
- */
11
- (function _(cwd) {
12
- let manifest = getManifestData(cwd);
13
-
14
- // write manifest to stdout
15
- console.log(JSON.stringify(manifest));
16
- }(process.cwd()));