@anuma/sdk 3.9.6 → 3.10.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.
@@ -17046,6 +17046,18 @@ var init_encryption2 = __esm({
17046
17046
  });
17047
17047
 
17048
17048
  // src/lib/db/memoryVault/operations.ts
17049
+ function visibilityOrPrivate(value) {
17050
+ return value === "public" ? value : "private";
17051
+ }
17052
+ function visibilityConditions(requested) {
17053
+ if (!requested?.length) return [];
17054
+ if (!requested.includes("private")) {
17055
+ return [import_watermelondb17.Q.where("visibility", import_watermelondb17.Q.oneOf([...requested]))];
17056
+ }
17057
+ const excluded = NON_PRIVATE_VISIBILITIES.filter((v) => !requested.includes(v));
17058
+ if (excluded.length === 0) return [];
17059
+ return [import_watermelondb17.Q.or(import_watermelondb17.Q.where("visibility", null), import_watermelondb17.Q.where("visibility", import_watermelondb17.Q.notIn(excluded)))];
17060
+ }
17049
17061
  function isOwnedByCtxUser(ctx, record) {
17050
17062
  return ctx.userId === void 0 || record.userId === ctx.userId;
17051
17063
  }
@@ -17106,6 +17118,10 @@ function vaultMemoryToStoredRaw(memory) {
17106
17118
  factType: memory.factType ?? null,
17107
17119
  archivedAt: memory.archivedAt ?? null,
17108
17120
  trustTier: memory.trustTier ?? null,
17121
+ visibility: visibilityOrPrivate(memory.visibility),
17122
+ twinOptIn: memory.twinOptIn ?? false,
17123
+ publishedAt: memory.publishedAt ?? null,
17124
+ geohash: memory.geohash ?? null,
17109
17125
  createdAt: memory.createdAt,
17110
17126
  updatedAt: memory.updatedAt,
17111
17127
  isDeleted: memory.isDeleted
@@ -17153,6 +17169,14 @@ async function createVaultMemoryOp(ctx, opts) {
17153
17169
  if (opts.trustTier !== void 0) {
17154
17170
  record._setRaw("trust_tier", normalizeTrustTier(opts.trustTier));
17155
17171
  }
17172
+ record._setRaw("visibility", opts.visibility ?? "private");
17173
+ record._setRaw(
17174
+ "published_at",
17175
+ opts.visibility && opts.visibility !== "private" ? opts.publishedAt ?? Date.now() : null
17176
+ );
17177
+ if (opts.geohash !== void 0) {
17178
+ record._setRaw("geohash", opts.geohash);
17179
+ }
17156
17180
  });
17157
17181
  });
17158
17182
  return vaultMemoryToStored(created, ctx.walletAddress, ctx.signMessage, ctx.embeddedWalletSigner);
@@ -17299,6 +17323,14 @@ async function createVaultMemoriesBatchOp(ctx, optionsArray) {
17299
17323
  if (opts.trustTier !== void 0) {
17300
17324
  record._setRaw("trust_tier", normalizeTrustTier(opts.trustTier));
17301
17325
  }
17326
+ record._setRaw("visibility", opts.visibility ?? "private");
17327
+ record._setRaw(
17328
+ "published_at",
17329
+ opts.visibility && opts.visibility !== "private" ? opts.publishedAt ?? Date.now() : null
17330
+ );
17331
+ if (opts.geohash !== void 0) {
17332
+ record._setRaw("geohash", opts.geohash);
17333
+ }
17302
17334
  })
17303
17335
  );
17304
17336
  await ctx.database.batch(...prepared);
@@ -17362,6 +17394,10 @@ function vaultMemoryRawToStoredRaw(raw) {
17362
17394
  factType: raw.fact_type ?? null,
17363
17395
  archivedAt: raw.archived_at ?? null,
17364
17396
  trustTier: raw.trust_tier ?? null,
17397
+ visibility: visibilityOrPrivate(raw.visibility),
17398
+ twinOptIn: raw.twin_opt_in === true || raw.twin_opt_in === 1,
17399
+ publishedAt: raw.published_at ?? null,
17400
+ geohash: raw.geohash ?? null,
17365
17401
  createdAt: new Date(raw.created_at),
17366
17402
  updatedAt: new Date(raw.updated_at),
17367
17403
  isDeleted: raw.is_deleted === true || raw.is_deleted === 1
@@ -17378,6 +17414,7 @@ async function getAllVaultMemoriesOp(ctx, options) {
17378
17414
  const conditions = [
17379
17415
  ...baseVaultConditions(ctx, options),
17380
17416
  ...options?.scopes?.length ? [import_watermelondb17.Q.where("scope", import_watermelondb17.Q.oneOf(options.scopes))] : [],
17417
+ ...visibilityConditions(options?.visibility),
17381
17418
  ...options?.folderId !== void 0 ? [import_watermelondb17.Q.where("folder_id", options.folderId)] : [],
17382
17419
  ...options?.factTypes?.length ? [import_watermelondb17.Q.where("fact_type", import_watermelondb17.Q.oneOf(options.factTypes))] : [],
17383
17420
  import_watermelondb17.Q.sortBy(options?.since ? "updated_at" : "created_at", import_watermelondb17.Q.desc),
@@ -17591,6 +17628,38 @@ async function updateVaultMemoryOp(ctx, id, opts) {
17591
17628
  return null;
17592
17629
  }
17593
17630
  }
17631
+ async function setMemoryVisibilityOp(ctx, id, opts) {
17632
+ let record;
17633
+ try {
17634
+ record = await ctx.vaultMemoryCollection.find(id);
17635
+ } catch {
17636
+ return null;
17637
+ }
17638
+ if (record.isDeleted || !isOwnedByCtxUser(ctx, record)) return null;
17639
+ let stale = false;
17640
+ await ctx.database.write(async () => {
17641
+ if (record.isDeleted || !isOwnedByCtxUser(ctx, record)) {
17642
+ stale = true;
17643
+ return;
17644
+ }
17645
+ const currentUpdatedAt = record.updatedAt.getTime();
17646
+ const currentPublishedAt = record.publishedAt ?? null;
17647
+ await record.update((r) => {
17648
+ r._setRaw("visibility", opts.visibility);
17649
+ if (opts.visibility === "private") {
17650
+ r._setRaw("published_at", null);
17651
+ } else if (currentPublishedAt === null) {
17652
+ r._setRaw("published_at", Date.now());
17653
+ }
17654
+ if (opts.twinOptIn !== void 0) {
17655
+ r._setRaw("twin_opt_in", opts.twinOptIn);
17656
+ }
17657
+ r._setRaw("updated_at", currentUpdatedAt);
17658
+ });
17659
+ });
17660
+ if (stale) return null;
17661
+ return vaultMemoryToStored(record, ctx.walletAddress, ctx.signMessage, ctx.embeddedWalletSigner);
17662
+ }
17594
17663
  async function deleteVaultMemoryOp(ctx, id) {
17595
17664
  try {
17596
17665
  const record = await ctx.vaultMemoryCollection.find(id);
@@ -17880,7 +17949,7 @@ async function updateVaultMemoryEmbeddingOp(ctx, id, embedding, embeddingModel)
17880
17949
  return false;
17881
17950
  }
17882
17951
  }
17883
- var import_watermelondb17, KNOWN_TRUST_TIERS, TOPICS_EXTRACTION_VERSION;
17952
+ var import_watermelondb17, NON_PRIVATE_VISIBILITIES, KNOWN_TRUST_TIERS, TOPICS_EXTRACTION_VERSION;
17884
17953
  var init_operations3 = __esm({
17885
17954
  "src/lib/db/memoryVault/operations.ts"() {
17886
17955
  "use strict";
@@ -17888,6 +17957,7 @@ var init_operations3 = __esm({
17888
17957
  init_logger();
17889
17958
  init_operations2();
17890
17959
  init_encryption2();
17960
+ NON_PRIVATE_VISIBILITIES = ["public"];
17891
17961
  KNOWN_TRUST_TIERS = /* @__PURE__ */ new Set(["quarantined", "trusted"]);
17892
17962
  TOPICS_EXTRACTION_VERSION = 3;
17893
17963
  }
@@ -23114,6 +23184,7 @@ __export(index_exports, {
23114
23184
  searchVaultMemories: () => searchVaultMemories,
23115
23185
  selectServerToolsForPrompt: () => selectServerToolsForPrompt,
23116
23186
  serverPlatformStorage: () => serverPlatformStorage,
23187
+ setMemoryVisibilityOp: () => setMemoryVisibilityOp,
23117
23188
  setModelPreferenceOp: () => setModelPreferenceOp,
23118
23189
  setUserPreferenceOp: () => setUserPreferenceOp,
23119
23190
  shouldAnalyzeStyle: () => shouldAnalyzeStyle,
@@ -23504,6 +23575,18 @@ __decorateClass([
23504
23575
  __decorateClass([
23505
23576
  (0, import_decorators6.field)("trust_tier")
23506
23577
  ], VaultMemory.prototype, "trustTier", 2);
23578
+ __decorateClass([
23579
+ (0, import_decorators6.field)("visibility")
23580
+ ], VaultMemory.prototype, "visibility", 2);
23581
+ __decorateClass([
23582
+ (0, import_decorators6.field)("twin_opt_in")
23583
+ ], VaultMemory.prototype, "twinOptIn", 2);
23584
+ __decorateClass([
23585
+ (0, import_decorators6.field)("published_at")
23586
+ ], VaultMemory.prototype, "publishedAt", 2);
23587
+ __decorateClass([
23588
+ (0, import_decorators6.field)("geohash")
23589
+ ], VaultMemory.prototype, "geohash", 2);
23507
23590
  __decorateClass([
23508
23591
  import_decorators6.readonly,
23509
23592
  (0, import_decorators6.date)("created_at")
@@ -23651,7 +23734,7 @@ __decorateClass([
23651
23734
  ], VaultFolder.prototype, "context", 2);
23652
23735
 
23653
23736
  // src/lib/db/schema.ts
23654
- var SDK_SCHEMA_VERSION = 40;
23737
+ var SDK_SCHEMA_VERSION = 41;
23655
23738
  var sdkSchema = (0, import_watermelondb12.appSchema)({
23656
23739
  version: SDK_SCHEMA_VERSION,
23657
23740
  tables: [
@@ -23810,7 +23893,26 @@ var sdkSchema = (0, import_watermelondb12.appSchema)({
23810
23893
  // Tier-0 security (PR3) — "quarantined" when the write-time injection
23811
23894
  // screen flagged this fact, else null/"trusted". Indexed so the recall
23812
23895
  // choke point can default-exclude quarantined rows.
23813
- { name: "trust_tier", type: "string", isOptional: true, isIndexed: true }
23896
+ { name: "trust_tier", type: "string", isOptional: true, isIndexed: true },
23897
+ // People Nearby cross-user visibility axis — ORTHOGONAL to `scope`
23898
+ // (which partitions by MODEL access: private vs shared providers).
23899
+ // TWO tiers: 'private' (or null, or any unrecognised value —
23900
+ // grandfathered / fail-safe) = local-only; 'public' = embedding +
23901
+ // plaintext may be published (matching/profile/discovery/twin).
23902
+ // The server index is the authority for what IS published; this
23903
+ // column records the user's intent.
23904
+ { name: "visibility", type: "string", isOptional: true, isIndexed: true },
23905
+ // When true, the owner opted this memory into their own digital twin
23906
+ // even if it is otherwise private (twin-scoped upload only — never
23907
+ // indexed for matching, never displayed). Null/false = follows visibility.
23908
+ { name: "twin_opt_in", type: "boolean", isOptional: true },
23909
+ // Unix ms when visibility last became non-private. Null when private
23910
+ // (cleared on revoke) — the publish reconciler uses it to diff local
23911
+ // intent against the server index.
23912
+ { name: "published_at", type: "number", isOptional: true },
23913
+ // Reserved geo slot (coarse geohash) for landmark/Trail memories.
23914
+ // Unused at launch; populated by location-tagged memory sources.
23915
+ { name: "geohash", type: "string", isOptional: true }
23814
23916
  ]
23815
23917
  }),
23816
23918
  // Entity table — canonical names extracted from auto-extraction (W5).
@@ -24485,6 +24587,24 @@ var sdkMigrations = (0, import_migrations.schemaMigrations)({
24485
24587
  ]
24486
24588
  })
24487
24589
  ]
24590
+ },
24591
+ // v40 -> v41: People Nearby visibility axis on memory_vault. Existing rows
24592
+ // keep visibility NULL — read as 'private' (nothing pre-existing is ever
24593
+ // published without an explicit user action; the consent posture requires
24594
+ // opt-in, never a retroactive default).
24595
+ {
24596
+ toVersion: 41,
24597
+ steps: [
24598
+ (0, import_migrations.addColumns)({
24599
+ table: "memory_vault",
24600
+ columns: [
24601
+ { name: "visibility", type: "string", isOptional: true, isIndexed: true },
24602
+ { name: "twin_opt_in", type: "boolean", isOptional: true },
24603
+ { name: "published_at", type: "number", isOptional: true },
24604
+ { name: "geohash", type: "string", isOptional: true }
24605
+ ]
24606
+ })
24607
+ ]
24488
24608
  }
24489
24609
  ]
24490
24610
  });
@@ -28480,18 +28600,16 @@ function createAutoExtractor(options) {
28480
28600
  } catch {
28481
28601
  }
28482
28602
  };
28483
- const consolidateBaseUrl = options.consolidate?.baseUrl ?? options.extract.baseUrl;
28484
- const consolidateOptions = options.consolidate ? {
28485
- ...options.extract.apiKey !== void 0 && { apiKey: options.extract.apiKey },
28486
- ...options.extract.getToken !== void 0 && { getToken: options.extract.getToken },
28487
- ...consolidateBaseUrl !== void 0 && { baseUrl: consolidateBaseUrl },
28488
- ...options.consolidate.model !== void 0 && { model: options.consolidate.model },
28489
- ...options.consolidate.onFallback !== void 0 && {
28490
- onFallback: options.consolidate.onFallback
28491
- }
28492
- // PII redaction is inherited from `extract.piiRedaction` inside
28493
- // extractAndRetain (so direct callers are covered too), not copied here.
28494
- } : void 0;
28603
+ const subPassAuth = (baseUrlOverride) => {
28604
+ const baseUrl = baseUrlOverride ?? options.extract.baseUrl;
28605
+ return {
28606
+ ...options.extract.apiKey !== void 0 && { apiKey: options.extract.apiKey },
28607
+ ...options.extract.getToken !== void 0 && { getToken: options.extract.getToken },
28608
+ ...baseUrl !== void 0 && { baseUrl }
28609
+ };
28610
+ };
28611
+ const consolidateOptions = options.consolidate ? { ...options.consolidate, ...subPassAuth(options.consolidate.baseUrl) } : void 0;
28612
+ const injectionClassifierOptions = options.injectionClassifier ? { ...options.injectionClassifier, ...subPassAuth(options.injectionClassifier.baseUrl) } : void 0;
28495
28613
  if (options.retainCtx.vaultCtx.entityCtx && !options.entityCtx) {
28496
28614
  getLogger().warn(
28497
28615
  "[memory/extract] retainCtx.vaultCtx.entityCtx is set but extractor was created without `entityCtx` \u2014 W5 graph lane will receive no writes"
@@ -28545,6 +28663,9 @@ function createAutoExtractor(options) {
28545
28663
  ...options.scope !== void 0 && { scope: options.scope },
28546
28664
  ...options.folderId !== void 0 && { folderId: options.folderId },
28547
28665
  ...consolidateOptions !== void 0 && { consolidateOptions },
28666
+ ...injectionClassifierOptions !== void 0 && {
28667
+ injectionClassifier: injectionClassifierOptions
28668
+ },
28548
28669
  ...options.onCandidateFailed && {
28549
28670
  onCandidateFailed: (candidate, error) => options.onCandidateFailed?.({ candidate, error, conversationId })
28550
28671
  },
@@ -35680,6 +35801,7 @@ function buildSystemPrompt(ctx, options) {
35680
35801
  searchVaultMemories,
35681
35802
  selectServerToolsForPrompt,
35682
35803
  serverPlatformStorage,
35804
+ setMemoryVisibilityOp,
35683
35805
  setModelPreferenceOp,
35684
35806
  setUserPreferenceOp,
35685
35807
  shouldAnalyzeStyle,
@@ -73,8 +73,13 @@ import { ResultCallback } from '@nozbe/watermelondb/utils/fp/Result';
73
73
  * backfill (null = legacy/untyped, active, un-screened — content is
74
74
  * encrypted so in-migration classification is impossible; NULL = zero-risk,
75
75
  * exact embedding_model precedent)
76
+ * - v41: Added visibility, twin_opt_in, published_at, geohash columns to
77
+ * memory_vault for the People Nearby cross-user visibility axis. Visibility
78
+ * is TWO-tier (`private | public`); null — and any unrecognised value —
79
+ * reads as 'private', so nothing pre-existing is ever published without an
80
+ * explicit visibility write
76
81
  */
77
- declare const SDK_SCHEMA_VERSION = 40;
82
+ declare const SDK_SCHEMA_VERSION = 41;
78
83
  /**
79
84
  * Combined WatermelonDB schema for all SDK storage modules.
80
85
  *
@@ -159,6 +164,7 @@ declare const sdkSchema: Readonly<{
159
164
  * - 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)
160
165
  * - v38 → v39: Added `last_observed_at` column to memory_vault (C3 re-observation watermark; stamped on retain merge, distinct from updated_at)
161
166
  * - v39 → v40: Added `fact_type`, `archived_at`, `trust_tier` columns to memory_vault for typed memory + decay + Tier-0 security (all nullable + plaintext, NULL backfill)
167
+ * - v40 → v41: Added `visibility`, `twin_opt_in`, `published_at`, `geohash` columns to memory_vault for the People Nearby cross-user visibility axis (two-tier `private | public`; null/unknown grandfathered as 'private')
162
168
  */
163
169
  declare const sdkMigrations: Readonly<{
164
170
  validated: true;
@@ -4319,6 +4325,15 @@ declare class VaultMemory extends Model$1 {
4319
4325
  archivedAt: number | null;
4320
4326
  /** Tier-0 security (PR3) — "quarantined" | "trusted" | null. */
4321
4327
  trustTier: string | null;
4328
+ /** People Nearby visibility: 'private' | 'public'. Null on legacy rows, and
4329
+ * any unrecognised value, read as 'private' — never published without opt-in. */
4330
+ visibility: string | null;
4331
+ /** Owner opted this memory into their own digital twin (twin-scoped only). */
4332
+ twinOptIn: boolean | null;
4333
+ /** Unix ms when visibility last became non-private; null while private. */
4334
+ publishedAt: number | null;
4335
+ /** Reserved coarse-geohash slot for landmark/Trail memories. */
4336
+ geohash: string | null;
4322
4337
  createdAt: Date;
4323
4338
  updatedAt: Date;
4324
4339
  isDeleted: boolean;
@@ -5579,6 +5594,20 @@ declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: Ret
5579
5594
  quarantined: QuarantinedMemoryInfo[];
5580
5595
  }>;
5581
5596
 
5597
+ /**
5598
+ * People Nearby cross-user visibility. ORTHOGONAL to `scope` (model access):
5599
+ * - `private`: local-only (default; null column grandfathered as private)
5600
+ * - `public`: embedding + plaintext may be published (compatibility matching,
5601
+ * profile display, discovery answers, digital-twin prompts)
5602
+ *
5603
+ * TWO TIERS ONLY (decided 2026-07-27). An earlier design had a middle
5604
+ * `matchable` tier that published a memory's embedding while keeping its text
5605
+ * on-device; it was dropped, so a memory either never leaves the device or is
5606
+ * published with its content. Any unrecognised stored value — including a
5607
+ * `matchable` row written by a pre-release build — reads as `private`, which is
5608
+ * the fail-safe direction: it un-publishes rather than exposes.
5609
+ */
5610
+ type VaultMemoryVisibility = "private" | "public";
5582
5611
  interface StoredVaultMemory {
5583
5612
  /** WatermelonDB internal ID */
5584
5613
  uniqueId: string;
@@ -5637,6 +5666,15 @@ interface StoredVaultMemory {
5637
5666
  archivedAt: number | null;
5638
5667
  /** Tier-0 security (PR3) — "quarantined" | "trusted" | null. */
5639
5668
  trustTier: string | null;
5669
+ /** People Nearby cross-user visibility. Null column reads as "private". */
5670
+ visibility: VaultMemoryVisibility;
5671
+ /** Owner opted this memory into their own digital twin even when otherwise
5672
+ * private (twin-scoped only — never indexed for matching, never displayed). */
5673
+ twinOptIn: boolean;
5674
+ /** Unix ms when visibility last became non-private; null while private. */
5675
+ publishedAt: number | null;
5676
+ /** Reserved coarse-geohash slot for landmark/Trail memories. */
5677
+ geohash: string | null;
5640
5678
  createdAt: Date;
5641
5679
  updatedAt: Date;
5642
5680
  isDeleted: boolean;
@@ -5673,6 +5711,15 @@ interface CreateVaultMemoryOptions {
5673
5711
  /** Tier-0 security (PR3) — set "quarantined" when the injection screen
5674
5712
  * flagged this fact. Omit for the default (null/trusted). */
5675
5713
  trustTier?: string;
5714
+ /** People Nearby cross-user visibility. Defaults to "private" if omitted —
5715
+ * creation NEVER publishes; use {@link setMemoryVisibilityOp} so the
5716
+ * published_at bookkeeping stays consistent. Accepted here only so bulk
5717
+ * restore/import paths can round-trip an existing visibility. */
5718
+ visibility?: VaultMemoryVisibility;
5719
+ /** Round-trip slot for restore/import; see {@link visibility}. */
5720
+ publishedAt?: number | null;
5721
+ /** Coarse geohash for location-tagged memory sources (landmarks/Trail). */
5722
+ geohash?: string;
5676
5723
  }
5677
5724
  interface UpdateVaultMemoryOptions {
5678
5725
  content: string;
@@ -5795,11 +5842,35 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
5795
5842
  * Used by a "memory history" view to render retired facts.
5796
5843
  */
5797
5844
  includeSuperseded?: boolean;
5845
+ /**
5846
+ * Filter by People Nearby visibility. Legacy rows with a NULL column
5847
+ * count as "private". Used by the publish reconciler to fetch the
5848
+ * published set to diff against the server index.
5849
+ */
5850
+ visibility?: VaultMemoryVisibility[];
5798
5851
  }): Promise<StoredVaultMemory[]>;
5799
5852
  declare function getAllVaultMemoryContentsOp(ctx: VaultMemoryOperationsContext, options?: {
5800
5853
  since?: Date;
5801
5854
  }): Promise<string[]>;
5802
5855
  declare function updateVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string, opts: UpdateVaultMemoryOptions): Promise<StoredVaultMemory | null>;
5856
+ /**
5857
+ * Set a memory's People Nearby visibility (and optionally its twin opt-in).
5858
+ *
5859
+ * This is the ONLY sanctioned write path for `visibility` — it keeps the
5860
+ * `published_at` bookkeeping consistent: transitioning to `public`
5861
+ * stamps `published_at` (kept if already set); transitioning to `private`
5862
+ * clears it (revoke). The server index remains the authority for what IS
5863
+ * published — this records the user's intent for the reconciler to act on.
5864
+ *
5865
+ * Preserves `updated_at`: a visibility change is metadata, not a
5866
+ * re-observation, so it must not inflate the recency multiplier (mirrors
5867
+ * {@link setMemoryEntitiesOp}).
5868
+ */
5869
+ declare function setMemoryVisibilityOp(ctx: VaultMemoryOperationsContext, id: string, opts: {
5870
+ visibility: VaultMemoryVisibility;
5871
+ /** If provided, sets the twin opt-in flag alongside the visibility. */
5872
+ twinOptIn?: boolean;
5873
+ }): Promise<StoredVaultMemory | null>;
5803
5874
  declare function deleteVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string): Promise<boolean>;
5804
5875
  /**
5805
5876
  * Mark a memory as superseded by a newer one (A2 write-time supersession).
@@ -7145,6 +7216,21 @@ interface CreateAutoExtractorOptions {
7145
7216
  */
7146
7217
  onFallback?: (reason: ConsolidationFallbackReason) => void;
7147
7218
  };
7219
+ /**
7220
+ * Tier-0 security (PR5) — enable the optional SECOND-layer LLM injection
7221
+ * classifier over the candidates the deterministic screen passed as clean.
7222
+ * Presence is the switch, so `injectionClassifier: {}` is how a client turns
7223
+ * it on. Auth is NOT configured here — like `consolidate`, the call reuses
7224
+ * the `extract` credentials and defaults to its `baseUrl`. See
7225
+ * `injectionClassifier.ts` for the safety posture and the defaults.
7226
+ */
7227
+ injectionClassifier?: {
7228
+ /** Portal base URL for classifier calls. Default: the `extract` options' `baseUrl`. */
7229
+ baseUrl?: string;
7230
+ model?: string;
7231
+ maxCandidates?: number;
7232
+ totalTimeoutMs?: number;
7233
+ };
7148
7234
  /** Per-fact event — fires once per memory written. */
7149
7235
  onMemoryExtracted?: (event: MemoryExtractedEvent) => void;
7150
7236
  /**
@@ -9276,4 +9362,4 @@ declare function sanitizeQuotes(s: string): string;
9276
9362
  declare function renderTemplate(value: string | null | undefined, template: string): string | null;
9277
9363
  declare function buildSystemPrompt(ctx: PromptContext, options?: BuildPromptOptions): BuildPromptResult;
9278
9364
 
9279
- 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 CreateDecaySweeperOptions, 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_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, ENTITY_FANOUT, 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, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LlmTokenUsage, 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 EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, 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 PlatformStorage, type PortalLlmAuth, 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 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 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, 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 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, 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 TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, VAULT_SIZE_HOP_CAP, 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, archiveVaultMemoryOp, 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, createLlmDecayClassifier, createLlmNeighborRefiner, 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, 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, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, injectionSignatureCatalog, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, rankProfileCandidates, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, restoreVaultMemoryOp, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, traverseGraphLane, ttlForType, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };
9365
+ 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 CreateDecaySweeperOptions, 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_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, ENTITY_FANOUT, 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, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LlmTokenUsage, 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 EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, Message, type MessageChunk, type MessageFeedback, 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 PlatformStorage, type PortalLlmAuth, 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 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 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, 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 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, 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 TurnCompleteEvent, type TurnSkippedEvent, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, UserPreference, type UserPreferencesStorageOperationsContext, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, VaultFolder, type VaultFolderOperationsContext, VaultMemory, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, WordProcessor, ZipProcessor, type ZipProcessorOptions, activatedToolSetNames, analyzeStyle, archiveVaultMemoryOp, 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, createLlmDecayClassifier, createLlmNeighborRefiner, 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, 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, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasKeyPair, injectionSignatureCatalog, isRerankerAvailable, isSupportedFile, isSupportedMediaType, makeSyntheticStoredConversation, makeSyntheticStoredMessage, maybeSummarizeHistory, mediaToStored, migrateFromModelPreferencesOp, moveMemoriesToFolderOp, onKeyAvailable, preEmbedVaultMemories, preprocessFiles, progressiveSummarize, projectToStored, queueManager, rankProfileCandidates, recall, reflect, relinkMisclassifiedVideosOp, renderTemplate, requestEncryptionKey, requestKeyPair, restoreVaultMemoryOp, resumeStream, retain, runToolLoop, sanitizeQuotes, schemaToCreateSQL, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serverPlatformStorage, setMemoryVisibilityOp, setModelPreferenceOp, setUserPreferenceOp, shouldAnalyzeStyle, shouldChunkMessage, shouldRefreshTools, splitMessagesAtThreshold, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, summaryToSystemMessage, supersedeVaultMemoryOp, synthesizeProfile, toolSetSystemPrompts, traverseGraphLane, ttlForType, updateConversationProjectOp, updateConversationTitleOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageChunksOp, updateMessageEmbeddingOp, updateMessageErrorOp, updateMessageFeedbackOp, updateModelsOp, updatePersonalityOp, updateProfileOp, updateProjectNameOp, updateProjectOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertConversationSummaryOp, upsertMessageOp };