@slack/types / TaskCardBlock
Interface: TaskCardBlock
Defined in: block-kit/blocks.ts:646
Description
A discrete task or tool call.
See
https://docs.slack.dev/reference/block-kit/blocks/task-card-block/
Extends
Properties
block_id?
block_id?: string;
Defined in: block-kit/blocks.ts:50
Description
A string acting as a unique identifier for a block. If not specified, a block_id will be generated.
You can use this block_id when you receive an interaction payload to
identify the source of the action.
Maximum length for this field is 255 characters. block_id should be unique for each message and each iteration of
a message. If a message is updated, use a new block_id.
Inherited from
details?
details?: RichTextBlock;
Defined in: block-kit/blocks.ts:665
Description
Details of the task in the form of a single "rich_text" entity.
output?
output?: RichTextBlock;
Defined in: block-kit/blocks.ts:670
Description
Output of the task in the form of a single "rich_text" entity.
sources?
sources?: URLSourceElement[];
Defined in: block-kit/blocks.ts:675
Description
Array of URL source elements used to generate a response.
status
status: "error" | "pending" | "in_progress" | "complete";
Defined in: block-kit/blocks.ts:680
Description
The state of a task. Can be "pending", "in_progress", "complete", or "error".
task_id
task_id: string;
Defined in: block-kit/blocks.ts:655
Description
ID for the task.
title
title: string;
Defined in: block-kit/blocks.ts:660
Description
Title of the task in plain text.
type
type: "task_card";
Defined in: block-kit/blocks.ts:650
Description
The type of block. For this block, type will always be task_card.