@maximem/synap-js-sdk 0.5.6 → 0.5.8
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 +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +10 -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,9 @@ function matchedQueries(item = {}) {
|
|
|
638
638
|
function normalizeTemporalFields(item = {}) {
|
|
639
639
|
return {
|
|
640
640
|
eventDate: pick(item["eventDate"], item.event_date, null),
|
|
641
|
+
eventEnd: pick(item["eventEnd"], item.event_end, null),
|
|
642
|
+
eventPrecision: pick(item["eventPrecision"], item.event_precision, null),
|
|
643
|
+
saidAt: pick(item["saidAt"], item.said_at, null),
|
|
641
644
|
validUntil: pick(item["validUntil"], item.valid_until, null),
|
|
642
645
|
temporalCategory: pick(item["temporalCategory"], item.temporal_category, null),
|
|
643
646
|
temporalConfidence: pick(item["temporalConfidence"], item.temporal_confidence, 0)
|
|
@@ -697,6 +700,9 @@ function normalizeTemporalEvent(item = {}) {
|
|
|
697
700
|
id: item.id || "",
|
|
698
701
|
content: item.content || "",
|
|
699
702
|
eventDate: pick(item["eventDate"], item.event_date, null),
|
|
703
|
+
eventEnd: pick(item["eventEnd"], item.event_end, null),
|
|
704
|
+
eventPrecision: pick(item["eventPrecision"], item.event_precision, null),
|
|
705
|
+
saidAt: pick(item["saidAt"], item.said_at, null),
|
|
700
706
|
validUntil: pick(item["validUntil"], item.valid_until, null),
|
|
701
707
|
temporalCategory: pick(item["temporalCategory"], item.temporal_category, ""),
|
|
702
708
|
temporalConfidence: pick(item["temporalConfidence"], item.temporal_confidence, 0),
|
|
@@ -760,6 +766,7 @@ var dt = (v) => v ? String(v) : null;
|
|
|
760
766
|
function temporal(item) {
|
|
761
767
|
return {
|
|
762
768
|
event_date: dt(item["event_date"]),
|
|
769
|
+
said_at: dt(item["said_at"]),
|
|
763
770
|
valid_until: dt(item["valid_until"]),
|
|
764
771
|
temporal_category: _nullishCoalesce(item["temporal_category"], () => ( null)),
|
|
765
772
|
temporal_confidence: n(item["temporal_confidence"], 0)
|
|
@@ -1511,7 +1518,7 @@ function createInstanceNamespace(credentials, cache, onTurn) {
|
|
|
1511
1518
|
if (client !== null) {
|
|
1512
1519
|
throw new (0, _chunkT372OL3Qcjs.ListeningAlreadyActiveError)("Listening is already active on this instance");
|
|
1513
1520
|
}
|
|
1514
|
-
const { GrpcStreamClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./stream-client-
|
|
1521
|
+
const { GrpcStreamClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./stream-client-N46JBT5A.cjs")));
|
|
1515
1522
|
const onContext = _nullishCoalesce(options.on_context, () => ( options.onContext));
|
|
1516
1523
|
const onDisconnect = _nullishCoalesce(options.on_disconnect, () => ( options.onDisconnect));
|
|
1517
1524
|
const onReconnect = _nullishCoalesce(options.on_reconnect, () => ( options.onReconnect));
|
|
@@ -1683,7 +1690,7 @@ function createInstanceNamespace(credentials, cache, onTurn) {
|
|
|
1683
1690
|
}
|
|
1684
1691
|
|
|
1685
1692
|
// src/version.ts
|
|
1686
|
-
var SDK_VERSION = "0.5.
|
|
1693
|
+
var SDK_VERSION = "0.5.8";
|
|
1687
1694
|
|
|
1688
1695
|
// src/registry.ts
|
|
1689
1696
|
var instances = /* @__PURE__ */ new Map();
|
|
@@ -2112,6 +2119,7 @@ function normalise(item) {
|
|
|
2112
2119
|
detected_at: _nullishCoalesce(pick2(item, "detected_at", "extracted_at", "created_at"), () => ( null)),
|
|
2113
2120
|
metadata: _nullishCoalesce(pick2(item, "metadata"), () => ( {})),
|
|
2114
2121
|
event_date: _nullishCoalesce(pick2(item, "event_date"), () => ( null)),
|
|
2122
|
+
said_at: _nullishCoalesce(pick2(item, "said_at"), () => ( null)),
|
|
2115
2123
|
valid_until: _nullishCoalesce(pick2(item, "valid_until"), () => ( null)),
|
|
2116
2124
|
temporal_category: _nullishCoalesce(pick2(item, "temporal_category"), () => ( null)),
|
|
2117
2125
|
temporal_confidence: Number(_nullishCoalesce(pick2(item, "temporal_confidence"), () => ( 0)))
|