@proteos/sdk 0.39.0 → 0.41.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 +98 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +245 -15
- package/dist/index.d.ts +245 -15
- package/dist/index.js +98 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/agent/index.ts +1 -0
- package/src/agent/session-types.ts +9 -2
- package/src/agent/types.ts +15 -2
- package/src/conversation/index.ts +170 -3
- package/src/conversation/types.ts +184 -6
- package/src/index.ts +16 -0
package/dist/index.cjs
CHANGED
|
@@ -1315,6 +1315,10 @@ var ConversationClient = class {
|
|
|
1315
1315
|
glossaryTerms;
|
|
1316
1316
|
/** Conversation taxonomy: the types the pre-summary classifier assigns. */
|
|
1317
1317
|
conversationTypes;
|
|
1318
|
+
/** Generic audience taxonomy; membership lives on the contact. */
|
|
1319
|
+
contactGroups;
|
|
1320
|
+
/** Tone-of-voice synthesis: per-user setups + the generated profiles. */
|
|
1321
|
+
toneProfiles;
|
|
1318
1322
|
transcriptions;
|
|
1319
1323
|
/** Review-pass findings: likely misheard terms awaiting accept/reject. */
|
|
1320
1324
|
mistranscribedTerms;
|
|
@@ -1331,6 +1335,8 @@ var ConversationClient = class {
|
|
|
1331
1335
|
this.conversationFilters = new ConversationFilterServiceImpl(client);
|
|
1332
1336
|
this.glossaryTerms = new GlossaryTermServiceImpl(client);
|
|
1333
1337
|
this.conversationTypes = new ConversationTypeServiceImpl(client);
|
|
1338
|
+
this.contactGroups = new ContactGroupServiceImpl(client);
|
|
1339
|
+
this.toneProfiles = new ToneProfileServiceImpl(client);
|
|
1334
1340
|
this.transcriptions = new TranscriptionServiceImpl(client);
|
|
1335
1341
|
this.mistranscribedTerms = new MistranscribedTermServiceImpl(client);
|
|
1336
1342
|
this.meetings = new MeetingServiceImpl(client);
|
|
@@ -1382,10 +1388,11 @@ var ConnectionServiceImpl = class {
|
|
|
1382
1388
|
request
|
|
1383
1389
|
);
|
|
1384
1390
|
}
|
|
1385
|
-
async delete(id) {
|
|
1386
|
-
await this.client.
|
|
1391
|
+
async delete(id, query = {}) {
|
|
1392
|
+
await this.client.requestWithQuery(
|
|
1387
1393
|
"DELETE",
|
|
1388
|
-
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}
|
|
1394
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`,
|
|
1395
|
+
query
|
|
1389
1396
|
);
|
|
1390
1397
|
}
|
|
1391
1398
|
install(id) {
|
|
@@ -1537,6 +1544,12 @@ var ConversationServiceImpl = class {
|
|
|
1537
1544
|
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`
|
|
1538
1545
|
);
|
|
1539
1546
|
}
|
|
1547
|
+
delete(id) {
|
|
1548
|
+
return this.client.request(
|
|
1549
|
+
"DELETE",
|
|
1550
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`
|
|
1551
|
+
);
|
|
1552
|
+
}
|
|
1540
1553
|
markRead(id) {
|
|
1541
1554
|
return this.client.request(
|
|
1542
1555
|
"POST",
|
|
@@ -1765,6 +1778,88 @@ var ConversationTypeServiceImpl = class {
|
|
|
1765
1778
|
);
|
|
1766
1779
|
}
|
|
1767
1780
|
};
|
|
1781
|
+
var ContactGroupServiceImpl = class {
|
|
1782
|
+
constructor(client) {
|
|
1783
|
+
this.client = client;
|
|
1784
|
+
}
|
|
1785
|
+
client;
|
|
1786
|
+
list(query = {}) {
|
|
1787
|
+
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/contact-groups`, query);
|
|
1788
|
+
}
|
|
1789
|
+
get(key) {
|
|
1790
|
+
return this.client.request(
|
|
1791
|
+
"GET",
|
|
1792
|
+
`${CONVERSATION_BASE_PATH}/contact-groups/${encodeURIComponent(key)}`
|
|
1793
|
+
);
|
|
1794
|
+
}
|
|
1795
|
+
create(request) {
|
|
1796
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/contact-groups`, request);
|
|
1797
|
+
}
|
|
1798
|
+
update(key, request) {
|
|
1799
|
+
return this.client.request(
|
|
1800
|
+
"PATCH",
|
|
1801
|
+
`${CONVERSATION_BASE_PATH}/contact-groups/${encodeURIComponent(key)}`,
|
|
1802
|
+
request
|
|
1803
|
+
);
|
|
1804
|
+
}
|
|
1805
|
+
upsert(key, request) {
|
|
1806
|
+
return this.client.request(
|
|
1807
|
+
"PUT",
|
|
1808
|
+
`${CONVERSATION_BASE_PATH}/contact-groups/${encodeURIComponent(key)}`,
|
|
1809
|
+
{ ...request, key }
|
|
1810
|
+
);
|
|
1811
|
+
}
|
|
1812
|
+
async delete(key) {
|
|
1813
|
+
await this.client.request(
|
|
1814
|
+
"DELETE",
|
|
1815
|
+
`${CONVERSATION_BASE_PATH}/contact-groups/${encodeURIComponent(key)}`
|
|
1816
|
+
);
|
|
1817
|
+
}
|
|
1818
|
+
};
|
|
1819
|
+
var ToneProfileServiceImpl = class {
|
|
1820
|
+
constructor(client) {
|
|
1821
|
+
this.client = client;
|
|
1822
|
+
}
|
|
1823
|
+
client;
|
|
1824
|
+
listSetups(query = {}) {
|
|
1825
|
+
return this.client.requestWithQuery(
|
|
1826
|
+
"GET",
|
|
1827
|
+
`${CONVERSATION_BASE_PATH}/tone-profile-setups`,
|
|
1828
|
+
query
|
|
1829
|
+
);
|
|
1830
|
+
}
|
|
1831
|
+
createSetup(request) {
|
|
1832
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/tone-profile-setups`, request);
|
|
1833
|
+
}
|
|
1834
|
+
async deleteSetup(id) {
|
|
1835
|
+
await this.client.request(
|
|
1836
|
+
"DELETE",
|
|
1837
|
+
`${CONVERSATION_BASE_PATH}/tone-profile-setups/${encodeURIComponent(id)}`
|
|
1838
|
+
);
|
|
1839
|
+
}
|
|
1840
|
+
async synthesize(setupId) {
|
|
1841
|
+
await this.client.request(
|
|
1842
|
+
"POST",
|
|
1843
|
+
`${CONVERSATION_BASE_PATH}/tone-profile-setups/${encodeURIComponent(setupId)}/synthesize`
|
|
1844
|
+
);
|
|
1845
|
+
}
|
|
1846
|
+
listProfiles(query = {}) {
|
|
1847
|
+
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/tone-profiles`, query);
|
|
1848
|
+
}
|
|
1849
|
+
getProfile(id) {
|
|
1850
|
+
return this.client.request(
|
|
1851
|
+
"GET",
|
|
1852
|
+
`${CONVERSATION_BASE_PATH}/tone-profiles/${encodeURIComponent(id)}`
|
|
1853
|
+
);
|
|
1854
|
+
}
|
|
1855
|
+
resolve(query) {
|
|
1856
|
+
return this.client.requestWithQuery(
|
|
1857
|
+
"GET",
|
|
1858
|
+
`${CONVERSATION_BASE_PATH}/tone-profiles/resolve`,
|
|
1859
|
+
query
|
|
1860
|
+
);
|
|
1861
|
+
}
|
|
1862
|
+
};
|
|
1768
1863
|
var TranscriptionServiceImpl = class {
|
|
1769
1864
|
constructor(client) {
|
|
1770
1865
|
this.client = client;
|