@slack/web-api / TaskCardBlock
Interface: TaskCardBlock
Defined in: packages/types/dist/block-kit/blocks.d.ts:305
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: packages/types/dist/block-kit/blocks.d.ts:15
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: packages/types/dist/block-kit/blocks.d.ts:321
Description
Details of the task in the form of a single "rich_text" entity.
output?
optional output: RichTextBlock;
Defined in: packages/types/dist/block-kit/blocks.d.ts:325
Description
Output of the task in the form of a single "rich_text" entity.
sources?
optional sources: URLSourceElement[];
Defined in: packages/types/dist/block-kit/blocks.d.ts:329
Description
Array of URL source elements used to generate a response.
status
status: "pending" | "in_progress" | "complete" | "error";
Defined in: packages/types/dist/block-kit/blocks.d.ts:333
Description
The state of a task. Can be "pending", "in_progress", "complete", or "error".
task_id
task_id: string;
Defined in: packages/types/dist/block-kit/blocks.d.ts:313
Description
ID for the task.
title
title: string;
Defined in: packages/types/dist/block-kit/blocks.d.ts:317
Description
Title of the task in plain text.
type
type: "task_card";
Defined in: packages/types/dist/block-kit/blocks.d.ts:309
Description
The type of block. For this block, type will always be task_card.