@1interface/chat-core 0.12.0 → 0.13.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 +10 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1339,10 +1339,17 @@ export declare interface StreamMessageParams {
|
|
|
1339
1339
|
body?: Record<string, unknown>;
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
|
+
export declare const STT_GESTURES: {
|
|
1343
|
+
readonly HOLD: "hold";
|
|
1344
|
+
readonly TAP: "tap";
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1342
1347
|
export declare interface SttConfig {
|
|
1343
1348
|
enabled: boolean;
|
|
1344
1349
|
}
|
|
1345
1350
|
|
|
1351
|
+
export declare type STTGesture = (typeof STT_GESTURES)[keyof typeof STT_GESTURES];
|
|
1352
|
+
|
|
1346
1353
|
export declare const THINKING_MESSAGES: {
|
|
1347
1354
|
readonly INITIAL: readonly ["Working on it", "Just a moment", "Reviewing your request", "Looking into that", "One moment, please", "Checking"];
|
|
1348
1355
|
readonly LATER: readonly ["Almost ready", "Gathering the details", "Finishing up", "Getting things in order", "Preparing your answer", "Wrapping this up"];
|
|
@@ -4244,13 +4251,14 @@ authorize_url: string;
|
|
|
4244
4251
|
reset: () => void;
|
|
4245
4252
|
}];
|
|
4246
4253
|
|
|
4247
|
-
export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, ensureConversation, autoSendVoice, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
|
|
4254
|
+
export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, ensureConversation, autoSendVoice, gesture, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
|
|
4248
4255
|
|
|
4249
4256
|
declare interface UseSTTRecordingParams {
|
|
4250
4257
|
onTranscriptionComplete?: (text: string) => Promise<void>;
|
|
4251
4258
|
onTranscriptionPopulate?: (text: string) => void;
|
|
4252
4259
|
ensureConversation?: () => Promise<string | null>;
|
|
4253
4260
|
autoSendVoice?: boolean;
|
|
4261
|
+
gesture?: STTGesture;
|
|
4254
4262
|
}
|
|
4255
4263
|
|
|
4256
4264
|
declare interface UseSTTRecordingReturn {
|
|
@@ -4259,6 +4267,7 @@ declare interface UseSTTRecordingReturn {
|
|
|
4259
4267
|
audioLevel: number;
|
|
4260
4268
|
startRecording: () => Promise<void>;
|
|
4261
4269
|
stopRecording: () => Promise<void>;
|
|
4270
|
+
cancelRecording: (() => void) | null;
|
|
4262
4271
|
}
|
|
4263
4272
|
|
|
4264
4273
|
export declare const useThinkingMessage: (params?: UseThinkingMessageParams) => UseThinkingMessageResult;
|