@nexiolab/contracts 1.0.3 → 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.
package/gen/auth.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
3
+ // protoc-gen-ts_proto v2.11.0
4
4
  // protoc v3.21.12
5
5
  // source: auth.proto
6
6
 
@@ -16,8 +16,7 @@ export interface SendOtpRequest {
16
16
  }
17
17
 
18
18
  export interface SendOtpResponse {
19
- accessToken: string;
20
- refreshToken: string;
19
+ ok: boolean;
21
20
  }
22
21
 
23
22
  export interface VerifyOtpRequest {
@@ -27,7 +26,8 @@ export interface VerifyOtpRequest {
27
26
  }
28
27
 
29
28
  export interface VerifyOtpResponse {
30
- ok: boolean;
29
+ accessToken: string;
30
+ refreshToken: string;
31
31
  }
32
32
 
33
33
  export const AUTH_V1_PACKAGE_NAME = "auth.v1";
package/gen/example.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
3
+ // protoc-gen-ts_proto v2.11.0
4
4
  // protoc v3.21.12
5
5
  // source: example.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
3
+ // protoc-gen-ts_proto v2.11.0
4
4
  // protoc v3.21.12
5
5
  // source: google/protobuf/any.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
3
+ // protoc-gen-ts_proto v2.11.0
4
4
  // protoc v3.21.12
5
5
  // source: google/protobuf/duration.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
3
+ // protoc-gen-ts_proto v2.11.0
4
4
  // protoc v3.21.12
5
5
  // source: google/protobuf/empty.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
3
+ // protoc-gen-ts_proto v2.11.0
4
4
  // protoc v3.21.12
5
5
  // source: google/protobuf/struct.proto
6
6
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
3
+ // protoc-gen-ts_proto v2.11.0
4
4
  // protoc v3.21.12
5
5
  // source: google/protobuf/timestamp.proto
6
6
 
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@nexiolab/contracts",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
5
7
  "scripts": {
6
- "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
8
+ "generate": "protoc -I ./proto ./proto/*.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",
@@ -16,5 +19,9 @@
16
19
  "@nestjs/microservices": "^11.1.11",
17
20
  "rxjs": "^7.8.2",
18
21
  "ts-proto": "^2.10.1"
22
+ },
23
+ "devDependencies": {
24
+ "@types/node": "^25.0.8",
25
+ "typescript": "^5.9.3"
19
26
  }
20
27
  }
package/proto/auth.proto CHANGED
@@ -16,8 +16,7 @@ message SendOtpRequest {
16
16
  }
17
17
 
18
18
  message SendOtpResponse {
19
- string access_token = 1;
20
- string refresh_token = 2;
19
+ bool ok = 1;
21
20
  }
22
21
 
23
22
  message VerifyOtpRequest {
@@ -27,5 +26,7 @@ message VerifyOtpRequest {
27
26
  }
28
27
 
29
28
  message VerifyOtpResponse {
30
- bool ok = 1;
29
+ string access_token = 1;
30
+ string refresh_token = 2;
31
+
31
32
  }