Interface ImageBlock

An NPF image type content block.

interface ImageBlock {
    alt_text?: string;
    attribution?: Attribution;
    caption?: string;
    colors?: Record<string, string>;
    feedback_token?: string;
    media: VisualMedia[];
    poster?: VisualMedia;
    type: "image";
}

Properties

alt_text?: string

Text used to describe the image, for screen readers.

attribution?: Attribution
caption?: string

A caption typically shown under the image.

colors?: Record<string, string>

Colors used in the image.

feedback_token?: string

A feedback token to use when this image block is a GIF Search result.

media: VisualMedia[]

An array of VisualMedia objects which represent different available sizes of this image asset.

poster?: VisualMedia

For GIFs, this is a single-frame "poster".

type