first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
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;
|
||||
}
|
||||
const Types = {
|
||||
TYPE_UNSPECIFIED: 0,
|
||||
HUMAN: 1,
|
||||
BOT: 2,
|
||||
} as const;
|
||||
|
||||
export type Type = (typeof Types)[keyof typeof Types];
|
||||
|
||||
// // TODO: define other interfaces
|
||||
//
|
||||
// export interface IMessage {s
|
||||
// name?: string;
|
||||
// sender?: IUser;
|
||||
// createTime?: string;
|
||||
// text?: string;
|
||||
// cards?: ICard[];
|
||||
// previewText?: string;
|
||||
// annotations?: IAnnotation[];
|
||||
// thread?: IThread[];
|
||||
// space?: ISpace;
|
||||
// fallbackText?: string;
|
||||
// actionResponse?: IActionResponse;
|
||||
// argumentText?: string;
|
||||
// slashCommand?: ISlashCommand;
|
||||
// attachment?: IAttachment[];
|
||||
// }
|
||||
//
|
||||
// export interface ICard {
|
||||
// header?: ICardHeader;
|
||||
// sections?: ISection[];
|
||||
// cardActions?: ICardAction[];
|
||||
// name?: string;
|
||||
// }
|
||||
//
|
||||
// export interface ICardHeader {
|
||||
// title: string;
|
||||
// subtitle: string;
|
||||
// imageStyle: ImageStyleType;
|
||||
// imageUrl: string;
|
||||
// }
|
||||
// enum ImageStyleType {
|
||||
// 'IMAGE_STYLE_UNSPECIFIED',
|
||||
// 'IMAGE',
|
||||
// 'AVATAR',
|
||||
// }
|
||||
//
|
||||
// export interface ISection {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// export interface ICardAction {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// export interface IAnnotation {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// export interface IThread {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// export interface ISpace {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// export interface IActionResponse {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// export interface ISlashCommand {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// export interface IAttachment {
|
||||
// // attachments are not available for bots
|
||||
// }
|
||||
Reference in New Issue
Block a user