@anuma/sdk 8.2.0 → 9.1.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/README.md +19 -0
- package/dist/expo/index.cjs +10913 -10402
- package/dist/expo/index.d.mts +131 -5
- package/dist/expo/index.d.ts +131 -5
- package/dist/expo/index.mjs +10882 -10376
- package/dist/index.cjs +342 -25
- package/dist/index.d.mts +65 -1
- package/dist/index.d.ts +65 -1
- package/dist/index.mjs +340 -25
- package/dist/react/index.cjs +1797 -1286
- package/dist/react/index.d.mts +131 -5
- package/dist/react/index.d.ts +131 -5
- package/dist/react/index.mjs +2495 -1989
- package/dist/server/index.cjs +28 -4
- package/dist/server/index.d.mts +22 -3
- package/dist/server/index.d.ts +22 -3
- package/dist/server/index.mjs +28 -4
- package/dist/tools/selection/index.cjs +9 -3
- package/dist/tools/selection/index.mjs +9 -3
- package/package.json +1 -1
package/dist/expo/index.d.mts
CHANGED
|
@@ -3060,6 +3060,70 @@ declare function createWebSearchPreProcessor(options?: WebSearchPreProcessorOpti
|
|
|
3060
3060
|
*/
|
|
3061
3061
|
declare const xhrTransport: StreamingTransport;
|
|
3062
3062
|
|
|
3063
|
+
type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links";
|
|
3064
|
+
type ChatJson = null | boolean | number | string | ChatJson[] | {
|
|
3065
|
+
[key: string]: ChatJson;
|
|
3066
|
+
};
|
|
3067
|
+
/** Whole-record JSON data is encrypted on the device, including all text, vectors and tool events. */
|
|
3068
|
+
interface ChatRecord {
|
|
3069
|
+
kind: ChatRecordKind;
|
|
3070
|
+
id: string;
|
|
3071
|
+
conversationId: string;
|
|
3072
|
+
sortKey: number;
|
|
3073
|
+
createdAt: number;
|
|
3074
|
+
updatedAt: number;
|
|
3075
|
+
isDeleted: boolean;
|
|
3076
|
+
data: {
|
|
3077
|
+
[key: string]: ChatJson;
|
|
3078
|
+
};
|
|
3079
|
+
}
|
|
3080
|
+
interface ChatSnapshot {
|
|
3081
|
+
record: ChatRecord;
|
|
3082
|
+
version: number;
|
|
3083
|
+
serverUpdatedAt: string;
|
|
3084
|
+
}
|
|
3085
|
+
interface ChatWrite {
|
|
3086
|
+
record: ChatRecord;
|
|
3087
|
+
expectedVersion: number;
|
|
3088
|
+
}
|
|
3089
|
+
interface ChatListOptions {
|
|
3090
|
+
kind: ChatRecordKind;
|
|
3091
|
+
conversationId?: string;
|
|
3092
|
+
includeDeleted?: boolean;
|
|
3093
|
+
cursor?: string;
|
|
3094
|
+
limit?: number;
|
|
3095
|
+
signal?: AbortSignal;
|
|
3096
|
+
}
|
|
3097
|
+
interface ChatPage {
|
|
3098
|
+
items: ChatSnapshot[];
|
|
3099
|
+
nextCursor?: string;
|
|
3100
|
+
}
|
|
3101
|
+
/** Explicit versions protect edits; ambiguous writes are never replayed automatically. */
|
|
3102
|
+
interface ChatStore {
|
|
3103
|
+
get(kind: ChatRecordKind, id: string, signal?: AbortSignal): Promise<ChatSnapshot | null>;
|
|
3104
|
+
list(options: ChatListOptions): Promise<ChatPage>;
|
|
3105
|
+
putMany(writes: readonly ChatWrite[], signal?: AbortSignal): Promise<ChatSnapshot[]>;
|
|
3106
|
+
}
|
|
3107
|
+
interface RemoteChatStoreOptions {
|
|
3108
|
+
baseUrl: string;
|
|
3109
|
+
getToken: () => Promise<string | null>;
|
|
3110
|
+
keyId: string;
|
|
3111
|
+
encrypt: (plaintext: string) => Promise<string>;
|
|
3112
|
+
decrypt: (ciphertext: string) => Promise<string>;
|
|
3113
|
+
fetch?: typeof globalThis.fetch;
|
|
3114
|
+
timeoutMs?: number;
|
|
3115
|
+
signal?: AbortSignal;
|
|
3116
|
+
}
|
|
3117
|
+
declare class ChatStoreError extends Error {
|
|
3118
|
+
readonly status: number;
|
|
3119
|
+
readonly code?: string | undefined;
|
|
3120
|
+
readonly retryAfterMs?: number | undefined;
|
|
3121
|
+
constructor(message: string, status: number, code?: string | undefined, retryAfterMs?: number | undefined);
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
/** Connect to owner-scoped server storage using the account's canonical device-held cipher. */
|
|
3125
|
+
declare function createRemoteChatStore(options: RemoteChatStoreOptions): Promise<ChatStore>;
|
|
3126
|
+
|
|
3063
3127
|
/**
|
|
3064
3128
|
* Drop every cached plaintext title and pending decrypt promise.
|
|
3065
3129
|
*
|
|
@@ -6399,7 +6463,7 @@ interface TopicExtractOptions extends PortalLlmAuth {
|
|
|
6399
6463
|
* shape, or the model omitted its id. Callers must retry absent ids in a
|
|
6400
6464
|
* later sweep, never stamp them.
|
|
6401
6465
|
*/
|
|
6402
|
-
declare function extractEntitiesForMemories(memories: readonly TopicExtractionInput[], options: TopicExtractOptions): Promise<Map<string, ExtractedEntity[]>>;
|
|
6466
|
+
declare function extractEntitiesForMemories(memories: readonly TopicExtractionInput[], options: TopicExtractOptions, signal?: AbortSignal): Promise<Map<string, ExtractedEntity[]>>;
|
|
6403
6467
|
/**
|
|
6404
6468
|
* Why one memory was skipped by a topic sweep.
|
|
6405
6469
|
*
|
|
@@ -6435,6 +6499,8 @@ type TopicSkipReason = "excluded" | "link-declined" | "stamp-declined" | "llm-un
|
|
|
6435
6499
|
declare function isDegradedTopicSkip(reason: TopicSkipReason): boolean;
|
|
6436
6500
|
/** Outcome of one {@link extractAndLinkEntitiesForMemoriesOp} run. */
|
|
6437
6501
|
interface TopicExtractionRunResult {
|
|
6502
|
+
/** Another device owns the work; retry later without counting a failed attempt. */
|
|
6503
|
+
deferred?: boolean;
|
|
6438
6504
|
batchCount: number;
|
|
6439
6505
|
durationMs: number;
|
|
6440
6506
|
batches: TopicExtractionBatchDiagnostics[];
|
|
@@ -6585,6 +6651,12 @@ interface MemoryTopic {
|
|
|
6585
6651
|
memoryCount: number;
|
|
6586
6652
|
}
|
|
6587
6653
|
/** @public */
|
|
6654
|
+
interface MemoryCounts {
|
|
6655
|
+
live: number;
|
|
6656
|
+
archived: number;
|
|
6657
|
+
quarantined: number;
|
|
6658
|
+
}
|
|
6659
|
+
/** @public */
|
|
6588
6660
|
interface MemorySubscribeOptions {
|
|
6589
6661
|
/**
|
|
6590
6662
|
* Watch the whole table, soft-deleted rows included, and fire on row-SET
|
|
@@ -6677,6 +6749,8 @@ interface EmbeddingRepairOptions {
|
|
|
6677
6749
|
}
|
|
6678
6750
|
/** @public */
|
|
6679
6751
|
interface EmbeddingRepairResult {
|
|
6752
|
+
/** Another device owns the work; preserve the cursor and retry later. */
|
|
6753
|
+
deferred?: boolean;
|
|
6680
6754
|
scanned: number;
|
|
6681
6755
|
reembedded: number;
|
|
6682
6756
|
failed: number;
|
|
@@ -6704,6 +6778,15 @@ interface EmbeddingRepairResult {
|
|
|
6704
6778
|
* @public
|
|
6705
6779
|
*/
|
|
6706
6780
|
interface MemoryStore {
|
|
6781
|
+
/** Creates an account-scoped topic without requiring a memory. */
|
|
6782
|
+
createTopic?(name: string): Promise<string | null>;
|
|
6783
|
+
/** Imports local topic metadata without replacing server entries or tombstones. */
|
|
6784
|
+
importTopics?(topics: readonly {
|
|
6785
|
+
name: string;
|
|
6786
|
+
kind?: string;
|
|
6787
|
+
}[]): Promise<void>;
|
|
6788
|
+
/** Metadata-only counts for the live, archived and quarantined lists. */
|
|
6789
|
+
counts?(): Promise<MemoryCounts>;
|
|
6707
6790
|
/** Memories newest-first, decrypted, WITH `embedding` (Memory Graph edges read it). */
|
|
6708
6791
|
list(options?: MemoryListOptions): Promise<StoredVaultMemory[]>;
|
|
6709
6792
|
get(id: string): Promise<StoredVaultMemory | null>;
|
|
@@ -9626,6 +9709,39 @@ declare function memoryCipher(canonical: MemoryKeyRing): {
|
|
|
9626
9709
|
*/
|
|
9627
9710
|
declare function reencryptMemoryField(value: string, canonical: MemoryKeyRing, fallbacks?: readonly MemoryKeyRing[]): Promise<string>;
|
|
9628
9711
|
|
|
9712
|
+
/** @public */
|
|
9713
|
+
interface RemoteMemoryTopic {
|
|
9714
|
+
name: string;
|
|
9715
|
+
kind?: string;
|
|
9716
|
+
version: number;
|
|
9717
|
+
is_deleted: boolean;
|
|
9718
|
+
server_updated_at: string;
|
|
9719
|
+
}
|
|
9720
|
+
/** @public */
|
|
9721
|
+
interface RemoteTopicPersistence {
|
|
9722
|
+
topics(): Promise<RemoteMemoryTopic[]>;
|
|
9723
|
+
putTopic(topic: Pick<RemoteMemoryTopic, "name" | "kind" | "is_deleted">, expectedVersion: number): Promise<RemoteMemoryTopic>;
|
|
9724
|
+
importTopics(topics: readonly {
|
|
9725
|
+
name: string;
|
|
9726
|
+
kind?: string;
|
|
9727
|
+
}[], signal?: AbortSignal): Promise<void>;
|
|
9728
|
+
}
|
|
9729
|
+
|
|
9730
|
+
/** @public */
|
|
9731
|
+
type RemoteMemoryWorkKind = "topics" | "embeddings";
|
|
9732
|
+
/** @public */
|
|
9733
|
+
interface RemoteMemoryWorkLease {
|
|
9734
|
+
kind: RemoteMemoryWorkKind;
|
|
9735
|
+
token: string;
|
|
9736
|
+
processor_version: string;
|
|
9737
|
+
expires_at: string;
|
|
9738
|
+
}
|
|
9739
|
+
/** @public */
|
|
9740
|
+
interface RemoteMemoryWorkPersistence {
|
|
9741
|
+
claimWork(kind: RemoteMemoryWorkKind, processorVersion: string, token?: string): Promise<RemoteMemoryWorkLease | null>;
|
|
9742
|
+
releaseWork(kind: RemoteMemoryWorkKind, token: string): Promise<void>;
|
|
9743
|
+
}
|
|
9744
|
+
|
|
9629
9745
|
/** The nearby private-memory row. Content and kind_value are plaintext ONLY on the device. */
|
|
9630
9746
|
interface RemoteMemoryRow {
|
|
9631
9747
|
memory_id: string;
|
|
@@ -9765,7 +9881,12 @@ declare class RemoteMemoryError extends Error {
|
|
|
9765
9881
|
* No local database or replica, import/activation, automatic conflict retry or rollback.
|
|
9766
9882
|
* Migration must have activated the account under the canonical key before construction.
|
|
9767
9883
|
*/
|
|
9768
|
-
interface RemoteMemoryPersistence {
|
|
9884
|
+
interface RemoteMemoryPersistence extends RemoteTopicPersistence, RemoteMemoryWorkPersistence {
|
|
9885
|
+
counts(): Promise<MemoryCounts>;
|
|
9886
|
+
temporal(window: {
|
|
9887
|
+
start: number;
|
|
9888
|
+
end: number;
|
|
9889
|
+
}, limit?: number): Promise<string[]>;
|
|
9769
9890
|
get(memoryId: string, signal?: AbortSignal): Promise<RemoteMemoryRecord | null>;
|
|
9770
9891
|
/** One stable memory-id page; follow next_cursor to enumerate. Embeddings are opt-in. */
|
|
9771
9892
|
list(options?: RemoteMemoryListOptions): Promise<RemoteMemoryPage>;
|
|
@@ -9780,7 +9901,7 @@ interface RemoteMemoryPersistence {
|
|
|
9780
9901
|
putMany(writes: {
|
|
9781
9902
|
memory: RemoteMemoryRow;
|
|
9782
9903
|
expectedVersion: number | RemoteMemoryRecord;
|
|
9783
|
-
}[], signal?: AbortSignal): Promise<RemoteMemoryRecord[]>;
|
|
9904
|
+
}[], signal?: AbortSignal, leaseToken?: string): Promise<RemoteMemoryRecord[]>;
|
|
9784
9905
|
/** Candidate window plus counts for distinguishing empty storage from unavailable vectors. */
|
|
9785
9906
|
candidateSet(embedding: number[], options?: RemoteMemoryCandidateOptions): Promise<{
|
|
9786
9907
|
items: RemoteMemoryRecord[];
|
|
@@ -9816,6 +9937,11 @@ interface MemoryMigrationOptions extends Pick<RemoteMemoryPersistenceOptions, "b
|
|
|
9816
9937
|
allowSkipped?: boolean;
|
|
9817
9938
|
/** Re-embeds rows whose local vector nearby could not rank; without it those rows upload unembedded. */
|
|
9818
9939
|
embeddingOptions?: EmbeddingOptions;
|
|
9940
|
+
/** Explicitly account-owned topics for databases that are not marked singleTenant. */
|
|
9941
|
+
topics?: readonly {
|
|
9942
|
+
name: string;
|
|
9943
|
+
kind?: string;
|
|
9944
|
+
}[];
|
|
9819
9945
|
signal?: AbortSignal;
|
|
9820
9946
|
onProgress?: (progress: MemoryMigrationProgress) => void;
|
|
9821
9947
|
}
|
|
@@ -10428,7 +10554,7 @@ declare function generateEmbedding(text: string, options: EmbeddingOptions): Pro
|
|
|
10428
10554
|
* @param options - Embedding options
|
|
10429
10555
|
* @returns Array of embeddings in the same order as input texts
|
|
10430
10556
|
*/
|
|
10431
|
-
declare function generateEmbeddings(texts: string[], options: EmbeddingOptions): Promise<number[][]>;
|
|
10557
|
+
declare function generateEmbeddings(texts: string[], options: EmbeddingOptions, signal?: AbortSignal): Promise<number[][]>;
|
|
10432
10558
|
|
|
10433
10559
|
/**
|
|
10434
10560
|
* An ordinary message whose chunk vectors were built over `enc:v3:` ciphertext
|
|
@@ -11640,4 +11766,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11640
11766
|
*/
|
|
11641
11767
|
declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
|
|
11642
11768
|
|
|
11643
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateSelectPaymentWalletToolOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PaymentWallet, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SelectPaymentWalletResult, 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 StoredTopic, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WriteFailureReason, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSelectPaymentWalletTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptMessageEmbeddingFields, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptToolCallEventsOp, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, memoryCipher, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11769
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, type ChatJson, type ChatListOptions, Message as ChatMessage, type ChatPage, type ChatRecord, type ChatRecordKind, type ChatRole, type ChatSnapshot, type ChatStore, ChatStoreError, type ChatWrite, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateSelectPaymentWalletToolOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCounts, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PaymentWallet, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RemoteChatStoreOptions, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RemoteMemoryTopic, type RemoteMemoryWorkKind, type RemoteMemoryWorkLease, type RemoteMemoryWorkPersistence, type RemoteTopicPersistence, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SelectPaymentWalletResult, 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 StoredTopic, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WriteFailureReason, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteChatStore, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSelectPaymentWalletTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptMessageEmbeddingFields, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptToolCallEventsOp, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, memoryCipher, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -3060,6 +3060,70 @@ declare function createWebSearchPreProcessor(options?: WebSearchPreProcessorOpti
|
|
|
3060
3060
|
*/
|
|
3061
3061
|
declare const xhrTransport: StreamingTransport;
|
|
3062
3062
|
|
|
3063
|
+
type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links";
|
|
3064
|
+
type ChatJson = null | boolean | number | string | ChatJson[] | {
|
|
3065
|
+
[key: string]: ChatJson;
|
|
3066
|
+
};
|
|
3067
|
+
/** Whole-record JSON data is encrypted on the device, including all text, vectors and tool events. */
|
|
3068
|
+
interface ChatRecord {
|
|
3069
|
+
kind: ChatRecordKind;
|
|
3070
|
+
id: string;
|
|
3071
|
+
conversationId: string;
|
|
3072
|
+
sortKey: number;
|
|
3073
|
+
createdAt: number;
|
|
3074
|
+
updatedAt: number;
|
|
3075
|
+
isDeleted: boolean;
|
|
3076
|
+
data: {
|
|
3077
|
+
[key: string]: ChatJson;
|
|
3078
|
+
};
|
|
3079
|
+
}
|
|
3080
|
+
interface ChatSnapshot {
|
|
3081
|
+
record: ChatRecord;
|
|
3082
|
+
version: number;
|
|
3083
|
+
serverUpdatedAt: string;
|
|
3084
|
+
}
|
|
3085
|
+
interface ChatWrite {
|
|
3086
|
+
record: ChatRecord;
|
|
3087
|
+
expectedVersion: number;
|
|
3088
|
+
}
|
|
3089
|
+
interface ChatListOptions {
|
|
3090
|
+
kind: ChatRecordKind;
|
|
3091
|
+
conversationId?: string;
|
|
3092
|
+
includeDeleted?: boolean;
|
|
3093
|
+
cursor?: string;
|
|
3094
|
+
limit?: number;
|
|
3095
|
+
signal?: AbortSignal;
|
|
3096
|
+
}
|
|
3097
|
+
interface ChatPage {
|
|
3098
|
+
items: ChatSnapshot[];
|
|
3099
|
+
nextCursor?: string;
|
|
3100
|
+
}
|
|
3101
|
+
/** Explicit versions protect edits; ambiguous writes are never replayed automatically. */
|
|
3102
|
+
interface ChatStore {
|
|
3103
|
+
get(kind: ChatRecordKind, id: string, signal?: AbortSignal): Promise<ChatSnapshot | null>;
|
|
3104
|
+
list(options: ChatListOptions): Promise<ChatPage>;
|
|
3105
|
+
putMany(writes: readonly ChatWrite[], signal?: AbortSignal): Promise<ChatSnapshot[]>;
|
|
3106
|
+
}
|
|
3107
|
+
interface RemoteChatStoreOptions {
|
|
3108
|
+
baseUrl: string;
|
|
3109
|
+
getToken: () => Promise<string | null>;
|
|
3110
|
+
keyId: string;
|
|
3111
|
+
encrypt: (plaintext: string) => Promise<string>;
|
|
3112
|
+
decrypt: (ciphertext: string) => Promise<string>;
|
|
3113
|
+
fetch?: typeof globalThis.fetch;
|
|
3114
|
+
timeoutMs?: number;
|
|
3115
|
+
signal?: AbortSignal;
|
|
3116
|
+
}
|
|
3117
|
+
declare class ChatStoreError extends Error {
|
|
3118
|
+
readonly status: number;
|
|
3119
|
+
readonly code?: string | undefined;
|
|
3120
|
+
readonly retryAfterMs?: number | undefined;
|
|
3121
|
+
constructor(message: string, status: number, code?: string | undefined, retryAfterMs?: number | undefined);
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
/** Connect to owner-scoped server storage using the account's canonical device-held cipher. */
|
|
3125
|
+
declare function createRemoteChatStore(options: RemoteChatStoreOptions): Promise<ChatStore>;
|
|
3126
|
+
|
|
3063
3127
|
/**
|
|
3064
3128
|
* Drop every cached plaintext title and pending decrypt promise.
|
|
3065
3129
|
*
|
|
@@ -6399,7 +6463,7 @@ interface TopicExtractOptions extends PortalLlmAuth {
|
|
|
6399
6463
|
* shape, or the model omitted its id. Callers must retry absent ids in a
|
|
6400
6464
|
* later sweep, never stamp them.
|
|
6401
6465
|
*/
|
|
6402
|
-
declare function extractEntitiesForMemories(memories: readonly TopicExtractionInput[], options: TopicExtractOptions): Promise<Map<string, ExtractedEntity[]>>;
|
|
6466
|
+
declare function extractEntitiesForMemories(memories: readonly TopicExtractionInput[], options: TopicExtractOptions, signal?: AbortSignal): Promise<Map<string, ExtractedEntity[]>>;
|
|
6403
6467
|
/**
|
|
6404
6468
|
* Why one memory was skipped by a topic sweep.
|
|
6405
6469
|
*
|
|
@@ -6435,6 +6499,8 @@ type TopicSkipReason = "excluded" | "link-declined" | "stamp-declined" | "llm-un
|
|
|
6435
6499
|
declare function isDegradedTopicSkip(reason: TopicSkipReason): boolean;
|
|
6436
6500
|
/** Outcome of one {@link extractAndLinkEntitiesForMemoriesOp} run. */
|
|
6437
6501
|
interface TopicExtractionRunResult {
|
|
6502
|
+
/** Another device owns the work; retry later without counting a failed attempt. */
|
|
6503
|
+
deferred?: boolean;
|
|
6438
6504
|
batchCount: number;
|
|
6439
6505
|
durationMs: number;
|
|
6440
6506
|
batches: TopicExtractionBatchDiagnostics[];
|
|
@@ -6585,6 +6651,12 @@ interface MemoryTopic {
|
|
|
6585
6651
|
memoryCount: number;
|
|
6586
6652
|
}
|
|
6587
6653
|
/** @public */
|
|
6654
|
+
interface MemoryCounts {
|
|
6655
|
+
live: number;
|
|
6656
|
+
archived: number;
|
|
6657
|
+
quarantined: number;
|
|
6658
|
+
}
|
|
6659
|
+
/** @public */
|
|
6588
6660
|
interface MemorySubscribeOptions {
|
|
6589
6661
|
/**
|
|
6590
6662
|
* Watch the whole table, soft-deleted rows included, and fire on row-SET
|
|
@@ -6677,6 +6749,8 @@ interface EmbeddingRepairOptions {
|
|
|
6677
6749
|
}
|
|
6678
6750
|
/** @public */
|
|
6679
6751
|
interface EmbeddingRepairResult {
|
|
6752
|
+
/** Another device owns the work; preserve the cursor and retry later. */
|
|
6753
|
+
deferred?: boolean;
|
|
6680
6754
|
scanned: number;
|
|
6681
6755
|
reembedded: number;
|
|
6682
6756
|
failed: number;
|
|
@@ -6704,6 +6778,15 @@ interface EmbeddingRepairResult {
|
|
|
6704
6778
|
* @public
|
|
6705
6779
|
*/
|
|
6706
6780
|
interface MemoryStore {
|
|
6781
|
+
/** Creates an account-scoped topic without requiring a memory. */
|
|
6782
|
+
createTopic?(name: string): Promise<string | null>;
|
|
6783
|
+
/** Imports local topic metadata without replacing server entries or tombstones. */
|
|
6784
|
+
importTopics?(topics: readonly {
|
|
6785
|
+
name: string;
|
|
6786
|
+
kind?: string;
|
|
6787
|
+
}[]): Promise<void>;
|
|
6788
|
+
/** Metadata-only counts for the live, archived and quarantined lists. */
|
|
6789
|
+
counts?(): Promise<MemoryCounts>;
|
|
6707
6790
|
/** Memories newest-first, decrypted, WITH `embedding` (Memory Graph edges read it). */
|
|
6708
6791
|
list(options?: MemoryListOptions): Promise<StoredVaultMemory[]>;
|
|
6709
6792
|
get(id: string): Promise<StoredVaultMemory | null>;
|
|
@@ -9626,6 +9709,39 @@ declare function memoryCipher(canonical: MemoryKeyRing): {
|
|
|
9626
9709
|
*/
|
|
9627
9710
|
declare function reencryptMemoryField(value: string, canonical: MemoryKeyRing, fallbacks?: readonly MemoryKeyRing[]): Promise<string>;
|
|
9628
9711
|
|
|
9712
|
+
/** @public */
|
|
9713
|
+
interface RemoteMemoryTopic {
|
|
9714
|
+
name: string;
|
|
9715
|
+
kind?: string;
|
|
9716
|
+
version: number;
|
|
9717
|
+
is_deleted: boolean;
|
|
9718
|
+
server_updated_at: string;
|
|
9719
|
+
}
|
|
9720
|
+
/** @public */
|
|
9721
|
+
interface RemoteTopicPersistence {
|
|
9722
|
+
topics(): Promise<RemoteMemoryTopic[]>;
|
|
9723
|
+
putTopic(topic: Pick<RemoteMemoryTopic, "name" | "kind" | "is_deleted">, expectedVersion: number): Promise<RemoteMemoryTopic>;
|
|
9724
|
+
importTopics(topics: readonly {
|
|
9725
|
+
name: string;
|
|
9726
|
+
kind?: string;
|
|
9727
|
+
}[], signal?: AbortSignal): Promise<void>;
|
|
9728
|
+
}
|
|
9729
|
+
|
|
9730
|
+
/** @public */
|
|
9731
|
+
type RemoteMemoryWorkKind = "topics" | "embeddings";
|
|
9732
|
+
/** @public */
|
|
9733
|
+
interface RemoteMemoryWorkLease {
|
|
9734
|
+
kind: RemoteMemoryWorkKind;
|
|
9735
|
+
token: string;
|
|
9736
|
+
processor_version: string;
|
|
9737
|
+
expires_at: string;
|
|
9738
|
+
}
|
|
9739
|
+
/** @public */
|
|
9740
|
+
interface RemoteMemoryWorkPersistence {
|
|
9741
|
+
claimWork(kind: RemoteMemoryWorkKind, processorVersion: string, token?: string): Promise<RemoteMemoryWorkLease | null>;
|
|
9742
|
+
releaseWork(kind: RemoteMemoryWorkKind, token: string): Promise<void>;
|
|
9743
|
+
}
|
|
9744
|
+
|
|
9629
9745
|
/** The nearby private-memory row. Content and kind_value are plaintext ONLY on the device. */
|
|
9630
9746
|
interface RemoteMemoryRow {
|
|
9631
9747
|
memory_id: string;
|
|
@@ -9765,7 +9881,12 @@ declare class RemoteMemoryError extends Error {
|
|
|
9765
9881
|
* No local database or replica, import/activation, automatic conflict retry or rollback.
|
|
9766
9882
|
* Migration must have activated the account under the canonical key before construction.
|
|
9767
9883
|
*/
|
|
9768
|
-
interface RemoteMemoryPersistence {
|
|
9884
|
+
interface RemoteMemoryPersistence extends RemoteTopicPersistence, RemoteMemoryWorkPersistence {
|
|
9885
|
+
counts(): Promise<MemoryCounts>;
|
|
9886
|
+
temporal(window: {
|
|
9887
|
+
start: number;
|
|
9888
|
+
end: number;
|
|
9889
|
+
}, limit?: number): Promise<string[]>;
|
|
9769
9890
|
get(memoryId: string, signal?: AbortSignal): Promise<RemoteMemoryRecord | null>;
|
|
9770
9891
|
/** One stable memory-id page; follow next_cursor to enumerate. Embeddings are opt-in. */
|
|
9771
9892
|
list(options?: RemoteMemoryListOptions): Promise<RemoteMemoryPage>;
|
|
@@ -9780,7 +9901,7 @@ interface RemoteMemoryPersistence {
|
|
|
9780
9901
|
putMany(writes: {
|
|
9781
9902
|
memory: RemoteMemoryRow;
|
|
9782
9903
|
expectedVersion: number | RemoteMemoryRecord;
|
|
9783
|
-
}[], signal?: AbortSignal): Promise<RemoteMemoryRecord[]>;
|
|
9904
|
+
}[], signal?: AbortSignal, leaseToken?: string): Promise<RemoteMemoryRecord[]>;
|
|
9784
9905
|
/** Candidate window plus counts for distinguishing empty storage from unavailable vectors. */
|
|
9785
9906
|
candidateSet(embedding: number[], options?: RemoteMemoryCandidateOptions): Promise<{
|
|
9786
9907
|
items: RemoteMemoryRecord[];
|
|
@@ -9816,6 +9937,11 @@ interface MemoryMigrationOptions extends Pick<RemoteMemoryPersistenceOptions, "b
|
|
|
9816
9937
|
allowSkipped?: boolean;
|
|
9817
9938
|
/** Re-embeds rows whose local vector nearby could not rank; without it those rows upload unembedded. */
|
|
9818
9939
|
embeddingOptions?: EmbeddingOptions;
|
|
9940
|
+
/** Explicitly account-owned topics for databases that are not marked singleTenant. */
|
|
9941
|
+
topics?: readonly {
|
|
9942
|
+
name: string;
|
|
9943
|
+
kind?: string;
|
|
9944
|
+
}[];
|
|
9819
9945
|
signal?: AbortSignal;
|
|
9820
9946
|
onProgress?: (progress: MemoryMigrationProgress) => void;
|
|
9821
9947
|
}
|
|
@@ -10428,7 +10554,7 @@ declare function generateEmbedding(text: string, options: EmbeddingOptions): Pro
|
|
|
10428
10554
|
* @param options - Embedding options
|
|
10429
10555
|
* @returns Array of embeddings in the same order as input texts
|
|
10430
10556
|
*/
|
|
10431
|
-
declare function generateEmbeddings(texts: string[], options: EmbeddingOptions): Promise<number[][]>;
|
|
10557
|
+
declare function generateEmbeddings(texts: string[], options: EmbeddingOptions, signal?: AbortSignal): Promise<number[][]>;
|
|
10432
10558
|
|
|
10433
10559
|
/**
|
|
10434
10560
|
* An ordinary message whose chunk vectors were built over `enc:v3:` ciphertext
|
|
@@ -11640,4 +11766,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11640
11766
|
*/
|
|
11641
11767
|
declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
|
|
11642
11768
|
|
|
11643
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateSelectPaymentWalletToolOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PaymentWallet, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SelectPaymentWalletResult, 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 StoredTopic, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WriteFailureReason, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSelectPaymentWalletTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptMessageEmbeddingFields, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptToolCallEventsOp, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, memoryCipher, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11769
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, type ChatJson, type ChatListOptions, Message as ChatMessage, type ChatPage, type ChatRecord, type ChatRecordKind, type ChatRole, type ChatSnapshot, type ChatStore, ChatStoreError, type ChatWrite, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateSelectPaymentWalletToolOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCounts, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PaymentWallet, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RemoteChatStoreOptions, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RemoteMemoryTopic, type RemoteMemoryWorkKind, type RemoteMemoryWorkLease, type RemoteMemoryWorkPersistence, type RemoteTopicPersistence, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SelectPaymentWalletResult, 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 StoredTopic, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WriteFailureReason, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteChatStore, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSelectPaymentWalletTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptMessageEmbeddingFields, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptToolCallEventsOp, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, memoryCipher, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|