@fonoster/common 0.13.7 → 0.15.0
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/envs.js +1 -1
- package/dist/identity/roles.js +1 -0
- package/dist/protos/applications.proto +12 -0
- package/package.json +3 -3
package/dist/envs.js
CHANGED
|
@@ -24,7 +24,7 @@ exports.ROOT_DOMAIN = void 0;
|
|
|
24
24
|
*/
|
|
25
25
|
const path_1 = require("path");
|
|
26
26
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
27
|
-
if (process.env.NODE_ENV === "
|
|
27
|
+
if (process.env.NODE_ENV === "development") {
|
|
28
28
|
dotenv_1.default.config({ path: (0, path_1.join)(__dirname, "..", "..", "..", ".env") });
|
|
29
29
|
}
|
|
30
30
|
const e = process.env;
|
package/dist/identity/roles.js
CHANGED
|
@@ -24,6 +24,7 @@ const VOICE_SERVICE_ROLE = "VOICE_SERVICE";
|
|
|
24
24
|
exports.VOICE_SERVICE_ROLE = VOICE_SERVICE_ROLE;
|
|
25
25
|
const workspaceResourceAccess = [
|
|
26
26
|
"/fonoster.applications.v1beta2.Applications/CreateApplication",
|
|
27
|
+
"/fonoster.applications.v1beta2.Applications/CreateTestToken",
|
|
27
28
|
"/fonoster.applications.v1beta2.Applications/UpdateApplication",
|
|
28
29
|
"/fonoster.applications.v1beta2.Applications/GetApplication",
|
|
29
30
|
"/fonoster.applications.v1beta2.Applications/DeleteApplication",
|
|
@@ -21,6 +21,7 @@ syntax = "proto3";
|
|
|
21
21
|
package fonoster.applications.v1beta2;
|
|
22
22
|
|
|
23
23
|
import "google/protobuf/struct.proto";
|
|
24
|
+
import "google/protobuf/empty.proto";
|
|
24
25
|
|
|
25
26
|
// Applications service definition
|
|
26
27
|
service Applications {
|
|
@@ -36,6 +37,8 @@ service Applications {
|
|
|
36
37
|
rpc DeleteApplication(DeleteApplicationRequest) returns (DeleteApplicationResponse) {}
|
|
37
38
|
// Evaluate the intellgence for an Autopilot application
|
|
38
39
|
rpc EvaluateIntelligence(EvaluateIntelligenceRequest) returns (EvaluateIntelligenceResponse);
|
|
40
|
+
// Create an Ephemeral Agent to perform test calls to an application
|
|
41
|
+
rpc CreateTestToken(google.protobuf.Empty) returns (TestTokenResponse) {}
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
// The type of application
|
|
@@ -197,3 +200,12 @@ message EvaluateIntelligenceResponse {
|
|
|
197
200
|
|
|
198
201
|
repeated ScenarioEvaluationReport results = 1;
|
|
199
202
|
}
|
|
203
|
+
|
|
204
|
+
message TestTokenResponse {
|
|
205
|
+
string token = 1;
|
|
206
|
+
string domain = 2;
|
|
207
|
+
string display_name = 3;
|
|
208
|
+
string signaling_server = 4;
|
|
209
|
+
string target_aor = 5;
|
|
210
|
+
string username = 6;
|
|
211
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
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.
|
|
21
|
+
"@fonoster/logger": "^0.15.0",
|
|
22
22
|
"@grpc/grpc-js": "~1.10.6",
|
|
23
23
|
"@grpc/proto-loader": "^0.7.12",
|
|
24
24
|
"@influxdata/influxdb-client": "^1.35.0",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/nodemailer": "^6.4.14"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "916849633605ac05a3a90792098c28470bf0d1c1"
|
|
53
53
|
}
|