@proteos/sdk 0.34.0 → 0.35.1

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.js CHANGED
@@ -586,6 +586,8 @@ var PLATFORM_ENTITIES = [
586
586
  { slug: "agent-listeners", name: "Agent Listeners" },
587
587
  { slug: "transcriptions", name: "Transcriptions" },
588
588
  { slug: "glossary-terms", name: "Glossary Terms" },
589
+ // Mistranscribed terms proposed by the post-transcription review pass.
590
+ { slug: "mistranscribed-terms", name: "Mistranscribed Terms" },
589
591
  // Connectors (connector-service). `connections` above is shared; this is the
590
592
  // manifest catalog.
591
593
  { slug: "connectors", name: "Connectors" }
@@ -1269,7 +1271,11 @@ var ConversationClient = class {
1269
1271
  conversationFilters;
1270
1272
  /** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
1271
1273
  glossaryTerms;
1274
+ /** Conversation taxonomy: the types the pre-summary classifier assigns. */
1275
+ conversationTypes;
1272
1276
  transcriptions;
1277
+ /** Review-pass findings: likely misheard terms awaiting accept/reject. */
1278
+ mistranscribedTerms;
1273
1279
  /** Meeting bots (Ava): dispatch into a meeting URL, remove from a meeting. */
1274
1280
  meetings;
1275
1281
  /** Realtime speech-to-text (dictation) — moved here from agent-service. */
@@ -1282,7 +1288,9 @@ var ConversationClient = class {
1282
1288
  this.agentListeners = new AgentListenerServiceImpl(client);
1283
1289
  this.conversationFilters = new ConversationFilterServiceImpl(client);
1284
1290
  this.glossaryTerms = new GlossaryTermServiceImpl(client);
1291
+ this.conversationTypes = new ConversationTypeServiceImpl(client);
1285
1292
  this.transcriptions = new TranscriptionServiceImpl(client);
1293
+ this.mistranscribedTerms = new MistranscribedTermServiceImpl(client);
1286
1294
  this.meetings = new MeetingServiceImpl(client);
1287
1295
  this.voice = new VoiceServiceImpl(client);
1288
1296
  }
@@ -1673,6 +1681,48 @@ var GlossaryTermServiceImpl = class {
1673
1681
  );
1674
1682
  }
1675
1683
  };
1684
+ var ConversationTypeServiceImpl = class {
1685
+ constructor(client) {
1686
+ this.client = client;
1687
+ }
1688
+ client;
1689
+ list(query = {}) {
1690
+ return this.client.requestWithQuery(
1691
+ "GET",
1692
+ `${CONVERSATION_BASE_PATH}/conversation-types`,
1693
+ query
1694
+ );
1695
+ }
1696
+ get(key) {
1697
+ return this.client.request(
1698
+ "GET",
1699
+ `${CONVERSATION_BASE_PATH}/conversation-types/${encodeURIComponent(key)}`
1700
+ );
1701
+ }
1702
+ create(request) {
1703
+ return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversation-types`, request);
1704
+ }
1705
+ update(key, request) {
1706
+ return this.client.request(
1707
+ "PATCH",
1708
+ `${CONVERSATION_BASE_PATH}/conversation-types/${encodeURIComponent(key)}`,
1709
+ request
1710
+ );
1711
+ }
1712
+ upsert(key, request) {
1713
+ return this.client.request(
1714
+ "PUT",
1715
+ `${CONVERSATION_BASE_PATH}/conversation-types/${encodeURIComponent(key)}`,
1716
+ { ...request, key }
1717
+ );
1718
+ }
1719
+ async delete(key) {
1720
+ await this.client.request(
1721
+ "DELETE",
1722
+ `${CONVERSATION_BASE_PATH}/conversation-types/${encodeURIComponent(key)}`
1723
+ );
1724
+ }
1725
+ };
1676
1726
  var TranscriptionServiceImpl = class {
1677
1727
  constructor(client) {
1678
1728
  this.client = client;
@@ -1690,6 +1740,20 @@ var TranscriptionServiceImpl = class {
1690
1740
  `${CONVERSATION_BASE_PATH}/transcriptions/${encodeURIComponent(id)}`
1691
1741
  );
1692
1742
  }
1743
+ update(id, request) {
1744
+ return this.client.request(
1745
+ "PATCH",
1746
+ `${CONVERSATION_BASE_PATH}/transcriptions/${encodeURIComponent(id)}`,
1747
+ request
1748
+ );
1749
+ }
1750
+ review(id) {
1751
+ return this.client.request(
1752
+ "POST",
1753
+ `${CONVERSATION_BASE_PATH}/transcriptions/${encodeURIComponent(id)}/review`,
1754
+ {}
1755
+ );
1756
+ }
1693
1757
  materialize(id, request = {}) {
1694
1758
  return this.client.request(
1695
1759
  "POST",
@@ -1698,6 +1762,39 @@ var TranscriptionServiceImpl = class {
1698
1762
  );
1699
1763
  }
1700
1764
  };
1765
+ var MistranscribedTermServiceImpl = class {
1766
+ constructor(client) {
1767
+ this.client = client;
1768
+ }
1769
+ client;
1770
+ list(query = {}) {
1771
+ return this.client.requestWithQuery(
1772
+ "GET",
1773
+ `${CONVERSATION_BASE_PATH}/mistranscribed-terms`,
1774
+ query
1775
+ );
1776
+ }
1777
+ get(id) {
1778
+ return this.client.request(
1779
+ "GET",
1780
+ `${CONVERSATION_BASE_PATH}/mistranscribed-terms/${encodeURIComponent(id)}`
1781
+ );
1782
+ }
1783
+ accept(id, request = {}) {
1784
+ return this.client.request(
1785
+ "POST",
1786
+ `${CONVERSATION_BASE_PATH}/mistranscribed-terms/${encodeURIComponent(id)}/accept`,
1787
+ request
1788
+ );
1789
+ }
1790
+ reject(id) {
1791
+ return this.client.request(
1792
+ "POST",
1793
+ `${CONVERSATION_BASE_PATH}/mistranscribed-terms/${encodeURIComponent(id)}/reject`,
1794
+ {}
1795
+ );
1796
+ }
1797
+ };
1701
1798
 
1702
1799
  // src/data/queries.ts
1703
1800
  var QUERY_BASE_PATH = "/data/v1/query";