@frogbotai/piece-microsoft-teams 0.5.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 FrogBot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,38 @@
1
+ import { type PieceFactoryConfig } from "frogbot/pieces";
2
+ export declare const microsoftTeamsActions: readonly ["microsoft_teams_create_channel", "microsoft_teams_send_channel_message", "microsoft_teams_send_chat_message", "microsoft_teams_reply_to_channel_message", "microsoft_teams_create_chat_and_send_message", "microsoft_teams_create_private_channel", "microsoft_teams_get_chat_message", "microsoft_teams_get_channel_message", "microsoft_teams_find_channel", "microsoft_teams_find_team_member"];
3
+ export declare const microsoftTeamsScopes: readonly ["openid", "email", "profile", "offline_access", "User.Read", "Channel.Create", "Channel.ReadBasic.All", "ChannelMessage.Send", "Team.ReadBasic.All", "Chat.ReadWrite", "ChannelMessage.Read.All", "TeamMember.Read.All", "User.ReadBasic.All", "Presence.Read.All", "OnlineMeetingTranscript.Read.All", "OnlineMeetingRecording.Read.All"];
4
+ export declare function createMicrosoftTeams(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
5
+ /** Create Channel: Create a new channel in Microsoft Teams. */
6
+ microsoftTeamsCreateChannel: import("node_modules/frogbot/dist/types/tool").AnyTool;
7
+ /** Send Channel Message: Sends a message to a teams's channel. */
8
+ microsoftTeamsSendChannelMessage: import("node_modules/frogbot/dist/types/tool").AnyTool;
9
+ /** Send Chat Message: Sends a message in an existing chat. */
10
+ microsoftTeamsSendChatMessage: import("node_modules/frogbot/dist/types/tool").AnyTool;
11
+ /** Reply to Channel Message: Post a reply to an existing channel message. */
12
+ microsoftTeamsReplyToChannelMessage: import("node_modules/frogbot/dist/types/tool").AnyTool;
13
+ /** Create Chat & Send Message: Start a new chat and send an initial message. */
14
+ microsoftTeamsCreateChatAndSendMessage: import("node_modules/frogbot/dist/types/tool").AnyTool;
15
+ /** Create Private Channel: Create a new private channel in a team. */
16
+ microsoftTeamsCreatePrivateChannel: import("node_modules/frogbot/dist/types/tool").AnyTool;
17
+ /** Get Chat Message: Fetch a specific chat message by chat and message ID. */
18
+ microsoftTeamsGetChatMessage: import("node_modules/frogbot/dist/types/tool").AnyTool;
19
+ /** Delete Chat Message: Soft-Deletes a message in chat.You can only delete messages you sent. */
20
+ microsoftTeamsDeleteChatMessage: import("node_modules/frogbot/dist/types/tool").AnyTool;
21
+ /** Get Channel Message: Fetch a specific channel message by team, channel, and message ID (optionally a reply). */
22
+ microsoftTeamsGetChannelMessage: import("node_modules/frogbot/dist/types/tool").AnyTool;
23
+ /** Find Channel: Finds channels by name. */
24
+ microsoftTeamsFindChannel: import("node_modules/frogbot/dist/types/tool").AnyTool;
25
+ /** Find Team Member: Finds a team member by email or display name. */
26
+ microsoftTeamsFindTeamMember: import("node_modules/frogbot/dist/types/tool").AnyTool;
27
+ /** Get Meeting Transcript: Retrieves transcripts for a Teams meeting. Provide a Transcript to fetch its text content; omit it to list all available transcripts. */
28
+ microsoftTeamsGetMeetingTranscript: import("node_modules/frogbot/dist/types/tool").AnyTool;
29
+ /** Get Meeting Recording: Retrieves recordings for a Teams meeting. Provide a Recording to fetch its metadata; omit it to list all available recordings. */
30
+ microsoftTeamsGetMeetingRecording: import("node_modules/frogbot/dist/types/tool").AnyTool;
31
+ /** Request Approval in Channel: Send approval message to a channel and then wait until the message is approved or disapproved */
32
+ requestApprovalInChannel: import("node_modules/frogbot/dist/types/tool").AnyTool;
33
+ /** Request Approval from a User: Send approval message to a user and then wait until the message is approved or disapproved */
34
+ requestApprovalDirectMessage: import("node_modules/frogbot/dist/types/tool").AnyTool;
35
+ /** Custom API Call: Make a custom API call to a specific endpoint */
36
+ customApiCall: import("node_modules/frogbot/dist/types/tool").AnyTool;
37
+ };
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,qBAAqB,+YAWxB,CAAC;AACX,eAAO,MAAM,oBAAoB,sVAiBvB,CAAC;AAEX,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAU5D,+DAA+D;;IAE/D,kEAAkE;;IAElE,8DAA8D;;IAE9D,6EAA6E;;IAE7E,gFAAgF;;IAEhF,sEAAsE;;IAEtE,8EAA8E;;IAE9E,iGAAiG;;IAEjG,mHAAmH;;IAEnH,4CAA4C;;IAE5C,sEAAsE;;IAEtE,oKAAoK;;IAEpK,4JAA4J;;IAE5J,iIAAiI;;IAEjI,+HAA+H;;IAE/H,qEAAqE;;EAGxE"}
package/dist/index.js ADDED
@@ -0,0 +1,77 @@
1
+ import * as module from "@activepieces/piece-microsoft-teams";
2
+ import { createActivepiecesPiece } from "frogbot/pieces";
3
+ export const microsoftTeamsActions = [
4
+ "microsoft_teams_create_channel",
5
+ "microsoft_teams_send_channel_message",
6
+ "microsoft_teams_send_chat_message",
7
+ "microsoft_teams_reply_to_channel_message",
8
+ "microsoft_teams_create_chat_and_send_message",
9
+ "microsoft_teams_create_private_channel",
10
+ "microsoft_teams_get_chat_message",
11
+ "microsoft_teams_get_channel_message",
12
+ "microsoft_teams_find_channel",
13
+ "microsoft_teams_find_team_member",
14
+ ];
15
+ export const microsoftTeamsScopes = [
16
+ "openid",
17
+ "email",
18
+ "profile",
19
+ "offline_access",
20
+ "User.Read",
21
+ "Channel.Create",
22
+ "Channel.ReadBasic.All",
23
+ "ChannelMessage.Send",
24
+ "Team.ReadBasic.All",
25
+ "Chat.ReadWrite",
26
+ "ChannelMessage.Read.All",
27
+ "TeamMember.Read.All",
28
+ "User.ReadBasic.All",
29
+ "Presence.Read.All",
30
+ "OnlineMeetingTranscript.Read.All",
31
+ "OnlineMeetingRecording.Read.All"
32
+ ];
33
+ export function createMicrosoftTeams(config) {
34
+ const piece = createActivepiecesPiece({
35
+ module: module,
36
+ service: "microsoft-teams",
37
+ credentialType: "oauth2",
38
+ defaultActions: microsoftTeamsActions,
39
+ scopes: microsoftTeamsScopes,
40
+ config,
41
+ });
42
+ return Object.assign(piece, {
43
+ /** Create Channel: Create a new channel in Microsoft Teams. */
44
+ microsoftTeamsCreateChannel: piece.tool("microsoft_teams_create_channel"),
45
+ /** Send Channel Message: Sends a message to a teams's channel. */
46
+ microsoftTeamsSendChannelMessage: piece.tool("microsoft_teams_send_channel_message"),
47
+ /** Send Chat Message: Sends a message in an existing chat. */
48
+ microsoftTeamsSendChatMessage: piece.tool("microsoft_teams_send_chat_message"),
49
+ /** Reply to Channel Message: Post a reply to an existing channel message. */
50
+ microsoftTeamsReplyToChannelMessage: piece.tool("microsoft_teams_reply_to_channel_message"),
51
+ /** Create Chat & Send Message: Start a new chat and send an initial message. */
52
+ microsoftTeamsCreateChatAndSendMessage: piece.tool("microsoft_teams_create_chat_and_send_message"),
53
+ /** Create Private Channel: Create a new private channel in a team. */
54
+ microsoftTeamsCreatePrivateChannel: piece.tool("microsoft_teams_create_private_channel"),
55
+ /** Get Chat Message: Fetch a specific chat message by chat and message ID. */
56
+ microsoftTeamsGetChatMessage: piece.tool("microsoft_teams_get_chat_message"),
57
+ /** Delete Chat Message: Soft-Deletes a message in chat.You can only delete messages you sent. */
58
+ microsoftTeamsDeleteChatMessage: piece.tool("microsoft_teams_delete_chat_message"),
59
+ /** Get Channel Message: Fetch a specific channel message by team, channel, and message ID (optionally a reply). */
60
+ microsoftTeamsGetChannelMessage: piece.tool("microsoft_teams_get_channel_message"),
61
+ /** Find Channel: Finds channels by name. */
62
+ microsoftTeamsFindChannel: piece.tool("microsoft_teams_find_channel"),
63
+ /** Find Team Member: Finds a team member by email or display name. */
64
+ microsoftTeamsFindTeamMember: piece.tool("microsoft_teams_find_team_member"),
65
+ /** Get Meeting Transcript: Retrieves transcripts for a Teams meeting. Provide a Transcript to fetch its text content; omit it to list all available transcripts. */
66
+ microsoftTeamsGetMeetingTranscript: piece.tool("microsoft_teams_get_meeting_transcript"),
67
+ /** Get Meeting Recording: Retrieves recordings for a Teams meeting. Provide a Recording to fetch its metadata; omit it to list all available recordings. */
68
+ microsoftTeamsGetMeetingRecording: piece.tool("microsoft_teams_get_meeting_recording"),
69
+ /** Request Approval in Channel: Send approval message to a channel and then wait until the message is approved or disapproved */
70
+ requestApprovalInChannel: piece.tool("request_approval_in_channel"),
71
+ /** Request Approval from a User: Send approval message to a user and then wait until the message is approved or disapproved */
72
+ requestApprovalDirectMessage: piece.tool("request_approval_direct_message"),
73
+ /** Custom API Call: Make a custom API call to a specific endpoint */
74
+ customApiCall: piece.tool("custom_api_call"),
75
+ });
76
+ }
77
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[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C;QAClG,sEAAsE;QACtE,kCAAkC,EAAE,KAAK,CAAC,IAAI,CAAC,wCAAwC,CAAC;QACxF,8EAA8E;QAC9E,4BAA4B,EAAE,KAAK,CAAC,IAAI,CAAC,kCAAkC,CAAC;QAC5E,iGAAiG;QACjG,+BAA+B,EAAE,KAAK,CAAC,IAAI,CAAC,qCAAqC,CAAC;QAClF,mHAAmH;QACnH,+BAA+B,EAAE,KAAK,CAAC,IAAI,CAAC,qCAAqC,CAAC;QAClF,4CAA4C;QAC5C,yBAAyB,EAAE,KAAK,CAAC,IAAI,CAAC,8BAA8B,CAAC;QACrE,sEAAsE;QACtE,4BAA4B,EAAE,KAAK,CAAC,IAAI,CAAC,kCAAkC,CAAC;QAC5E,oKAAoK;QACpK,kCAAkC,EAAE,KAAK,CAAC,IAAI,CAAC,wCAAwC,CAAC;QACxF,4JAA4J;QAC5J,iCAAiC,EAAE,KAAK,CAAC,IAAI,CAAC,uCAAuC,CAAC;QACtF,iIAAiI;QACjI,wBAAwB,EAAE,KAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC;QACnE,+HAA+H;QAC/H,4BAA4B,EAAE,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC;QAC3E,qEAAqE;QACrE,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC"}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@frogbotai/piece-microsoft-teams",
3
+ "version": "0.5.0",
4
+ "description": "Microsoft Teams tools for FrogBot.",
5
+ "license": "MIT",
6
+ "author": "Colby Gilbert",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/frogbotai/frogbot.git",
10
+ "directory": "packages/pieces/piece-microsoft-teams"
11
+ },
12
+ "type": "module",
13
+ "main": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "sideEffects": false,
26
+ "dependencies": {
27
+ "@activepieces/piece-microsoft-teams": "0.6.0"
28
+ },
29
+ "peerDependencies": {
30
+ "frogbot": "0.5.0"
31
+ },
32
+ "devDependencies": {
33
+ "typescript": "5.6.2",
34
+ "frogbot": "0.5.0"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "scripts": {
40
+ "build": "tsc -p tsconfig.json",
41
+ "clean": "rm -rf dist",
42
+ "typecheck": "tsc --noEmit"
43
+ }
44
+ }