@anuma/sdk 6.2.0 → 6.3.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.
@@ -4884,6 +4884,27 @@ var init_encryption2 = __esm({
4884
4884
  }
4885
4885
  });
4886
4886
 
4887
+ // src/lib/db/memoryVault/types.ts
4888
+ function parseMedia(value) {
4889
+ if (typeof value !== "string" || value === "") return null;
4890
+ try {
4891
+ const parsed = JSON.parse(value);
4892
+ if (!Array.isArray(parsed)) return null;
4893
+ const refs = parsed.filter((r) => typeof r === "object" && r !== null).map((r) => ({
4894
+ feedItemId: Number(r.feedItemId ?? r.feed_item_id),
4895
+ objectKey: r.objectKey ?? r.object_key ?? null
4896
+ })).filter((r) => Number.isFinite(r.feedItemId));
4897
+ return refs.length > 0 ? refs : null;
4898
+ } catch {
4899
+ return null;
4900
+ }
4901
+ }
4902
+ var init_types4 = __esm({
4903
+ "src/lib/db/memoryVault/types.ts"() {
4904
+ "use strict";
4905
+ }
4906
+ });
4907
+
4887
4908
  // src/lib/db/memoryVault/operations.ts
4888
4909
  function visibilityOrPrivate(value) {
4889
4910
  return value === "public" ? value : "private";
@@ -4945,6 +4966,7 @@ function vaultMemoryToStoredRaw(memory) {
4945
4966
  sourceChunkIds,
4946
4967
  proofCount: memory.proofCount ?? null,
4947
4968
  source: memory.source ?? null,
4969
+ media: parseMedia(memory.media),
4948
4970
  eventTimeStart: memory.eventTimeStart ?? null,
4949
4971
  eventTimeEnd: memory.eventTimeEnd ?? null,
4950
4972
  eventTimeKind: memory.eventTimeKind ?? null,
@@ -5227,6 +5249,7 @@ function vaultMemoryRawToStoredRaw(raw) {
5227
5249
  eventTimeKind: raw.event_time_kind ?? null,
5228
5250
  // SQLite stores booleans as 0/1, LokiJS as true/false — coerce both.
5229
5251
  topicsUserManaged: raw.topics_user_managed === true || raw.topics_user_managed === 1,
5252
+ media: parseMedia(raw.media),
5230
5253
  topics: parseTopics(raw.topics),
5231
5254
  topicsUpdatedAt: raw.topics_updated_at ?? null,
5232
5255
  topicsExtractedAt: raw.topics_extracted_at ?? null,
@@ -6013,6 +6036,7 @@ var init_operations3 = __esm({
6013
6036
  init_operations2();
6014
6037
  init_types3();
6015
6038
  init_encryption2();
6039
+ init_types4();
6016
6040
  NON_PRIVATE_VISIBILITIES = ["public"];
6017
6041
  KNOWN_TRUST_TIERS = /* @__PURE__ */ new Set(["quarantined", "trusted"]);
6018
6042
  TOPICS_EXTRACTION_VERSION = 3;
@@ -6340,17 +6364,17 @@ function recencyMultiplier(updatedAt, opts = {}) {
6340
6364
  const now = opts.now ?? /* @__PURE__ */ new Date();
6341
6365
  const nowMs2 = now.getTime();
6342
6366
  if (!Number.isFinite(nowMs2)) return noDate;
6343
- const ageDays2 = Math.max(0, (nowMs2 - updatedMs) / DAY_MS);
6367
+ const ageDays2 = Math.max(0, (nowMs2 - updatedMs) / DAY_MS2);
6344
6368
  const perYearDecay = opts.perYearDecay ?? DEFAULT_PER_YEAR_DECAY;
6345
6369
  const floor = opts.floor ?? DEFAULT_FLOOR;
6346
6370
  const decay = perYearDecay * (ageDays2 / 365);
6347
6371
  return Math.max(floor, 1 - decay);
6348
6372
  }
6349
- var DAY_MS, DEFAULT_PER_YEAR_DECAY, DEFAULT_FLOOR, DEFAULT_NO_DATE_MULTIPLIER;
6373
+ var DAY_MS2, DEFAULT_PER_YEAR_DECAY, DEFAULT_FLOOR, DEFAULT_NO_DATE_MULTIPLIER;
6350
6374
  var init_recency = __esm({
6351
6375
  "src/lib/memory/recency.ts"() {
6352
6376
  "use strict";
6353
- DAY_MS = 1e3 * 60 * 60 * 24;
6377
+ DAY_MS2 = 1e3 * 60 * 60 * 24;
6354
6378
  DEFAULT_PER_YEAR_DECAY = 0.2;
6355
6379
  DEFAULT_FLOOR = 0.1;
6356
6380
  DEFAULT_NO_DATE_MULTIPLIER = 0.5;
@@ -7107,8 +7131,8 @@ function classifyObservationTrend(input, now = Date.now()) {
7107
7131
  const lastMsRaw = input.lastObservedAt;
7108
7132
  const lastMs = lastMsRaw !== null && lastMsRaw !== void 0 && Number.isFinite(lastMsRaw) ? Math.max(createdMs, lastMsRaw) : createdMs;
7109
7133
  const proofs = Math.max(1, input.proofCount ?? 1);
7110
- const ageDays2 = Math.max(0, (now - createdMs) / DAY_MS2);
7111
- const daysSinceLast = Math.max(0, (now - lastMs) / DAY_MS2);
7134
+ const ageDays2 = Math.max(0, (now - createdMs) / DAY_MS3);
7135
+ const daysSinceLast = Math.max(0, (now - lastMs) / DAY_MS3);
7112
7136
  if (daysSinceLast >= TREND_STALE_WINDOW_DAYS) return "stale";
7113
7137
  if (daysSinceLast >= TREND_RECENT_WINDOW_DAYS) return "weakening";
7114
7138
  if (ageDays2 <= TREND_RECENT_WINDOW_DAYS && proofs <= 2) return "new";
@@ -7129,11 +7153,11 @@ function summarizeObservationTrends(inputs, now = Date.now()) {
7129
7153
  }
7130
7154
  return counts;
7131
7155
  }
7132
- var DAY_MS2, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS;
7156
+ var DAY_MS3, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS;
7133
7157
  var init_observationTrend = __esm({
7134
7158
  "src/lib/memory/observationTrend.ts"() {
7135
7159
  "use strict";
7136
- DAY_MS2 = 1e3 * 60 * 60 * 24;
7160
+ DAY_MS3 = 1e3 * 60 * 60 * 24;
7137
7161
  TREND_RECENT_WINDOW_DAYS = 30;
7138
7162
  TREND_STALE_WINDOW_DAYS = 90;
7139
7163
  }
@@ -9581,6 +9605,7 @@ __export(index_exports, {
9581
9605
  hasICloudCredentials: () => hasICloudCredentials,
9582
9606
  hasKeyPair: () => hasKeyPair,
9583
9607
  hasNotionCredentials: () => hasNotionCredentials,
9608
+ ingestPublishedPhotoMemoriesOp: () => ingestPublishedPhotoMemoriesOp,
9584
9609
  injectionSignatureCatalog: () => injectionSignatureCatalog,
9585
9610
  insertAfterId: () => insertAfterId,
9586
9611
  insertChild: () => insertChild,
@@ -9607,6 +9632,7 @@ __export(index_exports, {
9607
9632
  noopLogger: () => noopLogger,
9608
9633
  onKeyAvailable: () => onKeyAvailable,
9609
9634
  parseJsx: () => parseJsx,
9635
+ parseMedia: () => parseMedia,
9610
9636
  preEmbedVaultMemories: () => preEmbedVaultMemories,
9611
9637
  preprocessFiles: () => preprocessFiles,
9612
9638
  previewToolSelection: () => previewToolSelection,
@@ -16406,6 +16432,9 @@ __decorateClass([
16406
16432
  __decorateClass([
16407
16433
  (0, import_decorators3.field)("topics_updated_at")
16408
16434
  ], VaultMemory.prototype, "topicsUpdatedAt", 2);
16435
+ __decorateClass([
16436
+ (0, import_decorators3.field)("media")
16437
+ ], VaultMemory.prototype, "media", 2);
16409
16438
  __decorateClass([
16410
16439
  (0, import_decorators3.field)("topics_extracted_at")
16411
16440
  ], VaultMemory.prototype, "topicsExtractedAt", 2);
@@ -16456,6 +16485,138 @@ __decorateClass([
16456
16485
  // src/lib/db/memoryVault/index.ts
16457
16486
  init_operations3();
16458
16487
 
16488
+ // src/lib/memory/decay.ts
16489
+ init_logger();
16490
+ var DAY_MS = 24 * 60 * 60 * 1e3;
16491
+ var SHORT_TTL_MS = 30 * DAY_MS;
16492
+ var MEDIUM_TTL_MS = 180 * DAY_MS;
16493
+ var SOURCE_PHOTO = "photo";
16494
+ var NEVER_TTL_MS = Number.POSITIVE_INFINITY;
16495
+ var HARD_DELETE_WINDOW_MS = 30 * DAY_MS;
16496
+ var PAST_EVENT_GRACE_MS = 7 * DAY_MS;
16497
+ var DEFAULT_DECAY_POLICY = {
16498
+ ttlByType: {
16499
+ identity: NEVER_TTL_MS,
16500
+ preference: NEVER_TTL_MS,
16501
+ relationship: NEVER_TTL_MS,
16502
+ constraint: NEVER_TTL_MS,
16503
+ plan: SHORT_TTL_MS,
16504
+ ongoing_context: SHORT_TTL_MS,
16505
+ other: MEDIUM_TTL_MS
16506
+ },
16507
+ fallbackTtlMs: MEDIUM_TTL_MS,
16508
+ hardDeleteWindowMs: HARD_DELETE_WINDOW_MS,
16509
+ pastEventGraceMs: PAST_EVENT_GRACE_MS
16510
+ };
16511
+ function resolvePolicy(policy) {
16512
+ if (!policy) return DEFAULT_DECAY_POLICY;
16513
+ return {
16514
+ ttlByType: { ...DEFAULT_DECAY_POLICY.ttlByType, ...policy.ttlByType },
16515
+ fallbackTtlMs: policy.fallbackTtlMs ?? DEFAULT_DECAY_POLICY.fallbackTtlMs,
16516
+ hardDeleteWindowMs: policy.hardDeleteWindowMs ?? DEFAULT_DECAY_POLICY.hardDeleteWindowMs,
16517
+ pastEventGraceMs: policy.pastEventGraceMs ?? DEFAULT_DECAY_POLICY.pastEventGraceMs
16518
+ };
16519
+ }
16520
+ function ttlForType(factType, policy) {
16521
+ const resolved = resolvePolicy(policy);
16522
+ if (factType === null) return resolved.fallbackTtlMs;
16523
+ return resolved.ttlByType[factType] ?? resolved.fallbackTtlMs;
16524
+ }
16525
+ function isTimeSensitiveType(factType) {
16526
+ return factType === "plan" || factType === "ongoing_context";
16527
+ }
16528
+ function hasFiniteTimestamps(m, now) {
16529
+ return Number.isFinite(now) && Number.isFinite(m.updatedAt) && (m.archivedAt === null || Number.isFinite(m.archivedAt));
16530
+ }
16531
+ function classifyDecay(m, now, policy) {
16532
+ const resolved = resolvePolicy(policy);
16533
+ if (!hasFiniteTimestamps(m, now)) {
16534
+ getLogger().warn("[memory/decay] non-finite timestamp on a memory row; keeping it", {
16535
+ now,
16536
+ updatedAt: m.updatedAt,
16537
+ archivedAt: m.archivedAt,
16538
+ factType: m.factType
16539
+ });
16540
+ return "keep";
16541
+ }
16542
+ if (m.archivedAt !== null) {
16543
+ return now - m.archivedAt > resolved.hardDeleteWindowMs ? "delete" : "keep";
16544
+ }
16545
+ if (m.source === "manual" || m.source === SOURCE_PHOTO) return "keep";
16546
+ if (isTimeSensitiveType(m.factType) && m.eventTimeEnd !== null) {
16547
+ if (m.eventTimeEnd < now - resolved.pastEventGraceMs) return "archive";
16548
+ if (m.eventTimeEnd >= now) return "keep";
16549
+ }
16550
+ if (now - m.updatedAt > ttlForType(m.factType, resolved)) return "archive";
16551
+ return "keep";
16552
+ }
16553
+
16554
+ // src/lib/db/memoryVault/photoIngest.ts
16555
+ init_encryption2();
16556
+ var PHOTO_MEMORY_ID_PREFIX = "photo:";
16557
+ async function ingestPublishedPhotoMemoriesOp(ctx, rows) {
16558
+ const byId = /* @__PURE__ */ new Map();
16559
+ for (const r of rows) {
16560
+ if (typeof r.memoryId !== "string" || !r.memoryId.startsWith(PHOTO_MEMORY_ID_PREFIX)) continue;
16561
+ if (!byId.has(r.memoryId)) byId.set(r.memoryId, r);
16562
+ }
16563
+ const photoRows = [...byId.values()];
16564
+ if (photoRows.length === 0) return { inserted: 0, skipped: 0 };
16565
+ const known = await ctx.vaultMemoryCollection.query().fetchIds().then((ids) => new Set(ids));
16566
+ const candidates = photoRows.filter((r) => !known.has(r.memoryId));
16567
+ if (candidates.length === 0) return { inserted: 0, skipped: photoRows.length };
16568
+ const fresh = candidates;
16569
+ const contents = await Promise.all(
16570
+ fresh.map(async (r) => {
16571
+ if (ctx.walletAddress && ctx.signMessage) {
16572
+ return encryptVaultMemoryContent(
16573
+ r.text,
16574
+ ctx.walletAddress,
16575
+ ctx.signMessage,
16576
+ ctx.embeddedWalletSigner
16577
+ );
16578
+ }
16579
+ return r.text;
16580
+ })
16581
+ );
16582
+ const now = Date.now();
16583
+ let inserted = 0;
16584
+ await ctx.database.write(async () => {
16585
+ const present = new Set(await ctx.vaultMemoryCollection.query().fetchIds());
16586
+ const writable = fresh.map((row, i) => ({ row, content: contents[i] })).filter(({ row }) => !present.has(row.memoryId));
16587
+ inserted = writable.length;
16588
+ if (writable.length === 0) return;
16589
+ const prepared = writable.map(
16590
+ ({ row, content }) => ctx.vaultMemoryCollection.prepareCreate((record) => {
16591
+ record._raw.id = row.memoryId;
16592
+ record._setRaw("content", content);
16593
+ record._setRaw("scope", "private");
16594
+ record._setRaw("folder_id", null);
16595
+ record._setRaw("user_id", ctx.userId ?? null);
16596
+ record._setRaw("is_deleted", false);
16597
+ record._setRaw("proof_count", 1);
16598
+ record._setRaw("source", SOURCE_PHOTO);
16599
+ record._setRaw(
16600
+ "media",
16601
+ row.media && row.media.length > 0 ? JSON.stringify(row.media) : null
16602
+ );
16603
+ record._setRaw("visibility", "public");
16604
+ record._setRaw("published_at", now);
16605
+ if (row.eventTime) {
16606
+ record._setRaw("event_time_start", row.eventTime.start ?? null);
16607
+ record._setRaw("event_time_end", row.eventTime.end ?? null);
16608
+ record._setRaw("event_time_kind", row.eventTime.kind ?? null);
16609
+ }
16610
+ })
16611
+ );
16612
+ await ctx.database.batch(...prepared);
16613
+ });
16614
+ return { inserted, skipped: photoRows.length - inserted };
16615
+ }
16616
+
16617
+ // src/lib/db/memoryVault/index.ts
16618
+ init_types4();
16619
+
16459
16620
  // src/react/useChatStorage.ts
16460
16621
  init_logger();
16461
16622
 
@@ -17895,71 +18056,6 @@ function createChunkVectorCache(maxSize = DEFAULT_CHUNK_CACHE_SIZE) {
17895
18056
  return new LRUCache(maxSize);
17896
18057
  }
17897
18058
 
17898
- // src/lib/memory/decay.ts
17899
- init_logger();
17900
- var DAY_MS3 = 24 * 60 * 60 * 1e3;
17901
- var SHORT_TTL_MS = 30 * DAY_MS3;
17902
- var MEDIUM_TTL_MS = 180 * DAY_MS3;
17903
- var NEVER_TTL_MS = Number.POSITIVE_INFINITY;
17904
- var HARD_DELETE_WINDOW_MS = 30 * DAY_MS3;
17905
- var PAST_EVENT_GRACE_MS = 7 * DAY_MS3;
17906
- var DEFAULT_DECAY_POLICY = {
17907
- ttlByType: {
17908
- identity: NEVER_TTL_MS,
17909
- preference: NEVER_TTL_MS,
17910
- relationship: NEVER_TTL_MS,
17911
- constraint: NEVER_TTL_MS,
17912
- plan: SHORT_TTL_MS,
17913
- ongoing_context: SHORT_TTL_MS,
17914
- other: MEDIUM_TTL_MS
17915
- },
17916
- fallbackTtlMs: MEDIUM_TTL_MS,
17917
- hardDeleteWindowMs: HARD_DELETE_WINDOW_MS,
17918
- pastEventGraceMs: PAST_EVENT_GRACE_MS
17919
- };
17920
- function resolvePolicy(policy) {
17921
- if (!policy) return DEFAULT_DECAY_POLICY;
17922
- return {
17923
- ttlByType: { ...DEFAULT_DECAY_POLICY.ttlByType, ...policy.ttlByType },
17924
- fallbackTtlMs: policy.fallbackTtlMs ?? DEFAULT_DECAY_POLICY.fallbackTtlMs,
17925
- hardDeleteWindowMs: policy.hardDeleteWindowMs ?? DEFAULT_DECAY_POLICY.hardDeleteWindowMs,
17926
- pastEventGraceMs: policy.pastEventGraceMs ?? DEFAULT_DECAY_POLICY.pastEventGraceMs
17927
- };
17928
- }
17929
- function ttlForType(factType, policy) {
17930
- const resolved = resolvePolicy(policy);
17931
- if (factType === null) return resolved.fallbackTtlMs;
17932
- return resolved.ttlByType[factType] ?? resolved.fallbackTtlMs;
17933
- }
17934
- function isTimeSensitiveType(factType) {
17935
- return factType === "plan" || factType === "ongoing_context";
17936
- }
17937
- function hasFiniteTimestamps(m, now) {
17938
- return Number.isFinite(now) && Number.isFinite(m.updatedAt) && (m.archivedAt === null || Number.isFinite(m.archivedAt));
17939
- }
17940
- function classifyDecay(m, now, policy) {
17941
- const resolved = resolvePolicy(policy);
17942
- if (!hasFiniteTimestamps(m, now)) {
17943
- getLogger().warn("[memory/decay] non-finite timestamp on a memory row; keeping it", {
17944
- now,
17945
- updatedAt: m.updatedAt,
17946
- archivedAt: m.archivedAt,
17947
- factType: m.factType
17948
- });
17949
- return "keep";
17950
- }
17951
- if (m.archivedAt !== null) {
17952
- return now - m.archivedAt > resolved.hardDeleteWindowMs ? "delete" : "keep";
17953
- }
17954
- if (m.source === "manual") return "keep";
17955
- if (isTimeSensitiveType(m.factType) && m.eventTimeEnd !== null) {
17956
- if (m.eventTimeEnd < now - resolved.pastEventGraceMs) return "archive";
17957
- if (m.eventTimeEnd >= now) return "keep";
17958
- }
17959
- if (now - m.updatedAt > ttlForType(m.factType, resolved)) return "archive";
17960
- return "keep";
17961
- }
17962
-
17963
18059
  // src/lib/memory/decayClassifier.ts
17964
18060
  init_logger();
17965
18061
  init_redactor();
@@ -18062,7 +18158,7 @@ function toDecayInput(c) {
18062
18158
  };
18063
18159
  }
18064
18160
  function isBorderline(input) {
18065
- if (input.source === "manual") return false;
18161
+ if (input.source === "manual" || input.source === SOURCE_PHOTO) return false;
18066
18162
  if (input.trustTier === "quarantined") return false;
18067
18163
  if (input.archivedAt !== null) return false;
18068
18164
  if (input.factType === null || input.factType === "other") return true;
@@ -24056,7 +24152,7 @@ __decorateClass([
24056
24152
  ], VaultFolder.prototype, "context", 2);
24057
24153
 
24058
24154
  // src/lib/db/schema.ts
24059
- var SDK_SCHEMA_VERSION = 44;
24155
+ var SDK_SCHEMA_VERSION = 45;
24060
24156
  var sdkSchema = (0, import_watermelondb20.appSchema)({
24061
24157
  version: SDK_SCHEMA_VERSION,
24062
24158
  tables: [
@@ -24204,6 +24300,18 @@ var sdkSchema = (0, import_watermelondb20.appSchema)({
24204
24300
  // paths key on `updated_at` — so without this a topic-only change would
24205
24301
  // neither upload nor merge. Null = `topics` never written.
24206
24302
  { name: "topics_updated_at", type: "number", isOptional: true },
24303
+ // The photo(s) a SERVER-EXTRACTED memory was read out of, as a JSON
24304
+ // array of `{feed_item_id, object_key}` — exactly what
24305
+ // GET /api/memories/published returns in `media[]`. Enough to render the
24306
+ // source image without a second round-trip per memory.
24307
+ //
24308
+ // A JSON column rather than a join table: nothing on the client ever
24309
+ // queries BY photo (the only direction is memory -> render its image),
24310
+ // so a table would add a sync lane and a local-id space to serve a
24311
+ // question nobody asks. `topics` and `source_chunk_ids` set the
24312
+ // precedent for a list that is only ever read back whole. Null on
24313
+ // anything not extracted from a photo.
24314
+ { name: "media", type: "string", isOptional: true },
24207
24315
  // Unix ms of the last LLM topic-extraction pass over this memory's
24208
24316
  // content. Null = never extracted standalone (legacy rows with entity
24209
24317
  // links are grandfathered — see getMemoriesNeedingTopicExtractionOp).
@@ -25038,6 +25146,20 @@ var sdkMigrations = (0, import_migrations2.schemaMigrations)({
25038
25146
  columns: [{ name: "origin", type: "string", isOptional: true }]
25039
25147
  })
25040
25148
  ]
25149
+ },
25150
+ // v44 -> v45: `media` on memory_vault — the photo(s) a server-extracted
25151
+ // memory was read out of, as JSON `[{feed_item_id, object_key}]`, mirroring
25152
+ // the `media[]` that GET /api/memories/published already returns. Existing
25153
+ // rows keep NULL, which is the correct value for every memory that did not
25154
+ // come from a photo (i.e. all of them until photo ingest runs).
25155
+ {
25156
+ toVersion: 45,
25157
+ steps: [
25158
+ (0, import_migrations2.addColumns)({
25159
+ table: "memory_vault",
25160
+ columns: [{ name: "media", type: "string", isOptional: true }]
25161
+ })
25162
+ ]
25041
25163
  }
25042
25164
  ]
25043
25165
  });
@@ -34939,6 +35061,7 @@ function renderAnumaJsx(jsx3) {
34939
35061
  hasICloudCredentials,
34940
35062
  hasKeyPair,
34941
35063
  hasNotionCredentials,
35064
+ ingestPublishedPhotoMemoriesOp,
34942
35065
  injectionSignatureCatalog,
34943
35066
  insertAfterId,
34944
35067
  insertChild,
@@ -34965,6 +35088,7 @@ function renderAnumaJsx(jsx3) {
34965
35088
  noopLogger,
34966
35089
  onKeyAvailable,
34967
35090
  parseJsx,
35091
+ parseMedia,
34968
35092
  preEmbedVaultMemories,
34969
35093
  preprocessFiles,
34970
35094
  previewToolSelection,
@@ -5806,6 +5806,10 @@ declare class VaultMemory extends Model {
5806
5806
  /** Unix ms of the last `topics` write. Separate from `updated_at`, which every
5807
5807
  * topic writer pins on purpose (recall recency) — see the schema note. */
5808
5808
  topicsUpdatedAt: number | null;
5809
+ /** The photo(s) a SERVER-EXTRACTED memory came from — JSON
5810
+ * `[{feed_item_id, object_key}]`, exactly the shape
5811
+ * GET /api/memories/published returns. Null on anything not from a photo. */
5812
+ media: string | null;
5809
5813
  /** Unix ms of the last LLM topic-extraction pass. Null = never extracted
5810
5814
  * standalone (linked legacy rows are grandfathered as extracted).
5811
5815
  * DEPRECATED (v42) — subsumed by `topics_updated_at`; see the schema note. */
@@ -7319,8 +7323,16 @@ interface StoredVaultMemory {
7319
7323
  sourceChunkIds: string[] | null;
7320
7324
  /** Times this fact has been re-observed (for ranking + UX badges). */
7321
7325
  proofCount: number | null;
7322
- /** How the memory was created: manual | auto-extracted | capsule. */
7326
+ /** How the memory was created: manual | auto-extracted | capsule | photo. */
7323
7327
  source: string | null;
7328
+ /** The photo(s) a SERVER-EXTRACTED memory was read out of. Null on every
7329
+ * memory that did not come from a photo. See {@link PhotoMediaRef}.
7330
+ *
7331
+ * OPTIONAL rather than required: every read path sets it (the row mappers
7332
+ * always call parseMedia), but making it required would be a compile-break
7333
+ * for any caller that CONSTRUCTS a StoredVaultMemory — fixtures, mocks, and
7334
+ * anything downstream — for a field that is null on all but photo rows. */
7335
+ media?: PhotoMediaRef[] | null;
7324
7336
  /** W6 temporal lane — Unix ms when the event occurred (point/start of range). */
7325
7337
  eventTimeStart: number | null;
7326
7338
  /** W6 temporal lane — Unix ms when the event ended (range only). */
@@ -7402,6 +7414,26 @@ interface RankableVaultMemory {
7402
7414
  createdAt: Date;
7403
7415
  updatedAt: Date;
7404
7416
  }
7417
+ /**
7418
+ * A photo a server-extracted memory came from, as
7419
+ * GET /api/memories/published returns it in `media[]`.
7420
+ *
7421
+ * Both identifiers travel because both are needed: `feedItemId` is the server's
7422
+ * handle for the photo, and `objectKey` is what a client turns into a CDN URL
7423
+ * without another round-trip per memory.
7424
+ */
7425
+ interface PhotoMediaRef {
7426
+ feedItemId: number;
7427
+ objectKey: string | null;
7428
+ }
7429
+ /**
7430
+ * Decode the stored `media` column. Returns null for "no photo behind this
7431
+ * memory" (the column is null on every non-photo row) and tolerates a corrupt
7432
+ * or unexpected payload by reading it as null too — a memory whose photo
7433
+ * reference cannot be parsed is still a perfectly good memory, and losing the
7434
+ * thumbnail is a better failure than losing the row.
7435
+ */
7436
+ declare function parseMedia(value: unknown): PhotoMediaRef[] | null;
7405
7437
  interface CreateVaultMemoryOptions {
7406
7438
  content: string;
7407
7439
  /** Scope for the memory. Defaults to "private" if omitted. */
@@ -7968,6 +8000,95 @@ declare function hardDeleteDecayedOp(ctx: VaultMemoryOperationsContext, id: stri
7968
8000
  }): Promise<boolean>;
7969
8001
  declare function updateVaultMemoryEmbeddingOp(ctx: VaultMemoryOperationsContext, id: string, embedding: string, embeddingModel: string): Promise<boolean>;
7970
8002
 
8003
+ /**
8004
+ * Ingest server-extracted photo memories into the local vault.
8005
+ *
8006
+ * A photo uploaded to People Nearby is read by the server, which extracts
8007
+ * durable facts about the user, embeds them and publishes them
8008
+ * (anuma-ai/nearby#114). Until those rows reach the device they exist only
8009
+ * server-side: the user's own assistant cannot recall them, and no screen can
8010
+ * show them — so the "visible and deletable" promise the design makes is not
8011
+ * kept. This is the path that brings them home.
8012
+ *
8013
+ * Three things about the shape of this, each of which is load-bearing:
8014
+ *
8015
+ * 1. **It takes rows; it does not fetch them.** The publish reconciler already
8016
+ * calls `listPublished()` on every pass and gets `text`, `media[]`,
8017
+ * `event_time` and `user_authored` back. Ingest consumes that response. No
8018
+ * new endpoint, no second network call, no change to nearby's API.
8019
+ *
8020
+ * 2. **The vault row's id IS the server's `memory_id`.** That is what makes a
8021
+ * revoke addressable: the reconciler's ledger, its published set and its
8022
+ * `toRevoke` list are all keyed on that id, so a locally-minted id would
8023
+ * leave the user with a switch that cannot reach the row it appears to
8024
+ * control. It is also what makes ingest idempotent for free — a second pass
8025
+ * sees the id already present and writes nothing.
8026
+ *
8027
+ * 3. **These rows never go through `retain()`.** That path is for facts being
8028
+ * learned on-device: it dedupes and merges candidates against local rows and
8029
+ * mints its own ids, both of which would break (2). A photo memory is not a
8030
+ * candidate to be reconciled against the vault — it is an already-decided
8031
+ * fact the server has published.
8032
+ *
8033
+ * The rows are written `visibility: "public"` because they genuinely ARE
8034
+ * published — the reconciler reads local visibility as the user's intent, and
8035
+ * anything else would make it immediately revoke a memory the user never turned
8036
+ * off. They carry `source: SOURCE_PHOTO`, which is what exempts them from
8037
+ * decay's auto-archive; see the note there for why archiving one would silently
8038
+ * unpublish it.
8039
+ *
8040
+ * No embedding is computed here. `searchTool`'s un-embedded lane embeds any row
8041
+ * lacking a vector at search time, uses it in that same search and persists it
8042
+ * via `updateVaultMemoryEmbeddingOp` — so a row ingested without one is picked
8043
+ * up on first recall rather than costing an embedding call at ingest.
8044
+ */
8045
+
8046
+ /**
8047
+ * One row of `GET /api/memories/published`, narrowed to what ingest needs.
8048
+ *
8049
+ * Deliberately structural rather than an import from the transport client: this
8050
+ * op is in the SDK and the two hand-written nearby clients live in the app, so
8051
+ * a shared nominal type would drag one across a package boundary for no gain.
8052
+ */
8053
+ interface PublishedPhotoMemory {
8054
+ /** The server-minted memory id. `photo:<feedItemID>:fact:NN` or `:caption`. */
8055
+ memoryId: string;
8056
+ /** The projected fact text. */
8057
+ text: string;
8058
+ /** The photo(s) this fact was read out of. */
8059
+ media?: PhotoMediaRef[] | null;
8060
+ /** When the event in the memory happened, if the server knows. */
8061
+ eventTime?: {
8062
+ start: number | null;
8063
+ end: number | null;
8064
+ kind: "point" | "range" | "ongoing" | null;
8065
+ } | null;
8066
+ /** True when the text is the user's own words (a kept caption). */
8067
+ userAuthored?: boolean;
8068
+ }
8069
+ /** What one ingest pass did, for the caller's logs and tests. */
8070
+ interface PhotoIngestResult {
8071
+ /** Rows newly written to the vault. */
8072
+ inserted: number;
8073
+ /** Rows already present, left untouched. */
8074
+ skipped: number;
8075
+ }
8076
+ /**
8077
+ * Write the published photo memories this vault does not already have.
8078
+ *
8079
+ * Idempotent on `memoryId`: a row whose id is already in the vault is counted as
8080
+ * skipped and NOT rewritten, even when the server's text has since changed.
8081
+ * That is deliberate — the local row is the user's copy, they may have edited
8082
+ * it, and silently overwriting an edit to match the server would be the same
8083
+ * class of bug as publishing a version the user has since changed. Re-ingesting
8084
+ * changed text is a follow-up that needs a merge decision, not a clobber.
8085
+ *
8086
+ * Non-`photo:` ids are ignored: everything else in the published set is a
8087
+ * client-published memory that by definition already lives in this vault (or in
8088
+ * another device's, which is not ours to recreate).
8089
+ */
8090
+ declare function ingestPublishedPhotoMemoriesOp(ctx: VaultMemoryOperationsContext, rows: PublishedPhotoMemory[]): Promise<PhotoIngestResult>;
8091
+
7971
8092
  /**
7972
8093
  * Auto-extraction worker — orchestration glue for wiring
7973
8094
  * {@link extractAndRetain} into a chat lifecycle.
@@ -8289,6 +8410,15 @@ declare function createChunkVectorCache(maxSize?: number): ChunkVectorCache;
8289
8410
  * shared purge buffer for every row, so an already-archived manual memory is
8290
8411
  * still deleted after the window (the archived check runs before the manual
8291
8412
  * short-circuit by design).
8413
+ *
8414
+ * `source === "photo"` (server-extracted photo memories) is protected the same
8415
+ * way, and for a sharper reason than curation: those rows are PUBLISHED, and
8416
+ * auto-archiving one would silently un-publish it. Archived rows drop out of the
8417
+ * default vault read, the publish reconciler builds its desired set from that
8418
+ * read, and anything it previously adopted but no longer sees goes into
8419
+ * `toRevoke` — so an age-archive at the medium TTL would revoke a memory from
8420
+ * the server that the user never switched off. Revoking is the user's decision
8421
+ * and has exactly one entry point: the publish switch.
8292
8422
  */
8293
8423
  /** The verdict for a single memory. */
8294
8424
  type DecayVerdict = "keep" | "archive" | "delete";
@@ -10810,8 +10940,11 @@ declare class WatermelonChatStorageAdapter implements ChatStorageAdapter {
10810
10940
  * unreadable flag would fail open. Existing rows stay NULL (= legacy,
10811
10941
  * unknown provenance, embedded as before) with no backfill, matching the v37
10812
10942
  * read-time-fallback precedent
10943
+ * - v45: Added `media` to memory_vault — the photo(s) a server-extracted
10944
+ * memory came from, as JSON `[{feed_item_id, object_key}]`. Null on every
10945
+ * row that did not come from a photo, which is all of them before this
10813
10946
  */
10814
- declare const SDK_SCHEMA_VERSION = 44;
10947
+ declare const SDK_SCHEMA_VERSION = 45;
10815
10948
  /**
10816
10949
  * Combined WatermelonDB schema for all SDK storage modules.
10817
10950
  *
@@ -15048,4 +15181,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
15048
15181
  */
15049
15182
  declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
15050
15183
 
15051
- export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshEncryptionKeyIfMatches, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, verifyMemoriesForPublish, walk, webPlatformStorage, writeEncryptedFile };
15184
+ export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshEncryptionKeyIfMatches, refreshGithubToken, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, verifyMemoriesForPublish, walk, webPlatformStorage, writeEncryptedFile };