interface.ts 921 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { BaseFileItem } from "../upload/foundation";
  2. export interface RichTextJSON {
  3. type: string;
  4. [key: string]: any
  5. }
  6. export interface BaseSkill {
  7. icon?: any;
  8. value?: string;
  9. label?: string;
  10. hasTemplate?: boolean;
  11. [key: string]: any
  12. }
  13. export type Suggestion = string[] | {
  14. content: string;
  15. [key: string]: any
  16. }
  17. export interface Attachment extends BaseFileItem {
  18. validateMessage?: any;
  19. type?: 'file' | 'directory';
  20. children?: Attachment[]
  21. }
  22. export interface Reference {
  23. type: string;
  24. id: string;
  25. [key: string]: any
  26. }
  27. export interface Content {
  28. type: string;
  29. [key: string]: any
  30. }
  31. export interface LeftMenuChangeProps {
  32. [key: string]: any
  33. }
  34. export interface Setup {
  35. [key: string]: any
  36. }
  37. export interface MessageContent {
  38. references?: Reference[];
  39. attachments?: Attachment[];
  40. inputContents?: Content[];
  41. setup?: Setup
  42. }