import type { TeamsTriggerOptions } from "./lib.js"; /** Options for subscribing to messages in one Teams channel. */ export interface OnMicrosoftTeamsChannelMessagePostedOptions extends TeamsTriggerOptions { /** Exact Microsoft channel display name or ID. */ channel: string; /** Exact Microsoft team display name or ID. */ team: string; } /** * Subscribes to root messages and replies posted in one Teams channel. * * @param options - Channel, team, and Microsoft account selection. * @throws When the account selection is dynamic or belongs to another service. */ export declare const onMicrosoftTeamsChannelMessagePosted: (options: OnMicrosoftTeamsChannelMessagePostedOptions) => import("../../..").Signal<{ attachments: { attachmentId: string; content: string | undefined; contentType: string; name: string | undefined; contentUrl: string | undefined; }[]; body: { content: string; contentType: "text" | "html"; }; createdAt: Date | undefined; deletedAt: Date | undefined; etag: string | undefined; from: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; } | undefined; importance: "high" | "normal" | "unknownFutureValue" | "urgent"; locale: string | undefined; messageId: string; messageType: string; mentions: { mentionId: number; mentionText: string; mentioned: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; reactions: { reactionType: string; createdAt: Date | undefined; user: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; replyToId: string | undefined; subject: string | undefined; summary: string | undefined; updatedAt: Date | undefined; webUrl: string | undefined; channelId: string; teamId: string; }>; /** Options for subscribing to messages in one Teams chat. */ export interface OnMicrosoftTeamsChatMessagePostedOptions extends TeamsTriggerOptions { /** Opaque Microsoft chat identifier. */ chatId: string; } /** * Subscribes to messages posted in one Teams chat. * * @param options - Chat and Microsoft account selection. * @throws When the account selection is dynamic or belongs to another service. */ export declare const onMicrosoftTeamsChatMessagePosted: (options: OnMicrosoftTeamsChatMessagePostedOptions) => import("../../..").Signal<{ attachments: { attachmentId: string; content: string | undefined; contentType: string; name: string | undefined; contentUrl: string | undefined; }[]; body: { content: string; contentType: "text" | "html"; }; createdAt: Date | undefined; deletedAt: Date | undefined; etag: string | undefined; from: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; } | undefined; importance: "high" | "normal" | "unknownFutureValue" | "urgent"; locale: string | undefined; messageId: string; messageType: string; mentions: { mentionId: number; mentionText: string; mentioned: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; reactions: { reactionType: string; createdAt: Date | undefined; user: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; replyToId: string | undefined; subject: string | undefined; summary: string | undefined; updatedAt: Date | undefined; webUrl: string | undefined; chatId: string; }>; /** Options for subscribing to changes within one Microsoft Team. */ export interface OnMicrosoftTeamsTeamEventOptions extends TeamsTriggerOptions { /** Exact Microsoft team display name or ID. */ team: string; } /** Subscribes to team updates and deletion. */ export declare const onMicrosoftTeamsTeamEvent: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "updated"; data: { isArchived: boolean; classification: string | undefined; description: string | undefined; displayName: string; teamId: string; specialization: string | undefined; visibility: "public" | "private" | "unknownFutureValue" | "hiddenMembership" | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "team"; } | { teamId: string; changeType: "deleted"; resourceId: string; resourceType: "team"; }>; /** Subscribes to team updates. */ export declare const onMicrosoftTeamsTeamUpdated: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "updated"; data: { isArchived: boolean; classification: string | undefined; description: string | undefined; displayName: string; teamId: string; specialization: string | undefined; visibility: "public" | "private" | "unknownFutureValue" | "hiddenMembership" | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "team"; }>; /** Subscribes to team deletion. */ export declare const onMicrosoftTeamsTeamDeleted: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "deleted"; resourceId: string; resourceType: "team"; }>; /** Subscribes to channel creation, updates, and deletion in a team. */ export declare const onMicrosoftTeamsChannelEvent: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "created"; data: { createdAt: Date | undefined; description: string | undefined; displayName: string; email: string | undefined; channelId: string; isArchived: boolean; membershipType: "private" | "unknownFutureValue" | "standard" | "shared" | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "channel"; } | { teamId: string; changeType: "updated"; data: { createdAt: Date | undefined; description: string | undefined; displayName: string; email: string | undefined; channelId: string; isArchived: boolean; membershipType: "private" | "unknownFutureValue" | "standard" | "shared" | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "channel"; } | { teamId: string; changeType: "deleted"; resourceId: string; resourceType: "channel"; }>; /** Subscribes to channel creation in a team. */ export declare const onMicrosoftTeamsChannelCreated: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "created"; data: { createdAt: Date | undefined; description: string | undefined; displayName: string; email: string | undefined; channelId: string; isArchived: boolean; membershipType: "private" | "unknownFutureValue" | "standard" | "shared" | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "channel"; }>; /** Subscribes to channel updates in a team. */ export declare const onMicrosoftTeamsChannelUpdated: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "updated"; data: { createdAt: Date | undefined; description: string | undefined; displayName: string; email: string | undefined; channelId: string; isArchived: boolean; membershipType: "private" | "unknownFutureValue" | "standard" | "shared" | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "channel"; }>; /** Subscribes to channel deletion in a team. */ export declare const onMicrosoftTeamsChannelDeleted: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "deleted"; resourceId: string; resourceType: "channel"; }>; /** Subscribes to channel message updates and deletions. */ export declare const onMicrosoftTeamsChannelMessageEvent: (options: OnMicrosoftTeamsChannelMessagePostedOptions) => import("../../..").Signal<{ channelId: string; teamId: string; changeType: "created"; data: { attachments: { attachmentId: string; content: string | undefined; contentType: string; name: string | undefined; contentUrl: string | undefined; }[]; body: { content: string; contentType: "text" | "html"; }; createdAt: Date | undefined; deletedAt: Date | undefined; etag: string | undefined; from: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; } | undefined; importance: "high" | "normal" | "unknownFutureValue" | "urgent"; locale: string | undefined; messageId: string; messageType: string; mentions: { mentionId: number; mentionText: string; mentioned: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; reactions: { reactionType: string; createdAt: Date | undefined; user: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; replyToId: string | undefined; subject: string | undefined; summary: string | undefined; updatedAt: Date | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "channelMessage"; } | { channelId: string; teamId: string; changeType: "updated"; data: { attachments: { attachmentId: string; content: string | undefined; contentType: string; name: string | undefined; contentUrl: string | undefined; }[]; body: { content: string; contentType: "text" | "html"; }; createdAt: Date | undefined; deletedAt: Date | undefined; etag: string | undefined; from: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; } | undefined; importance: "high" | "normal" | "unknownFutureValue" | "urgent"; locale: string | undefined; messageId: string; messageType: string; mentions: { mentionId: number; mentionText: string; mentioned: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; reactions: { reactionType: string; createdAt: Date | undefined; user: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; replyToId: string | undefined; subject: string | undefined; summary: string | undefined; updatedAt: Date | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "channelMessage"; } | { channelId: string; teamId: string; changeType: "deleted"; resourceId: string; resourceType: "channelMessage"; }>; /** Subscribes to channel message updates. */ export declare const onMicrosoftTeamsChannelMessageUpdated: (options: OnMicrosoftTeamsChannelMessagePostedOptions) => import("../../..").Signal<{ channelId: string; teamId: string; changeType: "updated"; data: { attachments: { attachmentId: string; content: string | undefined; contentType: string; name: string | undefined; contentUrl: string | undefined; }[]; body: { content: string; contentType: "text" | "html"; }; createdAt: Date | undefined; deletedAt: Date | undefined; etag: string | undefined; from: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; } | undefined; importance: "high" | "normal" | "unknownFutureValue" | "urgent"; locale: string | undefined; messageId: string; messageType: string; mentions: { mentionId: number; mentionText: string; mentioned: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; reactions: { reactionType: string; createdAt: Date | undefined; user: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; replyToId: string | undefined; subject: string | undefined; summary: string | undefined; updatedAt: Date | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "channelMessage"; }>; /** Subscribes to channel message deletions. */ export declare const onMicrosoftTeamsChannelMessageDeleted: (options: OnMicrosoftTeamsChannelMessagePostedOptions) => import("../../..").Signal<{ channelId: string; teamId: string; changeType: "deleted"; resourceId: string; resourceType: "channelMessage"; }>; /** Subscribes to team-member additions, updates, and removals. */ export declare const onMicrosoftTeamsTeamMemberEvent: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "created"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "teamMember"; } | { teamId: string; changeType: "updated"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "teamMember"; } | { teamId: string; changeType: "deleted"; resourceId: string; resourceType: "teamMember"; }>; /** Subscribes to team-member additions. */ export declare const onMicrosoftTeamsTeamMemberAdded: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "created"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "teamMember"; }>; /** Subscribes to team-member updates. */ export declare const onMicrosoftTeamsTeamMemberUpdated: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "updated"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "teamMember"; }>; /** Subscribes to team-member removals. */ export declare const onMicrosoftTeamsTeamMemberRemoved: (options: OnMicrosoftTeamsTeamEventOptions) => import("../../..").Signal<{ teamId: string; changeType: "deleted"; resourceId: string; resourceType: "teamMember"; }>; /** Subscribes to channel-member additions, updates, and removals. */ export declare const onMicrosoftTeamsChannelMemberEvent: (options: OnMicrosoftTeamsChannelMessagePostedOptions) => import("../../..").Signal<{ channelId: string; teamId: string; changeType: "created"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "channelMember"; } | { channelId: string; teamId: string; changeType: "updated"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "channelMember"; } | { channelId: string; teamId: string; changeType: "deleted"; resourceId: string; resourceType: "channelMember"; }>; /** Subscribes to channel-member additions. */ export declare const onMicrosoftTeamsChannelMemberAdded: (options: OnMicrosoftTeamsChannelMessagePostedOptions) => import("../../..").Signal<{ channelId: string; teamId: string; changeType: "created"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "channelMember"; }>; /** Subscribes to channel-member updates. */ export declare const onMicrosoftTeamsChannelMemberUpdated: (options: OnMicrosoftTeamsChannelMessagePostedOptions) => import("../../..").Signal<{ channelId: string; teamId: string; changeType: "updated"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "channelMember"; }>; /** Subscribes to channel-member removals. */ export declare const onMicrosoftTeamsChannelMemberRemoved: (options: OnMicrosoftTeamsChannelMessagePostedOptions) => import("../../..").Signal<{ channelId: string; teamId: string; changeType: "deleted"; resourceId: string; resourceType: "channelMember"; }>; /** Subscribes to chat updates. */ export declare const onMicrosoftTeamsChatEvent: (options: OnMicrosoftTeamsChatMessagePostedOptions) => import("../../..").Signal<{ chatId: string; changeType: "updated"; data: { chatType: "group" | "unknownFutureValue" | "meeting" | "oneOnOne"; createdAt: Date | undefined; chatId: string; updatedAt: Date | undefined; tenantId: string | undefined; topic: string | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "chat"; }>; /** Subscribes to chat updates. */ export declare const onMicrosoftTeamsChatUpdated: (options: OnMicrosoftTeamsChatMessagePostedOptions) => import("../../..").Signal<{ chatId: string; changeType: "updated"; data: { chatType: "group" | "unknownFutureValue" | "meeting" | "oneOnOne"; createdAt: Date | undefined; chatId: string; updatedAt: Date | undefined; tenantId: string | undefined; topic: string | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "chat"; }>; /** Subscribes to chat message updates and deletions. */ export declare const onMicrosoftTeamsChatMessageEvent: (options: OnMicrosoftTeamsChatMessagePostedOptions) => import("../../..").Signal<{ chatId: string; changeType: "created"; data: { attachments: { attachmentId: string; content: string | undefined; contentType: string; name: string | undefined; contentUrl: string | undefined; }[]; body: { content: string; contentType: "text" | "html"; }; createdAt: Date | undefined; deletedAt: Date | undefined; etag: string | undefined; from: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; } | undefined; importance: "high" | "normal" | "unknownFutureValue" | "urgent"; locale: string | undefined; messageId: string; messageType: string; mentions: { mentionId: number; mentionText: string; mentioned: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; reactions: { reactionType: string; createdAt: Date | undefined; user: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; replyToId: string | undefined; subject: string | undefined; summary: string | undefined; updatedAt: Date | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "chatMessage"; } | { chatId: string; changeType: "updated"; data: { attachments: { attachmentId: string; content: string | undefined; contentType: string; name: string | undefined; contentUrl: string | undefined; }[]; body: { content: string; contentType: "text" | "html"; }; createdAt: Date | undefined; deletedAt: Date | undefined; etag: string | undefined; from: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; } | undefined; importance: "high" | "normal" | "unknownFutureValue" | "urgent"; locale: string | undefined; messageId: string; messageType: string; mentions: { mentionId: number; mentionText: string; mentioned: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; reactions: { reactionType: string; createdAt: Date | undefined; user: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; replyToId: string | undefined; subject: string | undefined; summary: string | undefined; updatedAt: Date | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "chatMessage"; } | { chatId: string; changeType: "deleted"; resourceId: string; resourceType: "chatMessage"; }>; /** Subscribes to chat message updates. */ export declare const onMicrosoftTeamsChatMessageUpdated: (options: OnMicrosoftTeamsChatMessagePostedOptions) => import("../../..").Signal<{ chatId: string; changeType: "updated"; data: { attachments: { attachmentId: string; content: string | undefined; contentType: string; name: string | undefined; contentUrl: string | undefined; }[]; body: { content: string; contentType: "text" | "html"; }; createdAt: Date | undefined; deletedAt: Date | undefined; etag: string | undefined; from: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; } | undefined; importance: "high" | "normal" | "unknownFutureValue" | "urgent"; locale: string | undefined; messageId: string; messageType: string; mentions: { mentionId: number; mentionText: string; mentioned: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; reactions: { reactionType: string; createdAt: Date | undefined; user: { applicationId: string | undefined; deviceId: string | undefined; displayName: string | undefined; userId: string | undefined; }; }[]; replyToId: string | undefined; subject: string | undefined; summary: string | undefined; updatedAt: Date | undefined; webUrl: string | undefined; }; resourceId: string; resourceType: "chatMessage"; }>; /** Subscribes to chat message deletions. */ export declare const onMicrosoftTeamsChatMessageDeleted: (options: OnMicrosoftTeamsChatMessagePostedOptions) => import("../../..").Signal<{ chatId: string; changeType: "deleted"; resourceId: string; resourceType: "chatMessage"; }>; /** Subscribes to chat-member additions and removals. */ export declare const onMicrosoftTeamsChatMemberEvent: (options: OnMicrosoftTeamsChatMessagePostedOptions) => import("../../..").Signal<{ chatId: string; changeType: "created"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "chatMember"; } | { chatId: string; changeType: "deleted"; resourceId: string; resourceType: "chatMember"; }>; /** Subscribes to chat-member additions. */ export declare const onMicrosoftTeamsChatMemberAdded: (options: OnMicrosoftTeamsChatMessagePostedOptions) => import("../../..").Signal<{ chatId: string; changeType: "created"; data: { displayName: string | undefined; email: string | undefined; memberId: string; roles: string[]; tenantId: string | undefined; userId: string | undefined; visibleHistoryStartAt: Date | undefined; }; resourceId: string; resourceType: "chatMember"; }>; /** Subscribes to chat-member removals. */ export declare const onMicrosoftTeamsChatMemberRemoved: (options: OnMicrosoftTeamsChatMessagePostedOptions) => import("../../..").Signal<{ chatId: string; changeType: "deleted"; resourceId: string; resourceType: "chatMember"; }>; //# sourceMappingURL=index.d.ts.map