Interface SlackV1NodeParameters

Source
interface SlackV1NodeParameters {
    additionalFields?:
        | { isPrivate?: boolean }
        | { includeNumMembers?: boolean }
        | {
            channelIds?: unknown[];
            description?: string;
            handle?: string;
            include_count?: boolean;
        }
        | { include_count?: boolean }
        | {
            include_count?: boolean;
            include_disabled?: boolean;
            include_users?: boolean;
        }
        | {
            customFieldUi?: {
                customFieldValues: {
                    alt?: string;
                    id?: string;
                    value?: string;
                }[];
            };
            email?: string;
            first_name?: string;
            last_name?: string;
            status_emoji?: string;
            status_expiration?: string;
            status_text?: string;
            user?: string;
        }
        | { include_labels?: boolean; user?: 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?: string;
    };
    attachmentsJson?: string;
    authentication?: "oAuth2"
    | "accessToken";
    binaryData?: boolean;
    binaryPropertyName?: string;
    blocksJson?: string;
    blocksUi?: {
        blocksValues: {
            accessoryUi?: {
                accessoriesValues: {
                    actionId?: string;
                    confirmUi?: {
                        confirmValue: {
                            confirmTextUi?: (...) | (...);
                            denyUi?: (...) | (...);
                            style?: (...) | (...) | (...) | (...);
                            textUi?: (...) | (...);
                            titleUi?: (...) | (...);
                        };
                    };
                    emoji?: boolean;
                    style?: "default"
                    | "primary"
                    | "danger";
                    text?: string;
                    type?: "button";
                    url?: string;
                    value?: string;
                };
            };
            blockId?: string;
            elementsUi?: {
                elementsValues: {
                    actionId?: string;
                    confirmUi?: {
                        confirmValue: {
                            confirmTextUi?: ...;
                            denyUi?: ...;
                            style?: ...;
                            textUi?: ...;
                            titleUi?: ...;
                        };
                    };
                    emoji?: boolean;
                    style?: "default"
                    | "primary"
                    | "danger";
                    text?: string;
                    type?: "button";
                    url?: string;
                    value?: string;
                }[];
            };
            fieldsUi?: {
                fieldsValues: {
                    emoji?: boolean;
                    text?: string;
                    type?: "mrkwdn"
                    | "plainText";
                    verbatim?: boolean;
                }[];
            };
            textUi?: {
                textValue: {
                    emoji?: boolean;
                    text?: string;
                    type?: "mrkwdn"
                    | "plainText";
                    verbatim?: boolean;
                };
            };
            type?: "actions"
            | "section";
        }[];
    };
    channel?: string;
    channelId?: string;
    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;
    };
    jsonParameters?: boolean;
    limit?: number;
    name?: string;
    operation?: | "create"
    | "get"
    | "getAll"
    | "update"
    | "add"
    | "remove"
    | "delete"
    | "close"
    | "upload"
    | "member"
    | "open"
    | "history"
    | "post"
    | "rename"
    | "disable"
    | "invite"
    | "enable"
    | "join"
    | "kick"
    | "leave"
    | "postEphemeral"
    | "archive"
    | "info"
    | "replies"
    | "setPurpose"
    | "setTopic"
    | "unarchive"
    | "getPermalink"
    | "getPresence";
    options?: | {
        channelId?: string;
        returnIm?: boolean;
        users?: unknown[];
    }
    | {
        channelId?: string;
        fileComment?: string;
        fileId?: string;
        timestamp?: string;
    }
    | {
        channelId?: string;
        fileComment?: string;
        fileId?: string;
        timestamp?: string;
    }
    | {
        channelIds?: unknown[];
        fileName?: string;
        initialComment?: string;
        threadTs?: string;
        title?: string;
    };
    otherOptions?: {
        icon_emoji?: string;
        icon_url?: string;
        link_names?: boolean;
        mrkdwn?: boolean;
        reply_broadcast?: boolean;
        sendAsUser?: string;
        thread_ts?: string;
        unfurl_links?: boolean;
        unfurl_media?: boolean;
    };
    purpose?: string;
    resolveData?: boolean;
    resource?: | "file"
    | "message"
    | "user"
    | "channel"
    | "userGroup"
    | "star"
    | "reaction"
    | "userProfile";
    returnAll?: boolean;
    text?: string;
    timestamp?: string;
    topic?: string;
    ts?: string;
    updateFields?: | {
        link_names?: boolean;
        parse?: "none"
        | "client"
        | "full";
    }
    | {
        channels?: unknown[];
        description?: string;
        handle?: string;
        include_count?: boolean;
        name?: string;
    };
    user?: string;
    userGroupId?: string;
    userId?: string;
    userIds?: unknown[];
}

Properties§

Source§

readonly additionalFields?:
    | { isPrivate?: boolean }
    | { includeNumMembers?: boolean }
    | {
        channelIds?: unknown[];
        description?: string;
        handle?: string;
        include_count?: boolean;
    }
    | { include_count?: boolean }
    | {
        include_count?: boolean;
        include_disabled?: boolean;
        include_users?: boolean;
    }
    | {
        customFieldUi?: {
            customFieldValues: {
                alt?: string;
                id?: string;
                value?: string;
            }[];
        };
        email?: string;
        first_name?: string;
        last_name?: string;
        status_emoji?: string;
        status_expiration?: string;
        status_text?: string;
        user?: string;
    }
    | { include_labels?: boolean; user?: 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?: string;
}

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

Source§

readonly attachmentsJson?: string

The attachments to add Type options: {"alwaysOpenEditWindow":true}

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

Default: "data"

Source§

readonly blocksJson?: string

The blocks to add Type options: {"alwaysOpenEditWindow":true}

Source§

readonly blocksUi?: {
    blocksValues: {
        accessoryUi?: {
            accessoriesValues: {
                actionId?: string;
                confirmUi?: {
                    confirmValue: {
                        confirmTextUi?: (...) | (...);
                        denyUi?: (...) | (...);
                        style?: (...) | (...) | (...) | (...);
                        textUi?: (...) | (...);
                        titleUi?: (...) | (...);
                    };
                };
                emoji?: boolean;
                style?: "default"
                | "primary"
                | "danger";
                text?: string;
                type?: "button";
                url?: string;
                value?: string;
            };
        };
        blockId?: string;
        elementsUi?: {
            elementsValues: {
                actionId?: string;
                confirmUi?: {
                    confirmValue: {
                        confirmTextUi?: ...;
                        denyUi?: ...;
                        style?: ...;
                        textUi?: ...;
                        titleUi?: ...;
                    };
                };
                emoji?: boolean;
                style?: "default"
                | "primary"
                | "danger";
                text?: string;
                type?: "button";
                url?: string;
                value?: string;
            }[];
        };
        fieldsUi?: {
            fieldsValues: {
                emoji?: boolean;
                text?: string;
                type?: "mrkwdn"
                | "plainText";
                verbatim?: boolean;
            }[];
        };
        textUi?: {
            textValue: {
                emoji?: boolean;
                text?: string;
                type?: "mrkwdn"
                | "plainText";
                verbatim?: boolean;
            };
        };
        type?: "actions"
        | "section";
    }[];
}

The blocks to add Default: {} Type options: {"multipleValues":true,"multipleValueButtonText":"Add Block"}

Source§

readonly channel?: string

The channel to send the message to

Source§

readonly channelId?: string

The name of the channel to archive. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getChannels"}

Source§

readonly fileContent?: string

The text content of the file to upload

Source§

readonly fileId?: string

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 jsonParameters?: boolean

Source§

readonly limit?: number

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

Source§

readonly name?: string

New name for conversation

Source§

readonly operation?:
    | "create"
    | "get"
    | "getAll"
    | "update"
    | "add"
    | "remove"
    | "delete"
    | "close"
    | "upload"
    | "member"
    | "open"
    | "history"
    | "post"
    | "rename"
    | "disable"
    | "invite"
    | "enable"
    | "join"
    | "kick"
    | "leave"
    | "postEphemeral"
    | "archive"
    | "info"
    | "replies"
    | "setPurpose"
    | "setTopic"
    | "unarchive"
    | "getPermalink"
    | "getPresence"

Default: "create"

Source§

readonly options?:
    | {
        channelId?: string;
        returnIm?: boolean;
        users?: unknown[];
    }
    | {
        channelId?: string;
        fileComment?: string;
        fileId?: string;
        timestamp?: string;
    }
    | {
        channelId?: string;
        fileComment?: string;
        fileId?: string;
        timestamp?: string;
    }
    | {
        channelIds?: unknown[];
        fileName?: string;
        initialComment?: string;
        threadTs?: string;
        title?: string;
    }

Default: {}

Source§

readonly otherOptions?: {
    icon_emoji?: string;
    icon_url?: string;
    link_names?: boolean;
    mrkdwn?: boolean;
    reply_broadcast?: boolean;
    sendAsUser?: string;
    thread_ts?: string;
    unfurl_links?: boolean;
    unfurl_media?: boolean;
}

Other options to set Default: {}

Source§

readonly purpose?: string

A new, specialer purpose

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"
    | "userProfile"

Default: "message"

Source§

readonly returnAll?: boolean

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

Source§

readonly text?: string

The text to send

Source§

readonly timestamp?: string

Timestamp of the message to get permanent link

Source§

readonly topic?: string

The new topic string. Does not support formatting or linkification.

Source§

readonly ts?: string

Unique identifier of a thread's parent message

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?: string

The user ID to send the message to

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