@proteos/sdk 0.20.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 +25 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +51 -1
- package/dist/index.d.ts +51 -1
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/auth/platform-entities.ts +1 -0
- package/src/conversation/index.ts +45 -0
- package/src/conversation/types.ts +39 -0
- package/src/index.ts +5 -0
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,6 +1140,8 @@ 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;
|
|
1143
1146
|
/** Meeting bots (Ava): dispatch into a meeting URL, remove from a meeting. */
|
|
1144
1147
|
meetings;
|
|
@@ -1149,6 +1152,7 @@ var ConversationClient = class {
|
|
|
1149
1152
|
this.conversations = new ConversationServiceImpl(client);
|
|
1150
1153
|
this.messages = new MessageServiceImpl(client);
|
|
1151
1154
|
this.agentListeners = new AgentListenerServiceImpl(client);
|
|
1155
|
+
this.glossaryTerms = new GlossaryTermServiceImpl(client);
|
|
1152
1156
|
this.transcriptions = new TranscriptionServiceImpl(client);
|
|
1153
1157
|
this.meetings = new MeetingServiceImpl(client);
|
|
1154
1158
|
this.voice = new VoiceServiceImpl(client);
|
|
@@ -1287,6 +1291,27 @@ var AgentListenerServiceImpl = class {
|
|
|
1287
1291
|
await this.client.request("DELETE", `${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`);
|
|
1288
1292
|
}
|
|
1289
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
|
+
};
|
|
1290
1315
|
var TranscriptionServiceImpl = class {
|
|
1291
1316
|
constructor(client) {
|
|
1292
1317
|
this.client = client;
|