@microsoft/teams.api
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.api" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.api/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.api?activeTab=code" t
36 lines (34 loc) • 1.21 kB
text/typescript
/**
*
* An interface representing EncryptedChatInfo.
* The encrypted form of the id of a chat scope.
*
* @experimental This API is in preview and may change in the future. Diagnostic: ExperimentalTeamsThreading
*/
type EncryptedChatInfo = {
/**
* @member {string} [id] The encrypted id of the chat scope
*/
readonly id?: string;
};
/**
*
* An interface representing ChatInfo.
* Identifies the chat scope that contains an inbound activity.
*
* @experimental This API is in preview and may change in the future. Diagnostic: ExperimentalTeamsThreading
*/
type ChatInfo = {
/**
* @member {string} [id] The id of the chat scope, without any reply chain (thread).
* This is the unencrypted id, and it can differ from `conversation.id`.
* It is not sent for channels, where `channelData.channel.id` plays this role.
* Use it as the conversation id to send a top-level message to the chat scope, or to reply in a reply chain.
*/
readonly id?: string;
/**
* @member {EncryptedChatInfo} [encrypted] The encrypted form of the chat scope's id.
*/
readonly encrypted?: EncryptedChatInfo;
};
export type { ChatInfo, EncryptedChatInfo };