@fonoster/common 0.7.15 → 0.7.18
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/protos/voice.proto +9 -1
- package/dist/voice/voice.d.ts +2 -0
- package/package.json +3 -3
package/dist/protos/voice.proto
CHANGED
|
@@ -54,8 +54,16 @@ message CreateSessionRequest {
|
|
|
54
54
|
// If the app_ref is provided, the token must include the app_ref as a claim
|
|
55
55
|
string session_token = 8;
|
|
56
56
|
|
|
57
|
+
// The direction of the call
|
|
58
|
+
enum CallDirection {
|
|
59
|
+
FROM_PSTN = 0;
|
|
60
|
+
TO_PSTN = 1;
|
|
61
|
+
INTRA_NETWORK = 2;
|
|
62
|
+
}
|
|
63
|
+
CallDirection call_direction = 9;
|
|
64
|
+
|
|
57
65
|
// Metadata associated with the session
|
|
58
|
-
map<string, string> metadata =
|
|
66
|
+
map<string, string> metadata = 10;
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
// Common request for verbs
|
package/dist/voice/voice.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CallDirection } from "@fonoster/types";
|
|
1
2
|
import { DialRequest, DialStatus } from "./Dial";
|
|
2
3
|
import { GatherRequest, GatherResponse } from "./Gather";
|
|
3
4
|
import { MuteRequest } from "./Mute";
|
|
@@ -60,6 +61,7 @@ type VoiceClientConfig = {
|
|
|
60
61
|
callerNumber: string;
|
|
61
62
|
sessionRef: string;
|
|
62
63
|
sessionToken: string;
|
|
64
|
+
callDirection: CallDirection;
|
|
63
65
|
metadata?: Record<string, string>;
|
|
64
66
|
};
|
|
65
67
|
type VoiceIn = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/common",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.18",
|
|
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.7.
|
|
21
|
+
"@fonoster/logger": "^0.7.18",
|
|
22
22
|
"@grpc/grpc-js": "~1.10.6",
|
|
23
23
|
"@grpc/proto-loader": "^0.7.12",
|
|
24
24
|
"grpc-health-check": "^2.0.2",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/nodemailer": "^6.4.14"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "4150dcb8086de182d0650df0c6d990ee76658058"
|
|
47
47
|
}
|