@1interface/chat-core 0.14.0 → 0.15.1

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.
package/dist/index.d.ts CHANGED
@@ -81,7 +81,7 @@ export declare interface AdapterConfig {
81
81
 
82
82
  export declare interface AdvanceChatMessageRendererProps {
83
83
  msg: Message;
84
- sendMessage?: (msg: string) => void;
84
+ sendMessage?: (inputMsg?: string, transcriptionIds?: string[], options?: SendMessageOptions) => void | Promise<void>;
85
85
  isAgentWorking?: boolean;
86
86
  isWidgetDisabled?: boolean;
87
87
  direction?: TextDirection;
@@ -446,6 +446,7 @@ id: string;
446
446
  text: string;
447
447
  queuedAt: string;
448
448
  transcriptionIds?: string[];
449
+ messageType?: string[];
449
450
  }[];
450
451
  pendingTranscriptionIds: string[];
451
452
  };
@@ -542,6 +543,7 @@ id: string;
542
543
  text: string;
543
544
  queuedAt: string;
544
545
  transcriptionIds?: string[];
546
+ messageType?: string[];
545
547
  }[];
546
548
  pendingTranscriptionIds: string[];
547
549
  };
@@ -674,6 +676,7 @@ id: string;
674
676
  text: string;
675
677
  queuedAt: string;
676
678
  transcriptionIds?: string[];
679
+ messageType?: string[];
677
680
  }[];
678
681
  pendingTranscriptionIds: string[];
679
682
  }>;
@@ -1036,6 +1039,7 @@ export declare interface QueuedMessage {
1036
1039
  text: string;
1037
1040
  queuedAt: string;
1038
1041
  transcriptionIds?: string[];
1042
+ messageType?: string[];
1039
1043
  }
1040
1044
 
1041
1045
  export declare function refreshTokenApi(payload: RefreshRequest): Promise<RefreshApiResult>;
@@ -1058,6 +1062,10 @@ declare type SendMessageFn_2 = (text?: string) => Promise<void>;
1058
1062
 
1059
1063
  declare type SendMessageFn_3 = (text?: string) => Promise<void>;
1060
1064
 
1065
+ export declare interface SendMessageOptions {
1066
+ messageType?: string[];
1067
+ }
1068
+
1061
1069
  export declare const serializableCheck: {
1062
1070
  ignoredPaths: string[];
1063
1071
  ignoredActions: string[];
@@ -1132,6 +1140,7 @@ id: string;
1132
1140
  text: string;
1133
1141
  queuedAt: string;
1134
1142
  transcriptionIds?: string[];
1143
+ messageType?: string[];
1135
1144
  }[];
1136
1145
  pendingTranscriptionIds: string[];
1137
1146
  };
@@ -1229,6 +1238,7 @@ id: string;
1229
1238
  text: string;
1230
1239
  queuedAt: string;
1231
1240
  transcriptionIds?: string[];
1241
+ messageType?: string[];
1232
1242
  }[];
1233
1243
  pendingTranscriptionIds: string[];
1234
1244
  };
@@ -1422,7 +1432,7 @@ declare interface UseChatConnectionParams {
1422
1432
  }
1423
1433
 
1424
1434
  declare interface UseChatConnectionReturn {
1425
- sendMessage: (inputMsg?: string, transcriptionIds?: string[]) => Promise<void>;
1435
+ sendMessage: (inputMsg?: string, transcriptionIds?: string[], options?: SendMessageOptions) => Promise<void>;
1426
1436
  startInitialStream: (conversationId: string, location?: UserLocation | null) => Promise<void>;
1427
1437
  setThinkingState: (thinking: boolean) => void;
1428
1438
  abortStream: () => void;
@@ -4049,6 +4059,8 @@ declare interface UsePaymentResultDedupReturn {
4049
4059
 
4050
4060
  export declare const useProtocol: () => ProtocolContextType;
4051
4061
 
4062
+ export declare const USER_COLLAPSED_MESSAGE_TYPE = "user-collapsed";
4063
+
4052
4064
  export declare function useRefreshToken(): {
4053
4065
  refresh: () => Promise<{
4054
4066
  success: true;