@requ1emz/contracts 1.0.9 → 1.0.10

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/user.ts CHANGED
@@ -20,7 +20,8 @@ export interface SendCreateUserResponse {
20
20
  }
21
21
 
22
22
  export interface SendGetUserRequest {
23
- accountId: string;
23
+ accountId?: string | undefined;
24
+ email?: string | undefined;
24
25
  }
25
26
 
26
27
  export interface SendGetUserResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@requ1emz/contracts",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/user.proto CHANGED
@@ -19,7 +19,10 @@ message SendCreateUserResponse {
19
19
  }
20
20
 
21
21
  message SendGetUserRequest {
22
- string account_id = 1;
22
+ oneof identifier {
23
+ string account_id = 1;
24
+ string email = 2;
25
+ }
23
26
  }
24
27
 
25
28
  message SendGetUserResponse {