Skip to content

Commit 5018cab

Browse files
updates docs
1 parent 582eeec commit 5018cab

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

packages/types/src/block-kit/block-elements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ export interface URLInput extends Actionable, Dispatchable, Focusable, Placehold
703703
}
704704

705705
/**
706-
* @description A URL source element to reference in a task card block.
706+
* @description A URL source element that displays a URL source for referencing within a task card block.
707707
* @see {@link https://docs.slack.dev/reference/block-kit/block-elements/url-source-element}
708708
*/
709709

packages/types/src/block-kit/blocks.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ interface TableBlockColumnSettings {
411411
*/
412412
export interface TaskCardBlock extends Block {
413413
/**
414-
* @description The type of element. In this case `type` is always `task_card`.
414+
* @description The type of block. For this block, type will always be `task_card`.
415415
*/
416416
type: 'task_card';
417417

@@ -436,12 +436,12 @@ export interface TaskCardBlock extends Block {
436436
output?: RichTextBlock;
437437

438438
/**
439-
* @description List of sources used to generate a response.
439+
* @description Array of URL source elements used to generate a response.
440440
*/
441441
sources?: URLSourceElement[];
442442

443443
/**
444-
* @description The state of a task. Either "pending" or "in_progress" or "complete" or "error".
444+
* @description The state of a task. Can be "pending", "in_progress", "complete", or "error".
445445
*/
446446
status: 'pending' | 'in_progress' | 'complete' | 'error';
447447
}
@@ -462,7 +462,7 @@ export interface PlanBlock extends Block {
462462
title: string;
463463

464464
/**
465-
* @description An array of tasks associated with this plan.
465+
* @description A sequence of task card blocks. Each task represents a single action within the plan.
466466
*/
467467
tasks?: (TaskCardBlock | Record<string, unknown>)[];
468468
}

packages/types/src/chunk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface MarkdownTextChunk extends Chunk {
1717
}
1818

1919
/**
20-
* An updated title of plans for task and tool calls.
20+
* Used for displaying an updated title of a plan.
2121
* https://docs.slack.dev/messaging/sending-and-scheduling-messages#text-streaming
2222
*/
2323
export interface PlanUpdateChunk extends Chunk {
@@ -26,7 +26,7 @@ export interface PlanUpdateChunk extends Chunk {
2626
}
2727

2828
/**
29-
* Used for displaying tool execution progress in a timeline-style UI.
29+
* Used for displaying task progress in a timeline-style UI.
3030
* https://docs.slack.dev/messaging/sending-and-scheduling-messages#text-streaming
3131
*/
3232
export interface TaskUpdateChunk extends Chunk {

packages/web-api/src/types/request/chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export interface ChatStartStreamArguments extends TokenOverridable, Channel, Par
257257
recipient_user_id?: string;
258258
/**
259259
* @description Specifies how tasks are displayed in the message. A "timeline" displays individual tasks
260-
* interleaved with text and "plan" displays all tasks together.
260+
* with text and "plan" displays all tasks together.
261261
*/
262262
task_display_mode?: string;
263263
}
@@ -267,7 +267,7 @@ export type ChatStopStreamArguments = TokenOverridable &
267267
Partial<MarkdownText> &
268268
Partial<Metadata> & {
269269
/**
270-
* @description An array of {@link https://docs.slack.dev/messaging/sending-and-scheduling-messages#text-streaming chunk objects} to finalize the stream with.
270+
* @description An array of {@link https://docs.slack.dev/messaging/sending-and-scheduling-messages#text-streaming chunk objects} to finish the stream with.
271271
*/
272272
chunks?: AnyChunk[];
273273
/**

0 commit comments

Comments
 (0)