@anuma/sdk 2.7.0 → 3.0.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/{chunk-TCRDSUC6.mjs → chunk-IY7NNIYM.mjs} +149 -42
- package/dist/expo/index.cjs +149 -41
- package/dist/expo/index.d.mts +47 -2
- package/dist/expo/index.d.ts +47 -2
- package/dist/expo/index.mjs +3 -1
- package/dist/expo/{recall-FQU3NUTL.mjs → recall-DJ5LD5WJ.mjs} +1 -1
- package/dist/index.cjs +8 -6
- package/dist/index.mjs +8 -6
- package/dist/react/{chunk-ZXS3KOY4.mjs → chunk-OSDVRDLI.mjs} +151 -44
- package/dist/react/index.cjs +175 -53
- package/dist/react/index.d.mts +47 -2
- package/dist/react/index.d.ts +47 -2
- package/dist/react/index.mjs +27 -11
- package/dist/react/{recall-PV7L3SN3.mjs → recall-3BDCIEQF.mjs} +1 -1
- package/dist/server/{chunk-Z6II54I7.mjs → chunk-QQOIC37O.mjs} +157 -26
- package/dist/server/index.cjs +169 -29
- package/dist/server/index.d.mts +75 -2
- package/dist/server/index.d.ts +75 -2
- package/dist/server/index.mjs +17 -5
- package/dist/server/{recall-CQT24XLH.mjs → recall-6QLUEYB7.mjs} +1 -1
- package/package.json +1 -1
package/dist/server/index.mjs
CHANGED
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
decryptData,
|
|
31
31
|
decryptDataBatch,
|
|
32
32
|
decryptDataBytes,
|
|
33
|
+
decryptDataBytesFromBytes,
|
|
33
34
|
decryptDataWithKey,
|
|
34
35
|
decryptField,
|
|
35
36
|
decryptJsonField,
|
|
@@ -41,6 +42,7 @@ import {
|
|
|
41
42
|
embedMessage,
|
|
42
43
|
encryptData,
|
|
43
44
|
encryptDataBatch,
|
|
45
|
+
encryptDataBytes,
|
|
44
46
|
encryptDataWithKey,
|
|
45
47
|
encryptField,
|
|
46
48
|
encryptJsonField,
|
|
@@ -56,6 +58,7 @@ import {
|
|
|
56
58
|
getConversationsByProjectOp,
|
|
57
59
|
getConversationsLazyOp,
|
|
58
60
|
getConversationsOp,
|
|
61
|
+
getConversationsPageOp,
|
|
59
62
|
getEncryptionKey,
|
|
60
63
|
getMemoriesNeedingTopicExtractionOp,
|
|
61
64
|
getMessagesOp,
|
|
@@ -105,7 +108,7 @@ import {
|
|
|
105
108
|
updateVaultMemoryOp,
|
|
106
109
|
upsertMessageOp,
|
|
107
110
|
vaultMemoryToStored
|
|
108
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-QQOIC37O.mjs";
|
|
109
112
|
import {
|
|
110
113
|
createStreamingDeAnonymizer,
|
|
111
114
|
resolvePiiRedactor
|
|
@@ -7083,6 +7086,7 @@ var WalletPoller = class {
|
|
|
7083
7086
|
};
|
|
7084
7087
|
|
|
7085
7088
|
// src/lib/processors/encoding.ts
|
|
7089
|
+
var B64_ENCODE_CHUNK = 32768 * 3;
|
|
7086
7090
|
async function dataUrlToArrayBuffer(dataUrl) {
|
|
7087
7091
|
if (dataUrl.startsWith("blob:") || dataUrl.startsWith("http://") || dataUrl.startsWith("https://")) {
|
|
7088
7092
|
const response = await fetch(dataUrl);
|
|
@@ -7105,11 +7109,16 @@ function uint8ArrayToBase64(data) {
|
|
|
7105
7109
|
if (typeof Buffer !== "undefined") {
|
|
7106
7110
|
return Buffer.from(data).toString("base64");
|
|
7107
7111
|
}
|
|
7108
|
-
let
|
|
7109
|
-
for (let i = 0; i < data.length; i
|
|
7110
|
-
|
|
7112
|
+
let base64 = "";
|
|
7113
|
+
for (let i = 0; i < data.length; i += B64_ENCODE_CHUNK) {
|
|
7114
|
+
const slice = data.subarray(i, i + B64_ENCODE_CHUNK);
|
|
7115
|
+
let binary = "";
|
|
7116
|
+
for (let j = 0; j < slice.length; j++) {
|
|
7117
|
+
binary += String.fromCharCode(slice[j]);
|
|
7118
|
+
}
|
|
7119
|
+
base64 += btoa(binary);
|
|
7111
7120
|
}
|
|
7112
|
-
return
|
|
7121
|
+
return base64;
|
|
7113
7122
|
}
|
|
7114
7123
|
|
|
7115
7124
|
// src/lib/processors/ExcelProcessor.ts
|
|
@@ -11546,6 +11555,7 @@ export {
|
|
|
11546
11555
|
decryptData,
|
|
11547
11556
|
decryptDataBatch,
|
|
11548
11557
|
decryptDataBytes,
|
|
11558
|
+
decryptDataBytesFromBytes,
|
|
11549
11559
|
decryptDataWithKey,
|
|
11550
11560
|
defaultServerToolsFilter,
|
|
11551
11561
|
deleteAllVaultMemoriesForUserOp,
|
|
@@ -11564,6 +11574,7 @@ export {
|
|
|
11564
11574
|
embedMessage,
|
|
11565
11575
|
encryptData,
|
|
11566
11576
|
encryptDataBatch,
|
|
11577
|
+
encryptDataBytes,
|
|
11567
11578
|
encryptDataWithKey,
|
|
11568
11579
|
ensureDefaultFoldersOp,
|
|
11569
11580
|
estimateMessagesTokens,
|
|
@@ -11592,6 +11603,7 @@ export {
|
|
|
11592
11603
|
getConversationsByProjectOp,
|
|
11593
11604
|
getConversationsLazyOp,
|
|
11594
11605
|
getConversationsOp,
|
|
11606
|
+
getConversationsPageOp,
|
|
11595
11607
|
getDocumentsOp,
|
|
11596
11608
|
getEncryptionKey,
|
|
11597
11609
|
getImagesOp,
|