@proteos/sdk 0.19.0 → 0.20.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.cjs CHANGED
@@ -526,6 +526,7 @@ var PLATFORM_ENTITIES = [
526
526
  { slug: "messages", name: "Messages" },
527
527
  { slug: "agent-listeners", name: "Agent Listeners" },
528
528
  { slug: "transcriptions", name: "Transcriptions" },
529
+ { slug: "glossary-terms", name: "Glossary Terms" },
529
530
  // Connectors (connector-service). `connections` above is shared; this is the
530
531
  // manifest catalog.
531
532
  { slug: "connectors", name: "Connectors" }
@@ -1139,7 +1140,11 @@ var ConversationClient = class {
1139
1140
  conversations;
1140
1141
  messages;
1141
1142
  agentListeners;
1143
+ /** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
1144
+ glossaryTerms;
1142
1145
  transcriptions;
1146
+ /** Meeting bots (Ava): dispatch into a meeting URL, remove from a meeting. */
1147
+ meetings;
1143
1148
  /** Realtime speech-to-text (dictation) — moved here from agent-service. */
1144
1149
  voice;
1145
1150
  constructor(client) {
@@ -1147,10 +1152,24 @@ var ConversationClient = class {
1147
1152
  this.conversations = new ConversationServiceImpl(client);
1148
1153
  this.messages = new MessageServiceImpl(client);
1149
1154
  this.agentListeners = new AgentListenerServiceImpl(client);
1155
+ this.glossaryTerms = new GlossaryTermServiceImpl(client);
1150
1156
  this.transcriptions = new TranscriptionServiceImpl(client);
1157
+ this.meetings = new MeetingServiceImpl(client);
1151
1158
  this.voice = new VoiceServiceImpl(client);
1152
1159
  }
1153
1160
  };
1161
+ var MeetingServiceImpl = class {
1162
+ constructor(client) {
1163
+ this.client = client;
1164
+ }
1165
+ client;
1166
+ dispatch(request) {
1167
+ return this.client.request("POST", `${CONVERSATION_BASE_PATH}/meetings`, request);
1168
+ }
1169
+ remove(conversationId) {
1170
+ return this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}`);
1171
+ }
1172
+ };
1154
1173
  var ConnectionServiceImpl = class {
1155
1174
  constructor(client) {
1156
1175
  this.client = client;
@@ -1272,6 +1291,27 @@ var AgentListenerServiceImpl = class {
1272
1291
  await this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`);
1273
1292
  }
1274
1293
  };
1294
+ var GlossaryTermServiceImpl = class {
1295
+ constructor(client) {
1296
+ this.client = client;
1297
+ }
1298
+ client;
1299
+ list(query = {}) {
1300
+ return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/glossary-terms`, query);
1301
+ }
1302
+ get(id) {
1303
+ return this.client.request("GET", `${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`);
1304
+ }
1305
+ create(request) {
1306
+ return this.client.request("POST", `${CONVERSATION_BASE_PATH}/glossary-terms`, request);
1307
+ }
1308
+ update(id, request) {
1309
+ return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`, request);
1310
+ }
1311
+ async delete(id) {
1312
+ await this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`);
1313
+ }
1314
+ };
1275
1315
  var TranscriptionServiceImpl = class {
1276
1316
  constructor(client) {
1277
1317
  this.client = client;