@anuma/sdk 6.34.0 → 6.36.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.
@@ -4866,8 +4866,10 @@ declare function isEncrypted(value: string): boolean;
4866
4866
  * budget was in memory and reset on every turn, so one batch that could never
4867
4867
  * extract blocked its conversation's extraction forever. Additive, both
4868
4868
  * nullable, no backfill: NULL reads as "never failed"
4869
+ * - v48: Added kind, kind_value (encrypted) and level to memory_vault; level is
4870
+ * backfilled from scope where SQL steps run
4869
4871
  */
4870
- declare const SDK_SCHEMA_VERSION = 47;
4872
+ declare const SDK_SCHEMA_VERSION = 48;
4871
4873
  /**
4872
4874
  * Combined WatermelonDB schema for all SDK storage modules.
4873
4875
  *
@@ -4956,6 +4958,7 @@ declare const sdkSchema: Readonly<{
4956
4958
  * - v41 → v42: Added `topics` + `topics_updated_at` columns to memory_vault, making a memory's topics the durable synced record and `entity`/`memory_entity` a device-local index over it (null `topics` = pre-v42, backfilled from the row's current links by the sweep)
4957
4959
  * - v42 → v43: Added a composite `(is_deleted, created_at)` index to conversations so the list reads stop temp-sorting (structural only, no data rewritten)
4958
4960
  * - v43 → v44: Added `origin` column to history recording which producer synthesised a row, so the embedding sweep can skip never-rendered tool-result dumps (plaintext by design — the sweep has no wallet context; null = legacy, embedded as before)
4961
+ * - v47 → v48: Added `kind`, `kind_value`, `level` to memory_vault; `level` backfilled from `scope` (`shared`/`public` → matching, else private) where SQL steps run
4959
4962
  */
4960
4963
  declare const sdkMigrations: Readonly<{
4961
4964
  validated: true;
@@ -5126,6 +5129,12 @@ declare class VaultMemory extends Model {
5126
5129
  static table: string;
5127
5130
  content: string;
5128
5131
  scope: string;
5132
+ /** Profile kind, or null for a free-form memory. */
5133
+ kind: string | null;
5134
+ /** Canonical JSON value of a kinded memory, encrypted at rest. */
5135
+ kindValue: string | null;
5136
+ /** private | matching | profile. */
5137
+ level: string | null;
5129
5138
  folderId: string | null;
5130
5139
  userId: string | null;
5131
5140
  embedding: string | null;
@@ -6879,13 +6888,35 @@ declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: Ret
6879
6888
  * the fail-safe direction: it un-publishes rather than exposes.
6880
6889
  */
6881
6890
  type VaultMemoryVisibility = "private" | "public";
6891
+ /** Profile kinds a vault memory can carry. */
6892
+ declare const MEMORY_KINDS: readonly ["display_name", "birth_date", "bio", "occupation", "interest", "gender", "height_cm", "looking_for", "politics", "religion", "ethnicity", "smoking", "drinking", "exercise", "sexuality", "prompt"];
6893
+ /** One of {@link MEMORY_KINDS}. */
6894
+ type VaultMemoryKind = (typeof MEMORY_KINDS)[number];
6895
+ /** Who a memory reaches. */
6896
+ declare const MEMORY_LEVELS: readonly ["private", "matching", "profile"];
6897
+ /** One of {@link MEMORY_LEVELS}. */
6898
+ type MemoryLevel = (typeof MEMORY_LEVELS)[number];
6899
+ /**
6900
+ * Thrown by vault writes that would store an unknown kind or level, or a profile level without a kind.
6901
+ *
6902
+ * @public
6903
+ */
6904
+ declare class MemoryLevelError extends Error {
6905
+ constructor(message: string);
6906
+ }
6882
6907
  interface StoredVaultMemory {
6883
6908
  /** WatermelonDB internal ID */
6884
6909
  uniqueId: string;
6885
6910
  /** Plain text memory content */
6886
6911
  content: string;
6887
- /** Scope for partitioning memories (e.g., "private", "shared") */
6912
+ /** Scope for partitioning memories (e.g., "private", "shared"). */
6888
6913
  scope: string;
6914
+ /** Profile kind ({@link MEMORY_KINDS}) or null for a free-form memory. */
6915
+ kind?: string | null;
6916
+ /** Canonical value of a kinded memory, JSON-encoded (slug, slug[], int, date, text). */
6917
+ kindValue?: string | null;
6918
+ /** Who this memory reaches. */
6919
+ level?: MemoryLevel;
6889
6920
  /** Folder ID for organization, null if unfiled */
6890
6921
  folderId: string | null;
6891
6922
  /** User ID for multi-user server-side scoping, null on client */
@@ -7027,8 +7058,14 @@ interface PhotoMediaRef {
7027
7058
  declare function parseMedia(value: unknown): PhotoMediaRef[] | null;
7028
7059
  interface CreateVaultMemoryOptions {
7029
7060
  content: string;
7030
- /** Scope for the memory. Defaults to "private" if omitted. */
7061
+ /** Scope for the memory. */
7031
7062
  scope?: string;
7063
+ /** Profile kind, or omit/null for a free-form memory. */
7064
+ kind?: VaultMemoryKind | null;
7065
+ /** Canonical JSON value of a kinded memory. */
7066
+ kindValue?: string | null;
7067
+ /** Who this memory reaches. */
7068
+ level?: MemoryLevel;
7032
7069
  /** Folder ID for organization, null or omitted if unfiled */
7033
7070
  folderId?: string | null;
7034
7071
  /** JSON-stringified embedding vector to persist */
@@ -7069,8 +7106,19 @@ interface CreateVaultMemoryOptions {
7069
7106
  }
7070
7107
  interface UpdateVaultMemoryOptions {
7071
7108
  content: string;
7072
- /** If provided, updates the memory's scope. */
7109
+ /** When true, the write is skipped (returns null) if the row carries a profile kind. */
7110
+ freeFormOnly?: boolean;
7111
+ /**
7112
+ * If provided, updates the memory's scope (and the level it implies; a `profile` row keeps
7113
+ * `profile` under `scope: "shared"`).
7114
+ */
7073
7115
  scope?: string;
7116
+ /** If provided, sets the profile kind (null makes the memory free-form). */
7117
+ kind?: VaultMemoryKind | null;
7118
+ /** If provided, sets the canonical JSON value (null clears it). */
7119
+ kindValue?: string | null;
7120
+ /** If provided, sets the level (and dual-writes `scope`). */
7121
+ level?: MemoryLevel;
7074
7122
  /** If provided, moves the memory to this folder. */
7075
7123
  folderId?: string | null;
7076
7124
  /** JSON-stringified embedding vector to persist, or null to clear stale embedding */
@@ -7210,6 +7258,10 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
7210
7258
  * published set to diff against the server index.
7211
7259
  */
7212
7260
  visibility?: VaultMemoryVisibility[];
7261
+ /** Filter by level. */
7262
+ levels?: MemoryLevel[];
7263
+ /** Restrict to these profile kinds. */
7264
+ kinds?: string[];
7213
7265
  }): Promise<StoredVaultMemory[]>;
7214
7266
  /**
7215
7267
  * Return content-free {@link RankableVaultMemory} projections for recall
@@ -7491,7 +7543,8 @@ interface DecayCandidateRaw {
7491
7543
  *
7492
7544
  * Includes archived AND quarantined rows (so archived→delete transitions and
7493
7545
  * aged quarantined rows are seen) but excludes hard-deleted rows — the
7494
- * `baseVaultConditions` default keeps `is_deleted = false`.
7546
+ * `baseVaultConditions` default keeps `is_deleted = false`. Excludes kinded
7547
+ * (profile) memories, which never decay.
7495
7548
  *
7496
7549
  * Refuses to run on an unscoped multi-tenant context (see
7497
7550
  * {@link assertVaultScopeForSweep}).
@@ -9198,6 +9251,42 @@ interface LocalMemoryStoreOptions {
9198
9251
  */
9199
9252
  declare function createLocalMemoryStore(options: LocalMemoryStoreOptions): MemoryStore;
9200
9253
 
9254
+ /**
9255
+ * AES-GCM keys derived from one wallet signature over `SIGN_MESSAGE`.
9256
+ * @public
9257
+ */
9258
+ interface MemoryKeyRing {
9259
+ keyId: string;
9260
+ v3: CryptoKey;
9261
+ v2: CryptoKey;
9262
+ }
9263
+ /**
9264
+ * Thrown when no supplied key decrypts a field.
9265
+ * @public
9266
+ */
9267
+ declare class MemoryKeyError extends Error {
9268
+ constructor(message: string);
9269
+ }
9270
+ /**
9271
+ * Derive the v3 and legacy v2 memory keys from a hex wallet signature.
9272
+ * @public
9273
+ */
9274
+ declare function deriveMemoryKeyRing(signatureHex: string): Promise<MemoryKeyRing>;
9275
+ /**
9276
+ * Encrypt and decrypt callbacks for `createRemoteMemoryPersistence` under the canonical key.
9277
+ * @public
9278
+ */
9279
+ declare function memoryCipher(canonical: MemoryKeyRing): {
9280
+ encrypt: (plaintext: string) => Promise<string>;
9281
+ decrypt: (ciphertext: string) => Promise<string>;
9282
+ };
9283
+ /**
9284
+ * Re-encrypt a local field under the canonical key.
9285
+ * @throws MemoryKeyError when no key decrypts the field.
9286
+ * @public
9287
+ */
9288
+ declare function reencryptMemoryField(value: string, canonical: MemoryKeyRing, fallbacks?: readonly MemoryKeyRing[]): Promise<string>;
9289
+
9201
9290
  /** The nearby private-memory row. Content and kind_value are plaintext ONLY on the device. */
9202
9291
  interface RemoteMemoryRow {
9203
9292
  memory_id: string;
@@ -9265,6 +9354,23 @@ interface RemoteMemoryPage {
9265
9354
  failed: RemoteMemoryDecodeFailure[];
9266
9355
  next_cursor?: string;
9267
9356
  }
9357
+ interface RemoteMemoryQueryOptions extends RemoteMemoryReadFilters {
9358
+ include_deleted?: boolean;
9359
+ archived_only?: boolean;
9360
+ scopes?: string[];
9361
+ visibility?: string[];
9362
+ memory_ids?: string[];
9363
+ topics?: string[];
9364
+ updated_after?: number;
9365
+ order?: "created" | "updated" | "archived" | "changed";
9366
+ cursor?: string;
9367
+ limit?: number;
9368
+ include_embeddings?: boolean;
9369
+ signal?: AbortSignal;
9370
+ }
9371
+ interface RemoteMemoryQueryPage extends RemoteMemoryPage {
9372
+ changes_cursor?: string;
9373
+ }
9268
9374
  interface RemoteMemoryCandidateOptions extends RemoteMemoryReadFilters {
9269
9375
  scopes?: string[];
9270
9376
  memory_ids?: string[];
@@ -9308,6 +9414,7 @@ interface RemoteMemoryPersistence {
9308
9414
  get(memoryId: string, signal?: AbortSignal): Promise<RemoteMemoryRecord | null>;
9309
9415
  /** One stable memory-id page; follow next_cursor to enumerate. Embeddings are opt-in. */
9310
9416
  list(options?: RemoteMemoryListOptions): Promise<RemoteMemoryPage>;
9417
+ query(options?: RemoteMemoryQueryOptions): Promise<RemoteMemoryQueryPage>;
9311
9418
  /** Whole-row write. Pass a returned snapshot to avoid GET; a number retains the read-before-write path. Version 0 creates. is_deleted writes a tombstone. */
9312
9419
  put(memory: RemoteMemoryRow, expectedVersion: number | RemoteMemoryRecord, signal?: AbortSignal): Promise<RemoteMemoryRecord>;
9313
9420
  /** 1–50 writes in one server transaction; never split or replay a batch. */
@@ -9355,6 +9462,25 @@ interface RemoteMemoryPipeline {
9355
9462
  */
9356
9463
  declare function createRemoteMemoryPipeline(options: RemoteMemoryPipelineOptions): RemoteMemoryPipeline;
9357
9464
 
9465
+ /** @public */
9466
+ interface RemoteMemoryStoreOptions {
9467
+ persistence: RemoteMemoryPersistence;
9468
+ embeddingOptions: EmbeddingOptions;
9469
+ graphRanking: RecallFactSource["graphRanking"];
9470
+ temporalRanking: RecallFactSource["temporalRanking"];
9471
+ pollIntervalMs?: number;
9472
+ }
9473
+ declare class RemoteMemoryPartialCreateError extends Error {
9474
+ readonly created: StoredVaultMemory[];
9475
+ readonly cause: unknown;
9476
+ constructor(created: StoredVaultMemory[], cause: unknown);
9477
+ }
9478
+ /**
9479
+ * {@link MemoryStore} over nearby's private-memory API with device-side decryption.
9480
+ * @public
9481
+ */
9482
+ declare function createRemoteMemoryStore(options: RemoteMemoryStoreOptions): MemoryStore;
9483
+
9358
9484
  /** Bump when the ProfileDoc / section shape changes incompatibly. */
9359
9485
  declare const PROFILE_DOC_VERSION = 1;
9360
9486
  /** The facets a profile decomposes into (dating-app-style, per the People
@@ -9495,8 +9621,8 @@ interface SynthesizeProfileOptions extends PortalLlmAuth {
9495
9621
  * on memories the user approved for publication. Empty intersection → empty
9496
9622
  * section (legitimate no-evidence), not a stale fallback.
9497
9623
  *
9498
- * Pass the user's published set (e.g. `getAllVaultMemoriesOp(ctx, { visibility:
9499
- * ["public"] })`) to keep a published profile derivable only from published
9624
+ * Pass the user's published set (e.g. `getAllVaultMemoriesOp(ctx, { levels:
9625
+ * ["matching", "profile"] })`) to keep a published profile derivable only from published
9500
9626
  * memories — People Nearby's two-tier model treats `private` memories as never
9501
9627
  * leaving the device, and a summary derived from them is a derivative that does.
9502
9628
  *
@@ -10953,4 +11079,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
10953
11079
  */
10954
11080
  declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
10955
11081
 
10956
- export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, 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, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, 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, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryListOptions, type MemoryMaintenance, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, 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 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 RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryPage, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, 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 StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, 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 VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, 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, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, 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, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
11082
+ export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, 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, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, 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 EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, 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 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 RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, 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 ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, 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 StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, 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 VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, 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, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, 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, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
@@ -4866,8 +4866,10 @@ declare function isEncrypted(value: string): boolean;
4866
4866
  * budget was in memory and reset on every turn, so one batch that could never
4867
4867
  * extract blocked its conversation's extraction forever. Additive, both
4868
4868
  * nullable, no backfill: NULL reads as "never failed"
4869
+ * - v48: Added kind, kind_value (encrypted) and level to memory_vault; level is
4870
+ * backfilled from scope where SQL steps run
4869
4871
  */
4870
- declare const SDK_SCHEMA_VERSION = 47;
4872
+ declare const SDK_SCHEMA_VERSION = 48;
4871
4873
  /**
4872
4874
  * Combined WatermelonDB schema for all SDK storage modules.
4873
4875
  *
@@ -4956,6 +4958,7 @@ declare const sdkSchema: Readonly<{
4956
4958
  * - v41 → v42: Added `topics` + `topics_updated_at` columns to memory_vault, making a memory's topics the durable synced record and `entity`/`memory_entity` a device-local index over it (null `topics` = pre-v42, backfilled from the row's current links by the sweep)
4957
4959
  * - v42 → v43: Added a composite `(is_deleted, created_at)` index to conversations so the list reads stop temp-sorting (structural only, no data rewritten)
4958
4960
  * - v43 → v44: Added `origin` column to history recording which producer synthesised a row, so the embedding sweep can skip never-rendered tool-result dumps (plaintext by design — the sweep has no wallet context; null = legacy, embedded as before)
4961
+ * - v47 → v48: Added `kind`, `kind_value`, `level` to memory_vault; `level` backfilled from `scope` (`shared`/`public` → matching, else private) where SQL steps run
4959
4962
  */
4960
4963
  declare const sdkMigrations: Readonly<{
4961
4964
  validated: true;
@@ -5126,6 +5129,12 @@ declare class VaultMemory extends Model {
5126
5129
  static table: string;
5127
5130
  content: string;
5128
5131
  scope: string;
5132
+ /** Profile kind, or null for a free-form memory. */
5133
+ kind: string | null;
5134
+ /** Canonical JSON value of a kinded memory, encrypted at rest. */
5135
+ kindValue: string | null;
5136
+ /** private | matching | profile. */
5137
+ level: string | null;
5129
5138
  folderId: string | null;
5130
5139
  userId: string | null;
5131
5140
  embedding: string | null;
@@ -6879,13 +6888,35 @@ declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: Ret
6879
6888
  * the fail-safe direction: it un-publishes rather than exposes.
6880
6889
  */
6881
6890
  type VaultMemoryVisibility = "private" | "public";
6891
+ /** Profile kinds a vault memory can carry. */
6892
+ declare const MEMORY_KINDS: readonly ["display_name", "birth_date", "bio", "occupation", "interest", "gender", "height_cm", "looking_for", "politics", "religion", "ethnicity", "smoking", "drinking", "exercise", "sexuality", "prompt"];
6893
+ /** One of {@link MEMORY_KINDS}. */
6894
+ type VaultMemoryKind = (typeof MEMORY_KINDS)[number];
6895
+ /** Who a memory reaches. */
6896
+ declare const MEMORY_LEVELS: readonly ["private", "matching", "profile"];
6897
+ /** One of {@link MEMORY_LEVELS}. */
6898
+ type MemoryLevel = (typeof MEMORY_LEVELS)[number];
6899
+ /**
6900
+ * Thrown by vault writes that would store an unknown kind or level, or a profile level without a kind.
6901
+ *
6902
+ * @public
6903
+ */
6904
+ declare class MemoryLevelError extends Error {
6905
+ constructor(message: string);
6906
+ }
6882
6907
  interface StoredVaultMemory {
6883
6908
  /** WatermelonDB internal ID */
6884
6909
  uniqueId: string;
6885
6910
  /** Plain text memory content */
6886
6911
  content: string;
6887
- /** Scope for partitioning memories (e.g., "private", "shared") */
6912
+ /** Scope for partitioning memories (e.g., "private", "shared"). */
6888
6913
  scope: string;
6914
+ /** Profile kind ({@link MEMORY_KINDS}) or null for a free-form memory. */
6915
+ kind?: string | null;
6916
+ /** Canonical value of a kinded memory, JSON-encoded (slug, slug[], int, date, text). */
6917
+ kindValue?: string | null;
6918
+ /** Who this memory reaches. */
6919
+ level?: MemoryLevel;
6889
6920
  /** Folder ID for organization, null if unfiled */
6890
6921
  folderId: string | null;
6891
6922
  /** User ID for multi-user server-side scoping, null on client */
@@ -7027,8 +7058,14 @@ interface PhotoMediaRef {
7027
7058
  declare function parseMedia(value: unknown): PhotoMediaRef[] | null;
7028
7059
  interface CreateVaultMemoryOptions {
7029
7060
  content: string;
7030
- /** Scope for the memory. Defaults to "private" if omitted. */
7061
+ /** Scope for the memory. */
7031
7062
  scope?: string;
7063
+ /** Profile kind, or omit/null for a free-form memory. */
7064
+ kind?: VaultMemoryKind | null;
7065
+ /** Canonical JSON value of a kinded memory. */
7066
+ kindValue?: string | null;
7067
+ /** Who this memory reaches. */
7068
+ level?: MemoryLevel;
7032
7069
  /** Folder ID for organization, null or omitted if unfiled */
7033
7070
  folderId?: string | null;
7034
7071
  /** JSON-stringified embedding vector to persist */
@@ -7069,8 +7106,19 @@ interface CreateVaultMemoryOptions {
7069
7106
  }
7070
7107
  interface UpdateVaultMemoryOptions {
7071
7108
  content: string;
7072
- /** If provided, updates the memory's scope. */
7109
+ /** When true, the write is skipped (returns null) if the row carries a profile kind. */
7110
+ freeFormOnly?: boolean;
7111
+ /**
7112
+ * If provided, updates the memory's scope (and the level it implies; a `profile` row keeps
7113
+ * `profile` under `scope: "shared"`).
7114
+ */
7073
7115
  scope?: string;
7116
+ /** If provided, sets the profile kind (null makes the memory free-form). */
7117
+ kind?: VaultMemoryKind | null;
7118
+ /** If provided, sets the canonical JSON value (null clears it). */
7119
+ kindValue?: string | null;
7120
+ /** If provided, sets the level (and dual-writes `scope`). */
7121
+ level?: MemoryLevel;
7074
7122
  /** If provided, moves the memory to this folder. */
7075
7123
  folderId?: string | null;
7076
7124
  /** JSON-stringified embedding vector to persist, or null to clear stale embedding */
@@ -7210,6 +7258,10 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
7210
7258
  * published set to diff against the server index.
7211
7259
  */
7212
7260
  visibility?: VaultMemoryVisibility[];
7261
+ /** Filter by level. */
7262
+ levels?: MemoryLevel[];
7263
+ /** Restrict to these profile kinds. */
7264
+ kinds?: string[];
7213
7265
  }): Promise<StoredVaultMemory[]>;
7214
7266
  /**
7215
7267
  * Return content-free {@link RankableVaultMemory} projections for recall
@@ -7491,7 +7543,8 @@ interface DecayCandidateRaw {
7491
7543
  *
7492
7544
  * Includes archived AND quarantined rows (so archived→delete transitions and
7493
7545
  * aged quarantined rows are seen) but excludes hard-deleted rows — the
7494
- * `baseVaultConditions` default keeps `is_deleted = false`.
7546
+ * `baseVaultConditions` default keeps `is_deleted = false`. Excludes kinded
7547
+ * (profile) memories, which never decay.
7495
7548
  *
7496
7549
  * Refuses to run on an unscoped multi-tenant context (see
7497
7550
  * {@link assertVaultScopeForSweep}).
@@ -9198,6 +9251,42 @@ interface LocalMemoryStoreOptions {
9198
9251
  */
9199
9252
  declare function createLocalMemoryStore(options: LocalMemoryStoreOptions): MemoryStore;
9200
9253
 
9254
+ /**
9255
+ * AES-GCM keys derived from one wallet signature over `SIGN_MESSAGE`.
9256
+ * @public
9257
+ */
9258
+ interface MemoryKeyRing {
9259
+ keyId: string;
9260
+ v3: CryptoKey;
9261
+ v2: CryptoKey;
9262
+ }
9263
+ /**
9264
+ * Thrown when no supplied key decrypts a field.
9265
+ * @public
9266
+ */
9267
+ declare class MemoryKeyError extends Error {
9268
+ constructor(message: string);
9269
+ }
9270
+ /**
9271
+ * Derive the v3 and legacy v2 memory keys from a hex wallet signature.
9272
+ * @public
9273
+ */
9274
+ declare function deriveMemoryKeyRing(signatureHex: string): Promise<MemoryKeyRing>;
9275
+ /**
9276
+ * Encrypt and decrypt callbacks for `createRemoteMemoryPersistence` under the canonical key.
9277
+ * @public
9278
+ */
9279
+ declare function memoryCipher(canonical: MemoryKeyRing): {
9280
+ encrypt: (plaintext: string) => Promise<string>;
9281
+ decrypt: (ciphertext: string) => Promise<string>;
9282
+ };
9283
+ /**
9284
+ * Re-encrypt a local field under the canonical key.
9285
+ * @throws MemoryKeyError when no key decrypts the field.
9286
+ * @public
9287
+ */
9288
+ declare function reencryptMemoryField(value: string, canonical: MemoryKeyRing, fallbacks?: readonly MemoryKeyRing[]): Promise<string>;
9289
+
9201
9290
  /** The nearby private-memory row. Content and kind_value are plaintext ONLY on the device. */
9202
9291
  interface RemoteMemoryRow {
9203
9292
  memory_id: string;
@@ -9265,6 +9354,23 @@ interface RemoteMemoryPage {
9265
9354
  failed: RemoteMemoryDecodeFailure[];
9266
9355
  next_cursor?: string;
9267
9356
  }
9357
+ interface RemoteMemoryQueryOptions extends RemoteMemoryReadFilters {
9358
+ include_deleted?: boolean;
9359
+ archived_only?: boolean;
9360
+ scopes?: string[];
9361
+ visibility?: string[];
9362
+ memory_ids?: string[];
9363
+ topics?: string[];
9364
+ updated_after?: number;
9365
+ order?: "created" | "updated" | "archived" | "changed";
9366
+ cursor?: string;
9367
+ limit?: number;
9368
+ include_embeddings?: boolean;
9369
+ signal?: AbortSignal;
9370
+ }
9371
+ interface RemoteMemoryQueryPage extends RemoteMemoryPage {
9372
+ changes_cursor?: string;
9373
+ }
9268
9374
  interface RemoteMemoryCandidateOptions extends RemoteMemoryReadFilters {
9269
9375
  scopes?: string[];
9270
9376
  memory_ids?: string[];
@@ -9308,6 +9414,7 @@ interface RemoteMemoryPersistence {
9308
9414
  get(memoryId: string, signal?: AbortSignal): Promise<RemoteMemoryRecord | null>;
9309
9415
  /** One stable memory-id page; follow next_cursor to enumerate. Embeddings are opt-in. */
9310
9416
  list(options?: RemoteMemoryListOptions): Promise<RemoteMemoryPage>;
9417
+ query(options?: RemoteMemoryQueryOptions): Promise<RemoteMemoryQueryPage>;
9311
9418
  /** Whole-row write. Pass a returned snapshot to avoid GET; a number retains the read-before-write path. Version 0 creates. is_deleted writes a tombstone. */
9312
9419
  put(memory: RemoteMemoryRow, expectedVersion: number | RemoteMemoryRecord, signal?: AbortSignal): Promise<RemoteMemoryRecord>;
9313
9420
  /** 1–50 writes in one server transaction; never split or replay a batch. */
@@ -9355,6 +9462,25 @@ interface RemoteMemoryPipeline {
9355
9462
  */
9356
9463
  declare function createRemoteMemoryPipeline(options: RemoteMemoryPipelineOptions): RemoteMemoryPipeline;
9357
9464
 
9465
+ /** @public */
9466
+ interface RemoteMemoryStoreOptions {
9467
+ persistence: RemoteMemoryPersistence;
9468
+ embeddingOptions: EmbeddingOptions;
9469
+ graphRanking: RecallFactSource["graphRanking"];
9470
+ temporalRanking: RecallFactSource["temporalRanking"];
9471
+ pollIntervalMs?: number;
9472
+ }
9473
+ declare class RemoteMemoryPartialCreateError extends Error {
9474
+ readonly created: StoredVaultMemory[];
9475
+ readonly cause: unknown;
9476
+ constructor(created: StoredVaultMemory[], cause: unknown);
9477
+ }
9478
+ /**
9479
+ * {@link MemoryStore} over nearby's private-memory API with device-side decryption.
9480
+ * @public
9481
+ */
9482
+ declare function createRemoteMemoryStore(options: RemoteMemoryStoreOptions): MemoryStore;
9483
+
9358
9484
  /** Bump when the ProfileDoc / section shape changes incompatibly. */
9359
9485
  declare const PROFILE_DOC_VERSION = 1;
9360
9486
  /** The facets a profile decomposes into (dating-app-style, per the People
@@ -9495,8 +9621,8 @@ interface SynthesizeProfileOptions extends PortalLlmAuth {
9495
9621
  * on memories the user approved for publication. Empty intersection → empty
9496
9622
  * section (legitimate no-evidence), not a stale fallback.
9497
9623
  *
9498
- * Pass the user's published set (e.g. `getAllVaultMemoriesOp(ctx, { visibility:
9499
- * ["public"] })`) to keep a published profile derivable only from published
9624
+ * Pass the user's published set (e.g. `getAllVaultMemoriesOp(ctx, { levels:
9625
+ * ["matching", "profile"] })`) to keep a published profile derivable only from published
9500
9626
  * memories — People Nearby's two-tier model treats `private` memories as never
9501
9627
  * leaving the device, and a summary derived from them is a derivative that does.
9502
9628
  *
@@ -10953,4 +11079,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
10953
11079
  */
10954
11080
  declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
10955
11081
 
10956
- export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, 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, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, 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, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryListOptions, type MemoryMaintenance, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, 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 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 RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryPage, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, 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 StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, 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 VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, 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, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, 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, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
11082
+ export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, 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, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, 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 EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, 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 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 RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, 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 ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, 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 StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, 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 VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, 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, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, 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, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };