Interface TwistNodeParameters

Source
interface TwistNodeParameters {
    additionalFields?:
        | {
            color?: | 0
            | 1
            | 3
            | 2
            | 4
            | 5
            | 10
            | 6
            | 7
            | 8
            | 9
            | 11;
            description?: string;
            public?: boolean;
            temp_id?: number;
            user_ids?: unknown[];
        }
        | {
            actionsUi?: {
                actionValues: {
                    action?: | "open_url"
                    | "prefill_message"
                    | "send_reply";
                    button_text?: string;
                    message?: string;
                    type?: "action";
                    url?: string;
                }[];
            };
            binaryProperties?: string;
            direct_mentions?: unknown[];
            mark_thread_position?: boolean;
            recipients?: unknown[];
            send_as_integration?: boolean;
            temp_id?: number;
        }
        | {
            actionsUi?: {
                actionValues: {
                    action?: | "open_url"
                    | "prefill_message"
                    | "send_reply";
                    button_text?: string;
                    message?: string;
                    type?: "action";
                    url?: string;
                }[];
            };
            binaryProperties?: string;
            direct_mentions?: unknown[];
        }
        | {
            from_obj_index?: number;
            limit?: number;
            order_by?: "ASC"
            | "DESC";
            to_obj_index?: number;
        }
        | {
            actionsUi?: {
                actionValues: {
                    action?: | "open_url"
                    | "prefill_message"
                    | "send_reply";
                    button_text?: string;
                    message?: string;
                    type?: "action";
                    url?: string;
                }[];
            };
            binaryProperties?: string;
            direct_mentions?: unknown[];
            recipients?: unknown[];
            send_as_integration?: boolean;
            temp_id?: number;
        };
    channelId?: string;
    commentId?: string;
    content?: string;
    conversationId?: string;
    filters?: | { archived?: boolean }
    | {
        as_ids?: boolean;
        from_obj_index?: number;
        newer_than_ts?: string;
        older_than_ts?: string;
        order_by?: "ASC" | "DESC";
        to_obj_index?: number;
    }
    | {
        as_ids?: boolean;
        filter_by?: | "everyone"
        | "attached_to_me"
        | "is_starred";
        newer_than_ts?: string;
        older_than_ts?: string;
    };
    id?: string;
    limit?: number;
    name?: string;
    operation?: | "create"
    | "get"
    | "getAll"
    | "update"
    | "delete"
    | "archive"
    | "unarchive";
    resource?: | "comment"
    | "channel"
    | "thread"
    | "messageConversation";
    returnAll?: boolean;
    threadId?: string;
    title?: string;
    updateFields?: | {
        color?: | 0
        | 1
        | 3
        | 2
        | 4
        | 5
        | 10
        | 6
        | 7
        | 8
        | 9
        | 11;
        description?: string;
        name?: string;
        public?: boolean;
    }
    | {
        actionsUi?: {
            actionValues: {
                action?: | "open_url"
                | "prefill_message"
                | "send_reply";
                button_text?: string;
                message?: string;
                type?: "action";
                url?: string;
            }[];
        };
        binaryProperties?: string;
        content?: string;
        direct_mentions?: unknown[];
    }
    | {
        actionsUi?: {
            actionValues: {
                action?: | "open_url"
                | "prefill_message"
                | "send_reply";
                button_text?: string;
                message?: string;
                type?: "action";
                url?: string;
            }[];
        };
        binaryProperties?: string;
        content?: string;
        direct_mentions?: unknown[];
        title?: string;
    };
    workspaceId?: string;
}

Properties§

Source§

readonly additionalFields?:
    | {
        color?: | 0
        | 1
        | 3
        | 2
        | 4
        | 5
        | 10
        | 6
        | 7
        | 8
        | 9
        | 11;
        description?: string;
        public?: boolean;
        temp_id?: number;
        user_ids?: unknown[];
    }
    | {
        actionsUi?: {
            actionValues: {
                action?: | "open_url"
                | "prefill_message"
                | "send_reply";
                button_text?: string;
                message?: string;
                type?: "action";
                url?: string;
            }[];
        };
        binaryProperties?: string;
        direct_mentions?: unknown[];
        mark_thread_position?: boolean;
        recipients?: unknown[];
        send_as_integration?: boolean;
        temp_id?: number;
    }
    | {
        actionsUi?: {
            actionValues: {
                action?: | "open_url"
                | "prefill_message"
                | "send_reply";
                button_text?: string;
                message?: string;
                type?: "action";
                url?: string;
            }[];
        };
        binaryProperties?: string;
        direct_mentions?: unknown[];
    }
    | {
        from_obj_index?: number;
        limit?: number;
        order_by?: "ASC"
        | "DESC";
        to_obj_index?: number;
    }
    | {
        actionsUi?: {
            actionValues: {
                action?: | "open_url"
                | "prefill_message"
                | "send_reply";
                button_text?: string;
                message?: string;
                type?: "action";
                url?: string;
            }[];
        };
        binaryProperties?: string;
        direct_mentions?: unknown[];
        recipients?: unknown[];
        send_as_integration?: boolean;
        temp_id?: number;
    }

Default: {}

Source§

readonly channelId?: string

The ID of the channel

Source§

readonly commentId?: string

The ID of the comment

Source§

readonly content?: string

The content of the comment

Source§

readonly conversationId?: string

The ID of the conversation. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getConversations","loadOptionsDependsOn":["workspaceId"]}

Source§

readonly filters?:
    | { archived?: boolean }
    | {
        as_ids?: boolean;
        from_obj_index?: number;
        newer_than_ts?: string;
        older_than_ts?: string;
        order_by?: "ASC" | "DESC";
        to_obj_index?: number;
    }
    | {
        as_ids?: boolean;
        filter_by?: | "everyone"
        | "attached_to_me"
        | "is_starred";
        newer_than_ts?: string;
        older_than_ts?: string;
    }

Default: {}

Source§

readonly id?: string

The ID of the conversation message

Source§

readonly limit?: number

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

Source§

readonly name?: string

The name of the channel

Source§

readonly operation?:
    | "create"
    | "get"
    | "getAll"
    | "update"
    | "delete"
    | "archive"
    | "unarchive"

Default: "create"

Source§

readonly resource?: "comment" | "channel" | "thread" | "messageConversation"

Default: "messageConversation"

Source§

readonly returnAll?: boolean

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

Source§

readonly threadId?: string

The ID of the thread

Source§

readonly title?: string

The title of the new thread (1 < length < 300)

Source§

readonly updateFields?:
    | {
        color?: | 0
        | 1
        | 3
        | 2
        | 4
        | 5
        | 10
        | 6
        | 7
        | 8
        | 9
        | 11;
        description?: string;
        name?: string;
        public?: boolean;
    }
    | {
        actionsUi?: {
            actionValues: {
                action?: | "open_url"
                | "prefill_message"
                | "send_reply";
                button_text?: string;
                message?: string;
                type?: "action";
                url?: string;
            }[];
        };
        binaryProperties?: string;
        content?: string;
        direct_mentions?: unknown[];
    }
    | {
        actionsUi?: {
            actionValues: {
                action?: | "open_url"
                | "prefill_message"
                | "send_reply";
                button_text?: string;
                message?: string;
                type?: "action";
                url?: string;
            }[];
        };
        binaryProperties?: string;
        content?: string;
        direct_mentions?: unknown[];
        title?: string;
    }

Default: {}

Source§

readonly workspaceId?: string

The ID of the workspace. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getWorkspaces"}