@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
33 lines (32 loc) • 617 B
TypeScript
import { IToken } from '@microsoft/teams.api';
/**
* Core activity fields that all transports need to know about
*/
export interface ICoreActivity {
/**
* Service URL for routing
*/
serviceUrl?: string;
/**
* Activity ID for correlation
*/
id?: string;
/**
* Activity type for basic routing
*/
type?: string;
}
/**
* the event emitted by a plugin
* when an activity is received
*/
export interface IActivityEvent {
/**
* inbound request token
*/
token: IToken;
/**
* inbound request body payload
*/
body: ICoreActivity;
}