@reverbia/sdk 1.0.0-next.20260111202106 → 1.0.0-next.20260112105133

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.
@@ -5,96 +5,6 @@ import Model$1, { Associations } from '@nozbe/watermelondb/Model';
5
5
  import { Class } from '@nozbe/watermelondb/types';
6
6
  import { ReactNode, JSX } from 'react';
7
7
 
8
- /**
9
- * ExtraFields contains additional metadata such as provider/model information.
10
- */
11
- type LlmapiImageGenerationExtraFields = {
12
- /**
13
- * ModelRequested is the model identifier that the client asked for.
14
- */
15
- model_requested?: string;
16
- /**
17
- * Provider is the gateway that serviced this request.
18
- */
19
- provider?: string;
20
- /**
21
- * RequestType is always "image_generation".
22
- */
23
- request_type?: string;
24
- };
25
- type LlmapiImageGenerationImage = {
26
- /**
27
- * B64JSON is the base64 payload for models that can only return binary.
28
- */
29
- b64_json?: string;
30
- /**
31
- * URL is the signed URL to download the image.
32
- */
33
- url?: string;
34
- };
35
- type LlmapiImageGenerationRequest = {
36
- /**
37
- * Model is the model identifier to use for generation (e.g., "gpt-image-1").
38
- */
39
- model: string;
40
- /**
41
- * Prompt is the text description of the desired image.
42
- */
43
- prompt: string;
44
- /**
45
- * Quality targets a quality preset (e.g., "auto", "high").
46
- */
47
- quality?: string;
48
- /**
49
- * ResponseFormat controls how the generated image is returned (e.g., "url" or "b64_json").
50
- */
51
- response_format?: string;
52
- /**
53
- * Size controls the dimensions of the generated image (e.g., "1024x1024").
54
- */
55
- size?: string;
56
- };
57
- type LlmapiImageGenerationResponse = {
58
- /**
59
- * Created is the Unix timestamp when the image was generated.
60
- */
61
- created?: number;
62
- extra_fields?: LlmapiImageGenerationExtraFields;
63
- /**
64
- * Images contains the generated images.
65
- */
66
- images?: Array<LlmapiImageGenerationImage>;
67
- /**
68
- * Model is the model identifier that generated the image.
69
- */
70
- model?: string;
71
- /**
72
- * Provider is the gateway that produced the image.
73
- */
74
- provider?: string;
75
- usage?: LlmapiImageGenerationUsage;
76
- };
77
- /**
78
- * Usage documents token usage (when available).
79
- */
80
- type LlmapiImageGenerationUsage = {
81
- /**
82
- * CostMicroUSD is the inference cost for this image generation request
83
- */
84
- cost_micro_usd?: number;
85
- /**
86
- * InputTokens is the number of tokens sent in the prompt.
87
- */
88
- input_tokens?: number;
89
- /**
90
- * OutputTokens is the number of tokens returned by the model.
91
- */
92
- output_tokens?: number;
93
- /**
94
- * TotalTokens is the total number of tokens consumed.
95
- */
96
- total_tokens?: number;
97
- };
98
8
  /**
99
9
  * Message is the generated message
100
10
  */
@@ -398,54 +308,6 @@ type LlmapiResponseUsage = {
398
308
  * Role is the message role (system, user, assistant, tool)
399
309
  */
400
310
  type LlmapiRole = string;
401
- /**
402
- * ExtraFields contains additional metadata.
403
- */
404
- type LlmapiSearchExtraFields = {
405
- /**
406
- * RequestType is always "search".
407
- */
408
- request_type?: string;
409
- /**
410
- * SearchProvider is the search provider used (e.g., "perplexity", "google-pse").
411
- */
412
- search_provider?: string;
413
- };
414
- type LlmapiSearchResponse = {
415
- extra_fields?: LlmapiSearchExtraFields;
416
- /**
417
- * List of search results.
418
- */
419
- results?: Array<LlmapiSearchResult>;
420
- usage?: LlmapiSearchUsage;
421
- };
422
- type LlmapiSearchResult = {
423
- /**
424
- * Optional publication or last updated date.
425
- */
426
- date?: string;
427
- /**
428
- * Text snippet from the result.
429
- */
430
- snippet?: string;
431
- /**
432
- * Title of the search result.
433
- */
434
- title?: string;
435
- /**
436
- * URL of the search result.
437
- */
438
- url?: string;
439
- };
440
- /**
441
- * Usage contains usage information.
442
- */
443
- type LlmapiSearchUsage = {
444
- /**
445
- * CostMicroUSD is the cost of this search in micro-dollars (USD × 1,000,000).
446
- */
447
- cost_micro_usd?: number;
448
- };
449
311
  /**
450
312
  * Thinking configures extended thinking for Anthropic models
451
313
  */
@@ -2552,112 +2414,6 @@ type UseModelsResult = {
2552
2414
  */
2553
2415
  declare function useModels(options?: UseModelsOptions): UseModelsResult;
2554
2416
 
2555
- /**
2556
- * @inline
2557
- */
2558
- type UseSearchOptions = {
2559
- /**
2560
- * Custom function to get auth token for API calls
2561
- */
2562
- getToken?: () => Promise<string | null>;
2563
- /**
2564
- * Optional base URL for the API requests.
2565
- */
2566
- baseUrl?: string;
2567
- /**
2568
- * Callback function to be called when an error is encountered.
2569
- */
2570
- onError?: (error: Error) => void;
2571
- };
2572
- type SearchOptions = {
2573
- /**
2574
- * Country code for search results (e.g., "us", "gb")
2575
- */
2576
- country?: string;
2577
- /**
2578
- * Maximum number of results to return
2579
- */
2580
- max_results?: number;
2581
- /**
2582
- * Maximum tokens per page
2583
- */
2584
- max_tokens_per_page?: number;
2585
- /**
2586
- * List of domains to filter results (max 20 domains)
2587
- */
2588
- search_domain_filter?: string[];
2589
- /**
2590
- * The search provider to use
2591
- */
2592
- search_tool_name?: string;
2593
- };
2594
- type UseSearchResult = {
2595
- isLoading: boolean;
2596
- search: (query: string | string[], options?: SearchOptions) => Promise<LlmapiSearchResponse | null>;
2597
- results: LlmapiSearchResult[] | null;
2598
- response: LlmapiSearchResponse | null;
2599
- error: Error | null;
2600
- };
2601
- /**
2602
- * React hook for performing search operations using the AI SDK.
2603
- *
2604
- * @param options - Configuration options for the search hook
2605
- * @returns Object containing search function, results, loading state, and error
2606
- * @category Hooks
2607
- *
2608
- * @example
2609
- * ```tsx
2610
- * const { search, results, isLoading } = useSearch({
2611
- * getToken: async () => "my-token"
2612
- * });
2613
- *
2614
- * const handleSearch = async () => {
2615
- * await search("What is ZetaChain?");
2616
- * };
2617
- * ```
2618
- */
2619
- declare function useSearch(options?: UseSearchOptions): UseSearchResult;
2620
-
2621
- /**
2622
- * @inline
2623
- */
2624
- type UseImageGenerationOptions = {
2625
- /**
2626
- * Custom function to get auth token for API calls
2627
- */
2628
- getToken?: () => Promise<string | null>;
2629
- /**
2630
- * Optional base URL for the API requests.
2631
- */
2632
- baseUrl?: string;
2633
- /**
2634
- * Callback function to be called when the generation finishes successfully.
2635
- */
2636
- onFinish?: (response: LlmapiImageGenerationResponse) => void;
2637
- /**
2638
- * Callback function to be called when an unexpected error is encountered.
2639
- */
2640
- onError?: (error: Error) => void;
2641
- };
2642
- type GenerateImageArgs = LlmapiImageGenerationRequest;
2643
- type GenerateImageResult = {
2644
- data: LlmapiImageGenerationResponse;
2645
- error: null;
2646
- } | {
2647
- data: null;
2648
- error: string;
2649
- };
2650
- type UseImageGenerationResult = {
2651
- isLoading: boolean;
2652
- generateImage: (args: GenerateImageArgs) => Promise<GenerateImageResult>;
2653
- stop: () => void;
2654
- };
2655
- /**
2656
- * React hook for generating images using the LLM API.
2657
- * @category Hooks
2658
- */
2659
- declare function useImageGeneration(options?: UseImageGenerationOptions): UseImageGenerationResult;
2660
-
2661
2417
  /**
2662
2418
  * Format memories into a context string that can be included in chat messages
2663
2419
  * @param memories Array of memories with similarity scores
@@ -3907,4 +3663,4 @@ declare function storeDriveToken(accessToken: string, expiresIn?: number, refres
3907
3663
  */
3908
3664
  declare function hasDriveCredentials(): boolean;
3909
3665
 
3910
- 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, BlobUrlManager, 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 SignMessageOptions, 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, deleteEncryptedFile, encryptData, exportPublicKey, extractConversationContext, fileExists, findFileIdBySourceUrl, formatMemoriesForChat, generateCompositeKey, generateConversationId, generateUniqueKey, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getCalendarAccessToken, getDriveAccessToken, getEncryptionKey, getGoogleDriveStoredToken, getValidCalendarToken, getValidDriveToken, handleCalendarCallback, handleDriveCallback, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, isCalendarCallback, isDriveCallback, isOPFSSupported, memoryStorageSchema, readEncryptedFile, refreshCalendarToken, refreshDriveToken, replaceUrlWithMCPPlaceholder, 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, writeEncryptedFile };
3666
+ 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, BlobUrlManager, 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 SignMessageOptions, 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 UseMemoryStorageOptions, type UseMemoryStorageResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UseSettingsOptions, type UseSettingsResult, chatStorageMigrations, chatStorageSchema, clearAllEncryptionKeys, clearAllKeyPairs, clearCalendarToken, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, createMemoryContextSystemMessage, decryptData, decryptDataBytes, deleteEncryptedFile, encryptData, exportPublicKey, extractConversationContext, fileExists, findFileIdBySourceUrl, formatMemoriesForChat, generateCompositeKey, generateConversationId, generateUniqueKey, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getCalendarAccessToken, getDriveAccessToken, getEncryptionKey, getGoogleDriveStoredToken, getValidCalendarToken, getValidDriveToken, handleCalendarCallback, handleDriveCallback, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, isCalendarCallback, isDriveCallback, isOPFSSupported, memoryStorageSchema, readEncryptedFile, refreshCalendarToken, refreshDriveToken, replaceUrlWithMCPPlaceholder, 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, useMemoryStorage, useModels, useOCR, usePdf, useSettings, userPreferencesStorageSchema, writeEncryptedFile };
@@ -5,96 +5,6 @@ import Model$1, { Associations } from '@nozbe/watermelondb/Model';
5
5
  import { Class } from '@nozbe/watermelondb/types';
6
6
  import { ReactNode, JSX } from 'react';
7
7
 
8
- /**
9
- * ExtraFields contains additional metadata such as provider/model information.
10
- */
11
- type LlmapiImageGenerationExtraFields = {
12
- /**
13
- * ModelRequested is the model identifier that the client asked for.
14
- */
15
- model_requested?: string;
16
- /**
17
- * Provider is the gateway that serviced this request.
18
- */
19
- provider?: string;
20
- /**
21
- * RequestType is always "image_generation".
22
- */
23
- request_type?: string;
24
- };
25
- type LlmapiImageGenerationImage = {
26
- /**
27
- * B64JSON is the base64 payload for models that can only return binary.
28
- */
29
- b64_json?: string;
30
- /**
31
- * URL is the signed URL to download the image.
32
- */
33
- url?: string;
34
- };
35
- type LlmapiImageGenerationRequest = {
36
- /**
37
- * Model is the model identifier to use for generation (e.g., "gpt-image-1").
38
- */
39
- model: string;
40
- /**
41
- * Prompt is the text description of the desired image.
42
- */
43
- prompt: string;
44
- /**
45
- * Quality targets a quality preset (e.g., "auto", "high").
46
- */
47
- quality?: string;
48
- /**
49
- * ResponseFormat controls how the generated image is returned (e.g., "url" or "b64_json").
50
- */
51
- response_format?: string;
52
- /**
53
- * Size controls the dimensions of the generated image (e.g., "1024x1024").
54
- */
55
- size?: string;
56
- };
57
- type LlmapiImageGenerationResponse = {
58
- /**
59
- * Created is the Unix timestamp when the image was generated.
60
- */
61
- created?: number;
62
- extra_fields?: LlmapiImageGenerationExtraFields;
63
- /**
64
- * Images contains the generated images.
65
- */
66
- images?: Array<LlmapiImageGenerationImage>;
67
- /**
68
- * Model is the model identifier that generated the image.
69
- */
70
- model?: string;
71
- /**
72
- * Provider is the gateway that produced the image.
73
- */
74
- provider?: string;
75
- usage?: LlmapiImageGenerationUsage;
76
- };
77
- /**
78
- * Usage documents token usage (when available).
79
- */
80
- type LlmapiImageGenerationUsage = {
81
- /**
82
- * CostMicroUSD is the inference cost for this image generation request
83
- */
84
- cost_micro_usd?: number;
85
- /**
86
- * InputTokens is the number of tokens sent in the prompt.
87
- */
88
- input_tokens?: number;
89
- /**
90
- * OutputTokens is the number of tokens returned by the model.
91
- */
92
- output_tokens?: number;
93
- /**
94
- * TotalTokens is the total number of tokens consumed.
95
- */
96
- total_tokens?: number;
97
- };
98
8
  /**
99
9
  * Message is the generated message
100
10
  */
@@ -398,54 +308,6 @@ type LlmapiResponseUsage = {
398
308
  * Role is the message role (system, user, assistant, tool)
399
309
  */
400
310
  type LlmapiRole = string;
401
- /**
402
- * ExtraFields contains additional metadata.
403
- */
404
- type LlmapiSearchExtraFields = {
405
- /**
406
- * RequestType is always "search".
407
- */
408
- request_type?: string;
409
- /**
410
- * SearchProvider is the search provider used (e.g., "perplexity", "google-pse").
411
- */
412
- search_provider?: string;
413
- };
414
- type LlmapiSearchResponse = {
415
- extra_fields?: LlmapiSearchExtraFields;
416
- /**
417
- * List of search results.
418
- */
419
- results?: Array<LlmapiSearchResult>;
420
- usage?: LlmapiSearchUsage;
421
- };
422
- type LlmapiSearchResult = {
423
- /**
424
- * Optional publication or last updated date.
425
- */
426
- date?: string;
427
- /**
428
- * Text snippet from the result.
429
- */
430
- snippet?: string;
431
- /**
432
- * Title of the search result.
433
- */
434
- title?: string;
435
- /**
436
- * URL of the search result.
437
- */
438
- url?: string;
439
- };
440
- /**
441
- * Usage contains usage information.
442
- */
443
- type LlmapiSearchUsage = {
444
- /**
445
- * CostMicroUSD is the cost of this search in micro-dollars (USD × 1,000,000).
446
- */
447
- cost_micro_usd?: number;
448
- };
449
311
  /**
450
312
  * Thinking configures extended thinking for Anthropic models
451
313
  */
@@ -2552,112 +2414,6 @@ type UseModelsResult = {
2552
2414
  */
2553
2415
  declare function useModels(options?: UseModelsOptions): UseModelsResult;
2554
2416
 
2555
- /**
2556
- * @inline
2557
- */
2558
- type UseSearchOptions = {
2559
- /**
2560
- * Custom function to get auth token for API calls
2561
- */
2562
- getToken?: () => Promise<string | null>;
2563
- /**
2564
- * Optional base URL for the API requests.
2565
- */
2566
- baseUrl?: string;
2567
- /**
2568
- * Callback function to be called when an error is encountered.
2569
- */
2570
- onError?: (error: Error) => void;
2571
- };
2572
- type SearchOptions = {
2573
- /**
2574
- * Country code for search results (e.g., "us", "gb")
2575
- */
2576
- country?: string;
2577
- /**
2578
- * Maximum number of results to return
2579
- */
2580
- max_results?: number;
2581
- /**
2582
- * Maximum tokens per page
2583
- */
2584
- max_tokens_per_page?: number;
2585
- /**
2586
- * List of domains to filter results (max 20 domains)
2587
- */
2588
- search_domain_filter?: string[];
2589
- /**
2590
- * The search provider to use
2591
- */
2592
- search_tool_name?: string;
2593
- };
2594
- type UseSearchResult = {
2595
- isLoading: boolean;
2596
- search: (query: string | string[], options?: SearchOptions) => Promise<LlmapiSearchResponse | null>;
2597
- results: LlmapiSearchResult[] | null;
2598
- response: LlmapiSearchResponse | null;
2599
- error: Error | null;
2600
- };
2601
- /**
2602
- * React hook for performing search operations using the AI SDK.
2603
- *
2604
- * @param options - Configuration options for the search hook
2605
- * @returns Object containing search function, results, loading state, and error
2606
- * @category Hooks
2607
- *
2608
- * @example
2609
- * ```tsx
2610
- * const { search, results, isLoading } = useSearch({
2611
- * getToken: async () => "my-token"
2612
- * });
2613
- *
2614
- * const handleSearch = async () => {
2615
- * await search("What is ZetaChain?");
2616
- * };
2617
- * ```
2618
- */
2619
- declare function useSearch(options?: UseSearchOptions): UseSearchResult;
2620
-
2621
- /**
2622
- * @inline
2623
- */
2624
- type UseImageGenerationOptions = {
2625
- /**
2626
- * Custom function to get auth token for API calls
2627
- */
2628
- getToken?: () => Promise<string | null>;
2629
- /**
2630
- * Optional base URL for the API requests.
2631
- */
2632
- baseUrl?: string;
2633
- /**
2634
- * Callback function to be called when the generation finishes successfully.
2635
- */
2636
- onFinish?: (response: LlmapiImageGenerationResponse) => void;
2637
- /**
2638
- * Callback function to be called when an unexpected error is encountered.
2639
- */
2640
- onError?: (error: Error) => void;
2641
- };
2642
- type GenerateImageArgs = LlmapiImageGenerationRequest;
2643
- type GenerateImageResult = {
2644
- data: LlmapiImageGenerationResponse;
2645
- error: null;
2646
- } | {
2647
- data: null;
2648
- error: string;
2649
- };
2650
- type UseImageGenerationResult = {
2651
- isLoading: boolean;
2652
- generateImage: (args: GenerateImageArgs) => Promise<GenerateImageResult>;
2653
- stop: () => void;
2654
- };
2655
- /**
2656
- * React hook for generating images using the LLM API.
2657
- * @category Hooks
2658
- */
2659
- declare function useImageGeneration(options?: UseImageGenerationOptions): UseImageGenerationResult;
2660
-
2661
2417
  /**
2662
2418
  * Format memories into a context string that can be included in chat messages
2663
2419
  * @param memories Array of memories with similarity scores
@@ -3907,4 +3663,4 @@ declare function storeDriveToken(accessToken: string, expiresIn?: number, refres
3907
3663
  */
3908
3664
  declare function hasDriveCredentials(): boolean;
3909
3665
 
3910
- 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, BlobUrlManager, 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 SignMessageOptions, 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, deleteEncryptedFile, encryptData, exportPublicKey, extractConversationContext, fileExists, findFileIdBySourceUrl, formatMemoriesForChat, generateCompositeKey, generateConversationId, generateUniqueKey, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getCalendarAccessToken, getDriveAccessToken, getEncryptionKey, getGoogleDriveStoredToken, getValidCalendarToken, getValidDriveToken, handleCalendarCallback, handleDriveCallback, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, isCalendarCallback, isDriveCallback, isOPFSSupported, memoryStorageSchema, readEncryptedFile, refreshCalendarToken, refreshDriveToken, replaceUrlWithMCPPlaceholder, 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, writeEncryptedFile };
3666
+ 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, BlobUrlManager, 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 SignMessageOptions, 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 UseMemoryStorageOptions, type UseMemoryStorageResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UseSettingsOptions, type UseSettingsResult, chatStorageMigrations, chatStorageSchema, clearAllEncryptionKeys, clearAllKeyPairs, clearCalendarToken, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, createMemoryContextSystemMessage, decryptData, decryptDataBytes, deleteEncryptedFile, encryptData, exportPublicKey, extractConversationContext, fileExists, findFileIdBySourceUrl, formatMemoriesForChat, generateCompositeKey, generateConversationId, generateUniqueKey, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getCalendarAccessToken, getDriveAccessToken, getEncryptionKey, getGoogleDriveStoredToken, getValidCalendarToken, getValidDriveToken, handleCalendarCallback, handleDriveCallback, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, isCalendarCallback, isDriveCallback, isOPFSSupported, memoryStorageSchema, readEncryptedFile, refreshCalendarToken, refreshDriveToken, replaceUrlWithMCPPlaceholder, 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, useMemoryStorage, useModels, useOCR, usePdf, useSettings, userPreferencesStorageSchema, writeEncryptedFile };