@fonoster/apiserver 0.9.0 → 0.9.4

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.
@@ -1,39 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.identityConfig = void 0;
4
- /*
5
- * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
6
- * http://github.com/fonoster/fonoster
7
- *
8
- * This file is part of Fonoster
9
- *
10
- * Licensed under the MIT License (the "License");
11
- * you may not use this file except in compliance with
12
- * the License. You may obtain a copy of the License at
13
- *
14
- * https://opensource.org/licenses/MIT
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
- const common_1 = require("@fonoster/common");
23
4
  const envs_1 = require("../envs");
24
- if (envs_1.IDENTITY_USER_VERIFICATION_REQUIRED) {
25
- (0, common_1.assertEnvsAreSet)([
26
- "TWILIO_ACCOUNT_SID",
27
- "TWILIO_AUTH_TOKEN",
28
- "TWILIO_PHONE_NUMBER"
29
- ]);
30
- }
31
- if (envs_1.IDENTITY_OAUTH2_GITHUB_ENABLED) {
32
- (0, common_1.assertEnvsAreSet)([
33
- "IDENTITY_OAUTH2_GITHUB_CLIENT_ID",
34
- "IDENTITY_OAUTH2_GITHUB_CLIENT_SECRET"
35
- ]);
36
- }
37
5
  const identityConfig = {
38
6
  issuer: envs_1.IDENTITY_ISSUER,
39
7
  audience: envs_1.IDENTITY_AUDIENCE,
package/dist/envs.js CHANGED
@@ -91,6 +91,13 @@ if (e.APISERVER_IDENTITY_OAUTH2_GITHUB_ENABLED === "true") {
91
91
  "APISERVER_IDENTITY_OAUTH2_GITHUB_CLIENT_SECRET"
92
92
  ]);
93
93
  }
94
+ if (exports.IDENTITY_USER_VERIFICATION_REQUIRED) {
95
+ (0, common_1.assertEnvsAreSet)([
96
+ "TWILIO_ACCOUNT_SID",
97
+ "TWILIO_AUTH_TOKEN",
98
+ "TWILIO_PHONE_NUMBER"
99
+ ]);
100
+ }
94
101
  if (e.APISERVER_AUTHZ_SERVICE_ENABLED === "true") {
95
102
  (0, common_1.assertEnvsAreSet)(["APISERVER_AUTHZ_SERVICE_HOST"]);
96
103
  }
@@ -22,6 +22,7 @@ type GoogleSttConfig = {
22
22
  };
23
23
  };
24
24
  declare enum DeepgramModel {
25
+ NOVA_3 = "nova-3",
25
26
  NOVA_2 = "nova-2",
26
27
  NOVA_2_PHONECALL = "nova-2-phonecall",
27
28
  NOVA_2_CONVERSATIONALAI = "nova-2-conversationalai"
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeepgramModel = void 0;
4
4
  var DeepgramModel;
5
5
  (function (DeepgramModel) {
6
+ DeepgramModel["NOVA_3"] = "nova-3";
6
7
  DeepgramModel["NOVA_2"] = "nova-2";
7
8
  DeepgramModel["NOVA_2_PHONECALL"] = "nova-2-phonecall";
8
9
  DeepgramModel["NOVA_2_CONVERSATIONALAI"] = "nova-2-conversationalai";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/apiserver",
3
- "version": "0.9.0",
3
+ "version": "0.9.4",
4
4
  "description": "APIServer for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -21,11 +21,11 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@deepgram/sdk": "^3.5.1",
24
- "@fonoster/authz": "^0.9.0",
25
- "@fonoster/common": "^0.9.0",
26
- "@fonoster/identity": "^0.9.0",
24
+ "@fonoster/authz": "^0.9.4",
25
+ "@fonoster/common": "^0.9.4",
26
+ "@fonoster/identity": "^0.9.4",
27
27
  "@fonoster/logger": "^0.9.0",
28
- "@fonoster/sipnet": "^0.9.0",
28
+ "@fonoster/sipnet": "^0.9.4",
29
29
  "@fonoster/streams": "^0.9.0",
30
30
  "@fonoster/types": "^0.9.0",
31
31
  "@google-cloud/speech": "^6.6.0",
@@ -73,5 +73,5 @@
73
73
  "@types/uuid": "^10.0.0",
74
74
  "@types/validator": "^13.12.0"
75
75
  },
76
- "gitHead": "0ec8e6ef5b6ee8adfb5b1856a177a0e0bf1070b9"
76
+ "gitHead": "443b5b37cc699becf4835adc00a7cfd8ffba4ad4"
77
77
  }