memorysync-sdk 1.7.3 → 1.8.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/index.d.mts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +60 -60
package/dist/index.mjs
CHANGED
|
@@ -532,7 +532,7 @@ var IntegrationsNamespace = class extends Namespace {
|
|
|
532
532
|
};
|
|
533
533
|
|
|
534
534
|
// src/control-plane.ts
|
|
535
|
-
var SDK_VERSION = "1.
|
|
535
|
+
var SDK_VERSION = "1.8.0";
|
|
536
536
|
function safeJson(text) {
|
|
537
537
|
try {
|
|
538
538
|
return JSON.parse(text);
|
|
@@ -1104,7 +1104,7 @@ function asSkipped(raw, defaultReason) {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
return null;
|
|
1106
1106
|
}
|
|
1107
|
-
var SDK_VERSION2 = "1.
|
|
1107
|
+
var SDK_VERSION2 = "1.8.0";
|
|
1108
1108
|
function camelToSnakeKey(key) {
|
|
1109
1109
|
return key.replace(/([A-Z])/g, "_$1").toLowerCase();
|
|
1110
1110
|
}
|
|
@@ -1271,6 +1271,7 @@ var MemorySyncClient = class {
|
|
|
1271
1271
|
if (req.sessionId !== void 0) body.session_id = req.sessionId;
|
|
1272
1272
|
if (req.metadata !== void 0) body.metadata = req.metadata;
|
|
1273
1273
|
if (req.endUserId !== void 0) body.end_user_id = req.endUserId;
|
|
1274
|
+
if (req.clientRef !== void 0) body.client_ref = req.clientRef;
|
|
1274
1275
|
const raw = await this.request("POST", "/memory/add", {
|
|
1275
1276
|
body,
|
|
1276
1277
|
endUserOverride: req.endUserId
|
|
@@ -1291,6 +1292,7 @@ var MemorySyncClient = class {
|
|
|
1291
1292
|
if (i.metadata !== void 0) o.metadata = i.metadata;
|
|
1292
1293
|
if (i.importance !== void 0) o.importance = i.importance;
|
|
1293
1294
|
if (i.endUserId !== void 0) o.end_user_id = i.endUserId;
|
|
1295
|
+
if (i.clientRef !== void 0) o.client_ref = i.clientRef;
|
|
1294
1296
|
return o;
|
|
1295
1297
|
}),
|
|
1296
1298
|
deduplicate: opts.deduplicate ?? true
|