Skip to content

Commit

Permalink
Fix slackapi#1512 Add video block to Block Kit support
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jul 15, 2022
1 parent 15fcdb7 commit 3d9e515
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export interface DispatchActionConfig {
*/

export type KnownBlock = ImageBlock | ContextBlock | ActionsBlock | DividerBlock |
SectionBlock | InputBlock | FileBlock | HeaderBlock;
SectionBlock | InputBlock | FileBlock | HeaderBlock | VideoBlock;

export interface Block {
type: string;
Expand Down Expand Up @@ -470,3 +470,16 @@ export interface CallUserExternal {
display_name: string;
avatar_url: string;
}

export interface VideoBlock extends Block {
type: 'video';
video_url: string;
thumbnail_url: string;
alt_text: string;
title: PlainTextElement;
title_url?: string;
author_name?: string;
provider_name?: string;
provider_icon_url?: string;
description?: PlainTextElement;
}

0 comments on commit 3d9e515

Please sign in to comment.