@candesk/contracts 1.0.11 → 1.0.12

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.
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.12.4
5
- // protoc v7.36.1
5
+ // protoc v3.21.12
6
6
  // source: account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ACCOUNT_SERVICE_NAME = exports.ACCOUNT_V1_PACKAGE_NAME = exports.Role = exports.protobufPackage = void 0;
package/dist/gen/auth.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.12.4
5
- // protoc v7.36.1
5
+ // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.AUTH_SERVICE_NAME = exports.AUTH_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Protobuf contracts for Candesk microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,69 +1,69 @@
1
- syntax = "proto3";
2
-
3
- package account.v1;
4
-
5
- service AccountService {
6
- rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
7
-
8
- rpc InitEmailChange(InitEmailChangeRequest) returns (InitEmailChangeResponse);
9
- rpc ConfirmEmailChange(ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
10
-
11
- rpc InitPhoneChange(InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
12
- rpc ConfirmPhoneChange(ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
13
- }
14
-
15
- message GetAccountRequest {
16
- string id = 1;
17
- }
18
-
19
- message GetAccountResponse {
20
- string id = 1;
21
- string phone = 2;
22
- string email = 3;
23
- bool is_phone_verified = 4;
24
- bool is_email_verified = 5;
25
- Role role = 6;
26
- }
27
-
28
- message InitEmailChangeRequest {
29
- string email = 1;
30
- string user_id = 2;
31
- }
32
-
33
- message InitEmailChangeResponse {
34
- bool ok = 1;
35
- }
36
-
37
- message ConfirmEmailChangeRequest {
38
- string email = 1;
39
- string code = 2;
40
- string user_id = 3;
41
- }
42
-
43
- message ConfirmEmailChangeResponse {
44
- bool ok = 1;
45
- }
46
-
47
- message InitPhoneChangeRequest {
48
- string phone = 1;
49
- string user_id = 2;
50
- }
51
-
52
- message InitPhoneChangeResponse {
53
- bool ok = 1;
54
- }
55
-
56
- message ConfirmPhoneChangeRequest {
57
- string phone = 1;
58
- string code = 2;
59
- string user_id = 3;
60
- }
61
-
62
- message ConfirmPhoneChangeResponse {
63
- bool ok = 1;
64
- }
65
-
66
- enum Role {
67
- USER = 0;
68
- ADMIN = 1;
1
+ syntax = "proto3";
2
+
3
+ package account.v1;
4
+
5
+ service AccountService {
6
+ rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
7
+
8
+ rpc InitEmailChange(InitEmailChangeRequest) returns (InitEmailChangeResponse);
9
+ rpc ConfirmEmailChange(ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
10
+
11
+ rpc InitPhoneChange(InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
12
+ rpc ConfirmPhoneChange(ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
13
+ }
14
+
15
+ message GetAccountRequest {
16
+ string id = 1;
17
+ }
18
+
19
+ message GetAccountResponse {
20
+ string id = 1;
21
+ string phone = 2;
22
+ string email = 3;
23
+ bool is_phone_verified = 4;
24
+ bool is_email_verified = 5;
25
+ Role role = 6;
26
+ }
27
+
28
+ message InitEmailChangeRequest {
29
+ string email = 1;
30
+ string user_id = 2;
31
+ }
32
+
33
+ message InitEmailChangeResponse {
34
+ bool ok = 1;
35
+ }
36
+
37
+ message ConfirmEmailChangeRequest {
38
+ string email = 1;
39
+ string code = 2;
40
+ string user_id = 3;
41
+ }
42
+
43
+ message ConfirmEmailChangeResponse {
44
+ bool ok = 1;
45
+ }
46
+
47
+ message InitPhoneChangeRequest {
48
+ string phone = 1;
49
+ string user_id = 2;
50
+ }
51
+
52
+ message InitPhoneChangeResponse {
53
+ bool ok = 1;
54
+ }
55
+
56
+ message ConfirmPhoneChangeRequest {
57
+ string phone = 1;
58
+ string code = 2;
59
+ string user_id = 3;
60
+ }
61
+
62
+ message ConfirmPhoneChangeResponse {
63
+ bool ok = 1;
64
+ }
65
+
66
+ enum Role {
67
+ USER = 0;
68
+ ADMIN = 1;
69
69
  }
package/proto/auth.proto CHANGED
@@ -1,38 +1,38 @@
1
- syntax = "proto3";
2
-
3
- package auth.v1;
4
-
5
- service AuthService {
6
- rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
7
- rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
8
- rpc Refresh (RefreshRequest) returns (RefreshResponse);
9
- }
10
-
11
- message SendOtpRequest {
12
- string identifier = 1;
13
- string type = 2;
14
- }
15
-
16
- message SendOtpResponse {
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;
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
- }
1
+ syntax = "proto3";
2
+
3
+ package auth.v1;
4
+
5
+ service AuthService {
6
+ rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
7
+ rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
8
+ rpc Refresh (RefreshRequest) returns (RefreshResponse);
9
+ }
10
+
11
+ message SendOtpRequest {
12
+ string identifier = 1;
13
+ string type = 2;
14
+ }
15
+
16
+ message SendOtpResponse {
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;
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
+ }