@slack/types / TaskCardBlock
Interface: TaskCardBlock
Defined in: block-kit/blocks.ts:488
Description
A discrete task or tool call.
See
https://docs.slack.dev/reference/block-kit/blocks/task-card-block/
Extends
Properties
block_id?
optional block_id: string;
Defined in: block-kit/blocks.ts:49
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?
optional details: RichTextBlock;
Defined in: block-kit/blocks.ts:507
Description
Details of the task in the form of a single "rich_text" entity.
output?
optional output: RichTextBlock;
Defined in: block-kit/blocks.ts:512
Description
Output of the task in the form of a single "rich_text" entity.
sources?
optional sources: URLSourceElement[];
Defined in: block-kit/blocks.ts:517
Description
Array of URL source elements used to generate a response.
status
status: "error" | "pending" | "in_progress" | "complete";
Defined in: block-kit/blocks.ts:522
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:497
Description
ID for the task.
title
title: string;
Defined in: block-kit/blocks.ts:502
Description
Title of the task in plain text.
type
type: "task_card";
Defined in: block-kit/blocks.ts:492
Description
The type of block. For this block, type will always be task_card.