cencori 1.4.0 → 1.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.
@@ -1,6 +1,132 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ /** Mirrors `ChatMemoryOptions` from the core SDK. */
5
+ interface ChatMemoryProp {
6
+ userId?: string;
7
+ sessionId?: string;
8
+ scope?: 'session' | 'user';
9
+ retrieve?: boolean;
10
+ write?: boolean;
11
+ topK?: number;
12
+ threshold?: number;
13
+ namespace?: string;
14
+ /** Temporal recall: memory as it was valid at this instant (ISO 8601). */
15
+ asOf?: string;
16
+ /** 'inject' (default) full contents, or 'index' compact table-of-contents. */
17
+ mode?: 'inject' | 'index';
18
+ extract?: {
19
+ model?: string;
20
+ prompt?: string;
21
+ minImportance?: number;
22
+ };
23
+ }
24
+ interface ChatMessage {
25
+ role: 'system' | 'user' | 'assistant';
26
+ content: string;
27
+ }
28
+ interface ChatProps {
29
+ /** Model to route to (e.g. "gpt-4o", "claude-sonnet-4-5"). */
30
+ model: string;
31
+ /** Cencori API key. Sent as `CENCORI_API_KEY`. Use a publishable/test key on the client. */
32
+ apiKey?: string;
33
+ /**
34
+ * Turn on gateway memory. `{ userId }` is enough — retrieval + writeback
35
+ * default to on. Omit to run a stateless chat.
36
+ */
37
+ memory?: ChatMemoryProp;
38
+ /** System prompt prepended to every request. */
39
+ system?: string;
40
+ /** Seed the transcript (not sent as system — shown as prior turns). */
41
+ initialMessages?: ChatMessage[];
42
+ /** Sampling temperature. */
43
+ temperature?: number;
44
+ /** Max tokens for each reply. */
45
+ maxTokens?: number;
46
+ /** Stream tokens as they arrive. Default: true. */
47
+ stream?: boolean;
48
+ /**
49
+ * Base URL of the Cencori gateway. Defaults to `https://cencori.com`.
50
+ * Override to point at a self-hosted gateway or a same-origin proxy.
51
+ */
52
+ baseUrl?: string;
53
+ /** Placeholder for the input. */
54
+ placeholder?: string;
55
+ /** Called after each reply with how many memories the gateway injected. */
56
+ onMemoryRetrieved?: (count: number) => void;
57
+ /** Called on any request error (before the inline banner renders it). */
58
+ onError?: (error: Error) => void;
59
+ /** Custom empty-state node shown before the first message. */
60
+ emptyState?: ReactNode;
61
+ /** Extra classes on the root element. */
62
+ className?: string;
63
+ /** Hide the "recalled N memories" indicator. Default: shown when memory is on. */
64
+ hideMemoryIndicator?: boolean;
65
+ }
66
+ declare function Chat({ model, apiKey, memory, system, initialMessages, temperature, maxTokens, stream, baseUrl, placeholder, onMemoryRetrieved, onError, emptyState, className, hideMemoryIndicator, }: ChatProps): react_jsx_runtime.JSX.Element;
67
+
68
+ /**
69
+ * useMemory
70
+ *
71
+ * Client hook over the scoped memory API (`/v1/memory/*`) for building custom
72
+ * "what we remember about you" UI — GDPR panels, preference editors, profile
73
+ * pages. Mirrors the roadmap sketch:
74
+ *
75
+ * const { memories, write, forget, search, exportAll } = useMemory({ userId });
76
+ *
77
+ * Reads on mount and after every mutation. Zero external state.
78
+ *
79
+ * Deps: react.
80
+ */
81
+ type MemoryScope = 'session' | 'user';
82
+ interface UseMemoryOptions {
83
+ /** End-user id — scope defaults to `user`. */
84
+ userId?: string;
85
+ /** Session id — pass with `scope: 'session'`. */
86
+ sessionId?: string;
87
+ /** Which scope to read/write. Default: `user`. */
88
+ scope?: MemoryScope;
89
+ /** Optional sub-scope partition (e.g. per-project). */
90
+ namespace?: string;
91
+ /** Cencori API key. Sent as `CENCORI_API_KEY`. */
92
+ apiKey?: string;
93
+ /** Gateway base URL. Default: `https://cencori.com`. */
94
+ baseUrl?: string;
95
+ /** How many memories to list. Default: 50. */
96
+ limit?: number;
97
+ /** Skip the initial list on mount. Default: false. */
98
+ manual?: boolean;
99
+ }
100
+ interface UserMemory {
101
+ id: string;
102
+ content: string;
103
+ namespace?: string | null;
104
+ importance: number;
105
+ createdAt: string | null;
106
+ }
107
+ interface UseMemoryResult {
108
+ /** The user's memories, most recent first. */
109
+ memories: UserMemory[];
110
+ /** True during the initial load or a refresh. */
111
+ loading: boolean;
112
+ /** Last error message, if any. */
113
+ error: string | null;
114
+ /** Re-fetch the list. */
115
+ refresh: () => Promise<void>;
116
+ /** Write a new memory for this user. */
117
+ write: (content: string, opts?: {
118
+ importance?: number;
119
+ metadata?: Record<string, unknown>;
120
+ }) => Promise<void>;
121
+ /** Semantic search over this user's memories (does not mutate the list). */
122
+ search: (query: string, topK?: number) => Promise<UserMemory[]>;
123
+ /** Hard-delete a memory by id. */
124
+ forget: (id: string) => Promise<void>;
125
+ /** Download every memory as a JSON file (client-side GDPR export). */
126
+ exportAll: () => Promise<void>;
127
+ }
128
+ declare function useMemory(options: UseMemoryOptions): UseMemoryResult;
129
+
4
130
  type VisionProvider = 'openai' | 'anthropic' | 'google';
5
131
  interface VisionFormatBannerProps {
6
132
  /** Restrict displayed limits to a specific provider. Omit to show universal (all-provider) limits. */
@@ -49,4 +175,131 @@ interface VisionUploaderProps {
49
175
  }
50
176
  declare function VisionUploader({ endpoint, apiKey, task, provider, model, prompt, onResult, onError, hideBanner, autoCompress, headers, className, }: VisionUploaderProps): react_jsx_runtime.JSX.Element;
51
177
 
52
- export { VisionFormatBanner, type VisionFormatBannerProps, type VisionProvider, type VisionTask, VisionUploader, type VisionUploaderProps };
178
+ /**
179
+ * VoiceRecorder
180
+ *
181
+ * Drop-in microphone recorder + transcriber for the Cencori Voice API. Records
182
+ * from the mic, uploads to the transcriptions endpoint, and returns the text.
183
+ * Zero external state — safe to embed in a customer's own product.
184
+ *
185
+ * Usage:
186
+ * <VoiceRecorder
187
+ * endpoint="https://api.cencori.com/api/ai/audio/transcriptions"
188
+ * apiKey={process.env.NEXT_PUBLIC_CENCORI_KEY}
189
+ * model="nova-3"
190
+ * onTranscript={(text) => console.log(text)}
191
+ * />
192
+ *
193
+ * Deps: react, lucide-react, tailwindcss.
194
+ */
195
+ interface VoiceTranscript {
196
+ text: string;
197
+ language?: string;
198
+ duration?: number;
199
+ provider?: string;
200
+ model?: string;
201
+ segments?: Array<{
202
+ start: number;
203
+ end: number;
204
+ text: string;
205
+ speaker?: string;
206
+ }>;
207
+ }
208
+ interface VoiceRecorderProps {
209
+ /** Transcriptions endpoint. Defaults to same-origin `/api/ai/audio/transcriptions`. */
210
+ endpoint?: string;
211
+ /** Cencori API key. Sent as `Authorization: Bearer`. */
212
+ apiKey?: string;
213
+ /** Transcription model — provider is inferred from it. Default: `whisper-1`. */
214
+ model?: string;
215
+ /** Language hint (e.g. `en`, `yo`, `ha`, `ig`). */
216
+ language?: string;
217
+ /** Request speaker labels (use a diarization-capable model). */
218
+ diarize?: boolean;
219
+ /** Called with the final transcript text. */
220
+ onTranscript?: (text: string, full: VoiceTranscript) => void;
221
+ /** Called on error (before the built-in banner renders it). */
222
+ onError?: (error: {
223
+ code: string;
224
+ message: string;
225
+ }) => void;
226
+ /** Additional request headers to forward (in addition to Authorization). */
227
+ headers?: Record<string, string>;
228
+ /** Extra classes on the root element. */
229
+ className?: string;
230
+ }
231
+ declare function VoiceRecorder({ endpoint, apiKey, model, language, diarize, onTranscript, onError, headers, className, }: VoiceRecorderProps): react_jsx_runtime.JSX.Element;
232
+
233
+ /**
234
+ * SpeakButton
235
+ *
236
+ * Drop-in text-to-speech button for the Cencori Voice API. Synthesizes the
237
+ * given text and plays it back, with loading/playing/error states. Zero
238
+ * external state — safe to embed in a customer's own product.
239
+ *
240
+ * Usage:
241
+ * <SpeakButton
242
+ * endpoint="https://api.cencori.com/api/ai/audio/speech"
243
+ * apiKey={process.env.NEXT_PUBLIC_CENCORI_KEY}
244
+ * text="Hello from Cencori."
245
+ * model="aura-asteria-en"
246
+ * />
247
+ *
248
+ * Deps: react, lucide-react.
249
+ */
250
+ interface SpeakButtonProps {
251
+ /** Text to synthesize. */
252
+ text: string;
253
+ /** Speech endpoint. Defaults to same-origin `/api/ai/audio/speech`. */
254
+ endpoint?: string;
255
+ /** Cencori API key. Sent as `Authorization: Bearer`. */
256
+ apiKey?: string;
257
+ /** TTS model — provider is inferred from it. Default: `tts-1`. */
258
+ model?: string;
259
+ /** Voice id/name. Provider-specific. */
260
+ voice?: string;
261
+ /** Language code (Spitch: `en`, `yo`, `ha`, `ig`, `am`). */
262
+ language?: string;
263
+ /** Button label. Default: "Listen". Pass null to render icon-only. */
264
+ label?: string | null;
265
+ /** Additional request headers to forward (in addition to Authorization). */
266
+ headers?: Record<string, string>;
267
+ onError?: (error: {
268
+ code: string;
269
+ message: string;
270
+ }) => void;
271
+ className?: string;
272
+ }
273
+ declare function SpeakButton({ text, endpoint, apiKey, model, voice, language, label, headers, onError, className, }: SpeakButtonProps): react_jsx_runtime.JSX.Element;
274
+
275
+ /**
276
+ * useVoiceRecorder
277
+ *
278
+ * Minimal microphone-recording hook built on the MediaRecorder API. Handles
279
+ * permission, start/stop, elapsed time, and returns the recorded audio as a
280
+ * Blob. No external state — safe to use inside a customer's own components.
281
+ *
282
+ * Usage:
283
+ * const rec = useVoiceRecorder();
284
+ * rec.start(); // prompts for mic permission
285
+ * const blob = await rec.stop(); // resolves with the recorded audio
286
+ */
287
+ type RecorderState = 'idle' | 'requesting' | 'recording' | 'stopped' | 'error';
288
+ interface UseVoiceRecorderResult {
289
+ state: RecorderState;
290
+ /** Seconds elapsed in the current/last recording. */
291
+ seconds: number;
292
+ /** MediaRecorder mime type in use once recording starts. */
293
+ mimeType: string | null;
294
+ error: string | null;
295
+ /** The most recent recording, available after stop(). */
296
+ blob: Blob | null;
297
+ start: () => Promise<void>;
298
+ /** Stop and resolve with the recorded Blob (also set on `blob`). */
299
+ stop: () => Promise<Blob | null>;
300
+ /** Discard the current recording and reset to idle. */
301
+ reset: () => void;
302
+ }
303
+ declare function useVoiceRecorder(): UseVoiceRecorderResult;
304
+
305
+ export { Chat, type ChatMemoryProp, type ChatMessage, type ChatProps, type MemoryScope, type RecorderState, SpeakButton, type SpeakButtonProps, type UseMemoryOptions, type UseMemoryResult, type UseVoiceRecorderResult, type UserMemory, VisionFormatBanner, type VisionFormatBannerProps, type VisionProvider, type VisionTask, VisionUploader, type VisionUploaderProps, VoiceRecorder, type VoiceRecorderProps, type VoiceTranscript, useMemory, useVoiceRecorder };
@@ -1,6 +1,132 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ /** Mirrors `ChatMemoryOptions` from the core SDK. */
5
+ interface ChatMemoryProp {
6
+ userId?: string;
7
+ sessionId?: string;
8
+ scope?: 'session' | 'user';
9
+ retrieve?: boolean;
10
+ write?: boolean;
11
+ topK?: number;
12
+ threshold?: number;
13
+ namespace?: string;
14
+ /** Temporal recall: memory as it was valid at this instant (ISO 8601). */
15
+ asOf?: string;
16
+ /** 'inject' (default) full contents, or 'index' compact table-of-contents. */
17
+ mode?: 'inject' | 'index';
18
+ extract?: {
19
+ model?: string;
20
+ prompt?: string;
21
+ minImportance?: number;
22
+ };
23
+ }
24
+ interface ChatMessage {
25
+ role: 'system' | 'user' | 'assistant';
26
+ content: string;
27
+ }
28
+ interface ChatProps {
29
+ /** Model to route to (e.g. "gpt-4o", "claude-sonnet-4-5"). */
30
+ model: string;
31
+ /** Cencori API key. Sent as `CENCORI_API_KEY`. Use a publishable/test key on the client. */
32
+ apiKey?: string;
33
+ /**
34
+ * Turn on gateway memory. `{ userId }` is enough — retrieval + writeback
35
+ * default to on. Omit to run a stateless chat.
36
+ */
37
+ memory?: ChatMemoryProp;
38
+ /** System prompt prepended to every request. */
39
+ system?: string;
40
+ /** Seed the transcript (not sent as system — shown as prior turns). */
41
+ initialMessages?: ChatMessage[];
42
+ /** Sampling temperature. */
43
+ temperature?: number;
44
+ /** Max tokens for each reply. */
45
+ maxTokens?: number;
46
+ /** Stream tokens as they arrive. Default: true. */
47
+ stream?: boolean;
48
+ /**
49
+ * Base URL of the Cencori gateway. Defaults to `https://cencori.com`.
50
+ * Override to point at a self-hosted gateway or a same-origin proxy.
51
+ */
52
+ baseUrl?: string;
53
+ /** Placeholder for the input. */
54
+ placeholder?: string;
55
+ /** Called after each reply with how many memories the gateway injected. */
56
+ onMemoryRetrieved?: (count: number) => void;
57
+ /** Called on any request error (before the inline banner renders it). */
58
+ onError?: (error: Error) => void;
59
+ /** Custom empty-state node shown before the first message. */
60
+ emptyState?: ReactNode;
61
+ /** Extra classes on the root element. */
62
+ className?: string;
63
+ /** Hide the "recalled N memories" indicator. Default: shown when memory is on. */
64
+ hideMemoryIndicator?: boolean;
65
+ }
66
+ declare function Chat({ model, apiKey, memory, system, initialMessages, temperature, maxTokens, stream, baseUrl, placeholder, onMemoryRetrieved, onError, emptyState, className, hideMemoryIndicator, }: ChatProps): react_jsx_runtime.JSX.Element;
67
+
68
+ /**
69
+ * useMemory
70
+ *
71
+ * Client hook over the scoped memory API (`/v1/memory/*`) for building custom
72
+ * "what we remember about you" UI — GDPR panels, preference editors, profile
73
+ * pages. Mirrors the roadmap sketch:
74
+ *
75
+ * const { memories, write, forget, search, exportAll } = useMemory({ userId });
76
+ *
77
+ * Reads on mount and after every mutation. Zero external state.
78
+ *
79
+ * Deps: react.
80
+ */
81
+ type MemoryScope = 'session' | 'user';
82
+ interface UseMemoryOptions {
83
+ /** End-user id — scope defaults to `user`. */
84
+ userId?: string;
85
+ /** Session id — pass with `scope: 'session'`. */
86
+ sessionId?: string;
87
+ /** Which scope to read/write. Default: `user`. */
88
+ scope?: MemoryScope;
89
+ /** Optional sub-scope partition (e.g. per-project). */
90
+ namespace?: string;
91
+ /** Cencori API key. Sent as `CENCORI_API_KEY`. */
92
+ apiKey?: string;
93
+ /** Gateway base URL. Default: `https://cencori.com`. */
94
+ baseUrl?: string;
95
+ /** How many memories to list. Default: 50. */
96
+ limit?: number;
97
+ /** Skip the initial list on mount. Default: false. */
98
+ manual?: boolean;
99
+ }
100
+ interface UserMemory {
101
+ id: string;
102
+ content: string;
103
+ namespace?: string | null;
104
+ importance: number;
105
+ createdAt: string | null;
106
+ }
107
+ interface UseMemoryResult {
108
+ /** The user's memories, most recent first. */
109
+ memories: UserMemory[];
110
+ /** True during the initial load or a refresh. */
111
+ loading: boolean;
112
+ /** Last error message, if any. */
113
+ error: string | null;
114
+ /** Re-fetch the list. */
115
+ refresh: () => Promise<void>;
116
+ /** Write a new memory for this user. */
117
+ write: (content: string, opts?: {
118
+ importance?: number;
119
+ metadata?: Record<string, unknown>;
120
+ }) => Promise<void>;
121
+ /** Semantic search over this user's memories (does not mutate the list). */
122
+ search: (query: string, topK?: number) => Promise<UserMemory[]>;
123
+ /** Hard-delete a memory by id. */
124
+ forget: (id: string) => Promise<void>;
125
+ /** Download every memory as a JSON file (client-side GDPR export). */
126
+ exportAll: () => Promise<void>;
127
+ }
128
+ declare function useMemory(options: UseMemoryOptions): UseMemoryResult;
129
+
4
130
  type VisionProvider = 'openai' | 'anthropic' | 'google';
5
131
  interface VisionFormatBannerProps {
6
132
  /** Restrict displayed limits to a specific provider. Omit to show universal (all-provider) limits. */
@@ -49,4 +175,131 @@ interface VisionUploaderProps {
49
175
  }
50
176
  declare function VisionUploader({ endpoint, apiKey, task, provider, model, prompt, onResult, onError, hideBanner, autoCompress, headers, className, }: VisionUploaderProps): react_jsx_runtime.JSX.Element;
51
177
 
52
- export { VisionFormatBanner, type VisionFormatBannerProps, type VisionProvider, type VisionTask, VisionUploader, type VisionUploaderProps };
178
+ /**
179
+ * VoiceRecorder
180
+ *
181
+ * Drop-in microphone recorder + transcriber for the Cencori Voice API. Records
182
+ * from the mic, uploads to the transcriptions endpoint, and returns the text.
183
+ * Zero external state — safe to embed in a customer's own product.
184
+ *
185
+ * Usage:
186
+ * <VoiceRecorder
187
+ * endpoint="https://api.cencori.com/api/ai/audio/transcriptions"
188
+ * apiKey={process.env.NEXT_PUBLIC_CENCORI_KEY}
189
+ * model="nova-3"
190
+ * onTranscript={(text) => console.log(text)}
191
+ * />
192
+ *
193
+ * Deps: react, lucide-react, tailwindcss.
194
+ */
195
+ interface VoiceTranscript {
196
+ text: string;
197
+ language?: string;
198
+ duration?: number;
199
+ provider?: string;
200
+ model?: string;
201
+ segments?: Array<{
202
+ start: number;
203
+ end: number;
204
+ text: string;
205
+ speaker?: string;
206
+ }>;
207
+ }
208
+ interface VoiceRecorderProps {
209
+ /** Transcriptions endpoint. Defaults to same-origin `/api/ai/audio/transcriptions`. */
210
+ endpoint?: string;
211
+ /** Cencori API key. Sent as `Authorization: Bearer`. */
212
+ apiKey?: string;
213
+ /** Transcription model — provider is inferred from it. Default: `whisper-1`. */
214
+ model?: string;
215
+ /** Language hint (e.g. `en`, `yo`, `ha`, `ig`). */
216
+ language?: string;
217
+ /** Request speaker labels (use a diarization-capable model). */
218
+ diarize?: boolean;
219
+ /** Called with the final transcript text. */
220
+ onTranscript?: (text: string, full: VoiceTranscript) => void;
221
+ /** Called on error (before the built-in banner renders it). */
222
+ onError?: (error: {
223
+ code: string;
224
+ message: string;
225
+ }) => void;
226
+ /** Additional request headers to forward (in addition to Authorization). */
227
+ headers?: Record<string, string>;
228
+ /** Extra classes on the root element. */
229
+ className?: string;
230
+ }
231
+ declare function VoiceRecorder({ endpoint, apiKey, model, language, diarize, onTranscript, onError, headers, className, }: VoiceRecorderProps): react_jsx_runtime.JSX.Element;
232
+
233
+ /**
234
+ * SpeakButton
235
+ *
236
+ * Drop-in text-to-speech button for the Cencori Voice API. Synthesizes the
237
+ * given text and plays it back, with loading/playing/error states. Zero
238
+ * external state — safe to embed in a customer's own product.
239
+ *
240
+ * Usage:
241
+ * <SpeakButton
242
+ * endpoint="https://api.cencori.com/api/ai/audio/speech"
243
+ * apiKey={process.env.NEXT_PUBLIC_CENCORI_KEY}
244
+ * text="Hello from Cencori."
245
+ * model="aura-asteria-en"
246
+ * />
247
+ *
248
+ * Deps: react, lucide-react.
249
+ */
250
+ interface SpeakButtonProps {
251
+ /** Text to synthesize. */
252
+ text: string;
253
+ /** Speech endpoint. Defaults to same-origin `/api/ai/audio/speech`. */
254
+ endpoint?: string;
255
+ /** Cencori API key. Sent as `Authorization: Bearer`. */
256
+ apiKey?: string;
257
+ /** TTS model — provider is inferred from it. Default: `tts-1`. */
258
+ model?: string;
259
+ /** Voice id/name. Provider-specific. */
260
+ voice?: string;
261
+ /** Language code (Spitch: `en`, `yo`, `ha`, `ig`, `am`). */
262
+ language?: string;
263
+ /** Button label. Default: "Listen". Pass null to render icon-only. */
264
+ label?: string | null;
265
+ /** Additional request headers to forward (in addition to Authorization). */
266
+ headers?: Record<string, string>;
267
+ onError?: (error: {
268
+ code: string;
269
+ message: string;
270
+ }) => void;
271
+ className?: string;
272
+ }
273
+ declare function SpeakButton({ text, endpoint, apiKey, model, voice, language, label, headers, onError, className, }: SpeakButtonProps): react_jsx_runtime.JSX.Element;
274
+
275
+ /**
276
+ * useVoiceRecorder
277
+ *
278
+ * Minimal microphone-recording hook built on the MediaRecorder API. Handles
279
+ * permission, start/stop, elapsed time, and returns the recorded audio as a
280
+ * Blob. No external state — safe to use inside a customer's own components.
281
+ *
282
+ * Usage:
283
+ * const rec = useVoiceRecorder();
284
+ * rec.start(); // prompts for mic permission
285
+ * const blob = await rec.stop(); // resolves with the recorded audio
286
+ */
287
+ type RecorderState = 'idle' | 'requesting' | 'recording' | 'stopped' | 'error';
288
+ interface UseVoiceRecorderResult {
289
+ state: RecorderState;
290
+ /** Seconds elapsed in the current/last recording. */
291
+ seconds: number;
292
+ /** MediaRecorder mime type in use once recording starts. */
293
+ mimeType: string | null;
294
+ error: string | null;
295
+ /** The most recent recording, available after stop(). */
296
+ blob: Blob | null;
297
+ start: () => Promise<void>;
298
+ /** Stop and resolve with the recorded Blob (also set on `blob`). */
299
+ stop: () => Promise<Blob | null>;
300
+ /** Discard the current recording and reset to idle. */
301
+ reset: () => void;
302
+ }
303
+ declare function useVoiceRecorder(): UseVoiceRecorderResult;
304
+
305
+ export { Chat, type ChatMemoryProp, type ChatMessage, type ChatProps, type MemoryScope, type RecorderState, SpeakButton, type SpeakButtonProps, type UseMemoryOptions, type UseMemoryResult, type UseVoiceRecorderResult, type UserMemory, VisionFormatBanner, type VisionFormatBannerProps, type VisionProvider, type VisionTask, VisionUploader, type VisionUploaderProps, VoiceRecorder, type VoiceRecorderProps, type VoiceTranscript, useMemory, useVoiceRecorder };