@anuma/sdk 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.cjs +36 -0
- package/dist/client/index.d.mts +130 -1
- package/dist/client/index.d.ts +130 -1
- package/dist/client/index.mjs +33 -0
- package/dist/expo/{chunk-JVL5PLZS.mjs → chunk-KXIUA7ZV.mjs} +6 -1
- package/dist/expo/index.cjs +353 -2
- package/dist/expo/index.d.mts +143 -2
- package/dist/expo/index.d.ts +143 -2
- package/dist/expo/index.mjs +341 -3
- package/dist/expo/{recall-WPKWZM5N.mjs → recall-3YPU4PS2.mjs} +1 -1
- package/dist/react/{chunk-3KGACSSP.mjs → chunk-Y7PMXJT6.mjs} +6 -1
- package/dist/react/index.cjs +353 -2
- package/dist/react/index.d.mts +143 -2
- package/dist/react/index.d.ts +143 -2
- package/dist/react/index.mjs +341 -3
- package/dist/react/{recall-NG2P5ZQ7.mjs → recall-GYNSL2DS.mjs} +1 -1
- package/dist/server/{chunk-A4V7FRZ6.mjs → chunk-Y3ZS4OI3.mjs} +6 -1
- package/dist/server/index.cjs +353 -2
- package/dist/server/index.d.mts +143 -2
- package/dist/server/index.d.ts +143 -2
- package/dist/server/index.mjs +341 -3
- package/dist/server/{recall-2K7IOKY3.mjs → recall-Z72DM2JK.mjs} +1 -1
- package/package.json +2 -2
package/dist/server/index.d.mts
CHANGED
|
@@ -61,8 +61,12 @@ import { ResultCallback } from '@nozbe/watermelondb/utils/fp/Result';
|
|
|
61
61
|
* logic version a memory was last stamped under. Bumping TOPICS_EXTRACTION_VERSION
|
|
62
62
|
* (new prompt/model) makes the worker re-extract every row whose stored version
|
|
63
63
|
* is behind, so topic-quality improvements propagate across the existing vault
|
|
64
|
+
* - v39: Added last_observed_at column to memory_vault (C3) — a re-observation
|
|
65
|
+
* watermark stamped each time retain() merges into an existing fact, kept
|
|
66
|
+
* distinct from updated_at (which merges preserve). Lets profile synthesis
|
|
67
|
+
* weight facts by recency of reinforcement rather than last edit.
|
|
64
68
|
*/
|
|
65
|
-
declare const SDK_SCHEMA_VERSION =
|
|
69
|
+
declare const SDK_SCHEMA_VERSION = 39;
|
|
66
70
|
/**
|
|
67
71
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
68
72
|
*
|
|
@@ -143,6 +147,8 @@ declare const sdkSchema: Readonly<{
|
|
|
143
147
|
* - v34 → v35: Added `conversation_memory` table (conversation ↔ recalled memory ids)
|
|
144
148
|
* - v35 → v36: Added `topics_extracted_at` column to memory_vault (watermark for the background topic-extraction worker; null + existing links grandfathered as extracted)
|
|
145
149
|
* - v36 → v37: Added `superseded_by` + `superseded_at` columns to memory_vault (write-time supersession; null = live, excluded from recall/dedup when set)
|
|
150
|
+
* - v37 → v38: Added `topics_extracted_version` column to memory_vault (extraction-logic version; null read as 0 so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows)
|
|
151
|
+
* - v38 → v39: Added `last_observed_at` column to memory_vault (C3 re-observation watermark; stamped on retain merge, distinct from updated_at)
|
|
146
152
|
*/
|
|
147
153
|
declare const sdkMigrations: Readonly<{
|
|
148
154
|
validated: true;
|
|
@@ -4268,6 +4274,8 @@ declare class VaultMemory extends Model$1 {
|
|
|
4268
4274
|
/** Extraction-logic version this memory was last stamped under. Null (pre-v38)
|
|
4269
4275
|
* reads as 0, so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows. */
|
|
4270
4276
|
topicsExtractedVersion: number | null;
|
|
4277
|
+
/** C3 re-observation watermark: Unix ms of the last retain() merge, or null. */
|
|
4278
|
+
lastObservedAt: number | null;
|
|
4271
4279
|
createdAt: Date;
|
|
4272
4280
|
updatedAt: Date;
|
|
4273
4281
|
isDeleted: boolean;
|
|
@@ -4385,6 +4393,11 @@ interface StoredVaultMemory {
|
|
|
4385
4393
|
/** Extraction-logic version this memory was last stamped under. Null (pre-v38)
|
|
4386
4394
|
* reads as 0, so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows. */
|
|
4387
4395
|
topicsExtractedVersion: number | null;
|
|
4396
|
+
/** C3 re-observation watermark: Unix ms of the last retain() merge into this
|
|
4397
|
+
* fact. Distinct from `updatedAt` (which merges preserve). Null = never
|
|
4398
|
+
* re-observed since the column was added; synthesis falls back to
|
|
4399
|
+
* `updatedAt` in that case. */
|
|
4400
|
+
lastObservedAt: number | null;
|
|
4388
4401
|
createdAt: Date;
|
|
4389
4402
|
updatedAt: Date;
|
|
4390
4403
|
isDeleted: boolean;
|
|
@@ -4458,6 +4471,11 @@ interface UpdateVaultMemoryOptions {
|
|
|
4458
4471
|
* without inflating recency on top.
|
|
4459
4472
|
*/
|
|
4460
4473
|
preserveUpdatedAt?: boolean;
|
|
4474
|
+
/** C3: Unix ms to stamp as the re-observation watermark (`last_observed_at`).
|
|
4475
|
+
* Set by retain() merge/consolidate paths so a re-observation records "seen
|
|
4476
|
+
* again now" without touching `updated_at` (which `preserveUpdatedAt` keeps
|
|
4477
|
+
* pinned). Omit to leave the existing value untouched. */
|
|
4478
|
+
lastObservedAt?: number;
|
|
4461
4479
|
/** If provided, sets whether the user has taken manual control of this
|
|
4462
4480
|
* memory's topics. Set by {@link setMemoryEntitiesOp}. */
|
|
4463
4481
|
topicsUserManaged?: boolean;
|
|
@@ -6844,6 +6862,129 @@ declare class RerankerUnavailableError extends Error {
|
|
|
6844
6862
|
*/
|
|
6845
6863
|
declare function isRerankerAvailable(): boolean | undefined;
|
|
6846
6864
|
|
|
6865
|
+
/**
|
|
6866
|
+
* synthesizeProfile — client-side profile synthesis for People Nearby (C1).
|
|
6867
|
+
*
|
|
6868
|
+
* The vault is E2E-encrypted and device-authoritative; the server cannot read
|
|
6869
|
+
* it. So the shareable profile is synthesized ON-DEVICE here, in the SDK, from
|
|
6870
|
+
* the user's vault facts. The client then publishes the result (PII-redacted,
|
|
6871
|
+
* then server-side moderated in `nearby`) to the server-authoritative profile
|
|
6872
|
+
* store. The SDK stays STATELESS: no profile table, no persistence — the caller
|
|
6873
|
+
* owns storage and passes the prior doc back via `options.previous` for delta
|
|
6874
|
+
* refresh.
|
|
6875
|
+
*
|
|
6876
|
+
* Shape: the profile is decomposed into independent facets (bio, interests,
|
|
6877
|
+
* work/role, …). Each facet is one grounded `reflect()` pass over the vault, so
|
|
6878
|
+
* every section carries the `sourceMemoryIds` it was built from — enabling both
|
|
6879
|
+
* provenance and cheap delta refresh (only regenerate sections whose source
|
|
6880
|
+
* facts changed since the previous doc's `vaultWatermark`).
|
|
6881
|
+
*
|
|
6882
|
+
* Facet decomposition, per-facet synthesis, delta refresh, and the PII gate are
|
|
6883
|
+
* wired end-to-end. New facts are attributed to the facets they're relevant to
|
|
6884
|
+
* (by embedding similarity to each facet query) so an unrelated new fact doesn't
|
|
6885
|
+
* force a full re-synthesis — see {@link attributeFacts}.
|
|
6886
|
+
*/
|
|
6887
|
+
|
|
6888
|
+
/** Bump when the ProfileDoc / section shape changes incompatibly. */
|
|
6889
|
+
declare const PROFILE_DOC_VERSION = 1;
|
|
6890
|
+
/** The facets a profile decomposes into (dating-app-style, per the People
|
|
6891
|
+
* Nearby plan). Configurable via {@link SynthesizeProfileOptions.facets}. */
|
|
6892
|
+
type ProfileFacetKey = "bio" | "interests" | "work_role" | "location_context" | "communication_style" | "recent_activity";
|
|
6893
|
+
/** One profile facet: how to recall its evidence and steer its synthesis. */
|
|
6894
|
+
interface ProfileFacet {
|
|
6895
|
+
key: ProfileFacetKey;
|
|
6896
|
+
/** Human-readable section label. */
|
|
6897
|
+
label: string;
|
|
6898
|
+
/** Recall query that pulls the vault facts relevant to this facet. */
|
|
6899
|
+
query: string;
|
|
6900
|
+
/** Facet-specific guidance appended to the synthesis system prompt. */
|
|
6901
|
+
guidance: string;
|
|
6902
|
+
}
|
|
6903
|
+
/** Default dating-app facet set. Order is display order. */
|
|
6904
|
+
declare const DEFAULT_PROFILE_FACETS: ProfileFacet[];
|
|
6905
|
+
/** A synthesized profile section, grounded in specific vault facts. */
|
|
6906
|
+
interface ProfileSection {
|
|
6907
|
+
key: ProfileFacetKey;
|
|
6908
|
+
label: string;
|
|
6909
|
+
/** Synthesized prose (PII-redacted when a redactor is supplied). Empty when
|
|
6910
|
+
* the vault has no evidence for this facet. */
|
|
6911
|
+
text: string;
|
|
6912
|
+
/** Vault memory ids this section was grounded on — provenance + delta refresh. */
|
|
6913
|
+
sourceMemoryIds: string[];
|
|
6914
|
+
/** Unix ms this section was generated. */
|
|
6915
|
+
generatedAt: number;
|
|
6916
|
+
/** True when regeneration failed and a prior section value was carried
|
|
6917
|
+
* forward (e.g. LLM returned empty) — the caller may choose to retry. */
|
|
6918
|
+
stale?: boolean;
|
|
6919
|
+
}
|
|
6920
|
+
/** Fingerprint of the config that produced a {@link ProfileDoc}. Delta reuse
|
|
6921
|
+
* (both the wholesale fast path and per-section reuse) is only valid when the
|
|
6922
|
+
* current call's config matches — otherwise reused sections could carry the
|
|
6923
|
+
* wrong scope's evidence, un-redacted text under a now-present redactor, or an
|
|
6924
|
+
* old section shape. */
|
|
6925
|
+
interface ProfileConfigFingerprint {
|
|
6926
|
+
/** Facet keys present in the doc, sorted. */
|
|
6927
|
+
facetKeys: ProfileFacetKey[];
|
|
6928
|
+
/** Order-independent digest of each facet's full definition (key + label +
|
|
6929
|
+
* query + guidance). Reuse must invalidate when a facet's PROMPT changes, not
|
|
6930
|
+
* just its key set — otherwise reused sections carry text generated under the
|
|
6931
|
+
* old definition. Facet display order does NOT invalidate (sections are
|
|
6932
|
+
* rebuilt in facet order and reused by key). */
|
|
6933
|
+
facetsSignature: string;
|
|
6934
|
+
/** Scopes the facts were drawn from, sorted. */
|
|
6935
|
+
scopes: string[];
|
|
6936
|
+
/** Whether a PII redactor gated the section text. Reusing un-gated text under
|
|
6937
|
+
* a now-present redactor would leak PII, so this flips the fingerprint. */
|
|
6938
|
+
redacted: boolean;
|
|
6939
|
+
}
|
|
6940
|
+
/** A synthesized profile. Server-authoritative once published; the client
|
|
6941
|
+
* caches it and passes it back as {@link SynthesizeProfileOptions.previous}. */
|
|
6942
|
+
interface ProfileDoc {
|
|
6943
|
+
/** {@link PROFILE_DOC_VERSION} at synthesis time. */
|
|
6944
|
+
version: number;
|
|
6945
|
+
/** One section per requested facet (in facet order). */
|
|
6946
|
+
sections: ProfileSection[];
|
|
6947
|
+
/** Max change-time across all vault facts (incl. deleted/superseded) at
|
|
6948
|
+
* synthesis time. Delta refresh regenerates only sections whose source facts
|
|
6949
|
+
* changed since a previous doc's watermark. */
|
|
6950
|
+
vaultWatermark: number;
|
|
6951
|
+
/** The config that produced this doc — see {@link ProfileConfigFingerprint}. */
|
|
6952
|
+
config: ProfileConfigFingerprint;
|
|
6953
|
+
/** Unix ms this doc was produced. */
|
|
6954
|
+
generatedAt: number;
|
|
6955
|
+
}
|
|
6956
|
+
/** Options for {@link synthesizeProfile}. Auth is the dual {@link PortalLlmAuth}
|
|
6957
|
+
* pattern — one of `apiKey` / `getToken` is required at runtime. */
|
|
6958
|
+
interface SynthesizeProfileOptions extends PortalLlmAuth {
|
|
6959
|
+
/** Facets to synthesize. Defaults to {@link DEFAULT_PROFILE_FACETS}. */
|
|
6960
|
+
facets?: ProfileFacet[];
|
|
6961
|
+
/** Prior doc for delta refresh. Unchanged sections are reused verbatim. */
|
|
6962
|
+
previous?: ProfileDoc;
|
|
6963
|
+
/** Synthesis model. Default: open-weights ling-2.6-flash. */
|
|
6964
|
+
llmModel?: string;
|
|
6965
|
+
/** LLM endpoint override. */
|
|
6966
|
+
baseUrl?: string;
|
|
6967
|
+
/** Scopes to draw facts from. Default: ["private"]. */
|
|
6968
|
+
scopes?: string[];
|
|
6969
|
+
/** Facts recalled per facet before synthesis. Default: 20. */
|
|
6970
|
+
limit?: number;
|
|
6971
|
+
/** Override fetch (tests). */
|
|
6972
|
+
fetchFn?: typeof fetch;
|
|
6973
|
+
/** Pre-publish PII gate. When supplied, each section's text is run through
|
|
6974
|
+
* {@link PiiRedactor.redactTextAsync} (regex + NER) before it's returned.
|
|
6975
|
+
* Omit only when the caller redacts downstream — `nearby` also moderates
|
|
6976
|
+
* server-side, but the client should never publish un-gated text. */
|
|
6977
|
+
redactor?: PiiRedactor;
|
|
6978
|
+
}
|
|
6979
|
+
/**
|
|
6980
|
+
* Synthesize a shareable {@link ProfileDoc} from the user's vault, on-device.
|
|
6981
|
+
*
|
|
6982
|
+
* Stateless: pass `options.previous` to reuse unchanged sections (delta refresh)
|
|
6983
|
+
* and the caller persists the result. On per-facet LLM failure the section
|
|
6984
|
+
* falls back to its prior value (marked `stale`) or an empty section.
|
|
6985
|
+
*/
|
|
6986
|
+
declare function synthesizeProfile(ctx: RecallContext, options?: SynthesizeProfileOptions): Promise<ProfileDoc>;
|
|
6987
|
+
|
|
6847
6988
|
/**
|
|
6848
6989
|
* Standalone topic (entity) extraction for EXISTING memories.
|
|
6849
6990
|
*
|
|
@@ -7944,4 +8085,4 @@ declare function sanitizeQuotes(s: string): string;
|
|
|
7944
8085
|
declare function renderTemplate(value: string | null | undefined, template: string): string | null;
|
|
7945
8086
|
declare function buildSystemPrompt(ctx: PromptContext, options?: BuildPromptOptions): BuildPromptResult;
|
|
7946
8087
|
|
|
7947
|
-
export { type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, type ApiType, type AutoExecutedToolResult, type AutoExtractMessage, type AutoExtractor, type Budget, type BuildPromptOptions, type BuildPromptResult, type CachedChunkVectors, type CachedServerTools, type ChatCompletionUsage, type ChatRole, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_SUMMARY_MIN_WINDOW_MESSAGES, DEFAULT_SUMMARY_MODEL, DEFAULT_SUMMARY_TOKEN_THRESHOLD, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type EmbeddedWalletSignerFn, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, INFERENCE_ID_HEADER, type LazyStoredConversation, type LlmTokenUsage, MAX_MESSAGES_PER_SUMMARIZATION, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, type OperationExecutor, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PlatformStorage, type PortalLlmAuth, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type SearchSource, type SelectServerToolsForPromptOptions, type ServerTool, type ServerToolCallEvent, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SettingsStorageOperationsContext, type SignMessageFn, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredConversation, type StoredConversationSummary, type StoredFileWithContext, type StoredMedia, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, type StoredProject, type StoredUserPreference, type StoredVaultFolder, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, TOOL_CATALOG, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, type VaultEmbeddingCache, VaultFolder, type VaultFolderOperationsContext, VaultMemory, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultFolderOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessageOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summaryToSystemMessage, supersedeVaultMemoryOp, toolSetSystemPrompts, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };
|
|
8088
|
+
export { type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, type ApiType, type AutoExecutedToolResult, type AutoExtractMessage, type AutoExtractor, type Budget, type BuildPromptOptions, type BuildPromptResult, type CachedChunkVectors, type CachedServerTools, type ChatCompletionUsage, type ChatRole, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_SUMMARY_MIN_WINDOW_MESSAGES, DEFAULT_SUMMARY_MODEL, DEFAULT_SUMMARY_TOKEN_THRESHOLD, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type EmbeddedWalletSignerFn, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, INFERENCE_ID_HEADER, type LazyStoredConversation, type LlmTokenUsage, MAX_MESSAGES_PER_SUMMARIZATION, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, type OperationExecutor, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PlatformStorage, type PortalLlmAuth, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSection, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type SearchSource, type SelectServerToolsForPromptOptions, type ServerTool, type ServerToolCallEvent, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SettingsStorageOperationsContext, type SignMessageFn, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredConversation, type StoredConversationSummary, type StoredFileWithContext, type StoredMedia, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, type StoredProject, type StoredUserPreference, type StoredVaultFolder, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, type SynthesizeProfileOptions, TOOL_CATALOG, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, type VaultEmbeddingCache, VaultFolder, type VaultFolderOperationsContext, VaultMemory, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultFolderOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessageOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -61,8 +61,12 @@ import { ResultCallback } from '@nozbe/watermelondb/utils/fp/Result';
|
|
|
61
61
|
* logic version a memory was last stamped under. Bumping TOPICS_EXTRACTION_VERSION
|
|
62
62
|
* (new prompt/model) makes the worker re-extract every row whose stored version
|
|
63
63
|
* is behind, so topic-quality improvements propagate across the existing vault
|
|
64
|
+
* - v39: Added last_observed_at column to memory_vault (C3) — a re-observation
|
|
65
|
+
* watermark stamped each time retain() merges into an existing fact, kept
|
|
66
|
+
* distinct from updated_at (which merges preserve). Lets profile synthesis
|
|
67
|
+
* weight facts by recency of reinforcement rather than last edit.
|
|
64
68
|
*/
|
|
65
|
-
declare const SDK_SCHEMA_VERSION =
|
|
69
|
+
declare const SDK_SCHEMA_VERSION = 39;
|
|
66
70
|
/**
|
|
67
71
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
68
72
|
*
|
|
@@ -143,6 +147,8 @@ declare const sdkSchema: Readonly<{
|
|
|
143
147
|
* - v34 → v35: Added `conversation_memory` table (conversation ↔ recalled memory ids)
|
|
144
148
|
* - v35 → v36: Added `topics_extracted_at` column to memory_vault (watermark for the background topic-extraction worker; null + existing links grandfathered as extracted)
|
|
145
149
|
* - v36 → v37: Added `superseded_by` + `superseded_at` columns to memory_vault (write-time supersession; null = live, excluded from recall/dedup when set)
|
|
150
|
+
* - v37 → v38: Added `topics_extracted_version` column to memory_vault (extraction-logic version; null read as 0 so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows)
|
|
151
|
+
* - v38 → v39: Added `last_observed_at` column to memory_vault (C3 re-observation watermark; stamped on retain merge, distinct from updated_at)
|
|
146
152
|
*/
|
|
147
153
|
declare const sdkMigrations: Readonly<{
|
|
148
154
|
validated: true;
|
|
@@ -4268,6 +4274,8 @@ declare class VaultMemory extends Model$1 {
|
|
|
4268
4274
|
/** Extraction-logic version this memory was last stamped under. Null (pre-v38)
|
|
4269
4275
|
* reads as 0, so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows. */
|
|
4270
4276
|
topicsExtractedVersion: number | null;
|
|
4277
|
+
/** C3 re-observation watermark: Unix ms of the last retain() merge, or null. */
|
|
4278
|
+
lastObservedAt: number | null;
|
|
4271
4279
|
createdAt: Date;
|
|
4272
4280
|
updatedAt: Date;
|
|
4273
4281
|
isDeleted: boolean;
|
|
@@ -4385,6 +4393,11 @@ interface StoredVaultMemory {
|
|
|
4385
4393
|
/** Extraction-logic version this memory was last stamped under. Null (pre-v38)
|
|
4386
4394
|
* reads as 0, so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows. */
|
|
4387
4395
|
topicsExtractedVersion: number | null;
|
|
4396
|
+
/** C3 re-observation watermark: Unix ms of the last retain() merge into this
|
|
4397
|
+
* fact. Distinct from `updatedAt` (which merges preserve). Null = never
|
|
4398
|
+
* re-observed since the column was added; synthesis falls back to
|
|
4399
|
+
* `updatedAt` in that case. */
|
|
4400
|
+
lastObservedAt: number | null;
|
|
4388
4401
|
createdAt: Date;
|
|
4389
4402
|
updatedAt: Date;
|
|
4390
4403
|
isDeleted: boolean;
|
|
@@ -4458,6 +4471,11 @@ interface UpdateVaultMemoryOptions {
|
|
|
4458
4471
|
* without inflating recency on top.
|
|
4459
4472
|
*/
|
|
4460
4473
|
preserveUpdatedAt?: boolean;
|
|
4474
|
+
/** C3: Unix ms to stamp as the re-observation watermark (`last_observed_at`).
|
|
4475
|
+
* Set by retain() merge/consolidate paths so a re-observation records "seen
|
|
4476
|
+
* again now" without touching `updated_at` (which `preserveUpdatedAt` keeps
|
|
4477
|
+
* pinned). Omit to leave the existing value untouched. */
|
|
4478
|
+
lastObservedAt?: number;
|
|
4461
4479
|
/** If provided, sets whether the user has taken manual control of this
|
|
4462
4480
|
* memory's topics. Set by {@link setMemoryEntitiesOp}. */
|
|
4463
4481
|
topicsUserManaged?: boolean;
|
|
@@ -6844,6 +6862,129 @@ declare class RerankerUnavailableError extends Error {
|
|
|
6844
6862
|
*/
|
|
6845
6863
|
declare function isRerankerAvailable(): boolean | undefined;
|
|
6846
6864
|
|
|
6865
|
+
/**
|
|
6866
|
+
* synthesizeProfile — client-side profile synthesis for People Nearby (C1).
|
|
6867
|
+
*
|
|
6868
|
+
* The vault is E2E-encrypted and device-authoritative; the server cannot read
|
|
6869
|
+
* it. So the shareable profile is synthesized ON-DEVICE here, in the SDK, from
|
|
6870
|
+
* the user's vault facts. The client then publishes the result (PII-redacted,
|
|
6871
|
+
* then server-side moderated in `nearby`) to the server-authoritative profile
|
|
6872
|
+
* store. The SDK stays STATELESS: no profile table, no persistence — the caller
|
|
6873
|
+
* owns storage and passes the prior doc back via `options.previous` for delta
|
|
6874
|
+
* refresh.
|
|
6875
|
+
*
|
|
6876
|
+
* Shape: the profile is decomposed into independent facets (bio, interests,
|
|
6877
|
+
* work/role, …). Each facet is one grounded `reflect()` pass over the vault, so
|
|
6878
|
+
* every section carries the `sourceMemoryIds` it was built from — enabling both
|
|
6879
|
+
* provenance and cheap delta refresh (only regenerate sections whose source
|
|
6880
|
+
* facts changed since the previous doc's `vaultWatermark`).
|
|
6881
|
+
*
|
|
6882
|
+
* Facet decomposition, per-facet synthesis, delta refresh, and the PII gate are
|
|
6883
|
+
* wired end-to-end. New facts are attributed to the facets they're relevant to
|
|
6884
|
+
* (by embedding similarity to each facet query) so an unrelated new fact doesn't
|
|
6885
|
+
* force a full re-synthesis — see {@link attributeFacts}.
|
|
6886
|
+
*/
|
|
6887
|
+
|
|
6888
|
+
/** Bump when the ProfileDoc / section shape changes incompatibly. */
|
|
6889
|
+
declare const PROFILE_DOC_VERSION = 1;
|
|
6890
|
+
/** The facets a profile decomposes into (dating-app-style, per the People
|
|
6891
|
+
* Nearby plan). Configurable via {@link SynthesizeProfileOptions.facets}. */
|
|
6892
|
+
type ProfileFacetKey = "bio" | "interests" | "work_role" | "location_context" | "communication_style" | "recent_activity";
|
|
6893
|
+
/** One profile facet: how to recall its evidence and steer its synthesis. */
|
|
6894
|
+
interface ProfileFacet {
|
|
6895
|
+
key: ProfileFacetKey;
|
|
6896
|
+
/** Human-readable section label. */
|
|
6897
|
+
label: string;
|
|
6898
|
+
/** Recall query that pulls the vault facts relevant to this facet. */
|
|
6899
|
+
query: string;
|
|
6900
|
+
/** Facet-specific guidance appended to the synthesis system prompt. */
|
|
6901
|
+
guidance: string;
|
|
6902
|
+
}
|
|
6903
|
+
/** Default dating-app facet set. Order is display order. */
|
|
6904
|
+
declare const DEFAULT_PROFILE_FACETS: ProfileFacet[];
|
|
6905
|
+
/** A synthesized profile section, grounded in specific vault facts. */
|
|
6906
|
+
interface ProfileSection {
|
|
6907
|
+
key: ProfileFacetKey;
|
|
6908
|
+
label: string;
|
|
6909
|
+
/** Synthesized prose (PII-redacted when a redactor is supplied). Empty when
|
|
6910
|
+
* the vault has no evidence for this facet. */
|
|
6911
|
+
text: string;
|
|
6912
|
+
/** Vault memory ids this section was grounded on — provenance + delta refresh. */
|
|
6913
|
+
sourceMemoryIds: string[];
|
|
6914
|
+
/** Unix ms this section was generated. */
|
|
6915
|
+
generatedAt: number;
|
|
6916
|
+
/** True when regeneration failed and a prior section value was carried
|
|
6917
|
+
* forward (e.g. LLM returned empty) — the caller may choose to retry. */
|
|
6918
|
+
stale?: boolean;
|
|
6919
|
+
}
|
|
6920
|
+
/** Fingerprint of the config that produced a {@link ProfileDoc}. Delta reuse
|
|
6921
|
+
* (both the wholesale fast path and per-section reuse) is only valid when the
|
|
6922
|
+
* current call's config matches — otherwise reused sections could carry the
|
|
6923
|
+
* wrong scope's evidence, un-redacted text under a now-present redactor, or an
|
|
6924
|
+
* old section shape. */
|
|
6925
|
+
interface ProfileConfigFingerprint {
|
|
6926
|
+
/** Facet keys present in the doc, sorted. */
|
|
6927
|
+
facetKeys: ProfileFacetKey[];
|
|
6928
|
+
/** Order-independent digest of each facet's full definition (key + label +
|
|
6929
|
+
* query + guidance). Reuse must invalidate when a facet's PROMPT changes, not
|
|
6930
|
+
* just its key set — otherwise reused sections carry text generated under the
|
|
6931
|
+
* old definition. Facet display order does NOT invalidate (sections are
|
|
6932
|
+
* rebuilt in facet order and reused by key). */
|
|
6933
|
+
facetsSignature: string;
|
|
6934
|
+
/** Scopes the facts were drawn from, sorted. */
|
|
6935
|
+
scopes: string[];
|
|
6936
|
+
/** Whether a PII redactor gated the section text. Reusing un-gated text under
|
|
6937
|
+
* a now-present redactor would leak PII, so this flips the fingerprint. */
|
|
6938
|
+
redacted: boolean;
|
|
6939
|
+
}
|
|
6940
|
+
/** A synthesized profile. Server-authoritative once published; the client
|
|
6941
|
+
* caches it and passes it back as {@link SynthesizeProfileOptions.previous}. */
|
|
6942
|
+
interface ProfileDoc {
|
|
6943
|
+
/** {@link PROFILE_DOC_VERSION} at synthesis time. */
|
|
6944
|
+
version: number;
|
|
6945
|
+
/** One section per requested facet (in facet order). */
|
|
6946
|
+
sections: ProfileSection[];
|
|
6947
|
+
/** Max change-time across all vault facts (incl. deleted/superseded) at
|
|
6948
|
+
* synthesis time. Delta refresh regenerates only sections whose source facts
|
|
6949
|
+
* changed since a previous doc's watermark. */
|
|
6950
|
+
vaultWatermark: number;
|
|
6951
|
+
/** The config that produced this doc — see {@link ProfileConfigFingerprint}. */
|
|
6952
|
+
config: ProfileConfigFingerprint;
|
|
6953
|
+
/** Unix ms this doc was produced. */
|
|
6954
|
+
generatedAt: number;
|
|
6955
|
+
}
|
|
6956
|
+
/** Options for {@link synthesizeProfile}. Auth is the dual {@link PortalLlmAuth}
|
|
6957
|
+
* pattern — one of `apiKey` / `getToken` is required at runtime. */
|
|
6958
|
+
interface SynthesizeProfileOptions extends PortalLlmAuth {
|
|
6959
|
+
/** Facets to synthesize. Defaults to {@link DEFAULT_PROFILE_FACETS}. */
|
|
6960
|
+
facets?: ProfileFacet[];
|
|
6961
|
+
/** Prior doc for delta refresh. Unchanged sections are reused verbatim. */
|
|
6962
|
+
previous?: ProfileDoc;
|
|
6963
|
+
/** Synthesis model. Default: open-weights ling-2.6-flash. */
|
|
6964
|
+
llmModel?: string;
|
|
6965
|
+
/** LLM endpoint override. */
|
|
6966
|
+
baseUrl?: string;
|
|
6967
|
+
/** Scopes to draw facts from. Default: ["private"]. */
|
|
6968
|
+
scopes?: string[];
|
|
6969
|
+
/** Facts recalled per facet before synthesis. Default: 20. */
|
|
6970
|
+
limit?: number;
|
|
6971
|
+
/** Override fetch (tests). */
|
|
6972
|
+
fetchFn?: typeof fetch;
|
|
6973
|
+
/** Pre-publish PII gate. When supplied, each section's text is run through
|
|
6974
|
+
* {@link PiiRedactor.redactTextAsync} (regex + NER) before it's returned.
|
|
6975
|
+
* Omit only when the caller redacts downstream — `nearby` also moderates
|
|
6976
|
+
* server-side, but the client should never publish un-gated text. */
|
|
6977
|
+
redactor?: PiiRedactor;
|
|
6978
|
+
}
|
|
6979
|
+
/**
|
|
6980
|
+
* Synthesize a shareable {@link ProfileDoc} from the user's vault, on-device.
|
|
6981
|
+
*
|
|
6982
|
+
* Stateless: pass `options.previous` to reuse unchanged sections (delta refresh)
|
|
6983
|
+
* and the caller persists the result. On per-facet LLM failure the section
|
|
6984
|
+
* falls back to its prior value (marked `stale`) or an empty section.
|
|
6985
|
+
*/
|
|
6986
|
+
declare function synthesizeProfile(ctx: RecallContext, options?: SynthesizeProfileOptions): Promise<ProfileDoc>;
|
|
6987
|
+
|
|
6847
6988
|
/**
|
|
6848
6989
|
* Standalone topic (entity) extraction for EXISTING memories.
|
|
6849
6990
|
*
|
|
@@ -7944,4 +8085,4 @@ declare function sanitizeQuotes(s: string): string;
|
|
|
7944
8085
|
declare function renderTemplate(value: string | null | undefined, template: string): string | null;
|
|
7945
8086
|
declare function buildSystemPrompt(ctx: PromptContext, options?: BuildPromptOptions): BuildPromptResult;
|
|
7946
8087
|
|
|
7947
|
-
export { type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, type ApiType, type AutoExecutedToolResult, type AutoExtractMessage, type AutoExtractor, type Budget, type BuildPromptOptions, type BuildPromptResult, type CachedChunkVectors, type CachedServerTools, type ChatCompletionUsage, type ChatRole, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_SUMMARY_MIN_WINDOW_MESSAGES, DEFAULT_SUMMARY_MODEL, DEFAULT_SUMMARY_TOKEN_THRESHOLD, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type EmbeddedWalletSignerFn, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, INFERENCE_ID_HEADER, type LazyStoredConversation, type LlmTokenUsage, MAX_MESSAGES_PER_SUMMARIZATION, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, type OperationExecutor, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PlatformStorage, type PortalLlmAuth, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type SearchSource, type SelectServerToolsForPromptOptions, type ServerTool, type ServerToolCallEvent, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SettingsStorageOperationsContext, type SignMessageFn, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredConversation, type StoredConversationSummary, type StoredFileWithContext, type StoredMedia, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, type StoredProject, type StoredUserPreference, type StoredVaultFolder, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, TOOL_CATALOG, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, type VaultEmbeddingCache, VaultFolder, type VaultFolderOperationsContext, VaultMemory, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultFolderOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessageOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summaryToSystemMessage, supersedeVaultMemoryOp, toolSetSystemPrompts, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };
|
|
8088
|
+
export { type AnalyzeStyleOptions, type AnalyzeStyleResult, type ApiResponse, type ApiType, type AutoExecutedToolResult, type AutoExtractMessage, type AutoExtractor, type Budget, type BuildPromptOptions, type BuildPromptResult, type CachedChunkVectors, type CachedServerTools, type ChatCompletionUsage, type ChatRole, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_SUMMARY_MIN_WINDOW_MESSAGES, DEFAULT_SUMMARY_MODEL, DEFAULT_SUMMARY_TOKEN_THRESHOLD, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type EmbeddedWalletSignerFn, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, INFERENCE_ID_HEADER, type LazyStoredConversation, type LlmTokenUsage, MAX_MESSAGES_PER_SUMMARIZATION, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, type OperationExecutor, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PlatformStorage, type PortalLlmAuth, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSection, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type SearchSource, type SelectServerToolsForPromptOptions, type ServerTool, type ServerToolCallEvent, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SettingsStorageOperationsContext, type SignMessageFn, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredConversation, type StoredConversationSummary, type StoredFileWithContext, type StoredMedia, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, type StoredProject, type StoredUserPreference, type StoredVaultFolder, type StoredVaultMemory, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type StreamingTransport, type StreamingTransportOptions, type StreamingTransportResult, type StyleAnalysisSchedule, type SynthesizeProfileOptions, TOOL_CATALOG, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, type VaultEmbeddingCache, VaultFolder, type VaultFolderOperationsContext, VaultMemory, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultFolderOp, deleteVaultMemoryOp, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDocumentsOp, getEncryptionKey, getImagesOp, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesNeedingTopicExtractionOp, getMessageOp, getMessagesOp, getModelPreferenceOp, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getServerTools, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserPreferenceOp, getUserUploadedMediaOp, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };
|