@1interface/chat-core 0.3.0 → 0.4.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
@@ -52,6 +52,7 @@ import { Storage as Storage_2 } from '@1interface/shared-core';
52
52
  import { StoreEnhancer } from '@reduxjs/toolkit';
53
53
  import { SttImplementation } from '@1interface/shared-core';
54
54
  import { SubscriptionOptions } from '@reduxjs/toolkit/query';
55
+ import { TextDirection } from '@1interface/shared-core';
55
56
  import { ThunkDispatch } from '@reduxjs/toolkit';
56
57
  import { TokenRefreshResult } from '@1interface/shared-core';
57
58
  import { TSHelpersId } from '@reduxjs/toolkit/query';
@@ -77,6 +78,7 @@ export declare interface AdvanceChatMessageRendererProps {
77
78
  sendMessage?: (msg: string) => void;
78
79
  isAgentWorking?: boolean;
79
80
  isWidgetDisabled?: boolean;
81
+ direction?: TextDirection;
80
82
  }
81
83
 
82
84
  export declare class AguiAdapter implements ProtocolAdapter {
@@ -361,6 +363,7 @@ text: string;
361
363
  queuedAt: string;
362
364
  transcriptionIds?: string[];
363
365
  }[];
366
+ pendingTranscriptionIds: string[];
364
367
  };
365
368
  conversations: {
366
369
  activeConversationId: string | null;
@@ -435,6 +438,7 @@ text: string;
435
438
  queuedAt: string;
436
439
  transcriptionIds?: string[];
437
440
  }[];
441
+ pendingTranscriptionIds: string[];
438
442
  };
439
443
  conversations: {
440
444
  activeConversationId: string | null;
@@ -509,6 +513,7 @@ export declare interface ChatIndicator {
509
513
  export declare interface ChatInnerMsgProps {
510
514
  msg: Message;
511
515
  isEmptyMessage: (v: any) => boolean;
516
+ dir?: TextDirection;
512
517
  }
513
518
 
514
519
  export declare type ChatInputMode = (typeof CHAT_INPUT_MODES)[keyof typeof CHAT_INPUT_MODES];
@@ -544,6 +549,7 @@ text: string;
544
549
  queuedAt: string;
545
550
  transcriptionIds?: string[];
546
551
  }[];
552
+ pendingTranscriptionIds: string[];
547
553
  }>;
548
554
 
549
555
  export declare interface ChatSettings {
@@ -568,6 +574,7 @@ export declare interface ChatState {
568
574
  statusText: string | null;
569
575
  responseStartTime: number | null;
570
576
  messageQueue: QueuedMessage[];
577
+ pendingTranscriptionIds: string[];
571
578
  }
572
579
 
573
580
  export declare function checkOrganizationExistsApi(): Promise<OrgCheckResult>;
@@ -971,6 +978,7 @@ text: string;
971
978
  queuedAt: string;
972
979
  transcriptionIds?: string[];
973
980
  }[];
981
+ pendingTranscriptionIds: string[];
974
982
  };
975
983
  conversations: {
976
984
  activeConversationId: string | null;
@@ -1046,6 +1054,7 @@ text: string;
1046
1054
  queuedAt: string;
1047
1055
  transcriptionIds?: string[];
1048
1056
  }[];
1057
+ pendingTranscriptionIds: string[];
1049
1058
  };
1050
1059
  conversations: {
1051
1060
  activeConversationId: string | null;
@@ -3826,8 +3835,8 @@ authorize_url: string;
3826
3835
  export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, ensureConversation, autoSendVoice, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
3827
3836
 
3828
3837
  declare interface UseSTTRecordingParams {
3829
- onTranscriptionComplete?: (text: string, transcriptionIds: string[]) => Promise<void>;
3830
- onTranscriptionPopulate?: (text: string, transcriptionId: string) => void;
3838
+ onTranscriptionComplete?: (text: string) => Promise<void>;
3839
+ onTranscriptionPopulate?: (text: string) => void;
3831
3840
  ensureConversation?: () => Promise<string | null>;
3832
3841
  autoSendVoice?: boolean;
3833
3842
  }