@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/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-A6IO6E47.cjs")));
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.6";
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)))