mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-05 09:57:27 -08:00
40dd02f360
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
39 lines
611 B
TypeScript
39 lines
611 B
TypeScript
export interface IAttachment {
|
|
fields: {
|
|
item?: object[];
|
|
};
|
|
}
|
|
|
|
// Used for SendAndWaitMessage
|
|
export interface TextBlock {
|
|
type: string;
|
|
text: string;
|
|
emoji?: boolean;
|
|
}
|
|
|
|
export interface SectionBlock {
|
|
type: 'section';
|
|
text: TextBlock;
|
|
}
|
|
|
|
export interface DividerBlock {
|
|
type: 'divider';
|
|
}
|
|
|
|
export interface ButtonElement {
|
|
type: 'button';
|
|
style?: 'primary';
|
|
text: TextBlock;
|
|
url: string;
|
|
}
|
|
|
|
export interface ActionsBlock {
|
|
type: 'actions';
|
|
elements: ButtonElement[];
|
|
}
|
|
|
|
export interface SendAndWaitMessageBody {
|
|
channel: string;
|
|
blocks: Array<DividerBlock | SectionBlock | ActionsBlock>;
|
|
}
|