@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 +4 -4
- package/gen/example.ts +1 -1
- package/gen/google/protobuf/any.ts +1 -1
- package/gen/google/protobuf/duration.ts +1 -1
- package/gen/google/protobuf/empty.ts +1 -1
- package/gen/google/protobuf/struct.ts +1 -1
- package/gen/google/protobuf/timestamp.ts +1 -1
- package/package.json +9 -2
- package/proto/auth.proto +4 -3
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexiolab/contracts",
|
|
3
|
-
"version": "1.0.
|
|
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
|
-
|
|
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
|
-
|
|
29
|
+
string access_token = 1;
|
|
30
|
+
string refresh_token = 2;
|
|
31
|
+
|
|
31
32
|
}
|