@microsoft/teams.apps
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.apps" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.apps/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.apps?activeTab=code
961 lines (960 loc) • 49.9 kB
TypeScript
import { ActivityParams, Attachment, ChannelData, Client, ConversationReference, Entity, IMessageActivity, ITypingActivity, SentActivity, TypingActivity } from '@microsoft/teams.api';
import { EventEmitter, ILogger } from '@microsoft/teams.common';
import { IStreamer, IStreamerEvents } from '../../types';
export declare class HttpStream implements IStreamer {
readonly events: EventEmitter<IStreamerEvents>;
protected client: Client;
protected ref: ConversationReference;
protected index: number;
protected id?: string;
protected text: string;
protected attachments: Attachment[];
protected channelData: ChannelData;
protected entities: Entity[];
protected queue: Array<Partial<IMessageActivity | ITypingActivity>>;
private _result?;
private _timeout?;
private _logger;
private _flushing;
constructor(client: Client, ref: ConversationReference, logger?: ILogger);
emit(activity: Partial<IMessageActivity | ITypingActivity> | string): void;
update(text: string): void;
close(): Promise<SentActivity | undefined>;
protected flush(): Promise<void>;
protected pushStreamChunk(activity: TypingActivity): Promise<void>;
protected send(activity: ActivityParams): Promise<{
id: string;
type: "message";
text?: string | undefined;
speak?: string | undefined;
inputHint?: import("@microsoft/teams.api").InputHint | undefined;
summary?: string | undefined;
textFormat?: import("@microsoft/teams.api").TextFormat | undefined;
attachmentLayout?: import("@microsoft/teams.api").AttachmentLayout | undefined;
attachments?: Attachment[] | undefined;
suggestedActions?: import("@microsoft/teams.api").SuggestedActions | undefined;
importance?: import("@microsoft/teams.api").Importance | undefined;
deliveryMode?: import("@microsoft/teams.api").DeliveryMode | undefined;
expiration?: Date | undefined;
value?: any;
stripMentionsText?: ((options?: import("@microsoft/teams.api").StripMentionsTextOptions) => IMessageActivity) | undefined;
isRecipientMentioned?: (() => boolean) | undefined;
getAccountMention?: ((accountId: string) => import("@microsoft/teams.api").MentionEntity | undefined) | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "messageUpdate";
text?: string | undefined;
speak?: string | undefined;
summary?: string | undefined;
expiration?: Date | undefined;
value?: any;
channelData?: (ChannelData & {
eventType: "undeleteMessage" | "editMessage";
}) | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "messageDelete";
channelData?: (ChannelData & {
eventType: "softDeleteMessage";
}) | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "messageReaction";
reactionsAdded?: import("@microsoft/teams.api").MessageReaction[] | undefined;
reactionsRemoved?: import("@microsoft/teams.api").MessageReaction[] | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "event";
name?: "application/vnd.microsoft.readReceipt" | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "event";
name?: "application/vnd.microsoft.meetingStart" | undefined;
value?: {
id: string;
meetingType: string;
joinUrl: string;
title: string;
startTime: Date;
} | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "event";
name?: "application/vnd.microsoft.meetingEnd" | undefined;
value?: {
id: string;
meetingType: string;
joinUrl: string;
title: string;
endTime: Date;
} | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "event";
name?: "application/vnd.microsoft.meetingParticipantJoin" | undefined;
value?: {
members: {
user: import("@microsoft/teams.api").Account;
meeting: {
inMeeting: boolean;
role: string;
};
}[];
} | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "event";
name?: "application/vnd.microsoft.meetingParticipantLeave" | undefined;
value?: {
members: {
user: import("@microsoft/teams.api").Account;
meeting: {
inMeeting: boolean;
role: string;
};
}[];
} | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "fileConsent/invoke" | undefined;
value?: import("@microsoft/teams.api").FileConsentCardResponse | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "actionableMessage/executeAction" | undefined;
value?: import("@microsoft/teams.api").O365ConnectorCardActionQuery | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "composeExtension/anonymousQueryLink" | undefined;
value?: import("@microsoft/teams.api").AppBasedLinkQuery | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "composeExtension/fetchTask" | undefined;
value?: import("@microsoft/teams.api").MessagingExtensionAction | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "composeExtension/onCardButtonClicked" | undefined;
value?: any;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "composeExtension/queryLink" | undefined;
value?: import("@microsoft/teams.api").AppBasedLinkQuery | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "composeExtension/querySettingUrl" | undefined;
value?: import("@microsoft/teams.api").MessagingExtensionQuery | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "composeExtension/query" | undefined;
value?: import("@microsoft/teams.api").MessagingExtensionQuery | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "composeExtension/selectItem" | undefined;
value?: any;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "composeExtension/setting" | undefined;
value?: import("@microsoft/teams.api").MessagingExtensionQuery | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "composeExtension/submitAction" | undefined;
value?: import("@microsoft/teams.api").MessagingExtensionAction | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "config/fetch" | undefined;
value?: any;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "config/submit" | undefined;
value?: any;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "tab/fetch" | undefined;
value?: import("@microsoft/teams.api").TabRequest | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "tab/submit" | undefined;
value?: import("@microsoft/teams.api").TabRequest | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "task/fetch" | undefined;
value?: import("@microsoft/teams.api").TaskModuleRequest | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "task/submit" | undefined;
value?: import("@microsoft/teams.api").TaskModuleRequest | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "message/submitAction" | undefined;
value?: {
actionName: "feedback";
actionValue: {
reaction: "like" | "dislike";
feedback: string;
};
} | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "handoff/action" | undefined;
value?: {
continuation: string;
} | undefined;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "signin/tokenExchange" | undefined;
value?: import("@microsoft/teams.api").SignInExchangeToken | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "signin/verifyState" | undefined;
value?: import("@microsoft/teams.api").SigninStateVerifyQuery | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "invoke";
name?: "adaptiveCard/action" | undefined;
value?: import("@microsoft/teams.api").AdaptiveCardInvokeValue | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "trace";
name?: string | undefined;
label?: string | undefined;
valueType?: string | undefined;
value?: any;
relatesTo?: ConversationReference | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "typing";
text?: string | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "handoff";
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "conversationUpdate";
membersAdded?: import("@microsoft/teams.api").Account[] | undefined;
membersRemoved?: import("@microsoft/teams.api").Account[] | undefined;
topicName?: string | undefined;
historyDisclosed?: boolean | undefined;
channelData?: (ChannelData & {
eventType: "channelCreated" | "channelDeleted" | "channelRenamed" | "channelRestored" | "channelShared" | "channelUnshared" | "channelMemberAdded" | "channelMemberRemoved" | "teamArchived" | "teamDeleted" | "teamHardDeleted" | "teamRenamed" | "teamRestored" | "teamUnarchived";
}) | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "endOfConversation";
code?: import("@microsoft/teams.api").EndOfConversationCode | undefined;
text?: string | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "command";
name?: string | undefined;
value?: import("@microsoft/teams.api").CommandValue<any> | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "commandResult";
name?: string | undefined;
value?: import("@microsoft/teams.api").CommandResultValue<any> | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "installationUpdate";
action?: "add" | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
} | {
id: string;
type: "installationUpdate";
action?: "remove" | undefined;
serviceUrl?: string | undefined;
timestamp?: Date | undefined;
locale?: string | undefined;
localTimestamp?: Date | undefined;
channelId?: import("@microsoft/teams.api").ChannelID | undefined;
from?: import("@microsoft/teams.api").Account | undefined;
conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
relatesTo?: ConversationReference | undefined;
recipient?: import("@microsoft/teams.api").Account | undefined;
replyToId?: string | undefined;
entities?: Entity[] | undefined;
channelData?: ChannelData | undefined;
channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
team?: import("@microsoft/teams.api").TeamInfo | undefined;
meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
isStreaming?: (() => boolean) | undefined;
}>;
}