@opentag/slack 0.2.0 → 0.3.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.
- package/dist/dispatcher-events.d.ts +5 -0
- package/dist/dispatcher-events.d.ts.map +1 -1
- package/dist/events.d.ts +98 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/index.js +1255 -197
- package/dist/index.js.map +1 -1
- package/dist/ingress.d.ts +10 -0
- package/dist/ingress.d.ts.map +1 -1
- package/dist/normalize.d.ts +1 -0
- package/dist/normalize.d.ts.map +1 -1
- package/dist/render.d.ts +57 -4
- package/dist/render.d.ts.map +1 -1
- package/dist/socket-mode.d.ts +5 -2
- package/dist/socket-mode.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/socket-mode.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import WebSocket from "ws";
|
|
2
|
+
import { type RecordControlPlaneEventInput } from "@opentag/client";
|
|
2
3
|
import { type SlackDispatcherEventConfig } from "./dispatcher-events.js";
|
|
3
|
-
import { type SlackAppRuntimeConfig, type
|
|
4
|
+
import { type SlackAppRuntimeConfig, type SlackEventProcessorInput, type SlackIngressPayload } from "./events.js";
|
|
4
5
|
export type SlackSocketModeEnvelope = {
|
|
5
6
|
type?: string;
|
|
6
7
|
envelope_id?: string;
|
|
7
|
-
payload?:
|
|
8
|
+
payload?: SlackIngressPayload;
|
|
8
9
|
accepts_response_payload?: boolean;
|
|
9
10
|
};
|
|
10
11
|
export type SlackSocketModeAppInput = {
|
|
11
12
|
appToken: string;
|
|
12
13
|
slackApp: SlackAppRuntimeConfig;
|
|
14
|
+
recordControlPlaneEvent?(event: RecordControlPlaneEventInput): Promise<void>;
|
|
13
15
|
} & SlackEventProcessorInput;
|
|
14
16
|
export type SlackSocketModeIngressConfig = SlackDispatcherEventConfig & {
|
|
15
17
|
appToken: string;
|
|
16
18
|
agentId?: string;
|
|
17
19
|
appId?: string;
|
|
18
20
|
callbackUri?: string;
|
|
21
|
+
botToken?: string;
|
|
19
22
|
};
|
|
20
23
|
export type SlackSocketModeIngressHandle = {
|
|
21
24
|
startPromise: Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket-mode.d.ts","sourceRoot":"","sources":["../src/socket-mode.ts"],"names":[],"mappings":"AAAA,OAAO,SAA2B,MAAM,IAAI,CAAC;AAC7C,OAAO,EAA4C,KAAK,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACnH,OAAO,EAA6B,KAAK,qBAAqB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"socket-mode.d.ts","sourceRoot":"","sources":["../src/socket-mode.ts"],"names":[],"mappings":"AAAA,OAAO,SAA2B,MAAM,IAAI,CAAC;AAC7C,OAAO,EAAuB,KAAK,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAA4C,KAAK,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACnH,OAAO,EAA6B,KAAK,qBAAqB,EAAE,KAAK,wBAAwB,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAkC7I,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,qBAAqB,CAAC;IAChC,uBAAuB,CAAC,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9E,GAAG,wBAAwB,CAAC;AAE7B,MAAM,MAAM,4BAA4B,GAAG,0BAA0B,GAAG;IACtE,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,eAAe,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACnD,CAAC;AAmGF,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,uBAAuB,EAC9B,YAAY,GAAE,2BAAgC,GAC7C,4BAA4B,CA4F9B;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,4BAA4B,EACpC,YAAY,GAAE,2BAAgC,GAC7C,4BAA4B,CAqB9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentag/slack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Slack app mention normalization and callback helpers for OpenTag.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@hono/node-server": "^1.13.7",
|
|
35
35
|
"hono": "^4.6.15",
|
|
36
36
|
"ws": "^8.21.0",
|
|
37
|
-
"@opentag/client": "0.
|
|
38
|
-
"@opentag/core": "0.
|
|
37
|
+
"@opentag/client": "0.3.1",
|
|
38
|
+
"@opentag/core": "0.3.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/ws": "^8.18.1",
|