@magemetrics/ai 0.4.2 → 0.5.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.
@@ -77,6 +77,7 @@ declare interface ConversationContentProps {
77
77
  style?: React.CSSProperties;
78
78
  topBar?: React.ReactNode;
79
79
  disableCanvas?: boolean;
80
+ enableSpeechToText?: boolean;
80
81
  }
81
82
 
82
83
  export { CreateFlowParam }
@@ -355,6 +356,7 @@ export declare type MageMetricsContextProviderProps = {
355
356
  apiUrl?: never;
356
357
  externalJwt?: never;
357
358
  additionalHeaders?: never;
359
+ applicationName?: never;
358
360
  } | ({
359
361
  /** Configuration to create a new MageMetricsClient. */
360
362
  client?: never;
@@ -383,11 +385,11 @@ declare interface ManagedModalProps extends ModalProps {
383
385
  persist?: PersistenceOptions;
384
386
  /** Custom component overrides for extending functionality */
385
387
  components?: Components;
388
+ /** Application name to associate with flows created through this modal */
389
+ applicationName?: string;
386
390
  }
387
391
 
388
392
  declare interface ModalProps {
389
- /** CSS display property for the wrapper element */
390
- display?: string;
391
393
  /** Control modal visibility and close behavior externally */
392
394
  modal?: ControlledModalProps;
393
395
  /** Configuration options for the start modal (chat launcher, recommendations, etc.) */
@@ -476,6 +478,8 @@ declare type StartOptions = DisplayControlProps & {
476
478
  recommendationsLabel?: string;
477
479
  /** Whether the chat launcher input should auto-focus on mount */
478
480
  autoFocus?: boolean;
481
+ /** Whether speech-to-text controls should be shown */
482
+ enableSpeechToText?: boolean;
479
483
  };
480
484
 
481
485
  declare type TableFilters = Record<string, string | number>;
@@ -983,12 +987,20 @@ export declare const usePaginatedDataReport: (reportId: FrontendReport["id"], op
983
987
  };
984
988
 
985
989
  export declare const useRecentFlows: (limit?: number) => UseQueryResult< {
990
+ title: string | null;
986
991
  id: string;
987
992
  request: string;
988
993
  created_at: string;
989
994
  user_id: string | null;
995
+ application_id?: number | null | undefined;
990
996
  }[], Error>;
991
997
 
998
+ export declare const useSpeechToText: () => {
999
+ status: "idle" | "starting" | "recording";
1000
+ startRecording: (onTranscript: (text: string) => void) => Promise<void>;
1001
+ stopRecording: () => Promise<void>;
1002
+ };
1003
+
992
1004
  declare type V1FrontendVisualization = z.output<typeof V1FrontendVisualizationSchema>;
993
1005
 
994
1006
  declare const V1FrontendVisualizationSchema: z.ZodObject<{