@sergmit/contracts 1.0.1 → 1.0.5

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.
Files changed (2) hide show
  1. package/package.json +5 -1
  2. package/proto/auth.proto +12 -1
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@sergmit/contracts",
3
- "version": "1.0.1",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/sergmitorg/contracts.git"
9
+ },
6
10
  "scripts": {
7
11
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
8
12
  },
package/proto/auth.proto CHANGED
@@ -4,7 +4,7 @@ package auth.v1;
4
4
 
5
5
  service AuthService {
6
6
  rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
7
-
7
+ rpc VerifyOpt (VerifyOtpRequest) returns (VerifyOtpResponse);
8
8
 
9
9
  }
10
10
 
@@ -15,4 +15,15 @@ message SendOtpRequest {
15
15
 
16
16
  message SendOtpResponse {
17
17
  bool ok = 1;
18
+ }
19
+
20
+ message VerifyOtpRequest {
21
+ string identifier = 1;
22
+ string type = 2;
23
+ string code = 3;
24
+ }
25
+
26
+ message VerifyOtpResponse {
27
+ string access_token = 1;
28
+ string refresh_token = 2;
18
29
  }