Skip to content

Commit 560b88c

Browse files
authored
Merge pull request #33 from reyesrico/master
Adding UnknownMedia as Attachment
2 parents a1e4bfc + 840ba6f commit 560b88c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/directLine.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ export interface Media {
4444
thumbnailUrl?: string
4545
}
4646

47+
export interface UnknownMedia{
48+
contentType: string,
49+
contentUrl: string,
50+
name?: string,
51+
thumbnailUrl?: string
52+
}
53+
4754
export type CardActionTypes = "openUrl" | "imBack" | "postBack" | "playAudio" | "playVideo" | "showImage" | "downloadFile" | "signin" | "call";
4855

4956
export interface CardAction {
@@ -168,7 +175,7 @@ export interface AnimationCard {
168175
}
169176
}
170177

171-
export type Attachment = Media | HeroCard | Thumbnail | Signin | Receipt | AudioCard | VideoCard | AnimationCard | FlexCard | AdaptiveCard;
178+
export type Attachment = Media | UnknownMedia | HeroCard | Thumbnail | Signin | Receipt | AudioCard | VideoCard | AnimationCard | FlexCard | AdaptiveCard;
172179

173180
export interface User {
174181
id: string,

0 commit comments

Comments
 (0)