Interface SlackV2NodeParameters

Source
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 approvalOptions?: {
    values: {
        approvalType?: "single" | "double";
        approveLabel?: string;
        buttonApprovalStyle?: "primary" | "secondary";
        buttonDisapprovalStyle?: "primary" | "secondary";
        disapproveLabel?: string;
    };
}

Default: {}

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;
}

Default: {} Type options: {"multipleValues":true,"multipleValueButtonText":"Add attachment"}

Source§

readonly authentication?: "oAuth2" | "accessToken"

Default: "accessToken"

Source§

readonly binaryData?: boolean

Whether the data to upload should be taken from binary field

Source§

readonly binaryPropertyName?: string

Name of the binary property which contains the data for the file to be uploaded Default: "data"

Source§

readonly blocksUi?: 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 channelId?:
    | 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 channelVisibility?: "public" | "private"

Whether to create a Public or a Private Slack channel. More info. Default: "public"

Source§

readonly defineForm?: "json" | "fields"

Default: "fields"

Source§

readonly fileContent?: string

Source§

readonly fileId?: string

File to add star to

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;
    }

Default: {}

Source§

readonly 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;
    }[];
}

Default: {} Type options: {"multipleValues":true,"sortable":true}

Source§

readonly jsonOutput?: 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

Max number of results to return Default: 50 Type options: {"minValue":1,"maxValue":100}

Source§

readonly message?: string

Type options: {"rows":4}

Source§

readonly messageType?: "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 name?: string

New name for conversation

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"

Default: "create"

Source§

readonly option?: { include_count?: boolean }

Default: {}

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;
    }

Default: {}

Source§

readonly Options?: {
    channelIds?: unknown[];
    description?: string;
    handle?: string;
    include_count?: boolean;
}

Default: {}

Source§

readonly 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 }

Other options to set Default: {}

Source§

readonly purpose?: string

A new, specialer purpose

Source§

readonly query?: string

The text to search for within messages

Source§

readonly resolveData?: 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"

Default: "message"

Source§

readonly responseType?: "approval" | "freeText" | "customForm"

Default: "approval"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly select?: "user" | "channel"

Source§

readonly sort?: "asc" | "desc" | "relevance"

How search results should be sorted. You can sort by. Default: "desc"

Source§

readonly target?: "file" | "message"

Choose whether to add a star to a message or a file

Source§

readonly text?: string

The message text to post. Supports markdown by default - this can be disabled in "Options".

Source§

readonly timestamp?: number

Timestamp of the message to message

Source§

readonly topic?: string

Source§

readonly ts?: number

Timestamp of the message to reply

Source§

readonly updateFields?:
    | {
        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 }

Default: {"mode":"list","value":""}

Source§

readonly userGroupId?: string

The encoded ID of the User Group to update

Source§

readonly userId?: string

Choose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getUsers"}

Source§

readonly userIds?: 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"}