@fonoster/common 0.8.0 → 0.8.7
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/protos/authz.proto +6 -19
- package/package.json +3 -3
package/dist/protos/authz.proto
CHANGED
|
@@ -20,6 +20,7 @@ syntax = "proto3";
|
|
|
20
20
|
|
|
21
21
|
package fonoster.authz.v1beta2;
|
|
22
22
|
|
|
23
|
+
import "google/protobuf/struct.proto";
|
|
23
24
|
import "google/protobuf/empty.proto";
|
|
24
25
|
|
|
25
26
|
import "voice.proto";
|
|
@@ -30,10 +31,8 @@ service Authz {
|
|
|
30
31
|
rpc CheckSessionAuthorized (fonoster.voice.v1beta2.CreateSessionRequest) returns (CheckSessionAuthorizedResponse) {}
|
|
31
32
|
// Check if a given accessKeyId has permission to access a method
|
|
32
33
|
rpc CheckMethodAuthorized (CheckMethodAuthorizedRequest) returns (CheckMethodAuthorizedResponse) {}
|
|
33
|
-
//
|
|
34
|
-
rpc
|
|
35
|
-
// Get the account balance
|
|
36
|
-
rpc GetAccountBalance (GetAccountBalanceRequest) returns (GetAccountBalanceResponse) {}
|
|
34
|
+
// Add billing meter event to an account
|
|
35
|
+
rpc AddBillingMeterEvent (AddBillingMeterEventRequest) returns (google.protobuf.Empty) {}
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
// Response message for the CheckVoiceRequestAuthorized method
|
|
@@ -61,21 +60,9 @@ message CheckMethodAuthorizedResponse {
|
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
// Request message for the ChargeAccount method
|
|
64
|
-
message
|
|
63
|
+
message AddBillingMeterEventRequest {
|
|
65
64
|
// The accessKeyId to charge
|
|
66
65
|
string accessKeyId = 1;
|
|
67
|
-
// The
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// Request message for the GetAccountBalance method
|
|
72
|
-
message GetAccountBalanceRequest {
|
|
73
|
-
// The accessKeyId to check
|
|
74
|
-
string accessKeyId = 1;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// Response message for the GetAccountBalance method
|
|
78
|
-
message GetAccountBalanceResponse {
|
|
79
|
-
// The account balance
|
|
80
|
-
double balance = 1;
|
|
66
|
+
// The payload for the event
|
|
67
|
+
google.protobuf.Struct payload = 2;
|
|
81
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/common",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
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.8.
|
|
21
|
+
"@fonoster/logger": "^0.8.7",
|
|
22
22
|
"@grpc/grpc-js": "~1.10.6",
|
|
23
23
|
"@grpc/proto-loader": "^0.7.12",
|
|
24
24
|
"dotenv": "^16.4.7",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/nodemailer": "^6.4.14"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "fefb76ca2b505dda9c48d5354ec68e87028e6bcc"
|
|
49
49
|
}
|