@aepstore-dev/contracts 1.16.0 → 1.18.0

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/products.ts CHANGED
@@ -191,6 +191,8 @@ export interface FindOneRequest {
191
191
  id: string;
192
192
  /** optional — to compute is_favorited etc. */
193
193
  viewerUserId: string;
194
+ /** dedup key for view counting (userId or hashed ip+ua) */
195
+ viewerKey: string;
194
196
  }
195
197
 
196
198
  export interface RemoveProductRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.16.0",
3
+ "version": "1.18.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/auth.proto CHANGED
@@ -33,8 +33,7 @@ enum TwoFactorType {
33
33
  // Login by username OR email (one of the two must be set).
34
34
  message LoginRequest {
35
35
  string password = 1;
36
- string username = 2; // optional
37
- string email = 3; // optional
36
+ string credentials = 2; // username OR email — resolved by the service
38
37
  }
39
38
 
40
39
  message RegisterRequest {
@@ -210,6 +210,7 @@ message FindMyRequest {
210
210
  message FindOneRequest {
211
211
  string id = 1;
212
212
  string viewer_user_id = 2; // optional — to compute is_favorited etc.
213
+ string viewer_key = 3; // dedup key for view counting (userId or hashed ip+ua)
213
214
  }
214
215
 
215
216
  message RemoveProductRequest {