@chat-adapter/teams 4.0.0 → 4.0.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.
Files changed (3) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +82 -0
  3. package/package.json +11 -2
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vercel, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,82 @@
1
+ # @chat-adapter/teams
2
+
3
+ Microsoft Teams adapter for the [chat](https://github.com/vercel-labs/chat) SDK.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install chat @chat-adapter/teams
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { Chat } from "chat";
15
+ import { createTeamsAdapter } from "@chat-adapter/teams";
16
+
17
+ const chat = new Chat({
18
+ userName: "mybot",
19
+ adapters: {
20
+ teams: createTeamsAdapter({
21
+ appId: process.env.TEAMS_APP_ID!,
22
+ appPassword: process.env.TEAMS_APP_PASSWORD!,
23
+ }),
24
+ },
25
+ });
26
+
27
+ // Handle @mentions
28
+ chat.onNewMention(async (thread, message) => {
29
+ await thread.post("Hello from Teams!");
30
+ });
31
+ ```
32
+
33
+ ## Configuration
34
+
35
+ | Option | Required | Description |
36
+ |--------|----------|-------------|
37
+ | `appId` | Yes | Azure Bot App ID |
38
+ | `appPassword` | Yes | Azure Bot App Password |
39
+ | `tenantId` | No | Azure AD Tenant ID (for single-tenant apps) |
40
+
41
+ ## Setup
42
+
43
+ ### 1. Create Azure Bot
44
+
45
+ 1. Go to [Azure Portal](https://portal.azure.com)
46
+ 2. Create a new **Azure Bot** resource
47
+ 3. Note the **App ID** and create an **App Password**
48
+
49
+ ### 2. Configure Bot Messaging Endpoint
50
+
51
+ Set the messaging endpoint to your webhook URL:
52
+ ```
53
+ https://your-domain.com/api/webhooks/teams
54
+ ```
55
+
56
+ ### 3. Create Teams App
57
+
58
+ 1. Go to [Teams Developer Portal](https://dev.teams.microsoft.com)
59
+ 2. Create a new app
60
+ 3. Configure bot with your Azure Bot App ID
61
+ 4. Install the app to your Teams workspace
62
+
63
+ ## Features
64
+
65
+ - Message posting and editing
66
+ - Thread subscriptions
67
+ - Reaction events (receive only)
68
+ - File attachments
69
+ - Rich cards (Adaptive Cards)
70
+ - Action callbacks (card actions)
71
+ - Typing indicators
72
+ - Direct messages
73
+ - Proactive messaging
74
+
75
+ ## Limitations
76
+
77
+ - **Adding reactions**: Teams Bot Framework doesn't support bots adding reactions
78
+ - **Message history**: No API to fetch message history
79
+
80
+ ## License
81
+
82
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chat-adapter/teams",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Microsoft Teams adapter for chat",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "botbuilder": "^4.23.1",
20
- "chat": "4.0.0"
20
+ "chat": "4.0.2"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^22.10.2",
@@ -25,6 +25,15 @@
25
25
  "typescript": "^5.7.2",
26
26
  "vitest": "^2.1.8"
27
27
  },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/vercel-labs/chat.git",
31
+ "directory": "packages/adapter-teams"
32
+ },
33
+ "homepage": "https://github.com/vercel-labs/chat#readme",
34
+ "bugs": {
35
+ "url": "https://github.com/vercel-labs/chat/issues"
36
+ },
28
37
  "publishConfig": {
29
38
  "access": "public"
30
39
  },