@proteos/sdk 0.31.0 → 0.32.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 +136 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +138 -84
- package/dist/index.d.ts +138 -84
- package/dist/index.js +136 -25
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/conversation/index.ts +217 -58
- package/src/conversation/types.ts +40 -2
- package/src/index.ts +40 -39
package/dist/index.cjs
CHANGED
|
@@ -1241,10 +1241,16 @@ var MeetingServiceImpl = class {
|
|
|
1241
1241
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/meetings`, request);
|
|
1242
1242
|
}
|
|
1243
1243
|
remove(conversationId) {
|
|
1244
|
-
return this.client.request(
|
|
1244
|
+
return this.client.request(
|
|
1245
|
+
"DELETE",
|
|
1246
|
+
`${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}`
|
|
1247
|
+
);
|
|
1245
1248
|
}
|
|
1246
1249
|
summarize(conversationId) {
|
|
1247
|
-
return this.client.request(
|
|
1250
|
+
return this.client.request(
|
|
1251
|
+
"POST",
|
|
1252
|
+
`${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}/summarize`
|
|
1253
|
+
);
|
|
1248
1254
|
}
|
|
1249
1255
|
};
|
|
1250
1256
|
var ConnectionServiceImpl = class {
|
|
@@ -1256,19 +1262,32 @@ var ConnectionServiceImpl = class {
|
|
|
1256
1262
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/connections`, query);
|
|
1257
1263
|
}
|
|
1258
1264
|
get(id) {
|
|
1259
|
-
return this.client.request(
|
|
1265
|
+
return this.client.request(
|
|
1266
|
+
"GET",
|
|
1267
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`
|
|
1268
|
+
);
|
|
1260
1269
|
}
|
|
1261
1270
|
create(request) {
|
|
1262
1271
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/connections`, request);
|
|
1263
1272
|
}
|
|
1264
1273
|
update(id, request) {
|
|
1265
|
-
return this.client.request(
|
|
1274
|
+
return this.client.request(
|
|
1275
|
+
"PATCH",
|
|
1276
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`,
|
|
1277
|
+
request
|
|
1278
|
+
);
|
|
1266
1279
|
}
|
|
1267
1280
|
async delete(id) {
|
|
1268
|
-
await this.client.request(
|
|
1281
|
+
await this.client.request(
|
|
1282
|
+
"DELETE",
|
|
1283
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}`
|
|
1284
|
+
);
|
|
1269
1285
|
}
|
|
1270
1286
|
install(id) {
|
|
1271
|
-
return this.client.request(
|
|
1287
|
+
return this.client.request(
|
|
1288
|
+
"POST",
|
|
1289
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}/install`
|
|
1290
|
+
);
|
|
1272
1291
|
}
|
|
1273
1292
|
listContactAddresses(connectionId, query = {}) {
|
|
1274
1293
|
return this.client.requestWithQuery(
|
|
@@ -1294,10 +1313,17 @@ var ContactServiceImpl = class {
|
|
|
1294
1313
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/contacts`, query);
|
|
1295
1314
|
}
|
|
1296
1315
|
get(id) {
|
|
1297
|
-
return this.client.request(
|
|
1316
|
+
return this.client.request(
|
|
1317
|
+
"GET",
|
|
1318
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`
|
|
1319
|
+
);
|
|
1298
1320
|
}
|
|
1299
1321
|
update(id, request) {
|
|
1300
|
-
return this.client.request(
|
|
1322
|
+
return this.client.request(
|
|
1323
|
+
"PATCH",
|
|
1324
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`,
|
|
1325
|
+
request
|
|
1326
|
+
);
|
|
1301
1327
|
}
|
|
1302
1328
|
attachAddress(contactId, request) {
|
|
1303
1329
|
return this.client.request(
|
|
@@ -1353,7 +1379,11 @@ var ContactServiceImpl = class {
|
|
|
1353
1379
|
);
|
|
1354
1380
|
}
|
|
1355
1381
|
listMergeProposals(query = {}) {
|
|
1356
|
-
return this.client.requestWithQuery(
|
|
1382
|
+
return this.client.requestWithQuery(
|
|
1383
|
+
"GET",
|
|
1384
|
+
`${CONVERSATION_BASE_PATH}/contact-merge-proposals`,
|
|
1385
|
+
query
|
|
1386
|
+
);
|
|
1357
1387
|
}
|
|
1358
1388
|
approveMergeProposal(proposalId) {
|
|
1359
1389
|
return this.client.request(
|
|
@@ -1377,19 +1407,35 @@ var ConversationServiceImpl = class {
|
|
|
1377
1407
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/conversations`, query);
|
|
1378
1408
|
}
|
|
1379
1409
|
get(id) {
|
|
1380
|
-
return this.client.request(
|
|
1410
|
+
return this.client.request(
|
|
1411
|
+
"GET",
|
|
1412
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`
|
|
1413
|
+
);
|
|
1381
1414
|
}
|
|
1382
1415
|
update(id, request) {
|
|
1383
|
-
return this.client.request(
|
|
1416
|
+
return this.client.request(
|
|
1417
|
+
"PATCH",
|
|
1418
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`,
|
|
1419
|
+
request
|
|
1420
|
+
);
|
|
1384
1421
|
}
|
|
1385
1422
|
end(id) {
|
|
1386
|
-
return this.client.request(
|
|
1423
|
+
return this.client.request(
|
|
1424
|
+
"POST",
|
|
1425
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`
|
|
1426
|
+
);
|
|
1387
1427
|
}
|
|
1388
1428
|
markRead(id) {
|
|
1389
|
-
return this.client.request(
|
|
1429
|
+
return this.client.request(
|
|
1430
|
+
"POST",
|
|
1431
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/read`
|
|
1432
|
+
);
|
|
1390
1433
|
}
|
|
1391
1434
|
markUnread(id) {
|
|
1392
|
-
return this.client.request(
|
|
1435
|
+
return this.client.request(
|
|
1436
|
+
"DELETE",
|
|
1437
|
+
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/read`
|
|
1438
|
+
);
|
|
1393
1439
|
}
|
|
1394
1440
|
unreadCounts() {
|
|
1395
1441
|
return this.client.request("GET", `${CONVERSATION_BASE_PATH}/conversations/unread-counts`);
|
|
@@ -1407,9 +1453,37 @@ var MessageServiceImpl = class {
|
|
|
1407
1453
|
query
|
|
1408
1454
|
);
|
|
1409
1455
|
}
|
|
1456
|
+
get(messageId) {
|
|
1457
|
+
return this.client.request(
|
|
1458
|
+
"GET",
|
|
1459
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}`
|
|
1460
|
+
);
|
|
1461
|
+
}
|
|
1410
1462
|
send(request) {
|
|
1411
1463
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/send`, request);
|
|
1412
1464
|
}
|
|
1465
|
+
draft(request) {
|
|
1466
|
+
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/messages/draft`, request);
|
|
1467
|
+
}
|
|
1468
|
+
updateDraft(messageId, request) {
|
|
1469
|
+
return this.client.request(
|
|
1470
|
+
"PUT",
|
|
1471
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/draft`,
|
|
1472
|
+
request
|
|
1473
|
+
);
|
|
1474
|
+
}
|
|
1475
|
+
sendDraft(messageId) {
|
|
1476
|
+
return this.client.request(
|
|
1477
|
+
"POST",
|
|
1478
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/send`
|
|
1479
|
+
);
|
|
1480
|
+
}
|
|
1481
|
+
rejectDraft(messageId) {
|
|
1482
|
+
return this.client.request(
|
|
1483
|
+
"POST",
|
|
1484
|
+
`${CONVERSATION_BASE_PATH}/messages/${encodeURIComponent(messageId)}/reject`
|
|
1485
|
+
);
|
|
1486
|
+
}
|
|
1413
1487
|
async getReactions(messageId) {
|
|
1414
1488
|
const response = await this.client.request(
|
|
1415
1489
|
"GET",
|
|
@@ -1442,16 +1516,26 @@ var AgentListenerServiceImpl = class {
|
|
|
1442
1516
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/agent-listeners`, query);
|
|
1443
1517
|
}
|
|
1444
1518
|
get(id) {
|
|
1445
|
-
return this.client.request(
|
|
1519
|
+
return this.client.request(
|
|
1520
|
+
"GET",
|
|
1521
|
+
`${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`
|
|
1522
|
+
);
|
|
1446
1523
|
}
|
|
1447
1524
|
create(request) {
|
|
1448
1525
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/agent-listeners`, request);
|
|
1449
1526
|
}
|
|
1450
1527
|
update(id, request) {
|
|
1451
|
-
return this.client.request(
|
|
1528
|
+
return this.client.request(
|
|
1529
|
+
"PATCH",
|
|
1530
|
+
`${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`,
|
|
1531
|
+
request
|
|
1532
|
+
);
|
|
1452
1533
|
}
|
|
1453
1534
|
async delete(id) {
|
|
1454
|
-
await this.client.request(
|
|
1535
|
+
await this.client.request(
|
|
1536
|
+
"DELETE",
|
|
1537
|
+
`${CONVERSATION_BASE_PATH}/agent-listeners/${encodeURIComponent(id)}`
|
|
1538
|
+
);
|
|
1455
1539
|
}
|
|
1456
1540
|
};
|
|
1457
1541
|
var ConversationFilterServiceImpl = class {
|
|
@@ -1460,19 +1544,33 @@ var ConversationFilterServiceImpl = class {
|
|
|
1460
1544
|
}
|
|
1461
1545
|
client;
|
|
1462
1546
|
list(query = {}) {
|
|
1463
|
-
return this.client.requestWithQuery(
|
|
1547
|
+
return this.client.requestWithQuery(
|
|
1548
|
+
"GET",
|
|
1549
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters`,
|
|
1550
|
+
query
|
|
1551
|
+
);
|
|
1464
1552
|
}
|
|
1465
1553
|
get(id) {
|
|
1466
|
-
return this.client.request(
|
|
1554
|
+
return this.client.request(
|
|
1555
|
+
"GET",
|
|
1556
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`
|
|
1557
|
+
);
|
|
1467
1558
|
}
|
|
1468
1559
|
create(request) {
|
|
1469
1560
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversation-filters`, request);
|
|
1470
1561
|
}
|
|
1471
1562
|
update(id, request) {
|
|
1472
|
-
return this.client.request(
|
|
1563
|
+
return this.client.request(
|
|
1564
|
+
"PATCH",
|
|
1565
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`,
|
|
1566
|
+
request
|
|
1567
|
+
);
|
|
1473
1568
|
}
|
|
1474
1569
|
async delete(id) {
|
|
1475
|
-
await this.client.request(
|
|
1570
|
+
await this.client.request(
|
|
1571
|
+
"DELETE",
|
|
1572
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`
|
|
1573
|
+
);
|
|
1476
1574
|
}
|
|
1477
1575
|
listEvents(id, query = {}) {
|
|
1478
1576
|
return this.client.requestWithQuery(
|
|
@@ -1491,16 +1589,26 @@ var GlossaryTermServiceImpl = class {
|
|
|
1491
1589
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/glossary-terms`, query);
|
|
1492
1590
|
}
|
|
1493
1591
|
get(id) {
|
|
1494
|
-
return this.client.request(
|
|
1592
|
+
return this.client.request(
|
|
1593
|
+
"GET",
|
|
1594
|
+
`${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`
|
|
1595
|
+
);
|
|
1495
1596
|
}
|
|
1496
1597
|
create(request) {
|
|
1497
1598
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/glossary-terms`, request);
|
|
1498
1599
|
}
|
|
1499
1600
|
update(id, request) {
|
|
1500
|
-
return this.client.request(
|
|
1601
|
+
return this.client.request(
|
|
1602
|
+
"PATCH",
|
|
1603
|
+
`${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`,
|
|
1604
|
+
request
|
|
1605
|
+
);
|
|
1501
1606
|
}
|
|
1502
1607
|
async delete(id) {
|
|
1503
|
-
await this.client.request(
|
|
1608
|
+
await this.client.request(
|
|
1609
|
+
"DELETE",
|
|
1610
|
+
`${CONVERSATION_BASE_PATH}/glossary-terms/${encodeURIComponent(id)}`
|
|
1611
|
+
);
|
|
1504
1612
|
}
|
|
1505
1613
|
};
|
|
1506
1614
|
var TranscriptionServiceImpl = class {
|
|
@@ -1515,7 +1623,10 @@ var TranscriptionServiceImpl = class {
|
|
|
1515
1623
|
return this.client.requestWithQuery("GET", `${CONVERSATION_BASE_PATH}/transcriptions`, query);
|
|
1516
1624
|
}
|
|
1517
1625
|
get(id) {
|
|
1518
|
-
return this.client.request(
|
|
1626
|
+
return this.client.request(
|
|
1627
|
+
"GET",
|
|
1628
|
+
`${CONVERSATION_BASE_PATH}/transcriptions/${encodeURIComponent(id)}`
|
|
1629
|
+
);
|
|
1519
1630
|
}
|
|
1520
1631
|
materialize(id, request = {}) {
|
|
1521
1632
|
return this.client.request(
|