@emulators/slack 0.4.0 → 0.4.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 (2) hide show
  1. package/README.md +79 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,79 @@
1
+ # @emulators/slack
2
+
3
+ Fully stateful Slack Web API emulation with channels, messages, threads, reactions, OAuth v2, and incoming webhooks.
4
+
5
+ Part of [emulate](https://github.com/vercel-labs/emulate) — local drop-in replacement services for CI and no-network sandboxes.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @emulators/slack
11
+ ```
12
+
13
+ ## Endpoints
14
+
15
+ ### Auth & Chat
16
+ - `POST /api/auth.test` — test authentication
17
+ - `POST /api/chat.postMessage` — post message (supports threads via `thread_ts`)
18
+ - `POST /api/chat.update` — update message
19
+ - `POST /api/chat.delete` — delete message
20
+ - `POST /api/chat.meMessage` — /me message
21
+
22
+ ### Conversations
23
+ - `POST /api/conversations.list` — list channels (cursor pagination)
24
+ - `POST /api/conversations.info` — get channel info
25
+ - `POST /api/conversations.create` — create channel
26
+ - `POST /api/conversations.history` — channel history
27
+ - `POST /api/conversations.replies` — thread replies
28
+ - `POST /api/conversations.join` / `conversations.leave` — join/leave
29
+ - `POST /api/conversations.members` — list members
30
+
31
+ ### Users & Reactions
32
+ - `POST /api/users.list` — list users (cursor pagination)
33
+ - `POST /api/users.info` — get user info
34
+ - `POST /api/users.lookupByEmail` — lookup by email
35
+ - `POST /api/reactions.add` / `reactions.remove` / `reactions.get` — manage reactions
36
+
37
+ ### Team, Bots & Webhooks
38
+ - `POST /api/team.info` — workspace info
39
+ - `POST /api/bots.info` — bot info
40
+ - `POST /services/:teamId/:botId/:webhookId` — incoming webhook
41
+
42
+ ### OAuth
43
+ - `GET /oauth/v2/authorize` — authorization (shows user picker)
44
+ - `POST /api/oauth.v2.access` — token exchange
45
+
46
+ ## Auth
47
+
48
+ All Web API endpoints require `Authorization: Bearer <token>`. OAuth v2 flow with user picker UI.
49
+
50
+ ## Seed Configuration
51
+
52
+ ```yaml
53
+ slack:
54
+ team:
55
+ name: My Workspace
56
+ domain: my-workspace
57
+ users:
58
+ - name: developer
59
+ real_name: Developer
60
+ email: dev@example.com
61
+ channels:
62
+ - name: general
63
+ topic: General discussion
64
+ - name: random
65
+ topic: Random stuff
66
+ bots:
67
+ - name: my-bot
68
+ oauth_apps:
69
+ - client_id: "12345.67890"
70
+ client_secret: example_client_secret
71
+ name: My Slack App
72
+ redirect_uris:
73
+ - http://localhost:3000/api/auth/callback/slack
74
+ ```
75
+
76
+ ## Links
77
+
78
+ - [Full documentation](https://emulate.dev/slack)
79
+ - [GitHub](https://github.com/vercel-labs/emulate)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulators/slack",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "hono": "^4",
31
- "@emulators/core": "0.4.0"
31
+ "@emulators/core": "0.4.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "tsup": "^8",