interface SlackV2NodeParameters {
approvalOptions?: {
values: {
approvalType?: "single" | "double";
approveLabel?: string;
buttonApprovalStyle?: "primary" | "secondary";
buttonDisapprovalStyle?: "primary" | "secondary";
disapproveLabel?: string;
};
};
attachments?: {
author_icon?: string;
author_link?: string;
author_name?: string;
color?: string;
fallback?: string;
fields?: {
item: {
short?: boolean;
title?: string;
value?: string;
}[];
};
footer?: string;
footer_icon?: string;
image_url?: string;
pretext?: string;
text?: string;
thumb_url?: string;
title?: string;
title_link?: string;
ts?: number;
};
authentication?: "oAuth2"
| "accessToken";
binaryData?: boolean;
binaryPropertyName?: string;
blocksUi?: string;
channelId?:
| string
| { mode: "id"
| "list"
| "url"; value: string }
| {
mode: "id" | "list" | "url" | "name";
value: string;
};
channelVisibility?: "public"
| "private";
defineForm?: "json" | "fields";
fileContent?: string;
fileId?: string;
filters?:
| {
excludeArchived?: boolean;
types?: (
| "public_channel"
| "private_channel"
| "mpim"
| "im"
)[];
}
| {
inclusive?: boolean;
latest?: string;
oldest?: string;
}
| {
channelId?: string;
showFilesHidden?: boolean;
tsFrom?: string;
tsTo?: string;
types?: (
| "all"
| "spaces"
| "gdocs"
| "images"
| "pdfs"
| "snippets"
| "zips"
)[];
userId?: string;
};
formFields?: {
values: {
acceptFileTypes?: string;
elementName?: string;
fieldLabel: string;
fieldName?: string;
fieldOptions: { values: { option?: string }[] };
fieldType:
| "number"
| "file"
| "text"
| "email"
| "date"
| "html"
| "checkbox"
| "dropdown"
| "hiddenField"
| "password"
| "radio"
| "textarea";
fieldValue?: string;
formatDate?: string;
html?: string;
limitSelection?: "exact"
| "range"
| "unlimited";
maxSelections?: number;
minSelections?: number;
multipleFiles?: boolean;
multiselect?: boolean;
multiselectLegacyNotice?: string;
numberOfSelections?: number;
placeholder?: string;
requiredField?: boolean;
}[];
};
jsonOutput?: string;
limit?: number;
message?: string;
messageType?: "text"
| "attachment"
| "block";
name?: string;
operation?:
| "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove"
| "delete"
| "search"
| "close"
| "upload"
| "member"
| "open"
| "history"
| "sendAndWait"
| "post"
| "rename"
| "disable"
| "getProfile"
| "invite"
| "enable"
| "join"
| "kick"
| "leave"
| "archive"
| "info"
| "replies"
| "setPurpose"
| "setTopic"
| "unarchive"
| "getPermalink"
| "getPresence"
| "updateProfile";
option?: { include_count?: boolean };
options?:
| { includeNumMembers?: boolean }
| {
channelId?: string;
returnIm?: boolean;
users?: unknown[];
}
| { searchChannel?: unknown[] }
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?:
| "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
}
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?: | "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
messageButtonLabel?: string;
responseFormButtonLabel?: string;
responseFormCustomCss?: string;
responseFormDescription?: string;
responseFormTitle?: string;
}
| { fileComment?: string }
| {
channelId?: string;
fileComment?: string;
fileId?: string;
timestamp?: number;
}
| {
channelId?: string;
channelIds?: unknown[];
fileName?: string;
initialComment?: string;
threadTs?: string;
title?: string;
}
| {
customFieldUi?: {
customFieldValues: {
alt?: string;
id?: string;
value?: string;
}[];
};
email?: string;
first_name?: string;
last_name?: string;
status?: {
set_status: {
status_emoji?: string;
status_expiration?: string;
status_text?: string;
}[];
};
user?: string;
}
| { include_count?: boolean }
| {
include_count?: boolean;
include_disabled?: boolean;
include_users?: boolean;
};
Options?: {
channelIds?: unknown[];
description?: string;
handle?: string;
include_count?: boolean;
};
otherOptions?: | {
botProfile?: {
imageValues: {
icon_emoji?: string;
icon_url?: string;
profilePhotoType?: "image"
| "emoji";
};
};
ephemeral?: | boolean
| {
ephemeralValues: {
ephemeral?: boolean;
user?: { mode: "id"
| "list"; value: string };
};
};
includeLinkToWorkflow?: boolean;
link_names?: boolean;
mrkdwn?: boolean;
sendAsUser?: string;
thread_ts?: {
replyValues: {
reply_broadcast?: boolean;
thread_ts?: number;
};
};
unfurl_links?: boolean;
unfurl_media?: boolean;
}
| { includeLinkToWorkflow?: boolean };
purpose?: string;
query?: string;
resolveData?: boolean;
resource?:
| "file"
| "message"
| "user"
| "channel"
| "userGroup"
| "star"
| "reaction";
responseType?: "approval"
| "freeText"
| "customForm";
returnAll?: boolean;
select?: "user" | "channel";
sort?: "asc" | "desc" | "relevance";
target?: "file" | "message";
text?: string;
timestamp?: number;
topic?: string;
ts?: number;
updateFields?:
| {
link_names?: boolean;
parse?: "none"
| "client"
| "full";
}
| {
channels?: unknown[];
description?: string;
handle?: string;
include_count?: boolean;
name?: string;
};
user?: | {
mode: "id"
| "list"
| "username";
value: string;
}
| { mode: "id"
| "list"; value: string };
userGroupId?: string;
userId?: string;
userIds?: unknown[];
}
Properties§
Source§readonly approval Options?: {
values: {
approvalType?: "single" | "double";
approveLabel?: string;
buttonApprovalStyle?: "primary" | "secondary";
buttonDisapprovalStyle?: "primary" | "secondary";
disapproveLabel?: string;
};
}
readonly approval Options?: {
values: {
approvalType?: "single" | "double";
approveLabel?: string;
buttonApprovalStyle?: "primary" | "secondary";
buttonDisapprovalStyle?: "primary" | "secondary";
disapproveLabel?: string;
};
}
Source§readonly attachments?: {
author_icon?: string;
author_link?: string;
author_name?: string;
color?: string;
fallback?: string;
fields?: {
item: {
short?: boolean;
title?: string;
value?: string;
}[];
};
footer?: string;
footer_icon?: string;
image_url?: string;
pretext?: string;
text?: string;
thumb_url?: string;
title?: string;
title_link?: string;
ts?: number;
}
readonly attachments?: {
author_icon?: string;
author_link?: string;
author_name?: string;
color?: string;
fallback?: string;
fields?: {
item: {
short?: boolean;
title?: string;
value?: string;
}[];
};
footer?: string;
footer_icon?: string;
image_url?: string;
pretext?: string;
text?: string;
thumb_url?: string;
title?: string;
title_link?: string;
ts?: number;
}
Default: {} Type options: {"multipleValues":true,"multipleValueButtonText":"Add attachment"}
Source§readonly binary Property Name?: string
readonly binary Property Name?: string
Name of the binary property which contains the data for the file to be uploaded Default: "data"
Source§readonly blocks Ui?: string
readonly blocks Ui?: string
Enter the JSON output from Slack's visual Block Kit Builder here. You can then use expressions to add variable content to your blocks. To create blocks, use Slack's Block Kit Builder Type options: {"rows":3}
Source§readonly channel Id?:
| string
| { mode: "id"
| "list"
| "url"; value: string }
| {
mode: "id" | "list" | "url" | "name";
value: string;
}
readonly channel Id?:
| string
| { mode: "id"
| "list"
| "url"; value: string }
| {
mode: "id" | "list" | "url" | "name";
value: string;
}
The Slack channel to archive Default: {"mode":"list","value":""}
Source§readonly channel Visibility?: "public" | "private"
readonly channel Visibility?: "public" | "private"
Whether to create a Public or a Private Slack channel. More info. Default: "public"
Source§readonly filters?:
| {
excludeArchived?: boolean;
types?: (
| "public_channel"
| "private_channel"
| "mpim"
| "im"
)[];
}
| {
inclusive?: boolean;
latest?: string;
oldest?: string;
}
| {
channelId?: string;
showFilesHidden?: boolean;
tsFrom?: string;
tsTo?: string;
types?: (
| "all"
| "spaces"
| "gdocs"
| "images"
| "pdfs"
| "snippets"
| "zips"
)[];
userId?: string;
}
readonly filters?:
| {
excludeArchived?: boolean;
types?: (
| "public_channel"
| "private_channel"
| "mpim"
| "im"
)[];
}
| {
inclusive?: boolean;
latest?: string;
oldest?: string;
}
| {
channelId?: string;
showFilesHidden?: boolean;
tsFrom?: string;
tsTo?: string;
types?: (
| "all"
| "spaces"
| "gdocs"
| "images"
| "pdfs"
| "snippets"
| "zips"
)[];
userId?: string;
}
Default: {}
Source§readonly form Fields?: {
values: {
acceptFileTypes?: string;
elementName?: string;
fieldLabel: string;
fieldName?: string;
fieldOptions: { values: { option?: string }[] };
fieldType:
| "number"
| "file"
| "text"
| "email"
| "date"
| "html"
| "checkbox"
| "dropdown"
| "hiddenField"
| "password"
| "radio"
| "textarea";
fieldValue?: string;
formatDate?: string;
html?: string;
limitSelection?: "exact"
| "range"
| "unlimited";
maxSelections?: number;
minSelections?: number;
multipleFiles?: boolean;
multiselect?: boolean;
multiselectLegacyNotice?: string;
numberOfSelections?: number;
placeholder?: string;
requiredField?: boolean;
}[];
}
readonly form Fields?: {
values: {
acceptFileTypes?: string;
elementName?: string;
fieldLabel: string;
fieldName?: string;
fieldOptions: { values: { option?: string }[] };
fieldType:
| "number"
| "file"
| "text"
| "email"
| "date"
| "html"
| "checkbox"
| "dropdown"
| "hiddenField"
| "password"
| "radio"
| "textarea";
fieldValue?: string;
formatDate?: string;
html?: string;
limitSelection?: "exact"
| "range"
| "unlimited";
maxSelections?: number;
minSelections?: number;
multipleFiles?: boolean;
multiselect?: boolean;
multiselectLegacyNotice?: string;
numberOfSelections?: number;
placeholder?: string;
requiredField?: boolean;
}[];
}
Default: {} Type options: {"multipleValues":true,"sortable":true}
Source§readonly json Output?: string
readonly json Output?: string
Default: "[\n {\n "fieldLabel":"Name",\n "placeholder":"enter you name",\n "requiredField":true\n },\n {\n "fieldLabel":"Age",\n "fieldType":"number",\n "placeholder":"enter your age"\n },\n {\n "fieldLabel":"Email",\n "fieldType":"email",\n "requiredField":true\n }\n]" Type options: {"rows":5}
Source§readonly limit?: number
readonly limit?: number
Max number of results to return Default: 50 Type options: {"minValue":1,"maxValue":100}
Source§readonly message Type?: "text" | "attachment" | "block"
readonly message Type?: "text" | "attachment" | "block"
Whether to send a simple text message, or use Slack’s Blocks UI builder for more sophisticated messages that include form fields, sections and more Default: "text"
Source§readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove"
| "delete"
| "search"
| "close"
| "upload"
| "member"
| "open"
| "history"
| "sendAndWait"
| "post"
| "rename"
| "disable"
| "getProfile"
| "invite"
| "enable"
| "join"
| "kick"
| "leave"
| "archive"
| "info"
| "replies"
| "setPurpose"
| "setTopic"
| "unarchive"
| "getPermalink"
| "getPresence"
| "updateProfile"
readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove"
| "delete"
| "search"
| "close"
| "upload"
| "member"
| "open"
| "history"
| "sendAndWait"
| "post"
| "rename"
| "disable"
| "getProfile"
| "invite"
| "enable"
| "join"
| "kick"
| "leave"
| "archive"
| "info"
| "replies"
| "setPurpose"
| "setTopic"
| "unarchive"
| "getPermalink"
| "getPresence"
| "updateProfile"
Default: "create"
Source§readonly options?:
| { includeNumMembers?: boolean }
| {
channelId?: string;
returnIm?: boolean;
users?: unknown[];
}
| { searchChannel?: unknown[] }
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?:
| "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
}
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?: | "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
messageButtonLabel?: string;
responseFormButtonLabel?: string;
responseFormCustomCss?: string;
responseFormDescription?: string;
responseFormTitle?: string;
}
| { fileComment?: string }
| {
channelId?: string;
fileComment?: string;
fileId?: string;
timestamp?: number;
}
| {
channelId?: string;
channelIds?: unknown[];
fileName?: string;
initialComment?: string;
threadTs?: string;
title?: string;
}
| {
customFieldUi?: {
customFieldValues: {
alt?: string;
id?: string;
value?: string;
}[];
};
email?: string;
first_name?: string;
last_name?: string;
status?: {
set_status: {
status_emoji?: string;
status_expiration?: string;
status_text?: string;
}[];
};
user?: string;
}
| { include_count?: boolean }
| {
include_count?: boolean;
include_disabled?: boolean;
include_users?: boolean;
}
readonly options?:
| { includeNumMembers?: boolean }
| {
channelId?: string;
returnIm?: boolean;
users?: unknown[];
}
| { searchChannel?: unknown[] }
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?:
| "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
}
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?: | "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
messageButtonLabel?: string;
responseFormButtonLabel?: string;
responseFormCustomCss?: string;
responseFormDescription?: string;
responseFormTitle?: string;
}
| { fileComment?: string }
| {
channelId?: string;
fileComment?: string;
fileId?: string;
timestamp?: number;
}
| {
channelId?: string;
channelIds?: unknown[];
fileName?: string;
initialComment?: string;
threadTs?: string;
title?: string;
}
| {
customFieldUi?: {
customFieldValues: {
alt?: string;
id?: string;
value?: string;
}[];
};
email?: string;
first_name?: string;
last_name?: string;
status?: {
set_status: {
status_emoji?: string;
status_expiration?: string;
status_text?: string;
}[];
};
user?: string;
}
| { include_count?: boolean }
| {
include_count?: boolean;
include_disabled?: boolean;
include_users?: boolean;
}
Default: {}
Source§readonly Options?: {
channelIds?: unknown[];
description?: string;
handle?: string;
include_count?: boolean;
}
readonly Options?: {
channelIds?: unknown[];
description?: string;
handle?: string;
include_count?: boolean;
}
Default: {}
Source§readonly other Options?:
| {
botProfile?: {
imageValues: {
icon_emoji?: string;
icon_url?: string;
profilePhotoType?: "image"
| "emoji";
};
};
ephemeral?: | boolean
| {
ephemeralValues: {
ephemeral?: boolean;
user?: { mode: "id"
| "list"; value: string };
};
};
includeLinkToWorkflow?: boolean;
link_names?: boolean;
mrkdwn?: boolean;
sendAsUser?: string;
thread_ts?: {
replyValues: {
reply_broadcast?: boolean;
thread_ts?: number;
};
};
unfurl_links?: boolean;
unfurl_media?: boolean;
}
| { includeLinkToWorkflow?: boolean }
readonly other Options?:
| {
botProfile?: {
imageValues: {
icon_emoji?: string;
icon_url?: string;
profilePhotoType?: "image"
| "emoji";
};
};
ephemeral?: | boolean
| {
ephemeralValues: {
ephemeral?: boolean;
user?: { mode: "id"
| "list"; value: string };
};
};
includeLinkToWorkflow?: boolean;
link_names?: boolean;
mrkdwn?: boolean;
sendAsUser?: string;
thread_ts?: {
replyValues: {
reply_broadcast?: boolean;
thread_ts?: number;
};
};
unfurl_links?: boolean;
unfurl_media?: boolean;
}
| { includeLinkToWorkflow?: boolean }
Other options to set Default: {}
Source§readonly resolve Data?: boolean
readonly resolve Data?: boolean
Whether to resolve the data automatically. By default the response only contain the ID to resource.
Source§readonly resource?:
| "file"
| "message"
| "user"
| "channel"
| "userGroup"
| "star"
| "reaction"
readonly resource?:
| "file"
| "message"
| "user"
| "channel"
| "userGroup"
| "star"
| "reaction"
Default: "message"
Source§readonly sort?: "asc" | "desc" | "relevance"
readonly sort?: "asc" | "desc" | "relevance"
How search results should be sorted. You can sort by. Default: "desc"
Source§readonly text?: string
readonly text?: string
The message text to post. Supports markdown by default - this can be disabled in "Options".
Source§readonly update Fields?:
| {
link_names?: boolean;
parse?: "none"
| "client"
| "full";
}
| {
channels?: unknown[];
description?: string;
handle?: string;
include_count?: boolean;
name?: string;
}
readonly update Fields?:
| {
link_names?: boolean;
parse?: "none"
| "client"
| "full";
}
| {
channels?: unknown[];
description?: string;
handle?: string;
include_count?: boolean;
name?: string;
}
Default: {}
Source§readonly user?:
| {
mode: "id"
| "list"
| "username";
value: string;
}
| { mode: "id"
| "list"; value: string }
readonly user?:
| {
mode: "id"
| "list"
| "username";
value: string;
}
| { mode: "id"
| "list"; value: string }
Default: {"mode":"list","value":""}
Source§readonly user Id?: string
readonly user Id?: string
Choose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getUsers"}
Source§readonly user Ids?: unknown[]
readonly user Ids?: unknown[]
The ID of the user to invite into channel. Choose from the list, or specify IDs using an expression. Default: [] Type options: {"loadOptionsMethod":"getUsers"}
Default: {}