@anuma/sdk 6.27.0 → 6.27.2

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.
@@ -1591,6 +1591,7 @@ __export(index_exports, {
1591
1591
  deleteVaultFolderOp: () => deleteVaultFolderOp,
1592
1592
  deleteVaultMemoryOp: () => deleteVaultMemoryOp,
1593
1593
  dequantizeEmbedding: () => dequantizeEmbedding,
1594
+ deriveKeyFromSignatureBytes: () => deriveKeyFromSignatureBytes,
1594
1595
  eagerEmbedContent: () => eagerEmbedContent,
1595
1596
  embedAllMessages: () => embedAllMessages,
1596
1597
  embedMessage: () => embedMessage,
@@ -2244,11 +2245,32 @@ function clearAllEncryptionState() {
2244
2245
  function clearAllEncryptionKeys() {
2245
2246
  clearAllEncryptionState();
2246
2247
  }
2248
+ function hexNibble(code) {
2249
+ if (code >= 48 && code <= 57) return code - 48;
2250
+ if (code >= 65 && code <= 70) return code - 55;
2251
+ if (code >= 97 && code <= 102) return code - 87;
2252
+ return -1;
2253
+ }
2247
2254
  function hexToBytes(hex) {
2255
+ if (typeof hex !== "string") {
2256
+ throw new TypeError(
2257
+ "hexToBytes: expected a hex string. Pass raw signature bytes to deriveKeyFromSignatureBytes instead of stringifying them."
2258
+ );
2259
+ }
2248
2260
  const cleanHex = hex.startsWith("0x") ? hex.slice(2) : hex;
2261
+ if (cleanHex.length === 0 || cleanHex.length % 2 !== 0) {
2262
+ throw new Error(
2263
+ `hexToBytes: invalid hex string (expected a non-empty even length, got ${cleanHex.length})`
2264
+ );
2265
+ }
2249
2266
  const bytes = new Uint8Array(cleanHex.length / 2);
2250
2267
  for (let i = 0; i < cleanHex.length; i += 2) {
2251
- bytes[i / 2] = parseInt(cleanHex.slice(i, i + 2), 16);
2268
+ const hi = hexNibble(cleanHex.charCodeAt(i));
2269
+ const lo = hexNibble(cleanHex.charCodeAt(i + 1));
2270
+ if (hi < 0 || lo < 0) {
2271
+ throw new Error(`hexToBytes: invalid hex string (non-hex character at index ${i})`);
2272
+ }
2273
+ bytes[i / 2] = hi << 4 | lo;
2252
2274
  }
2253
2275
  return bytes;
2254
2276
  }
@@ -2260,15 +2282,12 @@ var SHARED_TEXT_DECODER = new TextDecoder();
2260
2282
  function isValidWalletAddress(address) {
2261
2283
  return /^0x[a-fA-F0-9]{40}$/.test(address);
2262
2284
  }
2263
- async function deriveKeyFromSignature(signature) {
2264
- const sigBytes = hexToBytes(signature);
2265
- const hashBuffer = await crypto.subtle.digest("SHA-256", sigBytes.buffer);
2266
- const hashBytes = new Uint8Array(hashBuffer);
2267
- return bytesToHex(hashBytes);
2268
- }
2269
- async function deriveKeyFromSignatureV3(signature) {
2270
- const sigBytes = hexToBytes(signature);
2271
- const ikm = await crypto.subtle.digest("SHA-256", sigBytes.buffer);
2285
+ var AES_GCM_V3_INFO = "anuma-sdk-aes-gcm-v3";
2286
+ var AES_GCM_V4_INFO = "anuma-sdk-aes-gcm-v4";
2287
+ var MIN_SIGNATURE_BYTES = 64;
2288
+ async function deriveHkdfAesKeyHex(signatureBytes, info) {
2289
+ const sigBytes = new Uint8Array(signatureBytes);
2290
+ const ikm = await crypto.subtle.digest("SHA-256", sigBytes);
2272
2291
  const hkdfKey = await crypto.subtle.importKey("raw", ikm, { name: "HKDF" }, false, [
2273
2292
  "deriveBits"
2274
2293
  ]);
@@ -2278,13 +2297,32 @@ async function deriveKeyFromSignatureV3(signature) {
2278
2297
  hash: "SHA-256",
2279
2298
  salt: new Uint8Array(32),
2280
2299
  // Zero salt (HKDF spec: uses hash-length zero buffer)
2281
- info: SHARED_TEXT_ENCODER.encode("anuma-sdk-aes-gcm-v3")
2300
+ info: SHARED_TEXT_ENCODER.encode(info)
2282
2301
  },
2283
2302
  hkdfKey,
2284
2303
  256
2285
2304
  );
2286
2305
  return bytesToHex(new Uint8Array(derivedBits));
2287
2306
  }
2307
+ async function deriveKeyFromSignature(signature) {
2308
+ const sigBytes = hexToBytes(signature);
2309
+ const hashBuffer = await crypto.subtle.digest("SHA-256", sigBytes.buffer);
2310
+ return bytesToHex(new Uint8Array(hashBuffer));
2311
+ }
2312
+ async function deriveKeyFromSignatureV3(signature) {
2313
+ return deriveHkdfAesKeyHex(hexToBytes(signature), AES_GCM_V3_INFO);
2314
+ }
2315
+ async function deriveKeyFromSignatureBytes(signature) {
2316
+ if (!(signature instanceof Uint8Array)) {
2317
+ throw new TypeError("deriveKeyFromSignatureBytes: expected a Uint8Array signature");
2318
+ }
2319
+ if (signature.byteLength < MIN_SIGNATURE_BYTES) {
2320
+ throw new Error(
2321
+ `deriveKeyFromSignatureBytes: signature must be at least ${MIN_SIGNATURE_BYTES} bytes, got ${signature.byteLength}`
2322
+ );
2323
+ }
2324
+ return deriveHkdfAesKeyHex(signature, AES_GCM_V4_INFO);
2325
+ }
2288
2326
  function getStoredKeyPair(address) {
2289
2327
  return keyPairStore.get(address) ?? null;
2290
2328
  }
@@ -2302,8 +2340,9 @@ async function deriveKeyPairFromSignature(signature, address) {
2302
2340
  {
2303
2341
  name: "HKDF",
2304
2342
  hash: "SHA-256",
2343
+ // EVM addresses are case-insensitive. Base58 is not — this salt stays
2344
+ // behind the EVM address gate in requestKeyPair.
2305
2345
  salt: SHARED_TEXT_ENCODER.encode(address.toLowerCase()),
2306
- // Wallet address as salt
2307
2346
  info: SHARED_TEXT_ENCODER.encode("ECDH-P256-KeyPair")
2308
2347
  // Context info
2309
2348
  },
@@ -5844,6 +5883,116 @@ async function chunkAndEmbedAllMessages(ctx, options, filter) {
5844
5883
 
5845
5884
  // src/lib/chat/toolLoop.ts
5846
5885
  init_redactor();
5886
+
5887
+ // src/lib/storage/mcpImages.ts
5888
+ var IMAGE_TOOL_NAMES = /* @__PURE__ */ new Set([
5889
+ "AnumaMediaMCP-anuma_create_image",
5890
+ "anuma_create_image",
5891
+ // Deprecated anuma-image-mcp tools, retained so images in already-stored
5892
+ // conversations still re-materialize on replay.
5893
+ "AnumaImageMCP-generate_cloud_image",
5894
+ "AnumaImageMCP-edit_cloud_image",
5895
+ "generate_cloud_image",
5896
+ "edit_cloud_image"
5897
+ ]);
5898
+ function toolOutputForModel(name, output) {
5899
+ if (!name || !IMAGE_TOOL_NAMES.has(name)) return output;
5900
+ try {
5901
+ const {
5902
+ imageUrl: _imageUrl,
5903
+ url: _url,
5904
+ output_images: _outputImages,
5905
+ ...rest
5906
+ } = JSON.parse(output);
5907
+ return JSON.stringify(rest);
5908
+ } catch {
5909
+ return output;
5910
+ }
5911
+ }
5912
+ var VIDEO_TOOL_NAMES = /* @__PURE__ */ new Set([
5913
+ "AnumaMediaMCP-anuma_create_video",
5914
+ "AnumaFalMCP-fal_generate_video",
5915
+ "anuma_create_video",
5916
+ "fal_generate_video"
5917
+ ]);
5918
+ var VIDEO_EXTENSIONS = ["mp4", "webm", "mov"];
5919
+ var VIDEO_EXTENSION_RE = new RegExp(`\\.(${VIDEO_EXTENSIONS.join("|")})(?:[?#]|$)`, "i");
5920
+ function videoExtensionOf(value) {
5921
+ return value?.match(VIDEO_EXTENSION_RE)?.[1]?.toLowerCase() ?? null;
5922
+ }
5923
+ function classifyUrl(url) {
5924
+ return VIDEO_EXTENSION_RE.test(url) ? "video" : "image";
5925
+ }
5926
+ function extractMCPImageUrls(content, toolCallEvents, mcpR2Domain) {
5927
+ const urls = [];
5928
+ if (toolCallEvents && toolCallEvents.length > 0) {
5929
+ for (const event of toolCallEvents) {
5930
+ if (!event.name) continue;
5931
+ if (IMAGE_TOOL_NAMES.has(event.name)) {
5932
+ try {
5933
+ const output = JSON.parse(event.output || "{}");
5934
+ const model = output.model || "image";
5935
+ const imageUrls = [
5936
+ ...new Set(
5937
+ [
5938
+ ...output.output_images?.map((i) => i.url) ?? [],
5939
+ output.imageUrl,
5940
+ output.url
5941
+ ].filter((u) => Boolean(u))
5942
+ )
5943
+ ];
5944
+ for (const url of imageUrls) {
5945
+ urls.push({ url, model, mediaType: "image" });
5946
+ }
5947
+ } catch {
5948
+ }
5949
+ } else if (VIDEO_TOOL_NAMES.has(event.name)) {
5950
+ try {
5951
+ const output = JSON.parse(event.output || "{}");
5952
+ const model = output.model || "video";
5953
+ const videoUrls = [
5954
+ ...new Set(
5955
+ [
5956
+ ...output.videos?.map((v) => v.video_url) ?? [],
5957
+ output.videoUrl,
5958
+ output.url
5959
+ ].filter((u) => Boolean(u))
5960
+ )
5961
+ ];
5962
+ for (const url of videoUrls) {
5963
+ urls.push({ url, model, mediaType: "video" });
5964
+ }
5965
+ } catch {
5966
+ }
5967
+ }
5968
+ }
5969
+ }
5970
+ if (urls.length === 0 && content) {
5971
+ const escaped = mcpR2Domain.replace(/\./g, "\\.");
5972
+ const patterns = [
5973
+ new RegExp(`https://${escaped}[^\\s"'<>)\\]]+`, "gi"),
5974
+ // Require the proxy's <svc>/<token> shape (>=2 path segments after
5975
+ // /api/v1/media/) so a third-party URL that only shallowly contains
5976
+ // /api/v1/media/ isn't returned as a portal media asset.
5977
+ new RegExp(`https?://[^\\s"'<>)\\]]+/api/v1/media/[^/\\s"'<>)\\]]+/[^\\s"'<>)\\]]+`, "gi")
5978
+ ];
5979
+ const matches = patterns.flatMap((re) => content.match(re) ?? []);
5980
+ if (matches.length > 0) {
5981
+ const seen = /* @__PURE__ */ new Set();
5982
+ for (const url of matches) {
5983
+ const normalized = url.replace(/[)"'>\s]+$/, "");
5984
+ if (!seen.has(normalized)) {
5985
+ seen.add(normalized);
5986
+ const mediaType = classifyUrl(normalized);
5987
+ urls.push({ url: normalized, model: "image", mediaType });
5988
+ }
5989
+ }
5990
+ }
5991
+ }
5992
+ return urls;
5993
+ }
5994
+
5995
+ // src/lib/chat/toolLoop.ts
5847
5996
  init_endpointOverride();
5848
5997
 
5849
5998
  // src/lib/chat/runHooks.ts
@@ -7977,6 +8126,40 @@ function extractLastUserText(messages) {
7977
8126
  function isToolErrorResult(result) {
7978
8127
  return result !== null && typeof result === "object" && "error" in result && typeof result.error === "string";
7979
8128
  }
8129
+ function serverToolCallMessages(events, messages, skipIds) {
8130
+ const seen = new Set(skipIds);
8131
+ for (const m of messages) {
8132
+ if (m.tool_call_id) seen.add(m.tool_call_id);
8133
+ for (const tc of m.tool_calls ?? []) if (tc.id) seen.add(tc.id);
8134
+ }
8135
+ const executed = [];
8136
+ for (const event of events ?? []) {
8137
+ if (!event.id || event.output === void 0 || event.output === null || seen.has(event.id)) {
8138
+ continue;
8139
+ }
8140
+ seen.add(event.id);
8141
+ executed.push(event);
8142
+ }
8143
+ if (executed.length === 0) return [];
8144
+ return [
8145
+ {
8146
+ role: "assistant",
8147
+ content: void 0,
8148
+ tool_calls: executed.map((event) => ({
8149
+ id: event.id,
8150
+ type: "function",
8151
+ function: { name: event.name, arguments: event.arguments }
8152
+ }))
8153
+ },
8154
+ ...executed.map(
8155
+ (event) => ({
8156
+ role: "tool",
8157
+ tool_call_id: event.id,
8158
+ content: [{ type: "text", text: toolOutputForModel(event.name, event.output ?? "") }]
8159
+ })
8160
+ )
8161
+ ];
8162
+ }
7980
8163
  function getToolName(tool) {
7981
8164
  const func = tool.function;
7982
8165
  const nestedName = func?.name;
@@ -8746,7 +8929,14 @@ Executing tool: ${toolInfo}
8746
8929
  }
8747
8930
  }))
8748
8931
  };
8749
- const toolResultMessages = [assistantMessage];
8932
+ const toolResultMessages = [
8933
+ ...serverToolCallMessages(
8934
+ currentAccumulator.toolCallEvents,
8935
+ currentMessages,
8936
+ new Set(toolCallsToExecute.map((tc) => tc.id))
8937
+ ),
8938
+ assistantMessage
8939
+ ];
8750
8940
  for (const execResult of continueResults) {
8751
8941
  const resultContent = execResult.error ? `Error: ${execResult.error}` : safeJsonStringify(execResult.result);
8752
8942
  toolResultMessages.push({
@@ -11423,100 +11613,6 @@ function isSupportedMediaType(mimeType) {
11423
11613
  var import_watermelondb8 = require("@nozbe/watermelondb");
11424
11614
  init_logger();
11425
11615
 
11426
- // src/lib/storage/mcpImages.ts
11427
- var IMAGE_TOOL_NAMES = /* @__PURE__ */ new Set([
11428
- "AnumaMediaMCP-anuma_create_image",
11429
- "anuma_create_image",
11430
- // Deprecated anuma-image-mcp tools, retained so images in already-stored
11431
- // conversations still re-materialize on replay.
11432
- "AnumaImageMCP-generate_cloud_image",
11433
- "AnumaImageMCP-edit_cloud_image",
11434
- "generate_cloud_image",
11435
- "edit_cloud_image"
11436
- ]);
11437
- var VIDEO_TOOL_NAMES = /* @__PURE__ */ new Set([
11438
- "AnumaMediaMCP-anuma_create_video",
11439
- "AnumaFalMCP-fal_generate_video",
11440
- "anuma_create_video",
11441
- "fal_generate_video"
11442
- ]);
11443
- var VIDEO_EXTENSIONS = ["mp4", "webm", "mov"];
11444
- var VIDEO_EXTENSION_RE = new RegExp(`\\.(${VIDEO_EXTENSIONS.join("|")})(?:[?#]|$)`, "i");
11445
- function videoExtensionOf(value) {
11446
- return value?.match(VIDEO_EXTENSION_RE)?.[1]?.toLowerCase() ?? null;
11447
- }
11448
- function classifyUrl(url) {
11449
- return VIDEO_EXTENSION_RE.test(url) ? "video" : "image";
11450
- }
11451
- function extractMCPImageUrls(content, toolCallEvents, mcpR2Domain) {
11452
- const urls = [];
11453
- if (toolCallEvents && toolCallEvents.length > 0) {
11454
- for (const event of toolCallEvents) {
11455
- if (!event.name) continue;
11456
- if (IMAGE_TOOL_NAMES.has(event.name)) {
11457
- try {
11458
- const output = JSON.parse(event.output || "{}");
11459
- const model = output.model || "image";
11460
- const imageUrls = [
11461
- ...new Set(
11462
- [
11463
- ...output.output_images?.map((i) => i.url) ?? [],
11464
- output.imageUrl,
11465
- output.url
11466
- ].filter((u) => Boolean(u))
11467
- )
11468
- ];
11469
- for (const url of imageUrls) {
11470
- urls.push({ url, model, mediaType: "image" });
11471
- }
11472
- } catch {
11473
- }
11474
- } else if (VIDEO_TOOL_NAMES.has(event.name)) {
11475
- try {
11476
- const output = JSON.parse(event.output || "{}");
11477
- const model = output.model || "video";
11478
- const videoUrls = [
11479
- ...new Set(
11480
- [
11481
- ...output.videos?.map((v) => v.video_url) ?? [],
11482
- output.videoUrl,
11483
- output.url
11484
- ].filter((u) => Boolean(u))
11485
- )
11486
- ];
11487
- for (const url of videoUrls) {
11488
- urls.push({ url, model, mediaType: "video" });
11489
- }
11490
- } catch {
11491
- }
11492
- }
11493
- }
11494
- }
11495
- if (urls.length === 0 && content) {
11496
- const escaped = mcpR2Domain.replace(/\./g, "\\.");
11497
- const patterns = [
11498
- new RegExp(`https://${escaped}[^\\s"'<>)\\]]+`, "gi"),
11499
- // Require the proxy's <svc>/<token> shape (>=2 path segments after
11500
- // /api/v1/media/) so a third-party URL that only shallowly contains
11501
- // /api/v1/media/ isn't returned as a portal media asset.
11502
- new RegExp(`https?://[^\\s"'<>)\\]]+/api/v1/media/[^/\\s"'<>)\\]]+/[^\\s"'<>)\\]]+`, "gi")
11503
- ];
11504
- const matches = patterns.flatMap((re) => content.match(re) ?? []);
11505
- if (matches.length > 0) {
11506
- const seen = /* @__PURE__ */ new Set();
11507
- for (const url of matches) {
11508
- const normalized = url.replace(/[)"'>\s]+$/, "");
11509
- if (!seen.has(normalized)) {
11510
- seen.add(normalized);
11511
- const mediaType = classifyUrl(normalized);
11512
- urls.push({ url: normalized, model: "image", mediaType });
11513
- }
11514
- }
11515
- }
11516
- }
11517
- return urls;
11518
- }
11519
-
11520
11616
  // src/lib/storage/opfs.ts
11521
11617
  init_logger();
11522
11618
  var FILE_PLACEHOLDER_PREFIX = "__SDKFILE__";
@@ -23976,24 +24072,10 @@ async function storedToLlmapiMessage(stored, encryptionKey, resolveMediaByIds) {
23976
24072
  });
23977
24073
  for (const event of stored.toolCallEvents) {
23978
24074
  if (event.id && event.output !== void 0 && event.output !== null) {
23979
- let toolOutput = event.output;
23980
- if (event.name && IMAGE_TOOL_NAMES.has(event.name)) {
23981
- try {
23982
- const parsed = JSON.parse(toolOutput);
23983
- const {
23984
- imageUrl: _imageUrl,
23985
- url: _url,
23986
- output_images: _outputImages,
23987
- ...rest
23988
- } = parsed;
23989
- toolOutput = JSON.stringify(rest);
23990
- } catch {
23991
- }
23992
- }
23993
24075
  messages.push({
23994
24076
  role: "tool",
23995
24077
  tool_call_id: event.id,
23996
- content: [{ type: "text", text: toolOutput }]
24078
+ content: [{ type: "text", text: toolOutputForModel(event.name, event.output) }]
23997
24079
  });
23998
24080
  }
23999
24081
  }
@@ -36818,6 +36900,7 @@ function renderAnumaJsx(jsx3) {
36818
36900
  deleteVaultFolderOp,
36819
36901
  deleteVaultMemoryOp,
36820
36902
  dequantizeEmbedding,
36903
+ deriveKeyFromSignatureBytes,
36821
36904
  eagerEmbedContent,
36822
36905
  embedAllMessages,
36823
36906
  embedMessage,
@@ -3414,6 +3414,10 @@ declare function ChartCard({ data }: ChartCardProps): react_jsx_runtime.JSX.Elem
3414
3414
  * Encryption key version type.
3415
3415
  * - "v2": Legacy SHA-256 derived key (for reading enc:v2: data)
3416
3416
  * - "v3": HKDF derived key with domain separation (for new encryption)
3417
+ *
3418
+ * Raw signature bytes (Privy Solana `signMessage` returns a `Uint8Array`) are
3419
+ * not a stored version. Derive them with {@link deriveKeyFromSignatureBytes}.
3420
+ * {@link requestEncryptionKey} still derives v2 and v3 from a hex signature only.
3417
3421
  */
3418
3422
  type EncryptionKeyVersion = "v2" | "v3";
3419
3423
  /**
@@ -3483,6 +3487,25 @@ declare function clearAllEncryptionState(): void;
3483
3487
  * requests, and derived ECDH key pairs (both in-memory and persisted).
3484
3488
  */
3485
3489
  declare function clearAllEncryptionKeys(): void;
3490
+ /**
3491
+ * Derives the bytes-native AES key from a raw signature.
3492
+ *
3493
+ * Privy Solana `signMessage` returns a `Uint8Array`. Pass those bytes here.
3494
+ * The signature is never hex-encoded, base58-encoded, or passed through
3495
+ * `String()`. That string round-trip is what made {@link hexToBytes} store
3496
+ * zeros for every non-hex pair and yield a low-entropy AES key.
3497
+ *
3498
+ * This is the derivation for the next key version (`anuma-sdk-aes-gcm-v4`).
3499
+ * {@link requestEncryptionKey} does not install it; v2 and v3 stay on the
3500
+ * hex-string path so existing ciphertext keeps decrypting. The return value
3501
+ * is the same 64-char hex form the in-memory store already uses.
3502
+ *
3503
+ * @param signature - Raw signature bytes. Must be at least 64 bytes.
3504
+ * @returns 32-byte AES-GCM key as hex, without a `0x` prefix.
3505
+ * @throws Error when `signature` is shorter than 64 bytes.
3506
+ * @category Encryption
3507
+ */
3508
+ declare function deriveKeyFromSignatureBytes(signature: Uint8Array): Promise<string>;
3486
3509
  /**
3487
3510
  * Gets the encryption key from in-memory storage and imports it as a CryptoKey.
3488
3511
  * The key must have been previously requested via requestEncryptionKey.
@@ -3680,6 +3703,11 @@ interface SignMessageOptions {
3680
3703
  /**
3681
3704
  * Type for the signMessage function that client must provide.
3682
3705
  * This is typically from Privy's useSignMessage hook.
3706
+ *
3707
+ * The resolved value must be a hex signature (`0x`-prefixed or bare). A
3708
+ * non-hex string — including `String(uint8Array)` or a base58 signature —
3709
+ * throws from key derivation instead of becoming a zero-filled AES key.
3710
+ * Raw signature bytes go to {@link deriveKeyFromSignatureBytes}.
3683
3711
  */
3684
3712
  type SignMessageFn = (message: string, options?: SignMessageOptions) => Promise<string>;
3685
3713
  /**
@@ -16579,4 +16607,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
16579
16607
  */
16580
16608
  declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
16581
16609
 
16582
- 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, CHUNKS_DISCARDED_ORIGIN, 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 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 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, type DurableAutoExtractorOptions, 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, type ExtractionFunnel, 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 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, INTERNAL_FLOW_MARKER, 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 ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 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 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 StreamSmoothingConfig, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, 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 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 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 VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, 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, 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, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, 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, isAttachedFilesText, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isEncrypted, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, 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, shouldRecallMemory, 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, withInternalFlowMarker, writeEncryptedFile };
16610
+ 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, CHUNKS_DISCARDED_ORIGIN, 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 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 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, type DurableAutoExtractorOptions, 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, type ExtractionFunnel, 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 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, INTERNAL_FLOW_MARKER, 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 ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 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 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 StreamSmoothingConfig, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, 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 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 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 VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, 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, 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, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, 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, isAttachedFilesText, isCalendarCallback, isDegradedTopicSkip, isDriveCallback, isEncrypted, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, 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, shouldRecallMemory, 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, withInternalFlowMarker, writeEncryptedFile };