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.
Find a native type or function (274)
274 matching entries
- ActionsBlock
- actionsBlock
- actionsBlockAsBlock
- actionsBlockAsLayoutChild
- actionsBlockBlockId
- actionsBlockElements
- actionsBlockExtensions
- ActionsBlockFields
- buildActionsBlock
- inspectActionsBlock
- AlertBlock
- alertBlock
- alertBlockAsBlock
- alertBlockAsLayoutChild
- alertBlockBlockId
- alertBlockExtensions
- AlertBlockFields
- alertBlockLevel
- alertBlockText
- buildAlertBlock
- inspectAlertBlock
- CardBlock
- buildCardBlock
- cardBlock
- cardBlockActions
- cardBlockAsBlock
- cardBlockAsLayoutChild
- cardBlockBlockId
- cardBlockBody
- cardBlockExtensions
- CardBlockFields
- cardBlockHeroImage
- cardBlockIcon
- cardBlockSlackIcon
- cardBlockSubtext
- cardBlockSubtitle
- cardBlockTitle
- inspectCardBlock
- CarouselBlock
- buildCarouselBlock
- carouselBlock
- carouselBlockAsBlock
- carouselBlockAsLayoutChild
- carouselBlockBlockId
- carouselBlockElements
- carouselBlockExtensions
- CarouselBlockFields
- inspectCarouselBlock
- ContainerBlock
- buildContainerBlock
- containerBlock
- containerBlockAsBlock
- containerBlockAsLayoutChild
- containerBlockBlockId
- containerBlockChildBlocks
- containerBlockDefaultCollapsed
- containerBlockExtensions
- ContainerBlockFields
- containerBlockHasHeaderDivider
- containerBlockIcon
- containerBlockIsCollapsible
- containerBlockRichTextTitle
- containerBlockSubtitle
- containerBlockTitle
- containerBlockWidth
- inspectContainerBlock
- ContextActionsBlock
- buildContextActionsBlock
- contextActionsBlock
- contextActionsBlockAsBlock
- contextActionsBlockBlockId
- contextActionsBlockElements
- contextActionsBlockExtensions
- ContextActionsBlockFields
- inspectContextActionsBlock
- ContextBlock
- buildContextBlock
- contextBlock
- contextBlockAsBlock
- contextBlockAsLayoutChild
- contextBlockAsLayoutFallback
- contextBlockBlockId
- contextBlockElements
- contextBlockExtensions
- ContextBlockFields
- inspectContextBlock
- DataTableBlock
- buildDataTableBlock
- dataTableBlock
- dataTableBlockAsBlock
- dataTableBlockAsLayoutChild
- dataTableBlockBlockId
- dataTableBlockCaption
- dataTableBlockExtensions
- DataTableBlockFields
- dataTableBlockPageSize
- dataTableBlockRowHeaderColumnIndex
- dataTableBlockRows
- inspectDataTableBlock
- DataVisualizationBlock
- buildDataVisualizationBlock
- dataVisualizationBlock
- dataVisualizationBlockAsBlock
- dataVisualizationBlockAsLayoutChild
- dataVisualizationBlockBlockId
- dataVisualizationBlockChart
- dataVisualizationBlockExtensions
- DataVisualizationBlockFields
- dataVisualizationBlockTitle
- inspectDataVisualizationBlock
- DividerBlock
- buildDividerBlock
- dividerBlock
- dividerBlockAsBlock
- dividerBlockAsLayoutChild
- dividerBlockAsLayoutFallback
- dividerBlockBlockId
- dividerBlockExtensions
- DividerBlockFields
- inspectDividerBlock
- FileBlock
- buildFileBlock
- fileBlock
- fileBlockAsBlock
- fileBlockAsLayoutChild
- fileBlockBlockId
- fileBlockExtensions
- fileBlockExternalId
- FileBlockFields
- fileBlockSource
- inspectFileBlock
- HeaderBlock
- buildHeaderBlock
- headerBlock
- headerBlockAsBlock
- headerBlockAsLayoutChild
- headerBlockAsLayoutFallback
- headerBlockBlockId
- headerBlockExtensions
- HeaderBlockFields
- headerBlockText
- inspectHeaderBlock
- ImageBlock
- buildImageBlock
- imageBlock
- imageBlockAltText
- imageBlockAsBlock
- imageBlockAsLayoutChild
- imageBlockAsLayoutFallback
- imageBlockBlockId
- imageBlockExtensions
- ImageBlockFields
- imageBlockImageUrl
- imageBlockSlackFile
- imageBlockTitle
- inspectImageBlock
- InputBlock
- buildInputBlock
- inputBlock
- inputBlockAsBlock
- inputBlockAsLayoutChild
- inputBlockBlockId
- inputBlockDispatchAction
- inputBlockElement
- inputBlockExtensions
- InputBlockFields
- inputBlockHint
- inputBlockLabel
- inputBlockOptional
- inspectInputBlock
- LayoutBlock
- buildLayoutBlock
- inspectLayoutBlock
- layoutBlock
- layoutBlockAsBlock
- layoutBlockBlockId
- layoutBlockExtensions
- layoutBlockFallback
- LayoutBlockFields
- layoutBlockGridLines
- layoutBlockIsLabelVisible
- layoutBlockLabel
- layoutBlockRows
- MarkdownBlock
- buildMarkdownBlock
- inspectMarkdownBlock
- markdownBlock
- markdownBlockAsBlock
- markdownBlockBlockId
- markdownBlockExtensions
- MarkdownBlockFields
- markdownBlockText
- PlanBlock
- buildPlanBlock
- inspectPlanBlock
- planBlock
- planBlockAsBlock
- planBlockBlockId
- planBlockExtensions
- PlanBlockFields
- planBlockTasks
- planBlockTitle
- RichTextBlock
- buildRichTextBlock
- inspectRichTextBlock
- richTextBlock
- richTextBlockAsBlock
- richTextBlockAsDataTableCell
- richTextBlockAsLayoutChild
- richTextBlockAsLayoutFallback
- richTextBlockAsTableCell
- richTextBlockBlockId
- RichTextBlockElement
- richTextBlockElements
- richTextBlockExtensions
- RichTextBlockFields
- SectionBlock
- buildSectionBlock
- inspectSectionBlock
- sectionBlock
- sectionBlockAccessory
- sectionBlockAsBlock
- sectionBlockAsLayoutChild
- sectionBlockAsLayoutFallback
- sectionBlockBlockId
- sectionBlockExtensions
- SectionBlockFields
- sectionBlockFields
- sectionBlockText
- TableBlock
- buildTableBlock
- inspectTableBlock
- tableBlock
- tableBlockAsBlock
- tableBlockAsLayoutChild
- tableBlockAsLayoutFallback
- tableBlockBlockId
- tableBlockColumnSettings
- tableBlockExtensions
- TableBlockFields
- tableBlockRows
- TaskCardBlock
- buildTaskCardBlock
- inspectTaskCardBlock
- taskCardBlock
- taskCardBlockAsBlock
- taskCardBlockBlockId
- taskCardBlockDetails
- taskCardBlockExtensions
- TaskCardBlockFields
- taskCardBlockOutput
- taskCardBlockSources
- taskCardBlockStatus
- taskCardBlockTaskId
- taskCardBlockTitle
- VideoBlock
- buildVideoBlock
- inspectVideoBlock
- videoBlock
- videoBlockAltText
- videoBlockAsBlock
- videoBlockAsLayoutChild
- videoBlockAsLayoutFallback
- videoBlockAuthorName
- videoBlockBlockId
- videoBlockDescription
- videoBlockExtensions
- VideoBlockFields
- videoBlockProviderIconUrl
- videoBlockProviderName
- videoBlockThumbnailUrl
- videoBlockTitle
- videoBlockTitleUrl
- videoBlockVideoUrl
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 :: *
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
actionsBlockAsLayoutChild
Place a checked ActionsBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.actionsBlockAsLayoutChild ::
Slackblocks.Models.ActionsBlock -> Slackblocks.Models.LayoutChild
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 (max length: 255).
Slackblocks.Models.actionsBlockBlockId ::
Slackblocks.Models.ActionsBlockFields -> Maybe Data.Text.Text
actionsBlockElements
Adds interactive elements in display order. Required. Shared limit: actions.elements (max items: 25).
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
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 :: *
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
inspectActionsBlock
Inspect immutable construction fields. Rebuild edits with buildActionsBlock to revalidate.
Slackblocks.Models.inspectActionsBlock ::
Slackblocks.Models.ActionsBlock
-> 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 :: *
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
alertBlockAsLayoutChild
Place a checked AlertBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.alertBlockAsLayoutChild ::
Slackblocks.Models.AlertBlock -> Slackblocks.Models.LayoutChild
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 (max length: 255).
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
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 :: *
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 (max length: 200).
Slackblocks.Models.alertBlockText ::
Slackblocks.Models.AlertBlockFields
-> Slackblocks.Models.TextObject
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
inspectAlertBlock
Inspect immutable construction fields. Rebuild edits with buildAlertBlock to revalidate.
Slackblocks.Models.inspectAlertBlock ::
Slackblocks.Models.AlertBlock
-> 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 :: *
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
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 up to three buttons in serialization order. Slack controls their visual placement: buttons are right-aligned with primary last; a danger button precedes the other button in a two-button group, or sits at the card's far left with three buttons. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: card.actions (max items: 3).
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
cardBlockAsLayoutChild
Place a checked CardBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.cardBlockAsLayoutChild ::
Slackblocks.Models.CardBlock -> Slackblocks.Models.LayoutChild
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 (max length: 255).
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 (max length: 200).
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
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 :: *
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 (max length: 200).
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 (max length: 150).
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 (max length: 150).
Slackblocks.Models.cardBlockTitle ::
Slackblocks.Models.CardBlockFields
-> Maybe Slackblocks.Models.TextObject
inspectCardBlock
Inspect immutable construction fields. Rebuild edits with buildCardBlock to revalidate.
Slackblocks.Models.inspectCardBlock ::
Slackblocks.Models.CardBlock -> 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 :: *
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
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
carouselBlockAsLayoutChild
Place a checked CarouselBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.carouselBlockAsLayoutChild ::
Slackblocks.Models.CarouselBlock -> Slackblocks.Models.LayoutChild
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 (max length: 255).
Slackblocks.Models.carouselBlockBlockId ::
Slackblocks.Models.CarouselBlockFields -> Maybe Data.Text.Text
carouselBlockElements
Adds the cards in display order. Required. Shared limit: carousel.elements (min items: 1, max items: 10).
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
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 :: *
inspectCarouselBlock
Inspect immutable construction fields. Rebuild edits with buildCarouselBlock to revalidate.
Slackblocks.Models.inspectCarouselBlock ::
Slackblocks.Models.CarouselBlock
-> 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. When a layout is nested, the combined layout/container depth cannot exceed two composite levels.
type Slackblocks.Models.ContainerBlock :: *
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
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
containerBlockAsLayoutChild
Place a checked ContainerBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.containerBlockAsLayoutChild ::
Slackblocks.Models.ContainerBlock -> Slackblocks.Models.LayoutChild
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 (max length: 255).
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 (min items: 1, max items: 10).
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
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 :: *
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 (max length: 150).
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 (max length: 150).
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
inspectContainerBlock
Inspect immutable construction fields. Rebuild edits with buildContainerBlock to revalidate.
Slackblocks.Models.inspectContainerBlock ::
Slackblocks.Models.ContainerBlock
-> 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 :: *
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
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 (max length: 255).
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 (max items: 5).
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
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 :: *
inspectContextActionsBlock
Inspect immutable construction fields. Rebuild edits with buildContextActionsBlock to revalidate.
Slackblocks.Models.inspectContextActionsBlock ::
Slackblocks.Models.ContextActionsBlock
-> 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 :: *
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
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
contextBlockAsLayoutChild
Place a checked ContextBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.contextBlockAsLayoutChild ::
Slackblocks.Models.ContextBlock -> Slackblocks.Models.LayoutChild
contextBlockAsLayoutFallback
Place a checked ContextBlock in the LayoutFallback role. The receiving parent retains its contextual validation.
Slackblocks.Models.contextBlockAsLayoutFallback ::
Slackblocks.Models.ContextBlock
-> Slackblocks.Models.LayoutFallback
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 (max length: 255).
Slackblocks.Models.contextBlockBlockId ::
Slackblocks.Models.ContextBlockFields -> Maybe Data.Text.Text
contextBlockElements
Adds images and text in display order. Required. Shared limit: context.elements (max items: 10).
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
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 :: *
inspectContextBlock
Inspect immutable construction fields. Rebuild edits with buildContextBlock to revalidate.
Slackblocks.Models.inspectContextBlock ::
Slackblocks.Models.ContextBlock
-> 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 :: *
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
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
dataTableBlockAsLayoutChild
Place a checked DataTableBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.dataTableBlockAsLayoutChild ::
Slackblocks.Models.DataTableBlock -> Slackblocks.Models.LayoutChild
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 (max length: 255).
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
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 :: *
dataTableBlockPageSize
Sets how many rows Slack shows per page. Optional; Nothing omits the field. Factory default: Just (5). Shared limit: data_table.page_size (min: 1, max: 100).
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 (min: 0).
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 (min items: 2, max items: 201).
Slackblocks.Models.dataTableBlockRows ::
Slackblocks.Models.DataTableBlockFields
-> [[Slackblocks.Models.DataTableCell]]
inspectDataTableBlock
Inspect immutable construction fields. Rebuild edits with buildDataTableBlock to revalidate.
Slackblocks.Models.inspectDataTableBlock ::
Slackblocks.Models.DataTableBlock
-> 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 :: *
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
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
dataVisualizationBlockAsLayoutChild
Place a checked DataVisualizationBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.dataVisualizationBlockAsLayoutChild ::
Slackblocks.Models.DataVisualizationBlock
-> Slackblocks.Models.LayoutChild
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 (max length: 255).
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
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 :: *
dataVisualizationBlockTitle
Sets the chart title. Required. Shared limit: data_visualization.title (max length: 50).
Slackblocks.Models.dataVisualizationBlockTitle ::
Slackblocks.Models.DataVisualizationBlockFields -> Data.Text.Text
inspectDataVisualizationBlock
Inspect immutable construction fields. Rebuild edits with buildDataVisualizationBlock to revalidate.
Slackblocks.Models.inspectDataVisualizationBlock ::
Slackblocks.Models.DataVisualizationBlock
-> Slackblocks.Models.DataVisualizationBlockFields
DividerBlock
A horizontal rule that separates blocks.
https://docs.slack.dev/reference/block-kit/blocks/divider-block
type Slackblocks.Models.DividerBlock :: *
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
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
dividerBlockAsLayoutChild
Place a checked DividerBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.dividerBlockAsLayoutChild ::
Slackblocks.Models.DividerBlock -> Slackblocks.Models.LayoutChild
dividerBlockAsLayoutFallback
Place a checked DividerBlock in the LayoutFallback role. The receiving parent retains its contextual validation.
Slackblocks.Models.dividerBlockAsLayoutFallback ::
Slackblocks.Models.DividerBlock
-> Slackblocks.Models.LayoutFallback
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 (max length: 255).
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
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 :: *
inspectDividerBlock
Inspect immutable construction fields. Rebuild edits with buildDividerBlock to revalidate.
Slackblocks.Models.inspectDividerBlock ::
Slackblocks.Models.DividerBlock
-> Slackblocks.Models.DividerBlockFields
FileBlock
A retrieved remote-file representation. Register and share files through the files.remote API; Slack does not accept directly posting file blocks.
https://docs.slack.dev/reference/block-kit/blocks/file-block
type Slackblocks.Models.FileBlock :: *
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
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
fileBlockAsLayoutChild
Place a checked FileBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.fileBlockAsLayoutChild ::
Slackblocks.Models.FileBlock -> Slackblocks.Models.LayoutChild
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 (max length: 255).
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
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 :: *
fileBlockSource
Sets the file source. Slack currently supports only remote files. Required.
Slackblocks.Models.fileBlockSource ::
Slackblocks.Models.FileBlockFields -> Data.Text.Text
inspectFileBlock
Inspect immutable construction fields. Rebuild edits with buildFileBlock to revalidate.
Slackblocks.Models.inspectFileBlock ::
Slackblocks.Models.FileBlock -> 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 :: *
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
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
headerBlockAsLayoutChild
Place a checked HeaderBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.headerBlockAsLayoutChild ::
Slackblocks.Models.HeaderBlock -> Slackblocks.Models.LayoutChild
headerBlockAsLayoutFallback
Place a checked HeaderBlock in the LayoutFallback role. The receiving parent retains its contextual validation.
Slackblocks.Models.headerBlockAsLayoutFallback ::
Slackblocks.Models.HeaderBlock -> Slackblocks.Models.LayoutFallback
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 (max length: 255).
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
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 :: *
headerBlockText
Sets the header text, shown in a larger bold font. Required. Shared limit: header.text (max length: 150).
Slackblocks.Models.headerBlockText ::
Slackblocks.Models.HeaderBlockFields
-> Slackblocks.Models.PlainText
inspectHeaderBlock
Inspect immutable construction fields. Rebuild edits with buildHeaderBlock to revalidate.
Slackblocks.Models.inspectHeaderBlock ::
Slackblocks.Models.HeaderBlock
-> 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 :: *
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
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 (max length: 2000).
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
imageBlockAsLayoutChild
Place a checked ImageBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.imageBlockAsLayoutChild ::
Slackblocks.Models.ImageBlock -> Slackblocks.Models.LayoutChild
imageBlockAsLayoutFallback
Place a checked ImageBlock in the LayoutFallback role. The receiving parent retains its contextual validation.
Slackblocks.Models.imageBlockAsLayoutFallback ::
Slackblocks.Models.ImageBlock -> Slackblocks.Models.LayoutFallback
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 (max length: 255).
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
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 :: *
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 (max length: 3000).
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 (max length: 2000).
Slackblocks.Models.imageBlockTitle ::
Slackblocks.Models.ImageBlockFields
-> Maybe Slackblocks.Models.PlainText
inspectImageBlock
Inspect immutable construction fields. Rebuild edits with buildImageBlock to revalidate.
Slackblocks.Models.inspectImageBlock ::
Slackblocks.Models.ImageBlock
-> 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 :: *
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
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
inputBlockAsLayoutChild
Place a checked InputBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.inputBlockAsLayoutChild ::
Slackblocks.Models.InputBlock -> Slackblocks.Models.LayoutChild
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 (max length: 255).
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
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 :: *
inputBlockHint
Sets helper text shown below the input. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: input.hint (max length: 2000).
Slackblocks.Models.inputBlockHint ::
Slackblocks.Models.InputBlockFields
-> Maybe Slackblocks.Models.PlainText
inputBlockLabel
Sets the label shown above the input. Required. Shared limit: input.label (max length: 2000).
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
inspectInputBlock
Inspect immutable construction fields. Rebuild edits with buildInputBlock to revalidate.
Slackblocks.Models.inspectInputBlock ::
Slackblocks.Models.InputBlock
-> Slackblocks.Models.InputBlockFields
LayoutBlock
A visual grid of one to five rows on messages, modals, and App Home. Supply fallback content for older clients.
https://docs.slack.dev/reference/block-kit/blocks/layout-block Children must be valid on the receiving surface. Layout and container nesting is limited to two composite levels. Existing message and view limits count top-level blocks; no unconfirmed nested-block counting formula is imposed.
type Slackblocks.Models.LayoutBlock :: *
buildLayoutBlock
Validate fields, extensions and receiving context. Return structured errors or a checked LayoutBlock.
Slackblocks.Models.buildLayoutBlock ::
Slackblocks.Models.LayoutBlockFields
-> Slackblocks.Validation.Result Slackblocks.Models.LayoutBlock
inspectLayoutBlock
Inspect immutable construction fields. Rebuild edits with buildLayoutBlock to revalidate.
Slackblocks.Models.inspectLayoutBlock ::
Slackblocks.Models.LayoutBlock
-> Slackblocks.Models.LayoutBlockFields
layoutBlock
Start editable fields for LayoutBlock; required arguments follow the signature.
Optional fields start absent except the explicit shared defaults; no block ID is invented.
Finish with buildLayoutBlock to validate before JSON encoding.
Slackblocks.Models.layoutBlock ::
Data.Text.Text
-> [Slackblocks.Models.LayoutRow]
-> Slackblocks.Models.LayoutBlockFields
layoutBlockAsBlock
Place a checked LayoutBlock in the Block role. The receiving parent retains its contextual validation.
Slackblocks.Models.layoutBlockAsBlock ::
Slackblocks.Models.LayoutBlock -> Slackblocks.Models.Block
layoutBlockBlockId
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 (max length: 255).
Slackblocks.Models.layoutBlockBlockId ::
Slackblocks.Models.LayoutBlockFields -> Maybe Data.Text.Text
layoutBlockExtensions
Unmodeled extension fields. Reserved and modeled keys are rejected.
Slackblocks.Models.layoutBlockExtensions ::
Slackblocks.Models.LayoutBlockFields
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
layoutBlockFallback
Adds stable blocks rendered in place of the layout on older clients. Omission is allowed; Slack normalizes it to an empty array and does not synthesize content. Optional; Nothing omits the field. Factory default: Nothing.
Slackblocks.Models.layoutBlockFallback ::
Slackblocks.Models.LayoutBlockFields
-> Maybe [Slackblocks.Models.LayoutFallback]
LayoutBlockFields
Editable construction input. Call buildLayoutBlock before encoding.
Slackblocks.Models.LayoutBlockFields ::
Data.Text.Text
-> [Slackblocks.Models.LayoutRow]
-> Maybe Bool
-> Maybe Slackblocks.Models.LayoutGridLines
-> Maybe [Slackblocks.Models.LayoutFallback]
-> Maybe Data.Text.Text
-> Data.Map.Strict.Map Data.Text.Text Data.Aeson.Value
-> Slackblocks.Models.LayoutBlockFields
type Slackblocks.Models.LayoutBlockFields :: *
layoutBlockGridLines
Sets outer borders and horizontal row dividers. Slack defaults to none; there are no vertical dividers. Optional; Nothing omits the field. Factory default: Nothing.
Slackblocks.Models.layoutBlockGridLines ::
Slackblocks.Models.LayoutBlockFields
-> Maybe Slackblocks.Models.LayoutGridLines
layoutBlockIsLabelVisible
Shows the label above the grid. Slack defaults to false; hidden labels are not exposed to screen readers. Optional; Nothing omits the field. Factory default: Nothing.
Slackblocks.Models.layoutBlockIsLabelVisible ::
Slackblocks.Models.LayoutBlockFields -> Maybe Bool
layoutBlockLabel
Describes the layout. A visible label is bold text, not a semantic heading. Required. Shared limit: layout.label (min length: 1, max length: 150).
Slackblocks.Models.layoutBlockLabel ::
Slackblocks.Models.LayoutBlockFields -> Data.Text.Text
layoutBlockRows
Adds one to five rows in source and reading order. Required. Shared limit: layout.rows (min items: 1, max items: 5).
Slackblocks.Models.layoutBlockRows ::
Slackblocks.Models.LayoutBlockFields
-> [Slackblocks.Models.LayoutRow]
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 :: *
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
inspectMarkdownBlock
Inspect immutable construction fields. Rebuild edits with buildMarkdownBlock to revalidate.
Slackblocks.Models.inspectMarkdownBlock ::
Slackblocks.Models.MarkdownBlock
-> Slackblocks.Models.MarkdownBlockFields
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 (max length: 255).
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
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 :: *
markdownBlockText
Sets standard markdown content, which Slack renders directly. Required. Shared limit: markdown.text (max length: 12000).
Slackblocks.Models.markdownBlockText ::
Slackblocks.Models.MarkdownBlockFields -> Data.Text.Text
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 :: *
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
inspectPlanBlock
Inspect immutable construction fields. Rebuild edits with buildPlanBlock to revalidate.
Slackblocks.Models.inspectPlanBlock ::
Slackblocks.Models.PlanBlock -> Slackblocks.Models.PlanBlockFields
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 (max length: 255).
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
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 :: *
planBlockTasks
Adds task cards in display order. Required. Shared limit: plan.tasks (max items: 50).
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
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 :: *
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
inspectRichTextBlock
Inspect immutable construction fields. Rebuild edits with buildRichTextBlock to revalidate.
Slackblocks.Models.inspectRichTextBlock ::
Slackblocks.Models.RichTextBlock
-> Slackblocks.Models.RichTextBlockFields
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
richTextBlockAsLayoutChild
Place a checked RichTextBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.richTextBlockAsLayoutChild ::
Slackblocks.Models.RichTextBlock -> Slackblocks.Models.LayoutChild
richTextBlockAsLayoutFallback
Place a checked RichTextBlock in the LayoutFallback role. The receiving parent retains its contextual validation.
Slackblocks.Models.richTextBlockAsLayoutFallback ::
Slackblocks.Models.RichTextBlock
-> Slackblocks.Models.LayoutFallback
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 (max length: 255).
Slackblocks.Models.richTextBlockBlockId ::
Slackblocks.Models.RichTextBlockFields -> Maybe Data.Text.Text
RichTextBlockElement
Closed role: only checked members may enter this position.
type Slackblocks.Models.RichTextBlockElement :: *
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
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 :: *
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
inspectSectionBlock
Inspect immutable construction fields. Rebuild edits with buildSectionBlock to revalidate.
Slackblocks.Models.inspectSectionBlock ::
Slackblocks.Models.SectionBlock
-> Slackblocks.Models.SectionBlockFields
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
sectionBlockAsLayoutChild
Place a checked SectionBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.sectionBlockAsLayoutChild ::
Slackblocks.Models.SectionBlock -> Slackblocks.Models.LayoutChild
sectionBlockAsLayoutFallback
Place a checked SectionBlock in the LayoutFallback role. The receiving parent retains its contextual validation.
Slackblocks.Models.sectionBlockAsLayoutFallback ::
Slackblocks.Models.SectionBlock
-> Slackblocks.Models.LayoutFallback
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 (max length: 255).
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
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 :: *
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 (max items: 10, item max length: 2000).
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 (max length: 3000).
Slackblocks.Models.sectionBlockText ::
Slackblocks.Models.SectionBlockFields
-> Maybe Slackblocks.Models.TextObject
TableBlock
A simple table of raw text, numeric and rich text cells. Cell text is limited to 10,000 Unicode code points per table and across tables in a message.
https://docs.slack.dev/reference/block-kit/blocks/table-block
type Slackblocks.Models.TableBlock :: *
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
inspectTableBlock
Inspect immutable construction fields. Rebuild edits with buildTableBlock to revalidate.
Slackblocks.Models.inspectTableBlock ::
Slackblocks.Models.TableBlock
-> Slackblocks.Models.TableBlockFields
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
tableBlockAsLayoutChild
Place a checked TableBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.tableBlockAsLayoutChild ::
Slackblocks.Models.TableBlock -> Slackblocks.Models.LayoutChild
tableBlockAsLayoutFallback
Place a checked TableBlock in the LayoutFallback role. The receiving parent retains its contextual validation.
Slackblocks.Models.tableBlockAsLayoutFallback ::
Slackblocks.Models.TableBlock -> Slackblocks.Models.LayoutFallback
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 (max length: 255).
Slackblocks.Models.tableBlockBlockId ::
Slackblocks.Models.TableBlockFields -> Maybe Data.Text.Text
tableBlockColumnSettings
Optional settings for leading columns, up to 20 entries. Use null to retain a column’s default settings without shifting later entries. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: table.column_settings (max items: 20).
Slackblocks.Models.tableBlockColumnSettings ::
Slackblocks.Models.TableBlockFields
-> Maybe [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
TableBlockFields
Editable construction input. Call buildTableBlock before encoding.
Slackblocks.Models.TableBlockFields ::
[[Slackblocks.Models.TableCell]]
-> Maybe [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 :: *
tableBlockRows
Adds complete table rows in display order. Required. Shared limit: table.rows (max items: 100).
Slackblocks.Models.tableBlockRows ::
Slackblocks.Models.TableBlockFields
-> [[Slackblocks.Models.TableCell]]
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 :: *
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
inspectTaskCardBlock
Inspect immutable construction fields. Rebuild edits with buildTaskCardBlock to revalidate.
Slackblocks.Models.inspectTaskCardBlock ::
Slackblocks.Models.TaskCardBlock
-> Slackblocks.Models.TaskCardBlockFields
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 (max length: 255).
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
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 :: *
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
An embedded video player.
https://docs.slack.dev/reference/block-kit/blocks/video-block
type Slackblocks.Models.VideoBlock :: *
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
inspectVideoBlock
Inspect immutable construction fields. Rebuild edits with buildVideoBlock to revalidate.
Slackblocks.Models.inspectVideoBlock ::
Slackblocks.Models.VideoBlock
-> Slackblocks.Models.VideoBlockFields
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 (max length: 2000).
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
videoBlockAsLayoutChild
Place a checked VideoBlock in the LayoutChild role. The receiving parent retains its contextual validation.
Slackblocks.Models.videoBlockAsLayoutChild ::
Slackblocks.Models.VideoBlock -> Slackblocks.Models.LayoutChild
videoBlockAsLayoutFallback
Place a checked VideoBlock in the LayoutFallback role. The receiving parent retains its contextual validation.
Slackblocks.Models.videoBlockAsLayoutFallback ::
Slackblocks.Models.VideoBlock -> Slackblocks.Models.LayoutFallback
videoBlockAuthorName
Sets the name of the video's author. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: video.author_name (max length: 50).
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 (max length: 255).
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 (max length: 200).
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
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 :: *
videoBlockProviderIconUrl
Sets the URL of the video provider's icon. Optional; Nothing omits the field. Factory default: Nothing. Shared limit: video.provider_icon_url (max length: 2000).
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 (max length: 50).
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 (max length: 3000).
Slackblocks.Models.videoBlockThumbnailUrl ::
Slackblocks.Models.VideoBlockFields -> Data.Text.Text
videoBlockTitle
Sets the video title. Required. Shared limit: video.title (max length: 200).
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 (max length: 2000).
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 (max length: 3000).
Slackblocks.Models.videoBlockVideoUrl ::
Slackblocks.Models.VideoBlockFields -> Data.Text.Text