@magemetrics/ai 0.5.0 → 0.5.2

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.
@@ -20,6 +20,12 @@ import { UseMutationOptions } from '@tanstack/react-query';
20
20
  import { UseQueryResult } from '@tanstack/react-query';
21
21
  import { z } from 'zod';
22
22
 
23
+ declare type AssemblyAIMicrophoneController = {
24
+ status: "idle" | "starting" | "recording";
25
+ startRecording: (onTranscript: (text: string) => void) => Promise<void>;
26
+ stopRecording: () => Promise<void>;
27
+ };
28
+
23
29
  export { AuthState }
24
30
 
25
31
  export declare type CellContentProps = {
@@ -995,11 +1001,7 @@ user_id: string | null;
995
1001
  application_id?: number | null | undefined;
996
1002
  }[], Error>;
997
1003
 
998
- export declare const useSpeechToText: () => {
999
- status: "idle" | "starting" | "recording";
1000
- startRecording: (onTranscript: (text: string) => void) => Promise<void>;
1001
- stopRecording: () => Promise<void>;
1002
- };
1004
+ export declare const useSpeechToText: () => AssemblyAIMicrophoneController;
1003
1005
 
1004
1006
  declare type V1FrontendVisualization = z.output<typeof V1FrontendVisualizationSchema>;
1005
1007