@anuma/sdk 11.3.5 → 11.4.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.
@@ -1526,6 +1526,7 @@ __export(index_exports, {
1526
1526
  addConversationMemoriesOp: () => addConversationMemoriesOp,
1527
1527
  anumaLastReadSortKey: () => anumaLastReadSortKey,
1528
1528
  anumaTurnContent: () => anumaTurnContent,
1529
+ appFileId: () => appFileId,
1529
1530
  appFileToStored: () => appFileToStored,
1530
1531
  archiveVaultMemoryOp: () => archiveVaultMemoryOp,
1531
1532
  assembleMemoryContext: () => assembleMemoryContext,
@@ -1566,6 +1567,7 @@ __export(index_exports, {
1566
1567
  conversationMemoryToStored: () => conversationMemoryToStored,
1567
1568
  cosineInt8: () => cosineInt8,
1568
1569
  countUnreadAnumaTurns: () => countUnreadAnumaTurns,
1570
+ createAppFileIndex: () => createAppFileIndex,
1569
1571
  createAutoExtractor: () => createAutoExtractor,
1570
1572
  createChunkVectorCache: () => createChunkVectorCache,
1571
1573
  createCryptoPricePreProcessor: () => createCryptoPricePreProcessor,
@@ -1613,6 +1615,7 @@ __export(index_exports, {
1613
1615
  defaultServerToolsFilter: () => defaultServerToolsFilter,
1614
1616
  deleteAllAppFilesOp: () => deleteAllAppFilesOp,
1615
1617
  deleteAllVaultMemoriesForUserOp: () => deleteAllVaultMemoriesForUserOp,
1618
+ deleteAppFile: () => deleteAppFile,
1616
1619
  deleteAppFileOp: () => deleteAppFileOp,
1617
1620
  deleteEncryptedFile: () => deleteEncryptedFile,
1618
1621
  deleteMediaByConversationOp: () => deleteMediaByConversationOp,
@@ -1620,6 +1623,7 @@ __export(index_exports, {
1620
1623
  deleteMediaOp: () => deleteMediaOp,
1621
1624
  deleteMessageOp: () => deleteMessageOp,
1622
1625
  deleteProjectOp: () => deleteProjectOp,
1626
+ deleteSavedTool: () => deleteSavedTool,
1623
1627
  deleteSavedToolOp: () => deleteSavedToolOp,
1624
1628
  deleteVaultFolderOp: () => deleteVaultFolderOp,
1625
1629
  deleteVaultMemoryOp: () => deleteVaultMemoryOp,
@@ -1666,6 +1670,7 @@ __export(index_exports, {
1666
1670
  getAllVaultMemoryContentsOp: () => getAllVaultMemoryContentsOp,
1667
1671
  getAndClearNotionPendingMessage: () => getAndClearNotionPendingMessage,
1668
1672
  getAndClearNotionReturnUrl: () => getAndClearNotionReturnUrl,
1673
+ getAppFile: () => getAppFile,
1669
1674
  getAppFileMapOp: () => getAppFileMapOp,
1670
1675
  getAppFileOp: () => getAppFileOp,
1671
1676
  getAppFilesOp: () => getAppFilesOp,
@@ -1744,6 +1749,9 @@ __export(index_exports, {
1744
1749
  isSupportedMediaType: () => isSupportedMediaType,
1745
1750
  linkMemoryEntitiesOp: () => linkMemoryEntitiesOp,
1746
1751
  listActiveStreams: () => listActiveStreams,
1752
+ listAppFiles: () => listAppFiles,
1753
+ listEveryAppFile: () => listEveryAppFile,
1754
+ loadSavedTools: () => loadSavedTools,
1747
1755
  loadSettings: () => loadSettings,
1748
1756
  localChatBackend: () => localChatBackend,
1749
1757
  markAnumaRead: () => markAnumaRead,
@@ -1795,6 +1803,8 @@ __export(index_exports, {
1795
1803
  resumeStream: () => resumeStream,
1796
1804
  retain: () => retain,
1797
1805
  revokeNotionAccess: () => revokeNotionAccess,
1806
+ saveAppFile: () => saveAppFile,
1807
+ saveSavedTool: () => saveSavedTool,
1798
1808
  saveSetting: () => saveSetting,
1799
1809
  savedToolToStored: () => savedToolToStored,
1800
1810
  scoreProfileSalience: () => scoreProfileSalience,
@@ -1807,6 +1817,7 @@ __export(index_exports, {
1807
1817
  searchMediaOp: () => searchMediaOp,
1808
1818
  searchMessagesOp: () => searchMessagesOp,
1809
1819
  searchVaultMemories: () => searchVaultMemories,
1820
+ seedAppFilesToVault: () => seedAppFilesToVault,
1810
1821
  seedEncryptionKeys: () => seedEncryptionKeys,
1811
1822
  selectServerToolsForPrompt: () => selectServerToolsForPrompt,
1812
1823
  serializeJsx: () => serializeJsx,
@@ -14251,6 +14262,168 @@ function countUnreadAnumaTurns(messages, lastReadSortKey) {
14251
14262
  return turns.size;
14252
14263
  }
14253
14264
 
14265
+ // src/utils/paths.ts
14266
+ function normalizePath(p) {
14267
+ return p.replace(/^\/+/, "").replace(/\/\/+/g, "/").split("/").reduce((acc, seg) => {
14268
+ if (seg === "..") acc.pop();
14269
+ else if (seg !== ".") acc.push(seg);
14270
+ return acc;
14271
+ }, []).join("/");
14272
+ }
14273
+
14274
+ // src/lib/chatStore/appFiles.ts
14275
+ var maxSaveAttempts = 3;
14276
+ async function appFileId(store, conversationId, path) {
14277
+ if (!store.sealedId) throw new Error("App file ids need a chat store that seals ids");
14278
+ return store.sealedId(`app_file\0${conversationId}\0${normalizePath(path)}`);
14279
+ }
14280
+ async function putLatest(store, target, next, signal) {
14281
+ for (let attempt = 1; ; attempt++) {
14282
+ const current = await store.get(target.kind, target.id, signal);
14283
+ if (next.isDeleted && (!current || current.record.isDeleted)) return current;
14284
+ const now = Date.now();
14285
+ try {
14286
+ const [saved] = await store.putMany(
14287
+ [
14288
+ {
14289
+ record: {
14290
+ ...target,
14291
+ sortKey: 0,
14292
+ createdAt: current?.record.createdAt ?? now,
14293
+ updatedAt: Math.max(now, (current?.record.updatedAt ?? 0) + 1),
14294
+ isDeleted: next.isDeleted,
14295
+ data: next.isDeleted ? {} : next.data
14296
+ },
14297
+ expectedVersion: current?.version ?? 0
14298
+ }
14299
+ ],
14300
+ signal
14301
+ );
14302
+ return saved;
14303
+ } catch (error) {
14304
+ if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSaveAttempts)
14305
+ throw error;
14306
+ }
14307
+ }
14308
+ }
14309
+ async function listAll(store, kind, conversationId, signal) {
14310
+ const out = [];
14311
+ let cursor;
14312
+ do {
14313
+ const page = await store.list({ kind, conversationId, limit: 100, cursor, signal });
14314
+ out.push(...page.items.filter((item) => !item.record.isDeleted));
14315
+ cursor = page.nextCursor;
14316
+ } while (cursor);
14317
+ return out;
14318
+ }
14319
+ function toAppFile(snapshot) {
14320
+ const { path, content } = snapshot.record.data;
14321
+ if (typeof path !== "string" || typeof content !== "string") return null;
14322
+ return {
14323
+ conversationId: snapshot.record.conversationId,
14324
+ path,
14325
+ content,
14326
+ version: snapshot.version,
14327
+ createdAt: snapshot.record.createdAt,
14328
+ updatedAt: snapshot.record.updatedAt
14329
+ };
14330
+ }
14331
+ function toSavedTool(snapshot) {
14332
+ const d = snapshot.record.data;
14333
+ if (typeof d.name !== "string" || typeof d.displayName !== "string" || typeof d.description !== "string" || typeof d.parameters !== "string" || typeof d.html !== "string" || d.conversationId !== null && typeof d.conversationId !== "string")
14334
+ return null;
14335
+ return {
14336
+ id: snapshot.record.id,
14337
+ name: d.name,
14338
+ displayName: d.displayName,
14339
+ description: d.description,
14340
+ parameters: d.parameters,
14341
+ html: d.html,
14342
+ conversationId: d.conversationId,
14343
+ version: snapshot.version,
14344
+ createdAt: snapshot.record.createdAt,
14345
+ updatedAt: snapshot.record.updatedAt
14346
+ };
14347
+ }
14348
+ async function listAppFiles(store, conversationId, signal) {
14349
+ const items = await listAll(store, "app_file", conversationId, signal);
14350
+ return items.map(toAppFile).filter((file) => file !== null);
14351
+ }
14352
+ function createAppFileIndex(store) {
14353
+ const latest = /* @__PURE__ */ new Map();
14354
+ let cursor;
14355
+ let queue = Promise.resolve();
14356
+ const catchUp = async (signal) => {
14357
+ for (; ; ) {
14358
+ const page = await store.changes(cursor, { kinds: ["app_file"], limit: 200, signal });
14359
+ for (const item of page.items) latest.set(item.record.id, item);
14360
+ cursor = page.nextCursor ?? page.changesCursor;
14361
+ if (!page.nextCursor) break;
14362
+ }
14363
+ return [...latest.values()].filter((item) => !item.record.isDeleted).map(toAppFile).filter((file) => file !== null);
14364
+ };
14365
+ return {
14366
+ list(signal) {
14367
+ const next = queue.then(() => catchUp(signal));
14368
+ queue = next.catch(() => void 0);
14369
+ return next;
14370
+ }
14371
+ };
14372
+ }
14373
+ function listEveryAppFile(store, signal) {
14374
+ return createAppFileIndex(store).list(signal);
14375
+ }
14376
+ async function getAppFile(store, conversationId, path, signal) {
14377
+ const snapshot = await store.get(
14378
+ "app_file",
14379
+ await appFileId(store, conversationId, path),
14380
+ signal
14381
+ );
14382
+ return snapshot && !snapshot.record.isDeleted ? toAppFile(snapshot) : null;
14383
+ }
14384
+ async function saveAppFile(store, file, signal) {
14385
+ const saved = await putLatest(
14386
+ store,
14387
+ {
14388
+ kind: "app_file",
14389
+ id: await appFileId(store, file.conversationId, file.path),
14390
+ conversationId: file.conversationId
14391
+ },
14392
+ { data: { path: normalizePath(file.path), content: file.content }, isDeleted: false },
14393
+ signal
14394
+ );
14395
+ return toAppFile(saved);
14396
+ }
14397
+ async function deleteAppFile(store, conversationId, path, signal) {
14398
+ await putLatest(
14399
+ store,
14400
+ { kind: "app_file", id: await appFileId(store, conversationId, path), conversationId },
14401
+ { data: {}, isDeleted: true },
14402
+ signal
14403
+ );
14404
+ }
14405
+ async function loadSavedTools(store, signal) {
14406
+ const items = await listAll(store, "saved_tool", void 0, signal);
14407
+ return items.map(toSavedTool).filter((tool) => tool !== null);
14408
+ }
14409
+ async function saveSavedTool(store, id2, tool, signal) {
14410
+ const saved = await putLatest(
14411
+ store,
14412
+ { kind: "saved_tool", id: id2, conversationId: "" },
14413
+ { data: { ...tool }, isDeleted: false },
14414
+ signal
14415
+ );
14416
+ return toSavedTool(saved);
14417
+ }
14418
+ async function deleteSavedTool(store, id2, signal) {
14419
+ await putLatest(
14420
+ store,
14421
+ { kind: "saved_tool", id: id2, conversationId: "" },
14422
+ { data: {}, isDeleted: true },
14423
+ signal
14424
+ );
14425
+ }
14426
+
14254
14427
  // src/lib/db/chat/summaryOperations.ts
14255
14428
  var import_watermelondb6 = require("@nozbe/watermelondb");
14256
14429
  init_logger();
@@ -14454,7 +14627,16 @@ function batches(records) {
14454
14627
  }
14455
14628
 
14456
14629
  // src/lib/chatStore/remote.ts
14457
- var kinds = /* @__PURE__ */ new Set(["conversation", "message", "summary", "project", "memory_links", "setting"]);
14630
+ var kinds = /* @__PURE__ */ new Set([
14631
+ "conversation",
14632
+ "message",
14633
+ "summary",
14634
+ "project",
14635
+ "memory_links",
14636
+ "setting",
14637
+ "app_file",
14638
+ "saved_tool"
14639
+ ]);
14458
14640
  var cipherPattern = /^enc:v\d+:(?:[0-9a-f]{2}){28,}$/i;
14459
14641
  var maxPayload = 2 * 1024 * 1024;
14460
14642
  var storedDims2 = 1536;
@@ -14514,7 +14696,7 @@ function validRecord(value) {
14514
14696
  return root ? value.conversationId === "" : id(value.conversationId);
14515
14697
  }
14516
14698
  function rootKind(kind) {
14517
- return kind === "conversation" || kind === "project" || kind === "setting";
14699
+ return kind === "conversation" || kind === "project" || kind === "setting" || kind === "saved_tool";
14518
14700
  }
14519
14701
  function embeddings(write) {
14520
14702
  if (write.embeddings === void 0) return true;
@@ -14595,6 +14777,7 @@ async function createRemoteChatStore(options) {
14595
14777
  const keyId = options.keyId;
14596
14778
  const encrypt = options.encrypt;
14597
14779
  const decrypt = options.decrypt;
14780
+ const hashTopic = options.hashTopic;
14598
14781
  const nearby = createNearbyRequest({ ...options }, "/api/private-chats");
14599
14782
  const request = async (...args) => {
14600
14783
  try {
@@ -14645,7 +14828,9 @@ async function createRemoteChatStore(options) {
14645
14828
  JSON.stringify({ schema: 1, account_id: accountId, key_id: keyId, record: record3 })
14646
14829
  );
14647
14830
  signal?.throwIfAborted();
14648
- if (!cipherPattern.test(payload) || payload.length > maxPayload) invalid();
14831
+ if (!cipherPattern.test(payload)) invalid();
14832
+ if (payload.length > maxPayload)
14833
+ throw new ChatStoreError("Encrypted chat record is too large", 413, "record_too_large");
14649
14834
  return payload;
14650
14835
  };
14651
14836
  const capture = (items, max, signal) => {
@@ -14926,6 +15111,7 @@ async function createRemoteChatStore(options) {
14926
15111
  if (!object(value) || !integer(value.deleted)) invalid();
14927
15112
  return value.deleted;
14928
15113
  },
15114
+ ...hashTopic ? { sealedId: (value) => hashTopic(`record-id\0${value}`) } : {},
14929
15115
  attachments: {
14930
15116
  async create(sizeBytes, signal) {
14931
15117
  if (!integer(sizeBytes, 1) || sizeBytes > maxAttachmentBytes) invalid();
@@ -15292,8 +15478,87 @@ async function migrateChatsToRemote(options) {
15292
15478
  return passes(false);
15293
15479
  }
15294
15480
 
15481
+ // src/lib/chatStore/seedAppFiles.ts
15482
+ var maxSeedAttempts = 3;
15483
+ async function rawRows(database, table) {
15484
+ const rows = await database.get(table).query().fetch();
15485
+ return rows.map((row) => row._raw);
15486
+ }
15487
+ async function seedRecord(store, target, device, signal) {
15488
+ for (let attempt = 1; ; attempt++) {
15489
+ const current = await store.get(target.kind, target.id, signal);
15490
+ if (current && (current.record.isDeleted || current.record.updatedAt >= device.updatedAt))
15491
+ return false;
15492
+ try {
15493
+ await store.putMany(
15494
+ [
15495
+ {
15496
+ record: {
15497
+ ...target,
15498
+ sortKey: 0,
15499
+ createdAt: current?.record.createdAt ?? device.createdAt,
15500
+ updatedAt: device.updatedAt,
15501
+ isDeleted: false,
15502
+ data: device.data
15503
+ },
15504
+ expectedVersion: current?.version ?? 0
15505
+ }
15506
+ ],
15507
+ signal
15508
+ );
15509
+ return true;
15510
+ } catch (error) {
15511
+ if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSeedAttempts)
15512
+ throw error;
15513
+ }
15514
+ }
15515
+ }
15516
+ function leftOnDevice(error, result) {
15517
+ if (!(error instanceof ChatStoreError)) return false;
15518
+ if (error.code === "conversation_not_found") result.orphaned++;
15519
+ else if (error.code === "record_too_large") result.tooLarge++;
15520
+ else return false;
15521
+ return true;
15522
+ }
15523
+ async function seedAppFilesToVault(database, store, signal) {
15524
+ const result = { appFiles: 0, savedTools: 0, orphaned: 0, tooLarge: 0 };
15525
+ for (const file of await rawRows(database, "app_files")) {
15526
+ try {
15527
+ const target = {
15528
+ kind: "app_file",
15529
+ id: await appFileId(store, file.conversation_id, file.path),
15530
+ conversationId: file.conversation_id
15531
+ };
15532
+ const data = { path: normalizePath(file.path), content: file.content };
15533
+ const device = { data, createdAt: file.created_at, updatedAt: file.updated_at };
15534
+ if (await seedRecord(store, target, device, signal)) result.appFiles++;
15535
+ } catch (error) {
15536
+ if (!leftOnDevice(error, result)) throw error;
15537
+ }
15538
+ }
15539
+ for (const tool of await rawRows(database, "saved_tools")) {
15540
+ if (tool.is_deleted) continue;
15541
+ try {
15542
+ const data = {
15543
+ name: tool.name,
15544
+ displayName: tool.display_name,
15545
+ description: tool.description,
15546
+ parameters: tool.parameters,
15547
+ html: tool.html,
15548
+ conversationId: tool.conversation_id || null
15549
+ };
15550
+ const target = { kind: "saved_tool", id: tool.id, conversationId: "" };
15551
+ const device = { data, createdAt: tool.created_at, updatedAt: tool.updated_at };
15552
+ if (await seedRecord(store, target, device, signal)) result.savedTools++;
15553
+ } catch (error) {
15554
+ if (!leftOnDevice(error, result)) throw error;
15555
+ }
15556
+ }
15557
+ return result;
15558
+ }
15559
+
15295
15560
  // src/lib/chatStore/settings.ts
15296
- var maxSaveAttempts = 3;
15561
+ var maxSaveAttempts2 = 3;
15297
15562
  function toSetting(snapshot) {
15298
15563
  if (snapshot.record.isDeleted) return null;
15299
15564
  return {
@@ -15342,7 +15607,7 @@ async function saveSetting(store, section, data, signal) {
15342
15607
  );
15343
15608
  return toSetting(saved);
15344
15609
  } catch (error) {
15345
- if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSaveAttempts)
15610
+ if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSaveAttempts2)
15346
15611
  throw error;
15347
15612
  }
15348
15613
  }
@@ -16168,12 +16433,15 @@ function createVaultChatBackend(options) {
16168
16433
  emit({ type: "vector_quota" });
16169
16434
  return "retry";
16170
16435
  }
16171
- if (error.code === "private_chat_storage_limit_reached" || error.code === "invalid_record" || error.status === 400) {
16436
+ if (error.code === "private_chat_storage_limit_reached" || error.code === "invalid_record" || error.code === "record_too_large" || error.status === 400) {
16172
16437
  if (batch.length > 1) {
16173
16438
  isolate = batch.length;
16174
16439
  return "retry";
16175
16440
  }
16176
- drop(batch[0], error.status === 413 ? "storage_quota" : "invalid");
16441
+ drop(
16442
+ batch[0],
16443
+ error.code === "private_chat_storage_limit_reached" ? "storage_quota" : "invalid"
16444
+ );
16177
16445
  return "retry";
16178
16446
  }
16179
16447
  if (error.status === 429) return backoff(error.retryAfterMs, true);
@@ -16944,17 +17212,6 @@ __decorateClass([
16944
17212
 
16945
17213
  // src/lib/db/appFiles/operations.ts
16946
17214
  var import_watermelondb9 = require("@nozbe/watermelondb");
16947
-
16948
- // src/utils/paths.ts
16949
- function normalizePath(p) {
16950
- return p.replace(/^\/+/, "").replace(/\/\/+/g, "/").split("/").reduce((acc, seg) => {
16951
- if (seg === "..") acc.pop();
16952
- else if (seg !== ".") acc.push(seg);
16953
- return acc;
16954
- }, []).join("/");
16955
- }
16956
-
16957
- // src/lib/db/appFiles/operations.ts
16958
17215
  function appFileToStored(file) {
16959
17216
  return {
16960
17217
  uniqueId: file.id,
@@ -44445,6 +44702,7 @@ function useWalletBinding(options = {}) {
44445
44702
  addConversationMemoriesOp,
44446
44703
  anumaLastReadSortKey,
44447
44704
  anumaTurnContent,
44705
+ appFileId,
44448
44706
  appFileToStored,
44449
44707
  archiveVaultMemoryOp,
44450
44708
  assembleMemoryContext,
@@ -44485,6 +44743,7 @@ function useWalletBinding(options = {}) {
44485
44743
  conversationMemoryToStored,
44486
44744
  cosineInt8,
44487
44745
  countUnreadAnumaTurns,
44746
+ createAppFileIndex,
44488
44747
  createAutoExtractor,
44489
44748
  createChunkVectorCache,
44490
44749
  createCryptoPricePreProcessor,
@@ -44532,6 +44791,7 @@ function useWalletBinding(options = {}) {
44532
44791
  defaultServerToolsFilter,
44533
44792
  deleteAllAppFilesOp,
44534
44793
  deleteAllVaultMemoriesForUserOp,
44794
+ deleteAppFile,
44535
44795
  deleteAppFileOp,
44536
44796
  deleteEncryptedFile,
44537
44797
  deleteMediaByConversationOp,
@@ -44539,6 +44799,7 @@ function useWalletBinding(options = {}) {
44539
44799
  deleteMediaOp,
44540
44800
  deleteMessageOp,
44541
44801
  deleteProjectOp,
44802
+ deleteSavedTool,
44542
44803
  deleteSavedToolOp,
44543
44804
  deleteVaultFolderOp,
44544
44805
  deleteVaultMemoryOp,
@@ -44585,6 +44846,7 @@ function useWalletBinding(options = {}) {
44585
44846
  getAllVaultMemoryContentsOp,
44586
44847
  getAndClearNotionPendingMessage,
44587
44848
  getAndClearNotionReturnUrl,
44849
+ getAppFile,
44588
44850
  getAppFileMapOp,
44589
44851
  getAppFileOp,
44590
44852
  getAppFilesOp,
@@ -44663,6 +44925,9 @@ function useWalletBinding(options = {}) {
44663
44925
  isSupportedMediaType,
44664
44926
  linkMemoryEntitiesOp,
44665
44927
  listActiveStreams,
44928
+ listAppFiles,
44929
+ listEveryAppFile,
44930
+ loadSavedTools,
44666
44931
  loadSettings,
44667
44932
  localChatBackend,
44668
44933
  markAnumaRead,
@@ -44714,6 +44979,8 @@ function useWalletBinding(options = {}) {
44714
44979
  resumeStream,
44715
44980
  retain,
44716
44981
  revokeNotionAccess,
44982
+ saveAppFile,
44983
+ saveSavedTool,
44717
44984
  saveSetting,
44718
44985
  savedToolToStored,
44719
44986
  scoreProfileSalience,
@@ -44726,6 +44993,7 @@ function useWalletBinding(options = {}) {
44726
44993
  searchMediaOp,
44727
44994
  searchMessagesOp,
44728
44995
  searchVaultMemories,
44996
+ seedAppFilesToVault,
44729
44997
  seedEncryptionKeys,
44730
44998
  selectServerToolsForPrompt,
44731
44999
  serializeJsx,
@@ -2798,7 +2798,7 @@ type ApiType = "auto" | "responses" | "completions";
2798
2798
  */
2799
2799
  type ApiResponse = LlmapiResponseResponse | LlmapiChatCompletionResponse;
2800
2800
 
2801
- type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links" | "setting";
2801
+ type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links" | "setting" | "app_file" | "saved_tool";
2802
2802
  type ChatJson = null | boolean | number | string | ChatJson[] | {
2803
2803
  [key: string]: ChatJson;
2804
2804
  };
@@ -2932,6 +2932,8 @@ interface ChatStore {
2932
2932
  }): Promise<ChatChanges>;
2933
2933
  search(embedding: readonly number[], options?: ChatSearchOptions): Promise<ChatSearchHit[]>;
2934
2934
  deleteAll(signal?: AbortSignal): Promise<number>;
2935
+ /** A keyed hash vault cannot reproduce, for record ids derived from private names. */
2936
+ sealedId?(value: string): Promise<string>;
2935
2937
  attachments: ChatAttachments;
2936
2938
  }
2937
2939
  interface RemoteChatStoreOptions {
@@ -2940,6 +2942,7 @@ interface RemoteChatStoreOptions {
2940
2942
  keyId: string;
2941
2943
  encrypt: (plaintext: string) => Promise<string>;
2942
2944
  decrypt: (ciphertext: string) => Promise<string>;
2945
+ hashTopic?: (normalized: string) => Promise<string>;
2943
2946
  fetch?: typeof globalThis.fetch;
2944
2947
  timeoutMs?: number;
2945
2948
  signal?: AbortSignal;
@@ -9466,6 +9469,54 @@ declare function markAnumaRead(store: ChatStore, sortKey: number, options?: {
9466
9469
  /** Counts Anuma turns the user has not read: assistant turns above both the read marker and the user's latest message. */
9467
9470
  declare function countUnreadAnumaTurns(messages: readonly Pick<StoredMessage, "messageId" | "role" | "anuma" | "uniqueId">[], lastReadSortKey: number): number;
9468
9471
 
9472
+ interface AppFile$1 {
9473
+ conversationId: string;
9474
+ path: string;
9475
+ content: string;
9476
+ version: number;
9477
+ createdAt: number;
9478
+ updatedAt: number;
9479
+ }
9480
+ interface SavedToolData {
9481
+ name: string;
9482
+ displayName: string;
9483
+ description: string;
9484
+ parameters: string;
9485
+ html: string;
9486
+ conversationId: string | null;
9487
+ }
9488
+ interface SavedTool$1 extends SavedToolData {
9489
+ id: string;
9490
+ version: number;
9491
+ createdAt: number;
9492
+ updatedAt: number;
9493
+ }
9494
+ /** The vault record id of a conversation's file: a keyed hash, so vault cannot tell the path. */
9495
+ declare function appFileId(store: Pick<ChatStore, "sealedId">, conversationId: string, path: string): Promise<string>;
9496
+ /** Every live file of one conversation. */
9497
+ declare function listAppFiles(store: ChatStore, conversationId: string, signal?: AbortSignal): Promise<AppFile$1[]>;
9498
+ interface AppFileIndex {
9499
+ /** Every live file of every conversation, fetching only what changed since the last call. */
9500
+ list(signal?: AbortSignal): Promise<AppFile$1[]>;
9501
+ }
9502
+ /** Keeps every app file of the account current from the changes feed. */
9503
+ declare function createAppFileIndex(store: ChatStore): AppFileIndex;
9504
+ /** Every live file of every conversation, read from the changes feed. */
9505
+ declare function listEveryAppFile(store: ChatStore, signal?: AbortSignal): Promise<AppFile$1[]>;
9506
+ /** One conversation file, or null when vault holds none at that path. */
9507
+ declare function getAppFile(store: ChatStore, conversationId: string, path: string, signal?: AbortSignal): Promise<AppFile$1 | null>;
9508
+ /** Creates or replaces a conversation file; the last save of a path wins across devices. */
9509
+ declare function saveAppFile(store: ChatStore, file: {
9510
+ conversationId: string;
9511
+ path: string;
9512
+ content: string;
9513
+ }, signal?: AbortSignal): Promise<AppFile$1>;
9514
+ declare function deleteAppFile(store: ChatStore, conversationId: string, path: string, signal?: AbortSignal): Promise<void>;
9515
+ declare function loadSavedTools(store: ChatStore, signal?: AbortSignal): Promise<SavedTool$1[]>;
9516
+ /** Creates or replaces a saved tool; the last save wins across devices. */
9517
+ declare function saveSavedTool(store: ChatStore, id: string, tool: SavedToolData, signal?: AbortSignal): Promise<SavedTool$1>;
9518
+ declare function deleteSavedTool(store: ChatStore, id: string, signal?: AbortSignal): Promise<void>;
9519
+
9469
9520
  interface ChatMigrationOptions {
9470
9521
  /** The device's local chat database. */
9471
9522
  database: Database;
@@ -9513,6 +9564,20 @@ declare function migrateChatsToRemote(options: ChatMigrationOptions): Promise<Ch
9513
9564
  /** Connect to owner-scoped server storage using the account's canonical device-held cipher. */
9514
9565
  declare function createRemoteChatStore(options: RemoteChatStoreOptions): Promise<ChatStore>;
9515
9566
 
9567
+ interface AppFileSeedResult {
9568
+ appFiles: number;
9569
+ savedTools: number;
9570
+ /** Files of conversations vault does not hold, left on the device. */
9571
+ orphaned: number;
9572
+ /** Files too large for one vault record, left on the device. */
9573
+ tooLarge: number;
9574
+ }
9575
+ /**
9576
+ * Uploads this device's app files and saved tools that vault lacks or holds an older edit of,
9577
+ * keeping each one's own edit time so the newest copy across devices wins.
9578
+ */
9579
+ declare function seedAppFilesToVault(database: Database, store: ChatStore, signal?: AbortSignal): Promise<AppFileSeedResult>;
9580
+
9516
9581
  interface Setting {
9517
9582
  section: string;
9518
9583
  data: {
@@ -16514,4 +16579,4 @@ type UseWalletBindingResult = {
16514
16579
  */
16515
16580
  declare function useWalletBinding(options?: UseWalletBindingOptions): UseWalletBindingResult;
16516
16581
 
16517
- export { ANUMA_CONVERSATION_ID, type ActiveStream, Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, type AnumaTurn, type AnumaTurnOrigin, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, type ChatAccount, type ChatAccountState, type ChatAttachment, type ChatAttachments, type ChatBackend, type ChatBackendFactory, type ChatBackendSigner, type ChatCacheStorage, type ChatChanges, type ChatChunkSearchOptions, Conversation as ChatConversation, type ChatImport, type ChatJson, type ChatListOptions, Message as ChatMessage, type ChatMigrationOptions, type ChatMigrationProgress, type ChatMigrationResult, type ChatMigrationSkip, type ChatOutboxLocks, type ChatOutboxStorage, type ChatPage, type ChatPresignedUrl, type ChatRecord, type ChatRecordKind, type ChatRef, type ChatRevision, type ChatRole, type ChatSearchHit, type ChatSearchOptions, type ChatSnapshot, type ChatStorageAdapter, type ChatStorageObservable, type ChatStore, ChatStoreError, type ChatWrite, type ChunkSearchResult, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, 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 CreateSelectPaymentWalletToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, 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 DurableAutoExtractorOptions, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, INTERNAL_FLOW_MARKER, type IconProps, type ImageProps, type InboxDeliveryResult, type InboxItem, type InboxPlaintext, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type LocalMessageAttachment, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCounts, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageAttachmentMigrationOptions, type MessageAttachmentMigrationResult, 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 PaymentWallet, 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 PortalLlmFailure, type PortalLlmFailureReason, 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 RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RemoteChatStoreOptions, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RemoteMemoryTopic, type RemoteMemoryWorkKind, type RemoteMemoryWorkLease, type RemoteMemoryWorkPersistence, type RemoteTopicPersistence, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, 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 SelectPaymentWalletResult, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type Setting, 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 StreamMeta, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, 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 TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, 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 UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, 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 VaultAttachmentCache, type VaultAttachmentJournal, type VaultAttachmentOwner, type VaultAttachmentRef, type VaultAttachmentUploadOptions, type VaultAttachments, type VaultAttachmentsOptions, type VaultCandidateKey, type VaultChatActivity, type VaultChatBackend, type VaultChatBackendOptions, type VaultChatEvent, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultInbox, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, type WriteFailureReason, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, anumaLastReadSortKey, anumaTurnContent, appFileToStored, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearConversationMemoriesOp, clearEncryptionKey, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, countUnreadAnumaTurns, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteChatStore, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSavedToolOp, createSelectPaymentWalletTool, createServerToolsFilter, createStockPricePreProcessor, createVaultAttachments, createVaultChatBackend, createVaultEmbeddingCache, createVaultFolderOp, createVaultInbox, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, decryptMessageEmbeddingFields, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, encryptToolCallEventsOp, ensureAnumaConversation, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportInboxPublicKey, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getEntitiesByMemoryIdsOp, 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, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, listActiveStreams, loadSettings, localChatBackend, markAnumaRead, maskScopedEmbeddingCache, maxVaultAttachmentBytes, mediaToStored, memoryCipher, migrateChatsToRemote, migrateDisplayResult, migrateMemoriesToRemote, migrateMessageAttachments, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, openInboxItem, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, primaryTopic, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readAnumaTurn, readEncryptedFile, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeNotionAccess, saveSetting, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, stampTopicsExtractedAtOp, startNotionAuth, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useEncryption, useExportPdf, useFiles, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, vaultAttachmentRefs, vaultChatBackend, verifyMemoriesForPublish, walk, webPlatformStorage, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };
16582
+ export { ANUMA_CONVERSATION_ID, type ActiveStream, Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, type AnumaTurn, type AnumaTurnOrigin, type AppFile$1 as AppFile, type AppFileIndex, AppFile as AppFileModel, type AppFileOperationsContext, type AppFileSeedResult, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, type ChatAccount, type ChatAccountState, type ChatAttachment, type ChatAttachments, type ChatBackend, type ChatBackendFactory, type ChatBackendSigner, type ChatCacheStorage, type ChatChanges, type ChatChunkSearchOptions, Conversation as ChatConversation, type ChatImport, type ChatJson, type ChatListOptions, Message as ChatMessage, type ChatMigrationOptions, type ChatMigrationProgress, type ChatMigrationResult, type ChatMigrationSkip, type ChatOutboxLocks, type ChatOutboxStorage, type ChatPage, type ChatPresignedUrl, type ChatRecord, type ChatRecordKind, type ChatRef, type ChatRevision, type ChatRole, type ChatSearchHit, type ChatSearchOptions, type ChatSnapshot, type ChatStorageAdapter, type ChatStorageObservable, type ChatStore, ChatStoreError, type ChatWrite, type ChunkSearchResult, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, 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 CreateSelectPaymentWalletToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, 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 DurableAutoExtractorOptions, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, INTERNAL_FLOW_MARKER, type IconProps, type ImageProps, type InboxDeliveryResult, type InboxItem, type InboxPlaintext, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type LocalMessageAttachment, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCounts, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageAttachmentMigrationOptions, type MessageAttachmentMigrationResult, 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 PaymentWallet, 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 PortalLlmFailure, type PortalLlmFailureReason, 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 RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RemoteChatStoreOptions, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RemoteMemoryTopic, type RemoteMemoryWorkKind, type RemoteMemoryWorkLease, type RemoteMemoryWorkPersistence, type RemoteTopicPersistence, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, type SavedTool$1 as SavedTool, type SavedToolData, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectPaymentWalletResult, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type Setting, 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 StreamMeta, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, 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 TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, 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 UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, 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 VaultAttachmentCache, type VaultAttachmentJournal, type VaultAttachmentOwner, type VaultAttachmentRef, type VaultAttachmentUploadOptions, type VaultAttachments, type VaultAttachmentsOptions, type VaultCandidateKey, type VaultChatActivity, type VaultChatBackend, type VaultChatBackendOptions, type VaultChatEvent, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultInbox, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, type WriteFailureReason, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, anumaLastReadSortKey, anumaTurnContent, appFileId, appFileToStored, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearConversationMemoriesOp, clearEncryptionKey, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, countUnreadAnumaTurns, createAppFileIndex, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteChatStore, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSavedToolOp, createSelectPaymentWalletTool, createServerToolsFilter, createStockPricePreProcessor, createVaultAttachments, createVaultChatBackend, createVaultEmbeddingCache, createVaultFolderOp, createVaultInbox, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, decryptMessageEmbeddingFields, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFile, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedTool, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, encryptToolCallEventsOp, ensureAnumaConversation, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportInboxPublicKey, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFile, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getEntitiesByMemoryIdsOp, 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, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, listActiveStreams, listAppFiles, listEveryAppFile, loadSavedTools, loadSettings, localChatBackend, markAnumaRead, maskScopedEmbeddingCache, maxVaultAttachmentBytes, mediaToStored, memoryCipher, migrateChatsToRemote, migrateDisplayResult, migrateMemoriesToRemote, migrateMessageAttachments, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, openInboxItem, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, primaryTopic, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readAnumaTurn, readEncryptedFile, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeNotionAccess, saveAppFile, saveSavedTool, saveSetting, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedAppFilesToVault, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, stampTopicsExtractedAtOp, startNotionAuth, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useEncryption, useExportPdf, useFiles, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, vaultAttachmentRefs, vaultChatBackend, verifyMemoriesForPublish, walk, webPlatformStorage, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };