@fonoster/apiserver 0.15.12 → 0.15.14

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.
@@ -20,12 +20,19 @@ exports.applicationWithEncodedStruct = applicationWithEncodedStruct;
20
20
  * limitations under the License.
21
21
  */
22
22
  const common_1 = require("@fonoster/common");
23
+ const common_2 = require("@fonoster/common");
24
+ const client_1 = require("@prisma/client");
23
25
  const pb_util_1 = require("pb-util");
24
26
  function applicationWithEncodedStruct(application) {
25
27
  const encodeConfig = (property) => {
26
28
  return (property === null || property === void 0 ? void 0 : property.config) ? pb_util_1.struct.encode(property.config) : null;
27
29
  };
28
30
  const result = Object.assign({}, application);
31
+ // Hide the default endpoint value for AUTOPILOT applications
32
+ if (application.type === client_1.ApplicationType.AUTOPILOT &&
33
+ application.endpoint === common_2.AUTOPILOT_SPECIAL_LOCAL_ADDRESS) {
34
+ result.endpoint = "";
35
+ }
29
36
  if (application.textToSpeech) {
30
37
  delete application.textToSpeech.credentials;
31
38
  result.textToSpeech = Object.assign(Object.assign({}, application.textToSpeech), { config: encodeConfig(application.textToSpeech) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/apiserver",
3
- "version": "0.15.12",
3
+ "version": "0.15.14",
4
4
  "description": "APIServer for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@deepgram/sdk": "^3.5.1",
24
- "@fonoster/authz": "^0.15.12",
25
- "@fonoster/autopilot": "^0.15.12",
26
- "@fonoster/common": "^0.15.10",
27
- "@fonoster/identity": "^0.15.12",
28
- "@fonoster/logger": "^0.15.10",
29
- "@fonoster/sipnet": "^0.15.12",
30
- "@fonoster/streams": "^0.15.10",
31
- "@fonoster/types": "^0.15.10",
24
+ "@fonoster/authz": "^0.15.14",
25
+ "@fonoster/autopilot": "^0.15.14",
26
+ "@fonoster/common": "^0.15.14",
27
+ "@fonoster/identity": "^0.15.14",
28
+ "@fonoster/logger": "^0.15.14",
29
+ "@fonoster/sipnet": "^0.15.14",
30
+ "@fonoster/streams": "^0.15.14",
31
+ "@fonoster/types": "^0.15.14",
32
32
  "@google-cloud/speech": "^6.6.0",
33
33
  "@google-cloud/text-to-speech": "^5.3.0",
34
34
  "@grpc/grpc-js": "~1.10.6",
@@ -74,5 +74,5 @@
74
74
  "@types/uuid": "^10.0.0",
75
75
  "@types/validator": "^13.12.0"
76
76
  },
77
- "gitHead": "92a7621c609ff0ebb5f98362e7351abb22aad426"
77
+ "gitHead": "5e6bbadd39ac7af530193b122235f47859294831"
78
78
  }