@slack/bolt 4.7.2 → 5.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 (45) hide show
  1. package/README.md +1 -1
  2. package/dist/App.d.ts +2 -17
  3. package/dist/App.d.ts.map +1 -1
  4. package/dist/App.js +20 -39
  5. package/dist/App.js.map +1 -1
  6. package/dist/context/create-respond.d.ts +3 -3
  7. package/dist/context/create-respond.d.ts.map +1 -1
  8. package/dist/context/create-respond.js +6 -2
  9. package/dist/context/create-respond.js.map +1 -1
  10. package/dist/errors.d.ts +0 -8
  11. package/dist/errors.d.ts.map +1 -1
  12. package/dist/errors.js +1 -11
  13. package/dist/errors.js.map +1 -1
  14. package/dist/helpers.d.ts.map +1 -1
  15. package/dist/helpers.js +1 -2
  16. package/dist/helpers.js.map +1 -1
  17. package/dist/index.d.ts +0 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -3
  20. package/dist/index.js.map +1 -1
  21. package/dist/receivers/HTTPModuleFunctions.d.ts.map +1 -1
  22. package/dist/receivers/HTTPModuleFunctions.js +10 -14
  23. package/dist/receivers/HTTPModuleFunctions.js.map +1 -1
  24. package/dist/receivers/SocketModeFunctions.d.ts.map +1 -1
  25. package/dist/receivers/SocketModeFunctions.js +1 -1
  26. package/dist/receivers/SocketModeFunctions.js.map +1 -1
  27. package/dist/receivers/SocketModeReceiver.d.ts +3 -1
  28. package/dist/receivers/SocketModeReceiver.d.ts.map +1 -1
  29. package/dist/receivers/SocketModeReceiver.js +2 -1
  30. package/dist/receivers/SocketModeReceiver.js.map +1 -1
  31. package/dist/types/actions/index.d.ts +2 -4
  32. package/dist/types/actions/index.d.ts.map +1 -1
  33. package/dist/types/actions/index.js +0 -2
  34. package/dist/types/actions/index.js.map +1 -1
  35. package/dist/types/view/index.d.ts +1 -31
  36. package/dist/types/view/index.d.ts.map +1 -1
  37. package/package.json +10 -11
  38. package/dist/WorkflowStep.d.ts +0 -159
  39. package/dist/WorkflowStep.d.ts.map +0 -1
  40. package/dist/WorkflowStep.js +0 -217
  41. package/dist/WorkflowStep.js.map +0 -1
  42. package/dist/types/actions/workflow-step-edit.d.ts +0 -49
  43. package/dist/types/actions/workflow-step-edit.d.ts.map +0 -1
  44. package/dist/types/actions/workflow-step-edit.js +0 -3
  45. package/dist/types/actions/workflow-step-edit.js.map +0 -1
@@ -1,217 +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
- exports.prepareStepArgs = exports.isStepEvent = exports.processStepMiddleware = exports.validate = exports.WorkflowStep = void 0;
7
- const errors_1 = require("./errors");
8
- const process_1 = __importDefault(require("./middleware/process"));
9
- /** Constants */
10
- const VALID_PAYLOAD_TYPES = new Set(['workflow_step_edit', 'workflow_step', 'workflow_step_execute']);
11
- /** @deprecated Steps from Apps are no longer supported and support for them will be removed in the next major bolt-js
12
- * version.
13
- */
14
- class WorkflowStep {
15
- /** Step callback_id */
16
- callbackId;
17
- /** Step Add/Edit :: 'workflow_step_edit' action */
18
- edit;
19
- /** Step Config Save :: 'view_submission' */
20
- save;
21
- /** Step Executed/Run :: 'workflow_step_execute' event */
22
- execute;
23
- constructor(callbackId, config) {
24
- validate(callbackId, config);
25
- const { save, edit, execute } = config;
26
- this.callbackId = callbackId;
27
- this.save = Array.isArray(save) ? save : [save];
28
- this.edit = Array.isArray(edit) ? edit : [edit];
29
- this.execute = Array.isArray(execute) ? execute : [execute];
30
- }
31
- getMiddleware() {
32
- return async (args) => {
33
- if (isStepEvent(args) && this.matchesConstraints(args)) {
34
- return this.processEvent(args);
35
- }
36
- return args.next();
37
- };
38
- }
39
- matchesConstraints(args) {
40
- return args.payload.callback_id === this.callbackId;
41
- }
42
- async processEvent(args) {
43
- const { payload } = args;
44
- const stepArgs = prepareStepArgs(args);
45
- const stepMiddleware = this.getStepMiddleware(payload);
46
- return processStepMiddleware(stepArgs, stepMiddleware);
47
- }
48
- getStepMiddleware(payload) {
49
- switch (payload.type) {
50
- case 'workflow_step_edit':
51
- return this.edit;
52
- case 'workflow_step':
53
- return this.save;
54
- case 'workflow_step_execute':
55
- return this.execute;
56
- default:
57
- return [];
58
- }
59
- }
60
- }
61
- exports.WorkflowStep = WorkflowStep;
62
- /** Helper Functions */
63
- /** @deprecated Steps from Apps are no longer supported and support for them will be removed in the next major bolt-js
64
- * version.
65
- */
66
- function validate(callbackId, config) {
67
- // Ensure callbackId is valid
68
- if (typeof callbackId !== 'string') {
69
- const errorMsg = 'WorkflowStep expects a callback_id as the first argument';
70
- throw new errors_1.WorkflowStepInitializationError(errorMsg);
71
- }
72
- // Ensure step config object is passed in
73
- if (typeof config !== 'object') {
74
- const errorMsg = 'WorkflowStep expects a configuration object as the second argument';
75
- throw new errors_1.WorkflowStepInitializationError(errorMsg);
76
- }
77
- // Check for missing required keys
78
- const requiredKeys = ['save', 'edit', 'execute'];
79
- const missingKeys = [];
80
- for (const key of requiredKeys) {
81
- if (config[key] === undefined) {
82
- missingKeys.push(key);
83
- }
84
- }
85
- if (missingKeys.length > 0) {
86
- const errorMsg = `WorkflowStep is missing required keys: ${missingKeys.join(', ')}`;
87
- throw new errors_1.WorkflowStepInitializationError(errorMsg);
88
- }
89
- // Ensure a callback or an array of callbacks is present
90
- const requiredFns = ['save', 'edit', 'execute'];
91
- for (const fn of requiredFns) {
92
- if (typeof config[fn] !== 'function' && !Array.isArray(config[fn])) {
93
- const errorMsg = `WorkflowStep ${fn} property must be a function or an array of functions`;
94
- throw new errors_1.WorkflowStepInitializationError(errorMsg);
95
- }
96
- }
97
- }
98
- exports.validate = validate;
99
- /**
100
- * `processStepMiddleware()` invokes each callback for lifecycle event
101
- * @deprecated Steps from Apps are no longer supported and support for them will be removed in the next major bolt-js
102
- * version.
103
- * @param args workflow_step_edit action
104
- */
105
- async function processStepMiddleware(args, middleware) {
106
- const { context, client, logger } = args;
107
- // TODO :: revisit type used below (look into contravariance)
108
- const callbacks = [...middleware];
109
- const lastCallback = callbacks.pop();
110
- if (lastCallback !== undefined) {
111
- await (0, process_1.default)(callbacks, args, context, client, logger, async () => lastCallback({ ...args, context, client, logger }));
112
- }
113
- }
114
- exports.processStepMiddleware = processStepMiddleware;
115
- /** @deprecated Steps from Apps are no longer supported and support for them will be removed in the next major bolt-js
116
- * version.
117
- */
118
- function isStepEvent(args) {
119
- return VALID_PAYLOAD_TYPES.has(args.payload.type);
120
- }
121
- exports.isStepEvent = isStepEvent;
122
- function selectToken(context) {
123
- return context.botToken !== undefined ? context.botToken : context.userToken;
124
- }
125
- /**
126
- * Factory for `configure()` utility
127
- * @param args workflow_step_edit action
128
- */
129
- function createStepConfigure(args) {
130
- const { context, client, body: { callback_id, trigger_id }, } = args;
131
- const token = selectToken(context);
132
- return (params) => client.views.open({
133
- token,
134
- trigger_id,
135
- view: {
136
- callback_id,
137
- type: 'workflow_step',
138
- ...params,
139
- },
140
- });
141
- }
142
- /**
143
- * Factory for `update()` utility
144
- * @param args view_submission event
145
- */
146
- function createStepUpdate(args) {
147
- const { context, client, body: { workflow_step: { workflow_step_edit_id }, }, } = args;
148
- const token = selectToken(context);
149
- return (params = {}) => client.workflows.updateStep({
150
- token,
151
- workflow_step_edit_id,
152
- ...params,
153
- });
154
- }
155
- /**
156
- * Factory for `complete()` utility
157
- * @param args workflow_step_execute event
158
- */
159
- function createStepComplete(args) {
160
- const { context, client, payload: { workflow_step: { workflow_step_execute_id }, }, } = args;
161
- const token = selectToken(context);
162
- return (params = {}) => client.workflows.stepCompleted({
163
- token,
164
- workflow_step_execute_id,
165
- ...params,
166
- });
167
- }
168
- /**
169
- * Factory for `fail()` utility
170
- * @param args workflow_step_execute event
171
- */
172
- function createStepFail(args) {
173
- const { context, client, payload: { workflow_step: { workflow_step_execute_id }, }, } = args;
174
- const token = selectToken(context);
175
- return (params) => {
176
- const { error } = params;
177
- return client.workflows.stepFailed({
178
- token,
179
- workflow_step_execute_id,
180
- error,
181
- });
182
- };
183
- }
184
- /**
185
- * `prepareStepArgs()` takes in a step's args and:
186
- * 1. removes the next() passed in from App-level middleware processing
187
- * - events will *not* continue down global middleware chain to subsequent listeners
188
- * 2. augments args with step lifecycle-specific properties/utilities
189
- * @deprecated Steps from Apps are no longer supported and support for them will be removed in the next major bolt-js
190
- * version.
191
- */
192
- // TODO :: refactor to incorporate a generic parameter
193
- function prepareStepArgs(args) {
194
- const { next: _next, ...stepArgs } = args;
195
- // biome-ignore lint/suspicious/noExplicitAny: need to use any as the cases of the switch that follows dont narrow to the specific required args type. use type predicates for each workflow_step event args in the switch to get rid of this any.
196
- const preparedArgs = { ...stepArgs };
197
- switch (preparedArgs.payload.type) {
198
- case 'workflow_step_edit':
199
- preparedArgs.step = preparedArgs.action.workflow_step;
200
- preparedArgs.configure = createStepConfigure(preparedArgs);
201
- break;
202
- case 'workflow_step':
203
- preparedArgs.step = preparedArgs.body.workflow_step;
204
- preparedArgs.update = createStepUpdate(preparedArgs);
205
- break;
206
- case 'workflow_step_execute':
207
- preparedArgs.step = preparedArgs.event.workflow_step;
208
- preparedArgs.complete = createStepComplete(preparedArgs);
209
- preparedArgs.fail = createStepFail(preparedArgs);
210
- break;
211
- default:
212
- break;
213
- }
214
- return preparedArgs;
215
- }
216
- exports.prepareStepArgs = prepareStepArgs;
217
- //# sourceMappingURL=WorkflowStep.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkflowStep.js","sourceRoot":"","sources":["../src/WorkflowStep.ts"],"names":[],"mappings":";;;;;;AASA,qCAA2D;AAC3D,mEAAqD;AA4JrD,gBAAgB;AAEhB,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,CAAC,oBAAoB,EAAE,eAAe,EAAE,uBAAuB,CAAC,CAAC,CAAC;AAEtG;;GAEG;AACH,MAAa,YAAY;IACvB,uBAAuB;IACf,UAAU,CAAS;IAE3B,mDAAmD;IAC3C,IAAI,CAA+B;IAE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AAC;YACrD,YAAY,CAAC,QAAQ,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;YACzD,YAAY,CAAC,IAAI,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;YACjD,MAAM;QACR;YACE,MAAM;IACV,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAxBD,0CAwBC"}
@@ -1,49 +0,0 @@
1
- /**
2
- * A Slack step from app action wrapped in the standard metadata.
3
- *
4
- * This describes the entire JSON-encoded body of a request from Slack step from app actions.
5
- * @deprecated Steps from Apps are no longer supported and support for them will be removed in the next major bolt-js
6
- * version.
7
- */
8
- export interface WorkflowStepEdit {
9
- type: 'workflow_step_edit';
10
- callback_id: string;
11
- trigger_id: string;
12
- user: {
13
- id: string;
14
- username: string;
15
- team_id?: string;
16
- };
17
- team: {
18
- id: string;
19
- domain: string;
20
- enterprise_id?: string;
21
- enterprise_name?: string;
22
- };
23
- channel?: {
24
- id?: string;
25
- name?: string;
26
- };
27
- token: string;
28
- action_ts: string;
29
- workflow_step: {
30
- workflow_id: string;
31
- step_id: string;
32
- inputs: Record<string, {
33
- value: any;
34
- }>;
35
- outputs: {
36
- name: string;
37
- type: string;
38
- label: string;
39
- }[];
40
- step_name?: string;
41
- step_image_url?: string;
42
- };
43
- is_enterprise_install?: boolean;
44
- enterprise?: {
45
- id: string;
46
- name: string;
47
- };
48
- }
49
- //# sourceMappingURL=workflow-step-edit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow-step-edit.d.ts","sourceRoot":"","sources":["../../../src/types/actions/workflow-step-edit.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,OAAO,CAAC,EAAE;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CACZ,MAAM,EACN;YAEE,KAAK,EAAE,GAAG,CAAC;SACZ,CACF,CAAC;QACF,OAAO,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;SACf,EAAE,CAAC;QACJ,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IAGF,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,CAAC,EAAE;QACX,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=workflow-step-edit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow-step-edit.js","sourceRoot":"","sources":["../../../src/types/actions/workflow-step-edit.ts"],"names":[],"mappings":""}