CreateVaultMemoryOptions
Defined in: src/lib/db/memoryVault/types.ts:316
Properties
content
content:
string
Defined in: src/lib/db/memoryVault/types.ts:317
embedding?
optionalembedding:string
Defined in: src/lib/db/memoryVault/types.ts:329
JSON-stringified embedding vector to persist
embeddingModel?
optionalembeddingModel:string
Defined in: src/lib/db/memoryVault/types.ts:332
Model that produced embedding. Persisted alongside it so a later
model change can detect and re-embed stale vectors.
enabled?
optionalenabled:boolean
Defined in: src/lib/db/memoryVault/types.ts:364
false creates the memory switched off.
eventTime?
optionaleventTime:object
Defined in: src/lib/db/memoryVault/types.ts:340
W6 temporal lane — when the event in this memory occurred.
end
end:
number|null
Unix ms timestamp of event end (range only).
kind
kind:
"point"|"range"|"ongoing"|null
Kind: ‘point’ | ‘range’ | ‘ongoing’ | null (or omit).
start
start:
number|null
Unix ms timestamp of event start (or point).
factType?
optionalfactType:"other"|"identity"|"preference"|"relationship"|"plan"|"ongoing_context"|"constraint"|"instruction"
Defined in: src/lib/db/memoryVault/types.ts:350
Typed memory (PR1) — the extractor’s classification for this fact. Omit for manual/untyped saves (persisted as null).
folderId?
optionalfolderId:string|null
Defined in: src/lib/db/memoryVault/types.ts:327
Folder ID for organization, null or omitted if unfiled
geohash?
optionalgeohash:string
Defined in: src/lib/db/memoryVault/types.ts:362
Coarse geohash for location-tagged memory sources (landmarks/Trail).
kind?
optionalkind:"prompt"|"display_name"|"birth_date"|"bio"|"occupation"|"interest"|"gender"|"height_cm"|"looking_for"|"politics"|"religion"|"ethnicity"|"smoking"|"drinking"|"exercise"|"sexuality"|null
Defined in: src/lib/db/memoryVault/types.ts:321
Profile kind, or omit/null for a free-form memory.
kindValue?
optionalkindValue:string|null
Defined in: src/lib/db/memoryVault/types.ts:323
Canonical JSON value of a kinded memory.
level?
optionallevel:"private"|"matching"|"profile"
Defined in: src/lib/db/memoryVault/types.ts:325
Who this memory reaches.
proofCount?
optionalproofCount:number
Defined in: src/lib/db/memoryVault/types.ts:336
Initial proof count. Defaults to 1 if omitted.
publishedAt?
optionalpublishedAt:number|null
Defined in: src/lib/db/memoryVault/types.ts:360
Round-trip slot for restore/import; see visibility.
scope?
optionalscope:string
Defined in: src/lib/db/memoryVault/types.ts:319
Scope for the memory.
source?
optionalsource:string
Defined in: src/lib/db/memoryVault/types.ts:338
How the memory was created. Defaults to “manual” if omitted.
sourceChunkIds?
optionalsourceChunkIds:string[]
Defined in: src/lib/db/memoryVault/types.ts:334
Source message IDs that produced this fact (auto-extraction provenance).
trustTier?
optionaltrustTier:string
Defined in: src/lib/db/memoryVault/types.ts:353
Tier-0 security (PR3) — set “quarantined” when the injection screen flagged this fact. Omit for the default (null/trusted).
visibility?
optionalvisibility:VaultMemoryVisibility
Defined in: src/lib/db/memoryVault/types.ts:358
People Nearby cross-user visibility. Defaults to “private” if omitted — creation NEVER publishes; use setMemoryVisibilityOp so the published_at bookkeeping stays consistent. Accepted here only so bulk restore/import paths can round-trip an existing visibility.