@fonoster/voice 0.7.30 → 0.7.32

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.
@@ -64,7 +64,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
64
64
  * limitations under the License.
65
65
  */
66
66
  const common_1 = require("@fonoster/common");
67
- const identity_1 = require("@fonoster/identity");
68
67
  const logger_1 = require("@fonoster/logger");
69
68
  const grpc = __importStar(require("@grpc/grpc-js"));
70
69
  const deepmerge_1 = __importDefault(require("deepmerge"));
@@ -83,13 +82,20 @@ class VoiceServer {
83
82
  const healthImpl = new grpc_health_check_1.HealthImplementation(common_1.statusMap);
84
83
  const credentials = yield (0, common_1.getServerCredentials)({});
85
84
  let server;
85
+ // Fixme: The identity verification is currently broken due to a dependency
86
+ // on @prisma/identity-client. For instance, running the VoiceServer in a container
87
+ // requires extra setup, including generating the identity-client.
88
+ //
89
+ // We will need to decouple the createAuthInterceptor and getPublicKeyClient from
90
+ // the identity-client to make this work.
86
91
  if (this.config.skipIdentity) {
87
92
  server = new grpc.Server();
88
93
  }
89
94
  else {
90
95
  // Get the public key from the identity service
91
- const response = yield (0, identity_1.getPublicKeyClient)(this.config.identityAddress);
92
- const authorization = (0, identity_1.createAuthInterceptor)(response.publicKey, [
96
+ const { getPublicKeyClient, createAuthInterceptor } = yield Promise.resolve().then(() => __importStar(require("@fonoster/identity")));
97
+ const response = yield getPublicKeyClient(this.config.identityAddress);
98
+ const authorization = createAuthInterceptor(response.publicKey, [
93
99
  "/grpc.health.v1.Health/Check"
94
100
  ]);
95
101
  server = new grpc.Server({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/voice",
3
- "version": "0.7.30",
3
+ "version": "0.7.32",
4
4
  "description": "Voice Server for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -21,9 +21,9 @@
21
21
  "fonoster": "./dist/index.js"
22
22
  },
23
23
  "dependencies": {
24
- "@fonoster/common": "^0.7.30",
25
- "@fonoster/identity": "^0.7.30",
26
- "@fonoster/logger": "^0.7.30",
24
+ "@fonoster/common": "^0.7.32",
25
+ "@fonoster/identity": "^0.7.32",
26
+ "@fonoster/logger": "^0.7.32",
27
27
  "@grpc/grpc-js": "~1.10.6",
28
28
  "deepmerge": "^4.3.1",
29
29
  "grpc-health-check": "^2.0.2",
@@ -44,5 +44,5 @@
44
44
  "bugs": {
45
45
  "url": "https://github.com/fonoster/fonoster/issues"
46
46
  },
47
- "gitHead": "438edd2e79d3baefb5b603b98fc173c0390d3e7e"
47
+ "gitHead": "96c1aa03e97f05179d83c3bbdda4cc2dde61a367"
48
48
  }