@requ1emz/contracts 1.0.30 → 1.0.32

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
@@ -12,6 +12,7 @@ export const protobufPackage = "auth.v1";
12
12
 
13
13
  export interface SendRegistrationRequest {
14
14
  email: string;
15
+ username: string;
15
16
  password: string;
16
17
  }
17
18
 
package/gen/user.ts CHANGED
@@ -12,14 +12,17 @@ export const protobufPackage = "user.v1";
12
12
 
13
13
  export interface SendCheckUserExistsRequest {
14
14
  email: string;
15
+ username: string;
15
16
  }
16
17
 
17
18
  export interface SendCheckUserExistsResponse {
18
- exists: boolean;
19
+ emailExists: boolean;
20
+ usernameExists: boolean;
19
21
  }
20
22
 
21
23
  export interface SendCreateUserRequest {
22
24
  email: string;
25
+ username: string;
23
26
  passwordHash: string;
24
27
  }
25
28
 
@@ -30,23 +33,28 @@ export interface SendCreateUserResponse {
30
33
  export interface SendGetUserRequest {
31
34
  id?: string | undefined;
32
35
  email?: string | undefined;
36
+ username?: string | undefined;
33
37
  }
34
38
 
35
39
  export interface SendGetUserResponse {
36
40
  id: string;
37
41
  email: string;
42
+ username: string;
38
43
  passwordHash: string;
39
44
  }
40
45
 
41
46
  export interface SendUpdateUserRequest {
42
47
  id: string;
43
48
  email: string;
49
+ username: string;
44
50
  passwordHash: string;
45
51
  }
46
52
 
47
53
  export interface SendUpdateUserResponse {
48
54
  id: string;
49
55
  email: string;
56
+ username: string;
57
+ passwordHash: string;
50
58
  }
51
59
 
52
60
  export interface SendDeleteUserRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@requ1emz/contracts",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/auth.proto CHANGED
@@ -10,7 +10,8 @@ service AuthService {
10
10
 
11
11
  message SendRegistrationRequest {
12
12
  string email = 1;
13
- string password = 2;
13
+ string username = 2;
14
+ string password = 3;
14
15
  }
15
16
 
16
17
  message SendRegistationResponse {
package/proto/user.proto CHANGED
@@ -12,15 +12,18 @@ service UserService {
12
12
 
13
13
  message SendCheckUserExistsRequest {
14
14
  string email = 1;
15
+ string username = 2;
15
16
  }
16
17
 
17
18
  message SendCheckUserExistsResponse {
18
- bool exists = 1;
19
+ bool email_exists = 1;
20
+ bool username_exists = 2;
19
21
  }
20
22
 
21
23
  message SendCreateUserRequest {
22
24
  string email = 1;
23
- string password_hash = 2;
25
+ string username = 2;
26
+ string password_hash = 3;
24
27
  }
25
28
 
26
29
  message SendCreateUserResponse {
@@ -31,24 +34,29 @@ message SendGetUserRequest {
31
34
  oneof identifier {
32
35
  string id = 1;
33
36
  string email = 2;
37
+ string username = 3;
34
38
  }
35
39
  }
36
40
 
37
41
  message SendGetUserResponse {
38
42
  string id = 1;
39
43
  string email = 2;
40
- string password_hash = 3;
44
+ string username = 3;
45
+ string password_hash = 4;
41
46
  }
42
47
 
43
48
  message SendUpdateUserRequest {
44
49
  string id = 1;
45
50
  string email = 2;
46
- string password_hash = 3;
51
+ string username = 3;
52
+ string password_hash = 4;
47
53
  }
48
54
 
49
55
  message SendUpdateUserResponse {
50
56
  string id = 1;
51
57
  string email = 2;
58
+ string username = 3;
59
+ string password_hash =4;
52
60
  }
53
61
 
54
62
  message SendDeleteUserRequest {