import { Util, SemanticString } from "../"; import { EmptyBlock } from "./empty_block"; /** * Image block. */ export interface Image extends EmptyBlock { type: "image"; properties?: { /** * Normally, the same as `display_source` in {@link BlockFormat}. * When they are different, use `display_source`. */ source?: [[Util.NotionSecureUrl | Util.PublicUrl]]; caption?: SemanticString[]; }; /** Defined if the user uploaded an image. */ file_ids?: Util.UUID[]; } /** * Video block. */ export interface Video extends EmptyBlock { type: "video"; properties?: { /** * Normally, the same as `display_source` in {@link BlockFormat}. * When they are different, use `display_source`. */ source?: [[Util.NotionSecureUrl | Util.PublicUrl]]; caption?: SemanticString[]; }; /** Defined if the user uploaded a video. */ file_ids?: Util.UUID[]; } /** * Audio block. */ export interface Audio extends EmptyBlock { type: "audio"; properties?: { source: [[Util.NotionSecureUrl | Util.PublicUrl]]; }; /** Defined if the user uploaded an audio file. */ file_ids?: Util.UUID[]; } /** * Web Bookmark block. */ export interface Bookmark extends EmptyBlock { type: "bookmark"; properties?: { /** Link of the bookmarked web page. */ link: [[string]]; /** Title of the bookmarked web page, auto detected. */ title?: [[string]]; /** Description of the bookmarked web page, auto detected. */ description?: [[string]]; }; } /** * Code block. */ export interface Code extends EmptyBlock { type: "code"; properties?: { /** Code content. */ title?: [[string]]; language?: [[string]]; }; } /** * File block. */ export interface File extends EmptyBlock { type: "file"; properties?: { /** Filename. */ title: [[string]]; /** URL of the file. */ source: [[Util.NotionSecureUrl | Util.PublicUrl]]; /** File size, defined if the user uploaded a file. */ size?: [[string]]; }; /** Defined if the user uploaded a file. */ file_ids?: Util.UUID[]; } export declare type MediaBlockUnion = Image | Video | Audio | Bookmark | Code | File; //# sourceMappingURL=media.d.ts.map