@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.
- package/dist/expo/index.cjs +125 -42
- package/dist/expo/index.d.mts +29 -1
- package/dist/expo/index.d.ts +29 -1
- package/dist/expo/index.mjs +122 -42
- package/dist/index.cjs +22 -1
- package/dist/index.mjs +22 -1
- package/dist/memory/context.d.mts +5 -0
- package/dist/memory/context.d.ts +5 -0
- package/dist/react/index.cjs +205 -122
- package/dist/react/index.d.mts +29 -1
- package/dist/react/index.d.ts +29 -1
- package/dist/react/index.mjs +202 -122
- package/dist/server/index.cjs +118 -13
- package/dist/server/index.d.mts +29 -1
- package/dist/server/index.d.ts +29 -1
- package/dist/server/index.mjs +117 -13
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -1510,6 +1510,7 @@ __export(index_exports, {
|
|
|
1510
1510
|
deleteVaultFolderOp: () => deleteVaultFolderOp,
|
|
1511
1511
|
deleteVaultMemoryOp: () => deleteVaultMemoryOp,
|
|
1512
1512
|
dequantizeEmbedding: () => dequantizeEmbedding,
|
|
1513
|
+
deriveKeyFromSignatureBytes: () => deriveKeyFromSignatureBytes,
|
|
1513
1514
|
discoverNotionOAuthEndpoints: () => discoverNotionOAuthEndpoints,
|
|
1514
1515
|
eagerEmbedContent: () => eagerEmbedContent,
|
|
1515
1516
|
embedAllMessages: () => embedAllMessages,
|
|
@@ -1853,11 +1854,32 @@ function clearAllEncryptionState() {
|
|
|
1853
1854
|
function clearAllEncryptionKeys() {
|
|
1854
1855
|
clearAllEncryptionState();
|
|
1855
1856
|
}
|
|
1857
|
+
function hexNibble(code) {
|
|
1858
|
+
if (code >= 48 && code <= 57) return code - 48;
|
|
1859
|
+
if (code >= 65 && code <= 70) return code - 55;
|
|
1860
|
+
if (code >= 97 && code <= 102) return code - 87;
|
|
1861
|
+
return -1;
|
|
1862
|
+
}
|
|
1856
1863
|
function hexToBytes(hex) {
|
|
1864
|
+
if (typeof hex !== "string") {
|
|
1865
|
+
throw new TypeError(
|
|
1866
|
+
"hexToBytes: expected a hex string. Pass raw signature bytes to deriveKeyFromSignatureBytes instead of stringifying them."
|
|
1867
|
+
);
|
|
1868
|
+
}
|
|
1857
1869
|
const cleanHex = hex.startsWith("0x") ? hex.slice(2) : hex;
|
|
1870
|
+
if (cleanHex.length === 0 || cleanHex.length % 2 !== 0) {
|
|
1871
|
+
throw new Error(
|
|
1872
|
+
`hexToBytes: invalid hex string (expected a non-empty even length, got ${cleanHex.length})`
|
|
1873
|
+
);
|
|
1874
|
+
}
|
|
1858
1875
|
const bytes = new Uint8Array(cleanHex.length / 2);
|
|
1859
1876
|
for (let i = 0; i < cleanHex.length; i += 2) {
|
|
1860
|
-
|
|
1877
|
+
const hi = hexNibble(cleanHex.charCodeAt(i));
|
|
1878
|
+
const lo = hexNibble(cleanHex.charCodeAt(i + 1));
|
|
1879
|
+
if (hi < 0 || lo < 0) {
|
|
1880
|
+
throw new Error(`hexToBytes: invalid hex string (non-hex character at index ${i})`);
|
|
1881
|
+
}
|
|
1882
|
+
bytes[i / 2] = hi << 4 | lo;
|
|
1861
1883
|
}
|
|
1862
1884
|
return bytes;
|
|
1863
1885
|
}
|
|
@@ -1869,15 +1891,12 @@ var SHARED_TEXT_DECODER = new TextDecoder();
|
|
|
1869
1891
|
function isValidWalletAddress(address) {
|
|
1870
1892
|
return /^0x[a-fA-F0-9]{40}$/.test(address);
|
|
1871
1893
|
}
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
async function deriveKeyFromSignatureV3(signature) {
|
|
1879
|
-
const sigBytes = hexToBytes(signature);
|
|
1880
|
-
const ikm = await crypto.subtle.digest("SHA-256", sigBytes.buffer);
|
|
1894
|
+
var AES_GCM_V3_INFO = "anuma-sdk-aes-gcm-v3";
|
|
1895
|
+
var AES_GCM_V4_INFO = "anuma-sdk-aes-gcm-v4";
|
|
1896
|
+
var MIN_SIGNATURE_BYTES = 64;
|
|
1897
|
+
async function deriveHkdfAesKeyHex(signatureBytes, info) {
|
|
1898
|
+
const sigBytes = new Uint8Array(signatureBytes);
|
|
1899
|
+
const ikm = await crypto.subtle.digest("SHA-256", sigBytes);
|
|
1881
1900
|
const hkdfKey = await crypto.subtle.importKey("raw", ikm, { name: "HKDF" }, false, [
|
|
1882
1901
|
"deriveBits"
|
|
1883
1902
|
]);
|
|
@@ -1887,13 +1906,32 @@ async function deriveKeyFromSignatureV3(signature) {
|
|
|
1887
1906
|
hash: "SHA-256",
|
|
1888
1907
|
salt: new Uint8Array(32),
|
|
1889
1908
|
// Zero salt (HKDF spec: uses hash-length zero buffer)
|
|
1890
|
-
info: SHARED_TEXT_ENCODER.encode(
|
|
1909
|
+
info: SHARED_TEXT_ENCODER.encode(info)
|
|
1891
1910
|
},
|
|
1892
1911
|
hkdfKey,
|
|
1893
1912
|
256
|
|
1894
1913
|
);
|
|
1895
1914
|
return bytesToHex(new Uint8Array(derivedBits));
|
|
1896
1915
|
}
|
|
1916
|
+
async function deriveKeyFromSignature(signature) {
|
|
1917
|
+
const sigBytes = hexToBytes(signature);
|
|
1918
|
+
const hashBuffer = await crypto.subtle.digest("SHA-256", sigBytes.buffer);
|
|
1919
|
+
return bytesToHex(new Uint8Array(hashBuffer));
|
|
1920
|
+
}
|
|
1921
|
+
async function deriveKeyFromSignatureV3(signature) {
|
|
1922
|
+
return deriveHkdfAesKeyHex(hexToBytes(signature), AES_GCM_V3_INFO);
|
|
1923
|
+
}
|
|
1924
|
+
async function deriveKeyFromSignatureBytes(signature) {
|
|
1925
|
+
if (!(signature instanceof Uint8Array)) {
|
|
1926
|
+
throw new TypeError("deriveKeyFromSignatureBytes: expected a Uint8Array signature");
|
|
1927
|
+
}
|
|
1928
|
+
if (signature.byteLength < MIN_SIGNATURE_BYTES) {
|
|
1929
|
+
throw new Error(
|
|
1930
|
+
`deriveKeyFromSignatureBytes: signature must be at least ${MIN_SIGNATURE_BYTES} bytes, got ${signature.byteLength}`
|
|
1931
|
+
);
|
|
1932
|
+
}
|
|
1933
|
+
return deriveHkdfAesKeyHex(signature, AES_GCM_V4_INFO);
|
|
1934
|
+
}
|
|
1897
1935
|
function getStoredKeyPair(address) {
|
|
1898
1936
|
return keyPairStore.get(address) ?? null;
|
|
1899
1937
|
}
|
|
@@ -1911,8 +1949,9 @@ async function deriveKeyPairFromSignature(signature, address) {
|
|
|
1911
1949
|
{
|
|
1912
1950
|
name: "HKDF",
|
|
1913
1951
|
hash: "SHA-256",
|
|
1952
|
+
// EVM addresses are case-insensitive. Base58 is not — this salt stays
|
|
1953
|
+
// behind the EVM address gate in requestKeyPair.
|
|
1914
1954
|
salt: SHARED_TEXT_ENCODER.encode(address.toLowerCase()),
|
|
1915
|
-
// Wallet address as salt
|
|
1916
1955
|
info: SHARED_TEXT_ENCODER.encode("ECDH-P256-KeyPair")
|
|
1917
1956
|
// Context info
|
|
1918
1957
|
},
|
|
@@ -5534,6 +5573,36 @@ init_clientConfig();
|
|
|
5534
5573
|
// src/lib/chat/toolLoop.ts
|
|
5535
5574
|
init_clientConfig();
|
|
5536
5575
|
init_redactor();
|
|
5576
|
+
|
|
5577
|
+
// src/lib/storage/mcpImages.ts
|
|
5578
|
+
var IMAGE_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
5579
|
+
"AnumaMediaMCP-anuma_create_image",
|
|
5580
|
+
"anuma_create_image",
|
|
5581
|
+
// Deprecated anuma-image-mcp tools, retained so images in already-stored
|
|
5582
|
+
// conversations still re-materialize on replay.
|
|
5583
|
+
"AnumaImageMCP-generate_cloud_image",
|
|
5584
|
+
"AnumaImageMCP-edit_cloud_image",
|
|
5585
|
+
"generate_cloud_image",
|
|
5586
|
+
"edit_cloud_image"
|
|
5587
|
+
]);
|
|
5588
|
+
function toolOutputForModel(name, output) {
|
|
5589
|
+
if (!name || !IMAGE_TOOL_NAMES.has(name)) return output;
|
|
5590
|
+
try {
|
|
5591
|
+
const {
|
|
5592
|
+
imageUrl: _imageUrl,
|
|
5593
|
+
url: _url,
|
|
5594
|
+
output_images: _outputImages,
|
|
5595
|
+
...rest
|
|
5596
|
+
} = JSON.parse(output);
|
|
5597
|
+
return JSON.stringify(rest);
|
|
5598
|
+
} catch {
|
|
5599
|
+
return output;
|
|
5600
|
+
}
|
|
5601
|
+
}
|
|
5602
|
+
var VIDEO_EXTENSIONS = ["mp4", "webm", "mov"];
|
|
5603
|
+
var VIDEO_EXTENSION_RE = new RegExp(`\\.(${VIDEO_EXTENSIONS.join("|")})(?:[?#]|$)`, "i");
|
|
5604
|
+
|
|
5605
|
+
// src/lib/chat/toolLoop.ts
|
|
5537
5606
|
init_endpointOverride();
|
|
5538
5607
|
|
|
5539
5608
|
// src/lib/chat/runHooks.ts
|
|
@@ -7667,6 +7736,40 @@ function extractLastUserText(messages) {
|
|
|
7667
7736
|
function isToolErrorResult(result) {
|
|
7668
7737
|
return result !== null && typeof result === "object" && "error" in result && typeof result.error === "string";
|
|
7669
7738
|
}
|
|
7739
|
+
function serverToolCallMessages(events, messages, skipIds) {
|
|
7740
|
+
const seen = new Set(skipIds);
|
|
7741
|
+
for (const m of messages) {
|
|
7742
|
+
if (m.tool_call_id) seen.add(m.tool_call_id);
|
|
7743
|
+
for (const tc of m.tool_calls ?? []) if (tc.id) seen.add(tc.id);
|
|
7744
|
+
}
|
|
7745
|
+
const executed = [];
|
|
7746
|
+
for (const event of events ?? []) {
|
|
7747
|
+
if (!event.id || event.output === void 0 || event.output === null || seen.has(event.id)) {
|
|
7748
|
+
continue;
|
|
7749
|
+
}
|
|
7750
|
+
seen.add(event.id);
|
|
7751
|
+
executed.push(event);
|
|
7752
|
+
}
|
|
7753
|
+
if (executed.length === 0) return [];
|
|
7754
|
+
return [
|
|
7755
|
+
{
|
|
7756
|
+
role: "assistant",
|
|
7757
|
+
content: void 0,
|
|
7758
|
+
tool_calls: executed.map((event) => ({
|
|
7759
|
+
id: event.id,
|
|
7760
|
+
type: "function",
|
|
7761
|
+
function: { name: event.name, arguments: event.arguments }
|
|
7762
|
+
}))
|
|
7763
|
+
},
|
|
7764
|
+
...executed.map(
|
|
7765
|
+
(event) => ({
|
|
7766
|
+
role: "tool",
|
|
7767
|
+
tool_call_id: event.id,
|
|
7768
|
+
content: [{ type: "text", text: toolOutputForModel(event.name, event.output ?? "") }]
|
|
7769
|
+
})
|
|
7770
|
+
)
|
|
7771
|
+
];
|
|
7772
|
+
}
|
|
7670
7773
|
function getToolName(tool) {
|
|
7671
7774
|
const func = tool.function;
|
|
7672
7775
|
const nestedName = func?.name;
|
|
@@ -8436,7 +8539,14 @@ Executing tool: ${toolInfo}
|
|
|
8436
8539
|
}
|
|
8437
8540
|
}))
|
|
8438
8541
|
};
|
|
8439
|
-
const toolResultMessages = [
|
|
8542
|
+
const toolResultMessages = [
|
|
8543
|
+
...serverToolCallMessages(
|
|
8544
|
+
currentAccumulator.toolCallEvents,
|
|
8545
|
+
currentMessages,
|
|
8546
|
+
new Set(toolCallsToExecute.map((tc) => tc.id))
|
|
8547
|
+
),
|
|
8548
|
+
assistantMessage
|
|
8549
|
+
];
|
|
8440
8550
|
for (const execResult of continueResults) {
|
|
8441
8551
|
const resultContent = execResult.error ? `Error: ${execResult.error}` : safeJsonStringify(execResult.result);
|
|
8442
8552
|
toolResultMessages.push({
|
|
@@ -10631,20 +10741,6 @@ function generateMediaId() {
|
|
|
10631
10741
|
// src/lib/db/media/operations.ts
|
|
10632
10742
|
var import_watermelondb7 = require("@nozbe/watermelondb");
|
|
10633
10743
|
|
|
10634
|
-
// src/lib/storage/mcpImages.ts
|
|
10635
|
-
var IMAGE_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
10636
|
-
"AnumaMediaMCP-anuma_create_image",
|
|
10637
|
-
"anuma_create_image",
|
|
10638
|
-
// Deprecated anuma-image-mcp tools, retained so images in already-stored
|
|
10639
|
-
// conversations still re-materialize on replay.
|
|
10640
|
-
"AnumaImageMCP-generate_cloud_image",
|
|
10641
|
-
"AnumaImageMCP-edit_cloud_image",
|
|
10642
|
-
"generate_cloud_image",
|
|
10643
|
-
"edit_cloud_image"
|
|
10644
|
-
]);
|
|
10645
|
-
var VIDEO_EXTENSIONS = ["mp4", "webm", "mov"];
|
|
10646
|
-
var VIDEO_EXTENSION_RE = new RegExp(`\\.(${VIDEO_EXTENSIONS.join("|")})(?:[?#]|$)`, "i");
|
|
10647
|
-
|
|
10648
10744
|
// src/lib/storage/opfs.ts
|
|
10649
10745
|
function isOPFSSupported() {
|
|
10650
10746
|
return typeof navigator !== "undefined" && "storage" in navigator && "getDirectory" in navigator.storage;
|
|
@@ -21190,24 +21286,10 @@ function storedToLlmapiMessage(stored) {
|
|
|
21190
21286
|
});
|
|
21191
21287
|
for (const event of stored.toolCallEvents) {
|
|
21192
21288
|
if (event.id && event.output !== void 0 && event.output !== null) {
|
|
21193
|
-
let toolOutput = event.output;
|
|
21194
|
-
if (event.name && IMAGE_TOOL_NAMES.has(event.name)) {
|
|
21195
|
-
try {
|
|
21196
|
-
const parsed = JSON.parse(toolOutput);
|
|
21197
|
-
const {
|
|
21198
|
-
imageUrl: _imageUrl,
|
|
21199
|
-
url: _url,
|
|
21200
|
-
output_images: _outputImages,
|
|
21201
|
-
...rest
|
|
21202
|
-
} = parsed;
|
|
21203
|
-
toolOutput = JSON.stringify(rest);
|
|
21204
|
-
} catch {
|
|
21205
|
-
}
|
|
21206
|
-
}
|
|
21207
21289
|
messages.push({
|
|
21208
21290
|
role: "tool",
|
|
21209
21291
|
tool_call_id: event.id,
|
|
21210
|
-
content: [{ type: "text", text:
|
|
21292
|
+
content: [{ type: "text", text: toolOutputForModel(event.name, event.output) }]
|
|
21211
21293
|
});
|
|
21212
21294
|
}
|
|
21213
21295
|
}
|
|
@@ -25650,6 +25732,7 @@ function createNotionProxyTools(callMcp) {
|
|
|
25650
25732
|
deleteVaultFolderOp,
|
|
25651
25733
|
deleteVaultMemoryOp,
|
|
25652
25734
|
dequantizeEmbedding,
|
|
25735
|
+
deriveKeyFromSignatureBytes,
|
|
25653
25736
|
discoverNotionOAuthEndpoints,
|
|
25654
25737
|
eagerEmbedContent,
|
|
25655
25738
|
embedAllMessages,
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -4446,6 +4446,10 @@ declare class Conversation extends Model {
|
|
|
4446
4446
|
* Encryption key version type.
|
|
4447
4447
|
* - "v2": Legacy SHA-256 derived key (for reading enc:v2: data)
|
|
4448
4448
|
* - "v3": HKDF derived key with domain separation (for new encryption)
|
|
4449
|
+
*
|
|
4450
|
+
* Raw signature bytes (Privy Solana `signMessage` returns a `Uint8Array`) are
|
|
4451
|
+
* not a stored version. Derive them with {@link deriveKeyFromSignatureBytes}.
|
|
4452
|
+
* {@link requestEncryptionKey} still derives v2 and v3 from a hex signature only.
|
|
4449
4453
|
*/
|
|
4450
4454
|
type EncryptionKeyVersion = "v2" | "v3";
|
|
4451
4455
|
/**
|
|
@@ -4515,6 +4519,25 @@ declare function clearAllEncryptionState(): void;
|
|
|
4515
4519
|
* requests, and derived ECDH key pairs (both in-memory and persisted).
|
|
4516
4520
|
*/
|
|
4517
4521
|
declare function clearAllEncryptionKeys(): void;
|
|
4522
|
+
/**
|
|
4523
|
+
* Derives the bytes-native AES key from a raw signature.
|
|
4524
|
+
*
|
|
4525
|
+
* Privy Solana `signMessage` returns a `Uint8Array`. Pass those bytes here.
|
|
4526
|
+
* The signature is never hex-encoded, base58-encoded, or passed through
|
|
4527
|
+
* `String()`. That string round-trip is what made {@link hexToBytes} store
|
|
4528
|
+
* zeros for every non-hex pair and yield a low-entropy AES key.
|
|
4529
|
+
*
|
|
4530
|
+
* This is the derivation for the next key version (`anuma-sdk-aes-gcm-v4`).
|
|
4531
|
+
* {@link requestEncryptionKey} does not install it; v2 and v3 stay on the
|
|
4532
|
+
* hex-string path so existing ciphertext keeps decrypting. The return value
|
|
4533
|
+
* is the same 64-char hex form the in-memory store already uses.
|
|
4534
|
+
*
|
|
4535
|
+
* @param signature - Raw signature bytes. Must be at least 64 bytes.
|
|
4536
|
+
* @returns 32-byte AES-GCM key as hex, without a `0x` prefix.
|
|
4537
|
+
* @throws Error when `signature` is shorter than 64 bytes.
|
|
4538
|
+
* @category Encryption
|
|
4539
|
+
*/
|
|
4540
|
+
declare function deriveKeyFromSignatureBytes(signature: Uint8Array): Promise<string>;
|
|
4518
4541
|
/**
|
|
4519
4542
|
* Checks if an encryption key exists in memory for the given wallet address.
|
|
4520
4543
|
*
|
|
@@ -4550,6 +4573,11 @@ interface SignMessageOptions {
|
|
|
4550
4573
|
/**
|
|
4551
4574
|
* Type for the signMessage function that client must provide.
|
|
4552
4575
|
* This is typically from Privy's useSignMessage hook.
|
|
4576
|
+
*
|
|
4577
|
+
* The resolved value must be a hex signature (`0x`-prefixed or bare). A
|
|
4578
|
+
* non-hex string — including `String(uint8Array)` or a base58 signature —
|
|
4579
|
+
* throws from key derivation instead of becoming a zero-filled AES key.
|
|
4580
|
+
* Raw signature bytes go to {@link deriveKeyFromSignatureBytes}.
|
|
4553
4581
|
*/
|
|
4554
4582
|
type SignMessageFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
4555
4583
|
/**
|
|
@@ -11328,4 +11356,4 @@ declare function createNotionTools(getAccessToken: () => string | null, requestN
|
|
|
11328
11356
|
*/
|
|
11329
11357
|
declare function createNotionProxyTools(callMcp: NotionMcpCaller): ToolConfig[];
|
|
11330
11358
|
|
|
11331
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, 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, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11359
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, 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, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -4446,6 +4446,10 @@ declare class Conversation extends Model {
|
|
|
4446
4446
|
* Encryption key version type.
|
|
4447
4447
|
* - "v2": Legacy SHA-256 derived key (for reading enc:v2: data)
|
|
4448
4448
|
* - "v3": HKDF derived key with domain separation (for new encryption)
|
|
4449
|
+
*
|
|
4450
|
+
* Raw signature bytes (Privy Solana `signMessage` returns a `Uint8Array`) are
|
|
4451
|
+
* not a stored version. Derive them with {@link deriveKeyFromSignatureBytes}.
|
|
4452
|
+
* {@link requestEncryptionKey} still derives v2 and v3 from a hex signature only.
|
|
4449
4453
|
*/
|
|
4450
4454
|
type EncryptionKeyVersion = "v2" | "v3";
|
|
4451
4455
|
/**
|
|
@@ -4515,6 +4519,25 @@ declare function clearAllEncryptionState(): void;
|
|
|
4515
4519
|
* requests, and derived ECDH key pairs (both in-memory and persisted).
|
|
4516
4520
|
*/
|
|
4517
4521
|
declare function clearAllEncryptionKeys(): void;
|
|
4522
|
+
/**
|
|
4523
|
+
* Derives the bytes-native AES key from a raw signature.
|
|
4524
|
+
*
|
|
4525
|
+
* Privy Solana `signMessage` returns a `Uint8Array`. Pass those bytes here.
|
|
4526
|
+
* The signature is never hex-encoded, base58-encoded, or passed through
|
|
4527
|
+
* `String()`. That string round-trip is what made {@link hexToBytes} store
|
|
4528
|
+
* zeros for every non-hex pair and yield a low-entropy AES key.
|
|
4529
|
+
*
|
|
4530
|
+
* This is the derivation for the next key version (`anuma-sdk-aes-gcm-v4`).
|
|
4531
|
+
* {@link requestEncryptionKey} does not install it; v2 and v3 stay on the
|
|
4532
|
+
* hex-string path so existing ciphertext keeps decrypting. The return value
|
|
4533
|
+
* is the same 64-char hex form the in-memory store already uses.
|
|
4534
|
+
*
|
|
4535
|
+
* @param signature - Raw signature bytes. Must be at least 64 bytes.
|
|
4536
|
+
* @returns 32-byte AES-GCM key as hex, without a `0x` prefix.
|
|
4537
|
+
* @throws Error when `signature` is shorter than 64 bytes.
|
|
4538
|
+
* @category Encryption
|
|
4539
|
+
*/
|
|
4540
|
+
declare function deriveKeyFromSignatureBytes(signature: Uint8Array): Promise<string>;
|
|
4518
4541
|
/**
|
|
4519
4542
|
* Checks if an encryption key exists in memory for the given wallet address.
|
|
4520
4543
|
*
|
|
@@ -4550,6 +4573,11 @@ interface SignMessageOptions {
|
|
|
4550
4573
|
/**
|
|
4551
4574
|
* Type for the signMessage function that client must provide.
|
|
4552
4575
|
* This is typically from Privy's useSignMessage hook.
|
|
4576
|
+
*
|
|
4577
|
+
* The resolved value must be a hex signature (`0x`-prefixed or bare). A
|
|
4578
|
+
* non-hex string — including `String(uint8Array)` or a base58 signature —
|
|
4579
|
+
* throws from key derivation instead of becoming a zero-filled AES key.
|
|
4580
|
+
* Raw signature bytes go to {@link deriveKeyFromSignatureBytes}.
|
|
4553
4581
|
*/
|
|
4554
4582
|
type SignMessageFn = (message: string, options?: SignMessageOptions) => Promise<string>;
|
|
4555
4583
|
/**
|
|
@@ -11328,4 +11356,4 @@ declare function createNotionTools(getAccessToken: () => string | null, requestN
|
|
|
11328
11356
|
*/
|
|
11329
11357
|
declare function createNotionProxyTools(callMcp: NotionMcpCaller): ToolConfig[];
|
|
11330
11358
|
|
|
11331
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, 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, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11359
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, 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, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|