@proteos/sdk 0.40.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 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);
@@ -1772,6 +1778,88 @@ var ConversationTypeServiceImpl = class {
1772
1778
  );
1773
1779
  }
1774
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
+ };
1775
1863
  var TranscriptionServiceImpl = class {
1776
1864
  constructor(client) {
1777
1865
  this.client = client;