@mastra/connect 0.5.0-alpha.2 → 0.5.0-alpha.3
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 +13 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.cjs +3543 -891
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3543 -891
- package/dist/index.js.map +1 -1
- package/dist/multi-connection.d.ts +71 -0
- package/dist/multi-connection.d.ts.map +1 -0
- package/dist/providers/channels.d.ts +1 -1
- package/dist/providers/channels.d.ts.map +1 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/microsoft-teams/index.d.ts +5 -0
- package/dist/providers/microsoft-teams/index.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/add-team-member.d.ts +26 -0
- package/dist/providers/microsoft-teams/tools/add-team-member.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/create-channel-message.d.ts +77 -0
- package/dist/providers/microsoft-teams/tools/create-channel-message.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/create-channel-tab.d.ts +54 -0
- package/dist/providers/microsoft-teams/tools/create-channel-tab.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/create-channel.d.ts +35 -0
- package/dist/providers/microsoft-teams/tools/create-channel.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/create-chat-message.d.ts +53 -0
- package/dist/providers/microsoft-teams/tools/create-chat-message.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/create-chat.d.ts +53 -0
- package/dist/providers/microsoft-teams/tools/create-chat.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/create-team.d.ts +147 -0
- package/dist/providers/microsoft-teams/tools/create-team.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/delete-channel.d.ts +20 -0
- package/dist/providers/microsoft-teams/tools/delete-channel.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/get-channel-message.d.ts +72 -0
- package/dist/providers/microsoft-teams/tools/get-channel-message.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/get-channel.d.ts +36 -0
- package/dist/providers/microsoft-teams/tools/get-channel.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/get-chat-message.d.ts +73 -0
- package/dist/providers/microsoft-teams/tools/get-chat-message.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/get-chat.d.ts +33 -0
- package/dist/providers/microsoft-teams/tools/get-chat.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/get-team.d.ts +96 -0
- package/dist/providers/microsoft-teams/tools/get-team.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/list-channel-messages.d.ts +90 -0
- package/dist/providers/microsoft-teams/tools/list-channel-messages.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/list-channel-replies.d.ts +75 -0
- package/dist/providers/microsoft-teams/tools/list-channel-replies.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/list-channel-tabs.d.ts +52 -0
- package/dist/providers/microsoft-teams/tools/list-channel-tabs.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/list-channels.d.ts +42 -0
- package/dist/providers/microsoft-teams/tools/list-channels.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/list-chat-members.d.ts +34 -0
- package/dist/providers/microsoft-teams/tools/list-chat-members.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/list-chat-messages.d.ts +50 -0
- package/dist/providers/microsoft-teams/tools/list-chat-messages.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/list-chats.d.ts +44 -0
- package/dist/providers/microsoft-teams/tools/list-chats.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/list-joined-teams.d.ts +28 -0
- package/dist/providers/microsoft-teams/tools/list-joined-teams.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/list-team-members.d.ts +32 -0
- package/dist/providers/microsoft-teams/tools/list-team-members.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/remove-team-member.d.ts +20 -0
- package/dist/providers/microsoft-teams/tools/remove-team-member.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/reply-to-channel-message.d.ts +35 -0
- package/dist/providers/microsoft-teams/tools/reply-to-channel-message.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools/update-channel.d.ts +36 -0
- package/dist/providers/microsoft-teams/tools/update-channel.d.ts.map +1 -0
- package/dist/providers/microsoft-teams/tools.d.ts +3 -0
- package/dist/providers/microsoft-teams/tools.d.ts.map +1 -0
- package/dist/resolution.d.ts +26 -0
- package/dist/resolution.d.ts.map +1 -1
- package/dist/tools.d.ts +28 -5
- package/dist/tools.d.ts.map +1 -1
- package/dist/toolset.d.ts +32 -3
- package/dist/toolset.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { ToolsInput } from '@mastra/core/agent';
|
|
2
|
+
import { MCPClient } from '@mastra/mcp';
|
|
3
|
+
import type { ConnectClientOptions, ProjectConnection, ResolvedClient } from './client.js';
|
|
4
|
+
import type { McpProviderRegistration, ProxyProviderRegistration } from './registry.js';
|
|
5
|
+
/**
|
|
6
|
+
* A resolved candidate connection for one provider, tagged with the display
|
|
7
|
+
* name the agent will use in `connection_name`.
|
|
8
|
+
*/
|
|
9
|
+
export interface NamedConnection {
|
|
10
|
+
/** Platform connection id. */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Human-readable name the agent supplies as `connection_name`. Falls back to `id` when the platform has no accountLabel. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Raw accountLabel from the platform, if any (may be null/empty). */
|
|
15
|
+
accountLabel?: string | null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Builds the ordered list of named connections for one provider. Called only
|
|
19
|
+
* when the provider has 2+ active connections and no explicit pin resolves the
|
|
20
|
+
* choice, so multi-connection wrapping is required.
|
|
21
|
+
*/
|
|
22
|
+
export declare function toNamedConnections(candidates: ProjectConnection[]): NamedConnection[];
|
|
23
|
+
/**
|
|
24
|
+
* Resolves a caller-supplied `connection_name` to a platform connection id.
|
|
25
|
+
* Accepts either the display name or the raw connection id, so an agent that
|
|
26
|
+
* received an ambiguous label still has a way to disambiguate. Throws a typed
|
|
27
|
+
* error naming the valid names when the input matches nothing.
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveConnectionName(integrationId: string, connections: NamedConnection[], connectionName: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the wrapper-only list_connections tool key for a provider. Uses a
|
|
32
|
+
* double underscore so it cannot collide with a real provider tool key of the
|
|
33
|
+
* form `<integrationId>_<toolName>` (e.g. WorkOS ships a real
|
|
34
|
+
* `workos_list_connections` tool that lists SSO connections).
|
|
35
|
+
*/
|
|
36
|
+
export declare function listConnectionsToolKey(integrationId: string): string;
|
|
37
|
+
/**
|
|
38
|
+
* Composes a full multi-connection toolset for a proxy provider: one inner
|
|
39
|
+
* toolset per connection, wrapped tools that dispatch by `connection_name`,
|
|
40
|
+
* and the `<provider>__list_connections` tool. `allowTools` and `disallowTools`
|
|
41
|
+
* are honored on the underlying tools (mutually exclusive; connect() validates
|
|
42
|
+
* that up front). The list tool is always included.
|
|
43
|
+
*/
|
|
44
|
+
export declare function buildProxyMultiConnectionTools(input: {
|
|
45
|
+
registration: ProxyProviderRegistration;
|
|
46
|
+
connections: NamedConnection[];
|
|
47
|
+
allowTools?: string[];
|
|
48
|
+
disallowTools?: string[];
|
|
49
|
+
client?: ConnectClientOptions;
|
|
50
|
+
}): ToolsInput;
|
|
51
|
+
/**
|
|
52
|
+
* Composes a full multi-connection toolset for an MCP-backed provider: one
|
|
53
|
+
* MCPClient per connection, wrapped tools that dispatch by `connection_name`,
|
|
54
|
+
* and the `<provider>__list_connections` tool. The caller passes in the MCP
|
|
55
|
+
* client cache so stale clients can be reaped elsewhere.
|
|
56
|
+
*/
|
|
57
|
+
export declare function buildMcpMultiConnectionTools(input: {
|
|
58
|
+
registration: McpProviderRegistration;
|
|
59
|
+
connections: NamedConnection[];
|
|
60
|
+
allowTools?: string[];
|
|
61
|
+
disallowTools?: string[];
|
|
62
|
+
autoApproveTools?: string[];
|
|
63
|
+
client: ResolvedClient;
|
|
64
|
+
mcpClients: Map<string, {
|
|
65
|
+
integrationId: string;
|
|
66
|
+
connectionId: string;
|
|
67
|
+
client: MCPClient;
|
|
68
|
+
}>;
|
|
69
|
+
resolverId: number;
|
|
70
|
+
}): Promise<ToolsInput>;
|
|
71
|
+
//# sourceMappingURL=multi-connection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-connection.d.ts","sourceRoot":"","sources":["../src/multi-connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAGxF;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,6HAA6H;IAC7H,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,iBAAiB,EAAE,GAAG,eAAe,EAAE,CA8BrF;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,eAAe,EAAE,EAC9B,cAAc,EAAE,MAAM,GACrB,MAAM,CAgBR;AAiLD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEpE;AAkDD;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE;IACpD,YAAY,EAAE,yBAAyB,CAAC;IACxC,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B,GAAG,UAAU,CAyCb;AAED;;;;;GAKG;AACH,wBAAsB,4BAA4B,CAAC,KAAK,EAAE;IACxD,YAAY,EAAE,uBAAuB,CAAC;IACtC,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IAC5F,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,UAAU,CAAC,CAwGtB"}
|
|
@@ -19,7 +19,7 @@ import type { ChannelProviderRegistration } from './channel-provider.js';
|
|
|
19
19
|
* inlineMedia, etc.) is forwarded to the provider constructor unchanged.
|
|
20
20
|
*/
|
|
21
21
|
declare const SLACK_RESERVED_KEYS: readonly ['baseUrl', 'refreshToken', 'token', 'tokenResolver', 'encryptionKey'];
|
|
22
|
-
declare const TELEGRAM_RESERVED_KEYS: readonly ['baseUrl', 'apiBaseUrl', 'botToken', 'encryptionKey'];
|
|
22
|
+
declare const TELEGRAM_RESERVED_KEYS: readonly ['baseUrl', 'apiBaseUrl', 'botToken', 'tokenResolver', 'encryptionKey'];
|
|
23
23
|
declare const DISCORD_RESERVED_KEYS: readonly ['baseUrl', 'encryptionKey'];
|
|
24
24
|
/** Reserved (credential + framework-managed) `providerOptions` keys per integration. */
|
|
25
25
|
export type SlackReservedProviderOption = (typeof SLACK_RESERVED_KEYS)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../src/providers/channels.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAMzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,mBAAmB,YAAI,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;AAC5G,QAAA,MAAM,sBAAsB,YAAI,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../src/providers/channels.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAMzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,mBAAmB,YAAI,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;AAC5G,QAAA,MAAM,sBAAsB,YAAI,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;AAChH,QAAA,MAAM,qBAAqB,YAAI,SAAS,EAAE,eAAe,CAAU,CAAC;AAEpE,wFAAwF;AACxF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AACrF,MAAM,MAAM,6BAA6B,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAwMnF,eAAO,MAAM,QAAQ,EAAE,SAAS,2BAA2B,EAAoD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAyB3D,eAAO,MAAM,SAAS,EAAE,SAAS,oBAAoB,EAuBpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/microsoft-teams/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,eAAO,MAAM,sBAAsB,EAAE,oBAIpC,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PlatformProxy } from '../../../runtime/platform-proxy.js';
|
|
3
|
+
export declare const addTeamMemberInputSchema: z.ZodObject<{
|
|
4
|
+
teamId: z.ZodString;
|
|
5
|
+
userId: z.ZodString;
|
|
6
|
+
isOwner: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const addTeamMemberOutputSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
roles: z.ZodArray<z.ZodString>;
|
|
11
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
13
|
+
email: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare function addTeamMemberTool(proxy: PlatformProxy): import("@mastra/core/tools").Tool<{
|
|
16
|
+
teamId: string;
|
|
17
|
+
userId: string;
|
|
18
|
+
isOwner?: boolean | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
id: string;
|
|
21
|
+
roles: string[];
|
|
22
|
+
userId?: string | undefined;
|
|
23
|
+
displayName?: string | undefined;
|
|
24
|
+
email?: string | undefined;
|
|
25
|
+
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "microsoft_teams_add_team_member", unknown>;
|
|
26
|
+
//# sourceMappingURL=add-team-member.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-team-member.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-teams/tools/add-team-member.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;;iBAQnC,CAAC;AAWH,eAAO,MAAM,yBAAyB;;;;;;iBAMpC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;+IAuCrD"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PlatformProxy } from '../../../runtime/platform-proxy.js';
|
|
3
|
+
export declare const createChannelMessageInputSchema: z.ZodObject<{
|
|
4
|
+
teamId: z.ZodString;
|
|
5
|
+
channelId: z.ZodString;
|
|
6
|
+
body: z.ZodObject<{
|
|
7
|
+
contentType: z.ZodEnum<{
|
|
8
|
+
html: "html";
|
|
9
|
+
text: "text";
|
|
10
|
+
}>;
|
|
11
|
+
content: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
contentType: z.ZodString;
|
|
16
|
+
contentUrl: z.ZodOptional<z.ZodString>;
|
|
17
|
+
name: z.ZodOptional<z.ZodString>;
|
|
18
|
+
content: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const createChannelMessageOutputSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
createdDateTime: z.ZodString;
|
|
24
|
+
from: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
body: z.ZodObject<{
|
|
29
|
+
contentType: z.ZodUnion<[z.ZodEnum<{
|
|
30
|
+
html: "html";
|
|
31
|
+
markdown: "markdown";
|
|
32
|
+
text: "text";
|
|
33
|
+
}>, z.ZodString]>;
|
|
34
|
+
content: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
contentType: z.ZodString;
|
|
39
|
+
contentUrl: z.ZodOptional<z.ZodString>;
|
|
40
|
+
name: z.ZodOptional<z.ZodString>;
|
|
41
|
+
content: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export declare function createChannelMessageTool(proxy: PlatformProxy): import("@mastra/core/tools").Tool<{
|
|
45
|
+
teamId: string;
|
|
46
|
+
channelId: string;
|
|
47
|
+
body: {
|
|
48
|
+
contentType: "html" | "text";
|
|
49
|
+
content: string;
|
|
50
|
+
};
|
|
51
|
+
attachments?: {
|
|
52
|
+
id: string;
|
|
53
|
+
contentType: string;
|
|
54
|
+
contentUrl?: string | undefined;
|
|
55
|
+
name?: string | undefined;
|
|
56
|
+
content?: string | undefined;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
id: string;
|
|
60
|
+
createdDateTime: string;
|
|
61
|
+
from?: {
|
|
62
|
+
userId?: string | undefined;
|
|
63
|
+
displayName?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
body: {
|
|
66
|
+
contentType: string;
|
|
67
|
+
content: string;
|
|
68
|
+
};
|
|
69
|
+
attachments?: {
|
|
70
|
+
id: string;
|
|
71
|
+
contentType: string;
|
|
72
|
+
contentUrl?: string | undefined;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
content?: string | undefined;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "microsoft_teams_create_channel_message", unknown>;
|
|
77
|
+
//# sourceMappingURL=create-channel-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-channel-message.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-teams/tools/create-channel-message.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;iBAmB1C,CAAC;AAgCH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;iBAyB3C,CAAC;AAEH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sJAyE5D"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PlatformProxy } from '../../../runtime/platform-proxy.js';
|
|
3
|
+
export declare const createChannelTabInputSchema: z.ZodObject<{
|
|
4
|
+
teamId: z.ZodString;
|
|
5
|
+
channelId: z.ZodString;
|
|
6
|
+
displayName: z.ZodString;
|
|
7
|
+
teamsAppOdataBind: z.ZodString;
|
|
8
|
+
configuration: z.ZodObject<{
|
|
9
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
contentUrl: z.ZodString;
|
|
11
|
+
removeUrl: z.ZodOptional<z.ZodString>;
|
|
12
|
+
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const createChannelTabOutputSchema: z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
displayName: z.ZodString;
|
|
18
|
+
teamsAppId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
teamsAppName: z.ZodOptional<z.ZodString>;
|
|
20
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
contentUrl: z.ZodOptional<z.ZodString>;
|
|
23
|
+
removeUrl: z.ZodOptional<z.ZodString>;
|
|
24
|
+
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
sortOrderIndex: z.ZodOptional<z.ZodString>;
|
|
27
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export declare function createChannelTabTool(proxy: PlatformProxy): import("@mastra/core/tools").Tool<{
|
|
30
|
+
teamId: string;
|
|
31
|
+
channelId: string;
|
|
32
|
+
displayName: string;
|
|
33
|
+
teamsAppOdataBind: string;
|
|
34
|
+
configuration: {
|
|
35
|
+
entityId?: string | undefined;
|
|
36
|
+
contentUrl: string;
|
|
37
|
+
removeUrl?: string | undefined;
|
|
38
|
+
websiteUrl?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
id: string;
|
|
42
|
+
displayName: string;
|
|
43
|
+
teamsAppId?: string | undefined;
|
|
44
|
+
teamsAppName?: string | undefined;
|
|
45
|
+
configuration?: {
|
|
46
|
+
entityId?: string | undefined;
|
|
47
|
+
contentUrl?: string | undefined;
|
|
48
|
+
removeUrl?: string | undefined;
|
|
49
|
+
websiteUrl?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
sortOrderIndex?: string | undefined;
|
|
52
|
+
webUrl?: string | undefined;
|
|
53
|
+
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "microsoft_teams_create_channel_tab", unknown>;
|
|
54
|
+
//# sourceMappingURL=create-channel-tab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-channel-tab.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-teams/tools/create-channel-tab.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAiBtC,CAAC;AAwBH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;iBAevC,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;kJAuCxD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PlatformProxy } from '../../../runtime/platform-proxy.js';
|
|
3
|
+
export declare const createChannelInputSchema: z.ZodObject<{
|
|
4
|
+
teamId: z.ZodString;
|
|
5
|
+
displayName: z.ZodString;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
membershipType: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
private: "private";
|
|
9
|
+
shared: "shared";
|
|
10
|
+
standard: "standard";
|
|
11
|
+
unknownFutureValue: "unknownFutureValue";
|
|
12
|
+
}>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const createChannelOutputSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
displayName: z.ZodString;
|
|
17
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
|
+
membershipType: z.ZodOptional<z.ZodString>;
|
|
19
|
+
createdDateTime: z.ZodOptional<z.ZodString>;
|
|
20
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare function createChannelTool(proxy: PlatformProxy): import("@mastra/core/tools").Tool<{
|
|
23
|
+
teamId: string;
|
|
24
|
+
displayName: string;
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
membershipType?: "private" | "shared" | "standard" | "unknownFutureValue" | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
id: string;
|
|
29
|
+
displayName: string;
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
membershipType?: string | undefined;
|
|
32
|
+
createdDateTime?: string | undefined;
|
|
33
|
+
webUrl?: string | undefined;
|
|
34
|
+
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "microsoft_teams_create_channel", unknown>;
|
|
35
|
+
//# sourceMappingURL=create-channel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-channel.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-teams/tools/create-channel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAQnC,CAAC;AAWH,eAAO,MAAM,yBAAyB;;;;;;;iBAOpC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;;;8IAiCrD"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PlatformProxy } from '../../../runtime/platform-proxy.js';
|
|
3
|
+
export declare const createChatMessageInputSchema: z.ZodObject<{
|
|
4
|
+
chatId: z.ZodString;
|
|
5
|
+
body: z.ZodObject<{
|
|
6
|
+
contentType: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
html: "html";
|
|
8
|
+
text: "text";
|
|
9
|
+
}>>;
|
|
10
|
+
content: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const createChatMessageOutputSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
contentType: z.ZodString;
|
|
18
|
+
content: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
createdDateTime: z.ZodOptional<z.ZodString>;
|
|
21
|
+
lastModifiedDateTime: z.ZodOptional<z.ZodString>;
|
|
22
|
+
from: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
id: z.ZodOptional<z.ZodString>;
|
|
24
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
importance: z.ZodOptional<z.ZodString>;
|
|
27
|
+
messageType: z.ZodOptional<z.ZodString>;
|
|
28
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare function createChatMessageTool(proxy: PlatformProxy): import("@mastra/core/tools").Tool<{
|
|
31
|
+
chatId: string;
|
|
32
|
+
body: {
|
|
33
|
+
contentType?: "html" | "text" | undefined;
|
|
34
|
+
content: string;
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
id: string;
|
|
38
|
+
chatId?: string | undefined;
|
|
39
|
+
body?: {
|
|
40
|
+
contentType: string;
|
|
41
|
+
content: string;
|
|
42
|
+
} | undefined;
|
|
43
|
+
createdDateTime?: string | undefined;
|
|
44
|
+
lastModifiedDateTime?: string | undefined;
|
|
45
|
+
from?: {
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
displayName?: string | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
importance?: string | undefined;
|
|
50
|
+
messageType?: string | undefined;
|
|
51
|
+
webUrl?: string | undefined;
|
|
52
|
+
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "microsoft_teams_create_chat_message", unknown>;
|
|
53
|
+
//# sourceMappingURL=create-chat-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-message.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-teams/tools/create-chat-message.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAWxE,eAAO,MAAM,4BAA4B;;;;;;;;;iBAKvC,CAAC;AAqCH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;iBAoBxC,CAAC;AAEH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;mJAkEzD"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PlatformProxy } from '../../../runtime/platform-proxy.js';
|
|
3
|
+
export declare const createChatInputSchema: z.ZodObject<{
|
|
4
|
+
chatType: z.ZodEnum<{
|
|
5
|
+
group: "group";
|
|
6
|
+
oneOnOne: "oneOnOne";
|
|
7
|
+
}>;
|
|
8
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
9
|
+
members: z.ZodArray<z.ZodObject<{
|
|
10
|
+
userId: z.ZodString;
|
|
11
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
|
+
guest: "guest";
|
|
13
|
+
owner: "owner";
|
|
14
|
+
}>>>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const createChatOutputSchema: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
chatType: z.ZodUnion<[z.ZodEnum<{
|
|
20
|
+
group: "group";
|
|
21
|
+
meeting: "meeting";
|
|
22
|
+
oneOnOne: "oneOnOne";
|
|
23
|
+
unknownFutureValue: "unknownFutureValue";
|
|
24
|
+
}>, z.ZodString]>;
|
|
25
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
26
|
+
createdDateTime: z.ZodOptional<z.ZodString>;
|
|
27
|
+
lastUpdatedDateTime: z.ZodOptional<z.ZodString>;
|
|
28
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
31
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare function createChatTool(proxy: PlatformProxy): import("@mastra/core/tools").Tool<{
|
|
35
|
+
chatType: "group" | "oneOnOne";
|
|
36
|
+
topic?: string | undefined;
|
|
37
|
+
members: {
|
|
38
|
+
userId: string;
|
|
39
|
+
roles?: ("guest" | "owner")[] | undefined;
|
|
40
|
+
}[];
|
|
41
|
+
}, {
|
|
42
|
+
id: string;
|
|
43
|
+
chatType: string;
|
|
44
|
+
topic?: string | undefined;
|
|
45
|
+
createdDateTime?: string | undefined;
|
|
46
|
+
lastUpdatedDateTime?: string | undefined;
|
|
47
|
+
members?: {
|
|
48
|
+
id: string;
|
|
49
|
+
displayName?: string | undefined;
|
|
50
|
+
roles?: string[] | undefined;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "microsoft_teams_create_chat", unknown>;
|
|
53
|
+
//# sourceMappingURL=create-chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-teams/tools/create-chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAUxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;iBAOhC,CAAC;AAiBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;iBAejC,CAAC;AAEH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;;;;;;;;;2IAiElD"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PlatformProxy } from '../../../runtime/platform-proxy.js';
|
|
3
|
+
export declare const createTeamInputSchema: z.ZodObject<{
|
|
4
|
+
display_name: z.ZodString;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
template: z.ZodOptional<z.ZodString>;
|
|
7
|
+
first_channel_name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
hiddenMembership: "hiddenMembership";
|
|
10
|
+
private: "private";
|
|
11
|
+
public: "public";
|
|
12
|
+
}>>;
|
|
13
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
14
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
+
user_id: z.ZodString;
|
|
16
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
17
|
+
member: "member";
|
|
18
|
+
owner: "owner";
|
|
19
|
+
}>>>;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
display_name: z.ZodString;
|
|
23
|
+
description: z.ZodOptional<z.ZodString>;
|
|
24
|
+
is_favorite_by_default: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
+
teams_app_id: z.ZodString;
|
|
27
|
+
display_name: z.ZodString;
|
|
28
|
+
configuration: z.ZodObject<{
|
|
29
|
+
content_url: z.ZodString;
|
|
30
|
+
website_url: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
34
|
+
member_settings: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
allow_create_update_channels: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
allow_delete_channels: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
allow_add_remove_apps: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
allow_create_update_remove_tabs: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
allow_create_update_remove_connectors: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
guest_settings: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
allow_create_update_channels: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
allow_delete_channels: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
fun_settings: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
allow_giphy: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
giphy_content_rating: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
moderate: "moderate";
|
|
49
|
+
strict: "strict";
|
|
50
|
+
}>>;
|
|
51
|
+
allow_stickers_and_memes: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
allow_custom_memes: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
messaging_settings: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
allow_user_edit_messages: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
allow_user_delete_messages: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
allow_owner_delete_messages: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
allow_team_mentions: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
allow_channel_mentions: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
discovery_settings: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
show_in_teams_search_and_suggestions: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
installed_apps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
teams_app_id: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export declare const createTeamOutputSchema: z.ZodObject<{
|
|
69
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
70
|
+
operation_id: z.ZodString;
|
|
71
|
+
operation_url: z.ZodString;
|
|
72
|
+
status: z.ZodUnion<[z.ZodEnum<{
|
|
73
|
+
failed: "failed";
|
|
74
|
+
inProgress: "inProgress";
|
|
75
|
+
notStarted: "notStarted";
|
|
76
|
+
succeeded: "succeeded";
|
|
77
|
+
}>, z.ZodString]>;
|
|
78
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
code: z.ZodString;
|
|
80
|
+
message: z.ZodString;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export declare function createTeamTool(proxy: PlatformProxy): import("@mastra/core/tools").Tool<{
|
|
84
|
+
display_name: string;
|
|
85
|
+
description?: string | undefined;
|
|
86
|
+
template?: string | undefined;
|
|
87
|
+
first_channel_name?: string | undefined;
|
|
88
|
+
visibility?: "hiddenMembership" | "private" | "public" | undefined;
|
|
89
|
+
group_id?: string | undefined;
|
|
90
|
+
members?: {
|
|
91
|
+
user_id: string;
|
|
92
|
+
roles?: ("member" | "owner")[] | undefined;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
channels?: {
|
|
95
|
+
display_name: string;
|
|
96
|
+
description?: string | undefined;
|
|
97
|
+
is_favorite_by_default?: boolean | undefined;
|
|
98
|
+
tabs?: {
|
|
99
|
+
teams_app_id: string;
|
|
100
|
+
display_name: string;
|
|
101
|
+
configuration: {
|
|
102
|
+
content_url: string;
|
|
103
|
+
website_url?: string | undefined;
|
|
104
|
+
};
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
}[] | undefined;
|
|
107
|
+
member_settings?: {
|
|
108
|
+
allow_create_update_channels?: boolean | undefined;
|
|
109
|
+
allow_delete_channels?: boolean | undefined;
|
|
110
|
+
allow_add_remove_apps?: boolean | undefined;
|
|
111
|
+
allow_create_update_remove_tabs?: boolean | undefined;
|
|
112
|
+
allow_create_update_remove_connectors?: boolean | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
guest_settings?: {
|
|
115
|
+
allow_create_update_channels?: boolean | undefined;
|
|
116
|
+
allow_delete_channels?: boolean | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
fun_settings?: {
|
|
119
|
+
allow_giphy?: boolean | undefined;
|
|
120
|
+
giphy_content_rating?: "moderate" | "strict" | undefined;
|
|
121
|
+
allow_stickers_and_memes?: boolean | undefined;
|
|
122
|
+
allow_custom_memes?: boolean | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
messaging_settings?: {
|
|
125
|
+
allow_user_edit_messages?: boolean | undefined;
|
|
126
|
+
allow_user_delete_messages?: boolean | undefined;
|
|
127
|
+
allow_owner_delete_messages?: boolean | undefined;
|
|
128
|
+
allow_team_mentions?: boolean | undefined;
|
|
129
|
+
allow_channel_mentions?: boolean | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
discovery_settings?: {
|
|
132
|
+
show_in_teams_search_and_suggestions?: boolean | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
installed_apps?: {
|
|
135
|
+
teams_app_id: string;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
team_id?: string | undefined;
|
|
139
|
+
operation_id: string;
|
|
140
|
+
operation_url: string;
|
|
141
|
+
status: string;
|
|
142
|
+
error?: {
|
|
143
|
+
code: string;
|
|
144
|
+
message: string;
|
|
145
|
+
} | undefined;
|
|
146
|
+
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "microsoft_teams_create_team", unknown>;
|
|
147
|
+
//# sourceMappingURL=create-team.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-team.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-teams/tools/create-team.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAgExE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBhC,CAAC;AAgBH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBAejC,CAAC;AA2DH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAwMlD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PlatformProxy } from '../../../runtime/platform-proxy.js';
|
|
3
|
+
export declare const deleteChannelInputSchema: z.ZodObject<{
|
|
4
|
+
teamId: z.ZodString;
|
|
5
|
+
channelId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const deleteChannelOutputSchema: z.ZodObject<{
|
|
8
|
+
success: z.ZodBoolean;
|
|
9
|
+
teamId: z.ZodString;
|
|
10
|
+
channelId: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare function deleteChannelTool(proxy: PlatformProxy): import("@mastra/core/tools").Tool<{
|
|
13
|
+
teamId: string;
|
|
14
|
+
channelId: string;
|
|
15
|
+
}, {
|
|
16
|
+
success: boolean;
|
|
17
|
+
teamId: string;
|
|
18
|
+
channelId: string;
|
|
19
|
+
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "microsoft_teams_delete_channel", unknown>;
|
|
20
|
+
//# sourceMappingURL=delete-channel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-channel.d.ts","sourceRoot":"","sources":["../../../../src/providers/microsoft-teams/tools/delete-channel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa;;;;;;;8IAqBrD"}
|