A library for Slack's Block Kit provided by Transposit
Creates a checkboxes input block. Usable in (input_prompt) modals.
Name of the input field. Must be unique in this workflow.
Type: STRING
A label that appears above an input element.
Type: STRING
An array of options objects displayed as checkboxes. Each option should have the format: {"value": "retreivable value", "text": "dispalyed text"}
Type: ARRAY
An optional hint that appears below an input element in a lighter grey.
Type: STRING
An array of option objects that each exactly match one of the options within options. These options will be selected when the menu initially loads.
Type: ARRAY
Indicates whether the input element may be empty when a user submits the modal. Defaults to false.
Type: BOOLEAN
Creates a context block that displays message context, which can include both images and text. Usable in messages and (input_prompt) modals.
An array of image elements and text objects. Maximum number of items is 10.
Type: ARRAY
Creates a date picker input block. Usable in (input_prompt) modals.
Name of the input field. Must be unique in this workflow.
Type: STRING
A label that appears above an input element.
Type: STRING
An optional hint that appears below an input element in a lighter grey.
Type: STRING
The initial date that is selected when the element is loaded. This should be a string in the format YYYY-MM-DD.
Type: STRING
Indicates whether the input element may be empty when a user submits the modal. Defaults to false.
Type: BOOLEAN
The placeholder text shown in the plain-text input.
Type: STRING
Returns a divider block.
The 'context' parameter is often essential to operations published to Mission Control
Type: OBJECT
Use when you want to create an error display in a modal. Return this from the execute operation.
Name of the field to associate the error with.
Type: STRING
The error message to display. Text only.
Type: STRING
(Note: Remote file creation not implemented yet) Creates a file block that displays a remote file. Usable in messages.
Creates an image block that displays a linked image. Usable in messages and (input_prompt) modals.
A plain-text summary of the image.
Type: STRING
The URL of the image to be displayed.
Type: STRING
An optional title for the image
Type: STRING
Creates an image element that displays a linked image. This element can be added as a parameter to section or action blocks.
A plain-text summary of the image.
Type: STRING
The URL of the image to be displayed.
Type: STRING
For internal use in block_kit_lib. Creates an input block with an undefined element
An element usable in input modals
Type: OBJECT
Type: STRING
Type: STRING
Type: STRING
Type: BOOLEAN
Creates a button element that opens a link when pressed.
The button text
Type: STRING
The external URL the button links to
Type: STRING
Decorates buttons with alternative visual color schemes. "primary" gives buttons a green outline and text, ideal for affirmation or confirmation actions. primary should only be used for one button within a set. "danger" gives buttons a red outline and text, and should be used when the action is destructive. Use danger even more sparingly than primary.
Type: STRING
An object containing some text, formatted as mrkdwn. Useful to populate context blocks or the fields of a section block.
The text to be displayed.
Type: STRING
When set to false (as is default) URLs will be auto-converted into links, conversation names will be link-ified, and certain mentions will be automatically parsed. Using a value of true will skip any preprocessing of this nature, although you can still include manual parsing strings. This field is only usable when type is mrkdwn.
Type: BOOLEAN
Creates a mrkdwn text section block that can optionally contain fields and an accessory element. Usable in messages and (input_prompt) modals.
Text to display. Markdown allowed.
Type: STRING
An element object (i.e. link_button_element, image_element)
Type: OBJECT
An array of text_objects. Any text objects included with fields will be rendered in a compact format that allows for 2 columns of side-by-side text. Maximum number of items is 10.
Type: STRING
Creates a multi static select input block. Usable in (input_prompt) modals.
Name of the input field. Must be unique in this workflow.
Type: STRING
A label that appears above an input element.
Type: STRING
An array of options objects displayed in the select menu. Each option should have the format: {"value": "retreivable value", "text": "dispalyed text"}
Type: ARRAY
An optional hint that appears below an input element in a lighter grey.
Type: STRING
An array of option objects that each exactly match one of the options within options. These options will be selected when the menu initially loads.
Type: ARRAY
Specifies the maximum number of items that can be selected in the menu. Minimum number is 1.
Type: INTEGER
Indicates whether the input element may be empty when a user submits the modal. Defaults to false.
Type: BOOLEAN
The placeholder text shown on the menu.
Type: STRING
An object containing some text, formatted as plain_text. Useful to populate context blocks or the fields of a section block.
The text to be displayed.
Type: STRING
Indicates whether emojis in a text field should be escaped into the colon emoji format. This field is only usable when type is plain_text.
Type: BOOLEAN
Creates a plain text section block that can optionally contain fields and an accessory element. Usable in messages and (input_prompt) modals.
The text to be displayed. Markdown not allowed.
Type: STRING
An element object (i.e. link_button_element, image_element)
Type: OBJECT
An array of text_objects. Any text objects included with fields will be rendered in a compact format that allows for 2 columns of side-by-side text. Maximum number of items is 10.
Type: ARRAY
Create a radio buttons input block. Usable in (input_prompt) modals.
Name of the input field. Must be unique in this workflow.
Type: STRING
A label that appears above an input element.
Type: STRING
An array of options objects displayed as radio buttons. Each option should have the format: {"value": "retreivable value", "text": "dispalyed text"}
Type: ARRAY
An optional hint that appears below an input element in a lighter grey.
Type: STRING
A single option object that exactly matches one of the options within options. This option will be selected when the menu initially loads.
Type: OBJECT
Indicates whether the input element may be empty when a user submits the modal. Defaults to false.
Type: BOOLEAN
Retrieves the values for all options that populated an input field. Should only be used in execute operations.
The MC context.
Type: OBJECT
The field_name provided in the corresponding static_select call
Type: STRING
Retrieves the value from an input field. Should only be used in execute operations.
The MC context.
Type: OBJECT
The field_name provided in the corresponding static_select call
Type: STRING
A default value if no value was selected or one cannot be found.
Type: STRING
Returns true if the input field contains a truthy value. Should only be used in execute operations.
The 'context' parameter is often essential to operations published to Mission Control
Type: OBJECT
Type: STRING
Creates a section block that can optionally contain fields and an accessory element. Usable in messages and (input_prompt) modals.
The text object to be displayed.
Type: OBJECT
An element object (i.e. button_element, image_element)
Type: OBJECT
An array of text objects. Any text objects included with fields will be rendered in a compact format that allows for 2 columns of side-by-side text. Maximum number of items is 10.
Type: ARRAY
Create a static select input block. Usable in (input_prompt) modals.
Name of the input field. Must be unique in this workflow.
Type: STRING
A label that appears above an input element.
Type: STRING
An array of options objects displayed in the select menu. Each option should have the format: {"value": "retreivable value", "text": "dispalyed text"}
Type: ARRAY
An optional hint that appears below an input element in a lighter grey.
Type: STRING
A single option object that exactly matches one of the options within options. This option will be selected when the menu initially loads.
Type: OBJECT
Indicates whether the input element may be empty when a user submits the modal. Defaults to false.
Type: BOOLEAN
The placeholder text shown on the menu.
Type: STRING
Creates a text input block. Usable in (input_prompt) modals.
Name of the input field. Must be unique in this workflow.
Type: STRING
A label that appears above an input element.
Type: STRING
An optional hint that appears below an input element in a lighter grey.
Type: STRING
The initial value in the plain-text input when it is loaded. Defaults to blank.
Type: STRING
The maximum length of input that the user can provide. If the user provides more, they will receive an error.
Type: INTEGER
The minimum length of input that the user must provide. If the user provides less, they will receive an error.
Type: INTEGER
Indicates whether the input will be a single line (false) or a larger textarea (true). Defaults to false.
Type: BOOLEAN
Indicates whether the input element may be empty when a user submits the modal. Defaults to false.
Type: BOOLEAN
The placeholder text shown in the plain-text input.
Type: STRING
An object containing some text, formatted either as plain_text or using mrkdwn, a proprietary textual markup that's just different enough from Markdown to frustrate you
The text to be displayed.
Type: STRING
The formatting to use for this text object. Can be one of plain_textor mrkdwn.
Type: STRING
Indicates whether emojis in a text field should be escaped into the colon emoji format. This field is only usable when type is plain_text.
Type: BOOLEAN
When set to false (as is default) URLs will be auto-converted into links, conversation names will be link-ified, and certain mentions will be automatically parsed. Using a value of true will skip any preprocessing of this nature, although you can still include manual parsing strings. This field is only usable when type is mrkdwn.
Type: BOOLEAN
Create a Transposit file block from base64 encoded content.
base64 encoded content.
Type: STRING
content MIME type. Plain text should use and specify utf-8 charset. Examples: "image/jpeg", "text/plain; charset=utf-8".
Type: STRING
Create a Transposit file block from plain-text content.
Plain text to be encoded and returned as a Transposit file block
Type: STRING