Skip to main content

BlockAction<ElementAction>

Defined in: src/types/actions/block-action.ts:249

A Slack Block Kit element action wrapped in the standard metadata.

This describes the entire JSON-encoded body of a request from Slack's Block Kit interactive components.

Type Parameters​

ElementAction​

ElementAction extends BasicElementAction = BlockElementAction

Properties​

actions​

actions: ElementAction[];

Defined in: src/types/actions/block-action.ts:251


api_app_id​

api_app_id: string;

Defined in: src/types/actions/block-action.ts:291


app_unfurl?​

optional app_unfurl?: any;

Defined in: src/types/actions/block-action.ts:297


bot_access_token?​

optional bot_access_token?: string;

Defined in: src/types/actions/block-action.ts:311

An expiring token generated for the context of a workflow step.

See​

https://docs.slack.dev/authentication/tokens/#wfb


channel?​

optional channel?: object;

Defined in: src/types/actions/block-action.ts:267

id​

id: string;

name​

name: string;

container​

container: StringIndexed;

Defined in: src/types/actions/block-action.ts:294


enterprise?​

optional enterprise?: object;

Defined in: src/types/actions/block-action.ts:301

id​

id: string;

name​

name: string;

function_data?​

optional function_data?: object;

Defined in: src/types/actions/block-action.ts:317

Information about the executed step.

execution_id​

execution_id: string;

A unique ID for the step being executed.

See​

function​

function: object;

Details about the step.

See​
function.callback_id​
callback_id: string;

The unique callback ID of the step.

See​

inputs​

inputs: FunctionInputs;

Values of input parameters for the executed step.

See​

See​


is_enterprise_install?​

optional is_enterprise_install?: boolean;

Defined in: src/types/actions/block-action.ts:300


message?​

optional message?: object;

Defined in: src/types/actions/block-action.ts:272

Index Signature​

[key: string]: any

text?​

optional text?: string;

ts​

ts: string;

type​

type: "message";

user?​

optional user?: string;

response_url​

response_url: string;

Defined in: src/types/actions/block-action.ts:289


state?​

optional state?: object;

Defined in: src/types/actions/block-action.ts:281

values​

values: object;
Index Signature​
[blockId: string]: object

team​

team:
| {
domain: string;
enterprise_id?: string;
enterprise_name?: string;
id: string;
}
| null;

Defined in: src/types/actions/block-action.ts:252


token​

token: string;

Defined in: src/types/actions/block-action.ts:288


trigger_id​

trigger_id: string;

Defined in: src/types/actions/block-action.ts:290


type​

type: "block_actions";

Defined in: src/types/actions/block-action.ts:250


user​

user: object;

Defined in: src/types/actions/block-action.ts:258

id​

id: string;

name?​

optional name?: string;

name will be present if the block_action originates from the Home tab

team_id?​

optional team_id?: string;

username​

username: string;

view?​

optional view?: ViewOutput;

Defined in: src/types/actions/block-action.ts:280