@maximem/synap-js-sdk 0.5.6 → 0.5.7
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-LRE3TLK4.cjs.map +1 -1
- package/dist/{chunk-RP4YOEUN.js → chunk-FXGLT6AT.js} +6 -2
- package/dist/chunk-FXGLT6AT.js.map +1 -0
- package/dist/{chunk-WE4QSR6A.cjs → chunk-HCULAVJC.cjs} +6 -2
- package/dist/chunk-HCULAVJC.cjs.map +1 -0
- package/dist/chunk-T372OL3Q.cjs.map +1 -1
- package/dist/chunk-T6U5PVAD.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 +3 -3
- package/dist/grpc/index.cjs.map +1 -1
- package/dist/grpc/index.d.cts +1 -1
- package/dist/grpc/index.d.ts +1 -1
- package/dist/grpc/index.js +2 -2
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/stream-client-N46JBT5A.cjs +16 -0
- package/dist/stream-client-N46JBT5A.cjs.map +1 -0
- package/dist/{stream-client-Y5NFAMIH.js → stream-client-VWKINE47.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-RP4YOEUN.js.map +0 -1
- package/dist/chunk-WE4QSR6A.cjs.map +0 -1
- package/dist/stream-client-A6IO6E47.cjs +0 -16
- package/dist/stream-client-A6IO6E47.cjs.map +0 -1
- /package/dist/{stream-client-Y5NFAMIH.js.map → stream-client-VWKINE47.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -638,6 +638,7 @@ function matchedQueries(item = {}) {
|
|
|
638
638
|
function normalizeTemporalFields(item = {}) {
|
|
639
639
|
return {
|
|
640
640
|
eventDate: pick(item["eventDate"], item.event_date, null),
|
|
641
|
+
saidAt: pick(item["saidAt"], item.said_at, null),
|
|
641
642
|
validUntil: pick(item["validUntil"], item.valid_until, null),
|
|
642
643
|
temporalCategory: pick(item["temporalCategory"], item.temporal_category, null),
|
|
643
644
|
temporalConfidence: pick(item["temporalConfidence"], item.temporal_confidence, 0)
|
|
@@ -697,6 +698,7 @@ function normalizeTemporalEvent(item = {}) {
|
|
|
697
698
|
id: item.id || "",
|
|
698
699
|
content: item.content || "",
|
|
699
700
|
eventDate: pick(item["eventDate"], item.event_date, null),
|
|
701
|
+
saidAt: pick(item["saidAt"], item.said_at, null),
|
|
700
702
|
validUntil: pick(item["validUntil"], item.valid_until, null),
|
|
701
703
|
temporalCategory: pick(item["temporalCategory"], item.temporal_category, ""),
|
|
702
704
|
temporalConfidence: pick(item["temporalConfidence"], item.temporal_confidence, 0),
|
|
@@ -760,6 +762,7 @@ var dt = (v) => v ? String(v) : null;
|
|
|
760
762
|
function temporal(item) {
|
|
761
763
|
return {
|
|
762
764
|
event_date: dt(item["event_date"]),
|
|
765
|
+
said_at: dt(item["said_at"]),
|
|
763
766
|
valid_until: dt(item["valid_until"]),
|
|
764
767
|
temporal_category: _nullishCoalesce(item["temporal_category"], () => ( null)),
|
|
765
768
|
temporal_confidence: n(item["temporal_confidence"], 0)
|
|
@@ -1511,7 +1514,7 @@ function createInstanceNamespace(credentials, cache, onTurn) {
|
|
|
1511
1514
|
if (client !== null) {
|
|
1512
1515
|
throw new (0, _chunkT372OL3Qcjs.ListeningAlreadyActiveError)("Listening is already active on this instance");
|
|
1513
1516
|
}
|
|
1514
|
-
const { GrpcStreamClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./stream-client-
|
|
1517
|
+
const { GrpcStreamClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./stream-client-N46JBT5A.cjs")));
|
|
1515
1518
|
const onContext = _nullishCoalesce(options.on_context, () => ( options.onContext));
|
|
1516
1519
|
const onDisconnect = _nullishCoalesce(options.on_disconnect, () => ( options.onDisconnect));
|
|
1517
1520
|
const onReconnect = _nullishCoalesce(options.on_reconnect, () => ( options.onReconnect));
|
|
@@ -1683,7 +1686,7 @@ function createInstanceNamespace(credentials, cache, onTurn) {
|
|
|
1683
1686
|
}
|
|
1684
1687
|
|
|
1685
1688
|
// src/version.ts
|
|
1686
|
-
var SDK_VERSION = "0.5.
|
|
1689
|
+
var SDK_VERSION = "0.5.7";
|
|
1687
1690
|
|
|
1688
1691
|
// src/registry.ts
|
|
1689
1692
|
var instances = /* @__PURE__ */ new Map();
|
|
@@ -2112,6 +2115,7 @@ function normalise(item) {
|
|
|
2112
2115
|
detected_at: _nullishCoalesce(pick2(item, "detected_at", "extracted_at", "created_at"), () => ( null)),
|
|
2113
2116
|
metadata: _nullishCoalesce(pick2(item, "metadata"), () => ( {})),
|
|
2114
2117
|
event_date: _nullishCoalesce(pick2(item, "event_date"), () => ( null)),
|
|
2118
|
+
said_at: _nullishCoalesce(pick2(item, "said_at"), () => ( null)),
|
|
2115
2119
|
valid_until: _nullishCoalesce(pick2(item, "valid_until"), () => ( null)),
|
|
2116
2120
|
temporal_category: _nullishCoalesce(pick2(item, "temporal_category"), () => ( null)),
|
|
2117
2121
|
temporal_confidence: Number(_nullishCoalesce(pick2(item, "temporal_confidence"), () => ( 0)))
|