@robinpath/teams 0.1.0
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 +104 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/teams.d.ts +128 -0
- package/dist/teams.d.ts.map +1 -0
- package/dist/teams.js +239 -0
- package/dist/teams.js.map +1 -0
- package/package.json +13 -0
package/README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# @robinpath/teams
|
|
2
|
+
|
|
3
|
+
> Teams module for RobinPath.
|
|
4
|
+
|
|
5
|
+
   
|
|
6
|
+
|
|
7
|
+
## Why use this module?
|
|
8
|
+
|
|
9
|
+
The `teams` module lets you:
|
|
10
|
+
|
|
11
|
+
- Send a message to a Teams channel.
|
|
12
|
+
- Send a message in a 1:1 or group chat.
|
|
13
|
+
- Reply to a message in a channel.
|
|
14
|
+
- List all teams the user has joined.
|
|
15
|
+
- List channels in a team.
|
|
16
|
+
|
|
17
|
+
All functions are callable directly from RobinPath scripts with a simple, consistent API.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @robinpath/teams
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
**1. Set up credentials**
|
|
28
|
+
|
|
29
|
+
```robinpath
|
|
30
|
+
teams.setToken "eyJ0xxx"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**2. Send a message to a Teams channel.**
|
|
34
|
+
|
|
35
|
+
```robinpath
|
|
36
|
+
teams.sendChannel "team-id" "channel-id" "Hello team!"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Available Functions
|
|
40
|
+
|
|
41
|
+
| Function | Description |
|
|
42
|
+
|----------|-------------|
|
|
43
|
+
| `teams.setToken` | Set the Microsoft Graph API access token. |
|
|
44
|
+
| `teams.sendChannel` | Send a message to a Teams channel. |
|
|
45
|
+
| `teams.sendChat` | Send a message in a 1:1 or group chat. |
|
|
46
|
+
| `teams.replyToMessage` | Reply to a message in a channel. |
|
|
47
|
+
| `teams.listTeams` | List all teams the user has joined. |
|
|
48
|
+
| `teams.listChannels` | List channels in a team. |
|
|
49
|
+
| `teams.getMessages` | Get messages from a channel. |
|
|
50
|
+
| `teams.createChannel` | Create a new channel in a team. |
|
|
51
|
+
| `teams.listChats` | List all chats for the current user. |
|
|
52
|
+
| `teams.sendWebhook` | Send a message via an incoming webhook URL. |
|
|
53
|
+
|
|
54
|
+
## Examples
|
|
55
|
+
|
|
56
|
+
### Send a message to a Teams channel.
|
|
57
|
+
|
|
58
|
+
```robinpath
|
|
59
|
+
teams.sendChannel "team-id" "channel-id" "Hello team!"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Send a message in a 1:1 or group chat.
|
|
63
|
+
|
|
64
|
+
```robinpath
|
|
65
|
+
teams.sendChat "chat-id" "Hey there!"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Reply to a message in a channel.
|
|
69
|
+
|
|
70
|
+
```robinpath
|
|
71
|
+
teams.replyToMessage "team-id" "channel-id" "msg-id" "Thanks!"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Integration with RobinPath
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import { RobinPath } from "@wiredwp/robinpath";
|
|
78
|
+
import Module from "@robinpath/teams";
|
|
79
|
+
|
|
80
|
+
const rp = new RobinPath();
|
|
81
|
+
rp.registerModule(Module.name, Module.functions);
|
|
82
|
+
rp.registerModuleMeta(Module.name, Module.functionMetadata);
|
|
83
|
+
|
|
84
|
+
const result = await rp.executeScript(`
|
|
85
|
+
teams.setToken "eyJ0xxx"
|
|
86
|
+
teams.sendChannel "team-id" "channel-id" "Hello team!"
|
|
87
|
+
`);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Full API Reference
|
|
91
|
+
|
|
92
|
+
See [MODULE.md](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples.
|
|
93
|
+
|
|
94
|
+
## Related Modules
|
|
95
|
+
|
|
96
|
+
- [`@robinpath/slack`](../slack) — Slack module for complementary functionality
|
|
97
|
+
- [`@robinpath/discord`](../discord) — Discord module for complementary functionality
|
|
98
|
+
- [`@robinpath/telegram`](../telegram) — Telegram module for complementary functionality
|
|
99
|
+
- [`@robinpath/whatsapp`](../whatsapp) — WhatsApp module for complementary functionality
|
|
100
|
+
- [`@robinpath/json`](../json) — JSON module for complementary functionality
|
|
101
|
+
|
|
102
|
+
## License
|
|
103
|
+
|
|
104
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ModuleAdapter } from "@wiredwp/robinpath";
|
|
2
|
+
declare const TeamsModule: ModuleAdapter;
|
|
3
|
+
export default TeamsModule;
|
|
4
|
+
export { TeamsModule };
|
|
5
|
+
export { TeamsFunctions, TeamsFunctionMetadata, TeamsModuleMetadata } from "./teams.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,QAAA,MAAM,WAAW,EAAE,aAMlB,CAAC;AAEF,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TeamsFunctions, TeamsFunctionMetadata, TeamsModuleMetadata } from "./teams.js";
|
|
2
|
+
const TeamsModule = {
|
|
3
|
+
name: "teams",
|
|
4
|
+
functions: TeamsFunctions,
|
|
5
|
+
functionMetadata: TeamsFunctionMetadata,
|
|
6
|
+
moduleMetadata: TeamsModuleMetadata,
|
|
7
|
+
global: false,
|
|
8
|
+
}; // as ModuleAdapter
|
|
9
|
+
export default TeamsModule;
|
|
10
|
+
export { TeamsModule };
|
|
11
|
+
export { TeamsFunctions, TeamsFunctionMetadata, TeamsModuleMetadata } from "./teams.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAExF,MAAM,WAAW,GAAkB;IACjC,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,cAAc;IACzB,gBAAgB,EAAE,qBAA4B;IAC9C,cAAc,EAAE,mBAA0B;IAC1C,MAAM,EAAE,KAAK;CACd,CAAC,CAAC,mBAAmB;AAEtB,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/teams.d.ts
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { BuiltinHandler } from "@wiredwp/robinpath";
|
|
2
|
+
export declare const TeamsFunctions: Record<string, BuiltinHandler>;
|
|
3
|
+
export declare const TeamsFunctionMetadata: {
|
|
4
|
+
setToken: {
|
|
5
|
+
description: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
name: string;
|
|
8
|
+
dataType: string;
|
|
9
|
+
description: string;
|
|
10
|
+
formInputType: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
returnType: string;
|
|
14
|
+
returnDescription: string;
|
|
15
|
+
example: string;
|
|
16
|
+
};
|
|
17
|
+
sendChannel: {
|
|
18
|
+
description: string;
|
|
19
|
+
parameters: {
|
|
20
|
+
name: string;
|
|
21
|
+
dataType: string;
|
|
22
|
+
description: string;
|
|
23
|
+
formInputType: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
returnType: string;
|
|
27
|
+
returnDescription: string;
|
|
28
|
+
example: string;
|
|
29
|
+
};
|
|
30
|
+
sendChat: {
|
|
31
|
+
description: string;
|
|
32
|
+
parameters: {
|
|
33
|
+
name: string;
|
|
34
|
+
dataType: string;
|
|
35
|
+
description: string;
|
|
36
|
+
formInputType: string;
|
|
37
|
+
required: boolean;
|
|
38
|
+
}[];
|
|
39
|
+
returnType: string;
|
|
40
|
+
returnDescription: string;
|
|
41
|
+
example: string;
|
|
42
|
+
};
|
|
43
|
+
replyToMessage: {
|
|
44
|
+
description: string;
|
|
45
|
+
parameters: {
|
|
46
|
+
name: string;
|
|
47
|
+
dataType: string;
|
|
48
|
+
description: string;
|
|
49
|
+
formInputType: string;
|
|
50
|
+
required: boolean;
|
|
51
|
+
}[];
|
|
52
|
+
returnType: string;
|
|
53
|
+
returnDescription: string;
|
|
54
|
+
example: string;
|
|
55
|
+
};
|
|
56
|
+
listTeams: {
|
|
57
|
+
description: string;
|
|
58
|
+
parameters: never[];
|
|
59
|
+
returnType: string;
|
|
60
|
+
returnDescription: string;
|
|
61
|
+
example: string;
|
|
62
|
+
};
|
|
63
|
+
listChannels: {
|
|
64
|
+
description: string;
|
|
65
|
+
parameters: {
|
|
66
|
+
name: string;
|
|
67
|
+
dataType: string;
|
|
68
|
+
description: string;
|
|
69
|
+
formInputType: string;
|
|
70
|
+
required: boolean;
|
|
71
|
+
}[];
|
|
72
|
+
returnType: string;
|
|
73
|
+
returnDescription: string;
|
|
74
|
+
example: string;
|
|
75
|
+
};
|
|
76
|
+
getMessages: {
|
|
77
|
+
description: string;
|
|
78
|
+
parameters: {
|
|
79
|
+
name: string;
|
|
80
|
+
dataType: string;
|
|
81
|
+
description: string;
|
|
82
|
+
formInputType: string;
|
|
83
|
+
required: boolean;
|
|
84
|
+
}[];
|
|
85
|
+
returnType: string;
|
|
86
|
+
returnDescription: string;
|
|
87
|
+
example: string;
|
|
88
|
+
};
|
|
89
|
+
createChannel: {
|
|
90
|
+
description: string;
|
|
91
|
+
parameters: {
|
|
92
|
+
name: string;
|
|
93
|
+
dataType: string;
|
|
94
|
+
description: string;
|
|
95
|
+
formInputType: string;
|
|
96
|
+
required: boolean;
|
|
97
|
+
}[];
|
|
98
|
+
returnType: string;
|
|
99
|
+
returnDescription: string;
|
|
100
|
+
example: string;
|
|
101
|
+
};
|
|
102
|
+
listChats: {
|
|
103
|
+
description: string;
|
|
104
|
+
parameters: never[];
|
|
105
|
+
returnType: string;
|
|
106
|
+
returnDescription: string;
|
|
107
|
+
example: string;
|
|
108
|
+
};
|
|
109
|
+
sendWebhook: {
|
|
110
|
+
description: string;
|
|
111
|
+
parameters: {
|
|
112
|
+
name: string;
|
|
113
|
+
dataType: string;
|
|
114
|
+
description: string;
|
|
115
|
+
formInputType: string;
|
|
116
|
+
required: boolean;
|
|
117
|
+
}[];
|
|
118
|
+
returnType: string;
|
|
119
|
+
returnDescription: string;
|
|
120
|
+
example: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
export declare const TeamsModuleMetadata: {
|
|
124
|
+
description: string;
|
|
125
|
+
category: string;
|
|
126
|
+
methods: string[];
|
|
127
|
+
};
|
|
128
|
+
//# sourceMappingURL=teams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../src/teams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA2C,MAAM,oBAAoB,CAAC;AA0HlG,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAWzD,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGjC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC"}
|
package/dist/teams.js
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
const config = new Map();
|
|
2
|
+
function getToken() {
|
|
3
|
+
const token = config.get("token");
|
|
4
|
+
if (!token)
|
|
5
|
+
throw new Error('Teams: token not configured. Call teams.setToken first.');
|
|
6
|
+
return token;
|
|
7
|
+
}
|
|
8
|
+
async function graphApi(path, method = "GET", body) {
|
|
9
|
+
const token = getToken();
|
|
10
|
+
const res = await fetch(`https://graph.microsoft.com/v1.0${path}`, {
|
|
11
|
+
method,
|
|
12
|
+
headers: {
|
|
13
|
+
Authorization: `Bearer ${token}`,
|
|
14
|
+
"Content-Type": "application/json",
|
|
15
|
+
},
|
|
16
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
17
|
+
});
|
|
18
|
+
if (!res.ok) {
|
|
19
|
+
const text = await res.text();
|
|
20
|
+
throw new Error(`Microsoft Graph API error (${res.status}): ${text}`);
|
|
21
|
+
}
|
|
22
|
+
if (res.status === 204)
|
|
23
|
+
return { success: true };
|
|
24
|
+
return res.json();
|
|
25
|
+
}
|
|
26
|
+
const setToken = (args) => {
|
|
27
|
+
const token = args[0];
|
|
28
|
+
if (!token)
|
|
29
|
+
throw new Error("teams.setToken requires a token.");
|
|
30
|
+
config.set("token", token);
|
|
31
|
+
return "Microsoft Teams token configured.";
|
|
32
|
+
};
|
|
33
|
+
const sendChannel = async (args) => {
|
|
34
|
+
const teamId = args[0];
|
|
35
|
+
const channelId = args[1];
|
|
36
|
+
const message = args[2];
|
|
37
|
+
if (!teamId || !channelId || !message)
|
|
38
|
+
throw new Error("teams.sendChannel requires teamId, channelId, and message.");
|
|
39
|
+
return graphApi(`/teams/${teamId}/channels/${channelId}/messages`, "POST", {
|
|
40
|
+
body: { content: message, contentType: "html" },
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
const sendChat = async (args) => {
|
|
44
|
+
const chatId = args[0];
|
|
45
|
+
const message = args[1];
|
|
46
|
+
if (!chatId || !message)
|
|
47
|
+
throw new Error("teams.sendChat requires chatId and message.");
|
|
48
|
+
return graphApi(`/chats/${chatId}/messages`, "POST", {
|
|
49
|
+
body: { content: message, contentType: "html" },
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
const replyToMessage = async (args) => {
|
|
53
|
+
const teamId = args[0];
|
|
54
|
+
const channelId = args[1];
|
|
55
|
+
const messageId = args[2];
|
|
56
|
+
const reply = args[3];
|
|
57
|
+
if (!teamId || !channelId || !messageId || !reply)
|
|
58
|
+
throw new Error("teams.replyToMessage requires teamId, channelId, messageId, and reply.");
|
|
59
|
+
return graphApi(`/teams/${teamId}/channels/${channelId}/messages/${messageId}/replies`, "POST", {
|
|
60
|
+
body: { content: reply, contentType: "html" },
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
const listTeams = async () => {
|
|
64
|
+
return graphApi("/me/joinedTeams");
|
|
65
|
+
};
|
|
66
|
+
const listChannels = async (args) => {
|
|
67
|
+
const teamId = args[0];
|
|
68
|
+
if (!teamId)
|
|
69
|
+
throw new Error("teams.listChannels requires a teamId.");
|
|
70
|
+
return graphApi(`/teams/${teamId}/channels`);
|
|
71
|
+
};
|
|
72
|
+
const getMessages = async (args) => {
|
|
73
|
+
const teamId = args[0];
|
|
74
|
+
const channelId = args[1];
|
|
75
|
+
const opts = (typeof args[2] === "object" && args[2] !== null ? args[2] : {});
|
|
76
|
+
if (!teamId || !channelId)
|
|
77
|
+
throw new Error("teams.getMessages requires teamId and channelId.");
|
|
78
|
+
const top = opts.top ? `?$top=${opts.top}` : "";
|
|
79
|
+
return graphApi(`/teams/${teamId}/channels/${channelId}/messages${top}`);
|
|
80
|
+
};
|
|
81
|
+
const createChannel = async (args) => {
|
|
82
|
+
const teamId = args[0];
|
|
83
|
+
const displayName = args[1];
|
|
84
|
+
const opts = (typeof args[2] === "object" && args[2] !== null ? args[2] : {});
|
|
85
|
+
if (!teamId || !displayName)
|
|
86
|
+
throw new Error("teams.createChannel requires teamId and displayName.");
|
|
87
|
+
const payload = {
|
|
88
|
+
displayName,
|
|
89
|
+
membershipType: opts.membershipType ?? "standard",
|
|
90
|
+
};
|
|
91
|
+
if (opts.description)
|
|
92
|
+
payload.description = opts.description;
|
|
93
|
+
return graphApi(`/teams/${teamId}/channels`, "POST", payload);
|
|
94
|
+
};
|
|
95
|
+
const listChats = async () => {
|
|
96
|
+
return graphApi("/me/chats");
|
|
97
|
+
};
|
|
98
|
+
const sendWebhook = async (args) => {
|
|
99
|
+
const webhookUrl = args[0];
|
|
100
|
+
const message = args[1];
|
|
101
|
+
const opts = (typeof args[2] === "object" && args[2] !== null ? args[2] : {});
|
|
102
|
+
if (!webhookUrl || !message)
|
|
103
|
+
throw new Error("teams.sendWebhook requires webhookUrl and message.");
|
|
104
|
+
const payload = { text: message };
|
|
105
|
+
if (opts.title)
|
|
106
|
+
payload.title = opts.title;
|
|
107
|
+
if (opts.themeColor)
|
|
108
|
+
payload.themeColor = opts.themeColor;
|
|
109
|
+
if (opts.sections)
|
|
110
|
+
payload.sections = opts.sections;
|
|
111
|
+
const res = await fetch(webhookUrl, {
|
|
112
|
+
method: "POST",
|
|
113
|
+
headers: { "Content-Type": "application/json" },
|
|
114
|
+
body: JSON.stringify(payload),
|
|
115
|
+
});
|
|
116
|
+
if (!res.ok) {
|
|
117
|
+
const text = await res.text();
|
|
118
|
+
throw new Error(`Teams Webhook error (${res.status}): ${text}`);
|
|
119
|
+
}
|
|
120
|
+
return "Webhook message sent.";
|
|
121
|
+
};
|
|
122
|
+
export const TeamsFunctions = {
|
|
123
|
+
setToken,
|
|
124
|
+
sendChannel,
|
|
125
|
+
sendChat,
|
|
126
|
+
replyToMessage,
|
|
127
|
+
listTeams,
|
|
128
|
+
listChannels,
|
|
129
|
+
getMessages,
|
|
130
|
+
createChannel,
|
|
131
|
+
listChats,
|
|
132
|
+
sendWebhook,
|
|
133
|
+
};
|
|
134
|
+
export const TeamsFunctionMetadata = {
|
|
135
|
+
setToken: {
|
|
136
|
+
description: "Set the Microsoft Graph API access token.",
|
|
137
|
+
parameters: [
|
|
138
|
+
{ name: "token", dataType: "string", description: "OAuth2 access token with Teams permissions", formInputType: "text", required: true },
|
|
139
|
+
],
|
|
140
|
+
returnType: "string",
|
|
141
|
+
returnDescription: "Confirmation message.",
|
|
142
|
+
example: 'teams.setToken "eyJ0xxx"',
|
|
143
|
+
},
|
|
144
|
+
sendChannel: {
|
|
145
|
+
description: "Send a message to a Teams channel.",
|
|
146
|
+
parameters: [
|
|
147
|
+
{ name: "teamId", dataType: "string", description: "Team ID", formInputType: "text", required: true },
|
|
148
|
+
{ name: "channelId", dataType: "string", description: "Channel ID", formInputType: "text", required: true },
|
|
149
|
+
{ name: "message", dataType: "string", description: "Message content (supports HTML)", formInputType: "textarea", required: true },
|
|
150
|
+
],
|
|
151
|
+
returnType: "object",
|
|
152
|
+
returnDescription: "Created message object.",
|
|
153
|
+
example: 'teams.sendChannel "team-id" "channel-id" "Hello team!"',
|
|
154
|
+
},
|
|
155
|
+
sendChat: {
|
|
156
|
+
description: "Send a message in a 1:1 or group chat.",
|
|
157
|
+
parameters: [
|
|
158
|
+
{ name: "chatId", dataType: "string", description: "Chat ID", formInputType: "text", required: true },
|
|
159
|
+
{ name: "message", dataType: "string", description: "Message content (supports HTML)", formInputType: "textarea", required: true },
|
|
160
|
+
],
|
|
161
|
+
returnType: "object",
|
|
162
|
+
returnDescription: "Created message object.",
|
|
163
|
+
example: 'teams.sendChat "chat-id" "Hey there!"',
|
|
164
|
+
},
|
|
165
|
+
replyToMessage: {
|
|
166
|
+
description: "Reply to a message in a channel.",
|
|
167
|
+
parameters: [
|
|
168
|
+
{ name: "teamId", dataType: "string", description: "Team ID", formInputType: "text", required: true },
|
|
169
|
+
{ name: "channelId", dataType: "string", description: "Channel ID", formInputType: "text", required: true },
|
|
170
|
+
{ name: "messageId", dataType: "string", description: "Message ID to reply to", formInputType: "text", required: true },
|
|
171
|
+
{ name: "reply", dataType: "string", description: "Reply content", formInputType: "textarea", required: true },
|
|
172
|
+
],
|
|
173
|
+
returnType: "object",
|
|
174
|
+
returnDescription: "Created reply message.",
|
|
175
|
+
example: 'teams.replyToMessage "team-id" "channel-id" "msg-id" "Thanks!"',
|
|
176
|
+
},
|
|
177
|
+
listTeams: {
|
|
178
|
+
description: "List all teams the user has joined.",
|
|
179
|
+
parameters: [],
|
|
180
|
+
returnType: "object",
|
|
181
|
+
returnDescription: "Object with value array of teams.",
|
|
182
|
+
example: "teams.listTeams",
|
|
183
|
+
},
|
|
184
|
+
listChannels: {
|
|
185
|
+
description: "List channels in a team.",
|
|
186
|
+
parameters: [
|
|
187
|
+
{ name: "teamId", dataType: "string", description: "Team ID", formInputType: "text", required: true },
|
|
188
|
+
],
|
|
189
|
+
returnType: "object",
|
|
190
|
+
returnDescription: "Object with value array of channels.",
|
|
191
|
+
example: 'teams.listChannels "team-id"',
|
|
192
|
+
},
|
|
193
|
+
getMessages: {
|
|
194
|
+
description: "Get messages from a channel.",
|
|
195
|
+
parameters: [
|
|
196
|
+
{ name: "teamId", dataType: "string", description: "Team ID", formInputType: "text", required: true },
|
|
197
|
+
{ name: "channelId", dataType: "string", description: "Channel ID", formInputType: "text", required: true },
|
|
198
|
+
{ name: "options", dataType: "object", description: "Options: top (number of messages)", formInputType: "json", required: false },
|
|
199
|
+
],
|
|
200
|
+
returnType: "object",
|
|
201
|
+
returnDescription: "Object with value array of messages.",
|
|
202
|
+
example: 'teams.getMessages "team-id" "channel-id" {"top":20}',
|
|
203
|
+
},
|
|
204
|
+
createChannel: {
|
|
205
|
+
description: "Create a new channel in a team.",
|
|
206
|
+
parameters: [
|
|
207
|
+
{ name: "teamId", dataType: "string", description: "Team ID", formInputType: "text", required: true },
|
|
208
|
+
{ name: "displayName", dataType: "string", description: "Channel name", formInputType: "text", required: true },
|
|
209
|
+
{ name: "options", dataType: "object", description: "Options: description, membershipType (standard|private|shared)", formInputType: "json", required: false },
|
|
210
|
+
],
|
|
211
|
+
returnType: "object",
|
|
212
|
+
returnDescription: "Created channel object.",
|
|
213
|
+
example: 'teams.createChannel "team-id" "New Channel" {"description":"A new channel"}',
|
|
214
|
+
},
|
|
215
|
+
listChats: {
|
|
216
|
+
description: "List all chats for the current user.",
|
|
217
|
+
parameters: [],
|
|
218
|
+
returnType: "object",
|
|
219
|
+
returnDescription: "Object with value array of chats.",
|
|
220
|
+
example: "teams.listChats",
|
|
221
|
+
},
|
|
222
|
+
sendWebhook: {
|
|
223
|
+
description: "Send a message via an incoming webhook URL.",
|
|
224
|
+
parameters: [
|
|
225
|
+
{ name: "webhookUrl", dataType: "string", description: "Incoming webhook URL", formInputType: "text", required: true },
|
|
226
|
+
{ name: "message", dataType: "string", description: "Message text", formInputType: "textarea", required: true },
|
|
227
|
+
{ name: "options", dataType: "object", description: "Options: title, themeColor, sections", formInputType: "json", required: false },
|
|
228
|
+
],
|
|
229
|
+
returnType: "string",
|
|
230
|
+
returnDescription: "Confirmation message.",
|
|
231
|
+
example: 'teams.sendWebhook "https://outlook.office.com/webhook/xxx" "Alert: Build passed!"',
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
export const TeamsModuleMetadata = {
|
|
235
|
+
description: "Send messages, manage channels, and interact with Microsoft Teams via Microsoft Graph API.",
|
|
236
|
+
category: "messaging",
|
|
237
|
+
methods: Object.keys(TeamsFunctions),
|
|
238
|
+
};
|
|
239
|
+
//# sourceMappingURL=teams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.js","sourceRoot":"","sources":["../src/teams.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEzC,SAAS,QAAQ;IACf,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,KA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,EAAE,IAAI,EAAE;YACtH,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/G,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;SACrI;QACD,UAAU,EAAE,QAAQ;QACpB,iBAAiB,EAAE,uBAAuB;QAC1C,OAAO,EAAE,mFAAmF;KAC7F;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,4FAA4F;IACzG,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC;CACrC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@robinpath/teams",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": { "access": "public" },
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } },
|
|
9
|
+
"files": ["dist"],
|
|
10
|
+
"scripts": { "build": "tsc" },
|
|
11
|
+
"peerDependencies": { "@wiredwp/robinpath": ">=0.20.0" },
|
|
12
|
+
"devDependencies": { "@wiredwp/robinpath": "^0.30.1", "typescript": "^5.6.0" }
|
|
13
|
+
}
|