/** * Slack Node - Version 1 * Discriminator: resource=message, operation=postEphemeral */ interface Credentials { slackApi: CredentialReference; slackOAuth2Api: CredentialReference; } /** Post an ephemeral message to a user in channel */ export type SlackV1MessagePostEphemeralParams = { resource: 'message'; operation: 'postEphemeral'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * The channel to send the message to */ channel?: string | Expression | PlaceholderValue; /** * The user ID to send the message to */ user?: string | Expression | PlaceholderValue; /** * The text to send */ text?: string | Expression | PlaceholderValue; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Other options to set * @default {} */ otherOptions?: { /** Emoji to use as the icon for this message. Overrides icon_url. */ icon_emoji?: string | Expression | PlaceholderValue; /** URL to an image to use as the icon for this message */ icon_url?: string | Expression | PlaceholderValue; /** Whether to find and link channel names and usernames * @default false */ link_names?: boolean | Expression; /** Provide another message's ts value to make this message a reply */ thread_ts?: string | Expression | PlaceholderValue; /** Whether to use Slack Markdown parsing * @default true */ mrkdwn?: boolean | Expression; /** Whether the reply should be made visible to everyone in the channel or conversation. Use in conjunction with thread_ts. * @default false */ reply_broadcast?: boolean | Expression; /** Whether to enable unfurling of primarily text-based content * @default false */ unfurl_links?: boolean | Expression; /** Whether to disable unfurling of media content * @default true */ unfurl_media?: boolean | Expression; /** The message will be sent from this username (i.e. as if this individual sent the message). * @displayOptions.show { /authentication: ["accessToken"] } */ sendAsUser?: string | Expression | PlaceholderValue; }; /** * The attachment to add * @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 SlackV1MessagePostEphemeralNode = { type: 'n8n-nodes-base.slack'; version: 1; credentials?: Credentials; config: NodeConfig; };