@fonoster/types 0.23.0 → 0.25.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.
@@ -38,6 +38,14 @@ declare enum CallDirection {
38
38
  TO_PSTN = "TO_PSTN",
39
39
  INTRA_NETWORK = "INTRA_NETWORK"
40
40
  }
41
+ declare enum AmdStatus {
42
+ UNSPECIFIED = "AMD_STATUS_UNSPECIFIED",
43
+ HUMAN = "HUMAN",
44
+ MACHINE = "MACHINE",
45
+ VOICEMAIL = "VOICEMAIL",
46
+ IVR = "IVR",
47
+ UNKNOWN = "UNKNOWN"
48
+ }
41
49
  type CallDetailRecord = {
42
50
  ref: string;
43
51
  accessKeyId: string;
@@ -49,6 +57,11 @@ type CallDetailRecord = {
49
57
  direction: CallDirection;
50
58
  startedAt: Date;
51
59
  endedAt: Date;
60
+ amdStatus?: AmdStatus;
61
+ amdConfidence?: number;
62
+ amdDetector?: string;
63
+ amdLatencyMs?: number;
64
+ amdCause?: string;
52
65
  };
53
66
  type ListCallsRequest = {
54
67
  after?: string;
@@ -80,4 +93,4 @@ type TrackCallSubscriber = {
80
93
  on: (event: string, cb: (data: TrackCallResponse | Error) => void) => void;
81
94
  };
82
95
  };
83
- export { CallDetailRecord, CallDirection, CallPublisher, CallStatus, CallType, CreateCallRequest, ListCallsRequest, ListCallsResponse, TrackCallResponse, TrackCallSubscriber };
96
+ export { AmdStatus, CallDetailRecord, CallDirection, CallPublisher, CallStatus, CallType, CreateCallRequest, ListCallsRequest, ListCallsResponse, TrackCallResponse, TrackCallSubscriber };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CallType = exports.CallStatus = exports.CallDirection = void 0;
3
+ exports.CallType = exports.CallStatus = exports.CallDirection = exports.AmdStatus = void 0;
4
4
  var CallType;
5
5
  (function (CallType) {
6
6
  CallType["SIP_ORIGINATED"] = "SIP_ORIGINATED";
@@ -25,3 +25,12 @@ var CallDirection;
25
25
  CallDirection["TO_PSTN"] = "TO_PSTN";
26
26
  CallDirection["INTRA_NETWORK"] = "INTRA_NETWORK";
27
27
  })(CallDirection || (exports.CallDirection = CallDirection = {}));
28
+ var AmdStatus;
29
+ (function (AmdStatus) {
30
+ AmdStatus["UNSPECIFIED"] = "AMD_STATUS_UNSPECIFIED";
31
+ AmdStatus["HUMAN"] = "HUMAN";
32
+ AmdStatus["MACHINE"] = "MACHINE";
33
+ AmdStatus["VOICEMAIL"] = "VOICEMAIL";
34
+ AmdStatus["IVR"] = "IVR";
35
+ AmdStatus["UNKNOWN"] = "UNKNOWN";
36
+ })(AmdStatus || (exports.AmdStatus = AmdStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/types",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "Common types for Fonoster projects",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -29,5 +29,5 @@
29
29
  "bugs": {
30
30
  "url": "https://github.com/fonoster/fonoster/issues"
31
31
  },
32
- "gitHead": "acdd199a840d56419e25dae015d3b74892fe86cc"
32
+ "gitHead": "3f63a173d31c0dbf2391b1eff907c8880e60614d"
33
33
  }