@fonoster/common 0.7.16 → 0.7.22

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.
@@ -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 = 9;
66
+ map<string, string> metadata = 10;
59
67
  }
60
68
 
61
69
  // Common request for verbs
@@ -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.16",
3
+ "version": "0.7.22",
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.16",
21
+ "@fonoster/logger": "^0.7.22",
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": "1d2898f38de4690f0b9c2dac5506c2ddaeebedbb"
46
+ "gitHead": "3755f19ef8a8b7f584f6f27e3dc5c277d63f1a19"
47
47
  }