@anuma/sdk 7.6.1 → 8.0.1
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 +158 -40
- package/dist/expo/index.d.mts +5 -1
- package/dist/expo/index.d.ts +5 -1
- package/dist/expo/index.mjs +156 -40
- package/dist/react/index.cjs +157 -34
- package/dist/react/index.d.mts +5 -1
- package/dist/react/index.d.ts +5 -1
- package/dist/react/index.mjs +155 -34
- package/dist/server/index.cjs +226 -41
- package/dist/server/index.d.mts +13 -7
- package/dist/server/index.d.ts +13 -7
- package/dist/server/index.mjs +224 -41
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -1505,6 +1505,7 @@ __export(index_exports, {
|
|
|
1505
1505
|
createWebSearchPreProcessor: () => createWebSearchPreProcessor,
|
|
1506
1506
|
decodeChunkVector: () => decodeChunkVector,
|
|
1507
1507
|
decryptConversationTitle: () => decryptConversationTitle,
|
|
1508
|
+
decryptMessageEmbeddingFields: () => decryptMessageEmbeddingFields,
|
|
1508
1509
|
deleteAllVaultMemoriesForUserOp: () => deleteAllVaultMemoriesForUserOp,
|
|
1509
1510
|
deleteMessageOp: () => deleteMessageOp,
|
|
1510
1511
|
deleteVaultFolderOp: () => deleteVaultFolderOp,
|
|
@@ -1585,6 +1586,7 @@ __export(index_exports, {
|
|
|
1585
1586
|
sdkMigrations: () => sdkMigrations,
|
|
1586
1587
|
sdkModelClasses: () => sdkModelClasses,
|
|
1587
1588
|
sdkSchema: () => sdkSchema,
|
|
1589
|
+
sealLegacyMessageEmbeddingsOp: () => sealLegacyMessageEmbeddingsOp,
|
|
1588
1590
|
searchVaultMemories: () => searchVaultMemories,
|
|
1589
1591
|
seedEncryptionKeys: () => seedEncryptionKeys,
|
|
1590
1592
|
setLogger: () => setLogger,
|
|
@@ -4015,16 +4017,19 @@ async function updateMessageEmbeddingOp(ctx, uniqueId, vector, embeddingModel) {
|
|
|
4015
4017
|
} catch {
|
|
4016
4018
|
return null;
|
|
4017
4019
|
}
|
|
4020
|
+
const address = ctx.walletAddress;
|
|
4018
4021
|
await ctx.database.write(async () => {
|
|
4022
|
+
const key = await resolveMessageEmbeddingKey(address, message.content);
|
|
4023
|
+
const storedVector2 = await serializeMessageEmbedding(key, vector);
|
|
4019
4024
|
await message.update((msg) => {
|
|
4020
|
-
msg._setRaw("vector",
|
|
4025
|
+
msg._setRaw("vector", storedVector2);
|
|
4021
4026
|
if (msg.origin === "chunks_discarded" && vector.length > 0) {
|
|
4022
4027
|
msg._setRaw("origin", "message");
|
|
4023
4028
|
}
|
|
4024
4029
|
msg._setRaw("embedding_model", embeddingModel);
|
|
4025
4030
|
});
|
|
4026
4031
|
});
|
|
4027
|
-
return messageToStored(message, ctx.walletAddress
|
|
4032
|
+
return messageToStored(message, ctx.walletAddress);
|
|
4028
4033
|
}
|
|
4029
4034
|
async function updateMessageChunksOp(ctx, uniqueId, chunks3, embeddingModel) {
|
|
4030
4035
|
let message;
|
|
@@ -4034,16 +4039,123 @@ async function updateMessageChunksOp(ctx, uniqueId, chunks3, embeddingModel) {
|
|
|
4034
4039
|
return null;
|
|
4035
4040
|
}
|
|
4036
4041
|
const storedChunks = chunks3.map(({ text: _text, ...rest }) => rest);
|
|
4042
|
+
const address = ctx.walletAddress;
|
|
4037
4043
|
await ctx.database.write(async () => {
|
|
4044
|
+
const key = await resolveMessageEmbeddingKey(address, message.content);
|
|
4045
|
+
const serializedChunks = await serializeMessageEmbedding(key, storedChunks);
|
|
4038
4046
|
await message.update((msg) => {
|
|
4039
|
-
msg._setRaw("chunks",
|
|
4047
|
+
msg._setRaw("chunks", serializedChunks);
|
|
4040
4048
|
if (msg.origin === "chunks_discarded" && storedChunks.length > 0 && storedChunks.every((chunk) => chunk.vector.length > 0)) {
|
|
4041
4049
|
msg._setRaw("origin", "message");
|
|
4042
4050
|
}
|
|
4043
4051
|
msg._setRaw("embedding_model", embeddingModel);
|
|
4044
4052
|
});
|
|
4045
4053
|
});
|
|
4046
|
-
return messageToStored(message, ctx.walletAddress
|
|
4054
|
+
return messageToStored(message, ctx.walletAddress);
|
|
4055
|
+
}
|
|
4056
|
+
async function resolveMessageEmbeddingKey(address, content) {
|
|
4057
|
+
if (!address || !isEncrypted(content)) return null;
|
|
4058
|
+
const key = await getEncryptionKey(address, "v3");
|
|
4059
|
+
const contentKey = content.startsWith("enc:v2:") ? await getEncryptionKey(address, "v2") : key;
|
|
4060
|
+
try {
|
|
4061
|
+
await decryptDataWithKey(content.slice("enc:vN:".length), contentKey);
|
|
4062
|
+
} catch {
|
|
4063
|
+
throw new Error("Cannot decrypt the message with the cached wallet key");
|
|
4064
|
+
}
|
|
4065
|
+
return key;
|
|
4066
|
+
}
|
|
4067
|
+
async function serializeMessageEmbedding(key, value) {
|
|
4068
|
+
const json4 = JSON.stringify(value);
|
|
4069
|
+
return key ? `enc:v3:${await encryptDataWithKey(json4, key)}` : json4;
|
|
4070
|
+
}
|
|
4071
|
+
async function decryptMessageEmbeddingFields(raw, walletAddress) {
|
|
4072
|
+
const result = { ...raw };
|
|
4073
|
+
for (const column of ["vector", "chunks"]) {
|
|
4074
|
+
const value = raw[column];
|
|
4075
|
+
if (typeof value !== "string" || !value.startsWith("enc:")) continue;
|
|
4076
|
+
const decrypted = walletAddress ? await decryptField(value, walletAddress) : value;
|
|
4077
|
+
result[column] = decrypted.startsWith("enc:") ? void 0 : decrypted;
|
|
4078
|
+
}
|
|
4079
|
+
return result;
|
|
4080
|
+
}
|
|
4081
|
+
async function sealLegacyMessageEmbeddingsOp(ctx) {
|
|
4082
|
+
if (!ctx.walletAddress) return 0;
|
|
4083
|
+
const candidateIds = await ctx.messagesCollection.query(
|
|
4084
|
+
import_watermelondb2.Q.where("content", import_watermelondb2.Q.like("enc:%")),
|
|
4085
|
+
import_watermelondb2.Q.or(
|
|
4086
|
+
...["vector", "chunks"].map(
|
|
4087
|
+
(column) => import_watermelondb2.Q.and(
|
|
4088
|
+
import_watermelondb2.Q.where(column, import_watermelondb2.Q.notEq(null)),
|
|
4089
|
+
import_watermelondb2.Q.where(column, import_watermelondb2.Q.notEq("")),
|
|
4090
|
+
import_watermelondb2.Q.where(column, import_watermelondb2.Q.notLike("enc:%"))
|
|
4091
|
+
)
|
|
4092
|
+
)
|
|
4093
|
+
)
|
|
4094
|
+
).fetchIds();
|
|
4095
|
+
let sealed = 0;
|
|
4096
|
+
let undecryptable = 0;
|
|
4097
|
+
for (let start = 0; start < candidateIds.length; start += 50) {
|
|
4098
|
+
const pageIds = candidateIds.slice(start, start + 50);
|
|
4099
|
+
await ctx.database.write(async () => {
|
|
4100
|
+
const pageMessages = await ctx.messagesCollection.query(import_watermelondb2.Q.where("id", import_watermelondb2.Q.oneOf(pageIds))).fetch();
|
|
4101
|
+
for (const message of pageMessages) {
|
|
4102
|
+
if (!isEncrypted(message.content)) continue;
|
|
4103
|
+
const content = await decryptFieldDetailed(message.content, ctx.walletAddress);
|
|
4104
|
+
if (content.status === "key_missing") {
|
|
4105
|
+
throw new Error("Cannot decrypt the message with the cached wallet key");
|
|
4106
|
+
}
|
|
4107
|
+
if (content.status !== "ok") {
|
|
4108
|
+
undecryptable++;
|
|
4109
|
+
continue;
|
|
4110
|
+
}
|
|
4111
|
+
const plaintext = content.value;
|
|
4112
|
+
const key = await resolveMessageEmbeddingKey(ctx.walletAddress, message.content);
|
|
4113
|
+
const updates = {};
|
|
4114
|
+
for (const column of ["vector", "chunks"]) {
|
|
4115
|
+
const value = message._getRaw(column);
|
|
4116
|
+
if (typeof value !== "string" || value.startsWith("enc:") || !value) continue;
|
|
4117
|
+
let parsed;
|
|
4118
|
+
try {
|
|
4119
|
+
parsed = JSON.parse(value);
|
|
4120
|
+
} catch {
|
|
4121
|
+
updates[column] = null;
|
|
4122
|
+
continue;
|
|
4123
|
+
}
|
|
4124
|
+
if (!Array.isArray(parsed)) {
|
|
4125
|
+
updates[column] = null;
|
|
4126
|
+
continue;
|
|
4127
|
+
}
|
|
4128
|
+
if (column === "chunks") {
|
|
4129
|
+
const chunks3 = parsed;
|
|
4130
|
+
if (chunks3.some(
|
|
4131
|
+
(chunk) => !chunk || !Number.isInteger(chunk.startOffset) || !Number.isInteger(chunk.endOffset) || chunk.startOffset < 0 || chunk.endOffset <= chunk.startOffset || chunk.endOffset > plaintext.length
|
|
4132
|
+
)) {
|
|
4133
|
+
updates.chunks = null;
|
|
4134
|
+
updates.vector = null;
|
|
4135
|
+
updates.origin = message.origin === "tool_result" ? "tool_result" : "chunks_discarded";
|
|
4136
|
+
break;
|
|
4137
|
+
}
|
|
4138
|
+
parsed = chunks3.map(({ text: _text, ...rest }) => rest);
|
|
4139
|
+
}
|
|
4140
|
+
updates[column] = await serializeMessageEmbedding(key, parsed);
|
|
4141
|
+
}
|
|
4142
|
+
if (Object.keys(updates).length === 0) continue;
|
|
4143
|
+
const updatedAt = Number(message._getRaw("updated_at"));
|
|
4144
|
+
const discarded = updates.origin !== void 0;
|
|
4145
|
+
await message.update((msg) => {
|
|
4146
|
+
for (const [column, value] of Object.entries(updates)) msg._setRaw(column, value);
|
|
4147
|
+
msg._setRaw("updated_at", discarded ? Math.max(Date.now(), updatedAt + 1) : updatedAt);
|
|
4148
|
+
});
|
|
4149
|
+
sealed++;
|
|
4150
|
+
}
|
|
4151
|
+
});
|
|
4152
|
+
}
|
|
4153
|
+
if (undecryptable > 0) {
|
|
4154
|
+
getLogger().warn(
|
|
4155
|
+
`Skipped ${undecryptable} message embeddings that the cached wallet key cannot decrypt`
|
|
4156
|
+
);
|
|
4157
|
+
}
|
|
4158
|
+
return sealed;
|
|
4047
4159
|
}
|
|
4048
4160
|
var RAW_REPAIR_PAGE_SIZE = 100;
|
|
4049
4161
|
function chunksWithoutText(raw) {
|
|
@@ -28081,6 +28193,8 @@ function useChatStorage(options) {
|
|
|
28081
28193
|
embeddedWalletSigner
|
|
28082
28194
|
]
|
|
28083
28195
|
);
|
|
28196
|
+
const storageCtxRef = (0, import_react5.useRef)(storageCtx);
|
|
28197
|
+
storageCtxRef.current = storageCtx;
|
|
28084
28198
|
const vaultMemoryCollection = (0, import_react5.useMemo)(
|
|
28085
28199
|
() => database.get("memory_vault"),
|
|
28086
28200
|
[database]
|
|
@@ -28184,24 +28298,12 @@ function useChatStorage(options) {
|
|
|
28184
28298
|
refreshQueueStatus();
|
|
28185
28299
|
return queueManager.onQueueChange(walletAddress, refreshQueueStatus);
|
|
28186
28300
|
}, [walletAddress, refreshQueueStatus]);
|
|
28187
|
-
(0, import_react5.useEffect)(() => {
|
|
28188
|
-
if (!walletAddress || !enableQueue || !autoFlushOnKeyAvailable || !signMessage) return;
|
|
28189
|
-
return onKeyAvailable(walletAddress, () => {
|
|
28190
|
-
flushQueue().catch((err) => {
|
|
28191
|
-
getLogger().warn("[useChatStorage] Auto-flush failed:", err);
|
|
28192
|
-
});
|
|
28193
|
-
});
|
|
28194
|
-
}, [walletAddress, enableQueue, autoFlushOnKeyAvailable, signMessage, flushQueue]);
|
|
28195
28301
|
(0, import_react5.useEffect)(() => {
|
|
28196
28302
|
if (!getWalletAddress || walletAddress) return;
|
|
28197
28303
|
const poller = new WalletPoller();
|
|
28198
28304
|
return poller.startPolling(getWalletAddress, () => {
|
|
28199
28305
|
});
|
|
28200
28306
|
}, [getWalletAddress, walletAddress]);
|
|
28201
|
-
const isEncryptionReady = (0, import_react5.useCallback)(() => {
|
|
28202
|
-
if (!walletAddress || !signMessage) return true;
|
|
28203
|
-
return hasEncryptionKey(walletAddress);
|
|
28204
|
-
}, [walletAddress, signMessage]);
|
|
28205
28307
|
const pendingOpsRef = (0, import_react5.useRef)([]);
|
|
28206
28308
|
const syntheticConvIdsRef = (0, import_react5.useRef)(/* @__PURE__ */ new Set());
|
|
28207
28309
|
(0, import_react5.useEffect)(() => {
|
|
@@ -28214,34 +28316,49 @@ function useChatStorage(options) {
|
|
|
28214
28316
|
pendingOpsRef.current = [];
|
|
28215
28317
|
refreshQueueStatus();
|
|
28216
28318
|
}, [walletAddress, enableQueue, refreshQueueStatus]);
|
|
28319
|
+
(0, import_react5.useEffect)(() => {
|
|
28320
|
+
if (!walletAddress || !enableQueue || !autoFlushOnKeyAvailable || !signMessage) return;
|
|
28321
|
+
return onKeyAvailable(walletAddress, () => {
|
|
28322
|
+
flushQueue().catch((err) => {
|
|
28323
|
+
getLogger().warn("[useChatStorage] Auto-flush failed:", err);
|
|
28324
|
+
});
|
|
28325
|
+
});
|
|
28326
|
+
}, [walletAddress, enableQueue, autoFlushOnKeyAvailable, signMessage, flushQueue]);
|
|
28217
28327
|
const writeOrQueue = (0, import_react5.useCallback)(
|
|
28218
28328
|
async (opType, payload, directWrite, makeSynthetic, dependencies = []) => {
|
|
28219
|
-
|
|
28220
|
-
|
|
28329
|
+
const currentStorageCtx = storageCtx.walletAddress ? storageCtx : storageCtxRef.current;
|
|
28330
|
+
const currentWalletAddress = currentStorageCtx.walletAddress;
|
|
28331
|
+
if (enableQueue && signMessage && !currentWalletAddress && getWalletAddress) {
|
|
28332
|
+
pendingOpsRef.current.push({ type: opType, payload, dependencies });
|
|
28333
|
+
return { result: makeSynthetic(), queued: true };
|
|
28334
|
+
}
|
|
28335
|
+
if (!currentWalletAddress || !currentStorageCtx.signMessage || hasEncryptionKey(currentWalletAddress)) {
|
|
28336
|
+
const result2 = await directWrite(currentStorageCtx);
|
|
28221
28337
|
return { result: result2, queued: false };
|
|
28222
28338
|
}
|
|
28223
28339
|
if (!enableQueue) {
|
|
28224
|
-
const result2 = await directWrite();
|
|
28340
|
+
const result2 = await directWrite(currentStorageCtx);
|
|
28225
28341
|
return { result: result2, queued: false };
|
|
28226
28342
|
}
|
|
28227
|
-
if (
|
|
28228
|
-
|
|
28229
|
-
|
|
28230
|
-
|
|
28231
|
-
|
|
28232
|
-
|
|
28343
|
+
if (currentWalletAddress) {
|
|
28344
|
+
const queueId = queueManager.queueOperation(
|
|
28345
|
+
currentWalletAddress,
|
|
28346
|
+
opType,
|
|
28347
|
+
payload,
|
|
28348
|
+
dependencies
|
|
28349
|
+
);
|
|
28233
28350
|
if (queueId === null) {
|
|
28234
28351
|
getLogger().warn("[useChatStorage] Queue full, falling back to direct write");
|
|
28235
|
-
const result2 = await directWrite();
|
|
28352
|
+
const result2 = await directWrite(currentStorageCtx);
|
|
28236
28353
|
return { result: result2, queued: false };
|
|
28237
28354
|
}
|
|
28238
|
-
|
|
28355
|
+
setQueueStatus(queueManager.getStatus(currentWalletAddress));
|
|
28239
28356
|
return { result: makeSynthetic(), queued: true, queueId };
|
|
28240
28357
|
}
|
|
28241
|
-
const result = await directWrite();
|
|
28358
|
+
const result = await directWrite(currentStorageCtx);
|
|
28242
28359
|
return { result, queued: false };
|
|
28243
28360
|
},
|
|
28244
|
-
[
|
|
28361
|
+
[storageCtx, enableQueue, signMessage, getWalletAddress]
|
|
28245
28362
|
);
|
|
28246
28363
|
const embedMessageAsync = (0, import_react5.useCallback)(
|
|
28247
28364
|
async (message, mask = maskForEmbedding) => {
|
|
@@ -28515,7 +28632,7 @@ function useChatStorage(options) {
|
|
|
28515
28632
|
const { result, queued } = await writeOrQueue(
|
|
28516
28633
|
"createConversation",
|
|
28517
28634
|
conversationOpts,
|
|
28518
|
-
() => createConversationOp(
|
|
28635
|
+
(ctx) => createConversationOp(ctx, conversationOpts, defaultConversationTitle),
|
|
28519
28636
|
() => makeSyntheticStoredConversation(conversationOpts, defaultConversationTitle)
|
|
28520
28637
|
);
|
|
28521
28638
|
if (queued) {
|
|
@@ -28524,7 +28641,7 @@ function useChatStorage(options) {
|
|
|
28524
28641
|
setCurrentConversationId(result.conversationId);
|
|
28525
28642
|
return result;
|
|
28526
28643
|
},
|
|
28527
|
-
[
|
|
28644
|
+
[defaultConversationTitle, writeOrQueue]
|
|
28528
28645
|
);
|
|
28529
28646
|
const getConversation = (0, import_react5.useCallback)(
|
|
28530
28647
|
async (id) => {
|
|
@@ -28540,24 +28657,24 @@ function useChatStorage(options) {
|
|
|
28540
28657
|
const { result } = await writeOrQueue(
|
|
28541
28658
|
"updateConversationTitle",
|
|
28542
28659
|
{ conversationId: id, title },
|
|
28543
|
-
() => updateConversationTitleOp(
|
|
28660
|
+
(ctx) => updateConversationTitleOp(ctx, id, title),
|
|
28544
28661
|
() => true
|
|
28545
28662
|
);
|
|
28546
28663
|
return result;
|
|
28547
28664
|
},
|
|
28548
|
-
[
|
|
28665
|
+
[writeOrQueue]
|
|
28549
28666
|
);
|
|
28550
28667
|
const updateConversationPinned = (0, import_react5.useCallback)(
|
|
28551
28668
|
async (id, pinned) => {
|
|
28552
28669
|
const { result } = await writeOrQueue(
|
|
28553
28670
|
"updateConversationPinned",
|
|
28554
28671
|
{ conversationId: id, pinned },
|
|
28555
|
-
() => updateConversationPinnedOp(
|
|
28672
|
+
(ctx) => updateConversationPinnedOp(ctx, id, pinned),
|
|
28556
28673
|
() => true
|
|
28557
28674
|
);
|
|
28558
28675
|
return result;
|
|
28559
28676
|
},
|
|
28560
|
-
[
|
|
28677
|
+
[writeOrQueue]
|
|
28561
28678
|
);
|
|
28562
28679
|
const deleteConversation = (0, import_react5.useCallback)(
|
|
28563
28680
|
async (id) => {
|
|
@@ -28775,7 +28892,7 @@ function useChatStorage(options) {
|
|
|
28775
28892
|
const { result } = await writeOrQueue(
|
|
28776
28893
|
"createMessage",
|
|
28777
28894
|
rowOpts,
|
|
28778
|
-
() => upsertMessageOp(
|
|
28895
|
+
(currentStorageCtx) => upsertMessageOp(currentStorageCtx, rowOpts),
|
|
28779
28896
|
() => makeSyntheticStoredMessage(rowOpts),
|
|
28780
28897
|
ctx.userMessageQueueId ? [ctx.userMessageQueueId] : []
|
|
28781
28898
|
);
|
|
@@ -29237,7 +29354,7 @@ function useChatStorage(options) {
|
|
|
29237
29354
|
const userMsgResult = await writeOrQueue(
|
|
29238
29355
|
"createMessage",
|
|
29239
29356
|
userMsgOpts,
|
|
29240
|
-
() => createMessageOp(
|
|
29357
|
+
(ctx) => createMessageOp(ctx, userMsgOpts),
|
|
29241
29358
|
() => makeSyntheticStoredMessage(userMsgOpts)
|
|
29242
29359
|
);
|
|
29243
29360
|
storedUserMessage = userMsgResult.result;
|
|
@@ -29586,7 +29703,7 @@ function useChatStorage(options) {
|
|
|
29586
29703
|
const assistantMsgResult = await writeOrQueue(
|
|
29587
29704
|
"createMessage",
|
|
29588
29705
|
assistantMsgOpts,
|
|
29589
|
-
() => createMessageOp(
|
|
29706
|
+
(ctx) => createMessageOp(ctx, assistantMsgOpts),
|
|
29590
29707
|
() => makeSyntheticStoredMessage(assistantMsgOpts),
|
|
29591
29708
|
userMsgQueueId ? [userMsgQueueId] : []
|
|
29592
29709
|
);
|
|
@@ -29618,7 +29735,7 @@ function useChatStorage(options) {
|
|
|
29618
29735
|
const toolResultsWrite = await writeOrQueue(
|
|
29619
29736
|
"createMessage",
|
|
29620
29737
|
toolResultsOpts,
|
|
29621
|
-
() => createMessageOp(
|
|
29738
|
+
(ctx) => createMessageOp(ctx, toolResultsOpts),
|
|
29622
29739
|
() => makeSyntheticStoredMessage(toolResultsOpts),
|
|
29623
29740
|
assistantMsgQueueId ? [assistantMsgQueueId] : []
|
|
29624
29741
|
);
|
|
@@ -29661,7 +29778,6 @@ function useChatStorage(options) {
|
|
|
29661
29778
|
walletAddress,
|
|
29662
29779
|
signMessage,
|
|
29663
29780
|
embeddedWalletSigner,
|
|
29664
|
-
isEncryptionReady,
|
|
29665
29781
|
enableQueue,
|
|
29666
29782
|
getWalletAddress,
|
|
29667
29783
|
refreshQueueStatus,
|
|
@@ -29980,6 +30096,7 @@ function useChatStorage(options) {
|
|
|
29980
30096
|
createWebSearchPreProcessor,
|
|
29981
30097
|
decodeChunkVector,
|
|
29982
30098
|
decryptConversationTitle,
|
|
30099
|
+
decryptMessageEmbeddingFields,
|
|
29983
30100
|
deleteAllVaultMemoriesForUserOp,
|
|
29984
30101
|
deleteMessageOp,
|
|
29985
30102
|
deleteVaultFolderOp,
|
|
@@ -30060,6 +30177,7 @@ function useChatStorage(options) {
|
|
|
30060
30177
|
sdkMigrations,
|
|
30061
30178
|
sdkModelClasses,
|
|
30062
30179
|
sdkSchema,
|
|
30180
|
+
sealLegacyMessageEmbeddingsOp,
|
|
30063
30181
|
searchVaultMemories,
|
|
30064
30182
|
seedEncryptionKeys,
|
|
30065
30183
|
setLogger,
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -4191,6 +4191,10 @@ declare function deleteMessageOp(ctx: StorageOperationsContext, uniqueId: string
|
|
|
4191
4191
|
declare function upsertMessageOp(ctx: StorageOperationsContext, opts: CreateMessageOptions & {
|
|
4192
4192
|
uniqueId: string;
|
|
4193
4193
|
}): Promise<StoredMessage>;
|
|
4194
|
+
/** Decrypts raw message embedding columns with the cached wallet key. */
|
|
4195
|
+
declare function decryptMessageEmbeddingFields(raw: Record<string, unknown>, walletAddress?: string): Promise<Record<string, unknown>>;
|
|
4196
|
+
/** Seals legacy message embedding columns and discards chunks with invalid plaintext offsets. */
|
|
4197
|
+
declare function sealLegacyMessageEmbeddingsOp(ctx: StorageOperationsContext): Promise<number>;
|
|
4194
4198
|
/**
|
|
4195
4199
|
* Removes the plaintext `text` that rows chunked before sdk#889 still carry in
|
|
4196
4200
|
* their `chunks` column. Since #889 `updateMessageChunksOp` never writes it, so
|
|
@@ -11525,4 +11529,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11525
11529
|
*/
|
|
11526
11530
|
declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
|
|
11527
11531
|
|
|
11528
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, 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, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, 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 LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 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 RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, 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 RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, 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 StoredTopic, 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, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, 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 VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, 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, type WriteFailureReason, 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, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptToolCallEventsOp, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, 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, memoryCipher, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11532
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, 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, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, 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 LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 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 RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, 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 RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, 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 StoredTopic, 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, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, 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 VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, 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, type WriteFailureReason, 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, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptMessageEmbeddingFields, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptToolCallEventsOp, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, 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, memoryCipher, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -4191,6 +4191,10 @@ declare function deleteMessageOp(ctx: StorageOperationsContext, uniqueId: string
|
|
|
4191
4191
|
declare function upsertMessageOp(ctx: StorageOperationsContext, opts: CreateMessageOptions & {
|
|
4192
4192
|
uniqueId: string;
|
|
4193
4193
|
}): Promise<StoredMessage>;
|
|
4194
|
+
/** Decrypts raw message embedding columns with the cached wallet key. */
|
|
4195
|
+
declare function decryptMessageEmbeddingFields(raw: Record<string, unknown>, walletAddress?: string): Promise<Record<string, unknown>>;
|
|
4196
|
+
/** Seals legacy message embedding columns and discards chunks with invalid plaintext offsets. */
|
|
4197
|
+
declare function sealLegacyMessageEmbeddingsOp(ctx: StorageOperationsContext): Promise<number>;
|
|
4194
4198
|
/**
|
|
4195
4199
|
* Removes the plaintext `text` that rows chunked before sdk#889 still carry in
|
|
4196
4200
|
* their `chunks` column. Since #889 `updateMessageChunksOp` never writes it, so
|
|
@@ -11525,4 +11529,4 @@ interface UseChatStorageResult extends BaseUseChatStorageResult {
|
|
|
11525
11529
|
*/
|
|
11526
11530
|
declare function useChatStorage(options: UseChatStorageOptions): UseChatStorageResult;
|
|
11527
11531
|
|
|
11528
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, 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, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, 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 LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 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 RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, 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 RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, 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 StoredTopic, 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, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, 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 VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, 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, type WriteFailureReason, 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, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptToolCallEventsOp, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, 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, memoryCipher, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11532
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkSearchStats, 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, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, 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 LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, 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 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 RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, 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 RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, 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 StoredTopic, 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, TOPIC_SALIENCE_WEIGHTS, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, 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 VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, 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, type WriteFailureReason, 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, clearModelsCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptMessageEmbeddingFields, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptToolCallEventsOp, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractReservationReceipts, 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, memoryCipher, migrateMemoriesToRemote, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, primaryTopic, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|