@1interface/chat-core 0.3.0 → 0.4.0
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 +8 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -361,6 +361,7 @@ text: string;
|
|
|
361
361
|
queuedAt: string;
|
|
362
362
|
transcriptionIds?: string[];
|
|
363
363
|
}[];
|
|
364
|
+
pendingTranscriptionIds: string[];
|
|
364
365
|
};
|
|
365
366
|
conversations: {
|
|
366
367
|
activeConversationId: string | null;
|
|
@@ -435,6 +436,7 @@ text: string;
|
|
|
435
436
|
queuedAt: string;
|
|
436
437
|
transcriptionIds?: string[];
|
|
437
438
|
}[];
|
|
439
|
+
pendingTranscriptionIds: string[];
|
|
438
440
|
};
|
|
439
441
|
conversations: {
|
|
440
442
|
activeConversationId: string | null;
|
|
@@ -544,6 +546,7 @@ text: string;
|
|
|
544
546
|
queuedAt: string;
|
|
545
547
|
transcriptionIds?: string[];
|
|
546
548
|
}[];
|
|
549
|
+
pendingTranscriptionIds: string[];
|
|
547
550
|
}>;
|
|
548
551
|
|
|
549
552
|
export declare interface ChatSettings {
|
|
@@ -568,6 +571,7 @@ export declare interface ChatState {
|
|
|
568
571
|
statusText: string | null;
|
|
569
572
|
responseStartTime: number | null;
|
|
570
573
|
messageQueue: QueuedMessage[];
|
|
574
|
+
pendingTranscriptionIds: string[];
|
|
571
575
|
}
|
|
572
576
|
|
|
573
577
|
export declare function checkOrganizationExistsApi(): Promise<OrgCheckResult>;
|
|
@@ -971,6 +975,7 @@ text: string;
|
|
|
971
975
|
queuedAt: string;
|
|
972
976
|
transcriptionIds?: string[];
|
|
973
977
|
}[];
|
|
978
|
+
pendingTranscriptionIds: string[];
|
|
974
979
|
};
|
|
975
980
|
conversations: {
|
|
976
981
|
activeConversationId: string | null;
|
|
@@ -1046,6 +1051,7 @@ text: string;
|
|
|
1046
1051
|
queuedAt: string;
|
|
1047
1052
|
transcriptionIds?: string[];
|
|
1048
1053
|
}[];
|
|
1054
|
+
pendingTranscriptionIds: string[];
|
|
1049
1055
|
};
|
|
1050
1056
|
conversations: {
|
|
1051
1057
|
activeConversationId: string | null;
|
|
@@ -3826,8 +3832,8 @@ authorize_url: string;
|
|
|
3826
3832
|
export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, ensureConversation, autoSendVoice, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
|
|
3827
3833
|
|
|
3828
3834
|
declare interface UseSTTRecordingParams {
|
|
3829
|
-
onTranscriptionComplete?: (text: string
|
|
3830
|
-
onTranscriptionPopulate?: (text: string
|
|
3835
|
+
onTranscriptionComplete?: (text: string) => Promise<void>;
|
|
3836
|
+
onTranscriptionPopulate?: (text: string) => void;
|
|
3831
3837
|
ensureConversation?: () => Promise<string | null>;
|
|
3832
3838
|
autoSendVoice?: boolean;
|
|
3833
3839
|
}
|