@gobolt/genesis 0.3.5 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,13 @@
1
- import { default as Message } from './Message';
2
- type Message = {
1
+ export declare const PROCESSING_MESSAGE = "Processing your query...";
2
+ export type Message = {
3
3
  id: string;
4
4
  content: string;
5
5
  sender: string;
6
6
  isThinking?: boolean;
7
7
  timestamp: string;
8
8
  respondedBy?: "ai" | "search";
9
+ data?: any[];
10
+ response?: string;
9
11
  };
10
12
  export type ChatHistoryRecord = {
11
13
  visitorId: string;
@@ -1,9 +1,25 @@
1
1
  import { FC } from 'react';
2
+ interface ProposalData {
3
+ id: string;
4
+ title: string;
5
+ proposal_json: any;
6
+ created_at: string;
7
+ updated_at: string;
8
+ }
9
+ interface OwnerCountData {
10
+ owner_email: string;
11
+ proposal_count: number;
12
+ }
13
+ interface MonthlyCountData {
14
+ creation_month: number;
15
+ proposal_count: number;
16
+ }
2
17
  interface MessageProps {
3
18
  message: string;
4
19
  handle: string;
5
20
  isThinking?: boolean;
6
21
  id?: string;
22
+ data?: ProposalData[] | OwnerCountData[] | MonthlyCountData[] | Record<string, any>[];
7
23
  }
8
24
  declare const Message: FC<MessageProps>;
9
25
  export default Message;
@@ -0,0 +1,2 @@
1
+ import { Message } from './Chat';
2
+ export declare const getUniqueMessages: (messages: Message[]) => Message[];