n8n-nodes-base
Version:
Base nodes of n8n
38 lines • 913 B
TypeScript
import type { IDataObject } from 'n8n-workflow';
export interface IMessage {
name?: string;
sender?: IUser;
createTime?: string;
text?: string;
cards?: IDataObject[];
previewText?: string;
annotations?: IDataObject[];
thread?: IDataObject[];
space?: IDataObject;
fallbackText?: string;
actionResponse?: IDataObject;
argumentText?: string;
slashCommand?: IDataObject;
attachment?: IDataObject[];
}
export interface IMessageUi {
text?: string;
cards?: {
metadata: IDataObject[];
};
}
export interface IUser {
name?: string;
displayName?: string;
domainId?: string;
type?: Type;
isAnonymous?: boolean;
}
declare const Types: {
readonly TYPE_UNSPECIFIED: 0;
readonly HUMAN: 1;
readonly BOT: 2;
};
export type Type = (typeof Types)[keyof typeof Types];
export {};
//# sourceMappingURL=MessageInterface.d.ts.map