UNPKG

@chrimc62/botframework-schema

Version:

Activity schema for the Microsoft Bot Framework.

96 lines 2.94 kB
import { Attachment } from '../../'; import * as teams from '../'; /** * Defines values for Type. * Possible values include: 'ViewAction', 'OpenUri', 'HttpPOST', 'ActionCard' * @readonly * @enum {string} */ export declare type O365ConnectorCardActionType = 'ViewAction' | 'OpenUri' | 'HttpPOST' | 'ActionCard'; /** * @interface * An interface representing O365ConnectorCardActionBase. * O365 connector card action base * */ export interface O365ConnectorCardActionBase { /** * @member {Type} [type] Type of the action. Possible values include: * 'ViewAction', 'OpenUri', 'HttpPOST', 'ActionCard' */ '@type'?: O365ConnectorCardActionType; /** * @member {string} [name] Name of the action that will be used as button * title */ name?: string; /** * @member {string} [id] Action Id */ '@id'?: string; } /** * Defines values for O365ConnectorCardInputType. * Possible values include: 'textInput', 'dateInput', 'multichoiceInput' * @readonly * @enum {string} */ export declare type O365ConnectorCardInputType = 'textInput' | 'dateInput' | 'multichoiceInput'; /** * @interface * An interface representing O365ConnectorCardInputBase. * O365 connector card input for ActionCard action * */ export interface O365ConnectorCardInputBase { /** * @member {O365ConnectorCardInputBaseType} [type] Input type name. Possible values include: * 'textInput', 'dateInput', 'multichoiceInput' */ '@type'?: O365ConnectorCardInputType; /** * @member {string} [id] Input Id. It must be unique per entire O365 * connector card. */ id?: string; /** * @member {boolean} [isRequired] Define if this input is a required field. * Default value is false. */ isRequired?: boolean; /** * @member {string} [title] Input title that will be shown as the placeholder */ title?: string; /** * @member {string} [value] Default value for this input field */ value?: string; } export interface TeamsAttachment<ContentType> extends Attachment { content: ContentType; } export declare type FileDownloadInfoAttachment = TeamsAttachment<teams.FileDownloadInfo>; /** * @interface * An interface representing MessageActionsPayloadBody. * Plaintext/HTML representation of the content of the message. * */ export interface MessageActionsPayloadBody { /** * @member {ContentType} [contentType] Type of the content. Possible values * include: 'html', 'text' */ contentType?: teams.ContentType; /** * @member {string} [content] The content of the body. */ content?: string; /** * @member {string} [textContent] The text content of the body after * stripping HTML tags. */ textContent?: string; } //# sourceMappingURL=index.d.ts.map