@reverbia/sdk 1.0.0-next.20260109140427 → 1.0.0-next.20260109150925
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/expo/index.d.mts +99 -6
- package/dist/expo/index.d.ts +99 -6
- package/dist/react/index.cjs +129 -34
- package/dist/react/index.d.mts +202 -38
- package/dist/react/index.d.ts +202 -38
- package/dist/react/index.mjs +129 -34
- package/package.json +3 -1
package/dist/react/index.d.mts
CHANGED
|
@@ -882,6 +882,7 @@ type BaseSendMessageArgs = ResponsesApiOptions & {
|
|
|
882
882
|
};
|
|
883
883
|
/**
|
|
884
884
|
* Base options for useChat hook
|
|
885
|
+
* @inline
|
|
885
886
|
*/
|
|
886
887
|
type BaseUseChatOptions = {
|
|
887
888
|
getToken?: () => Promise<string | null>;
|
|
@@ -977,14 +978,17 @@ type SendMessageResult = {
|
|
|
977
978
|
data: LlmapiResponseResponse | null;
|
|
978
979
|
error: string;
|
|
979
980
|
};
|
|
980
|
-
|
|
981
|
+
/**
|
|
982
|
+
* @inline
|
|
983
|
+
*/
|
|
984
|
+
interface UseChatOptions extends BaseUseChatOptions {
|
|
981
985
|
/**
|
|
982
986
|
* Which API endpoint to use. Default: "responses"
|
|
983
987
|
* - "responses": OpenAI Responses API (supports thinking, reasoning, conversations)
|
|
984
988
|
* - "completions": OpenAI Chat Completions API (wider model compatibility)
|
|
985
989
|
*/
|
|
986
990
|
apiType?: ApiType;
|
|
987
|
-
}
|
|
991
|
+
}
|
|
988
992
|
type UseChatResult = BaseUseChatResult & {
|
|
989
993
|
sendMessage: (args: SendMessageArgs) => Promise<SendMessageResult>;
|
|
990
994
|
};
|
|
@@ -1008,11 +1012,6 @@ type UseChatResult = BaseUseChatResult & {
|
|
|
1008
1012
|
*
|
|
1009
1013
|
* @category Hooks
|
|
1010
1014
|
*
|
|
1011
|
-
* @returns An object containing:
|
|
1012
|
-
* - `isLoading`: A boolean indicating whether a request is currently in progress
|
|
1013
|
-
* - `sendMessage`: An async function to send chat messages
|
|
1014
|
-
* - `stop`: A function to abort the current request
|
|
1015
|
-
*
|
|
1016
1015
|
* @example
|
|
1017
1016
|
* ```tsx
|
|
1018
1017
|
* // Basic usage with API
|
|
@@ -1183,6 +1182,22 @@ declare function clearKeyPair(address: string): void;
|
|
|
1183
1182
|
* Clears all key pairs from memory
|
|
1184
1183
|
*/
|
|
1185
1184
|
declare function clearAllKeyPairs(): void;
|
|
1185
|
+
/**
|
|
1186
|
+
* Result returned by the useEncryption hook.
|
|
1187
|
+
* @category Hooks
|
|
1188
|
+
*/
|
|
1189
|
+
interface UseEncryptionResult {
|
|
1190
|
+
/** Request and generate an encryption key for a wallet address */
|
|
1191
|
+
requestEncryptionKey: (walletAddress: string) => Promise<void>;
|
|
1192
|
+
/** Request and generate an ECDH key pair for a wallet address */
|
|
1193
|
+
requestKeyPair: (walletAddress: string) => Promise<void>;
|
|
1194
|
+
/** Export the public key for a wallet address as base64-encoded SPKI */
|
|
1195
|
+
exportPublicKey: (walletAddress: string) => Promise<string>;
|
|
1196
|
+
/** Check if a key pair exists in memory for a wallet address */
|
|
1197
|
+
hasKeyPair: (walletAddress: string) => boolean;
|
|
1198
|
+
/** Clear the key pair for a wallet address from memory */
|
|
1199
|
+
clearKeyPair: (walletAddress: string) => void;
|
|
1200
|
+
}
|
|
1186
1201
|
/**
|
|
1187
1202
|
* Hook that provides encryption key management for securing local data.
|
|
1188
1203
|
*
|
|
@@ -1311,13 +1326,7 @@ declare function clearAllKeyPairs(): void;
|
|
|
1311
1326
|
*
|
|
1312
1327
|
* @category Hooks
|
|
1313
1328
|
*/
|
|
1314
|
-
declare function useEncryption(signMessage: SignMessageFn, embeddedWalletSigner?: EmbeddedWalletSignerFn):
|
|
1315
|
-
requestEncryptionKey: (walletAddress: string) => Promise<void>;
|
|
1316
|
-
requestKeyPair: (walletAddress: string) => Promise<void>;
|
|
1317
|
-
exportPublicKey: (walletAddress: string) => Promise<string>;
|
|
1318
|
-
hasKeyPair: (walletAddress: string) => boolean;
|
|
1319
|
-
clearKeyPair: (walletAddress: string) => void;
|
|
1320
|
-
};
|
|
1329
|
+
declare function useEncryption(signMessage: SignMessageFn, embeddedWalletSigner?: EmbeddedWalletSignerFn): UseEncryptionResult;
|
|
1321
1330
|
|
|
1322
1331
|
declare const chatStorageSchema: Readonly<{
|
|
1323
1332
|
version: _nozbe_watermelondb_Schema.SchemaVersion;
|
|
@@ -1372,6 +1381,9 @@ interface StoredMemory extends MemoryItem {
|
|
|
1372
1381
|
interface StoredMemoryWithSimilarity extends StoredMemory {
|
|
1373
1382
|
similarity: number;
|
|
1374
1383
|
}
|
|
1384
|
+
/**
|
|
1385
|
+
* @inline
|
|
1386
|
+
*/
|
|
1375
1387
|
interface BaseUseMemoryStorageOptions {
|
|
1376
1388
|
database: Database;
|
|
1377
1389
|
completionsModel?: string;
|
|
@@ -1512,27 +1524,93 @@ interface UpdateMessageOptions {
|
|
|
1512
1524
|
* @inline
|
|
1513
1525
|
*/
|
|
1514
1526
|
interface BaseUseChatStorageOptions {
|
|
1527
|
+
/** WatermelonDB database instance for storing conversations and messages */
|
|
1515
1528
|
database: Database;
|
|
1529
|
+
/** ID of an existing conversation to load and continue */
|
|
1516
1530
|
conversationId?: string;
|
|
1531
|
+
/** Automatically create a new conversation if none is set (default: true) */
|
|
1517
1532
|
autoCreateConversation?: boolean;
|
|
1533
|
+
/** Title for auto-created conversations (default: "New conversation") */
|
|
1518
1534
|
defaultConversationTitle?: string;
|
|
1535
|
+
/** Function to retrieve the auth token for API requests */
|
|
1519
1536
|
getToken?: () => Promise<string | null>;
|
|
1537
|
+
/** Base URL for the chat API endpoint */
|
|
1520
1538
|
baseUrl?: string;
|
|
1539
|
+
/** Callback invoked with each streamed response chunk */
|
|
1521
1540
|
onData?: (chunk: string) => void;
|
|
1541
|
+
/** Callback invoked when the response completes successfully */
|
|
1522
1542
|
onFinish?: (response: LlmapiResponseResponse) => void;
|
|
1543
|
+
/** Callback invoked when an error occurs during the request */
|
|
1523
1544
|
onError?: (error: Error) => void;
|
|
1524
1545
|
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Base arguments for sending a message with automatic storage.
|
|
1548
|
+
*
|
|
1549
|
+
* These arguments control both the AI request and how the message
|
|
1550
|
+
* is persisted to the local database.
|
|
1551
|
+
* @inline
|
|
1552
|
+
*/
|
|
1525
1553
|
interface BaseSendMessageWithStorageArgs {
|
|
1554
|
+
/**
|
|
1555
|
+
* The text content of the message to send to the AI.
|
|
1556
|
+
*/
|
|
1526
1557
|
content: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* The model identifier to use for this request (e.g., "gpt-4o", "claude-sonnet-4-20250514").
|
|
1560
|
+
* If not specified, uses the default model configured on the server.
|
|
1561
|
+
*/
|
|
1527
1562
|
model?: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* Pre-built message array to send instead of using conversation history.
|
|
1565
|
+
* When provided, `includeHistory` is ignored and these messages are used directly.
|
|
1566
|
+
* Useful for custom message construction or when you need full control over context.
|
|
1567
|
+
*/
|
|
1528
1568
|
messages?: LlmapiMessage[];
|
|
1569
|
+
/**
|
|
1570
|
+
* Whether to automatically include previous messages from the conversation as context.
|
|
1571
|
+
* When true, fetches stored messages and prepends them to the request.
|
|
1572
|
+
* Ignored if `messages` is provided.
|
|
1573
|
+
* @default true
|
|
1574
|
+
*/
|
|
1529
1575
|
includeHistory?: boolean;
|
|
1576
|
+
/**
|
|
1577
|
+
* Maximum number of historical messages to include when `includeHistory` is true.
|
|
1578
|
+
* Only the most recent N messages are included to manage context window size.
|
|
1579
|
+
* @default 50
|
|
1580
|
+
*/
|
|
1530
1581
|
maxHistoryMessages?: number;
|
|
1582
|
+
/**
|
|
1583
|
+
* File attachments to include with the message (images, documents, etc.).
|
|
1584
|
+
* Files with image MIME types and URLs are sent as image content parts.
|
|
1585
|
+
* File metadata is stored with the message (URLs are stripped if they're data URIs).
|
|
1586
|
+
*/
|
|
1531
1587
|
files?: FileMetadata[];
|
|
1588
|
+
/**
|
|
1589
|
+
* Per-request callback invoked with each streamed response chunk.
|
|
1590
|
+
* Overrides the hook-level `onData` callback for this request only.
|
|
1591
|
+
* Use this to update UI as the response streams in.
|
|
1592
|
+
*/
|
|
1532
1593
|
onData?: (chunk: string) => void;
|
|
1594
|
+
/**
|
|
1595
|
+
* Additional context from memory/RAG system to include in the request.
|
|
1596
|
+
* Typically contains retrieved relevant information from past conversations.
|
|
1597
|
+
*/
|
|
1533
1598
|
memoryContext?: string;
|
|
1599
|
+
/**
|
|
1600
|
+
* Additional context from search results to include in the request.
|
|
1601
|
+
* Typically contains relevant information from web or document searches.
|
|
1602
|
+
*/
|
|
1534
1603
|
searchContext?: string;
|
|
1604
|
+
/**
|
|
1605
|
+
* Search sources to attach to the stored message for citation/reference.
|
|
1606
|
+
* These are combined with any sources extracted from the assistant's response.
|
|
1607
|
+
*/
|
|
1535
1608
|
sources?: SearchSource[];
|
|
1609
|
+
/**
|
|
1610
|
+
* Activity phases for tracking the request lifecycle in the UI.
|
|
1611
|
+
* Each phase represents a step like "Searching", "Thinking", "Generating".
|
|
1612
|
+
* The final phase is automatically marked as completed when stored.
|
|
1613
|
+
*/
|
|
1536
1614
|
thoughtProcess?: ActivityPhase[];
|
|
1537
1615
|
/**
|
|
1538
1616
|
* Whether to store the response server-side.
|
|
@@ -1550,33 +1628,43 @@ interface BaseSendMessageWithStorageArgs {
|
|
|
1550
1628
|
serverConversation?: string;
|
|
1551
1629
|
/**
|
|
1552
1630
|
* Controls randomness in the response (0.0 to 2.0).
|
|
1631
|
+
* Lower values make output more deterministic, higher values more creative.
|
|
1553
1632
|
*/
|
|
1554
1633
|
temperature?: number;
|
|
1555
1634
|
/**
|
|
1556
1635
|
* Maximum number of tokens to generate in the response.
|
|
1636
|
+
* Use this to limit response length and control costs.
|
|
1557
1637
|
*/
|
|
1558
1638
|
maxOutputTokens?: number;
|
|
1559
1639
|
/**
|
|
1560
1640
|
* Array of tool definitions available to the model.
|
|
1641
|
+
* Tools enable the model to call functions, search, execute code, etc.
|
|
1561
1642
|
*/
|
|
1562
1643
|
tools?: LlmapiTool[];
|
|
1563
1644
|
/**
|
|
1564
|
-
* Controls which tool
|
|
1645
|
+
* Controls which tool the model should use:
|
|
1646
|
+
* - "auto": Model decides whether to use a tool (default)
|
|
1647
|
+
* - "any": Model must use one of the provided tools
|
|
1648
|
+
* - "none": Model cannot use any tools
|
|
1649
|
+
* - "required": Model must use a tool
|
|
1650
|
+
* - Specific tool name: Model must use that specific tool
|
|
1565
1651
|
*/
|
|
1566
1652
|
toolChoice?: string;
|
|
1567
1653
|
/**
|
|
1568
1654
|
* Reasoning configuration for o-series and other reasoning models.
|
|
1569
|
-
* Controls reasoning effort and summary
|
|
1655
|
+
* Controls reasoning effort level and whether to include reasoning summary.
|
|
1570
1656
|
*/
|
|
1571
1657
|
reasoning?: LlmapiResponseReasoning;
|
|
1572
1658
|
/**
|
|
1573
1659
|
* Extended thinking configuration for Anthropic models (Claude).
|
|
1574
|
-
* Enables the model to think through complex problems step by step
|
|
1660
|
+
* Enables the model to think through complex problems step by step
|
|
1661
|
+
* before generating the final response.
|
|
1575
1662
|
*/
|
|
1576
1663
|
thinking?: LlmapiThinkingOptions;
|
|
1577
1664
|
/**
|
|
1578
1665
|
* Per-request callback for thinking/reasoning chunks.
|
|
1579
1666
|
* Called with delta chunks as the model "thinks" through a problem.
|
|
1667
|
+
* Use this to display thinking progress in the UI.
|
|
1580
1668
|
*/
|
|
1581
1669
|
onThinking?: (chunk: string) => void;
|
|
1582
1670
|
}
|
|
@@ -1631,30 +1719,49 @@ declare class Conversation extends Model {
|
|
|
1631
1719
|
* Options for useChatStorage hook (React version)
|
|
1632
1720
|
*
|
|
1633
1721
|
* Extends base options with apiType support.
|
|
1722
|
+
* @inline
|
|
1634
1723
|
*/
|
|
1635
|
-
|
|
1724
|
+
interface UseChatStorageOptions extends BaseUseChatStorageOptions {
|
|
1636
1725
|
/**
|
|
1637
1726
|
* Which API endpoint to use. Default: "responses"
|
|
1638
1727
|
* - "responses": OpenAI Responses API (supports thinking, reasoning, conversations)
|
|
1639
1728
|
* - "completions": OpenAI Chat Completions API (wider model compatibility)
|
|
1640
1729
|
*/
|
|
1641
1730
|
apiType?: ApiType;
|
|
1642
|
-
}
|
|
1731
|
+
}
|
|
1643
1732
|
/**
|
|
1644
1733
|
* Arguments for sendMessage with storage (React version)
|
|
1645
1734
|
*
|
|
1646
1735
|
* Extends base arguments with headers and apiType support.
|
|
1736
|
+
* @inline
|
|
1647
1737
|
*/
|
|
1648
1738
|
interface SendMessageWithStorageArgs extends BaseSendMessageWithStorageArgs {
|
|
1649
|
-
/**
|
|
1739
|
+
/**
|
|
1740
|
+
* Custom HTTP headers to include with the API request.
|
|
1741
|
+
* Useful for passing additional authentication, tracking, or feature flags.
|
|
1742
|
+
*/
|
|
1650
1743
|
headers?: Record<string, string>;
|
|
1651
1744
|
/**
|
|
1652
|
-
* Override the API type for this request
|
|
1653
|
-
*
|
|
1654
|
-
*
|
|
1745
|
+
* Override the API type for this specific request.
|
|
1746
|
+
* - "responses": OpenAI Responses API (supports thinking, reasoning, conversations)
|
|
1747
|
+
* - "completions": OpenAI Chat Completions API (wider model compatibility)
|
|
1748
|
+
*
|
|
1749
|
+
* Useful when different models need different APIs within the same hook instance.
|
|
1655
1750
|
*/
|
|
1656
1751
|
apiType?: ApiType;
|
|
1657
|
-
/**
|
|
1752
|
+
/**
|
|
1753
|
+
* Function to write files to storage (for MCP image processing).
|
|
1754
|
+
* When provided, MCP-generated images in the response are automatically
|
|
1755
|
+
* downloaded and stored locally via this function. The content is updated
|
|
1756
|
+
* with placeholders that can be resolved to the stored files.
|
|
1757
|
+
*
|
|
1758
|
+
* If not provided, MCP images remain as URLs in the response content.
|
|
1759
|
+
*
|
|
1760
|
+
* @param fileId - Unique identifier for the file
|
|
1761
|
+
* @param blob - The file content as a Blob
|
|
1762
|
+
* @param options - Optional progress callback and abort signal
|
|
1763
|
+
* @returns Promise resolving to the stored file URL/path
|
|
1764
|
+
*/
|
|
1658
1765
|
writeFile?: (fileId: string, blob: Blob, options?: {
|
|
1659
1766
|
onProgress?: (progress: number) => void;
|
|
1660
1767
|
signal?: AbortSignal;
|
|
@@ -1691,7 +1798,34 @@ interface SearchMessagesOptions {
|
|
|
1691
1798
|
* Extends base result with React-specific sendMessage signature.
|
|
1692
1799
|
*/
|
|
1693
1800
|
interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
1694
|
-
/**
|
|
1801
|
+
/**
|
|
1802
|
+
* Sends a message to the AI and automatically persists both the user message
|
|
1803
|
+
* and assistant response to the database.
|
|
1804
|
+
*
|
|
1805
|
+
* This method handles the complete message lifecycle:
|
|
1806
|
+
* 1. Ensures a conversation exists (creates one if `autoCreateConversation` is enabled)
|
|
1807
|
+
* 2. Optionally includes conversation history for context
|
|
1808
|
+
* 3. Stores the user message before sending
|
|
1809
|
+
* 4. Streams the response via the underlying `useChat` hook
|
|
1810
|
+
* 5. Stores the assistant response (including usage stats, sources, and thinking)
|
|
1811
|
+
* 6. Handles abort/error states gracefully
|
|
1812
|
+
*
|
|
1813
|
+
* @example
|
|
1814
|
+
* ```ts
|
|
1815
|
+
* const result = await sendMessage({
|
|
1816
|
+
* content: "Explain quantum computing",
|
|
1817
|
+
* model: "gpt-4o",
|
|
1818
|
+
* includeHistory: true,
|
|
1819
|
+
* onData: (chunk) => setStreamingText(prev => prev + chunk),
|
|
1820
|
+
* });
|
|
1821
|
+
*
|
|
1822
|
+
* if (result.error) {
|
|
1823
|
+
* console.error("Failed:", result.error);
|
|
1824
|
+
* } else {
|
|
1825
|
+
* console.log("Stored message ID:", result.assistantMessage.uniqueId);
|
|
1826
|
+
* }
|
|
1827
|
+
* ```
|
|
1828
|
+
*/
|
|
1695
1829
|
sendMessage: (args: SendMessageWithStorageArgs) => Promise<SendMessageWithStorageResult>;
|
|
1696
1830
|
/** Search messages by vector similarity */
|
|
1697
1831
|
searchMessages: (queryVector: number[], options?: SearchMessagesOptions) => Promise<StoredMessageWithSimilarity[]>;
|
|
@@ -1866,8 +2000,10 @@ declare class Memory extends Model {
|
|
|
1866
2000
|
* Options for useMemoryStorage hook (React version)
|
|
1867
2001
|
*
|
|
1868
2002
|
* Uses the base options. React-specific features can be added here if needed.
|
|
2003
|
+
* @inline
|
|
1869
2004
|
*/
|
|
1870
|
-
|
|
2005
|
+
interface UseMemoryStorageOptions extends BaseUseMemoryStorageOptions {
|
|
2006
|
+
}
|
|
1871
2007
|
/**
|
|
1872
2008
|
* Result returned by useMemoryStorage hook (React version)
|
|
1873
2009
|
*
|
|
@@ -1945,6 +2081,9 @@ interface CreateModelPreferenceOptions {
|
|
|
1945
2081
|
interface UpdateModelPreferenceOptions {
|
|
1946
2082
|
models?: string;
|
|
1947
2083
|
}
|
|
2084
|
+
/**
|
|
2085
|
+
* @inline
|
|
2086
|
+
*/
|
|
1948
2087
|
interface BaseUseSettingsOptions {
|
|
1949
2088
|
database: Database;
|
|
1950
2089
|
walletAddress?: string;
|
|
@@ -2072,6 +2211,7 @@ interface ProfileUpdate {
|
|
|
2072
2211
|
|
|
2073
2212
|
/**
|
|
2074
2213
|
* Options for useSettings hook (React version)
|
|
2214
|
+
* @inline
|
|
2075
2215
|
*/
|
|
2076
2216
|
interface UseSettingsOptions extends BaseUseSettingsOptions {
|
|
2077
2217
|
}
|
|
@@ -2144,14 +2284,22 @@ interface PdfFile {
|
|
|
2144
2284
|
filename?: string;
|
|
2145
2285
|
}
|
|
2146
2286
|
/**
|
|
2147
|
-
*
|
|
2287
|
+
* Result returned by the usePdf hook.
|
|
2148
2288
|
* @category Hooks
|
|
2149
2289
|
*/
|
|
2150
|
-
|
|
2290
|
+
interface UsePdfResult {
|
|
2291
|
+
/** Extract text from PDF files */
|
|
2151
2292
|
extractPdfContext: (files: PdfFile[]) => Promise<string | null>;
|
|
2293
|
+
/** Whether PDF processing is in progress */
|
|
2152
2294
|
isProcessing: boolean;
|
|
2295
|
+
/** Error from the last PDF extraction attempt */
|
|
2153
2296
|
error: Error | null;
|
|
2154
|
-
}
|
|
2297
|
+
}
|
|
2298
|
+
/**
|
|
2299
|
+
* React hook for extracting text from PDF files.
|
|
2300
|
+
* @category Hooks
|
|
2301
|
+
*/
|
|
2302
|
+
declare function usePdf(): UsePdfResult;
|
|
2155
2303
|
|
|
2156
2304
|
interface OCRFile {
|
|
2157
2305
|
url: string | File | Blob;
|
|
@@ -2159,15 +2307,26 @@ interface OCRFile {
|
|
|
2159
2307
|
language?: string;
|
|
2160
2308
|
}
|
|
2161
2309
|
/**
|
|
2162
|
-
*
|
|
2310
|
+
* Result returned by the useOCR hook.
|
|
2163
2311
|
* @category Hooks
|
|
2164
2312
|
*/
|
|
2165
|
-
|
|
2313
|
+
interface UseOCRResult {
|
|
2314
|
+
/** Extract text from images using OCR */
|
|
2166
2315
|
extractOCRContext: (files: OCRFile[]) => Promise<string | null>;
|
|
2316
|
+
/** Whether OCR processing is in progress */
|
|
2167
2317
|
isProcessing: boolean;
|
|
2318
|
+
/** Error from the last OCR extraction attempt */
|
|
2168
2319
|
error: Error | null;
|
|
2169
|
-
}
|
|
2320
|
+
}
|
|
2321
|
+
/**
|
|
2322
|
+
* React hook for extracting text from images using OCR.
|
|
2323
|
+
* @category Hooks
|
|
2324
|
+
*/
|
|
2325
|
+
declare function useOCR(): UseOCRResult;
|
|
2170
2326
|
|
|
2327
|
+
/**
|
|
2328
|
+
* @inline
|
|
2329
|
+
*/
|
|
2171
2330
|
type UseModelsOptions = {
|
|
2172
2331
|
/**
|
|
2173
2332
|
* Custom function to get auth token for API calls
|
|
@@ -2199,6 +2358,9 @@ type UseModelsResult = {
|
|
|
2199
2358
|
*/
|
|
2200
2359
|
declare function useModels(options?: UseModelsOptions): UseModelsResult;
|
|
2201
2360
|
|
|
2361
|
+
/**
|
|
2362
|
+
* @inline
|
|
2363
|
+
*/
|
|
2202
2364
|
type UseSearchOptions = {
|
|
2203
2365
|
/**
|
|
2204
2366
|
* Custom function to get auth token for API calls
|
|
@@ -2262,6 +2424,9 @@ type UseSearchResult = {
|
|
|
2262
2424
|
*/
|
|
2263
2425
|
declare function useSearch(options?: UseSearchOptions): UseSearchResult;
|
|
2264
2426
|
|
|
2427
|
+
/**
|
|
2428
|
+
* @inline
|
|
2429
|
+
*/
|
|
2265
2430
|
type UseImageGenerationOptions = {
|
|
2266
2431
|
/**
|
|
2267
2432
|
* Custom function to get auth token for API calls
|
|
@@ -2361,6 +2526,7 @@ interface DropboxImportResult {
|
|
|
2361
2526
|
|
|
2362
2527
|
/**
|
|
2363
2528
|
* Options for useDropboxBackup hook
|
|
2529
|
+
* @inline
|
|
2364
2530
|
*/
|
|
2365
2531
|
interface UseDropboxBackupOptions {
|
|
2366
2532
|
/** WatermelonDB database instance */
|
|
@@ -2526,7 +2692,6 @@ interface DropboxAuthContextValue {
|
|
|
2526
2692
|
* }
|
|
2527
2693
|
* ```
|
|
2528
2694
|
*
|
|
2529
|
-
* @category Components
|
|
2530
2695
|
*/
|
|
2531
2696
|
declare function DropboxAuthProvider({ appKey, callbackPath, apiClient, walletAddress, children, }: DropboxAuthProviderProps): JSX.Element;
|
|
2532
2697
|
/**
|
|
@@ -2641,7 +2806,6 @@ interface GoogleDriveAuthContextValue {
|
|
|
2641
2806
|
* }
|
|
2642
2807
|
* ```
|
|
2643
2808
|
*
|
|
2644
|
-
* @category Components
|
|
2645
2809
|
*/
|
|
2646
2810
|
declare function GoogleDriveAuthProvider({ clientId, callbackPath, apiClient, walletAddress, children, }: GoogleDriveAuthProviderProps): JSX.Element;
|
|
2647
2811
|
/**
|
|
@@ -2707,6 +2871,7 @@ interface GoogleDriveImportResult {
|
|
|
2707
2871
|
|
|
2708
2872
|
/**
|
|
2709
2873
|
* Options for useGoogleDriveBackup hook
|
|
2874
|
+
* @inline
|
|
2710
2875
|
*/
|
|
2711
2876
|
interface UseGoogleDriveBackupOptions {
|
|
2712
2877
|
/** WatermelonDB database instance */
|
|
@@ -2846,8 +3011,6 @@ interface ICloudAuthContextValue {
|
|
|
2846
3011
|
* );
|
|
2847
3012
|
* }
|
|
2848
3013
|
* ```
|
|
2849
|
-
*
|
|
2850
|
-
* @category Components
|
|
2851
3014
|
*/
|
|
2852
3015
|
declare function ICloudAuthProvider({ apiToken, containerIdentifier, environment, children, }: ICloudAuthProviderProps): JSX.Element;
|
|
2853
3016
|
/**
|
|
@@ -3033,6 +3196,7 @@ interface ICloudImportResult {
|
|
|
3033
3196
|
|
|
3034
3197
|
/**
|
|
3035
3198
|
* Options for useICloudBackup hook
|
|
3199
|
+
* @inline
|
|
3036
3200
|
*/
|
|
3037
3201
|
interface UseICloudBackupOptions {
|
|
3038
3202
|
/** WatermelonDB database instance */
|
|
@@ -3219,7 +3383,6 @@ interface BackupAuthContextValue {
|
|
|
3219
3383
|
* }
|
|
3220
3384
|
* ```
|
|
3221
3385
|
*
|
|
3222
|
-
* @category Components
|
|
3223
3386
|
*/
|
|
3224
3387
|
declare function BackupAuthProvider({ dropboxAppKey, dropboxCallbackPath, googleClientId, googleCallbackPath, icloudApiToken, icloudContainerIdentifier, icloudEnvironment, apiClient, walletAddress, children, }: BackupAuthProviderProps): JSX.Element;
|
|
3225
3388
|
/**
|
|
@@ -3272,6 +3435,7 @@ declare function useBackupAuth(): BackupAuthContextValue;
|
|
|
3272
3435
|
|
|
3273
3436
|
/**
|
|
3274
3437
|
* Options for useBackup hook
|
|
3438
|
+
* @inline
|
|
3275
3439
|
*/
|
|
3276
3440
|
interface UseBackupOptions {
|
|
3277
3441
|
/** WatermelonDB database instance */
|
|
@@ -3549,4 +3713,4 @@ declare function storeDriveToken(accessToken: string, expiresIn?: number, refres
|
|
|
3549
3713
|
*/
|
|
3550
3714
|
declare function hasDriveCredentials(): boolean;
|
|
3551
3715
|
|
|
3552
|
-
export { DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type CreateConversationOptions, type CreateMemoryOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateUserPreferenceOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_PERSONALITY_SETTINGS, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, type EmbeddedWalletSignerFn, type FileMetadata, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, type MemoryItem, type MemoryType, type OCRFile, type PdfFile, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type ProfileUpdate, type ProgressCallback, type ProviderAuthState, type ProviderBackupState, SLIDER_CONFIG, type SearchMessagesOptions, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type SignMessageFn, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredMemory, Memory as StoredMemoryModel, type StoredMemoryWithSimilarity, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type UpdateMemoryOptions, type UpdateModelPreferenceOptions, type UpdateUserPreferenceOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseMemoryStorageOptions, type UseMemoryStorageResult, type UseSettingsOptions, type UseSettingsResult, chatStorageMigrations, chatStorageSchema, clearAllEncryptionKeys, clearAllKeyPairs, clearCalendarToken, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, createMemoryContextSystemMessage, decryptData, decryptDataBytes, encryptData, exportPublicKey, extractConversationContext, formatMemoriesForChat, generateCompositeKey, generateConversationId, generateUniqueKey, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getCalendarAccessToken, getDriveAccessToken, getGoogleDriveStoredToken, getValidCalendarToken, getValidDriveToken, handleCalendarCallback, handleDriveCallback, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, isCalendarCallback, isDriveCallback, memoryStorageSchema, refreshCalendarToken, refreshDriveToken, requestEncryptionKey, requestKeyPair, revokeCalendarToken, revokeDriveToken, sdkMigrations, sdkModelClasses, sdkSchema, settingsStorageSchema, startCalendarAuth, startDriveAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, useBackup, useBackupAuth, useChat, useChatStorage, useDropboxAuth, useDropboxBackup, useEncryption, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useImageGeneration, useMemoryStorage, useModels, useOCR, usePdf, useSearch, useSettings, userPreferencesStorageSchema };
|
|
3716
|
+
export { DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type CreateConversationOptions, type CreateMemoryOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateUserPreferenceOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_PERSONALITY_SETTINGS, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, type EmbeddedWalletSignerFn, type FileMetadata, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, type MemoryItem, type MemoryType, type OCRFile, type PdfFile, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type ProfileUpdate, type ProgressCallback, type ProviderAuthState, type ProviderBackupState, SLIDER_CONFIG, type SearchMessagesOptions, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type SignMessageFn, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredMemory, Memory as StoredMemoryModel, type StoredMemoryWithSimilarity, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type UpdateMemoryOptions, type UpdateModelPreferenceOptions, type UpdateUserPreferenceOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseImageGenerationResult, type UseMemoryStorageOptions, type UseMemoryStorageResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UseSearchResult, type UseSettingsOptions, type UseSettingsResult, chatStorageMigrations, chatStorageSchema, clearAllEncryptionKeys, clearAllKeyPairs, clearCalendarToken, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, createMemoryContextSystemMessage, decryptData, decryptDataBytes, encryptData, exportPublicKey, extractConversationContext, formatMemoriesForChat, generateCompositeKey, generateConversationId, generateUniqueKey, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getCalendarAccessToken, getDriveAccessToken, getGoogleDriveStoredToken, getValidCalendarToken, getValidDriveToken, handleCalendarCallback, handleDriveCallback, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, isCalendarCallback, isDriveCallback, memoryStorageSchema, refreshCalendarToken, refreshDriveToken, requestEncryptionKey, requestKeyPair, revokeCalendarToken, revokeDriveToken, sdkMigrations, sdkModelClasses, sdkSchema, settingsStorageSchema, startCalendarAuth, startDriveAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, useBackup, useBackupAuth, useChat, useChatStorage, useDropboxAuth, useDropboxBackup, useEncryption, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useImageGeneration, useMemoryStorage, useModels, useOCR, usePdf, useSearch, useSettings, userPreferencesStorageSchema };
|