@anuma/sdk 10.4.2 → 10.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expo/index.cjs +91 -8
- package/dist/expo/index.d.mts +20 -2
- package/dist/expo/index.d.ts +20 -2
- package/dist/expo/index.mjs +89 -8
- package/dist/index.cjs +69 -4
- package/dist/index.d.mts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.mjs +67 -4
- package/dist/react/index.cjs +146 -47
- package/dist/react/index.d.mts +20 -2
- package/dist/react/index.d.ts +20 -2
- package/dist/react/index.mjs +144 -47
- package/dist/server/index.cjs +17 -0
- package/dist/server/index.mjs +17 -0
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1736,6 +1736,7 @@ __export(index_exports, {
|
|
|
1736
1736
|
isSupportedFile: () => isSupportedFile,
|
|
1737
1737
|
isSupportedMediaType: () => isSupportedMediaType,
|
|
1738
1738
|
linkMemoryEntitiesOp: () => linkMemoryEntitiesOp,
|
|
1739
|
+
loadSettings: () => loadSettings,
|
|
1739
1740
|
localChatBackend: () => localChatBackend,
|
|
1740
1741
|
maskScopedEmbeddingCache: () => maskScopedEmbeddingCache,
|
|
1741
1742
|
maxVaultAttachmentBytes: () => maxVaultAttachmentBytes,
|
|
@@ -1783,6 +1784,7 @@ __export(index_exports, {
|
|
|
1783
1784
|
resumeStream: () => resumeStream,
|
|
1784
1785
|
retain: () => retain,
|
|
1785
1786
|
revokeNotionAccess: () => revokeNotionAccess,
|
|
1787
|
+
saveSetting: () => saveSetting,
|
|
1786
1788
|
savedToolToStored: () => savedToolToStored,
|
|
1787
1789
|
scoreProfileSalience: () => scoreProfileSalience,
|
|
1788
1790
|
screenCandidatesForInjection: () => screenCandidatesForInjection,
|
|
@@ -1924,6 +1926,7 @@ function notifyKeyAvailable(address) {
|
|
|
1924
1926
|
}
|
|
1925
1927
|
}
|
|
1926
1928
|
var keyPairStore = /* @__PURE__ */ new Map();
|
|
1929
|
+
var pendingKeyPairRequests = /* @__PURE__ */ new Map();
|
|
1927
1930
|
function getStoredKeyByVersion(address, version) {
|
|
1928
1931
|
const keys = encryptionKeyStore.get(address);
|
|
1929
1932
|
if (!keys) return null;
|
|
@@ -1946,6 +1949,7 @@ function clearAllEncryptionState() {
|
|
|
1946
1949
|
cryptoKeyCache.clear();
|
|
1947
1950
|
keyAvailableCallbacks.clear();
|
|
1948
1951
|
pendingKeyRequests.clear();
|
|
1952
|
+
pendingKeyPairRequests.clear();
|
|
1949
1953
|
pendingCandidateDerives.clear();
|
|
1950
1954
|
refreshCandidatesByAddress.clear();
|
|
1951
1955
|
divergentDeriveAddresses.clear();
|
|
@@ -2613,6 +2617,21 @@ async function requestKeyPair(walletAddress, signMessage, embeddedWalletSigner)
|
|
|
2613
2617
|
if (existingKeyPair) {
|
|
2614
2618
|
return;
|
|
2615
2619
|
}
|
|
2620
|
+
const pending = pendingKeyPairRequests.get(walletAddress);
|
|
2621
|
+
if (pending) {
|
|
2622
|
+
return pending;
|
|
2623
|
+
}
|
|
2624
|
+
const promise = loadOrCreateKeyPair(walletAddress, signMessage, embeddedWalletSigner);
|
|
2625
|
+
pendingKeyPairRequests.set(walletAddress, promise);
|
|
2626
|
+
try {
|
|
2627
|
+
await promise;
|
|
2628
|
+
} finally {
|
|
2629
|
+
if (pendingKeyPairRequests.get(walletAddress) === promise) {
|
|
2630
|
+
pendingKeyPairRequests.delete(walletAddress);
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
async function loadOrCreateKeyPair(walletAddress, signMessage, embeddedWalletSigner) {
|
|
2616
2635
|
const startEpoch = sessionEpoch;
|
|
2617
2636
|
try {
|
|
2618
2637
|
const persistedKeyPair = await loadPersistedKeyPair(walletAddress);
|
|
@@ -13480,7 +13499,7 @@ var ChatStoreError = class extends Error {
|
|
|
13480
13499
|
};
|
|
13481
13500
|
|
|
13482
13501
|
// src/lib/chatStore/remote.ts
|
|
13483
|
-
var kinds = /* @__PURE__ */ new Set(["conversation", "message", "summary", "project", "memory_links"]);
|
|
13502
|
+
var kinds = /* @__PURE__ */ new Set(["conversation", "message", "summary", "project", "memory_links", "setting"]);
|
|
13484
13503
|
var cipherPattern = /^enc:v\d+:(?:[0-9a-f]{2}){28,}$/i;
|
|
13485
13504
|
var maxPayload = 2 * 1024 * 1024;
|
|
13486
13505
|
var storedDims2 = 1536;
|
|
@@ -13536,9 +13555,12 @@ function validRecord(value) {
|
|
|
13536
13555
|
(key3) => ![...metadata, "data"].includes(key3)
|
|
13537
13556
|
))
|
|
13538
13557
|
return false;
|
|
13539
|
-
const root = value.kind
|
|
13558
|
+
const root = rootKind(value.kind);
|
|
13540
13559
|
return root ? value.conversationId === "" : id(value.conversationId);
|
|
13541
13560
|
}
|
|
13561
|
+
function rootKind(kind) {
|
|
13562
|
+
return kind === "conversation" || kind === "project" || kind === "setting";
|
|
13563
|
+
}
|
|
13542
13564
|
function embeddings(write) {
|
|
13543
13565
|
if (write.embeddings === void 0) return true;
|
|
13544
13566
|
return Array.isArray(write.embeddings) && !write.record.isDeleted && (write.record.kind === "message" || write.record.kind === "summary") && write.embeddings.length <= maxChunksPerRecord && (write.embeddingModel === void 0 || typeof write.embeddingModel === "string" && write.embeddingModel.length <= 256) && Array.from({ length: write.embeddings.length }, (_, i) => i).every(
|
|
@@ -13746,7 +13768,7 @@ async function createRemoteChatStore(options) {
|
|
|
13746
13768
|
async list(query) {
|
|
13747
13769
|
const limit = query.limit ?? 20;
|
|
13748
13770
|
const parent = query.conversationId ?? "";
|
|
13749
|
-
if (!kinds.has(query.kind) || !integer(limit, 1) || query.includeDeleted !== void 0 && typeof query.includeDeleted !== "boolean" || limit > 200 || (query.cursor?.length ?? 0) > 2048 || (query.kind
|
|
13771
|
+
if (!kinds.has(query.kind) || !integer(limit, 1) || query.includeDeleted !== void 0 && typeof query.includeDeleted !== "boolean" || limit > 200 || (query.cursor?.length ?? 0) > 2048 || (rootKind(query.kind) ? parent !== "" : !id(parent)))
|
|
13750
13772
|
invalid();
|
|
13751
13773
|
const params = new URLSearchParams({
|
|
13752
13774
|
account_id: String(accountId),
|
|
@@ -13889,10 +13911,12 @@ async function createRemoteChatStore(options) {
|
|
|
13889
13911
|
},
|
|
13890
13912
|
async changes(cursor, options2) {
|
|
13891
13913
|
const limit = options2?.limit ?? 100;
|
|
13892
|
-
|
|
13914
|
+
const kindsFilter = options2?.kinds;
|
|
13915
|
+
if (!integer(limit, 1) || limit > 200 || cursor !== void 0 && (!text5(cursor) || cursor.length > 2048) || kindsFilter !== void 0 && (!Array.isArray(kindsFilter) || kindsFilter.length === 0 || new Set(kindsFilter).size !== kindsFilter.length || kindsFilter.some((k) => !kinds.has(k))))
|
|
13893
13916
|
invalid();
|
|
13894
13917
|
const params = new URLSearchParams({ account_id: String(accountId), limit: String(limit) });
|
|
13895
13918
|
if (cursor) params.set("cursor", cursor);
|
|
13919
|
+
if (kindsFilter) params.set("kinds", kindsFilter.join(","));
|
|
13896
13920
|
const value = await request(`/changes?${params}`, {}, options2?.signal);
|
|
13897
13921
|
if (!object(value) || !Array.isArray(value.items) || value.items.length > limit || value.next_cursor !== void 0 && !text5(value.next_cursor) || value.changes_cursor !== void 0 && !text5(value.changes_cursor))
|
|
13898
13922
|
invalid();
|
|
@@ -14303,6 +14327,62 @@ async function migrateChatsToRemote(options) {
|
|
|
14303
14327
|
return passes(false);
|
|
14304
14328
|
}
|
|
14305
14329
|
|
|
14330
|
+
// src/lib/chatStore/settings.ts
|
|
14331
|
+
var maxSaveAttempts = 3;
|
|
14332
|
+
function toSetting(snapshot) {
|
|
14333
|
+
if (snapshot.record.isDeleted) return null;
|
|
14334
|
+
return {
|
|
14335
|
+
section: snapshot.record.id,
|
|
14336
|
+
data: snapshot.record.data,
|
|
14337
|
+
version: snapshot.version,
|
|
14338
|
+
createdAt: snapshot.record.createdAt,
|
|
14339
|
+
updatedAt: snapshot.record.updatedAt
|
|
14340
|
+
};
|
|
14341
|
+
}
|
|
14342
|
+
async function loadSettings(store, signal) {
|
|
14343
|
+
const out = /* @__PURE__ */ new Map();
|
|
14344
|
+
let cursor;
|
|
14345
|
+
do {
|
|
14346
|
+
const page = await store.list({ kind: "setting", limit: 100, cursor, signal });
|
|
14347
|
+
for (const item of page.items) {
|
|
14348
|
+
const setting = toSetting(item);
|
|
14349
|
+
if (setting) out.set(setting.section, setting);
|
|
14350
|
+
}
|
|
14351
|
+
cursor = page.nextCursor;
|
|
14352
|
+
} while (cursor);
|
|
14353
|
+
return out;
|
|
14354
|
+
}
|
|
14355
|
+
async function saveSetting(store, section, data, signal) {
|
|
14356
|
+
for (let attempt = 1; ; attempt++) {
|
|
14357
|
+
const current = await store.get("setting", section, signal);
|
|
14358
|
+
const now = Date.now();
|
|
14359
|
+
try {
|
|
14360
|
+
const [saved] = await store.putMany(
|
|
14361
|
+
[
|
|
14362
|
+
{
|
|
14363
|
+
record: {
|
|
14364
|
+
kind: "setting",
|
|
14365
|
+
id: section,
|
|
14366
|
+
conversationId: "",
|
|
14367
|
+
sortKey: 0,
|
|
14368
|
+
createdAt: current?.record.createdAt ?? now,
|
|
14369
|
+
updatedAt: Math.max(now, (current?.record.updatedAt ?? 0) + 1),
|
|
14370
|
+
isDeleted: false,
|
|
14371
|
+
data
|
|
14372
|
+
},
|
|
14373
|
+
expectedVersion: current?.version ?? 0
|
|
14374
|
+
}
|
|
14375
|
+
],
|
|
14376
|
+
signal
|
|
14377
|
+
);
|
|
14378
|
+
return toSetting(saved);
|
|
14379
|
+
} catch (error) {
|
|
14380
|
+
if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSaveAttempts)
|
|
14381
|
+
throw error;
|
|
14382
|
+
}
|
|
14383
|
+
}
|
|
14384
|
+
}
|
|
14385
|
+
|
|
14306
14386
|
// src/lib/chatStore/vaultAttachments.ts
|
|
14307
14387
|
var frameVersion = 1;
|
|
14308
14388
|
var ivBytes = 12;
|
|
@@ -39421,6 +39501,7 @@ function useCredits(options = {}) {
|
|
|
39421
39501
|
const baseUrlRef = (0, import_react8.useRef)(baseUrl);
|
|
39422
39502
|
const onErrorRef = (0, import_react8.useRef)(onError);
|
|
39423
39503
|
const abortControllerRef = (0, import_react8.useRef)(null);
|
|
39504
|
+
const hasFetchedRef = (0, import_react8.useRef)(false);
|
|
39424
39505
|
(0, import_react8.useEffect)(() => {
|
|
39425
39506
|
getTokenRef.current = getToken;
|
|
39426
39507
|
baseUrlRef.current = baseUrl;
|
|
@@ -39428,6 +39509,7 @@ function useCredits(options = {}) {
|
|
|
39428
39509
|
});
|
|
39429
39510
|
(0, import_react8.useEffect)(() => {
|
|
39430
39511
|
return () => {
|
|
39512
|
+
hasFetchedRef.current = false;
|
|
39431
39513
|
if (abortControllerRef.current) {
|
|
39432
39514
|
abortControllerRef.current.abort();
|
|
39433
39515
|
abortControllerRef.current = null;
|
|
@@ -39475,14 +39557,14 @@ function useCredits(options = {}) {
|
|
|
39475
39557
|
headers,
|
|
39476
39558
|
signal
|
|
39477
39559
|
});
|
|
39560
|
+
if (signal.aborted) return;
|
|
39478
39561
|
if (response.error) {
|
|
39479
39562
|
const errorMsg = response.error.error ?? "Failed to fetch credit balance";
|
|
39480
|
-
throw new Error(errorMsg);
|
|
39563
|
+
throw Object.assign(new Error(errorMsg), { cause: response.error });
|
|
39481
39564
|
}
|
|
39482
|
-
if (signal.aborted) return;
|
|
39483
39565
|
setBalance(response.data ?? null);
|
|
39484
39566
|
} catch (err) {
|
|
39485
|
-
if (err instanceof Error && err.name === "AbortError") return;
|
|
39567
|
+
if (signal.aborted || err instanceof Error && err.name === "AbortError") return;
|
|
39486
39568
|
handleError(err);
|
|
39487
39569
|
} finally {
|
|
39488
39570
|
stopLoading();
|
|
@@ -39544,7 +39626,6 @@ function useCredits(options = {}) {
|
|
|
39544
39626
|
},
|
|
39545
39627
|
[getHeaders, handleError, startLoading, stopLoading]
|
|
39546
39628
|
);
|
|
39547
|
-
const hasFetchedRef = (0, import_react8.useRef)(false);
|
|
39548
39629
|
(0, import_react8.useEffect)(() => {
|
|
39549
39630
|
if (autoFetch && !hasFetchedRef.current) {
|
|
39550
39631
|
hasFetchedRef.current = true;
|
|
@@ -41474,6 +41555,8 @@ function useSubscription(options = {}) {
|
|
|
41474
41555
|
const baseUrlRef = (0, import_react20.useRef)(baseUrl);
|
|
41475
41556
|
const onErrorRef = (0, import_react20.useRef)(onError);
|
|
41476
41557
|
const abortControllerRef = (0, import_react20.useRef)(null);
|
|
41558
|
+
const hasFetchedRef = (0, import_react20.useRef)(false);
|
|
41559
|
+
const loadingCountRef = (0, import_react20.useRef)(0);
|
|
41477
41560
|
(0, import_react20.useEffect)(() => {
|
|
41478
41561
|
getTokenRef.current = getToken;
|
|
41479
41562
|
baseUrlRef.current = baseUrl;
|
|
@@ -41481,12 +41564,21 @@ function useSubscription(options = {}) {
|
|
|
41481
41564
|
});
|
|
41482
41565
|
(0, import_react20.useEffect)(() => {
|
|
41483
41566
|
return () => {
|
|
41567
|
+
hasFetchedRef.current = false;
|
|
41484
41568
|
if (abortControllerRef.current) {
|
|
41485
41569
|
abortControllerRef.current.abort();
|
|
41486
41570
|
abortControllerRef.current = null;
|
|
41487
41571
|
}
|
|
41488
41572
|
};
|
|
41489
41573
|
}, []);
|
|
41574
|
+
const startLoading = (0, import_react20.useCallback)(() => {
|
|
41575
|
+
loadingCountRef.current++;
|
|
41576
|
+
setIsLoading(true);
|
|
41577
|
+
}, []);
|
|
41578
|
+
const stopLoading = (0, import_react20.useCallback)(() => {
|
|
41579
|
+
loadingCountRef.current = Math.max(0, loadingCountRef.current - 1);
|
|
41580
|
+
setIsLoading(loadingCountRef.current > 0);
|
|
41581
|
+
}, []);
|
|
41490
41582
|
const getHeaders = (0, import_react20.useCallback)(async () => {
|
|
41491
41583
|
const headers = {};
|
|
41492
41584
|
if (getTokenRef.current) {
|
|
@@ -41510,7 +41602,7 @@ function useSubscription(options = {}) {
|
|
|
41510
41602
|
const abortController = new AbortController();
|
|
41511
41603
|
abortControllerRef.current = abortController;
|
|
41512
41604
|
const signal = abortController.signal;
|
|
41513
|
-
|
|
41605
|
+
startLoading();
|
|
41514
41606
|
setError(null);
|
|
41515
41607
|
try {
|
|
41516
41608
|
const headers = await getHeaders();
|
|
@@ -41520,33 +41612,31 @@ function useSubscription(options = {}) {
|
|
|
41520
41612
|
headers,
|
|
41521
41613
|
signal
|
|
41522
41614
|
});
|
|
41615
|
+
if (signal.aborted) return;
|
|
41523
41616
|
if (response.error) {
|
|
41524
41617
|
const errorMsg = response.error.error ?? "Failed to fetch subscription status";
|
|
41525
|
-
throw new Error(errorMsg);
|
|
41618
|
+
throw Object.assign(new Error(errorMsg), { cause: response.error });
|
|
41526
41619
|
}
|
|
41527
|
-
if (signal.aborted) return;
|
|
41528
41620
|
setStatus(response.data ?? null);
|
|
41529
41621
|
} catch (err) {
|
|
41530
|
-
if (err instanceof Error && err.name === "AbortError") {
|
|
41622
|
+
if (signal.aborted || err instanceof Error && err.name === "AbortError") {
|
|
41531
41623
|
return;
|
|
41532
41624
|
}
|
|
41533
41625
|
handleError(err);
|
|
41534
41626
|
} finally {
|
|
41535
|
-
|
|
41536
|
-
setIsLoading(false);
|
|
41537
|
-
}
|
|
41627
|
+
stopLoading();
|
|
41538
41628
|
if (abortControllerRef.current === abortController) {
|
|
41539
41629
|
abortControllerRef.current = null;
|
|
41540
41630
|
}
|
|
41541
41631
|
}
|
|
41542
|
-
}, [getHeaders, handleError]);
|
|
41632
|
+
}, [getHeaders, handleError, startLoading, stopLoading]);
|
|
41543
41633
|
const refetch = (0, import_react20.useCallback)(async () => {
|
|
41544
41634
|
setStatus(null);
|
|
41545
41635
|
await fetchStatus();
|
|
41546
41636
|
}, [fetchStatus]);
|
|
41547
41637
|
const createCheckoutSession = (0, import_react20.useCallback)(
|
|
41548
41638
|
async (opts) => {
|
|
41549
|
-
|
|
41639
|
+
startLoading();
|
|
41550
41640
|
setError(null);
|
|
41551
41641
|
try {
|
|
41552
41642
|
const headers = await getHeaders();
|
|
@@ -41569,14 +41659,14 @@ function useSubscription(options = {}) {
|
|
|
41569
41659
|
handleError(err);
|
|
41570
41660
|
return null;
|
|
41571
41661
|
} finally {
|
|
41572
|
-
|
|
41662
|
+
stopLoading();
|
|
41573
41663
|
}
|
|
41574
41664
|
},
|
|
41575
|
-
[getHeaders, handleError]
|
|
41665
|
+
[getHeaders, handleError, startLoading, stopLoading]
|
|
41576
41666
|
);
|
|
41577
41667
|
const openCustomerPortal = (0, import_react20.useCallback)(
|
|
41578
41668
|
async (opts) => {
|
|
41579
|
-
|
|
41669
|
+
startLoading();
|
|
41580
41670
|
setError(null);
|
|
41581
41671
|
try {
|
|
41582
41672
|
const headers = await getHeaders();
|
|
@@ -41596,13 +41686,13 @@ function useSubscription(options = {}) {
|
|
|
41596
41686
|
handleError(err);
|
|
41597
41687
|
return null;
|
|
41598
41688
|
} finally {
|
|
41599
|
-
|
|
41689
|
+
stopLoading();
|
|
41600
41690
|
}
|
|
41601
41691
|
},
|
|
41602
|
-
[getHeaders, handleError]
|
|
41692
|
+
[getHeaders, handleError, startLoading, stopLoading]
|
|
41603
41693
|
);
|
|
41604
41694
|
const cancelSubscription = (0, import_react20.useCallback)(async () => {
|
|
41605
|
-
|
|
41695
|
+
startLoading();
|
|
41606
41696
|
setError(null);
|
|
41607
41697
|
try {
|
|
41608
41698
|
const headers = await getHeaders();
|
|
@@ -41620,11 +41710,11 @@ function useSubscription(options = {}) {
|
|
|
41620
41710
|
handleError(err);
|
|
41621
41711
|
return null;
|
|
41622
41712
|
} finally {
|
|
41623
|
-
|
|
41713
|
+
stopLoading();
|
|
41624
41714
|
}
|
|
41625
|
-
}, [getHeaders, handleError, fetchStatus]);
|
|
41715
|
+
}, [getHeaders, handleError, startLoading, stopLoading, fetchStatus]);
|
|
41626
41716
|
const renewSubscription = (0, import_react20.useCallback)(async () => {
|
|
41627
|
-
|
|
41717
|
+
startLoading();
|
|
41628
41718
|
setError(null);
|
|
41629
41719
|
try {
|
|
41630
41720
|
const headers = await getHeaders();
|
|
@@ -41642,10 +41732,9 @@ function useSubscription(options = {}) {
|
|
|
41642
41732
|
handleError(err);
|
|
41643
41733
|
return null;
|
|
41644
41734
|
} finally {
|
|
41645
|
-
|
|
41735
|
+
stopLoading();
|
|
41646
41736
|
}
|
|
41647
|
-
}, [getHeaders, handleError, fetchStatus]);
|
|
41648
|
-
const hasFetchedRef = (0, import_react20.useRef)(false);
|
|
41737
|
+
}, [getHeaders, handleError, startLoading, stopLoading, fetchStatus]);
|
|
41649
41738
|
(0, import_react20.useEffect)(() => {
|
|
41650
41739
|
if (autoFetch && !hasFetchedRef.current) {
|
|
41651
41740
|
hasFetchedRef.current = true;
|
|
@@ -42203,6 +42292,8 @@ function useWalletBinding(options = {}) {
|
|
|
42203
42292
|
const baseUrlRef = (0, import_react24.useRef)(baseUrl);
|
|
42204
42293
|
const onErrorRef = (0, import_react24.useRef)(onError);
|
|
42205
42294
|
const abortControllerRef = (0, import_react24.useRef)(null);
|
|
42295
|
+
const hasFetchedRef = (0, import_react24.useRef)(false);
|
|
42296
|
+
const loadingCountRef = (0, import_react24.useRef)(0);
|
|
42206
42297
|
(0, import_react24.useEffect)(() => {
|
|
42207
42298
|
getTokenRef.current = getToken;
|
|
42208
42299
|
baseUrlRef.current = baseUrl;
|
|
@@ -42210,12 +42301,21 @@ function useWalletBinding(options = {}) {
|
|
|
42210
42301
|
});
|
|
42211
42302
|
(0, import_react24.useEffect)(() => {
|
|
42212
42303
|
return () => {
|
|
42304
|
+
hasFetchedRef.current = false;
|
|
42213
42305
|
if (abortControllerRef.current) {
|
|
42214
42306
|
abortControllerRef.current.abort();
|
|
42215
42307
|
abortControllerRef.current = null;
|
|
42216
42308
|
}
|
|
42217
42309
|
};
|
|
42218
42310
|
}, []);
|
|
42311
|
+
const startLoading = (0, import_react24.useCallback)(() => {
|
|
42312
|
+
loadingCountRef.current++;
|
|
42313
|
+
setIsLoading(true);
|
|
42314
|
+
}, []);
|
|
42315
|
+
const stopLoading = (0, import_react24.useCallback)(() => {
|
|
42316
|
+
loadingCountRef.current = Math.max(0, loadingCountRef.current - 1);
|
|
42317
|
+
setIsLoading(loadingCountRef.current > 0);
|
|
42318
|
+
}, []);
|
|
42219
42319
|
const getHeaders = (0, import_react24.useCallback)(async () => {
|
|
42220
42320
|
const headers = {};
|
|
42221
42321
|
if (getTokenRef.current) {
|
|
@@ -42239,7 +42339,7 @@ function useWalletBinding(options = {}) {
|
|
|
42239
42339
|
const abortController = new AbortController();
|
|
42240
42340
|
abortControllerRef.current = abortController;
|
|
42241
42341
|
const signal = abortController.signal;
|
|
42242
|
-
|
|
42342
|
+
startLoading();
|
|
42243
42343
|
setError(null);
|
|
42244
42344
|
try {
|
|
42245
42345
|
const headers = await getHeaders();
|
|
@@ -42249,34 +42349,32 @@ function useWalletBinding(options = {}) {
|
|
|
42249
42349
|
headers,
|
|
42250
42350
|
signal
|
|
42251
42351
|
});
|
|
42352
|
+
if (signal.aborted) return;
|
|
42252
42353
|
if (response.error) {
|
|
42253
42354
|
const errorMsg = response.error.error ?? "Failed to fetch bound wallets";
|
|
42254
|
-
throw new Error(errorMsg);
|
|
42355
|
+
throw Object.assign(new Error(errorMsg), { cause: response.error });
|
|
42255
42356
|
}
|
|
42256
|
-
if (signal.aborted) return;
|
|
42257
42357
|
setWallets(response.data?.wallets ?? []);
|
|
42258
42358
|
setTotals(response.data?.totals ?? null);
|
|
42259
42359
|
} catch (err) {
|
|
42260
|
-
if (err instanceof Error && err.name === "AbortError") {
|
|
42360
|
+
if (signal.aborted || err instanceof Error && err.name === "AbortError") {
|
|
42261
42361
|
return;
|
|
42262
42362
|
}
|
|
42263
42363
|
handleError(err);
|
|
42264
42364
|
} finally {
|
|
42265
|
-
|
|
42266
|
-
setIsLoading(false);
|
|
42267
|
-
}
|
|
42365
|
+
stopLoading();
|
|
42268
42366
|
if (abortControllerRef.current === abortController) {
|
|
42269
42367
|
abortControllerRef.current = null;
|
|
42270
42368
|
}
|
|
42271
42369
|
}
|
|
42272
|
-
}, [getHeaders, handleError]);
|
|
42370
|
+
}, [getHeaders, handleError, startLoading, stopLoading]);
|
|
42273
42371
|
const refetch = (0, import_react24.useCallback)(async () => {
|
|
42274
42372
|
setWallets([]);
|
|
42275
42373
|
setTotals(null);
|
|
42276
42374
|
await fetchBinding();
|
|
42277
42375
|
}, [fetchBinding]);
|
|
42278
42376
|
const getNonce = (0, import_react24.useCallback)(async () => {
|
|
42279
|
-
|
|
42377
|
+
startLoading();
|
|
42280
42378
|
setError(null);
|
|
42281
42379
|
try {
|
|
42282
42380
|
const headers = await getHeaders();
|
|
@@ -42293,12 +42391,12 @@ function useWalletBinding(options = {}) {
|
|
|
42293
42391
|
handleError(err);
|
|
42294
42392
|
return null;
|
|
42295
42393
|
} finally {
|
|
42296
|
-
|
|
42394
|
+
stopLoading();
|
|
42297
42395
|
}
|
|
42298
|
-
}, [getHeaders, handleError]);
|
|
42396
|
+
}, [getHeaders, handleError, startLoading, stopLoading]);
|
|
42299
42397
|
const bindWallet = (0, import_react24.useCallback)(
|
|
42300
42398
|
async (request) => {
|
|
42301
|
-
|
|
42399
|
+
startLoading();
|
|
42302
42400
|
setError(null);
|
|
42303
42401
|
try {
|
|
42304
42402
|
const headers = await getHeaders();
|
|
@@ -42317,14 +42415,14 @@ function useWalletBinding(options = {}) {
|
|
|
42317
42415
|
handleError(err);
|
|
42318
42416
|
return null;
|
|
42319
42417
|
} finally {
|
|
42320
|
-
|
|
42418
|
+
stopLoading();
|
|
42321
42419
|
}
|
|
42322
42420
|
},
|
|
42323
|
-
[getHeaders, handleError, fetchBinding]
|
|
42421
|
+
[getHeaders, handleError, startLoading, stopLoading, fetchBinding]
|
|
42324
42422
|
);
|
|
42325
42423
|
const unbindWallet = (0, import_react24.useCallback)(
|
|
42326
42424
|
async (address) => {
|
|
42327
|
-
|
|
42425
|
+
startLoading();
|
|
42328
42426
|
setError(null);
|
|
42329
42427
|
try {
|
|
42330
42428
|
const headers = await getHeaders();
|
|
@@ -42343,12 +42441,11 @@ function useWalletBinding(options = {}) {
|
|
|
42343
42441
|
handleError(err);
|
|
42344
42442
|
return false;
|
|
42345
42443
|
} finally {
|
|
42346
|
-
|
|
42444
|
+
stopLoading();
|
|
42347
42445
|
}
|
|
42348
42446
|
},
|
|
42349
|
-
[getHeaders, handleError, fetchBinding]
|
|
42447
|
+
[getHeaders, handleError, startLoading, stopLoading, fetchBinding]
|
|
42350
42448
|
);
|
|
42351
|
-
const hasFetchedRef = (0, import_react24.useRef)(false);
|
|
42352
42449
|
(0, import_react24.useEffect)(() => {
|
|
42353
42450
|
if (autoFetch && !hasFetchedRef.current) {
|
|
42354
42451
|
hasFetchedRef.current = true;
|
|
@@ -42689,6 +42786,7 @@ function useWalletBinding(options = {}) {
|
|
|
42689
42786
|
isSupportedFile,
|
|
42690
42787
|
isSupportedMediaType,
|
|
42691
42788
|
linkMemoryEntitiesOp,
|
|
42789
|
+
loadSettings,
|
|
42692
42790
|
localChatBackend,
|
|
42693
42791
|
maskScopedEmbeddingCache,
|
|
42694
42792
|
maxVaultAttachmentBytes,
|
|
@@ -42736,6 +42834,7 @@ function useWalletBinding(options = {}) {
|
|
|
42736
42834
|
resumeStream,
|
|
42737
42835
|
retain,
|
|
42738
42836
|
revokeNotionAccess,
|
|
42837
|
+
saveSetting,
|
|
42739
42838
|
savedToolToStored,
|
|
42740
42839
|
scoreProfileSalience,
|
|
42741
42840
|
screenCandidatesForInjection,
|
package/dist/react/index.d.mts
CHANGED
|
@@ -9172,7 +9172,7 @@ interface BaseUseChatStorageResult {
|
|
|
9172
9172
|
}
|
|
9173
9173
|
declare function generateConversationId(): string;
|
|
9174
9174
|
|
|
9175
|
-
type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links";
|
|
9175
|
+
type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links" | "setting";
|
|
9176
9176
|
type ChatJson = null | boolean | number | string | ChatJson[] | {
|
|
9177
9177
|
[key: string]: ChatJson;
|
|
9178
9178
|
};
|
|
@@ -9298,8 +9298,10 @@ interface ChatStore {
|
|
|
9298
9298
|
importRecords(records: readonly ChatImport[], signal?: AbortSignal): Promise<number>;
|
|
9299
9299
|
verify(revisions: readonly ChatRevision[], signal?: AbortSignal): Promise<ChatRef[]>;
|
|
9300
9300
|
activate(signal?: AbortSignal): Promise<boolean>;
|
|
9301
|
+
/** Without `kinds`, vault returns every kind except `setting`. */
|
|
9301
9302
|
changes(cursor?: string, options?: {
|
|
9302
9303
|
limit?: number;
|
|
9304
|
+
kinds?: readonly ChatRecordKind[];
|
|
9303
9305
|
signal?: AbortSignal;
|
|
9304
9306
|
}): Promise<ChatChanges>;
|
|
9305
9307
|
search(embedding: readonly number[], options?: ChatSearchOptions): Promise<ChatSearchHit[]>;
|
|
@@ -9370,6 +9372,22 @@ declare function migrateChatsToRemote(options: ChatMigrationOptions): Promise<Ch
|
|
|
9370
9372
|
/** Connect to owner-scoped server storage using the account's canonical device-held cipher. */
|
|
9371
9373
|
declare function createRemoteChatStore(options: RemoteChatStoreOptions): Promise<ChatStore>;
|
|
9372
9374
|
|
|
9375
|
+
interface Setting {
|
|
9376
|
+
section: string;
|
|
9377
|
+
data: {
|
|
9378
|
+
[key: string]: ChatJson;
|
|
9379
|
+
};
|
|
9380
|
+
version: number;
|
|
9381
|
+
createdAt: number;
|
|
9382
|
+
updatedAt: number;
|
|
9383
|
+
}
|
|
9384
|
+
/** Every stored settings section, keyed by section name. */
|
|
9385
|
+
declare function loadSettings(store: ChatStore, signal?: AbortSignal): Promise<Map<string, Setting>>;
|
|
9386
|
+
/** Replaces one section with `data`; the last save of a section wins across devices. */
|
|
9387
|
+
declare function saveSetting(store: ChatStore, section: string, data: {
|
|
9388
|
+
[key: string]: ChatJson;
|
|
9389
|
+
}, signal?: AbortSignal): Promise<Setting>;
|
|
9390
|
+
|
|
9373
9391
|
/**
|
|
9374
9392
|
* AES-GCM keys derived from one wallet signature over `SIGN_MESSAGE`.
|
|
9375
9393
|
* @public
|
|
@@ -16295,4 +16313,4 @@ type UseWalletBindingResult = {
|
|
|
16295
16313
|
*/
|
|
16296
16314
|
declare function useWalletBinding(options?: UseWalletBindingOptions): UseWalletBindingResult;
|
|
16297
16315
|
|
|
16298
|
-
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_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, type ChatAccount, type ChatAccountState, type ChatAttachment, type ChatAttachments, type ChatBackend, type ChatBackendFactory, type ChatBackendSigner, type ChatCacheStorage, type ChatChanges, type ChatChunkSearchOptions, Conversation as ChatConversation, type ChatImport, type ChatJson, type ChatListOptions, Message as ChatMessage, type ChatMigrationOptions, type ChatMigrationProgress, type ChatMigrationResult, type ChatMigrationSkip, type ChatOutboxLocks, type ChatOutboxStorage, type ChatPage, type ChatPresignedUrl, type ChatRecord, type ChatRecordKind, type ChatRef, type ChatRevision, type ChatRole, type ChatSearchHit, type ChatSearchOptions, type ChatSnapshot, type ChatStorageAdapter, type ChatStorageObservable, type ChatStore, ChatStoreError, type ChatWrite, type ChunkSearchResult, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateSelectPaymentWalletToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DurableAutoExtractorOptions, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, INTERNAL_FLOW_MARKER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type LocalMessageAttachment, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCounts, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageAttachmentMigrationOptions, type MessageAttachmentMigrationResult, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PaymentWallet, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RemoteChatStoreOptions, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RemoteMemoryTopic, type RemoteMemoryWorkKind, type RemoteMemoryWorkLease, type RemoteMemoryWorkPersistence, type RemoteTopicPersistence, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectPaymentWalletResult, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type 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, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultAttachmentCache, type VaultAttachmentJournal, type VaultAttachmentOwner, type VaultAttachmentRef, type VaultAttachmentUploadOptions, type VaultAttachments, type VaultAttachmentsOptions, type VaultCandidateKey, type VaultChatActivity, type VaultChatBackend, type VaultChatBackendOptions, type VaultChatEvent, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, type WriteFailureReason, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearConversationMemoriesOp, clearEncryptionKey, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteChatStore, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSavedToolOp, createSelectPaymentWalletTool, createServerToolsFilter, createStockPricePreProcessor, createVaultAttachments, createVaultChatBackend, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, decryptMessageEmbeddingFields, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, encryptToolCallEventsOp, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getEntitiesByMemoryIdsOp, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, localChatBackend, maskScopedEmbeddingCache, maxVaultAttachmentBytes, mediaToStored, memoryCipher, migrateChatsToRemote, migrateDisplayResult, migrateMemoriesToRemote, migrateMessageAttachments, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, primaryTopic, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, stampTopicsExtractedAtOp, startNotionAuth, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useEncryption, useExportPdf, useFiles, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, vaultAttachmentRefs, vaultChatBackend, verifyMemoriesForPublish, walk, webPlatformStorage, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };
|
|
16316
|
+
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_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, type ChatAccount, type ChatAccountState, type ChatAttachment, type ChatAttachments, type ChatBackend, type ChatBackendFactory, type ChatBackendSigner, type ChatCacheStorage, type ChatChanges, type ChatChunkSearchOptions, Conversation as ChatConversation, type ChatImport, type ChatJson, type ChatListOptions, Message as ChatMessage, type ChatMigrationOptions, type ChatMigrationProgress, type ChatMigrationResult, type ChatMigrationSkip, type ChatOutboxLocks, type ChatOutboxStorage, type ChatPage, type ChatPresignedUrl, type ChatRecord, type ChatRecordKind, type ChatRef, type ChatRevision, type ChatRole, type ChatSearchHit, type ChatSearchOptions, type ChatSnapshot, type ChatStorageAdapter, type ChatStorageObservable, type ChatStore, ChatStoreError, type ChatWrite, type ChunkSearchResult, type ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateSelectPaymentWalletToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DurableAutoExtractorOptions, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, INTERNAL_FLOW_MARKER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type LocalMessageAttachment, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCounts, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageAttachmentMigrationOptions, type MessageAttachmentMigrationResult, type MessageChunk, type MessageFeedback, type MessageOrigin, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PaymentWallet, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RemoteChatStoreOptions, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RemoteMemoryTopic, type RemoteMemoryWorkKind, type RemoteMemoryWorkLease, type RemoteMemoryWorkPersistence, type RemoteTopicPersistence, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectPaymentWalletResult, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type Setting, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultAttachmentCache, type VaultAttachmentJournal, type VaultAttachmentOwner, type VaultAttachmentRef, type VaultAttachmentUploadOptions, type VaultAttachments, type VaultAttachmentsOptions, type VaultCandidateKey, type VaultChatActivity, type VaultChatBackend, type VaultChatBackendOptions, type VaultChatEvent, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, type WriteFailureReason, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearConversationMemoriesOp, clearEncryptionKey, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteChatStore, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSavedToolOp, createSelectPaymentWalletTool, createServerToolsFilter, createStockPricePreProcessor, createVaultAttachments, createVaultChatBackend, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, decryptMessageEmbeddingFields, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, encryptToolCallEventsOp, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getEntitiesByMemoryIdsOp, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, loadSettings, localChatBackend, maskScopedEmbeddingCache, maxVaultAttachmentBytes, mediaToStored, memoryCipher, migrateChatsToRemote, migrateDisplayResult, migrateMemoriesToRemote, migrateMessageAttachments, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, primaryTopic, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeNotionAccess, saveSetting, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, stampTopicsExtractedAtOp, startNotionAuth, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useEncryption, useExportPdf, useFiles, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, vaultAttachmentRefs, vaultChatBackend, verifyMemoriesForPublish, walk, webPlatformStorage, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };
|