@barumetric/contracts 1.0.4 → 1.0.6
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/proto/paths.js +1 -1
- package/package.json +6 -5
- package/proto/auth.proto +10 -0
package/dist/proto/paths.js
CHANGED
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PROTO_PATHS = void 0;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
exports.PROTO_PATHS = {
|
|
6
|
-
AUTH: (0, path_1.join)(__dirname,
|
|
6
|
+
AUTH: (0, path_1.join)(__dirname, "../../proto/auth.proto"),
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barumetric/contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Protobuf definitions and generated TypeScript types",
|
|
5
|
-
"main": "
|
|
6
|
-
"types": "
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc -p tsconfig.build.json",
|
|
9
9
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen/ts --ts_proto_opt=nestJs=true,package=omit"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
+
"dist",
|
|
12
13
|
"proto",
|
|
13
|
-
"gen"
|
|
14
|
-
|
|
14
|
+
"gen"
|
|
15
|
+
|
|
15
16
|
],
|
|
16
17
|
"publishConfig": {
|
|
17
18
|
"access": "public"
|
package/proto/auth.proto
CHANGED
|
@@ -5,6 +5,7 @@ package auth.v1;
|
|
|
5
5
|
service AuthService {
|
|
6
6
|
rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
|
|
7
7
|
rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
|
|
8
|
+
rpc Refresh (RefreshRequest) returns (RefreshResponse);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
message SendOtpRequest {
|
|
@@ -26,3 +27,12 @@ message VerifyOtpResponse {
|
|
|
26
27
|
string access_token = 1;
|
|
27
28
|
string refresh_token = 2;
|
|
28
29
|
}
|
|
30
|
+
|
|
31
|
+
message RefreshRequest {
|
|
32
|
+
string refresh_token = 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message RefreshResponse {
|
|
36
|
+
string access_token = 1;
|
|
37
|
+
string refresh_token = 2;
|
|
38
|
+
}
|