@maximem/synap-js-sdk 0.5.15 → 0.5.16
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/anticipation-cache-LPNKMRBH.cjs.map +1 -1
- package/dist/chunk-ICUFS3B5.cjs.map +1 -1
- package/dist/chunk-QHPVLTQ7.cjs.map +1 -1
- package/dist/chunk-UXNVTP4D.cjs.map +1 -1
- package/dist/chunk-ZKOJDUN4.cjs.map +1 -1
- package/dist/env-55ULHNJZ.cjs.map +1 -1
- package/dist/grpc/index.cjs.map +1 -1
- package/dist/index.cjs +34 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/onnx-encoder-4RSL6ID4.cjs.map +1 -1
- package/dist/stream-client-5GYUWETN.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1067,6 +1067,12 @@ interface TranscriptIngestResult {
|
|
|
1067
1067
|
status: 'queued' | 'duplicate';
|
|
1068
1068
|
turns_recorded: number;
|
|
1069
1069
|
summary_status: 'in_progress' | 'already_compacted' | 'skipped';
|
|
1070
|
+
/**
|
|
1071
|
+
* What the server could not do with this push: no event time supplied
|
|
1072
|
+
* (recency ranking cannot order these memories), or existing turns kept.
|
|
1073
|
+
* Always a list. Since 0.5.16.
|
|
1074
|
+
*/
|
|
1075
|
+
warnings: string[];
|
|
1070
1076
|
/** ISO-8601. */
|
|
1071
1077
|
queued_at: string;
|
|
1072
1078
|
[key: string]: unknown;
|
|
@@ -1873,7 +1879,7 @@ declare class SynapClient {
|
|
|
1873
1879
|
* build when the two disagree, which is the only thing that makes a manual
|
|
1874
1880
|
* publish safe.
|
|
1875
1881
|
*/
|
|
1876
|
-
declare const SDK_VERSION = "0.5.
|
|
1882
|
+
declare const SDK_VERSION = "0.5.16";
|
|
1877
1883
|
|
|
1878
1884
|
/**
|
|
1879
1885
|
* `response_shape: "ranked"`: one list in the order the server ranked it.
|
package/dist/index.d.ts
CHANGED
|
@@ -1067,6 +1067,12 @@ interface TranscriptIngestResult {
|
|
|
1067
1067
|
status: 'queued' | 'duplicate';
|
|
1068
1068
|
turns_recorded: number;
|
|
1069
1069
|
summary_status: 'in_progress' | 'already_compacted' | 'skipped';
|
|
1070
|
+
/**
|
|
1071
|
+
* What the server could not do with this push: no event time supplied
|
|
1072
|
+
* (recency ranking cannot order these memories), or existing turns kept.
|
|
1073
|
+
* Always a list. Since 0.5.16.
|
|
1074
|
+
*/
|
|
1075
|
+
warnings: string[];
|
|
1070
1076
|
/** ISO-8601. */
|
|
1071
1077
|
queued_at: string;
|
|
1072
1078
|
[key: string]: unknown;
|
|
@@ -1873,7 +1879,7 @@ declare class SynapClient {
|
|
|
1873
1879
|
* build when the two disagree, which is the only thing that makes a manual
|
|
1874
1880
|
* publish safe.
|
|
1875
1881
|
*/
|
|
1876
|
-
declare const SDK_VERSION = "0.5.
|
|
1882
|
+
declare const SDK_VERSION = "0.5.16";
|
|
1877
1883
|
|
|
1878
1884
|
/**
|
|
1879
1885
|
* `response_shape: "ranked"`: one list in the order the server ranked it.
|
package/dist/index.js
CHANGED
|
@@ -1376,7 +1376,9 @@ function buildIngestTranscriptBody(options) {
|
|
|
1376
1376
|
if (startedAt !== void 0) body["started_at"] = startedAt;
|
|
1377
1377
|
if (endedAt !== void 0) body["ended_at"] = endedAt;
|
|
1378
1378
|
const scopePath = either2(o2, "scope_path", "scopePath");
|
|
1379
|
-
if (scopePath !== void 0)
|
|
1379
|
+
if (scopePath !== void 0 && scopePath !== null && Object.keys(scopePath).length > 0) {
|
|
1380
|
+
body["scope"] = scopePath;
|
|
1381
|
+
}
|
|
1380
1382
|
return body;
|
|
1381
1383
|
}
|
|
1382
1384
|
function buildCompactBody(options) {
|
|
@@ -1545,8 +1547,17 @@ function createConversationNamespace(transport, subscribers = new CompactionSubs
|
|
|
1545
1547
|
return result;
|
|
1546
1548
|
},
|
|
1547
1549
|
async ingest_transcript(options) {
|
|
1550
|
+
const o2 = options;
|
|
1551
|
+
await transport.checkCustomerId(
|
|
1552
|
+
o2["customer_id"] ?? o2["customerId"],
|
|
1553
|
+
"conversation.ingest_transcript"
|
|
1554
|
+
);
|
|
1548
1555
|
const body = buildIngestTranscriptBody(options);
|
|
1549
|
-
const
|
|
1556
|
+
const raw = await transport.request("conversations_ingest", { body });
|
|
1557
|
+
const result = {
|
|
1558
|
+
...raw,
|
|
1559
|
+
warnings: Array.isArray(raw?.warnings) ? raw.warnings.map(String) : []
|
|
1560
|
+
};
|
|
1550
1561
|
onWrite({
|
|
1551
1562
|
userId: body["user_id"],
|
|
1552
1563
|
customerId: body["customer_id"]
|
|
@@ -2012,7 +2023,7 @@ function createInstanceNamespace(credentials, cache, onTurn, agentModel = () =>
|
|
|
2012
2023
|
}
|
|
2013
2024
|
|
|
2014
2025
|
// src/version.ts
|
|
2015
|
-
var SDK_VERSION = "0.5.
|
|
2026
|
+
var SDK_VERSION = "0.5.16";
|
|
2016
2027
|
|
|
2017
2028
|
// src/registry.ts
|
|
2018
2029
|
var instances = /* @__PURE__ */ new Map();
|