@anuma/sdk 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expo/index.cjs +316 -194
- package/dist/expo/index.d.mts +64 -2
- package/dist/expo/index.d.ts +64 -2
- package/dist/expo/index.mjs +234 -117
- package/dist/react/index.cjs +403 -281
- package/dist/react/index.d.mts +64 -2
- package/dist/react/index.d.ts +64 -2
- package/dist/react/index.mjs +276 -159
- package/dist/server/index.cjs +437 -388
- package/dist/server/index.d.mts +4 -1
- package/dist/server/index.d.ts +4 -1
- package/dist/server/index.mjs +312 -263
- package/package.json +1 -1
package/dist/expo/index.d.mts
CHANGED
|
@@ -6341,8 +6341,10 @@ declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageR
|
|
|
6341
6341
|
* - v33: Added embedding_model column to memory_vault so stale-model vectors are
|
|
6342
6342
|
* detectable and re-embeddable after an embedding-model change (null = legacy
|
|
6343
6343
|
* rows, grandfathered as compatible with the current model)
|
|
6344
|
+
* - v35: Added conversation_memory table recording which vault memories a
|
|
6345
|
+
* conversation drew on, so the conversation-level Memories panel survives reload
|
|
6344
6346
|
*/
|
|
6345
|
-
declare const SDK_SCHEMA_VERSION =
|
|
6347
|
+
declare const SDK_SCHEMA_VERSION = 35;
|
|
6346
6348
|
/**
|
|
6347
6349
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
6348
6350
|
*
|
|
@@ -6420,6 +6422,7 @@ declare const sdkSchema: Readonly<{
|
|
|
6420
6422
|
* - v30 → v31: Added `user_id` column to memory_entity for multi-user scoping of the W5 graph lane (with backfill from memory_vault.user_id)
|
|
6421
6423
|
* - v31 → v32: Added `pinned_at` column to conversations for pinning chats
|
|
6422
6424
|
* - v32 → v33: Added `embedding_model` column to memory_vault (null grandfathered as current-model-compatible)
|
|
6425
|
+
* - v34 → v35: Added `conversation_memory` table (conversation ↔ recalled memory ids)
|
|
6423
6426
|
*/
|
|
6424
6427
|
declare const sdkMigrations: Readonly<{
|
|
6425
6428
|
validated: true;
|
|
@@ -6575,6 +6578,65 @@ declare class DatabaseManager {
|
|
|
6575
6578
|
private handleSchemaMigration;
|
|
6576
6579
|
}
|
|
6577
6580
|
|
|
6581
|
+
/**
|
|
6582
|
+
* A memory a conversation drew on, recorded so the conversation-level Memories
|
|
6583
|
+
* panel can be rebuilt after a reload. Stores only the vault memory id (+ recall
|
|
6584
|
+
* score) — the snippet/topic/scope are resolved from the memory_vault by id, so
|
|
6585
|
+
* no memory content is duplicated here.
|
|
6586
|
+
*/
|
|
6587
|
+
declare class ConversationMemory extends Model {
|
|
6588
|
+
static table: string;
|
|
6589
|
+
static associations: Associations;
|
|
6590
|
+
conversationId: string;
|
|
6591
|
+
memoryId: string;
|
|
6592
|
+
score: number;
|
|
6593
|
+
createdAt: Date;
|
|
6594
|
+
}
|
|
6595
|
+
|
|
6596
|
+
/**
|
|
6597
|
+
* Types for the conversation-memory storage module.
|
|
6598
|
+
*
|
|
6599
|
+
* A conversation-memory row links a conversation to a vault memory it drew on,
|
|
6600
|
+
* so the conversation Memories panel survives reload. Only the memory id and
|
|
6601
|
+
* recall score are stored; content lives in the encrypted memory_vault.
|
|
6602
|
+
*/
|
|
6603
|
+
/** Plain object representation of a conversation-memory record. */
|
|
6604
|
+
interface StoredConversationMemory {
|
|
6605
|
+
/** WatermelonDB internal ID */
|
|
6606
|
+
uniqueId: string;
|
|
6607
|
+
/** The conversation this memory was drawn on in */
|
|
6608
|
+
conversationId: string;
|
|
6609
|
+
/** The memory_vault record id this row points at */
|
|
6610
|
+
memoryId: string;
|
|
6611
|
+
/** Recall relevance score (~0–1) at the time it was recorded */
|
|
6612
|
+
score: number;
|
|
6613
|
+
createdAt: Date;
|
|
6614
|
+
}
|
|
6615
|
+
/** One memory drawn on during a turn, passed to addConversationMemoriesOp. */
|
|
6616
|
+
interface ConversationMemoryInput {
|
|
6617
|
+
memoryId: string;
|
|
6618
|
+
score: number;
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6621
|
+
/** Context required by conversation-memory operations. */
|
|
6622
|
+
interface ConversationMemoryOperationsContext {
|
|
6623
|
+
database: Database;
|
|
6624
|
+
conversationMemoryCollection: Collection<ConversationMemory>;
|
|
6625
|
+
}
|
|
6626
|
+
/** Convert a WatermelonDB ConversationMemory model to a plain object. */
|
|
6627
|
+
declare function conversationMemoryToStored(row: ConversationMemory): StoredConversationMemory;
|
|
6628
|
+
/**
|
|
6629
|
+
* Record the memories a turn drew on for a conversation. Dedupes on
|
|
6630
|
+
* (conversation_id, memory_id) against existing rows, keeps insertion order, and
|
|
6631
|
+
* prunes the oldest rows beyond MAX_PER_CONVERSATION. No-ops on an empty
|
|
6632
|
+
* conversation id or empty item list.
|
|
6633
|
+
*/
|
|
6634
|
+
declare function addConversationMemoriesOp(ctx: ConversationMemoryOperationsContext, conversationId: string, items: ConversationMemoryInput[]): Promise<void>;
|
|
6635
|
+
/** List a conversation's recorded memories, oldest first. */
|
|
6636
|
+
declare function getConversationMemoriesOp(ctx: ConversationMemoryOperationsContext, conversationId: string): Promise<StoredConversationMemory[]>;
|
|
6637
|
+
/** Delete all recorded memories for a conversation (e.g. incognito purge). */
|
|
6638
|
+
declare function clearConversationMemoriesOp(ctx: ConversationMemoryOperationsContext, conversationId: string): Promise<void>;
|
|
6639
|
+
|
|
6578
6640
|
declare class VaultFolder extends Model {
|
|
6579
6641
|
static table: string;
|
|
6580
6642
|
name: string;
|
|
@@ -6871,4 +6933,4 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
6871
6933
|
*/
|
|
6872
6934
|
declare function createNotionTools(getAccessToken: () => string | null, requestNotionAccess: () => Promise<string>): ToolConfig[];
|
|
6873
6935
|
|
|
6874
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkingOptions, type ConsolidationFallbackReason, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type EmbeddedWalletSignerFn, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type FactType, type FileMetadata, type FlushResult, type GetMessagesPageOptions, INFERENCE_ID_HEADER, type LazyStoredConversation, type Logger, LoggerProvider, type LoggerProviderProps, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageRedactionResult, type MessageSkeleton, NOTION_OAUTH_CONFIG, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, PII_PATTERNS, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PromptPreProcessor, type PromptPreProcessorContext, type QuantizedEmbedding, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type TextChunk, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, buildNotionAuthUrl, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, cosineInt8, createAutoExtractor, createCryptoPricePreProcessor, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createNotionTools, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, ensureDefaultFoldersOp, exchangeNotionCode, extractAndRetain, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationsByProjectLazyOp, getConversationsLazyOp, getLogger, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, hasEncryptionKey, isPiiRedactor, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, preEmbedVaultMemories, quantizeEmbedding, queueManager, recall, reflect, refreshNotionAccessToken, registerNotionClient, requestEncryptionKey, resolvePiiRedactor, resumeStream, retain, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, setLogger, shouldChunkMessage, streamCancelPath, streamReplayPath, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, xhrTransport };
|
|
6936
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkingOptions, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type EmbeddedWalletSignerFn, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type FactType, type FileMetadata, type FlushResult, type GetMessagesPageOptions, INFERENCE_ID_HEADER, type LazyStoredConversation, type Logger, LoggerProvider, type LoggerProviderProps, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageRedactionResult, type MessageSkeleton, NOTION_OAUTH_CONFIG, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, PII_PATTERNS, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PromptPreProcessor, type PromptPreProcessorContext, type QuantizedEmbedding, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type TextChunk, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, buildNotionAuthUrl, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createCryptoPricePreProcessor, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createNotionTools, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, ensureDefaultFoldersOp, exchangeNotionCode, extractAndRetain, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getLogger, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, hasEncryptionKey, isPiiRedactor, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, preEmbedVaultMemories, quantizeEmbedding, queueManager, recall, reflect, refreshNotionAccessToken, registerNotionClient, requestEncryptionKey, resolvePiiRedactor, resumeStream, retain, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, setLogger, shouldChunkMessage, streamCancelPath, streamReplayPath, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, xhrTransport };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -6341,8 +6341,10 @@ declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageR
|
|
|
6341
6341
|
* - v33: Added embedding_model column to memory_vault so stale-model vectors are
|
|
6342
6342
|
* detectable and re-embeddable after an embedding-model change (null = legacy
|
|
6343
6343
|
* rows, grandfathered as compatible with the current model)
|
|
6344
|
+
* - v35: Added conversation_memory table recording which vault memories a
|
|
6345
|
+
* conversation drew on, so the conversation-level Memories panel survives reload
|
|
6344
6346
|
*/
|
|
6345
|
-
declare const SDK_SCHEMA_VERSION =
|
|
6347
|
+
declare const SDK_SCHEMA_VERSION = 35;
|
|
6346
6348
|
/**
|
|
6347
6349
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
6348
6350
|
*
|
|
@@ -6420,6 +6422,7 @@ declare const sdkSchema: Readonly<{
|
|
|
6420
6422
|
* - v30 → v31: Added `user_id` column to memory_entity for multi-user scoping of the W5 graph lane (with backfill from memory_vault.user_id)
|
|
6421
6423
|
* - v31 → v32: Added `pinned_at` column to conversations for pinning chats
|
|
6422
6424
|
* - v32 → v33: Added `embedding_model` column to memory_vault (null grandfathered as current-model-compatible)
|
|
6425
|
+
* - v34 → v35: Added `conversation_memory` table (conversation ↔ recalled memory ids)
|
|
6423
6426
|
*/
|
|
6424
6427
|
declare const sdkMigrations: Readonly<{
|
|
6425
6428
|
validated: true;
|
|
@@ -6575,6 +6578,65 @@ declare class DatabaseManager {
|
|
|
6575
6578
|
private handleSchemaMigration;
|
|
6576
6579
|
}
|
|
6577
6580
|
|
|
6581
|
+
/**
|
|
6582
|
+
* A memory a conversation drew on, recorded so the conversation-level Memories
|
|
6583
|
+
* panel can be rebuilt after a reload. Stores only the vault memory id (+ recall
|
|
6584
|
+
* score) — the snippet/topic/scope are resolved from the memory_vault by id, so
|
|
6585
|
+
* no memory content is duplicated here.
|
|
6586
|
+
*/
|
|
6587
|
+
declare class ConversationMemory extends Model {
|
|
6588
|
+
static table: string;
|
|
6589
|
+
static associations: Associations;
|
|
6590
|
+
conversationId: string;
|
|
6591
|
+
memoryId: string;
|
|
6592
|
+
score: number;
|
|
6593
|
+
createdAt: Date;
|
|
6594
|
+
}
|
|
6595
|
+
|
|
6596
|
+
/**
|
|
6597
|
+
* Types for the conversation-memory storage module.
|
|
6598
|
+
*
|
|
6599
|
+
* A conversation-memory row links a conversation to a vault memory it drew on,
|
|
6600
|
+
* so the conversation Memories panel survives reload. Only the memory id and
|
|
6601
|
+
* recall score are stored; content lives in the encrypted memory_vault.
|
|
6602
|
+
*/
|
|
6603
|
+
/** Plain object representation of a conversation-memory record. */
|
|
6604
|
+
interface StoredConversationMemory {
|
|
6605
|
+
/** WatermelonDB internal ID */
|
|
6606
|
+
uniqueId: string;
|
|
6607
|
+
/** The conversation this memory was drawn on in */
|
|
6608
|
+
conversationId: string;
|
|
6609
|
+
/** The memory_vault record id this row points at */
|
|
6610
|
+
memoryId: string;
|
|
6611
|
+
/** Recall relevance score (~0–1) at the time it was recorded */
|
|
6612
|
+
score: number;
|
|
6613
|
+
createdAt: Date;
|
|
6614
|
+
}
|
|
6615
|
+
/** One memory drawn on during a turn, passed to addConversationMemoriesOp. */
|
|
6616
|
+
interface ConversationMemoryInput {
|
|
6617
|
+
memoryId: string;
|
|
6618
|
+
score: number;
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6621
|
+
/** Context required by conversation-memory operations. */
|
|
6622
|
+
interface ConversationMemoryOperationsContext {
|
|
6623
|
+
database: Database;
|
|
6624
|
+
conversationMemoryCollection: Collection<ConversationMemory>;
|
|
6625
|
+
}
|
|
6626
|
+
/** Convert a WatermelonDB ConversationMemory model to a plain object. */
|
|
6627
|
+
declare function conversationMemoryToStored(row: ConversationMemory): StoredConversationMemory;
|
|
6628
|
+
/**
|
|
6629
|
+
* Record the memories a turn drew on for a conversation. Dedupes on
|
|
6630
|
+
* (conversation_id, memory_id) against existing rows, keeps insertion order, and
|
|
6631
|
+
* prunes the oldest rows beyond MAX_PER_CONVERSATION. No-ops on an empty
|
|
6632
|
+
* conversation id or empty item list.
|
|
6633
|
+
*/
|
|
6634
|
+
declare function addConversationMemoriesOp(ctx: ConversationMemoryOperationsContext, conversationId: string, items: ConversationMemoryInput[]): Promise<void>;
|
|
6635
|
+
/** List a conversation's recorded memories, oldest first. */
|
|
6636
|
+
declare function getConversationMemoriesOp(ctx: ConversationMemoryOperationsContext, conversationId: string): Promise<StoredConversationMemory[]>;
|
|
6637
|
+
/** Delete all recorded memories for a conversation (e.g. incognito purge). */
|
|
6638
|
+
declare function clearConversationMemoriesOp(ctx: ConversationMemoryOperationsContext, conversationId: string): Promise<void>;
|
|
6639
|
+
|
|
6578
6640
|
declare class VaultFolder extends Model {
|
|
6579
6641
|
static table: string;
|
|
6580
6642
|
name: string;
|
|
@@ -6871,4 +6933,4 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
6871
6933
|
*/
|
|
6872
6934
|
declare function createNotionTools(getAccessToken: () => string | null, requestNotionAccess: () => Promise<string>): ToolConfig[];
|
|
6873
6935
|
|
|
6874
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkingOptions, type ConsolidationFallbackReason, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type EmbeddedWalletSignerFn, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type FactType, type FileMetadata, type FlushResult, type GetMessagesPageOptions, INFERENCE_ID_HEADER, type LazyStoredConversation, type Logger, LoggerProvider, type LoggerProviderProps, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageRedactionResult, type MessageSkeleton, NOTION_OAUTH_CONFIG, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, PII_PATTERNS, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PromptPreProcessor, type PromptPreProcessorContext, type QuantizedEmbedding, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type TextChunk, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, buildNotionAuthUrl, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, cosineInt8, createAutoExtractor, createCryptoPricePreProcessor, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createNotionTools, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, ensureDefaultFoldersOp, exchangeNotionCode, extractAndRetain, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationsByProjectLazyOp, getConversationsLazyOp, getLogger, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, hasEncryptionKey, isPiiRedactor, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, preEmbedVaultMemories, quantizeEmbedding, queueManager, recall, reflect, refreshNotionAccessToken, registerNotionClient, requestEncryptionKey, resolvePiiRedactor, resumeStream, retain, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, setLogger, shouldChunkMessage, streamCancelPath, streamReplayPath, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, xhrTransport };
|
|
6936
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkingOptions, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type EmbeddedWalletSignerFn, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type FactType, type FileMetadata, type FlushResult, type GetMessagesPageOptions, INFERENCE_ID_HEADER, type LazyStoredConversation, type Logger, LoggerProvider, type LoggerProviderProps, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageRedactionResult, type MessageSkeleton, NOTION_OAUTH_CONFIG, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, PII_PATTERNS, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PromptPreProcessor, type PromptPreProcessorContext, type QuantizedEmbedding, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type TextChunk, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, buildNotionAuthUrl, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createCryptoPricePreProcessor, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createNotionTools, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, ensureDefaultFoldersOp, exchangeNotionCode, extractAndRetain, extractFacts, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getLogger, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, hasEncryptionKey, isPiiRedactor, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, preEmbedVaultMemories, quantizeEmbedding, queueManager, recall, reflect, refreshNotionAccessToken, registerNotionClient, requestEncryptionKey, resolvePiiRedactor, resumeStream, retain, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, setLogger, shouldChunkMessage, streamCancelPath, streamReplayPath, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, xhrTransport };
|