Skip to main content

@slack/types / EntityMetadata

Interface: EntityMetadata

Defined in: message-metadata.ts:37

Description​

Metadata that represents a work object entity.

Properties​

app_unfurl_url?​

optional app_unfurl_url?: string;

Defined in: message-metadata.ts:68

Description​

The exact URL posted in the source message. Required in metadata passed to chat.unfurl.


entity_payload​

entity_payload: object;

Defined in: message-metadata.ts:45

actions?​

optional actions?: object;
actions.overflow_actions?​
optional overflow_actions?: EntityActionButton[];
actions.primary_actions?​
optional primary_actions?: EntityActionButton[];

attributes​

attributes: EntityAttributes;

custom_fields?​

optional custom_fields?: EntityCustomField[];

display_order?​

optional display_order?: string[];

fields?​

optional fields?:
| ContentItemEntityFields
| FileEntityFields
| IncidentEntityFields
| TaskEntityFields;

slack_file?​

optional slack_file?: FileEntitySlackFile;

Description​

Schema for the given entity type.


entity_type​

entity_type: string;

Defined in: message-metadata.ts:41

Description​

Entity type.


external_ref​

external_ref: ExternalRef;

Defined in: message-metadata.ts:59

Description​

Reference (and optional type) used to identify an entity within the developer's system.


url​

url: string;

Defined in: message-metadata.ts:63

Description​

URL used to identify an entity within the developer's system.