/** * Slack Node - Version 1 * Discriminator: resource=message, operation=update */ interface Credentials { slackApi: CredentialReference; slackOAuth2Api: CredentialReference; } /** Updates a message */ export type SlackV1MessageUpdateParams = { resource: 'message'; operation: 'update'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * Channel containing the message to be updated. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ channelId?: string | Expression; /** * New text for the message, using the default formatting rules. It's not required when presenting attachments. */ text?: string | Expression | PlaceholderValue; /** * Timestamp of the message to be updated */ ts?: string | Expression | PlaceholderValue; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Update Fields * @default {} */ updateFields?: { /** Whether to find and link channel names and usernames * @default false */ link_names?: boolean | Expression; /** Change how messages are treated * @default client */ parse?: 'client' | 'full' | 'none' | Expression; }; /** * The attachments to add * @displayOptions.show { jsonParameters: [true] } */ attachmentsJson?: IDataObject | string | Expression; /** * The blocks to add * @displayOptions.show { jsonParameters: [true] } */ blocksJson?: IDataObject | string | Expression; /** * The attachment to add * @displayOptions.show { jsonParameters: [false] } * @default {} */ attachments?: { /** Required plain-text summary of the attachment */ fallback?: string | Expression | PlaceholderValue; /** Text to send */ text?: string | Expression | PlaceholderValue; /** Title of the message */ title?: string | Expression | PlaceholderValue; /** Link of the title */ title_link?: string | Expression | PlaceholderValue; /** Color of the line left of text * @default #ff0000 */ color?: string | Expression; /** Text which appears before the message block */ pretext?: string | Expression | PlaceholderValue; /** Name that should appear */ author_name?: string | Expression | PlaceholderValue; /** Link for the author */ author_link?: string | Expression | PlaceholderValue; /** Icon which should appear for the user */ author_icon?: string | Expression | PlaceholderValue; /** URL of image */ image_url?: string | Expression | PlaceholderValue; /** URL of thumbnail */ thumb_url?: string | Expression | PlaceholderValue; /** Text of footer to add */ footer?: string | Expression | PlaceholderValue; /** Icon which should appear next to footer */ footer_icon?: string | Expression | PlaceholderValue; /** Time message relates to */ ts?: string | Expression; /** Fields to add to message * @default {} */ fields?: { /** Item */ item?: Array<{ /** Title of the item */ title?: string | Expression | PlaceholderValue; /** Value of the item */ value?: string | Expression | PlaceholderValue; /** Whether items can be displayed next to each other * @default true */ short?: boolean | Expression; }>; }; }; }; export type SlackV1MessageUpdateNode = { type: 'n8n-nodes-base.slack'; version: 1; credentials?: Credentials; config: NodeConfig; };