UNPKG

@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

57 lines (54 loc) • 1.57 kB
import { Action } from '../action.mjs'; import { FileUploadInfo } from './file-upload-info.mjs'; /** * * An interface representing FileConsentCard. * File consent card attachment. * */ type FileConsentCard = { /** * @member {string} [description] File description. */ description?: string; /** * @member {number} [sizeInBytes] Size of the file to be uploaded in Bytes. */ sizeInBytes?: number; /** * @member {any} [acceptContext] Context sent back to the Bot if user * consented to upload. This is free flow schema and is sent back in Value * field of Activity. */ acceptContext?: any; /** * @member {any} [declineContext] Context sent back to the Bot if user * declined. This is free flow schema and is sent back in Value field of * Activity. */ declineContext?: any; }; /** * * An interface representing FileConsentCardResponse. * Represents the value of the invoke activity sent when the user acts on a * file consent card * */ type FileConsentCardResponse = { /** * @member {Action} [action] The action the user took. Possible values * include: 'accept', 'decline' */ action: Action; /** * @member {any} [context] The context associated with the action. */ context?: any; /** * @member {FileUploadInfo} [uploadInfo] If the user accepted the file, * contains information about the file to be uploaded. */ uploadInfo?: FileUploadInfo; }; export type { FileConsentCard, FileConsentCardResponse };