Skip to content

Commit c7b8af7

Browse files
committed
OAuthCard support in DirectLineJS
1 parent af5afc7 commit c7b8af7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/directLine.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ export interface Signin {
9898
}
9999
}
100100

101+
export interface OAuth {
102+
contentType: "application/vnd.microsoft.card.oauth",
103+
content: {
104+
text?: string,
105+
name: string,
106+
buttons?: CardAction[]
107+
}
108+
}
109+
101110
export interface ReceiptItem {
102111
title?: string,
103112
subtitle?: string,
@@ -181,7 +190,7 @@ export interface AnimationCard {
181190
}
182191
}
183192

184-
export type KnownMedia = Media | HeroCard | Thumbnail | Signin | Receipt | AudioCard | VideoCard | AnimationCard | FlexCard | AdaptiveCard;
193+
export type KnownMedia = Media | HeroCard | Thumbnail | Signin | OAuth | Receipt | AudioCard | VideoCard | AnimationCard | FlexCard | AdaptiveCard;
185194
export type Attachment = KnownMedia | UnknownMedia;
186195

187196
export interface User {

0 commit comments

Comments
 (0)