@requ1emz/contracts 1.0.37 → 1.0.38

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
@@ -34,14 +34,12 @@ export interface UpdateUserRequest {
34
34
  id: string;
35
35
  email?: string | undefined;
36
36
  username?: string | undefined;
37
- passwordHash?: string | undefined;
37
+ currentPassword?: string | undefined;
38
+ newPassword?: string | undefined;
38
39
  }
39
40
 
40
41
  export interface UpdateUserResponse {
41
- id: string;
42
- email: string;
43
- username: string;
44
- passwordHash: string;
42
+ status: boolean;
45
43
  }
46
44
 
47
45
  export interface RefreshRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@requ1emz/contracts",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
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
@@ -33,14 +33,12 @@ message UpdateUserRequest {
33
33
  string id = 1;
34
34
  optional string email = 2;
35
35
  optional string username = 3;
36
- optional string password_hash = 4;
36
+ optional string current_password = 4;
37
+ optional string new_password = 5;
37
38
  }
38
39
 
39
40
  message UpdateUserResponse {
40
- string id = 1;
41
- string email = 2;
42
- string username = 3;
43
- string password_hash =4;
41
+ bool status = 1;
44
42
  }
45
43
 
46
44
  message RefreshRequest {