@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.
- package/README.md +22 -16
- package/dist/App.d.ts +39 -80
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +223 -234
- package/dist/App.js.map +1 -1
- package/dist/CustomFunction.d.ts +58 -0
- package/dist/CustomFunction.d.ts.map +1 -0
- package/dist/CustomFunction.js +144 -0
- package/dist/CustomFunction.js.map +1 -0
- package/dist/WorkflowStep.d.ts +89 -36
- package/dist/WorkflowStep.d.ts.map +1 -1
- package/dist/WorkflowStep.js +29 -8
- package/dist/WorkflowStep.js.map +1 -1
- package/dist/conversation-store.d.ts +1 -1
- package/dist/conversation-store.d.ts.map +1 -1
- package/dist/conversation-store.js +3 -3
- package/dist/conversation-store.js.map +1 -1
- package/dist/errors.d.ts +12 -7
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +42 -53
- package/dist/errors.js.map +1 -1
- package/dist/helpers.d.ts +16 -3
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +43 -11
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/dist/middleware/builtin.d.ts +20 -23
- package/dist/middleware/builtin.d.ts.map +1 -1
- package/dist/middleware/builtin.js +93 -110
- package/dist/middleware/builtin.js.map +1 -1
- package/dist/middleware/process.d.ts +3 -3
- package/dist/middleware/process.d.ts.map +1 -1
- package/dist/middleware/process.js +1 -1
- package/dist/middleware/process.js.map +1 -1
- package/dist/receivers/AwsLambdaReceiver.d.ts +77 -16
- package/dist/receivers/AwsLambdaReceiver.d.ts.map +1 -1
- package/dist/receivers/AwsLambdaReceiver.js +53 -25
- package/dist/receivers/AwsLambdaReceiver.js.map +1 -1
- package/dist/receivers/BufferedIncomingMessage.d.ts +2 -1
- package/dist/receivers/BufferedIncomingMessage.d.ts.map +1 -1
- package/dist/receivers/ExpressReceiver.d.ts +13 -13
- package/dist/receivers/ExpressReceiver.d.ts.map +1 -1
- package/dist/receivers/ExpressReceiver.js +70 -70
- package/dist/receivers/ExpressReceiver.js.map +1 -1
- package/dist/receivers/HTTPModuleFunctions.d.ts +18 -20
- package/dist/receivers/HTTPModuleFunctions.d.ts.map +1 -1
- package/dist/receivers/HTTPModuleFunctions.js +189 -171
- package/dist/receivers/HTTPModuleFunctions.js.map +1 -1
- package/dist/receivers/HTTPReceiver.d.ts +14 -14
- package/dist/receivers/HTTPReceiver.d.ts.map +1 -1
- package/dist/receivers/HTTPReceiver.js +102 -48
- package/dist/receivers/HTTPReceiver.js.map +1 -1
- package/dist/receivers/HTTPResponseAck.d.ts +7 -7
- package/dist/receivers/HTTPResponseAck.d.ts.map +1 -1
- package/dist/receivers/HTTPResponseAck.js +37 -5
- package/dist/receivers/HTTPResponseAck.js.map +1 -1
- package/dist/receivers/ParamsIncomingMessage.d.ts +14 -0
- package/dist/receivers/ParamsIncomingMessage.d.ts.map +1 -0
- package/dist/{types/block-suggestion/index.js → receivers/ParamsIncomingMessage.js} +1 -1
- package/dist/receivers/ParamsIncomingMessage.js.map +1 -0
- package/dist/receivers/SocketModeFunctions.d.ts +3 -5
- package/dist/receivers/SocketModeFunctions.d.ts.map +1 -1
- package/dist/receivers/SocketModeFunctions.js +14 -23
- package/dist/receivers/SocketModeFunctions.js.map +1 -1
- package/dist/receivers/SocketModeReceiver.d.ts +10 -9
- package/dist/receivers/SocketModeReceiver.d.ts.map +1 -1
- package/dist/receivers/SocketModeReceiver.js +41 -25
- package/dist/receivers/SocketModeReceiver.js.map +1 -1
- package/dist/receivers/custom-routes.d.ts +4 -3
- package/dist/receivers/custom-routes.d.ts.map +1 -1
- package/dist/receivers/custom-routes.js +10 -9
- package/dist/receivers/custom-routes.js.map +1 -1
- package/dist/receivers/verify-redirect-opts.d.ts +1 -1
- package/dist/receivers/verify-redirect-opts.d.ts.map +1 -1
- package/dist/receivers/verify-redirect-opts.js +3 -3
- package/dist/receivers/verify-redirect-opts.js.map +1 -1
- package/dist/receivers/verify-request.d.ts +1 -12
- package/dist/receivers/verify-request.d.ts.map +1 -1
- package/dist/receivers/verify-request.js +4 -18
- package/dist/receivers/verify-request.js.map +1 -1
- package/dist/types/actions/block-action.d.ts +41 -22
- package/dist/types/actions/block-action.d.ts.map +1 -1
- package/dist/types/actions/dialog-action.d.ts +0 -4
- package/dist/types/actions/dialog-action.d.ts.map +1 -1
- package/dist/types/actions/index.d.ts +25 -11
- package/dist/types/actions/index.d.ts.map +1 -1
- package/dist/types/actions/index.js +1 -0
- package/dist/types/actions/index.js.map +1 -1
- package/dist/types/actions/interactive-message.d.ts +3 -3
- package/dist/types/actions/interactive-message.d.ts.map +1 -1
- package/dist/types/actions/workflow-step-edit.d.ts +7 -7
- package/dist/types/actions/workflow-step-edit.d.ts.map +1 -1
- package/dist/types/command/index.d.ts +1 -2
- package/dist/types/command/index.d.ts.map +1 -1
- package/dist/types/events/index.d.ts +26 -24
- package/dist/types/events/index.d.ts.map +1 -1
- package/dist/types/events/index.js +4 -15
- package/dist/types/events/index.js.map +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/middleware.d.ts +30 -30
- package/dist/types/middleware.d.ts.map +1 -1
- package/dist/types/middleware.js +3 -0
- package/dist/types/middleware.js.map +1 -1
- package/dist/types/options/index.d.ts +23 -59
- package/dist/types/options/index.d.ts.map +1 -1
- package/dist/types/receiver.d.ts +3 -3
- package/dist/types/receiver.d.ts.map +1 -1
- package/dist/types/shortcuts/global-shortcut.d.ts.map +1 -1
- package/dist/types/shortcuts/index.d.ts +14 -9
- package/dist/types/shortcuts/index.d.ts.map +1 -1
- package/dist/types/shortcuts/message-shortcut.d.ts.map +1 -1
- package/dist/types/utilities.d.ts +23 -13
- package/dist/types/utilities.d.ts.map +1 -1
- package/dist/types/utilities.js +7 -0
- package/dist/types/utilities.js.map +1 -1
- package/dist/types/view/index.d.ts +148 -12
- package/dist/types/view/index.d.ts.map +1 -1
- package/package.json +32 -61
- package/dist/Manifest.d.ts +0 -5
- package/dist/Manifest.d.ts.map +0 -1
- package/dist/Manifest.js +0 -16
- package/dist/Manifest.js.map +0 -1
- package/dist/SlackFunction.d.ts +0 -190
- package/dist/SlackFunction.d.ts.map +0 -1
- package/dist/SlackFunction.js +0 -441
- package/dist/SlackFunction.js.map +0 -1
- package/dist/Subscription.d.ts +0 -61
- package/dist/Subscription.d.ts.map +0 -1
- package/dist/Subscription.js +0 -169
- package/dist/Subscription.js.map +0 -1
- package/dist/cli/check-update.d.ts +0 -3
- package/dist/cli/check-update.d.ts.map +0 -1
- package/dist/cli/check-update.js +0 -13
- package/dist/cli/check-update.js.map +0 -1
- package/dist/cli/get-hooks.d.ts +0 -2
- package/dist/cli/get-hooks.d.ts.map +0 -1
- package/dist/cli/get-hooks.js +0 -19
- package/dist/cli/get-hooks.js.map +0 -1
- package/dist/cli/get-manifest.d.ts +0 -3
- package/dist/cli/get-manifest.d.ts.map +0 -1
- package/dist/cli/get-manifest.js +0 -16
- package/dist/cli/get-manifest.js.map +0 -1
- package/dist/cli/hook-utils/get-check-update-data.d.ts +0 -49
- package/dist/cli/hook-utils/get-check-update-data.d.ts.map +0 -1
- package/dist/cli/hook-utils/get-check-update-data.js +0 -252
- package/dist/cli/hook-utils/get-check-update-data.js.map +0 -1
- package/dist/cli/hook-utils/get-check-update-data.spec.d.ts +0 -2
- package/dist/cli/hook-utils/get-check-update-data.spec.d.ts.map +0 -1
- package/dist/cli/hook-utils/get-check-update-data.spec.js +0 -266
- package/dist/cli/hook-utils/get-check-update-data.spec.js.map +0 -1
- package/dist/cli/hook-utils/get-manifest-data.d.ts +0 -7
- package/dist/cli/hook-utils/get-manifest-data.d.ts.map +0 -1
- package/dist/cli/hook-utils/get-manifest-data.js +0 -30
- package/dist/cli/hook-utils/get-manifest-data.js.map +0 -1
- package/dist/cli/hook-utils/get-manifest-data.spec.d.ts +0 -2
- package/dist/cli/hook-utils/get-manifest-data.spec.d.ts.map +0 -1
- package/dist/cli/hook-utils/get-manifest-data.spec.js +0 -113
- package/dist/cli/hook-utils/get-manifest-data.spec.js.map +0 -1
- package/dist/cli/hook-utils/manifest.d.ts +0 -30
- package/dist/cli/hook-utils/manifest.d.ts.map +0 -1
- package/dist/cli/hook-utils/manifest.js +0 -103
- package/dist/cli/hook-utils/manifest.js.map +0 -1
- package/dist/cli/hook-utils/manifest.spec.d.ts +0 -2
- package/dist/cli/hook-utils/manifest.spec.d.ts.map +0 -1
- package/dist/cli/hook-utils/manifest.spec.js +0 -79
- package/dist/cli/hook-utils/manifest.spec.js.map +0 -1
- package/dist/cli/run.d.ts +0 -2
- package/dist/cli/run.d.ts.map +0 -1
- package/dist/cli/run.js +0 -37
- package/dist/cli/run.js.map +0 -1
- package/dist/cli/start.d.ts +0 -3
- package/dist/cli/start.d.ts.map +0 -1
- package/dist/cli/start.js +0 -40
- package/dist/cli/start.js.map +0 -1
- package/dist/receivers/http-utils.d.ts +0 -5
- package/dist/receivers/http-utils.d.ts.map +0 -1
- package/dist/receivers/http-utils.js +0 -19
- package/dist/receivers/http-utils.js.map +0 -1
- package/dist/receivers/render-html-for-install-path.d.ts +0 -3
- package/dist/receivers/render-html-for-install-path.d.ts.map +0 -1
- package/dist/receivers/render-html-for-install-path.js +0 -32
- package/dist/receivers/render-html-for-install-path.js.map +0 -1
- package/dist/types/block-suggestion/index.d.ts +0 -97
- package/dist/types/block-suggestion/index.d.ts.map +0 -1
- package/dist/types/block-suggestion/index.js.map +0 -1
- package/dist/types/events/base-events.d.ts +0 -1135
- package/dist/types/events/base-events.d.ts.map +0 -1
- package/dist/types/events/base-events.js +0 -5
- package/dist/types/events/base-events.js.map +0 -1
- package/dist/types/events/message-events.d.ts +0 -348
- package/dist/types/events/message-events.d.ts.map +0 -1
- package/dist/types/events/message-events.js +0 -3
- package/dist/types/events/message-events.js.map +0 -1
- package/dist/types/functions/index.d.ts +0 -26
- package/dist/types/functions/index.d.ts.map +0 -1
- package/dist/types/functions/index.js +0 -3
- package/dist/types/functions/index.js.map +0 -1
- package/dist/types/helpers.d.ts +0 -17
- package/dist/types/helpers.d.ts.map +0 -1
- package/dist/types/helpers.js +0 -3
- package/dist/types/helpers.js.map +0 -1
- package/dist/types/subscription/index.d.ts +0 -80
- package/dist/types/subscription/index.d.ts.map +0 -1
- package/dist/types/subscription/index.js +0 -3
- package/dist/types/subscription/index.js.map +0 -1
- package/src/cli/check-update.js +0 -13
- package/src/cli/get-hooks.js +0 -17
- package/src/cli/get-manifest.js +0 -16
- package/src/cli/hook-utils/get-check-update-data.js +0 -292
- package/src/cli/hook-utils/get-manifest-data.js +0 -39
- package/src/cli/hook-utils/manifest.js +0 -108
- package/src/cli/start.js +0 -43
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Bolt
|
|
1
|
+
# Bolt <img src="https://raw.githubusercontent.com/slackapi/bolt-js/main/docs/static/img/bolt.svg" alt="Bolt logo" width="32"/> for JavaScript
|
|
2
2
|
|
|
3
3
|
[](https://codecov.io/gh/slackapi/bolt-js)
|
|
4
4
|
[](https://github.com/slackapi/bolt-js/actions/workflows/ci-build.yml)
|
|
5
5
|
|
|
6
|
-
A JavaScript framework to build Slack apps in a flash with the latest platform features. Read the [getting started guide](https://slack.dev/bolt-js/tutorial/getting-started) to set-up and run your first Bolt app.
|
|
6
|
+
A JavaScript framework to build Slack apps in a flash with the latest platform features. Read the [getting started guide](https://tools.slack.dev/bolt-js/tutorial/getting-started) to set-up and run your first Bolt app.
|
|
7
7
|
|
|
8
|
-
Read [the documentation](https://slack.dev/bolt-js) to explore the basic and advanced concepts of Bolt for JavaScript.
|
|
8
|
+
Read [the documentation](https://tools.slack.dev/bolt-js) to explore the basic and advanced concepts of Bolt for JavaScript.
|
|
9
9
|
|
|
10
10
|
## Setup
|
|
11
11
|
|
|
@@ -45,29 +45,33 @@ Apps typically react to a collection of incoming events, which can correspond [E
|
|
|
45
45
|
request, there's a method to build a listener function.
|
|
46
46
|
|
|
47
47
|
```js
|
|
48
|
+
// Listen for an action from a Block Kit element (buttons, select menus, date pickers, etc)
|
|
49
|
+
app.action(actionId, fn);
|
|
50
|
+
|
|
51
|
+
// Listen for dialog submissions
|
|
52
|
+
app.action({ callback_id: callbackId }, fn);
|
|
53
|
+
|
|
54
|
+
// Listen for slash commands
|
|
55
|
+
app.command(commandName, fn);
|
|
56
|
+
|
|
48
57
|
// Listen for an event from the Events API
|
|
49
58
|
app.event(eventType, fn);
|
|
50
59
|
|
|
60
|
+
// Listen for a custom step execution from a workflow
|
|
61
|
+
app.function(callbackId, fn)
|
|
62
|
+
|
|
51
63
|
// Convenience method to listen to only `message` events using a string or RegExp
|
|
52
64
|
app.message([pattern ,] fn);
|
|
53
65
|
|
|
54
|
-
// Listen for
|
|
55
|
-
app.
|
|
56
|
-
|
|
57
|
-
// Listen for dialog submissions
|
|
58
|
-
app.action({ callback_id: callbackId }, fn);
|
|
66
|
+
// Listen for options requests (from select menus with an external data source)
|
|
67
|
+
app.options(actionId, fn);
|
|
59
68
|
|
|
60
69
|
// Listen for a global or message shortcuts
|
|
61
70
|
app.shortcut(callbackId, fn);
|
|
62
71
|
|
|
63
|
-
// Listen for slash commands
|
|
64
|
-
app.command(commandName, fn);
|
|
65
|
-
|
|
66
72
|
// Listen for view_submission modal events
|
|
67
73
|
app.view(callbackId, fn);
|
|
68
74
|
|
|
69
|
-
// Listen for options requests (from select menus with an external data source)
|
|
70
|
-
app.options(actionId, fn);
|
|
71
75
|
```
|
|
72
76
|
|
|
73
77
|
## Making things happen
|
|
@@ -76,13 +80,15 @@ Most of the app's functionality will be inside listener functions (the `fn` para
|
|
|
76
80
|
|
|
77
81
|
| Argument | Description |
|
|
78
82
|
| :---: | :--- |
|
|
79
|
-
| `payload` | Contents of the incoming event. The payload structure depends on the listener. For example, for an Events API event, `payload` will be the [event type structure](https://api.slack.com/events-api#event_type_structure). For a block action, it will be the action from within the `actions` array. The `payload` object is also accessible via the alias corresponding to the listener (`message`, `event`, `action`, `shortcut`, `view`, `command`, or `options`). For example, if you were building a `message()` listener, you could use the `payload` and `message` arguments interchangeably. **An easy way to understand what's in a payload is to log it**, or
|
|
83
|
+
| `payload` | Contents of the incoming event. The payload structure depends on the listener. For example, for an Events API event, `payload` will be the [event type structure](https://api.slack.com/events-api#event_type_structure). For a block action, it will be the action from within the `actions` array. The `payload` object is also accessible via the alias corresponding to the listener (`message`, `event`, `action`, `shortcut`, `view`, `command`, or `options`). For example, if you were building a `message()` listener, you could use the `payload` and `message` arguments interchangeably. **An easy way to understand what's in a payload is to log it**, or use TypeScript. |
|
|
80
84
|
| `say` | Function to send a message to the channel associated with the incoming event. This argument is only available when the listener is triggered for events that contain a `channel_id` (the most common being `message` events). `say` accepts simple strings (for plain-text messages) and objects (for messages containing blocks). `say` returns a promise that will resolve with a [`chat.postMessage` response](https://api.slack.com/methods/chat.postMessage).
|
|
81
85
|
| `ack` | Function that **must** be called to acknowledge that an incoming event was received by your app. `ack` exists for all actions, shortcuts, view, slash command and options requests. `ack` returns a promise that resolves when complete. Read more in [Acknowledging events](#acknowledging-events)
|
|
82
86
|
| `client` | Web API client that uses the token associated with that event. For single-workspace installations, the token is provided to the constructor. For multi-workspace installations, the token is returned by the `authorize` function.
|
|
83
87
|
| `respond` | Function that responds to an incoming event **if** it contains a `response_url` (actions, shortcuts, view submissions, and slash commands). `respond` returns a promise that resolves with the results of responding using the `response_url`.
|
|
84
88
|
| `context` | Event context. This object contains data about the event and the app, such as the `botId`. Middleware can add additional context before the event is passed to listeners.
|
|
85
89
|
| `body` | Object that contains the entire body of the request (superset of `payload`). Some accessory data is only available outside of the payload (such as `trigger_id` and `authorizations`).
|
|
90
|
+
| `complete` | Function used to signal the successful completion of a custom step execution. This tells Slack to proceed with the next steps in the workflow. This argument is only available with the `.function` and `.action` listener when handling custom workflow step executions.
|
|
91
|
+
| `fail` | Function used to signal that a custom step failed to complete. This tells Slack to stop the workflow execution. This argument is only available with the `.function` and `.action` listener when handling custom workflow step executions.
|
|
86
92
|
|
|
87
93
|
|
|
88
94
|
The arguments are grouped into properties of one object, so that it's easier to pick just the ones your listener needs (using
|
|
@@ -101,7 +107,7 @@ app.message(async ({ message, say }) => {
|
|
|
101
107
|
|
|
102
108
|
### Calling the Web API
|
|
103
109
|
|
|
104
|
-
In addition to the [`client` property passed to listeners](#making-things-happen), each app has a top-level `client` that can be used to call methods. Unlike the `client` passed to listeners, the top-level client must be passed a `token`. [Read the documentation](https://slack.dev/bolt-js/concepts#web-api) for more details.
|
|
110
|
+
In addition to the [`client` property passed to listeners](#making-things-happen), each app has a top-level `client` that can be used to call methods. Unlike the `client` passed to listeners, the top-level client must be passed a `token`. [Read the documentation](https://tools.slack.dev/bolt-js/concepts#web-api) for more details.
|
|
105
111
|
|
|
106
112
|
### Acknowledging events
|
|
107
113
|
|
|
@@ -123,7 +129,7 @@ Depending on the type of incoming event a listener is meant for, `ack()` should
|
|
|
123
129
|
|
|
124
130
|
## Getting Help
|
|
125
131
|
|
|
126
|
-
[The documentation](https://slack.dev/bolt-js) has more information on basic and advanced concepts for Bolt for JavaScript.
|
|
132
|
+
[The documentation](https://tools.slack.dev/bolt-js) has more information on basic and advanced concepts for Bolt for JavaScript.
|
|
127
133
|
|
|
128
134
|
If you otherwise get stuck, we're here to help. The following are the best ways to get assistance working through your issue:
|
|
129
135
|
|
package/dist/App.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
import { Agent } from 'http';
|
|
4
|
-
import { SecureContextOptions } from 'tls';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import type { Agent } from 'node:http';
|
|
4
|
+
import type { SecureContextOptions } from 'node:tls';
|
|
5
|
+
import { LogLevel, type Logger } from '@slack/logger';
|
|
6
|
+
import { WebClient, type WebClientOptions } from '@slack/web-api';
|
|
7
|
+
import { type CustomFunctionMiddleware } from './CustomFunction';
|
|
8
|
+
import type { WorkflowStep } from './WorkflowStep';
|
|
9
|
+
import { type ConversationStore } from './conversation-store';
|
|
10
|
+
import { type CodedError } from './errors';
|
|
11
|
+
import HTTPReceiver, { type HTTPReceiverOptions } from './receivers/HTTPReceiver';
|
|
7
12
|
import SocketModeReceiver from './receivers/SocketModeReceiver';
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { SubscriptionOptions } from './Subscription';
|
|
12
|
-
import { SlackFunction } from './SlackFunction';
|
|
13
|
-
import { Middleware, AnyMiddlewareArgs, SlackActionMiddlewareArgs, SlackCommandMiddlewareArgs, SlackEventMiddlewareArgs, SlackOptionsMiddlewareArgs, SlackShortcutMiddlewareArgs, SlackViewMiddlewareArgs, SlackAction, SlackShortcut, Context, OptionsSource, BlockAction, SlackViewAction, Receiver, ReceiverEvent, SlackBlockSuggestion } from './types';
|
|
14
|
-
import { CodedError } from './errors';
|
|
15
|
-
import { StringIndexed } from './types/helpers';
|
|
13
|
+
import type { ActionConstraints, AnyMiddlewareArgs, Context, Middleware, OptionsConstraints, OptionsSource, Receiver, ReceiverEvent, ShortcutConstraints, SlackAction, SlackActionMiddlewareArgs, SlackCommandMiddlewareArgs, SlackEventMiddlewareArgs, SlackOptionsMiddlewareArgs, SlackShortcut, SlackShortcutMiddlewareArgs, SlackViewAction, SlackViewMiddlewareArgs, ViewConstraints } from './types';
|
|
14
|
+
import { type StringIndexed } from './types/utilities';
|
|
15
|
+
export type { ActionConstraints, OptionsConstraints, ShortcutConstraints, ViewConstraints } from './types';
|
|
16
16
|
/** App initialization options */
|
|
17
17
|
export interface AppOptions {
|
|
18
18
|
signingSecret?: HTTPReceiverOptions['signingSecret'];
|
|
@@ -46,12 +46,11 @@ export interface AppOptions {
|
|
|
46
46
|
tokenVerificationEnabled?: boolean;
|
|
47
47
|
deferInitialization?: boolean;
|
|
48
48
|
extendedErrorHandler?: boolean;
|
|
49
|
+
attachFunctionToken?: boolean;
|
|
49
50
|
}
|
|
50
51
|
export { LogLevel, Logger } from '@slack/logger';
|
|
51
52
|
/** Authorization function - seeds the middleware processing and listeners with an authorization context */
|
|
52
|
-
export
|
|
53
|
-
(source: AuthorizeSourceData<IsEnterpriseInstall>, body?: AnyMiddlewareArgs['body']): Promise<AuthorizeResult>;
|
|
54
|
-
}
|
|
53
|
+
export type Authorize<IsEnterpriseInstall extends boolean = false> = (source: AuthorizeSourceData<IsEnterpriseInstall>, body?: AnyMiddlewareArgs['body']) => Promise<AuthorizeResult>;
|
|
55
54
|
/** Authorization function inputs - authenticated data about an event for the authorization function */
|
|
56
55
|
export interface AuthorizeSourceData<IsEnterpriseInstall extends boolean = false> {
|
|
57
56
|
teamId: IsEnterpriseInstall extends true ? string | undefined : string;
|
|
@@ -66,31 +65,11 @@ export interface AuthorizeResult {
|
|
|
66
65
|
userToken?: string;
|
|
67
66
|
botId?: string;
|
|
68
67
|
botUserId?: string;
|
|
68
|
+
userId?: string;
|
|
69
69
|
teamId?: string;
|
|
70
70
|
enterpriseId?: string;
|
|
71
71
|
[key: string]: any;
|
|
72
72
|
}
|
|
73
|
-
export interface ActionConstraints<A extends SlackAction = SlackAction> {
|
|
74
|
-
type?: A['type'];
|
|
75
|
-
block_id?: A extends BlockAction ? string | RegExp : never;
|
|
76
|
-
action_id?: A extends BlockAction ? string | RegExp : never;
|
|
77
|
-
callback_id?: Extract<A, {
|
|
78
|
-
callback_id?: string;
|
|
79
|
-
}> extends any ? string | RegExp : never;
|
|
80
|
-
}
|
|
81
|
-
export interface ShortcutConstraints<S extends SlackShortcut = SlackShortcut> {
|
|
82
|
-
type?: S['type'];
|
|
83
|
-
callback_id?: string | RegExp;
|
|
84
|
-
}
|
|
85
|
-
export interface ViewConstraints {
|
|
86
|
-
callback_id?: string | RegExp;
|
|
87
|
-
type?: 'view_closed' | 'view_submission';
|
|
88
|
-
}
|
|
89
|
-
export interface BlockSuggestionConstraints<B extends SlackBlockSuggestion = SlackBlockSuggestion> {
|
|
90
|
-
type?: B['type'];
|
|
91
|
-
block_id?: B extends SlackBlockSuggestion ? string | RegExp : never;
|
|
92
|
-
action_id?: B extends SlackBlockSuggestion ? string | RegExp : never;
|
|
93
|
-
}
|
|
94
73
|
interface AllErrorHandlerArgs {
|
|
95
74
|
error: Error;
|
|
96
75
|
logger: Logger;
|
|
@@ -100,15 +79,11 @@ interface AllErrorHandlerArgs {
|
|
|
100
79
|
export interface ExtendedErrorHandlerArgs extends AllErrorHandlerArgs {
|
|
101
80
|
error: CodedError;
|
|
102
81
|
}
|
|
103
|
-
export
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
export interface ExtendedErrorHandler {
|
|
107
|
-
(args: ExtendedErrorHandlerArgs): Promise<void>;
|
|
108
|
-
}
|
|
82
|
+
export type ErrorHandler = (error: CodedError) => Promise<void>;
|
|
83
|
+
export type ExtendedErrorHandler = (args: ExtendedErrorHandlerArgs) => Promise<void>;
|
|
109
84
|
export interface AnyErrorHandler extends ErrorHandler, ExtendedErrorHandler {
|
|
110
85
|
}
|
|
111
|
-
|
|
86
|
+
type MessageEventMiddleware<CustomContext extends StringIndexed = StringIndexed> = Middleware<SlackEventMiddlewareArgs<'message'>, CustomContext>;
|
|
112
87
|
/**
|
|
113
88
|
* A Slack App
|
|
114
89
|
*/
|
|
@@ -141,51 +116,40 @@ export default class App<AppCustomContext extends StringIndexed = StringIndexed>
|
|
|
141
116
|
private argAuthorization?;
|
|
142
117
|
private tokenVerificationEnabled;
|
|
143
118
|
private initialized;
|
|
144
|
-
|
|
119
|
+
private attachFunctionToken;
|
|
120
|
+
constructor({ signingSecret, endpoints, port, customRoutes, agent, clientTls, receiver, convoStore, token, appToken, botId, botUserId, authorize, logger, logLevel, ignoreSelf, clientOptions, processBeforeResponse, signatureVerification, clientId, clientSecret, stateSecret, redirectUri, installationStore, scopes, installerOptions, socketMode, developerMode, tokenVerificationEnabled, extendedErrorHandler, deferInitialization, attachFunctionToken, }?: AppOptions);
|
|
145
121
|
init(): Promise<void>;
|
|
122
|
+
get webClientOptions(): WebClientOptions;
|
|
146
123
|
/**
|
|
147
124
|
* Register a new middleware, processed in the order registered.
|
|
148
125
|
*
|
|
149
126
|
* @param m global middleware function
|
|
150
127
|
*/
|
|
151
128
|
use<MiddlewareCustomContext extends StringIndexed = StringIndexed>(m: Middleware<AnyMiddlewareArgs, AppCustomContext & MiddlewareCustomContext>): this;
|
|
152
|
-
/**
|
|
153
|
-
* Convenience method to call start on the receiver
|
|
154
|
-
*
|
|
155
|
-
* TODO: should replace HTTPReceiver in type definition with a generic that is constrained to Receiver
|
|
156
|
-
*
|
|
157
|
-
* @param args receiver-specific start arguments
|
|
158
|
-
*/
|
|
159
|
-
start(...args: Parameters<HTTPReceiver['start'] | SocketModeReceiver['start']>): ReturnType<HTTPReceiver['start']>;
|
|
160
|
-
stop(...args: any[]): Promise<unknown>;
|
|
161
129
|
/**
|
|
162
130
|
* Register WorkflowStep middleware
|
|
163
131
|
*
|
|
164
|
-
* Not to be confused with next-gen platform Workflows + Functions
|
|
165
|
-
*
|
|
166
132
|
* @param workflowStep global workflow step middleware function
|
|
133
|
+
* @deprecated Steps from Apps are no longer supported and support for them will be removed in the next major bolt-js
|
|
134
|
+
* version.
|
|
167
135
|
*/
|
|
168
136
|
step(workflowStep: WorkflowStep): this;
|
|
169
137
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* @param listeners middleware that process and react to subscription payloads
|
|
138
|
+
* Register CustomFunction middleware
|
|
173
139
|
*/
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Register an event listener
|
|
177
|
-
*/
|
|
178
|
-
event<EventType extends string = string, MiddlewareCustomContext extends StringIndexed = StringIndexed>(eventName: EventType, ...listeners: Middleware<SlackEventMiddlewareArgs<EventType>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
179
|
-
event<EventType extends RegExp = RegExp, MiddlewareCustomContext extends StringIndexed = StringIndexed>(eventName: EventType, ...listeners: Middleware<SlackEventMiddlewareArgs<string>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
140
|
+
function(callbackId: string, ...listeners: CustomFunctionMiddleware): this;
|
|
180
141
|
/**
|
|
181
|
-
*
|
|
142
|
+
* Convenience method to call start on the receiver
|
|
182
143
|
*
|
|
183
|
-
*
|
|
144
|
+
* TODO: should replace HTTPReceiver in type definition with a generic that is constrained to Receiver
|
|
184
145
|
*
|
|
185
|
-
*
|
|
186
|
-
|
|
146
|
+
* @param args receiver-specific start arguments
|
|
147
|
+
*/
|
|
148
|
+
start(...args: Parameters<HTTPReceiver['start'] | SocketModeReceiver['start']>): ReturnType<HTTPReceiver['start']>;
|
|
149
|
+
stop(...args: any[]): Promise<unknown>;
|
|
150
|
+
event<EventType extends string = string, MiddlewareCustomContext extends StringIndexed = StringIndexed>(eventName: EventType, ...listeners: Middleware<SlackEventMiddlewareArgs<EventType>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
151
|
+
event<EventType extends RegExp = RegExp, MiddlewareCustomContext extends StringIndexed = StringIndexed>(eventName: EventType, ...listeners: Middleware<SlackEventMiddlewareArgs<string>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
187
152
|
/**
|
|
188
|
-
* Process a message event
|
|
189
153
|
*
|
|
190
154
|
* @param listeners Middlewares that process and react to a message event
|
|
191
155
|
*/
|
|
@@ -212,7 +176,8 @@ export default class App<AppCustomContext extends StringIndexed = StringIndexed>
|
|
|
212
176
|
* {@link AllMiddlewareArgs.next} if there is no match. See {@link directMention} for an example.
|
|
213
177
|
* @param listeners Middlewares that process and react to the message events that matched the provided patterns.
|
|
214
178
|
*/
|
|
215
|
-
message<MiddlewareCustomContext extends StringIndexed = StringIndexed>(filter: MessageEventMiddleware, ...listeners
|
|
179
|
+
message<MiddlewareCustomContext extends StringIndexed = StringIndexed>(filter: MessageEventMiddleware, // TODO: why do we need this override? shouldnt ...listeners capture this too?
|
|
180
|
+
...listeners: MessageEventMiddleware<AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
216
181
|
/**
|
|
217
182
|
* This allows for further control of the filtering and response logic. Patterns and middlewares are processed in
|
|
218
183
|
* the order provided. If any patterns do not match, or a middleware does not call {@link AllMiddlewareArgs.next},
|
|
@@ -220,25 +185,19 @@ export default class App<AppCustomContext extends StringIndexed = StringIndexed>
|
|
|
220
185
|
* @param patternsOrMiddleware A mix of patterns and/or middlewares.
|
|
221
186
|
*/
|
|
222
187
|
message<MiddlewareCustomContext extends StringIndexed = StringIndexed>(...patternsOrMiddleware: (string | RegExp | MessageEventMiddleware<AppCustomContext & MiddlewareCustomContext>)[]): void;
|
|
223
|
-
/**
|
|
224
|
-
* Process a shortcut event
|
|
225
|
-
*/
|
|
226
188
|
shortcut<Shortcut extends SlackShortcut = SlackShortcut, MiddlewareCustomContext extends StringIndexed = StringIndexed>(callbackId: string | RegExp, ...listeners: Middleware<SlackShortcutMiddlewareArgs<Shortcut>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
227
189
|
shortcut<Shortcut extends SlackShortcut = SlackShortcut, Constraints extends ShortcutConstraints<Shortcut> = ShortcutConstraints<Shortcut>, MiddlewareCustomContext extends StringIndexed = StringIndexed>(constraints: Constraints, ...listeners: Middleware<SlackShortcutMiddlewareArgs<Extract<Shortcut, {
|
|
228
190
|
type: Constraints['type'];
|
|
229
191
|
}>>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
230
|
-
/**
|
|
231
|
-
* Process a block_action event
|
|
232
|
-
* https://api.slack.com/reference/interaction-payloads/block-actions
|
|
233
|
-
*
|
|
234
|
-
*/
|
|
235
192
|
action<Action extends SlackAction = SlackAction, MiddlewareCustomContext extends StringIndexed = StringIndexed>(actionId: string | RegExp, ...listeners: Middleware<SlackActionMiddlewareArgs<Action>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
236
193
|
action<Action extends SlackAction = SlackAction, Constraints extends ActionConstraints<Action> = ActionConstraints<Action>, MiddlewareCustomContext extends StringIndexed = StringIndexed>(constraints: Constraints, ...listeners: Middleware<SlackActionMiddlewareArgs<Extract<Action, {
|
|
237
194
|
type: Constraints['type'];
|
|
238
195
|
}>>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
239
196
|
command<MiddlewareCustomContext extends StringIndexed = StringIndexed>(commandName: string | RegExp, ...listeners: Middleware<SlackCommandMiddlewareArgs, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
240
|
-
options<Source extends OptionsSource = 'block_suggestion',
|
|
241
|
-
|
|
197
|
+
options<Source extends OptionsSource = 'block_suggestion', // TODO: here, similarly to `message()`, the generic is the string `type` of the payload. in others, like `action()`, it's the entire payload. could we make this consistent?
|
|
198
|
+
MiddlewareCustomContext extends StringIndexed = StringIndexed>(actionId: string | RegExp, ...listeners: Middleware<SlackOptionsMiddlewareArgs<Source>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
199
|
+
options<Source extends OptionsSource = OptionsSource, MiddlewareCustomContext extends StringIndexed = StringIndexed>(constraints: OptionsConstraints, // TODO: to be able to 'link' listener arguments to the constrains, should pass the Source type in as a generic here
|
|
200
|
+
...listeners: Middleware<SlackOptionsMiddlewareArgs<Source>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
242
201
|
view<ViewActionType extends SlackViewAction = SlackViewAction, MiddlewareCustomContext extends StringIndexed = StringIndexed>(callbackId: string | RegExp, ...listeners: Middleware<SlackViewMiddlewareArgs<ViewActionType>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
243
202
|
view<ViewActionType extends SlackViewAction = SlackViewAction, MiddlewareCustomContext extends StringIndexed = StringIndexed>(constraints: ViewConstraints, ...listeners: Middleware<SlackViewMiddlewareArgs<ViewActionType>, AppCustomContext & MiddlewareCustomContext>[]): void;
|
|
244
203
|
error(errorHandler: ErrorHandler): void;
|
package/dist/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,EAAiB,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAiC,SAAS,EAAE,KAAK,gBAAgB,EAAkB,MAAM,gBAAgB,CAAC;AAEjH,OAAO,EAEL,KAAK,wBAAwB,EAG9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,iBAAiB,EAAoC,MAAM,sBAAsB,CAAC;AAChG,OAAO,EAEL,KAAK,UAAU,EAKhB,MAAM,UAAU,CAAC;AAsBlB,OAAO,YAAY,EAAE,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,EAEV,iBAAiB,EACjB,iBAAiB,EAGjB,OAAO,EAQP,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACR,aAAa,EAIb,mBAAmB,EACnB,WAAW,EACX,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACb,2BAA2B,EAC3B,eAAe,EACf,uBAAuB,EAEvB,eAAe,EAGhB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,KAAK,aAAa,EAAc,MAAM,mBAAmB,CAAC;AAGnE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,SAAS,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