Skip to main content

Blocks

Signatures come from GHC; descriptions come from compiled Haddock comments. Import Slackblocks or the defining public module. Checked values encode with Aeson; field records must be built first.

ActionsBlock​

A block that holds interactive elements such as buttons and menus.

https://docs.slack.dev/reference/block-kit/blocks/actions-block

type Slackblocks.Models.ActionsBlock :: *

ActionsBlockFields​

Editable construction input. Call buildActionsBlock before encoding.

Slackblocks.Models.ActionsBlockFields ::
[Slackblocks.Models.Element]
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.ActionsBlockFields

type Slackblocks.Models.ActionsBlockFields :: *

AlertBlock​

A severity-labelled alert, available in modals.

https://docs.slack.dev/reference/block-kit/blocks/alert-block

type Slackblocks.Models.AlertBlock :: *

AlertBlockFields​

Editable construction input. Call buildAlertBlock before encoding.

Slackblocks.Models.AlertBlockFields ::
Slackblocks.Models.TextObject
-> Maybe Slackblocks.Models.AlertLevel
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.AlertBlockFields

type Slackblocks.Models.AlertBlockFields :: *

CardBlock​

A compact card with an image, text, and up to three buttons.

https://docs.slack.dev/reference/block-kit/blocks/card-block Provide at least one of a hero image, title, actions, or body. An image icon and a Slack icon cannot be combined.

type Slackblocks.Models.CardBlock :: *

CardBlockFields​

Editable construction input. Call buildCardBlock before encoding.

Slackblocks.Models.CardBlockFields ::
Maybe Slackblocks.Models.ImageElement
-> Maybe Slackblocks.Models.ImageElement
-> Maybe Slackblocks.Models.TextObject
-> Maybe Slackblocks.Models.TextObject
-> Maybe Slackblocks.Models.TextObject
-> Maybe [Slackblocks.Models.ButtonElement]
-> Maybe Slackblocks.Models.SlackIcon
-> Maybe Slackblocks.Models.TextObject
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.CardBlockFields

type Slackblocks.Models.CardBlockFields :: *

CarouselBlock​

A horizontally scrolling set of cards, available in messages and App Home.

https://docs.slack.dev/reference/block-kit/blocks/carousel-block

type Slackblocks.Models.CarouselBlock :: *

CarouselBlockFields​

Editable construction input. Call buildCarouselBlock before encoding.

Slackblocks.Models.CarouselBlockFields ::
[Slackblocks.Models.CardBlock]
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.CarouselBlockFields

type Slackblocks.Models.CarouselBlockFields :: *

ContainerBlock​

A titled group of blocks that can optionally collapse.

https://docs.slack.dev/reference/block-kit/blocks/container-block Provide a title or a rich text title.

type Slackblocks.Models.ContainerBlock :: *

ContainerBlockFields​

Editable construction input. Call buildContainerBlock before encoding.

Slackblocks.Models.ContainerBlockFields ::
[Slackblocks.Models.Block]
-> Maybe Slackblocks.Models.PlainText
-> Maybe Slackblocks.Models.RichTextBlock
-> Maybe Slackblocks.Models.TextObject
-> Maybe Slackblocks.Models.ContainerWidth
-> Maybe Slackblocks.Models.ImageElement
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.ContainerBlockFields

type Slackblocks.Models.ContainerBlockFields :: *

ContextActionsBlock​

A row of feedback or icon buttons, usually shown below AI-generated content.

https://docs.slack.dev/reference/block-kit/blocks/context-actions-block

type Slackblocks.Models.ContextActionsBlock :: *

ContextActionsBlockFields​

Editable construction input. Call buildContextActionsBlock before encoding.

Slackblocks.Models.ContextActionsBlockFields ::
[Slackblocks.Models.ContextActionsElement]
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.ContextActionsBlockFields

type Slackblocks.Models.ContextActionsBlockFields :: *

ContextBlock​

A block of small, secondary images and text.

https://docs.slack.dev/reference/block-kit/blocks/context-block

type Slackblocks.Models.ContextBlock :: *

ContextBlockFields​

Editable construction input. Call buildContextBlock before encoding.

Slackblocks.Models.ContextBlockFields ::
[Slackblocks.Models.ContextElement]
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.ContextBlockFields

type Slackblocks.Models.ContextBlockFields :: *

DataTableBlock​

A sortable, paginated table of raw text, numbers, and rich text.

https://docs.slack.dev/reference/block-kit/blocks/data-table-block The first row is the header row and cannot contain rich text. Every row must have the same number of cells, and all cell text together is limited to 20,000 characters.

type Slackblocks.Models.DataTableBlock :: *

DataTableBlockFields​

Editable construction input. Call buildDataTableBlock before encoding.

Slackblocks.Models.DataTableBlockFields ::
[[Slackblocks.Models.DataTableCell]]
-> Data.Text.Text
-> Maybe Integer
-> Maybe Integer
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.DataTableBlockFields

type Slackblocks.Models.DataTableBlockFields :: *

DataVisualizationBlock​

A titled pie, bar, area, or line chart.

https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block

type Slackblocks.Models.DataVisualizationBlock :: *

DataVisualizationBlockFields​

Editable construction input. Call buildDataVisualizationBlock before encoding.

Slackblocks.Models.DataVisualizationBlockFields ::
Data.Text.Text
-> Slackblocks.Models.Chart
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.DataVisualizationBlockFields

type Slackblocks.Models.DataVisualizationBlockFields :: *

DividerBlock​

A horizontal rule that separates blocks.

https://docs.slack.dev/reference/block-kit/blocks/divider-block

type Slackblocks.Models.DividerBlock :: *

DividerBlockFields​

Editable construction input. Call buildDividerBlock before encoding.

Slackblocks.Models.DividerBlockFields ::
Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.DividerBlockFields

type Slackblocks.Models.DividerBlockFields :: *

FileBlock​

A remote file previously added with the files.remote API.

https://docs.slack.dev/reference/block-kit/blocks/file-block

type Slackblocks.Models.FileBlock :: *

FileBlockFields​

Editable construction input. Call buildFileBlock before encoding.

Slackblocks.Models.FileBlockFields ::
Data.Text.Text
-> Data.Text.Text
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.FileBlockFields

type Slackblocks.Models.FileBlockFields :: *

HeaderBlock​

Large, bold plain text that introduces a group of blocks.

https://docs.slack.dev/reference/block-kit/blocks/header-block

type Slackblocks.Models.HeaderBlock :: *

HeaderBlockFields​

Editable construction input. Call buildHeaderBlock before encoding.

Slackblocks.Models.HeaderBlockFields ::
Slackblocks.Models.PlainText
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.HeaderBlockFields

type Slackblocks.Models.HeaderBlockFields :: *

ImageBlock​

A standalone image with alternative text and an optional title.

https://docs.slack.dev/reference/block-kit/blocks/image-block Provide exactly one of an image URL or a Slack file.

type Slackblocks.Models.ImageBlock :: *

ImageBlockFields​

Editable construction input. Call buildImageBlock before encoding.

Slackblocks.Models.ImageBlockFields ::
Maybe Data.Text.Text
-> Maybe Slackblocks.Models.SlackFile
-> Data.Text.Text
-> Maybe Slackblocks.Models.PlainText
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.ImageBlockFields

type Slackblocks.Models.ImageBlockFields :: *

InputBlock​

A labelled input that collects a value in a modal, App Home, or message.

https://docs.slack.dev/reference/block-kit/blocks/input-block

type Slackblocks.Models.InputBlock :: *

InputBlockFields​

Editable construction input. Call buildInputBlock before encoding.

Slackblocks.Models.InputBlockFields ::
Slackblocks.Models.PlainText
-> Slackblocks.Models.InputElement
-> Maybe Bool
-> Maybe Data.Text.Text
-> Maybe Slackblocks.Models.PlainText
-> Maybe Bool
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.InputBlockFields

type Slackblocks.Models.InputBlockFields :: *

MarkdownBlock​

Standard markdown rendered by Slack, intended for AI-generated content.

https://docs.slack.dev/reference/block-kit/blocks/markdown-block

type Slackblocks.Models.MarkdownBlock :: *

MarkdownBlockFields​

Editable construction input. Call buildMarkdownBlock before encoding.

Slackblocks.Models.MarkdownBlockFields ::
Data.Text.Text
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.MarkdownBlockFields

type Slackblocks.Models.MarkdownBlockFields :: *

PlanBlock​

A titled sequence of task cards.

https://docs.slack.dev/reference/block-kit/blocks/plan-block Task IDs must be unique within a plan.

type Slackblocks.Models.PlanBlock :: *

PlanBlockFields​

Editable construction input. Call buildPlanBlock before encoding.

Slackblocks.Models.PlanBlockFields ::
Data.Text.Text
-> [Slackblocks.Models.PlanTask]
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.PlanBlockFields

type Slackblocks.Models.PlanBlockFields :: *

RichTextBlock​

Formatted text built from sections, lists, preformatted blocks, and quotes.

https://docs.slack.dev/reference/block-kit/blocks/rich-text-block

type Slackblocks.Models.RichTextBlock :: *

RichTextBlockElement​

Closed role: only checked members may enter this position.

type Slackblocks.Models.RichTextBlockElement :: *

RichTextBlockFields​

Editable construction input. Call buildRichTextBlock before encoding.

Slackblocks.Models.RichTextBlockFields ::
[Slackblocks.Models.RichTextBlockElement]
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.RichTextBlockFields

type Slackblocks.Models.RichTextBlockFields :: *

SectionBlock​

Text, a grid of fields, or both, with an optional accessory element.

https://docs.slack.dev/reference/block-kit/blocks/section-block Provide text, fields, or both.

type Slackblocks.Models.SectionBlock :: *

SectionBlockFields​

Editable construction input. Call buildSectionBlock before encoding.

Slackblocks.Models.SectionBlockFields ::
Maybe Slackblocks.Models.TextObject
-> Maybe [Slackblocks.Models.TextObject]
-> Maybe Slackblocks.Models.Element
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.SectionBlockFields

type Slackblocks.Models.SectionBlockFields :: *

TableBlock​

A simple table of raw text and rich text cells.

https://docs.slack.dev/reference/block-kit/blocks/table-block

type Slackblocks.Models.TableBlock :: *

TableBlockFields​

Editable construction input. Call buildTableBlock before encoding.

Slackblocks.Models.TableBlockFields ::
[[Slackblocks.Models.TableCell]]
-> Maybe [Slackblocks.Models.ColumnSettings]
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.TableBlockFields

type Slackblocks.Models.TableBlockFields :: *

TaskCardBlock​

One task with its status, details, output, and sources.

https://docs.slack.dev/reference/block-kit/blocks/task-card-block A standalone task card's status cannot be pending; pending is only valid for plan tasks.

type Slackblocks.Models.TaskCardBlock :: *

TaskCardBlockFields​

Editable construction input. Call buildTaskCardBlock before encoding.

Slackblocks.Models.TaskCardBlockFields ::
Data.Text.Text
-> Data.Text.Text
-> Maybe Slackblocks.Models.RichTextBlock
-> Maybe Slackblocks.Models.RichTextBlock
-> Maybe [Slackblocks.Models.UrlSource]
-> Slackblocks.Models.TaskStatus
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.TaskCardBlockFields

type Slackblocks.Models.TaskCardBlockFields :: *

VideoBlock​

An embedded video player.

https://docs.slack.dev/reference/block-kit/blocks/video-block

type Slackblocks.Models.VideoBlock :: *

VideoBlockFields​

Editable construction input. Call buildVideoBlock before encoding.

Slackblocks.Models.VideoBlockFields ::
Data.Text.Text
-> Data.Text.Text
-> Slackblocks.Models.PlainText
-> Data.Text.Text
-> Maybe Data.Text.Text
-> Maybe Data.Text.Text
-> Maybe Slackblocks.Models.PlainText
-> Maybe Data.Text.Text
-> Maybe Data.Text.Text
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.VideoBlockFields

type Slackblocks.Models.VideoBlockFields :: *

actionsBlock​

Start editable fields for ActionsBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildActionsBlock to validate before JSON encoding.

Slackblocks.Models.actionsBlock ::
[Slackblocks.Models.Element]
-> Slackblocks.Models.ActionsBlockFields

actionsBlockAsBlock​

Place a checked ActionsBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.actionsBlockAsBlock ::
Slackblocks.Models.ActionsBlock -> Slackblocks.Models.Block

actionsBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.actionsBlockBlockId ::
Slackblocks.Models.ActionsBlockFields -> Maybe Data.Text.Text

actionsBlockElements​

Adds interactive elements in display order. Required. Shared limit: actions.elements.

Slackblocks.Models.actionsBlockElements ::
Slackblocks.Models.ActionsBlockFields
-> [Slackblocks.Models.Element]

actionsBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.actionsBlockExtensions ::
Slackblocks.Models.ActionsBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

alertBlock​

Start editable fields for AlertBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildAlertBlock to validate before JSON encoding.

Slackblocks.Models.alertBlock ::
Slackblocks.Models.TextObject
-> Slackblocks.Models.AlertBlockFields

alertBlockAsBlock​

Place a checked AlertBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.alertBlockAsBlock ::
Slackblocks.Models.AlertBlock -> Slackblocks.Models.Block

alertBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.alertBlockBlockId ::
Slackblocks.Models.AlertBlockFields -> Maybe Data.Text.Text

alertBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.alertBlockExtensions ::
Slackblocks.Models.AlertBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

alertBlockLevel​

Sets the alert severity, which controls its color and icon. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.alertBlockLevel ::
Slackblocks.Models.AlertBlockFields
-> Maybe Slackblocks.Models.AlertLevel

alertBlockText​

Sets the alert message. Required. Shared limit: alert.text.

Slackblocks.Models.alertBlockText ::
Slackblocks.Models.AlertBlockFields
-> Slackblocks.Models.TextObject

buildActionsBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked ActionsBlock.

Slackblocks.Models.buildActionsBlock ::
Slackblocks.Models.ActionsBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.ActionsBlock

buildAlertBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked AlertBlock.

Slackblocks.Models.buildAlertBlock ::
Slackblocks.Models.AlertBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.AlertBlock

buildCardBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked CardBlock.

Slackblocks.Models.buildCardBlock ::
Slackblocks.Models.CardBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.CardBlock

buildCarouselBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked CarouselBlock.

Slackblocks.Models.buildCarouselBlock ::
Slackblocks.Models.CarouselBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.CarouselBlock

buildContainerBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked ContainerBlock.

Slackblocks.Models.buildContainerBlock ::
Slackblocks.Models.ContainerBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.ContainerBlock

buildContextActionsBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked ContextActionsBlock.

Slackblocks.Models.buildContextActionsBlock ::
Slackblocks.Models.ContextActionsBlockFields
-> Slackblocks.Validation.Result
Slackblocks.Models.ContextActionsBlock

buildContextBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked ContextBlock.

Slackblocks.Models.buildContextBlock ::
Slackblocks.Models.ContextBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.ContextBlock

buildDataTableBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked DataTableBlock.

Slackblocks.Models.buildDataTableBlock ::
Slackblocks.Models.DataTableBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.DataTableBlock

buildDataVisualizationBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked DataVisualizationBlock.

Slackblocks.Models.buildDataVisualizationBlock ::
Slackblocks.Models.DataVisualizationBlockFields
-> Slackblocks.Validation.Result
Slackblocks.Models.DataVisualizationBlock

buildDividerBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked DividerBlock.

Slackblocks.Models.buildDividerBlock ::
Slackblocks.Models.DividerBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.DividerBlock

buildFileBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked FileBlock.

Slackblocks.Models.buildFileBlock ::
Slackblocks.Models.FileBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.FileBlock

buildHeaderBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked HeaderBlock.

Slackblocks.Models.buildHeaderBlock ::
Slackblocks.Models.HeaderBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.HeaderBlock

buildImageBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked ImageBlock.

Slackblocks.Models.buildImageBlock ::
Slackblocks.Models.ImageBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.ImageBlock

buildInputBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked InputBlock.

Slackblocks.Models.buildInputBlock ::
Slackblocks.Models.InputBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.InputBlock

buildMarkdownBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked MarkdownBlock.

Slackblocks.Models.buildMarkdownBlock ::
Slackblocks.Models.MarkdownBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.MarkdownBlock

buildPlanBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked PlanBlock.

Slackblocks.Models.buildPlanBlock ::
Slackblocks.Models.PlanBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.PlanBlock

buildRichTextBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked RichTextBlock.

Slackblocks.Models.buildRichTextBlock ::
Slackblocks.Models.RichTextBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.RichTextBlock

buildSectionBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked SectionBlock.

Slackblocks.Models.buildSectionBlock ::
Slackblocks.Models.SectionBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.SectionBlock

buildTableBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked TableBlock.

Slackblocks.Models.buildTableBlock ::
Slackblocks.Models.TableBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.TableBlock

buildTaskCardBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked TaskCardBlock.

Slackblocks.Models.buildTaskCardBlock ::
Slackblocks.Models.TaskCardBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.TaskCardBlock

buildVideoBlock​

Validate fields, extensions and receiving context. Return structured errors or a checked VideoBlock.

Slackblocks.Models.buildVideoBlock ::
Slackblocks.Models.VideoBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.VideoBlock

cardBlock​

Start editable fields for CardBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildCardBlock to validate before JSON encoding.

Slackblocks.Models.cardBlock :: Slackblocks.Models.CardBlockFields

cardBlockActions​

Adds buttons displayed at the bottom of the card, in display order. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: card.actions.

Slackblocks.Models.cardBlockActions ::
Slackblocks.Models.CardBlockFields
-> Maybe [Slackblocks.Models.ButtonElement]

cardBlockAsBlock​

Place a checked CardBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.cardBlockAsBlock ::
Slackblocks.Models.CardBlock -> Slackblocks.Models.Block

cardBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.cardBlockBlockId ::
Slackblocks.Models.CardBlockFields -> Maybe Data.Text.Text

cardBlockBody​

Sets the main body text of the card. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: card.body.

Slackblocks.Models.cardBlockBody ::
Slackblocks.Models.CardBlockFields
-> Maybe Slackblocks.Models.TextObject

cardBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.cardBlockExtensions ::
Slackblocks.Models.CardBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

cardBlockHeroImage​

Sets the image displayed prominently at the top of the card. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.cardBlockHeroImage ::
Slackblocks.Models.CardBlockFields
-> Maybe Slackblocks.Models.ImageElement

cardBlockIcon​

Sets the image displayed beside the title. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.cardBlockIcon ::
Slackblocks.Models.CardBlockFields
-> Maybe Slackblocks.Models.ImageElement

cardBlockSlackIcon​

Sets a Slack-provided icon displayed beside the title. Cannot be combined with an image icon. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.cardBlockSlackIcon ::
Slackblocks.Models.CardBlockFields
-> Maybe Slackblocks.Models.SlackIcon

cardBlockSubtext​

Sets the small print shown at the bottom of the card. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: card.subtext.

Slackblocks.Models.cardBlockSubtext ::
Slackblocks.Models.CardBlockFields
-> Maybe Slackblocks.Models.TextObject

cardBlockSubtitle​

Sets the supporting text shown below the title. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: card.subtitle.

Slackblocks.Models.cardBlockSubtitle ::
Slackblocks.Models.CardBlockFields
-> Maybe Slackblocks.Models.TextObject

cardBlockTitle​

Sets the card title. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: card.title.

Slackblocks.Models.cardBlockTitle ::
Slackblocks.Models.CardBlockFields
-> Maybe Slackblocks.Models.TextObject

carouselBlock​

Start editable fields for CarouselBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildCarouselBlock to validate before JSON encoding.

Slackblocks.Models.carouselBlock ::
[Slackblocks.Models.CardBlock]
-> Slackblocks.Models.CarouselBlockFields

carouselBlockAsBlock​

Place a checked CarouselBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.carouselBlockAsBlock ::
Slackblocks.Models.CarouselBlock -> Slackblocks.Models.Block

carouselBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.carouselBlockBlockId ::
Slackblocks.Models.CarouselBlockFields -> Maybe Data.Text.Text

carouselBlockElements​

Adds the cards in display order. Required. Shared limit: carousel.elements.

Slackblocks.Models.carouselBlockElements ::
Slackblocks.Models.CarouselBlockFields
-> [Slackblocks.Models.CardBlock]

carouselBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.carouselBlockExtensions ::
Slackblocks.Models.CarouselBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

containerBlock​

Start editable fields for ContainerBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildContainerBlock to validate before JSON encoding.

Slackblocks.Models.containerBlock ::
[Slackblocks.Models.Block]
-> Slackblocks.Models.ContainerBlockFields

containerBlockAsBlock​

Place a checked ContainerBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.containerBlockAsBlock ::
Slackblocks.Models.ContainerBlock -> Slackblocks.Models.Block

containerBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.containerBlockBlockId ::
Slackblocks.Models.ContainerBlockFields -> Maybe Data.Text.Text

containerBlockChildBlocks​

Adds the blocks grouped inside the container, in display order. Required. Shared limit: container.child_blocks.

Slackblocks.Models.containerBlockChildBlocks ::
Slackblocks.Models.ContainerBlockFields
-> [Slackblocks.Models.Block]

containerBlockDefaultCollapsed​

Sets whether a collapsible container starts collapsed. Requires the container to be collapsible. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.containerBlockDefaultCollapsed ::
Slackblocks.Models.ContainerBlockFields -> Maybe Bool

containerBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.containerBlockExtensions ::
Slackblocks.Models.ContainerBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

containerBlockHasHeaderDivider​

Sets whether Slack draws a divider below the container header. Only valid for non-collapsible containers. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.containerBlockHasHeaderDivider ::
Slackblocks.Models.ContainerBlockFields -> Maybe Bool

containerBlockIcon​

Sets the image displayed beside the title. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.containerBlockIcon ::
Slackblocks.Models.ContainerBlockFields
-> Maybe Slackblocks.Models.ImageElement

containerBlockIsCollapsible​

Sets whether users can collapse and expand the container. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.containerBlockIsCollapsible ::
Slackblocks.Models.ContainerBlockFields -> Maybe Bool

containerBlockRichTextTitle​

Sets a rich text block used as the title in place of a plain-text title. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.containerBlockRichTextTitle ::
Slackblocks.Models.ContainerBlockFields
-> Maybe Slackblocks.Models.RichTextBlock

containerBlockSubtitle​

Sets the supporting text shown below the title. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: container.subtitle.

Slackblocks.Models.containerBlockSubtitle ::
Slackblocks.Models.ContainerBlockFields
-> Maybe Slackblocks.Models.TextObject

containerBlockTitle​

Sets the container title. Provide either a title or a rich text title. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: container.title.

Slackblocks.Models.containerBlockTitle ::
Slackblocks.Models.ContainerBlockFields
-> Maybe Slackblocks.Models.PlainText

containerBlockWidth​

Sets the horizontal width of the container. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.containerBlockWidth ::
Slackblocks.Models.ContainerBlockFields
-> Maybe Slackblocks.Models.ContainerWidth

contextActionsBlock​

Start editable fields for ContextActionsBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildContextActionsBlock to validate before JSON encoding.

Slackblocks.Models.contextActionsBlock ::
[Slackblocks.Models.ContextActionsElement]
-> Slackblocks.Models.ContextActionsBlockFields

contextActionsBlockAsBlock​

Place a checked ContextActionsBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.contextActionsBlockAsBlock ::
Slackblocks.Models.ContextActionsBlock -> Slackblocks.Models.Block

contextActionsBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.contextActionsBlockBlockId ::
Slackblocks.Models.ContextActionsBlockFields
-> Maybe Data.Text.Text

contextActionsBlockElements​

Adds feedback buttons or icon buttons in display order. Required. Shared limit: context_actions.elements.

Slackblocks.Models.contextActionsBlockElements ::
Slackblocks.Models.ContextActionsBlockFields
-> [Slackblocks.Models.ContextActionsElement]

contextActionsBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.contextActionsBlockExtensions ::
Slackblocks.Models.ContextActionsBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

contextBlock​

Start editable fields for ContextBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildContextBlock to validate before JSON encoding.

Slackblocks.Models.contextBlock ::
[Slackblocks.Models.ContextElement]
-> Slackblocks.Models.ContextBlockFields

contextBlockAsBlock​

Place a checked ContextBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.contextBlockAsBlock ::
Slackblocks.Models.ContextBlock -> Slackblocks.Models.Block

contextBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.contextBlockBlockId ::
Slackblocks.Models.ContextBlockFields -> Maybe Data.Text.Text

contextBlockElements​

Adds images and text in display order. Required. Shared limit: context.elements.

Slackblocks.Models.contextBlockElements ::
Slackblocks.Models.ContextBlockFields
-> [Slackblocks.Models.ContextElement]

contextBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.contextBlockExtensions ::
Slackblocks.Models.ContextBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

dataTableBlock​

Start editable fields for DataTableBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildDataTableBlock to validate before JSON encoding.

Slackblocks.Models.dataTableBlock ::
[[Slackblocks.Models.DataTableCell]]
-> Data.Text.Text -> Slackblocks.Models.DataTableBlockFields

dataTableBlockAsBlock​

Place a checked DataTableBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.dataTableBlockAsBlock ::
Slackblocks.Models.DataTableBlock -> Slackblocks.Models.Block

dataTableBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.dataTableBlockBlockId ::
Slackblocks.Models.DataTableBlockFields -> Maybe Data.Text.Text

dataTableBlockCaption​

Sets the caption that describes the table's contents. Required.

Slackblocks.Models.dataTableBlockCaption ::
Slackblocks.Models.DataTableBlockFields -> Data.Text.Text

dataTableBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.dataTableBlockExtensions ::
Slackblocks.Models.DataTableBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

dataTableBlockPageSize​

Sets how many rows Slack shows per page. Optional; Nothing omits the field. Factory default: Just (5). Shared limit: data_table.page_size.

Slackblocks.Models.dataTableBlockPageSize ::
Slackblocks.Models.DataTableBlockFields -> Maybe Integer

dataTableBlockRowHeaderColumnIndex​

Sets the zero-based index of the column whose cells act as row headers. Optional; Nothing omits the field. Factory default: Just (0). Shared limit: data_table.row_header_column_index.

Slackblocks.Models.dataTableBlockRowHeaderColumnIndex ::
Slackblocks.Models.DataTableBlockFields -> Maybe Integer

dataTableBlockRows​

Adds complete table rows in display order. Every row must have the same number of cells. Required. Shared limit: data_table.rows.

Slackblocks.Models.dataTableBlockRows ::
Slackblocks.Models.DataTableBlockFields
-> [[Slackblocks.Models.DataTableCell]]

dataVisualizationBlock​

Start editable fields for DataVisualizationBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildDataVisualizationBlock to validate before JSON encoding.

Slackblocks.Models.dataVisualizationBlock ::
Data.Text.Text
-> Slackblocks.Models.Chart
-> Slackblocks.Models.DataVisualizationBlockFields

dataVisualizationBlockAsBlock​

Place a checked DataVisualizationBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.dataVisualizationBlockAsBlock ::
Slackblocks.Models.DataVisualizationBlock
-> Slackblocks.Models.Block

dataVisualizationBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.dataVisualizationBlockBlockId ::
Slackblocks.Models.DataVisualizationBlockFields
-> Maybe Data.Text.Text

dataVisualizationBlockChart​

Sets the chart to display. Required.

Slackblocks.Models.dataVisualizationBlockChart ::
Slackblocks.Models.DataVisualizationBlockFields
-> Slackblocks.Models.Chart

dataVisualizationBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.dataVisualizationBlockExtensions ::
Slackblocks.Models.DataVisualizationBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

dataVisualizationBlockTitle​

Sets the chart title. Required. Shared limit: data_visualization.title.

Slackblocks.Models.dataVisualizationBlockTitle ::
Slackblocks.Models.DataVisualizationBlockFields -> Data.Text.Text

dividerBlock​

Start editable fields for DividerBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildDividerBlock to validate before JSON encoding.

Slackblocks.Models.dividerBlock ::
Slackblocks.Models.DividerBlockFields

dividerBlockAsBlock​

Place a checked DividerBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.dividerBlockAsBlock ::
Slackblocks.Models.DividerBlock -> Slackblocks.Models.Block

dividerBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.dividerBlockBlockId ::
Slackblocks.Models.DividerBlockFields -> Maybe Data.Text.Text

dividerBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.dividerBlockExtensions ::
Slackblocks.Models.DividerBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

fileBlock​

Start editable fields for FileBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildFileBlock to validate before JSON encoding.

Slackblocks.Models.fileBlock ::
Data.Text.Text
-> Data.Text.Text -> Slackblocks.Models.FileBlockFields

fileBlockAsBlock​

Place a checked FileBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.fileBlockAsBlock ::
Slackblocks.Models.FileBlock -> Slackblocks.Models.Block

fileBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.fileBlockBlockId ::
Slackblocks.Models.FileBlockFields -> Maybe Data.Text.Text

fileBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.fileBlockExtensions ::
Slackblocks.Models.FileBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

fileBlockExternalId​

Sets the external identifier of a remote file previously added with the files.remote API. Required.

Slackblocks.Models.fileBlockExternalId ::
Slackblocks.Models.FileBlockFields -> Data.Text.Text

fileBlockSource​

Sets the file source. Slack currently supports only remote files. Required.

Slackblocks.Models.fileBlockSource ::
Slackblocks.Models.FileBlockFields -> Data.Text.Text

headerBlock​

Start editable fields for HeaderBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildHeaderBlock to validate before JSON encoding.

Slackblocks.Models.headerBlock ::
Slackblocks.Models.PlainText
-> Slackblocks.Models.HeaderBlockFields

headerBlockAsBlock​

Place a checked HeaderBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.headerBlockAsBlock ::
Slackblocks.Models.HeaderBlock -> Slackblocks.Models.Block

headerBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.headerBlockBlockId ::
Slackblocks.Models.HeaderBlockFields -> Maybe Data.Text.Text

headerBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.headerBlockExtensions ::
Slackblocks.Models.HeaderBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

headerBlockText​

Sets the header text, shown in a larger bold font. Required. Shared limit: header.text.

Slackblocks.Models.headerBlockText ::
Slackblocks.Models.HeaderBlockFields
-> Slackblocks.Models.PlainText

imageBlock​

Start editable fields for ImageBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildImageBlock to validate before JSON encoding.

Slackblocks.Models.imageBlock ::
Data.Text.Text -> Slackblocks.Models.ImageBlockFields

imageBlockAltText​

Sets a plain-text summary of the image or video for assistive technology. Required. Shared limit: image.alt_text.

Slackblocks.Models.imageBlockAltText ::
Slackblocks.Models.ImageBlockFields -> Data.Text.Text

imageBlockAsBlock​

Place a checked ImageBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.imageBlockAsBlock ::
Slackblocks.Models.ImageBlock -> Slackblocks.Models.Block

imageBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.imageBlockBlockId ::
Slackblocks.Models.ImageBlockFields -> Maybe Data.Text.Text

imageBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.imageBlockExtensions ::
Slackblocks.Models.ImageBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

imageBlockImageUrl​

Sets the publicly accessible URL of the image. Cannot be combined with a Slack file. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: image.image_url.

Slackblocks.Models.imageBlockImageUrl ::
Slackblocks.Models.ImageBlockFields -> Maybe Data.Text.Text

imageBlockSlackFile​

Sets a file hosted in Slack as the image source. Cannot be combined with an image URL. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.imageBlockSlackFile ::
Slackblocks.Models.ImageBlockFields
-> Maybe Slackblocks.Models.SlackFile

imageBlockTitle​

Sets the title shown above the image. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: image.title.

Slackblocks.Models.imageBlockTitle ::
Slackblocks.Models.ImageBlockFields
-> Maybe Slackblocks.Models.PlainText

inputBlock​

Start editable fields for InputBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildInputBlock to validate before JSON encoding.

Slackblocks.Models.inputBlock ::
Slackblocks.Models.PlainText
-> Slackblocks.Models.InputElement
-> Slackblocks.Models.InputBlockFields

inputBlockAsBlock​

Place a checked InputBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.inputBlockAsBlock ::
Slackblocks.Models.InputBlock -> Slackblocks.Models.Block

inputBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.inputBlockBlockId ::
Slackblocks.Models.InputBlockFields -> Maybe Data.Text.Text

inputBlockDispatchAction​

Sets whether changing the element sends a block_actions payload immediately. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.inputBlockDispatchAction ::
Slackblocks.Models.InputBlockFields -> Maybe Bool

inputBlockElement​

Sets the input element that collects the user's value. Required.

Slackblocks.Models.inputBlockElement ::
Slackblocks.Models.InputBlockFields
-> Slackblocks.Models.InputElement

inputBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.inputBlockExtensions ::
Slackblocks.Models.InputBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

inputBlockHint​

Sets helper text shown below the input. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: input.hint.

Slackblocks.Models.inputBlockHint ::
Slackblocks.Models.InputBlockFields
-> Maybe Slackblocks.Models.PlainText

inputBlockLabel​

Sets the label shown above the input. Required. Shared limit: input.label.

Slackblocks.Models.inputBlockLabel ::
Slackblocks.Models.InputBlockFields -> Slackblocks.Models.PlainText

inputBlockOptional​

Sets whether the modal can be submitted when this input is empty. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.inputBlockOptional ::
Slackblocks.Models.InputBlockFields -> Maybe Bool

inspectActionsBlock​

Inspect immutable construction fields. Rebuild edits with buildActionsBlock to revalidate.

Slackblocks.Models.inspectActionsBlock ::
Slackblocks.Models.ActionsBlock
-> Slackblocks.Models.ActionsBlockFields

inspectAlertBlock​

Inspect immutable construction fields. Rebuild edits with buildAlertBlock to revalidate.

Slackblocks.Models.inspectAlertBlock ::
Slackblocks.Models.AlertBlock
-> Slackblocks.Models.AlertBlockFields

inspectCardBlock​

Inspect immutable construction fields. Rebuild edits with buildCardBlock to revalidate.

Slackblocks.Models.inspectCardBlock ::
Slackblocks.Models.CardBlock -> Slackblocks.Models.CardBlockFields

inspectCarouselBlock​

Inspect immutable construction fields. Rebuild edits with buildCarouselBlock to revalidate.

Slackblocks.Models.inspectCarouselBlock ::
Slackblocks.Models.CarouselBlock
-> Slackblocks.Models.CarouselBlockFields

inspectContainerBlock​

Inspect immutable construction fields. Rebuild edits with buildContainerBlock to revalidate.

Slackblocks.Models.inspectContainerBlock ::
Slackblocks.Models.ContainerBlock
-> Slackblocks.Models.ContainerBlockFields

inspectContextActionsBlock​

Inspect immutable construction fields. Rebuild edits with buildContextActionsBlock to revalidate.

Slackblocks.Models.inspectContextActionsBlock ::
Slackblocks.Models.ContextActionsBlock
-> Slackblocks.Models.ContextActionsBlockFields

inspectContextBlock​

Inspect immutable construction fields. Rebuild edits with buildContextBlock to revalidate.

Slackblocks.Models.inspectContextBlock ::
Slackblocks.Models.ContextBlock
-> Slackblocks.Models.ContextBlockFields

inspectDataTableBlock​

Inspect immutable construction fields. Rebuild edits with buildDataTableBlock to revalidate.

Slackblocks.Models.inspectDataTableBlock ::
Slackblocks.Models.DataTableBlock
-> Slackblocks.Models.DataTableBlockFields

inspectDataVisualizationBlock​

Inspect immutable construction fields. Rebuild edits with buildDataVisualizationBlock to revalidate.

Slackblocks.Models.inspectDataVisualizationBlock ::
Slackblocks.Models.DataVisualizationBlock
-> Slackblocks.Models.DataVisualizationBlockFields

inspectDividerBlock​

Inspect immutable construction fields. Rebuild edits with buildDividerBlock to revalidate.

Slackblocks.Models.inspectDividerBlock ::
Slackblocks.Models.DividerBlock
-> Slackblocks.Models.DividerBlockFields

inspectFileBlock​

Inspect immutable construction fields. Rebuild edits with buildFileBlock to revalidate.

Slackblocks.Models.inspectFileBlock ::
Slackblocks.Models.FileBlock -> Slackblocks.Models.FileBlockFields

inspectHeaderBlock​

Inspect immutable construction fields. Rebuild edits with buildHeaderBlock to revalidate.

Slackblocks.Models.inspectHeaderBlock ::
Slackblocks.Models.HeaderBlock
-> Slackblocks.Models.HeaderBlockFields

inspectImageBlock​

Inspect immutable construction fields. Rebuild edits with buildImageBlock to revalidate.

Slackblocks.Models.inspectImageBlock ::
Slackblocks.Models.ImageBlock
-> Slackblocks.Models.ImageBlockFields

inspectInputBlock​

Inspect immutable construction fields. Rebuild edits with buildInputBlock to revalidate.

Slackblocks.Models.inspectInputBlock ::
Slackblocks.Models.InputBlock
-> Slackblocks.Models.InputBlockFields

inspectMarkdownBlock​

Inspect immutable construction fields. Rebuild edits with buildMarkdownBlock to revalidate.

Slackblocks.Models.inspectMarkdownBlock ::
Slackblocks.Models.MarkdownBlock
-> Slackblocks.Models.MarkdownBlockFields

inspectPlanBlock​

Inspect immutable construction fields. Rebuild edits with buildPlanBlock to revalidate.

Slackblocks.Models.inspectPlanBlock ::
Slackblocks.Models.PlanBlock -> Slackblocks.Models.PlanBlockFields

inspectRichTextBlock​

Inspect immutable construction fields. Rebuild edits with buildRichTextBlock to revalidate.

Slackblocks.Models.inspectRichTextBlock ::
Slackblocks.Models.RichTextBlock
-> Slackblocks.Models.RichTextBlockFields

inspectSectionBlock​

Inspect immutable construction fields. Rebuild edits with buildSectionBlock to revalidate.

Slackblocks.Models.inspectSectionBlock ::
Slackblocks.Models.SectionBlock
-> Slackblocks.Models.SectionBlockFields

inspectTableBlock​

Inspect immutable construction fields. Rebuild edits with buildTableBlock to revalidate.

Slackblocks.Models.inspectTableBlock ::
Slackblocks.Models.TableBlock
-> Slackblocks.Models.TableBlockFields

inspectTaskCardBlock​

Inspect immutable construction fields. Rebuild edits with buildTaskCardBlock to revalidate.

Slackblocks.Models.inspectTaskCardBlock ::
Slackblocks.Models.TaskCardBlock
-> Slackblocks.Models.TaskCardBlockFields

inspectVideoBlock​

Inspect immutable construction fields. Rebuild edits with buildVideoBlock to revalidate.

Slackblocks.Models.inspectVideoBlock ::
Slackblocks.Models.VideoBlock
-> Slackblocks.Models.VideoBlockFields

markdownBlock​

Start editable fields for MarkdownBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildMarkdownBlock to validate before JSON encoding.

Slackblocks.Models.markdownBlock ::
Data.Text.Text -> Slackblocks.Models.MarkdownBlockFields

markdownBlockAsBlock​

Place a checked MarkdownBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.markdownBlockAsBlock ::
Slackblocks.Models.MarkdownBlock -> Slackblocks.Models.Block

markdownBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.markdownBlockBlockId ::
Slackblocks.Models.MarkdownBlockFields -> Maybe Data.Text.Text

markdownBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.markdownBlockExtensions ::
Slackblocks.Models.MarkdownBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

markdownBlockText​

Sets standard markdown content, which Slack renders directly. Required. Shared limit: markdown.text.

Slackblocks.Models.markdownBlockText ::
Slackblocks.Models.MarkdownBlockFields -> Data.Text.Text

planBlock​

Start editable fields for PlanBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildPlanBlock to validate before JSON encoding.

Slackblocks.Models.planBlock ::
Data.Text.Text
-> [Slackblocks.Models.PlanTask]
-> Slackblocks.Models.PlanBlockFields

planBlockAsBlock​

Place a checked PlanBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.planBlockAsBlock ::
Slackblocks.Models.PlanBlock -> Slackblocks.Models.Block

planBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.planBlockBlockId ::
Slackblocks.Models.PlanBlockFields -> Maybe Data.Text.Text

planBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.planBlockExtensions ::
Slackblocks.Models.PlanBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

planBlockTasks​

Adds task cards in display order. Required. Shared limit: plan.tasks.

Slackblocks.Models.planBlockTasks ::
Slackblocks.Models.PlanBlockFields -> [Slackblocks.Models.PlanTask]

planBlockTitle​

Sets the plan title. Required.

Slackblocks.Models.planBlockTitle ::
Slackblocks.Models.PlanBlockFields -> Data.Text.Text

richTextBlock​

Start editable fields for RichTextBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildRichTextBlock to validate before JSON encoding.

Slackblocks.Models.richTextBlock ::
[Slackblocks.Models.RichTextBlockElement]
-> Slackblocks.Models.RichTextBlockFields

richTextBlockAsBlock​

Place a checked RichTextBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.richTextBlockAsBlock ::
Slackblocks.Models.RichTextBlock -> Slackblocks.Models.Block

richTextBlockAsDataTableCell​

Place a checked RichTextBlock in the DataTableCell role. The receiving parent retains its contextual validation.

Slackblocks.Models.richTextBlockAsDataTableCell ::
Slackblocks.Models.RichTextBlock
-> Slackblocks.Models.DataTableCell

richTextBlockAsTableCell​

Place a checked RichTextBlock in the TableCell role. The receiving parent retains its contextual validation.

Slackblocks.Models.richTextBlockAsTableCell ::
Slackblocks.Models.RichTextBlock -> Slackblocks.Models.TableCell

richTextBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.richTextBlockBlockId ::
Slackblocks.Models.RichTextBlockFields -> Maybe Data.Text.Text

richTextBlockElements​

Adds sections, lists, preformatted blocks, and quotes in display order. Required.

Slackblocks.Models.richTextBlockElements ::
Slackblocks.Models.RichTextBlockFields
-> [Slackblocks.Models.RichTextBlockElement]

richTextBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.richTextBlockExtensions ::
Slackblocks.Models.RichTextBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

sectionBlock​

Start editable fields for SectionBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildSectionBlock to validate before JSON encoding.

Slackblocks.Models.sectionBlock ::
Slackblocks.Models.SectionBlockFields

sectionBlockAccessory​

Sets the element displayed beside the section text. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.sectionBlockAccessory ::
Slackblocks.Models.SectionBlockFields
-> Maybe Slackblocks.Models.Element

sectionBlockAsBlock​

Place a checked SectionBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.sectionBlockAsBlock ::
Slackblocks.Models.SectionBlock -> Slackblocks.Models.Block

sectionBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.sectionBlockBlockId ::
Slackblocks.Models.SectionBlockFields -> Maybe Data.Text.Text

sectionBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.sectionBlockExtensions ::
Slackblocks.Models.SectionBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

sectionBlockFields​

Adds section fields, shown in a two-column grid, in display order. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: section.fields.

Slackblocks.Models.sectionBlockFields ::
Slackblocks.Models.SectionBlockFields
-> Maybe [Slackblocks.Models.TextObject]

sectionBlockText​

Sets the main text of the section. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: section.text.

Slackblocks.Models.sectionBlockText ::
Slackblocks.Models.SectionBlockFields
-> Maybe Slackblocks.Models.TextObject

tableBlock​

Start editable fields for TableBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildTableBlock to validate before JSON encoding.

Slackblocks.Models.tableBlock ::
[[Slackblocks.Models.TableCell]]
-> Slackblocks.Models.TableBlockFields

tableBlockAsBlock​

Place a checked TableBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.tableBlockAsBlock ::
Slackblocks.Models.TableBlock -> Slackblocks.Models.Block

tableBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.tableBlockBlockId ::
Slackblocks.Models.TableBlockFields -> Maybe Data.Text.Text

tableBlockColumnSettings​

Adds per-column settings in column order. Provide one entry for every column. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: table.column_settings.

Slackblocks.Models.tableBlockColumnSettings ::
Slackblocks.Models.TableBlockFields
-> Maybe [Slackblocks.Models.ColumnSettings]

tableBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.tableBlockExtensions ::
Slackblocks.Models.TableBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

tableBlockRows​

Adds complete table rows in display order. Required. Shared limit: table.rows.

Slackblocks.Models.tableBlockRows ::
Slackblocks.Models.TableBlockFields
-> [[Slackblocks.Models.TableCell]]

taskCardBlock​

Start editable fields for TaskCardBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildTaskCardBlock to validate before JSON encoding.

Slackblocks.Models.taskCardBlock ::
Data.Text.Text
-> Data.Text.Text
-> Slackblocks.Models.TaskStatus
-> Slackblocks.Models.TaskCardBlockFields

taskCardBlockAsBlock​

Place a checked TaskCardBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.taskCardBlockAsBlock ::
Slackblocks.Models.TaskCardBlock
-> Slackblocks.Validation.Result Slackblocks.Models.Block

taskCardBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.taskCardBlockBlockId ::
Slackblocks.Models.TaskCardBlockFields -> Maybe Data.Text.Text

taskCardBlockDetails​

Sets a rich text description of the task. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.taskCardBlockDetails ::
Slackblocks.Models.TaskCardBlockFields
-> Maybe Slackblocks.Models.RichTextBlock

taskCardBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.taskCardBlockExtensions ::
Slackblocks.Models.TaskCardBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

taskCardBlockOutput​

Sets rich text describing the task's output. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.taskCardBlockOutput ::
Slackblocks.Models.TaskCardBlockFields
-> Maybe Slackblocks.Models.RichTextBlock

taskCardBlockSources​

Adds links to the sources the task used, in display order. Optional; Nothing omits the field. Factory default: Nothing.

Slackblocks.Models.taskCardBlockSources ::
Slackblocks.Models.TaskCardBlockFields
-> Maybe [Slackblocks.Models.UrlSource]

taskCardBlockStatus​

Sets the task's current state. Required.

Slackblocks.Models.taskCardBlockStatus ::
Slackblocks.Models.TaskCardBlockFields
-> Slackblocks.Models.TaskStatus

taskCardBlockTaskId​

Sets the identifier of the task. Required.

Slackblocks.Models.taskCardBlockTaskId ::
Slackblocks.Models.TaskCardBlockFields -> Data.Text.Text

taskCardBlockTitle​

Sets the task title. Required.

Slackblocks.Models.taskCardBlockTitle ::
Slackblocks.Models.TaskCardBlockFields -> Data.Text.Text

videoBlock​

Start editable fields for VideoBlock; required arguments follow the signature. Optional fields start absent except the explicit shared defaults; no block ID is invented. Finish with buildVideoBlock to validate before JSON encoding.

Slackblocks.Models.videoBlock ::
Data.Text.Text
-> Data.Text.Text
-> Slackblocks.Models.PlainText
-> Data.Text.Text
-> Slackblocks.Models.VideoBlockFields

videoBlockAltText​

Sets a plain-text summary of the image or video for assistive technology. Required. Shared limit: video.alt_text.

Slackblocks.Models.videoBlockAltText ::
Slackblocks.Models.VideoBlockFields -> Data.Text.Text

videoBlockAsBlock​

Place a checked VideoBlock in the Block role. The receiving parent retains its contextual validation.

Slackblocks.Models.videoBlockAsBlock ::
Slackblocks.Models.VideoBlock -> Slackblocks.Models.Block

videoBlockAuthorName​

Sets the name of the video's author. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: video.author_name.

Slackblocks.Models.videoBlockAuthorName ::
Slackblocks.Models.VideoBlockFields -> Maybe Data.Text.Text

videoBlockBlockId​

Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: block_id.

Slackblocks.Models.videoBlockBlockId ::
Slackblocks.Models.VideoBlockFields -> Maybe Data.Text.Text

videoBlockDescription​

Sets the video description. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: video.description.

Slackblocks.Models.videoBlockDescription ::
Slackblocks.Models.VideoBlockFields
-> Maybe Slackblocks.Models.PlainText

videoBlockExtensions​

Unmodeled extension fields. Reserved and modeled keys are rejected.

Slackblocks.Models.videoBlockExtensions ::
Slackblocks.Models.VideoBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value

videoBlockProviderIconUrl​

Sets the URL of the video provider's icon. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: video.provider_icon_url.

Slackblocks.Models.videoBlockProviderIconUrl ::
Slackblocks.Models.VideoBlockFields -> Maybe Data.Text.Text

videoBlockProviderName​

Sets the name of the video provider, such as YouTube. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: video.provider_name.

Slackblocks.Models.videoBlockProviderName ::
Slackblocks.Models.VideoBlockFields -> Maybe Data.Text.Text

videoBlockThumbnailUrl​

Sets the URL of the image shown before the video plays. Required. Shared limit: video.thumbnail_url.

Slackblocks.Models.videoBlockThumbnailUrl ::
Slackblocks.Models.VideoBlockFields -> Data.Text.Text

videoBlockTitle​

Sets the video title. Required. Shared limit: video.title.

Slackblocks.Models.videoBlockTitle ::
Slackblocks.Models.VideoBlockFields -> Slackblocks.Models.PlainText

videoBlockTitleUrl​

Sets the HTTPS URL opened when the title is clicked. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: video.title_url.

Slackblocks.Models.videoBlockTitleUrl ::
Slackblocks.Models.VideoBlockFields -> Maybe Data.Text.Text

videoBlockVideoUrl​

Sets the embeddable URL of the video. The domain must be listed in the app's unfurl domains. Required. Shared limit: video.video_url.

Slackblocks.Models.videoBlockVideoUrl ::
Slackblocks.Models.VideoBlockFields -> Data.Text.Text