@voicenter-team/events-sdk 0.0.115 → 0.0.116
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/voicenter-events-sdk.d.ts +119 -4
- package/package.json +2 -2
|
@@ -797,7 +797,7 @@ export declare interface ExternalLoginResponse<T> {
|
|
|
797
797
|
export declare type GenericEventWrapper = EventWrappedSocketDataMap[EventTypeNames]
|
|
798
798
|
|
|
799
799
|
export declare type InitialVoicebotCallHistory = {
|
|
800
|
-
history: Array<
|
|
800
|
+
history: Array<VoicebotEventDataCall>;
|
|
801
801
|
/**
|
|
802
802
|
* Voicebot id
|
|
803
803
|
*/
|
|
@@ -1370,7 +1370,7 @@ export declare type User = {
|
|
|
1370
1370
|
export declare type UserSDK = User
|
|
1371
1371
|
|
|
1372
1372
|
export declare type Voicebot = {
|
|
1373
|
-
Calls: Array<
|
|
1373
|
+
Calls: Array<VoicebotEventDataCall>;
|
|
1374
1374
|
/**
|
|
1375
1375
|
* Acc id
|
|
1376
1376
|
*/
|
|
@@ -1378,11 +1378,11 @@ export declare type Voicebot = {
|
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Voicebot id
|
|
1380
1380
|
*/
|
|
1381
|
-
VoicebotID:
|
|
1381
|
+
VoicebotID: number;
|
|
1382
1382
|
/**
|
|
1383
1383
|
* Voicebot name
|
|
1384
1384
|
*/
|
|
1385
|
-
VoicebotName:
|
|
1385
|
+
VoicebotName: string;
|
|
1386
1386
|
};
|
|
1387
1387
|
|
|
1388
1388
|
export declare type VoicebotCall = {
|
|
@@ -1392,8 +1392,123 @@ export declare type VoicebotCallHistory = {
|
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
1394
|
export declare type VoicebotEvent = {
|
|
1395
|
+
data: VoicebotEventData;
|
|
1396
|
+
type: VoicebotEventTypeEnum;
|
|
1397
|
+
reason: VoicebotEventReasonEnum;
|
|
1398
|
+
/**
|
|
1399
|
+
* Event name (voicebot)
|
|
1400
|
+
*/
|
|
1401
|
+
eventName: string;
|
|
1402
|
+
/**
|
|
1403
|
+
* servertime
|
|
1404
|
+
*/
|
|
1405
|
+
servertime: number;
|
|
1406
|
+
/**
|
|
1407
|
+
* servertimeoffset
|
|
1408
|
+
*/
|
|
1409
|
+
servertimeoffset: number;
|
|
1410
|
+
/**
|
|
1411
|
+
* telephonyservertime
|
|
1412
|
+
*/
|
|
1413
|
+
telephonyservertime: number;
|
|
1395
1414
|
};
|
|
1396
1415
|
|
|
1416
|
+
export declare type VoicebotEventData = {
|
|
1417
|
+
Call: VoicebotEventDataCall;
|
|
1418
|
+
/**
|
|
1419
|
+
* account id
|
|
1420
|
+
*/
|
|
1421
|
+
AccountID: number;
|
|
1422
|
+
/**
|
|
1423
|
+
* voicebot id
|
|
1424
|
+
*/
|
|
1425
|
+
VoicebotID: number;
|
|
1426
|
+
/**
|
|
1427
|
+
* ivr id
|
|
1428
|
+
*/
|
|
1429
|
+
IvrUniqueID: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* voicebot name
|
|
1432
|
+
*/
|
|
1433
|
+
VoicebotName: string;
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1436
|
+
export declare type VoicebotEventDataCall = {
|
|
1437
|
+
/**
|
|
1438
|
+
* did
|
|
1439
|
+
*/
|
|
1440
|
+
did: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* ivrid
|
|
1443
|
+
*/
|
|
1444
|
+
ivrid: string;
|
|
1445
|
+
/**
|
|
1446
|
+
* CallerID
|
|
1447
|
+
*/
|
|
1448
|
+
CallerID: string;
|
|
1449
|
+
/**
|
|
1450
|
+
* callType
|
|
1451
|
+
*/
|
|
1452
|
+
callType: string;
|
|
1453
|
+
/**
|
|
1454
|
+
* aiSummary
|
|
1455
|
+
*/
|
|
1456
|
+
aiSummary: string;
|
|
1457
|
+
direction: VoicebotEventDataCallDirectionEnum;
|
|
1458
|
+
callStatus: VoicebotEventDataCallStatusEnum;
|
|
1459
|
+
/**
|
|
1460
|
+
* callername
|
|
1461
|
+
*/
|
|
1462
|
+
callername?: string;
|
|
1463
|
+
customData: any;
|
|
1464
|
+
eventsData: Array<VoicebotEventDataCallEventsData>;
|
|
1465
|
+
/**
|
|
1466
|
+
* IvrUniqueID
|
|
1467
|
+
*/
|
|
1468
|
+
IvrUniqueID: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* callStarted
|
|
1471
|
+
*/
|
|
1472
|
+
callStarted: number;
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1475
|
+
export declare enum VoicebotEventDataCallDirectionEnum {
|
|
1476
|
+
INCOMING = 'INCOMING',
|
|
1477
|
+
OUTGOING = 'OUTGOING',
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
export declare type VoicebotEventDataCallEventsData = {
|
|
1481
|
+
Role: VoicebotEventDataCallEventsDataRoleEnum;
|
|
1482
|
+
Type: VoicebotEventDataCallEventsDataTypeEnum;
|
|
1483
|
+
ToolName?: string;
|
|
1484
|
+
Timestamp: number;
|
|
1485
|
+
Transcript?: string;
|
|
1486
|
+
};
|
|
1487
|
+
|
|
1488
|
+
export declare type VoicebotEventDataCallEventsDataRoleEnum = {
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1491
|
+
export declare enum VoicebotEventDataCallEventsDataTypeEnum {
|
|
1492
|
+
CALLSTARTED = 'CallStarted',
|
|
1493
|
+
TRANSCRIPT = 'Transcript',
|
|
1494
|
+
TOOL_EXECUTED = 'ToolExecuted',
|
|
1495
|
+
TOOL_RESPONSE = 'ToolResponse',
|
|
1496
|
+
CALL_ENDED = 'CallEnded',
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
export declare enum VoicebotEventDataCallStatusEnum {
|
|
1500
|
+
TALKING = 'Talking',
|
|
1501
|
+
ENDED = 'Ended',
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
export declare enum VoicebotEventReasonEnum {
|
|
1505
|
+
CALLSTARTED = 'CALLSTARTED',
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
export declare enum VoicebotEventTypeEnum {
|
|
1509
|
+
UNKNOWN = 'UNKNOWN',
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1397
1512
|
/**
|
|
1398
1513
|
* The structure of received socket events.
|
|
1399
1514
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voicenter-team/events-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.116",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/voicenter-events-sdk.es.js",
|
|
6
6
|
"jsdelivr": "dist/voicenter-events-sdk.umd.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "6.20.0",
|
|
39
39
|
"@typescript-eslint/parser": "6.20.0",
|
|
40
40
|
"@voicenter-team/eslint-config-ts": "^1.0.23",
|
|
41
|
-
"@voicenter-team/real-time-events-types": "^0.0.
|
|
41
|
+
"@voicenter-team/real-time-events-types": "^0.0.29",
|
|
42
42
|
"dotenv": "16.4.1",
|
|
43
43
|
"eslint": "8.56.0",
|
|
44
44
|
"eslint-plugin-jest": "27.6.3",
|