@anuma/sdk 6.33.2 → 6.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expo/index.cjs +1304 -300
- package/dist/expo/index.d.mts +278 -11
- package/dist/expo/index.d.ts +278 -11
- package/dist/expo/index.mjs +1297 -300
- package/dist/index.cjs +18 -6
- package/dist/index.mjs +18 -6
- package/dist/memory/context.d.mts +21 -1
- package/dist/memory/context.d.ts +21 -1
- package/dist/react/index.cjs +1385 -381
- package/dist/react/index.d.mts +311 -11
- package/dist/react/index.d.ts +311 -11
- package/dist/react/index.mjs +1378 -381
- package/dist/server/index.cjs +319 -99
- package/dist/server/index.d.mts +138 -11
- package/dist/server/index.d.ts +138 -11
- package/dist/server/index.mjs +316 -99
- package/dist/telemetry/index.d.mts +3 -4
- package/dist/telemetry/index.d.ts +3 -4
- package/dist/tools/selection/index.cjs +18 -6
- package/dist/tools/selection/index.mjs +18 -6
- package/package.json +1 -1
package/dist/server/index.d.mts
CHANGED
|
@@ -1227,13 +1227,13 @@ interface EmbeddingOptions {
|
|
|
1227
1227
|
*/
|
|
1228
1228
|
tokenTimeoutMs?: number;
|
|
1229
1229
|
/**
|
|
1230
|
-
* Overall deadline, in ms, for one `generateEmbedding` call — the token read,
|
|
1230
|
+
* Overall deadline, in ms, for one `generateEmbedding` or `generateEmbeddings` call — the token read,
|
|
1231
1231
|
* every retry attempt and the backoff between them. Unset (the default) means
|
|
1232
1232
|
* only the per-attempt deadlines apply, which is right for background/bulk
|
|
1233
1233
|
* embeds. The recall query path sets it (see
|
|
1234
1234
|
* `RecallOptions.queryEmbedTotalTimeoutMs`) so an outage degrades a turn to
|
|
1235
|
-
* BM25 within a few seconds instead of ~4 x `timeoutMs`.
|
|
1236
|
-
*
|
|
1235
|
+
* BM25 within a few seconds instead of ~4 x `timeoutMs`. Batch calls share
|
|
1236
|
+
* one budget across authentication, all chunks, retries and backoff.
|
|
1237
1237
|
*/
|
|
1238
1238
|
totalTimeoutMs?: number;
|
|
1239
1239
|
}
|
|
@@ -4775,8 +4775,10 @@ declare function deleteConversationSummaryOp(ctx: SummaryOperationsContext, conv
|
|
|
4775
4775
|
* budget was in memory and reset on every turn, so one batch that could never
|
|
4776
4776
|
* extract blocked its conversation's extraction forever. Additive, both
|
|
4777
4777
|
* nullable, no backfill: NULL reads as "never failed"
|
|
4778
|
+
* - v48: Added kind, kind_value (encrypted) and level to memory_vault; level is
|
|
4779
|
+
* backfilled from scope where SQL steps run
|
|
4778
4780
|
*/
|
|
4779
|
-
declare const SDK_SCHEMA_VERSION =
|
|
4781
|
+
declare const SDK_SCHEMA_VERSION = 48;
|
|
4780
4782
|
/**
|
|
4781
4783
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
4782
4784
|
*
|
|
@@ -4865,6 +4867,7 @@ declare const sdkSchema: Readonly<{
|
|
|
4865
4867
|
* - 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)
|
|
4866
4868
|
* - v42 → v43: Added a composite `(is_deleted, created_at)` index to conversations so the list reads stop temp-sorting (structural only, no data rewritten)
|
|
4867
4869
|
* - 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)
|
|
4870
|
+
* - v47 → v48: Added `kind`, `kind_value`, `level` to memory_vault; `level` backfilled from `scope` (`shared`/`public` → matching, else private) where SQL steps run
|
|
4868
4871
|
*/
|
|
4869
4872
|
declare const sdkMigrations: Readonly<{
|
|
4870
4873
|
validated: true;
|
|
@@ -5382,6 +5385,12 @@ declare class VaultMemory extends Model {
|
|
|
5382
5385
|
static table: string;
|
|
5383
5386
|
content: string;
|
|
5384
5387
|
scope: string;
|
|
5388
|
+
/** Profile kind, or null for a free-form memory. */
|
|
5389
|
+
kind: string | null;
|
|
5390
|
+
/** Canonical JSON value of a kinded memory, encrypted at rest. */
|
|
5391
|
+
kindValue: string | null;
|
|
5392
|
+
/** private | matching | profile. */
|
|
5393
|
+
level: string | null;
|
|
5385
5394
|
folderId: string | null;
|
|
5386
5395
|
userId: string | null;
|
|
5387
5396
|
embedding: string | null;
|
|
@@ -5998,6 +6007,55 @@ interface VaultSearchResult {
|
|
|
5998
6007
|
* these to suppress the originating chunk in the chunk lane. */
|
|
5999
6008
|
sourceChunkIds?: string[] | null;
|
|
6000
6009
|
}
|
|
6010
|
+
/**
|
|
6011
|
+
* Search + rank in one call. Thin wrapper over {@link prepareVaultCandidates} +
|
|
6012
|
+
* {@link rankPreparedVaultCandidates}; behavior is unchanged.
|
|
6013
|
+
*/
|
|
6014
|
+
declare function searchVaultMemoriesWithSize(query: string, vaultCtx: VaultMemoryOperationsContext, embeddingOptions: EmbeddingOptions, cache: VaultEmbeddingCache, searchOptions?: MemoryVaultSearchOptions): Promise<{
|
|
6015
|
+
results: VaultSearchResult[];
|
|
6016
|
+
vaultSize: number;
|
|
6017
|
+
reranked: boolean;
|
|
6018
|
+
/**
|
|
6019
|
+
* Wall-clock ms this search spent inside the cross-encoder.
|
|
6020
|
+
*
|
|
6021
|
+
* 0 on every path that did not reach the CE, which `reranked` already
|
|
6022
|
+
* distinguishes from "ran and cost nothing". Reported because `factLane`
|
|
6023
|
+
* timing alone could not separate the rerank from the query embed, the vault
|
|
6024
|
+
* read and the fused ranking — see {@link RerankStats}.
|
|
6025
|
+
*/
|
|
6026
|
+
rerankMs: number;
|
|
6027
|
+
hadV2Head: boolean;
|
|
6028
|
+
/** True when this search had no usable cosine lane and ranked on BM25 alone. */
|
|
6029
|
+
embeddingsUnavailable: boolean;
|
|
6030
|
+
/**
|
|
6031
|
+
* True when this search actually scored rows against a real query vector.
|
|
6032
|
+
*
|
|
6033
|
+
* NOT the inverse of `embeddingsUnavailable`. That flag answers "did cosine
|
|
6034
|
+
* break?", and it is `false` on the degenerate returns below — an invalid
|
|
6035
|
+
* query, an empty scope, nothing decryptable — where cosine did not break so
|
|
6036
|
+
* much as never run. A caller asking "can this lane vouch that semantic
|
|
6037
|
+
* ranking happened?" (recall's chunk-lane reconciliation) must not read those
|
|
6038
|
+
* as a healthy cosine pass.
|
|
6039
|
+
*/
|
|
6040
|
+
rankedOnCosine: boolean;
|
|
6041
|
+
/**
|
|
6042
|
+
* Which vault read path ran — projected key scan (`true`) or legacy whole-vault
|
|
6043
|
+
* load (`false`). See {@link PreparedVaultCandidates.decryptLast}.
|
|
6044
|
+
*/
|
|
6045
|
+
decryptLast: boolean;
|
|
6046
|
+
/**
|
|
6047
|
+
* Rows this search paid to decrypt. Read against `vaultSize` — see
|
|
6048
|
+
* {@link PreparedVaultCandidates.rowsDecrypted}.
|
|
6049
|
+
*/
|
|
6050
|
+
rowsDecrypted: number;
|
|
6051
|
+
/**
|
|
6052
|
+
* Wall-clock ms spent embedding the query, and rows the lane had to re-embed
|
|
6053
|
+
* because their stored vector was unusable — see
|
|
6054
|
+
* {@link PreparedVaultCandidates.queryEmbedMs} and `rowsEmbedded`.
|
|
6055
|
+
*/
|
|
6056
|
+
queryEmbedMs: number;
|
|
6057
|
+
rowsEmbedded: number;
|
|
6058
|
+
}>;
|
|
6001
6059
|
/**
|
|
6002
6060
|
* Search vault memories by semantic similarity. Returns structured results
|
|
6003
6061
|
* sorted by descending similarity, filtered by threshold and limit.
|
|
@@ -6262,7 +6320,15 @@ interface RecallOptions {
|
|
|
6262
6320
|
*/
|
|
6263
6321
|
graphRefine?: boolean;
|
|
6264
6322
|
}
|
|
6323
|
+
/** A fact source supplies bounded candidates; recall owns ranking and result handling. */
|
|
6324
|
+
interface RecallFactSource {
|
|
6325
|
+
search: (query: string, options?: MemoryVaultSearchOptions) => ReturnType<typeof searchVaultMemoriesWithSize>;
|
|
6326
|
+
graphRanking: (query: string, traverse: boolean, options: RecallOptions) => Promise<string[]>;
|
|
6327
|
+
temporalRanking: (query: string, now?: number) => Promise<string[]>;
|
|
6328
|
+
}
|
|
6265
6329
|
interface RecallContext {
|
|
6330
|
+
/** Alternative to a WatermelonDB vault for fact-only recall. */
|
|
6331
|
+
factSource?: RecallFactSource;
|
|
6266
6332
|
/** Required when `types` includes 'fact'. */
|
|
6267
6333
|
vaultCtx?: VaultMemoryOperationsContext;
|
|
6268
6334
|
/** Required when `types` includes 'chunk'. */
|
|
@@ -7078,13 +7144,35 @@ declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: Ret
|
|
|
7078
7144
|
* the fail-safe direction: it un-publishes rather than exposes.
|
|
7079
7145
|
*/
|
|
7080
7146
|
type VaultMemoryVisibility = "private" | "public";
|
|
7147
|
+
/** Profile kinds a vault memory can carry. */
|
|
7148
|
+
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"];
|
|
7149
|
+
/** One of {@link MEMORY_KINDS}. */
|
|
7150
|
+
type VaultMemoryKind = (typeof MEMORY_KINDS)[number];
|
|
7151
|
+
/** Who a memory reaches. */
|
|
7152
|
+
declare const MEMORY_LEVELS: readonly ["private", "matching", "profile"];
|
|
7153
|
+
/** One of {@link MEMORY_LEVELS}. */
|
|
7154
|
+
type MemoryLevel = (typeof MEMORY_LEVELS)[number];
|
|
7155
|
+
/**
|
|
7156
|
+
* Thrown by vault writes that would store an unknown kind or level, or a profile level without a kind.
|
|
7157
|
+
*
|
|
7158
|
+
* @public
|
|
7159
|
+
*/
|
|
7160
|
+
declare class MemoryLevelError extends Error {
|
|
7161
|
+
constructor(message: string);
|
|
7162
|
+
}
|
|
7081
7163
|
interface StoredVaultMemory {
|
|
7082
7164
|
/** WatermelonDB internal ID */
|
|
7083
7165
|
uniqueId: string;
|
|
7084
7166
|
/** Plain text memory content */
|
|
7085
7167
|
content: string;
|
|
7086
|
-
/** Scope for partitioning memories (e.g., "private", "shared") */
|
|
7168
|
+
/** Scope for partitioning memories (e.g., "private", "shared"). */
|
|
7087
7169
|
scope: string;
|
|
7170
|
+
/** Profile kind ({@link MEMORY_KINDS}) or null for a free-form memory. */
|
|
7171
|
+
kind?: string | null;
|
|
7172
|
+
/** Canonical value of a kinded memory, JSON-encoded (slug, slug[], int, date, text). */
|
|
7173
|
+
kindValue?: string | null;
|
|
7174
|
+
/** Who this memory reaches. */
|
|
7175
|
+
level?: MemoryLevel;
|
|
7088
7176
|
/** Folder ID for organization, null if unfiled */
|
|
7089
7177
|
folderId: string | null;
|
|
7090
7178
|
/** User ID for multi-user server-side scoping, null on client */
|
|
@@ -7188,8 +7276,14 @@ interface PhotoMediaRef {
|
|
|
7188
7276
|
declare function parseMedia(value: unknown): PhotoMediaRef[] | null;
|
|
7189
7277
|
interface CreateVaultMemoryOptions {
|
|
7190
7278
|
content: string;
|
|
7191
|
-
/** Scope for the memory.
|
|
7279
|
+
/** Scope for the memory. */
|
|
7192
7280
|
scope?: string;
|
|
7281
|
+
/** Profile kind, or omit/null for a free-form memory. */
|
|
7282
|
+
kind?: VaultMemoryKind | null;
|
|
7283
|
+
/** Canonical JSON value of a kinded memory. */
|
|
7284
|
+
kindValue?: string | null;
|
|
7285
|
+
/** Who this memory reaches. */
|
|
7286
|
+
level?: MemoryLevel;
|
|
7193
7287
|
/** Folder ID for organization, null or omitted if unfiled */
|
|
7194
7288
|
folderId?: string | null;
|
|
7195
7289
|
/** JSON-stringified embedding vector to persist */
|
|
@@ -7230,8 +7324,19 @@ interface CreateVaultMemoryOptions {
|
|
|
7230
7324
|
}
|
|
7231
7325
|
interface UpdateVaultMemoryOptions {
|
|
7232
7326
|
content: string;
|
|
7233
|
-
/**
|
|
7327
|
+
/** When true, the write is skipped (returns null) if the row carries a profile kind. */
|
|
7328
|
+
freeFormOnly?: boolean;
|
|
7329
|
+
/**
|
|
7330
|
+
* If provided, updates the memory's scope (and the level it implies; a `profile` row keeps
|
|
7331
|
+
* `profile` under `scope: "shared"`).
|
|
7332
|
+
*/
|
|
7234
7333
|
scope?: string;
|
|
7334
|
+
/** If provided, sets the profile kind (null makes the memory free-form). */
|
|
7335
|
+
kind?: VaultMemoryKind | null;
|
|
7336
|
+
/** If provided, sets the canonical JSON value (null clears it). */
|
|
7337
|
+
kindValue?: string | null;
|
|
7338
|
+
/** If provided, sets the level (and dual-writes `scope`). */
|
|
7339
|
+
level?: MemoryLevel;
|
|
7235
7340
|
/** If provided, moves the memory to this folder. */
|
|
7236
7341
|
folderId?: string | null;
|
|
7237
7342
|
/** JSON-stringified embedding vector to persist, or null to clear stale embedding */
|
|
@@ -7371,6 +7476,10 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
|
|
|
7371
7476
|
* published set to diff against the server index.
|
|
7372
7477
|
*/
|
|
7373
7478
|
visibility?: VaultMemoryVisibility[];
|
|
7479
|
+
/** Filter by level. */
|
|
7480
|
+
levels?: MemoryLevel[];
|
|
7481
|
+
/** Restrict to these profile kinds. */
|
|
7482
|
+
kinds?: string[];
|
|
7374
7483
|
}): Promise<StoredVaultMemory[]>;
|
|
7375
7484
|
declare function getAllVaultMemoryContentsOp(ctx: VaultMemoryOperationsContext, options?: {
|
|
7376
7485
|
since?: Date;
|
|
@@ -7610,7 +7719,8 @@ interface DecayCandidateRaw {
|
|
|
7610
7719
|
*
|
|
7611
7720
|
* Includes archived AND quarantined rows (so archived→delete transitions and
|
|
7612
7721
|
* aged quarantined rows are seen) but excludes hard-deleted rows — the
|
|
7613
|
-
* `baseVaultConditions` default keeps `is_deleted = false`.
|
|
7722
|
+
* `baseVaultConditions` default keeps `is_deleted = false`. Excludes kinded
|
|
7723
|
+
* (profile) memories, which never decay.
|
|
7614
7724
|
*
|
|
7615
7725
|
* Refuses to run on an unscoped multi-tenant context (see
|
|
7616
7726
|
* {@link assertVaultScopeForSweep}).
|
|
@@ -9603,8 +9713,8 @@ interface SynthesizeProfileOptions extends PortalLlmAuth {
|
|
|
9603
9713
|
* on memories the user approved for publication. Empty intersection → empty
|
|
9604
9714
|
* section (legitimate no-evidence), not a stale fallback.
|
|
9605
9715
|
*
|
|
9606
|
-
* Pass the user's published set (e.g. `getAllVaultMemoriesOp(ctx, {
|
|
9607
|
-
* ["
|
|
9716
|
+
* Pass the user's published set (e.g. `getAllVaultMemoriesOp(ctx, { levels:
|
|
9717
|
+
* ["matching", "profile"] })`) to keep a published profile derivable only from published
|
|
9608
9718
|
* memories — People Nearby's two-tier model treats `private` memories as never
|
|
9609
9719
|
* leaving the device, and a summary derived from them is a derivative that does.
|
|
9610
9720
|
*
|
|
@@ -10606,6 +10716,23 @@ interface PostgreSQLAdapterOptions {
|
|
|
10606
10716
|
* @param pgSchema - PostgreSQL schema namespace (defaults to "public")
|
|
10607
10717
|
*/
|
|
10608
10718
|
declare function schemaToCreateSQL(schema: AppSchema, pgSchema?: string): string[];
|
|
10719
|
+
/**
|
|
10720
|
+
* WatermelonDB `DatabaseAdapter` backed by any `pg.Pool`-compatible pool, so SDK operations run unchanged on the server.
|
|
10721
|
+
*
|
|
10722
|
+
* @example
|
|
10723
|
+
* ```typescript
|
|
10724
|
+
* import pg from "pg";
|
|
10725
|
+
* import { PostgreSQLAdapter, sdkSchema, sdkMigrations } from "@anuma/sdk/server";
|
|
10726
|
+
*
|
|
10727
|
+
* const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL });
|
|
10728
|
+
* const adapter = new PostgreSQLAdapter({
|
|
10729
|
+
* pool,
|
|
10730
|
+
* schema: sdkSchema,
|
|
10731
|
+
* migrations: sdkMigrations,
|
|
10732
|
+
* dbName: "anuma-server-wallet123",
|
|
10733
|
+
* });
|
|
10734
|
+
* ```
|
|
10735
|
+
*/
|
|
10609
10736
|
declare class PostgreSQLAdapter implements DatabaseAdapter {
|
|
10610
10737
|
schema: AppSchema;
|
|
10611
10738
|
dbName: string;
|
|
@@ -10660,4 +10787,4 @@ declare class PostgreSQLAdapter implements DatabaseAdapter {
|
|
|
10660
10787
|
*/
|
|
10661
10788
|
declare function serverPlatformStorage(): PlatformStorage;
|
|
10662
10789
|
|
|
10663
|
-
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 ConsolidationAction, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, 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_DECAY_POLICY, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, 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 DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LlmTokenUsage, type LocalMemoryStoreOptions, MAX_HOPS, MAX_MESSAGES_PER_SUMMARIZATION, MEDIUM_TTL_MS, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, 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, Message, type MessageChunk, type MessageFeedback, type MessageOrigin, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type PublishedPhotoMemory, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunTerminalState, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, 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 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, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, VaultMemory, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, archiveVaultMemoryOp, assembleMemoryContext, backfillMemoryTopicsOp, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, capHopsForDensity, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultMemoryOp, deriveKeyFromSignatureBytes, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDecayCandidatesRawOp, 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, getVaultMemoryOp, getVideosOp, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, onKeyAvailable, parseMedia, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, restoreVaultMemoryOp, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serverPlatformStorage, setMemoryVisibilityOp, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, traverseGraphLane, ttlForType, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp, verifyMemoriesForPublish };
|
|
10790
|
+
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 ConsolidationAction, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, 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_DECAY_POLICY, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, 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 DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LlmTokenUsage, type LocalMemoryStoreOptions, MAX_HOPS, MAX_MESSAGES_PER_SUMMARIZATION, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, 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, Message, type MessageChunk, type MessageFeedback, type MessageOrigin, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type PublishedPhotoMemory, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunTerminalState, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, 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 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, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, VaultMemory, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, archiveVaultMemoryOp, assembleMemoryContext, backfillMemoryTopicsOp, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, capHopsForDensity, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultMemoryOp, deriveKeyFromSignatureBytes, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDecayCandidatesRawOp, 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, getVaultMemoryOp, getVideosOp, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, onKeyAvailable, parseMedia, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, restoreVaultMemoryOp, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serverPlatformStorage, setMemoryVisibilityOp, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, traverseGraphLane, ttlForType, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp, verifyMemoriesForPublish };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1227,13 +1227,13 @@ interface EmbeddingOptions {
|
|
|
1227
1227
|
*/
|
|
1228
1228
|
tokenTimeoutMs?: number;
|
|
1229
1229
|
/**
|
|
1230
|
-
* Overall deadline, in ms, for one `generateEmbedding` call — the token read,
|
|
1230
|
+
* Overall deadline, in ms, for one `generateEmbedding` or `generateEmbeddings` call — the token read,
|
|
1231
1231
|
* every retry attempt and the backoff between them. Unset (the default) means
|
|
1232
1232
|
* only the per-attempt deadlines apply, which is right for background/bulk
|
|
1233
1233
|
* embeds. The recall query path sets it (see
|
|
1234
1234
|
* `RecallOptions.queryEmbedTotalTimeoutMs`) so an outage degrades a turn to
|
|
1235
|
-
* BM25 within a few seconds instead of ~4 x `timeoutMs`.
|
|
1236
|
-
*
|
|
1235
|
+
* BM25 within a few seconds instead of ~4 x `timeoutMs`. Batch calls share
|
|
1236
|
+
* one budget across authentication, all chunks, retries and backoff.
|
|
1237
1237
|
*/
|
|
1238
1238
|
totalTimeoutMs?: number;
|
|
1239
1239
|
}
|
|
@@ -4775,8 +4775,10 @@ declare function deleteConversationSummaryOp(ctx: SummaryOperationsContext, conv
|
|
|
4775
4775
|
* budget was in memory and reset on every turn, so one batch that could never
|
|
4776
4776
|
* extract blocked its conversation's extraction forever. Additive, both
|
|
4777
4777
|
* nullable, no backfill: NULL reads as "never failed"
|
|
4778
|
+
* - v48: Added kind, kind_value (encrypted) and level to memory_vault; level is
|
|
4779
|
+
* backfilled from scope where SQL steps run
|
|
4778
4780
|
*/
|
|
4779
|
-
declare const SDK_SCHEMA_VERSION =
|
|
4781
|
+
declare const SDK_SCHEMA_VERSION = 48;
|
|
4780
4782
|
/**
|
|
4781
4783
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
4782
4784
|
*
|
|
@@ -4865,6 +4867,7 @@ declare const sdkSchema: Readonly<{
|
|
|
4865
4867
|
* - 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)
|
|
4866
4868
|
* - v42 → v43: Added a composite `(is_deleted, created_at)` index to conversations so the list reads stop temp-sorting (structural only, no data rewritten)
|
|
4867
4869
|
* - 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)
|
|
4870
|
+
* - v47 → v48: Added `kind`, `kind_value`, `level` to memory_vault; `level` backfilled from `scope` (`shared`/`public` → matching, else private) where SQL steps run
|
|
4868
4871
|
*/
|
|
4869
4872
|
declare const sdkMigrations: Readonly<{
|
|
4870
4873
|
validated: true;
|
|
@@ -5382,6 +5385,12 @@ declare class VaultMemory extends Model {
|
|
|
5382
5385
|
static table: string;
|
|
5383
5386
|
content: string;
|
|
5384
5387
|
scope: string;
|
|
5388
|
+
/** Profile kind, or null for a free-form memory. */
|
|
5389
|
+
kind: string | null;
|
|
5390
|
+
/** Canonical JSON value of a kinded memory, encrypted at rest. */
|
|
5391
|
+
kindValue: string | null;
|
|
5392
|
+
/** private | matching | profile. */
|
|
5393
|
+
level: string | null;
|
|
5385
5394
|
folderId: string | null;
|
|
5386
5395
|
userId: string | null;
|
|
5387
5396
|
embedding: string | null;
|
|
@@ -5998,6 +6007,55 @@ interface VaultSearchResult {
|
|
|
5998
6007
|
* these to suppress the originating chunk in the chunk lane. */
|
|
5999
6008
|
sourceChunkIds?: string[] | null;
|
|
6000
6009
|
}
|
|
6010
|
+
/**
|
|
6011
|
+
* Search + rank in one call. Thin wrapper over {@link prepareVaultCandidates} +
|
|
6012
|
+
* {@link rankPreparedVaultCandidates}; behavior is unchanged.
|
|
6013
|
+
*/
|
|
6014
|
+
declare function searchVaultMemoriesWithSize(query: string, vaultCtx: VaultMemoryOperationsContext, embeddingOptions: EmbeddingOptions, cache: VaultEmbeddingCache, searchOptions?: MemoryVaultSearchOptions): Promise<{
|
|
6015
|
+
results: VaultSearchResult[];
|
|
6016
|
+
vaultSize: number;
|
|
6017
|
+
reranked: boolean;
|
|
6018
|
+
/**
|
|
6019
|
+
* Wall-clock ms this search spent inside the cross-encoder.
|
|
6020
|
+
*
|
|
6021
|
+
* 0 on every path that did not reach the CE, which `reranked` already
|
|
6022
|
+
* distinguishes from "ran and cost nothing". Reported because `factLane`
|
|
6023
|
+
* timing alone could not separate the rerank from the query embed, the vault
|
|
6024
|
+
* read and the fused ranking — see {@link RerankStats}.
|
|
6025
|
+
*/
|
|
6026
|
+
rerankMs: number;
|
|
6027
|
+
hadV2Head: boolean;
|
|
6028
|
+
/** True when this search had no usable cosine lane and ranked on BM25 alone. */
|
|
6029
|
+
embeddingsUnavailable: boolean;
|
|
6030
|
+
/**
|
|
6031
|
+
* True when this search actually scored rows against a real query vector.
|
|
6032
|
+
*
|
|
6033
|
+
* NOT the inverse of `embeddingsUnavailable`. That flag answers "did cosine
|
|
6034
|
+
* break?", and it is `false` on the degenerate returns below — an invalid
|
|
6035
|
+
* query, an empty scope, nothing decryptable — where cosine did not break so
|
|
6036
|
+
* much as never run. A caller asking "can this lane vouch that semantic
|
|
6037
|
+
* ranking happened?" (recall's chunk-lane reconciliation) must not read those
|
|
6038
|
+
* as a healthy cosine pass.
|
|
6039
|
+
*/
|
|
6040
|
+
rankedOnCosine: boolean;
|
|
6041
|
+
/**
|
|
6042
|
+
* Which vault read path ran — projected key scan (`true`) or legacy whole-vault
|
|
6043
|
+
* load (`false`). See {@link PreparedVaultCandidates.decryptLast}.
|
|
6044
|
+
*/
|
|
6045
|
+
decryptLast: boolean;
|
|
6046
|
+
/**
|
|
6047
|
+
* Rows this search paid to decrypt. Read against `vaultSize` — see
|
|
6048
|
+
* {@link PreparedVaultCandidates.rowsDecrypted}.
|
|
6049
|
+
*/
|
|
6050
|
+
rowsDecrypted: number;
|
|
6051
|
+
/**
|
|
6052
|
+
* Wall-clock ms spent embedding the query, and rows the lane had to re-embed
|
|
6053
|
+
* because their stored vector was unusable — see
|
|
6054
|
+
* {@link PreparedVaultCandidates.queryEmbedMs} and `rowsEmbedded`.
|
|
6055
|
+
*/
|
|
6056
|
+
queryEmbedMs: number;
|
|
6057
|
+
rowsEmbedded: number;
|
|
6058
|
+
}>;
|
|
6001
6059
|
/**
|
|
6002
6060
|
* Search vault memories by semantic similarity. Returns structured results
|
|
6003
6061
|
* sorted by descending similarity, filtered by threshold and limit.
|
|
@@ -6262,7 +6320,15 @@ interface RecallOptions {
|
|
|
6262
6320
|
*/
|
|
6263
6321
|
graphRefine?: boolean;
|
|
6264
6322
|
}
|
|
6323
|
+
/** A fact source supplies bounded candidates; recall owns ranking and result handling. */
|
|
6324
|
+
interface RecallFactSource {
|
|
6325
|
+
search: (query: string, options?: MemoryVaultSearchOptions) => ReturnType<typeof searchVaultMemoriesWithSize>;
|
|
6326
|
+
graphRanking: (query: string, traverse: boolean, options: RecallOptions) => Promise<string[]>;
|
|
6327
|
+
temporalRanking: (query: string, now?: number) => Promise<string[]>;
|
|
6328
|
+
}
|
|
6265
6329
|
interface RecallContext {
|
|
6330
|
+
/** Alternative to a WatermelonDB vault for fact-only recall. */
|
|
6331
|
+
factSource?: RecallFactSource;
|
|
6266
6332
|
/** Required when `types` includes 'fact'. */
|
|
6267
6333
|
vaultCtx?: VaultMemoryOperationsContext;
|
|
6268
6334
|
/** Required when `types` includes 'chunk'. */
|
|
@@ -7078,13 +7144,35 @@ declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: Ret
|
|
|
7078
7144
|
* the fail-safe direction: it un-publishes rather than exposes.
|
|
7079
7145
|
*/
|
|
7080
7146
|
type VaultMemoryVisibility = "private" | "public";
|
|
7147
|
+
/** Profile kinds a vault memory can carry. */
|
|
7148
|
+
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"];
|
|
7149
|
+
/** One of {@link MEMORY_KINDS}. */
|
|
7150
|
+
type VaultMemoryKind = (typeof MEMORY_KINDS)[number];
|
|
7151
|
+
/** Who a memory reaches. */
|
|
7152
|
+
declare const MEMORY_LEVELS: readonly ["private", "matching", "profile"];
|
|
7153
|
+
/** One of {@link MEMORY_LEVELS}. */
|
|
7154
|
+
type MemoryLevel = (typeof MEMORY_LEVELS)[number];
|
|
7155
|
+
/**
|
|
7156
|
+
* Thrown by vault writes that would store an unknown kind or level, or a profile level without a kind.
|
|
7157
|
+
*
|
|
7158
|
+
* @public
|
|
7159
|
+
*/
|
|
7160
|
+
declare class MemoryLevelError extends Error {
|
|
7161
|
+
constructor(message: string);
|
|
7162
|
+
}
|
|
7081
7163
|
interface StoredVaultMemory {
|
|
7082
7164
|
/** WatermelonDB internal ID */
|
|
7083
7165
|
uniqueId: string;
|
|
7084
7166
|
/** Plain text memory content */
|
|
7085
7167
|
content: string;
|
|
7086
|
-
/** Scope for partitioning memories (e.g., "private", "shared") */
|
|
7168
|
+
/** Scope for partitioning memories (e.g., "private", "shared"). */
|
|
7087
7169
|
scope: string;
|
|
7170
|
+
/** Profile kind ({@link MEMORY_KINDS}) or null for a free-form memory. */
|
|
7171
|
+
kind?: string | null;
|
|
7172
|
+
/** Canonical value of a kinded memory, JSON-encoded (slug, slug[], int, date, text). */
|
|
7173
|
+
kindValue?: string | null;
|
|
7174
|
+
/** Who this memory reaches. */
|
|
7175
|
+
level?: MemoryLevel;
|
|
7088
7176
|
/** Folder ID for organization, null if unfiled */
|
|
7089
7177
|
folderId: string | null;
|
|
7090
7178
|
/** User ID for multi-user server-side scoping, null on client */
|
|
@@ -7188,8 +7276,14 @@ interface PhotoMediaRef {
|
|
|
7188
7276
|
declare function parseMedia(value: unknown): PhotoMediaRef[] | null;
|
|
7189
7277
|
interface CreateVaultMemoryOptions {
|
|
7190
7278
|
content: string;
|
|
7191
|
-
/** Scope for the memory.
|
|
7279
|
+
/** Scope for the memory. */
|
|
7192
7280
|
scope?: string;
|
|
7281
|
+
/** Profile kind, or omit/null for a free-form memory. */
|
|
7282
|
+
kind?: VaultMemoryKind | null;
|
|
7283
|
+
/** Canonical JSON value of a kinded memory. */
|
|
7284
|
+
kindValue?: string | null;
|
|
7285
|
+
/** Who this memory reaches. */
|
|
7286
|
+
level?: MemoryLevel;
|
|
7193
7287
|
/** Folder ID for organization, null or omitted if unfiled */
|
|
7194
7288
|
folderId?: string | null;
|
|
7195
7289
|
/** JSON-stringified embedding vector to persist */
|
|
@@ -7230,8 +7324,19 @@ interface CreateVaultMemoryOptions {
|
|
|
7230
7324
|
}
|
|
7231
7325
|
interface UpdateVaultMemoryOptions {
|
|
7232
7326
|
content: string;
|
|
7233
|
-
/**
|
|
7327
|
+
/** When true, the write is skipped (returns null) if the row carries a profile kind. */
|
|
7328
|
+
freeFormOnly?: boolean;
|
|
7329
|
+
/**
|
|
7330
|
+
* If provided, updates the memory's scope (and the level it implies; a `profile` row keeps
|
|
7331
|
+
* `profile` under `scope: "shared"`).
|
|
7332
|
+
*/
|
|
7234
7333
|
scope?: string;
|
|
7334
|
+
/** If provided, sets the profile kind (null makes the memory free-form). */
|
|
7335
|
+
kind?: VaultMemoryKind | null;
|
|
7336
|
+
/** If provided, sets the canonical JSON value (null clears it). */
|
|
7337
|
+
kindValue?: string | null;
|
|
7338
|
+
/** If provided, sets the level (and dual-writes `scope`). */
|
|
7339
|
+
level?: MemoryLevel;
|
|
7235
7340
|
/** If provided, moves the memory to this folder. */
|
|
7236
7341
|
folderId?: string | null;
|
|
7237
7342
|
/** JSON-stringified embedding vector to persist, or null to clear stale embedding */
|
|
@@ -7371,6 +7476,10 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
|
|
|
7371
7476
|
* published set to diff against the server index.
|
|
7372
7477
|
*/
|
|
7373
7478
|
visibility?: VaultMemoryVisibility[];
|
|
7479
|
+
/** Filter by level. */
|
|
7480
|
+
levels?: MemoryLevel[];
|
|
7481
|
+
/** Restrict to these profile kinds. */
|
|
7482
|
+
kinds?: string[];
|
|
7374
7483
|
}): Promise<StoredVaultMemory[]>;
|
|
7375
7484
|
declare function getAllVaultMemoryContentsOp(ctx: VaultMemoryOperationsContext, options?: {
|
|
7376
7485
|
since?: Date;
|
|
@@ -7610,7 +7719,8 @@ interface DecayCandidateRaw {
|
|
|
7610
7719
|
*
|
|
7611
7720
|
* Includes archived AND quarantined rows (so archived→delete transitions and
|
|
7612
7721
|
* aged quarantined rows are seen) but excludes hard-deleted rows — the
|
|
7613
|
-
* `baseVaultConditions` default keeps `is_deleted = false`.
|
|
7722
|
+
* `baseVaultConditions` default keeps `is_deleted = false`. Excludes kinded
|
|
7723
|
+
* (profile) memories, which never decay.
|
|
7614
7724
|
*
|
|
7615
7725
|
* Refuses to run on an unscoped multi-tenant context (see
|
|
7616
7726
|
* {@link assertVaultScopeForSweep}).
|
|
@@ -9603,8 +9713,8 @@ interface SynthesizeProfileOptions extends PortalLlmAuth {
|
|
|
9603
9713
|
* on memories the user approved for publication. Empty intersection → empty
|
|
9604
9714
|
* section (legitimate no-evidence), not a stale fallback.
|
|
9605
9715
|
*
|
|
9606
|
-
* Pass the user's published set (e.g. `getAllVaultMemoriesOp(ctx, {
|
|
9607
|
-
* ["
|
|
9716
|
+
* Pass the user's published set (e.g. `getAllVaultMemoriesOp(ctx, { levels:
|
|
9717
|
+
* ["matching", "profile"] })`) to keep a published profile derivable only from published
|
|
9608
9718
|
* memories — People Nearby's two-tier model treats `private` memories as never
|
|
9609
9719
|
* leaving the device, and a summary derived from them is a derivative that does.
|
|
9610
9720
|
*
|
|
@@ -10606,6 +10716,23 @@ interface PostgreSQLAdapterOptions {
|
|
|
10606
10716
|
* @param pgSchema - PostgreSQL schema namespace (defaults to "public")
|
|
10607
10717
|
*/
|
|
10608
10718
|
declare function schemaToCreateSQL(schema: AppSchema, pgSchema?: string): string[];
|
|
10719
|
+
/**
|
|
10720
|
+
* WatermelonDB `DatabaseAdapter` backed by any `pg.Pool`-compatible pool, so SDK operations run unchanged on the server.
|
|
10721
|
+
*
|
|
10722
|
+
* @example
|
|
10723
|
+
* ```typescript
|
|
10724
|
+
* import pg from "pg";
|
|
10725
|
+
* import { PostgreSQLAdapter, sdkSchema, sdkMigrations } from "@anuma/sdk/server";
|
|
10726
|
+
*
|
|
10727
|
+
* const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL });
|
|
10728
|
+
* const adapter = new PostgreSQLAdapter({
|
|
10729
|
+
* pool,
|
|
10730
|
+
* schema: sdkSchema,
|
|
10731
|
+
* migrations: sdkMigrations,
|
|
10732
|
+
* dbName: "anuma-server-wallet123",
|
|
10733
|
+
* });
|
|
10734
|
+
* ```
|
|
10735
|
+
*/
|
|
10609
10736
|
declare class PostgreSQLAdapter implements DatabaseAdapter {
|
|
10610
10737
|
schema: AppSchema;
|
|
10611
10738
|
dbName: string;
|
|
@@ -10660,4 +10787,4 @@ declare class PostgreSQLAdapter implements DatabaseAdapter {
|
|
|
10660
10787
|
*/
|
|
10661
10788
|
declare function serverPlatformStorage(): PlatformStorage;
|
|
10662
10789
|
|
|
10663
|
-
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 ConsolidationAction, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, 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_DECAY_POLICY, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, 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 DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LlmTokenUsage, type LocalMemoryStoreOptions, MAX_HOPS, MAX_MESSAGES_PER_SUMMARIZATION, MEDIUM_TTL_MS, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, 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, Message, type MessageChunk, type MessageFeedback, type MessageOrigin, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type PublishedPhotoMemory, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunTerminalState, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, 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 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, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, VaultMemory, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, archiveVaultMemoryOp, assembleMemoryContext, backfillMemoryTopicsOp, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, capHopsForDensity, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultMemoryOp, deriveKeyFromSignatureBytes, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDecayCandidatesRawOp, 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, getVaultMemoryOp, getVideosOp, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, onKeyAvailable, parseMedia, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, restoreVaultMemoryOp, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serverPlatformStorage, setMemoryVisibilityOp, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, traverseGraphLane, ttlForType, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp, verifyMemoriesForPublish };
|
|
10790
|
+
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 ConsolidationAction, type ConsolidationFallbackReason, Conversation, ConversationSummary, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateUserPreferenceOptions, 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_DECAY_POLICY, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_MIN_MESSAGES, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, 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 DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LlmTokenUsage, type LocalMemoryStoreOptions, MAX_HOPS, MAX_MESSAGES_PER_SUMMARIZATION, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, Media, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, 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, Message, type MessageChunk, type MessageFeedback, type MessageOrigin, type ModelCallEndEvent, type ModelCallStartEvent, ModelPreference, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, PdfProcessor, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PgClientLike, type PgPoolLike, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, PostgreSQLAdapter, type PostgreSQLAdapterOptions, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, Project, type ProjectOperationsContext, type PromptContext, type PromptPreProcessor, type PromptPreProcessorContext, type PromptSection, type PromptTemplates, type PublishedPhotoMemory, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, type RunEndEvent, type RunErrorEvent, type RunHooks, type RunStartEvent, type RunTerminalState, type RunToolLoopOptions, type RunToolLoopResult, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, 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 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, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type ToolConfig, type ToolExecutor, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type ToolUseEndEvent, type ToolUseStartEvent, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, VaultMemory, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, archiveVaultMemoryOp, assembleMemoryContext, backfillMemoryTopicsOp, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, capHopsForDensity, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, cleanupConversationSummary, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearEncryptionKey, clearKeyPair, clearLazyTitleCache, clearMessagesOp, clearServerToolsCache, composeHooks, createAutoExtractor, createChunkVectorCache, createConversationOp, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageOp, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createServerToolsFilter, createStockPricePreProcessor, createSummaryContext, createVaultEmbeddingCache, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllVaultMemoriesForUserOp, deleteConversationOp, deleteConversationSummaryOp, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteModelPreferenceOp, deleteProjectOp, deleteUserPreferenceOp, deleteVaultMemoryOp, deriveKeyFromSignatureBytes, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, estimateMessagesTokens, estimateTokens, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, findMatchingTools, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllFilesOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAudioOp, getCachedServerTools, getConversationOp, getConversationSummaryOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsOp, getConversationsPageOp, getDecayCandidatesRawOp, 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, getVaultMemoryOp, getVideosOp, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isDegradedTopicSkip, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, onKeyAvailable, parseMedia, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, restoreVaultMemoryOp, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serverPlatformStorage, setMemoryVisibilityOp, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, traverseGraphLane, ttlForType, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp, verifyMemoriesForPublish };
|