@fonoster/common 0.23.0 → 0.24.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.
@@ -81,6 +81,29 @@ message CallDetailRecord {
81
81
  int32 duration = 9;
82
82
  // The call direction
83
83
  CallDirection direction = 10;
84
+
85
+ // Answering Machine Detection verdict for the call. Mirrors
86
+ // fonoster.voice.v1beta2.Amd.Status; duplicated here (nested, like
87
+ // TrackCallResponse.Status below) because calls.proto does not import
88
+ // voice.proto and a top-level enum's values would collide with CallStatus's.
89
+ enum AmdStatus {
90
+ AMD_STATUS_UNSPECIFIED = 0;
91
+ HUMAN = 1;
92
+ MACHINE = 2;
93
+ VOICEMAIL = 3;
94
+ IVR = 4;
95
+ UNKNOWN = 5;
96
+ }
97
+ // Answering Machine Detection verdict, absent when AMD did not run
98
+ AmdStatus amd_status = 11;
99
+ // Confidence for the reported amd_status, 0..1
100
+ float amd_confidence = 12;
101
+ // Identifier of the detector that produced the verdict (e.g. "asterisk-amd@1")
102
+ string amd_detector = 13;
103
+ // Wall-clock time spent producing the verdict, in milliseconds
104
+ int32 amd_latency_ms = 14;
105
+ // Detector-specific cause code (e.g. Asterisk's AMDCAUSE), useful for tuning
106
+ string amd_cause = 15;
84
107
  }
85
108
 
86
109
  // The request message for Calls.Call
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/common",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Common library for Fonoster projects",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -18,7 +18,7 @@
18
18
  "clean": "rimraf ./dist node_modules tsconfig.tsbuildinfo"
19
19
  },
20
20
  "dependencies": {
21
- "@fonoster/logger": "^0.23.0",
21
+ "@fonoster/logger": "^0.24.0",
22
22
  "@grpc/grpc-js": "~1.10.11",
23
23
  "@grpc/proto-loader": "^0.7.15",
24
24
  "@influxdata/influxdb-client": "^1.35.0",
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "@types/nodemailer": "^6.4.21"
51
51
  },
52
- "gitHead": "acdd199a840d56419e25dae015d3b74892fe86cc"
52
+ "gitHead": "36670cb30dbc0604029b2d49a59153c53f69fe1b"
53
53
  }