UNPKG

@chrimc62/botframework-schema

Version:

Activity schema for the Microsoft Bot Framework.

1,400 lines (1,321 loc) 36.4 kB
/* * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ // The Teams schemas was manually added to botframework-schema. This file has been updated import from the botframework-schema and the extension folder. // The ChannelCount and MemberCount fields were manually added to the TeamDetails definition. import * as teams from './extension'; import { Activity, Attachment, CardAction, ChannelAccount } from '../'; export * from './extension'; /** * @interface * An interface representing ChannelInfo. * A channel info object which decribes the channel. * */ export interface ChannelInfo { /** * @member {string} [id] Unique identifier representing a channel */ id?: string; /** * @member {string} [name] Name of the channel */ name?: string; } /** * @interface * An interface representing ConversationList. * List of channels under a team * */ export interface ConversationList { /** * @member {ChannelInfo[]} [conversations] */ conversations?: ChannelInfo[]; } /** * @interface * An interface representing TeamDetails. * Details related to a team * */ export interface TeamDetails { /** * @member {string} [id] Unique identifier representing a team */ id?: string; /** * @member {string} [name] Name of team. */ name?: string; /** * @member {string} [aadGroupId] Azure Active Directory (AAD) Group Id for * the team. */ aadGroupId?: string; /** * @member {number} [channelCount] Count of channels in the team. */ channelCount?: number; /** * @member {number} [memberCount] Count of members in the team. * the team. */ memberCount?: number; } /** * @interface * An interface representing TeamInfo. * Describes a team * */ export interface TeamInfo { /** * @member {string} [id] Unique identifier representing a team */ id?: string; /** * @member {string} [name] Name of team. */ name?: string; } /** * @interface * An interface representing NotificationInfo. * Specifies if a notification is to be sent for the mentions. * */ export interface NotificationInfo { /** * @member {boolean} [alert] true if notification is to be sent to the user, * false otherwise. */ alert?: boolean; } /** * @interface * An interface representing TenantInfo. * Describes a tenant * */ export interface TenantInfo { /** * @member {string} [id] Unique identifier representing a tenant */ id?: string; } /** * @interface * An interface representing TeamsChannelData. * Channel data specific to messages received in Microsoft Teams * */ export interface TeamsChannelData { /** * @member {ChannelInfo} [channel] Information about the channel in which the * message was sent */ channel?: ChannelInfo; /** * @member {string} [eventType] Type of event. */ eventType?: string; /** * @member {TeamInfo} [team] Information about the team in which the message * was sent */ team?: TeamInfo; /** * @member {NotificationInfo} [notification] Notification settings for the * message */ notification?: NotificationInfo; /** * @member {TenantInfo} [tenant] Information about the tenant in which the * message was sent */ tenant?: TenantInfo; } /** * @interface * An interface representing TeamsChannelAccount. * Teams channel account detailing user Azure Active Directory details. * * @extends ChannelAccount */ export interface TeamsChannelAccount extends ChannelAccount { /** * @member {string} [givenName] Given name part of the user name. */ givenName?: string; /** * @member {string} [surname] Surname part of the user name. */ surname?: string; /** * @member {string} [email] Email Id of the user. */ email?: string; /** * @member {string} [userPrincipalName] Unique user principal name */ userPrincipalName?: string; } export interface TeamsPagedMembersResult { /** * Paging token */ continuationToken: string; /** * The Channel Accounts. */ members: TeamsChannelAccount[]; } /** * @interface * An interface representing O365ConnectorCardFact. * O365 connector card fact * */ export interface O365ConnectorCardFact { /** * @member {string} [name] Display name of the fact */ name?: string; /** * @member {string} [value] Display value for the fact */ value?: string; } /** * @interface * An interface representing O365ConnectorCardImage. * O365 connector card image * */ export interface O365ConnectorCardImage { /** * @member {string} [image] URL for the image */ image?: string; /** * @member {string} [title] Alternative text for the image */ title?: string; } /** * @interface * An interface representing O365ConnectorCardSection. * O365 connector card section * */ export interface O365ConnectorCardSection { /** * @member {string} [title] Title of the section */ title?: string; /** * @member {string} [text] Text for the section */ text?: string; /** * @member {string} [activityTitle] Activity title */ activityTitle?: string; /** * @member {string} [activitySubtitle] Activity subtitle */ activitySubtitle?: string; /** * @member {string} [activityText] Activity text */ activityText?: string; /** * @member {string} [activityImage] Activity image */ activityImage?: string; /** * @member {ActivityImageType} [activityImageType] Describes how Activity * image is rendered. Possible values include: 'avatar', 'article' */ activityImageType?: ActivityImageType; /** * @member {boolean} [markdown] Use markdown for all text contents. Default * vaule is true. */ markdown?: boolean; /** * @member {O365ConnectorCardFact[]} [facts] Set of facts for the current * section */ facts?: O365ConnectorCardFact[]; /** * @member {O365ConnectorCardImage[]} [images] Set of images for the current * section */ images?: O365ConnectorCardImage[]; /** * @member {O365ConnectorCardActionBase[]} [potentialAction] Set of actions * for the current section */ potentialAction?: teams.O365ConnectorCardActionBase[]; } /** * @interface * An interface representing O365ConnectorCard. * O365 connector card * */ export interface O365ConnectorCard { /** * @member {string} [title] Title of the item */ title?: string; /** * @member {string} [text] Text for the card */ text?: string; /** * @member {string} [summary] Summary for the card */ summary?: string; /** * @member {string} [themeColor] Theme color for the card */ themeColor?: string; /** * @member {O365ConnectorCardSection[]} [sections] Set of sections for the * current card */ sections?: O365ConnectorCardSection[]; /** * @member {O365ConnectorCardActionBase[]} [potentialAction] Set of actions * for the current card */ potentialAction?: teams.O365ConnectorCardActionBase[]; } /** * @interface * An interface representing O365ConnectorCardViewAction. * O365 connector card ViewAction action * * @extends teams.O365ConnectorCardActionBase */ export interface O365ConnectorCardViewAction extends teams.O365ConnectorCardActionBase { /** * @member {string[]} [target] Target urls, only the first url effective for * card button */ target?: string[]; } /** * @interface * An interface representing O365ConnectorCardOpenUriTarget. * O365 connector card OpenUri target * */ export interface O365ConnectorCardOpenUriTarget { /** * @member {Os} [os] Target operating system. Possible values include: * 'default', 'iOS', 'android', 'windows' */ os?: Os; /** * @member {string} [uri] Target url */ uri?: string; } /** * @interface * An interface representing O365ConnectorCardOpenUri. * O365 connector card OpenUri action * * @extends teams.O365ConnectorCardActionBase */ export interface O365ConnectorCardOpenUri extends teams.O365ConnectorCardActionBase { /** * @member {O365ConnectorCardOpenUriTarget[]} [targets] Target os / urls */ targets?: O365ConnectorCardOpenUriTarget[]; } /** * @interface * An interface representing O365ConnectorCardHttpPOST. * O365 connector card HttpPOST action * * @extends teams.O365ConnectorCardActionBase */ export interface O365ConnectorCardHttpPOST extends teams.O365ConnectorCardActionBase { /** * @member {string} [body] Content to be posted back to bots via invoke */ body?: string; } /** * @interface * An interface representing O365ConnectorCardActionCard. * O365 connector card ActionCard action * * @extends teams.O365ConnectorCardActionBase */ export interface O365ConnectorCardActionCard extends teams.O365ConnectorCardActionBase { /** * @member {O365ConnectorCardInputBase[]} [inputs] Set of inputs contained in * this ActionCard whose each item can be in any subtype of * teams.O365ConnectorCardInputBase */ inputs?: teams.O365ConnectorCardInputBase[]; /** * @member {O365ConnectorCardActionBase[]} [actions] Set of actions contained * in this ActionCard whose each item can be in any subtype of * teams.O365ConnectorCardActionBase except O365ConnectorCardActionCard, as nested * ActionCard is forbidden. */ actions?: teams.O365ConnectorCardActionBase[]; } /** * @interface * An interface representing O365ConnectorCardTextInput. * O365 connector card text input * * @extends teams.O365ConnectorCardInputBase */ export interface O365ConnectorCardTextInput extends teams.O365ConnectorCardInputBase { /** * @member {boolean} [isMultiline] Define if text input is allowed for * multiple lines. Default value is false. */ isMultiline?: boolean; /** * @member {number} [maxLength] Maximum length of text input. Default value * is unlimited. */ maxLength?: number; } /** * @interface * An interface representing O365ConnectorCardDateInput. * O365 connector card date input * * @extends teams.O365ConnectorCardInputBase */ export interface O365ConnectorCardDateInput extends teams.O365ConnectorCardInputBase { /** * @member {boolean} [includeTime] Include time input field. Default value * is false (date only). */ includeTime?: boolean; } /** * @interface * An interface representing O365ConnectorCardMultichoiceInputChoice. * O365O365 connector card multiple choice input item * */ export interface O365ConnectorCardMultichoiceInputChoice { /** * @member {string} [display] The text rednered on ActionCard. */ display?: string; /** * @member {string} [value] The value received as results. */ value?: string; } /** * @interface * An interface representing O365ConnectorCardMultichoiceInput. * O365 connector card multiple choice input * * @extends teams.O365ConnectorCardInputBase */ export interface O365ConnectorCardMultichoiceInput extends teams.O365ConnectorCardInputBase { /** * @member {O365ConnectorCardMultichoiceInputChoice[]} [choices] Set of * choices whose each item can be in any subtype of * O365ConnectorCardMultichoiceInputChoice. */ choices?: O365ConnectorCardMultichoiceInputChoice[]; /** * @member {Style} [style] Choice item rendering style. Default valud is * 'compact'. Possible values include: 'compact', 'expanded' */ style?: Style; /** * @member {boolean} [isMultiSelect] Define if this input field allows * multiple selections. Default value is false. */ isMultiSelect?: boolean; } /** * @interface * An interface representing O365ConnectorCardActionQuery. * O365 connector card HttpPOST invoke query * */ export interface O365ConnectorCardActionQuery { /** * @member {string} [body] The results of body string defined in * IO365ConnectorCardHttpPOST with substituted input values */ body?: string; /** * @member {string} [actionId] Action Id associated with the HttpPOST action * button triggered, defined in teams.O365ConnectorCardActionBase. */ actionId?: string; } /** * @interface * An interface representing SigninStateVerificationQuery. * Signin state (part of signin action auth flow) verification invoke query * */ export interface SigninStateVerificationQuery { /** * @member {string} [state] The state string originally received when the * signin web flow is finished with a state posted back to client via tab SDK * microsoftTeams.authentication.notifySuccess(state) */ state?: string; } /** * @interface * An interface representing MessagingExtensionQueryOptions. * Messaging extension query options * */ export interface MessagingExtensionQueryOptions { /** * @member {number} [skip] Number of entities to skip */ skip?: number; /** * @member {number} [count] Number of entities to fetch */ count?: number; } /** * @interface * An interface representing MessagingExtensionParameter. * Messaging extension query parameters * */ export interface MessagingExtensionParameter { /** * @member {string} [name] Name of the parameter */ name?: string; /** * @member {any} [value] Value of the parameter */ value?: any; } /** * @interface * An interface representing MessagingExtensionQuery. * Messaging extension query * */ export interface MessagingExtensionQuery { /** * @member {string} [commandId] Id of the command assigned by Bot */ commandId?: string; /** * @member {MessagingExtensionParameter[]} [parameters] Parameters for the * query */ parameters?: MessagingExtensionParameter[]; /** * @member {MessagingExtensionQueryOptions} [queryOptions] */ queryOptions?: MessagingExtensionQueryOptions; /** * @member {string} [state] State parameter passed back to the bot after * authentication/configuration flow */ state?: string; } /** * @interface * An interface representing MessageActionsPayloadUser. * Represents a user entity. * */ export interface MessageActionsPayloadUser { /** * @member {UserIdentityType} [userIdentityType] The identity type of the * user. Possible values include: 'aadUser', 'onPremiseAadUser', * 'anonymousGuest', 'federatedUser' */ userIdentityType?: UserIdentityType; /** * @member {string} [id] The id of the user. */ id?: string; /** * @member {string} [displayName] The plaintext display name of the user. */ displayName?: string; } /** * @interface * An interface representing MessageActionsPayloadApp. * Represents an application entity. * */ export interface MessageActionsPayloadApp { /** * @member {ApplicationIdentityType} [applicationIdentityType] The type of * application. Possible values include: 'aadApplication', 'bot', * 'tenantBot', 'office365Connector', 'webhook' */ applicationIdentityType?: ApplicationIdentityType; /** * @member {string} [id] The id of the application. */ id?: string; /** * @member {string} [displayName] The plaintext display name of the * application. */ displayName?: string; } /** * @interface * An interface representing MessageActionsPayloadConversation. * Represents a team or channel entity. * */ export interface MessageActionsPayloadConversation { /** * @member {ConversationIdentityType} [conversationIdentityType] The type of * conversation, whether a team or channel. Possible values include: 'team', * 'channel' */ conversationIdentityType?: ConversationIdentityType; /** * @member {string} [id] The id of the team or channel. */ id?: string; /** * @member {string} [displayName] The plaintext display name of the team or * channel entity. */ displayName?: string; } /** * @interface * An interface representing MessageActionsPayloadFrom. * Represents a user, application, or conversation type that either sent or was * referenced in a message. * */ export interface MessageActionsPayloadFrom { /** * @member {MessageActionsPayloadUser} [user] Represents details of the user. */ user?: MessageActionsPayloadUser; /** * @member {MessageActionsPayloadApp} [application] Represents details of the * app. */ application?: MessageActionsPayloadApp; /** * @member {MessageActionsPayloadConversation} [conversation] Represents * details of the converesation. */ conversation?: MessageActionsPayloadConversation; } /** * @interface * An interface representing MessageActionsPayloadAttachment. * Represents the attachment in a message. * */ export interface MessageActionsPayloadAttachment { /** * @member {string} [id] The id of the attachment. */ id?: string; /** * @member {string} [contentType] The type of the attachment. */ contentType?: string; /** * @member {string} [contentUrl] The url of the attachment, in case of a * external link. */ contentUrl?: string; /** * @member {any} [content] The content of the attachment, in case of a code * snippet, email, or file. */ content?: any; /** * @member {string} [name] The plaintext display name of the attachment. */ name?: string; /** * @member {string} [thumbnailUrl] The url of a thumbnail image that might be * embedded in the attachment, in case of a card. */ thumbnailUrl?: string; } /** * @interface * An interface representing MessageActionsPayloadMention. * Represents the entity that was mentioned in the message. * */ export interface MessageActionsPayloadMention { /** * @member {number} [id] The id of the mentioned entity. */ id?: number; /** * @member {string} [mentionText] The plaintext display name of the mentioned * entity. */ mentionText?: string; /** * @member {MessageActionsPayloadFrom} [mentioned] Provides more details on * the mentioned entity. */ mentioned?: MessageActionsPayloadFrom; } /** * @interface * An interface representing MessageActionsPayloadReaction. * Represents the reaction of a user to a message. * */ export interface MessageActionsPayloadReaction { /** * @member {ReactionType} [reactionType] The type of reaction given to the * message. Possible values include: 'like', 'heart', 'laugh', 'surprised', * 'sad', 'angry' */ reactionType?: ReactionType; /** * @member {string} [createdDateTime] Timestamp of when the user reacted to * the message. */ createdDateTime?: string; /** * @member {MessageActionsPayloadFrom} [user] The user with which the * reaction is associated. */ user?: MessageActionsPayloadFrom; } /** * @interface * An interface representing MessageActionsPayload. * Represents the individual message within a chat or channel where a message * actions is taken. * */ export interface MessageActionsPayload { /** * @member {string} [id] Unique id of the message. */ id?: string; /** * @member {string} [replyToId] Id of the parent/root message of the thread. */ replyToId?: string; /** * @member {MessageType} [messageType] Type of message - automatically set to * message. Possible values include: 'message' */ messageType?: MessageType; /** * @member {string} [createdDateTime] Timestamp of when the message was * created. */ createdDateTime?: string; /** * @member {string} [lastModifiedDateTime] Timestamp of when the message was * edited or updated. */ lastModifiedDateTime?: string; /** * @member {boolean} [deleted] Indicates whether a message has been soft * deleted. */ deleted?: boolean; /** * @member {string} [subject] Subject line of the message. */ subject?: string; /** * @member {string} [summary] Summary text of the message that could be used * for notifications. */ summary?: string; /** * @member {Importance} [importance] The importance of the message. Possible * values include: 'normal', 'high', 'urgent' */ importance?: Importance; /** * @member {string} [locale] Locale of the message set by the client. */ locale?: string; /** * @member {MessageActionsPayloadFrom} [from] Sender of the message. */ from?: MessageActionsPayloadFrom; /** * @member {MessageActionsPayloadBody} [body] Plaintext/HTML representation * of the content of the message. */ body?: teams.MessageActionsPayloadBody; /** * @member {string} [attachmentLayout] How the attachment(s) are displayed in * the message. */ attachmentLayout?: string; /** * @member {MessageActionsPayloadAttachment[]} [attachments] Attachments in * the message - card, image, file, etc. */ attachments?: MessageActionsPayloadAttachment[]; /** * @member {MessageActionsPayloadMention[]} [mentions] List of entities * mentioned in the message. */ mentions?: MessageActionsPayloadMention[]; /** * @member {MessageActionsPayloadReaction[]} [reactions] Reactions for the * message. */ reactions?: MessageActionsPayloadReaction[]; } /** * @interface * An interface representing TaskModuleRequest. * Task module invoke request value payload * */ export interface TaskModuleRequest { /** * @member {any} [data] User input data. Free payload with key-value pairs. */ data?: any; /** * @member {TaskModuleRequestContext} [context] Current user context, i.e., * the current theme */ context?: TaskModuleRequestContext; } /** * @interface * An interface representing MessagingExtensionAction. * Messaging extension action * * @extends TaskModuleRequest */ export interface MessagingExtensionAction extends TaskModuleRequest { /** * @member {string} [commandId] Id of the command assigned by Bot */ commandId?: string; /** * @member {CommandContext} [commandContext] The context from which the * command originates. Possible values include: 'message', 'compose', * 'commandbox' */ commandContext?: CommandContext; /** * @member {BotMessagePreviewAction} [botMessagePreviewAction] Bot message * preview action taken by user. Possible values include: 'edit', 'send' */ botMessagePreviewAction?: BotMessagePreviewActionType; /** * @member {Activity[]} [botActivityPreview] */ botActivityPreview?: Activity[]; /** * @member {MessageActionsPayload} [messagePayload] Message content sent as * part of the command request. */ messagePayload?: MessageActionsPayload; } /** * @interface * An interface representing TaskModuleResponseBase. * Base class for Task Module responses * */ export interface TaskModuleResponseBase { /** * @member {BotMessagePreviewActionType} [type] Choice of action options when responding to the * task/submit message. Possible values include: 'message', 'continue' */ type?: BotMessagePreviewActionType; } /** * @interface * An interface representing MessagingExtensionAttachment. * Messaging extension attachment. * * @extends Attachment */ export interface MessagingExtensionAttachment extends Attachment { /** * @member {Attachment} [preview] */ preview?: Attachment; } /** * @interface * An interface representing MessagingExtensionSuggestedAction. * Messaging extension Actions (Only when type is auth or config) * */ export interface MessagingExtensionSuggestedAction { /** * @member {CardAction[]} [actions] Actions */ actions?: CardAction[]; } /** * @interface * An interface representing MessagingExtensionResult. * Messaging extension result * */ export interface MessagingExtensionResult { /** * @member {AttachmentLayout} [attachmentLayout] Hint for how to deal with * multiple attachments. Possible values include: 'list', 'grid' */ attachmentLayout?: AttachmentLayout; /** * @member {MessagingExtensionResultType} [type] The type of the result. Possible values include: * 'result', 'auth', 'config', 'message', 'botMessagePreview' */ type?: MessagingExtensionResultType; /** * @member {MessagingExtensionAttachment[]} [attachments] (Only when type is * result) Attachments */ attachments?: MessagingExtensionAttachment[]; /** * @member {MessagingExtensionSuggestedAction} [suggestedActions] */ suggestedActions?: MessagingExtensionSuggestedAction; /** * @member {string} [text] (Only when type is message) Text */ text?: string; /** * @member {Activity} [activityPreview] (Only when type is botMessagePreview) * Message activity to preview */ activityPreview?: Activity; } /** * @interface * An interface representing MessagingExtensionActionResponse. * Response of messaging extension action * */ export interface MessagingExtensionActionResponse { /** * @member {TaskModuleResponseBase} [task] The JSON for the Adaptive card to * appear in the task module. */ task?: TaskModuleResponseBase; /** * @member {MessagingExtensionResult} [composeExtension] */ composeExtension?: MessagingExtensionResult; } /** * @interface * An interface representing MessagingExtensionResponse. * Messaging extension response * */ export interface MessagingExtensionResponse { /** * @member {MessagingExtensionResult} [composeExtension] */ composeExtension?: MessagingExtensionResult; } /** * @interface * An interface representing FileConsentCard. * File consent card attachment. * */ export interface 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; } /** * @interface * An interface representing FileDownloadInfo. * File download info attachment. * */ export interface FileDownloadInfo { /** * @member {string} [downloadUrl] File download url. */ downloadUrl?: string; /** * @member {string} [uniqueId] Unique Id for the file. */ uniqueId?: string; /** * @member {string} [fileType] Type of file. */ fileType?: string; /** * @member {any} [etag] ETag for the file. */ etag?: any; } /** * @interface * An interface representing FileInfoCard. * File info card. * */ export interface FileInfoCard { /** * @member {string} [uniqueId] Unique Id for the file. */ uniqueId?: string; /** * @member {string} [fileType] Type of file. */ fileType?: string; /** * @member {any} [etag] ETag for the file. */ etag?: any; } /** * @interface * An interface representing FileUploadInfo. * Information about the file to be uploaded. * */ export interface FileUploadInfo { /** * @member {string} [name] Name of the file. */ name?: string; /** * @member {string} [uploadUrl] URL to an upload session that the bot can use * to set the file contents. */ uploadUrl?: string; /** * @member {string} [contentUrl] URL to file. */ contentUrl?: string; /** * @member {string} [uniqueId] ID that uniquely identifies the file. */ uniqueId?: string; /** * @member {string} [fileType] Type of the file. */ fileType?: string; } /** * @interface * An interface representing FileConsentCardResponse. * Represents the value of the invoke activity sent when the user acts on a * file consent card * */ export interface 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; } /** * @interface * An interface representing TaskModuleTaskInfo. * Metadata for a Task Module. * */ export interface TaskModuleTaskInfo { /** * @member {string} [title] Appears below the app name and to the right of * the app icon. */ title?: string; /** * @member {any} [height] This can be a number, representing the task * module's height in pixels, or a string, one of: small, medium, large. */ height?: any; /** * @member {any} [width] This can be a number, representing the task module's * width in pixels, or a string, one of: small, medium, large. */ width?: any; /** * @member {string} [url] The URL of what is loaded as an iframe inside the * task module. One of url or card is required. */ url?: string; /** * @member {Attachment} [card] The JSON for the Adaptive card to appear in * the task module. */ card?: Attachment; /** * @member {string} [fallbackUrl] If a client does not support the task * module feature, this URL is opened in a browser tab. */ fallbackUrl?: string; /** * @member {string} [completionBotId] If a client does not support the task * module feature, this URL is opened in a browser tab. */ completionBotId?: string; } /** * @interface * An interface representing TaskModuleContinueResponse. * Task Module Response with continue action. * * @extends TaskModuleResponseBase */ export interface TaskModuleContinueResponse extends TaskModuleResponseBase { /** * @member {TaskModuleTaskInfo} [value] The JSON for the Adaptive card to * appear in the task module. */ value?: TaskModuleTaskInfo; } /** * @interface * An interface representing TaskModuleMessageResponse. * Task Module response with message action. * * @extends TaskModuleResponseBase */ export interface TaskModuleMessageResponse extends TaskModuleResponseBase { /** * @member {string} [value] Teams will display the value of value in a popup * message box. */ value?: string; } /** * @interface * An interface representing TaskModuleResponse. * Envelope for Task Module Response. * */ export interface TaskModuleResponse { /** * @member {TaskModuleResponseBase} [task] The JSON for the Adaptive card to * appear in the task module. */ task?: TaskModuleResponseBase; } /** * @interface * An interface representing TaskModuleRequestContext. * Current user context, i.e., the current theme * */ export interface TaskModuleRequestContext { /** * @member {string} [theme] */ theme?: string; } /** * @interface * An interface representing AppBasedLinkQuery. * Invoke request body type for app-based link query. * */ export interface AppBasedLinkQuery { /** * @member {string} [url] Url queried by user */ url?: string; } /** * Defines values for Type. * Possible values include: 'ViewAction', 'OpenUri', 'HttpPOST', 'ActionCard' * @readonly * @enum {string} */ export type Type = 'ViewAction' | 'OpenUri' | 'HttpPOST' | 'ActionCard'; /** * Defines values for ActivityImageType. * Possible values include: 'avatar', 'article' * @readonly * @enum {string} */ export type ActivityImageType = 'avatar' | 'article'; /** * Defines values for Os. * Possible values include: 'default', 'iOS', 'android', 'windows' * @readonly * @enum {string} */ export type Os = 'default' | 'iOS' | 'android' | 'windows'; /** * Defines values for O365ConnectorCardInputBaseType. * Possible values include: 'textInput', 'dateInput', 'multichoiceInput' * @readonly * @enum {string} */ export type O365ConnectorCardInputBaseType = 'textInput' | 'dateInput' | 'multichoiceInput'; /** * @deprecated Use O365ConnectorCardInputBaseType instead. */ export type Type1 = O365ConnectorCardInputBaseType; /** * Defines values for Style. * Possible values include: 'compact', 'expanded' * @readonly * @enum {string} */ export type Style = 'compact' | 'expanded'; /** * Defines values for UserIdentityType. * Possible values include: 'aadUser', 'onPremiseAadUser', 'anonymousGuest', 'federatedUser' * @readonly * @enum {string} */ export type UserIdentityType = 'aadUser' | 'onPremiseAadUser' | 'anonymousGuest' | 'federatedUser'; /** * Defines values for ApplicationIdentityType. * Possible values include: 'aadApplication', 'bot', 'tenantBot', 'office365Connector', 'webhook' * @readonly * @enum {string} */ export type ApplicationIdentityType = 'aadApplication' | 'bot' | 'tenantBot' | 'office365Connector' | 'webhook'; /** * Defines values for ConversationIdentityType. * Possible values include: 'team', 'channel' * @readonly * @enum {string} */ export type ConversationIdentityType = 'team' | 'channel'; /** * Defines values for ContentType. * Possible values include: 'html', 'text' * @readonly * @enum {string} */ export type ContentType = 'html' | 'text'; /** * Defines values for ReactionType. * Possible values include: 'like', 'heart', 'laugh', 'surprised', 'sad', 'angry' * @readonly * @enum {string} */ export type ReactionType = 'like' | 'heart' | 'laugh' | 'surprised' | 'sad' | 'angry'; /** * Defines values for MessageType. * Possible values include: 'message' * @readonly * @enum {string} */ export type MessageType = 'message'; /** * Defines values for Importance. * Possible values include: 'normal', 'high', 'urgent' * @readonly * @enum {string} */ export type Importance = 'normal' | 'high' | 'urgent'; /** * Defines values for CommandContext. * Possible values include: 'message', 'compose', 'commandbox' * @readonly * @enum {string} */ export type CommandContext = 'message' | 'compose' | 'commandbox'; /** * Defines values for BotMessagePreviewActionType. * Possible values include: 'edit', 'send' * @readonly * @enum {string} */ export type BotMessagePreviewActionType = 'edit' | 'send'; /** * Defines values for BotMessagePreviewType. * Possible values include: 'message', 'continue' * @readonly * @enum {string} */ export type BotMessagePreviewType = 'message' | 'continue'; /** * @deprecated Use BotMessagePreviewType */ export type Type2 = BotMessagePreviewActionType /** * Defines values for AttachmentLayout. * Possible values include: 'list', 'grid' * @readonly * @enum {string} */ export type AttachmentLayout = 'list' | 'grid'; /** * Defines values for MessagingExtensionResultType. * Possible values include: 'result', 'auth', 'config', 'message', 'botMessagePreview' * @readonly * @enum {string} */ export type MessagingExtensionResultType = 'result' | 'auth' | 'config' | 'message' | 'botMessagePreview'; /** * @deprecated Use MessagingExtensionResultType instead */ export type Type3 = MessagingExtensionResultType /** * Defines values for Action. * Possible values include: 'accept', 'decline' * @readonly * @enum {string} */ export type Action = 'accept' | 'decline';