@tcinema-pro/contracts 1.0.1 → 1.0.2

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 +8 -3
  2. package/proto/auth.proto +5 -0
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@tcinema-pro/contracts",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Protobuf defs",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
5
7
  "scripts": {
6
- "proto:gen": "protoc -I ./proto ./proto/*.proto --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
8
+ "proto:gen": "protoc -I ./proto ./proto/*.proto --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit",
9
+ "build": "tsc -p tsconfig.build.json"
7
10
  },
8
11
  "files": [
9
12
  "proto",
@@ -18,6 +21,8 @@
18
21
  },
19
22
  "dependencies": {
20
23
  "@nestjs/microservices": "^11.1.13",
21
- "rxjs": "^7.8.2"
24
+ "@types/node": "^25.3.0",
25
+ "rxjs": "^7.8.2",
26
+ "typescript": "^5.9.3"
22
27
  }
23
28
  }
package/proto/auth.proto CHANGED
@@ -8,6 +8,8 @@ service AuthService {
8
8
  }
9
9
 
10
10
 
11
+ // VERIFY
12
+
11
13
  message VerifyOtpRequest {
12
14
  string identifier = 1;
13
15
  string type = 2;
@@ -19,6 +21,9 @@ message VerifyOtpResponse {
19
21
  string refresh_token = 2;
20
22
  }
21
23
 
24
+
25
+ // OTP CODE
26
+
22
27
  message SendOtpRequest {
23
28
  string identifier = 1;
24
29
  string type = 2;