@requ1emz/contracts 1.0.10 → 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.
package/gen/auth.ts CHANGED
@@ -16,7 +16,7 @@ export interface SendRegistrationRequest {
16
16
  }
17
17
 
18
18
  export interface SendRegistationResponse {
19
- accountId: string;
19
+ userId: string;
20
20
  }
21
21
 
22
22
  export interface SendLoginRequest {
package/gen/user.ts CHANGED
@@ -12,36 +12,37 @@ export const protobufPackage = "user.v1";
12
12
 
13
13
  export interface SendCreateUserRequest {
14
14
  email: string;
15
- password: string;
15
+ passwordHash: string;
16
16
  }
17
17
 
18
18
  export interface SendCreateUserResponse {
19
- accountId: string;
19
+ id: string;
20
20
  }
21
21
 
22
22
  export interface SendGetUserRequest {
23
- accountId?: string | undefined;
23
+ id?: string | undefined;
24
24
  email?: string | undefined;
25
25
  }
26
26
 
27
27
  export interface SendGetUserResponse {
28
- accountId: string;
28
+ id: string;
29
29
  email: string;
30
+ passwordHash: string;
30
31
  }
31
32
 
32
33
  export interface SendUpdateUserRequest {
33
- accountId: string;
34
+ id: string;
34
35
  email: string;
35
- password: string;
36
+ passwordHash: string;
36
37
  }
37
38
 
38
39
  export interface SendUpdateUserResponse {
39
- accountId: string;
40
+ id: string;
40
41
  email: string;
41
42
  }
42
43
 
43
44
  export interface SendDeleteUserRequest {
44
- accountId: string;
45
+ id: string;
45
46
  }
46
47
 
47
48
  export interface SendDeleteUserResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@requ1emz/contracts",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
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
@@ -14,7 +14,7 @@ message SendRegistrationRequest {
14
14
  }
15
15
 
16
16
  message SendRegistationResponse {
17
- string account_id = 1;
17
+ string user_id = 1;
18
18
  }
19
19
 
20
20
  message SendLoginRequest {
package/proto/user.proto CHANGED
@@ -11,38 +11,39 @@ service UserService {
11
11
 
12
12
  message SendCreateUserRequest {
13
13
  string email = 1;
14
- string password = 2;
14
+ string password_hash = 2;
15
15
  }
16
16
 
17
17
  message SendCreateUserResponse {
18
- string account_id = 1;
18
+ string id = 1;
19
19
  }
20
20
 
21
21
  message SendGetUserRequest {
22
22
  oneof identifier {
23
- string account_id = 1;
24
- string email = 2;
23
+ string id = 1;
24
+ string email = 2;
25
25
  }
26
26
  }
27
27
 
28
28
  message SendGetUserResponse {
29
- string account_id = 1;
29
+ string id = 1;
30
30
  string email = 2;
31
+ string password_hash = 3;
31
32
  }
32
33
 
33
34
  message SendUpdateUserRequest {
34
- string account_id = 1;
35
+ string id = 1;
35
36
  string email = 2;
36
- string password = 3;
37
+ string password_hash = 3;
37
38
  }
38
39
 
39
40
  message SendUpdateUserResponse {
40
- string account_id = 1;
41
+ string id = 1;
41
42
  string email = 2;
42
43
  }
43
44
 
44
45
  message SendDeleteUserRequest {
45
- string account_id = 1;
46
+ string id = 1;
46
47
  }
47
48
 
48
49
  message SendDeleteUserResponse {