@reverbia/sdk 1.0.0-next.20260110210906 → 1.0.0-next.20260110214809
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.cjs +4 -3
- package/dist/expo/index.d.mts +10 -3
- package/dist/expo/index.d.ts +10 -3
- package/dist/expo/index.mjs +4 -3
- package/dist/react/index.cjs +8 -6
- package/dist/react/index.d.mts +11 -4
- package/dist/react/index.d.ts +11 -4
- package/dist/react/index.mjs +8 -6
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -3191,17 +3191,18 @@ async function requestEncryptionKey(walletAddress, signMessage, embeddedWalletSi
|
|
|
3191
3191
|
if (existingKey) {
|
|
3192
3192
|
return;
|
|
3193
3193
|
}
|
|
3194
|
+
const signOptions = { showWalletUIs: false };
|
|
3194
3195
|
let signature;
|
|
3195
3196
|
try {
|
|
3196
3197
|
if (embeddedWalletSigner) {
|
|
3197
|
-
signature = await embeddedWalletSigner(SIGN_MESSAGE);
|
|
3198
|
+
signature = await embeddedWalletSigner(SIGN_MESSAGE, signOptions);
|
|
3198
3199
|
} else {
|
|
3199
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
3200
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
3200
3201
|
}
|
|
3201
3202
|
} catch (error) {
|
|
3202
3203
|
if (embeddedWalletSigner && error instanceof Error) {
|
|
3203
3204
|
console.warn("Embedded wallet signing failed, falling back to standard signMessage:", error.message);
|
|
3204
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
3205
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
3205
3206
|
} else {
|
|
3206
3207
|
throw error;
|
|
3207
3208
|
}
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -695,17 +695,24 @@ interface MemoryExtractionResult {
|
|
|
695
695
|
items: MemoryItem$1[];
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
+
/**
|
|
699
|
+
* Options for signing messages.
|
|
700
|
+
*/
|
|
701
|
+
interface SignMessageOptions {
|
|
702
|
+
/** Whether to show wallet UI during signing. Default: true */
|
|
703
|
+
showWalletUIs?: boolean;
|
|
704
|
+
}
|
|
698
705
|
/**
|
|
699
706
|
* Type for the signMessage function that client must provide.
|
|
700
|
-
* This is typically from Privy's useSignMessage hook
|
|
707
|
+
* This is typically from Privy's useSignMessage hook.
|
|
701
708
|
*/
|
|
702
|
-
type SignMessageFn = (message: string) => Promise<string>;
|
|
709
|
+
type SignMessageFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
703
710
|
/**
|
|
704
711
|
* Type for embedded wallet signer function that enables silent signing.
|
|
705
712
|
* For Privy embedded wallets, this can sign programmatically without user interaction
|
|
706
713
|
* when configured correctly in the Privy dashboard.
|
|
707
714
|
*/
|
|
708
|
-
type EmbeddedWalletSignerFn = (message: string) => Promise<string>;
|
|
715
|
+
type EmbeddedWalletSignerFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
709
716
|
|
|
710
717
|
type MemoryType = "identity" | "preference" | "project" | "skill" | "constraint";
|
|
711
718
|
interface MemoryItem {
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -695,17 +695,24 @@ interface MemoryExtractionResult {
|
|
|
695
695
|
items: MemoryItem$1[];
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
+
/**
|
|
699
|
+
* Options for signing messages.
|
|
700
|
+
*/
|
|
701
|
+
interface SignMessageOptions {
|
|
702
|
+
/** Whether to show wallet UI during signing. Default: true */
|
|
703
|
+
showWalletUIs?: boolean;
|
|
704
|
+
}
|
|
698
705
|
/**
|
|
699
706
|
* Type for the signMessage function that client must provide.
|
|
700
|
-
* This is typically from Privy's useSignMessage hook
|
|
707
|
+
* This is typically from Privy's useSignMessage hook.
|
|
701
708
|
*/
|
|
702
|
-
type SignMessageFn = (message: string) => Promise<string>;
|
|
709
|
+
type SignMessageFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
703
710
|
/**
|
|
704
711
|
* Type for embedded wallet signer function that enables silent signing.
|
|
705
712
|
* For Privy embedded wallets, this can sign programmatically without user interaction
|
|
706
713
|
* when configured correctly in the Privy dashboard.
|
|
707
714
|
*/
|
|
708
|
-
type EmbeddedWalletSignerFn = (message: string) => Promise<string>;
|
|
715
|
+
type EmbeddedWalletSignerFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
709
716
|
|
|
710
717
|
type MemoryType = "identity" | "preference" | "project" | "skill" | "constraint";
|
|
711
718
|
interface MemoryItem {
|
package/dist/expo/index.mjs
CHANGED
|
@@ -3155,17 +3155,18 @@ async function requestEncryptionKey(walletAddress, signMessage, embeddedWalletSi
|
|
|
3155
3155
|
if (existingKey) {
|
|
3156
3156
|
return;
|
|
3157
3157
|
}
|
|
3158
|
+
const signOptions = { showWalletUIs: false };
|
|
3158
3159
|
let signature;
|
|
3159
3160
|
try {
|
|
3160
3161
|
if (embeddedWalletSigner) {
|
|
3161
|
-
signature = await embeddedWalletSigner(SIGN_MESSAGE);
|
|
3162
|
+
signature = await embeddedWalletSigner(SIGN_MESSAGE, signOptions);
|
|
3162
3163
|
} else {
|
|
3163
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
3164
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
3164
3165
|
}
|
|
3165
3166
|
} catch (error) {
|
|
3166
3167
|
if (embeddedWalletSigner && error instanceof Error) {
|
|
3167
3168
|
console.warn("Embedded wallet signing failed, falling back to standard signMessage:", error.message);
|
|
3168
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
3169
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
3169
3170
|
} else {
|
|
3170
3171
|
throw error;
|
|
3171
3172
|
}
|
package/dist/react/index.cjs
CHANGED
|
@@ -2169,17 +2169,18 @@ async function requestEncryptionKey(walletAddress, signMessage, embeddedWalletSi
|
|
|
2169
2169
|
if (existingKey) {
|
|
2170
2170
|
return;
|
|
2171
2171
|
}
|
|
2172
|
+
const signOptions = { showWalletUIs: false };
|
|
2172
2173
|
let signature;
|
|
2173
2174
|
try {
|
|
2174
2175
|
if (embeddedWalletSigner) {
|
|
2175
|
-
signature = await embeddedWalletSigner(SIGN_MESSAGE);
|
|
2176
|
+
signature = await embeddedWalletSigner(SIGN_MESSAGE, signOptions);
|
|
2176
2177
|
} else {
|
|
2177
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
2178
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
2178
2179
|
}
|
|
2179
2180
|
} catch (error) {
|
|
2180
2181
|
if (embeddedWalletSigner && error instanceof Error) {
|
|
2181
2182
|
console.warn("Embedded wallet signing failed, falling back to standard signMessage:", error.message);
|
|
2182
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
2183
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
2183
2184
|
} else {
|
|
2184
2185
|
throw error;
|
|
2185
2186
|
}
|
|
@@ -2339,17 +2340,18 @@ async function requestKeyPair(walletAddress, signMessage, embeddedWalletSigner)
|
|
|
2339
2340
|
`Failed to load persisted keypair, generating new one: ${error instanceof Error ? error.message : String(error)}`
|
|
2340
2341
|
);
|
|
2341
2342
|
}
|
|
2343
|
+
const signOptions = { showWalletUIs: false };
|
|
2342
2344
|
let signature;
|
|
2343
2345
|
try {
|
|
2344
2346
|
if (embeddedWalletSigner) {
|
|
2345
|
-
signature = await embeddedWalletSigner(SIGN_MESSAGE);
|
|
2347
|
+
signature = await embeddedWalletSigner(SIGN_MESSAGE, signOptions);
|
|
2346
2348
|
} else {
|
|
2347
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
2349
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
2348
2350
|
}
|
|
2349
2351
|
} catch (error) {
|
|
2350
2352
|
if (embeddedWalletSigner && error instanceof Error) {
|
|
2351
2353
|
console.warn("Embedded wallet signing failed, falling back to standard signMessage:", error.message);
|
|
2352
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
2354
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
2353
2355
|
} else {
|
|
2354
2356
|
throw error;
|
|
2355
2357
|
}
|
package/dist/react/index.d.mts
CHANGED
|
@@ -1131,17 +1131,24 @@ declare function decryptDataBytes(encryptedHex: string, address: string): Promis
|
|
|
1131
1131
|
* Checks if an encryption key exists in memory for the given wallet address
|
|
1132
1132
|
*/
|
|
1133
1133
|
declare function hasEncryptionKey(address: string): boolean;
|
|
1134
|
+
/**
|
|
1135
|
+
* Options for signing messages.
|
|
1136
|
+
*/
|
|
1137
|
+
interface SignMessageOptions {
|
|
1138
|
+
/** Whether to show wallet UI during signing. Default: true */
|
|
1139
|
+
showWalletUIs?: boolean;
|
|
1140
|
+
}
|
|
1134
1141
|
/**
|
|
1135
1142
|
* Type for the signMessage function that client must provide.
|
|
1136
|
-
* This is typically from Privy's useSignMessage hook
|
|
1143
|
+
* This is typically from Privy's useSignMessage hook.
|
|
1137
1144
|
*/
|
|
1138
|
-
type SignMessageFn = (message: string) => Promise<string>;
|
|
1145
|
+
type SignMessageFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
1139
1146
|
/**
|
|
1140
1147
|
* Type for embedded wallet signer function that enables silent signing.
|
|
1141
1148
|
* For Privy embedded wallets, this can sign programmatically without user interaction
|
|
1142
1149
|
* when configured correctly in the Privy dashboard.
|
|
1143
1150
|
*/
|
|
1144
|
-
type EmbeddedWalletSignerFn = (message: string) => Promise<string>;
|
|
1151
|
+
type EmbeddedWalletSignerFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
1145
1152
|
/**
|
|
1146
1153
|
* Requests the user to sign a message to generate an encryption key.
|
|
1147
1154
|
* If a key already exists in memory for the given wallet, resolves immediately.
|
|
@@ -3900,4 +3907,4 @@ declare function storeDriveToken(accessToken: string, expiresIn?: number, refres
|
|
|
3900
3907
|
*/
|
|
3901
3908
|
declare function hasDriveCredentials(): boolean;
|
|
3902
3909
|
|
|
3903
|
-
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 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 };
|
|
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 };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1131,17 +1131,24 @@ declare function decryptDataBytes(encryptedHex: string, address: string): Promis
|
|
|
1131
1131
|
* Checks if an encryption key exists in memory for the given wallet address
|
|
1132
1132
|
*/
|
|
1133
1133
|
declare function hasEncryptionKey(address: string): boolean;
|
|
1134
|
+
/**
|
|
1135
|
+
* Options for signing messages.
|
|
1136
|
+
*/
|
|
1137
|
+
interface SignMessageOptions {
|
|
1138
|
+
/** Whether to show wallet UI during signing. Default: true */
|
|
1139
|
+
showWalletUIs?: boolean;
|
|
1140
|
+
}
|
|
1134
1141
|
/**
|
|
1135
1142
|
* Type for the signMessage function that client must provide.
|
|
1136
|
-
* This is typically from Privy's useSignMessage hook
|
|
1143
|
+
* This is typically from Privy's useSignMessage hook.
|
|
1137
1144
|
*/
|
|
1138
|
-
type SignMessageFn = (message: string) => Promise<string>;
|
|
1145
|
+
type SignMessageFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
1139
1146
|
/**
|
|
1140
1147
|
* Type for embedded wallet signer function that enables silent signing.
|
|
1141
1148
|
* For Privy embedded wallets, this can sign programmatically without user interaction
|
|
1142
1149
|
* when configured correctly in the Privy dashboard.
|
|
1143
1150
|
*/
|
|
1144
|
-
type EmbeddedWalletSignerFn = (message: string) => Promise<string>;
|
|
1151
|
+
type EmbeddedWalletSignerFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
1145
1152
|
/**
|
|
1146
1153
|
* Requests the user to sign a message to generate an encryption key.
|
|
1147
1154
|
* If a key already exists in memory for the given wallet, resolves immediately.
|
|
@@ -3900,4 +3907,4 @@ declare function storeDriveToken(accessToken: string, expiresIn?: number, refres
|
|
|
3900
3907
|
*/
|
|
3901
3908
|
declare function hasDriveCredentials(): boolean;
|
|
3902
3909
|
|
|
3903
|
-
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 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 };
|
|
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 };
|
package/dist/react/index.mjs
CHANGED
|
@@ -2030,17 +2030,18 @@ async function requestEncryptionKey(walletAddress, signMessage, embeddedWalletSi
|
|
|
2030
2030
|
if (existingKey) {
|
|
2031
2031
|
return;
|
|
2032
2032
|
}
|
|
2033
|
+
const signOptions = { showWalletUIs: false };
|
|
2033
2034
|
let signature;
|
|
2034
2035
|
try {
|
|
2035
2036
|
if (embeddedWalletSigner) {
|
|
2036
|
-
signature = await embeddedWalletSigner(SIGN_MESSAGE);
|
|
2037
|
+
signature = await embeddedWalletSigner(SIGN_MESSAGE, signOptions);
|
|
2037
2038
|
} else {
|
|
2038
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
2039
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
2039
2040
|
}
|
|
2040
2041
|
} catch (error) {
|
|
2041
2042
|
if (embeddedWalletSigner && error instanceof Error) {
|
|
2042
2043
|
console.warn("Embedded wallet signing failed, falling back to standard signMessage:", error.message);
|
|
2043
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
2044
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
2044
2045
|
} else {
|
|
2045
2046
|
throw error;
|
|
2046
2047
|
}
|
|
@@ -2200,17 +2201,18 @@ async function requestKeyPair(walletAddress, signMessage, embeddedWalletSigner)
|
|
|
2200
2201
|
`Failed to load persisted keypair, generating new one: ${error instanceof Error ? error.message : String(error)}`
|
|
2201
2202
|
);
|
|
2202
2203
|
}
|
|
2204
|
+
const signOptions = { showWalletUIs: false };
|
|
2203
2205
|
let signature;
|
|
2204
2206
|
try {
|
|
2205
2207
|
if (embeddedWalletSigner) {
|
|
2206
|
-
signature = await embeddedWalletSigner(SIGN_MESSAGE);
|
|
2208
|
+
signature = await embeddedWalletSigner(SIGN_MESSAGE, signOptions);
|
|
2207
2209
|
} else {
|
|
2208
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
2210
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
2209
2211
|
}
|
|
2210
2212
|
} catch (error) {
|
|
2211
2213
|
if (embeddedWalletSigner && error instanceof Error) {
|
|
2212
2214
|
console.warn("Embedded wallet signing failed, falling back to standard signMessage:", error.message);
|
|
2213
|
-
signature = await signMessage(SIGN_MESSAGE);
|
|
2215
|
+
signature = await signMessage(SIGN_MESSAGE, signOptions);
|
|
2214
2216
|
} else {
|
|
2215
2217
|
throw error;
|
|
2216
2218
|
}
|