DataWeave Slack Library
Blocks
slack::Blocks
Types that represent all Slack Blocks.
Index
Types
| Name | Description | 
|---|---|
| Actions | Representation of a Slack action block. | 
| Block | Generic representation of a Slack block. | 
| Context | Representation of a Slack context block. | 
| Divider | Representation of a Slack divider block. | 
| File | Representation of a Slack file block. | 
| Header | Representation of a Slack header block. | 
| ImageBlock | Representation of a Slack image block. | 
| Input | Representation of a Slack input block. | 
| OptionalId | Helper type to reuse a block with optional IDs. | 
| Section | Representation of a Slack section block. | 
| WithFields | Helper type to encapsulate fields | 
| WithText | Helper type to reuse text. | 
Types
Actions ↑↑
Representation of a Slack action block.
Definition
OptionalId & { "type": "actions", elements: Array<Element> }Block ↑↑
Generic representation of a Slack block.
Definition
OptionalId & { "type": String }Context ↑↑
Representation of a Slack context block.
Definition
OptionalId & { "type": "context", elements: Array<Image | Text> }Divider ↑↑
Representation of a Slack divider block.
Definition
OptionalId & { "type": "divider" }File ↑↑
Representation of a Slack file block.
Definition
OptionalId & { "type": "file", source: "remote", external_id: String }Header ↑↑
Representation of a Slack header block.
Definition
OptionalId & { "type": "header", text: PlainText }ImageBlock ↑↑
Representation of a Slack image block.
Definition
OptionalId & Image & { title?: PlainText }Input ↑↑
Representation of a Slack input block.
Definition
OptionalId & { "type": "input", label: PlainText, element: Element, dispatch_action?: Boolean, hint?: PlainText, optiona?: Boolean }OptionalId ↑↑
Helper type to reuse a block with optional IDs.
Definition
{ block_id?: String }Section ↑↑
Representation of a Slack section block.
Definition
OptionalId & WithText | OptionalId & WithFields & { "type": "section", accessory?: Element }WithFields ↑↑
Helper type to encapsulate fields
Definition
{ fields: Array<Text> }WithText ↑↑
Helper type to reuse text.
Definition
{ text: Text }