@slack/types / TaskCardBlock
Interface: TaskCardBlock
Defined in: block-kit/blocks.ts:412
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:48
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:431
Description
Details of the task in the form of a single "rich_text" entity.
output?
optional output: RichTextBlock;
Defined in: block-kit/blocks.ts:436
Description
Output of the task in the form of a single "rich_text" entity.
sources?
optional sources: URLSourceElement[];
Defined in: block-kit/blocks.ts:441
Description
Array of URL source elements used to generate a response.
status
status: "pending" | "in_progress" | "complete" | "error";
Defined in: block-kit/blocks.ts:446
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:421
Description
ID for the task.
title
title: string;
Defined in: block-kit/blocks.ts:426
Description
Title of the task in plain text.
type
type: "task_card";
Defined in: block-kit/blocks.ts:416
Description
The type of block. For this block, type will always be task_card.