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