@aepstore-dev/contracts 1.97.0 → 1.98.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/activity.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: activity.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ACTIVITY_SERVICE_NAME = exports.ACTIVITY_V1_PACKAGE_NAME = exports.ReportStatus = exports.ReportType = exports.protobufPackage = void 0;
package/gen/activity.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: activity.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/auth.d.ts CHANGED
@@ -19,6 +19,7 @@ export interface LoginRequest {
19
19
  */
20
20
  userAgent: string;
21
21
  ip: string;
22
+ trustedDeviceToken: string;
22
23
  }
23
24
  export interface RegisterRequest {
24
25
  email: string;
@@ -27,13 +28,14 @@ export interface RegisterRequest {
27
28
  /** optional, attached by gateway from req */
28
29
  ip: string;
29
30
  }
30
- /** type ∈ { twofa, reset, totp_generate, totp_activate, confirm } (legacy strings) */
31
+ /** type ∈ { twofa, reset, totp_generate, confirm } (legacy strings) */
31
32
  export interface CreateCodeRequest {
32
33
  email: string;
33
34
  type: string;
34
35
  }
35
36
  /**
36
- * type ∈ { twofa, twofa_deactivate, reset, totp, totp_deactivate, backup, confirm }
37
+ * type ∈ { twofa, twofa_activate, twofa_deactivate, reset, totp, totp_activate,
38
+ * totp_deactivate, backup, regenerate_backup, confirm }
37
39
  * new_password is only used by the 'reset' flow.
38
40
  */
39
41
  export interface VerifyCodeRequest {
@@ -42,6 +44,15 @@ export interface VerifyCodeRequest {
42
44
  type: string;
43
45
  /** optional */
44
46
  newPassword: string;
47
+ challengeId: string;
48
+ rememberDevice: boolean;
49
+ userAgent: string;
50
+ ip: string;
51
+ /**
52
+ * Internal service-to-service confirmation for sensitive account actions.
53
+ * Public login completions must use challenge_id instead.
54
+ */
55
+ accountVerification: boolean;
45
56
  }
46
57
  export interface CheckTokenRequest {
47
58
  token: string;
@@ -98,6 +109,10 @@ export interface AuthResult {
98
109
  /** data URL (PNG) */
99
110
  qr: string;
100
111
  backupCodes: string[];
112
+ challengeId: string;
113
+ trustedDeviceToken: string;
114
+ trustedDeviceExpiresAt: string;
115
+ securitySetupRequired: boolean;
101
116
  }
102
117
  export interface TwoFactorStatusResponse {
103
118
  twoFactorType: TwoFactorType;
package/gen/auth.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.AUTH_SERVICE_NAME = exports.AUTH_V1_PACKAGE_NAME = exports.TwoFactorType = exports.protobufPackage = void 0;
package/gen/auth.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: auth.proto
6
6
 
7
7
  /* eslint-disable */
@@ -30,6 +30,7 @@ export interface LoginRequest {
30
30
  */
31
31
  userAgent: string;
32
32
  ip: string;
33
+ trustedDeviceToken: string;
33
34
  }
34
35
 
35
36
  export interface RegisterRequest {
@@ -40,14 +41,15 @@ export interface RegisterRequest {
40
41
  ip: string;
41
42
  }
42
43
 
43
- /** type ∈ { twofa, reset, totp_generate, totp_activate, confirm } (legacy strings) */
44
+ /** type ∈ { twofa, reset, totp_generate, confirm } (legacy strings) */
44
45
  export interface CreateCodeRequest {
45
46
  email: string;
46
47
  type: string;
47
48
  }
48
49
 
49
50
  /**
50
- * type ∈ { twofa, twofa_deactivate, reset, totp, totp_deactivate, backup, confirm }
51
+ * type ∈ { twofa, twofa_activate, twofa_deactivate, reset, totp, totp_activate,
52
+ * totp_deactivate, backup, regenerate_backup, confirm }
51
53
  * new_password is only used by the 'reset' flow.
52
54
  */
53
55
  export interface VerifyCodeRequest {
@@ -56,6 +58,15 @@ export interface VerifyCodeRequest {
56
58
  type: string;
57
59
  /** optional */
58
60
  newPassword: string;
61
+ challengeId: string;
62
+ rememberDevice: boolean;
63
+ userAgent: string;
64
+ ip: string;
65
+ /**
66
+ * Internal service-to-service confirmation for sensitive account actions.
67
+ * Public login completions must use challenge_id instead.
68
+ */
69
+ accountVerification: boolean;
59
70
  }
60
71
 
61
72
  export interface CheckTokenRequest {
@@ -118,6 +129,10 @@ export interface AuthResult {
118
129
  /** data URL (PNG) */
119
130
  qr: string;
120
131
  backupCodes: string[];
132
+ challengeId: string;
133
+ trustedDeviceToken: string;
134
+ trustedDeviceExpiresAt: string;
135
+ securitySetupRequired: boolean;
121
136
  }
122
137
 
123
138
  export interface TwoFactorStatusResponse {
package/gen/mail.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: mail.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.MAIL_SERVICE_NAME = exports.MAIL_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/mail.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: mail.proto
6
6
 
7
7
  /* eslint-disable */
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: notifications.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.NOTIFICATIONS_SERVICE_NAME = exports.NOTIFICATIONS_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: notifications.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/payments.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: payments.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.PAYMENTS_SERVICE_NAME = exports.PAYMENTS_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/payments.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: payments.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/products.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: products.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.PRODUCTS_SERVICE_NAME = exports.PRODUCTS_V1_PACKAGE_NAME = exports.MediaType = exports.ModerationStatus = exports.ProductStatus = exports.protobufPackage = void 0;
package/gen/products.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: products.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/support.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: support.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.SUPPORT_SERVICE_NAME = exports.SUPPORT_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/support.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: support.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/taxonomy.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: taxonomy.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.TAXONOMY_SERVICE_NAME = exports.TAXONOMY_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/taxonomy.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: taxonomy.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/upload.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: upload.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.UPLOAD_SERVICE_NAME = exports.UPLOAD_V1_PACKAGE_NAME = exports.UploadKind = exports.protobufPackage = void 0;
package/gen/upload.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: upload.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/users.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.36.0
6
6
  // source: users.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.USERS_SERVICE_NAME = exports.USERS_V1_PACKAGE_NAME = exports.PremiumPeriod = exports.UserFieldsType = exports.AdminUserRelationKind = exports.protobufPackage = void 0;
package/gen/users.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.36.0
5
5
  // source: users.proto
6
6
 
7
7
  /* eslint-disable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.97.0",
3
+ "version": "1.98.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
@@ -45,16 +45,17 @@ enum TwoFactorType {
45
45
  // ---------------------------------------------------------------------------
46
46
 
47
47
  // Login by username OR email (one of the two must be set).
48
- message LoginRequest {
49
- string password = 1;
50
- string credentials = 2; // username OR email — resolved by the service
48
+ message LoginRequest {
49
+ string password = 1;
50
+ string credentials = 2; // username OR email — resolved by the service
51
51
  // Gateway-supplied audit context. LoginEvent rows for LOGIN /
52
52
  // PASSWORD_FAIL get the same ip/user-agent that REFRESH and RESTORE
53
53
  // already carry; the gRPC layer has no transport-level access to
54
- // either, so the gateway extracts them from the HTTP request.
55
- string user_agent = 3;
56
- string ip = 4;
57
- }
54
+ // either, so the gateway extracts them from the HTTP request.
55
+ string user_agent = 3;
56
+ string ip = 4;
57
+ string trusted_device_token = 5;
58
+ }
58
59
 
59
60
  message RegisterRequest {
60
61
  string email = 1;
@@ -63,20 +64,28 @@ message RegisterRequest {
63
64
  string ip = 4; // optional, attached by gateway from req
64
65
  }
65
66
 
66
- // type ∈ { twofa, reset, totp_generate, totp_activate, confirm } (legacy strings)
67
+ // type ∈ { twofa, reset, totp_generate, confirm } (legacy strings)
67
68
  message CreateCodeRequest {
68
69
  string email = 1;
69
70
  string type = 2;
70
71
  }
71
72
 
72
- // type ∈ { twofa, twofa_deactivate, reset, totp, totp_deactivate, backup, confirm }
73
- // new_password is only used by the 'reset' flow.
74
- message VerifyCodeRequest {
75
- string email = 1;
76
- string code = 2;
77
- string type = 3;
78
- string new_password = 4; // optional
79
- }
73
+ // type ∈ { twofa, twofa_activate, twofa_deactivate, reset, totp, totp_activate,
74
+ // totp_deactivate, backup, regenerate_backup, confirm }
75
+ // new_password is only used by the 'reset' flow.
76
+ message VerifyCodeRequest {
77
+ string email = 1;
78
+ string code = 2;
79
+ string type = 3;
80
+ string new_password = 4; // optional
81
+ string challenge_id = 5;
82
+ bool remember_device = 6;
83
+ string user_agent = 7;
84
+ string ip = 8;
85
+ // Internal service-to-service confirmation for sensitive account actions.
86
+ // Public login completions must use challenge_id instead.
87
+ bool account_verification = 9;
88
+ }
80
89
 
81
90
  message CheckTokenRequest {
82
91
  string token = 1;
@@ -140,9 +149,13 @@ message AuthResult {
140
149
  // TOTP setup extras
141
150
  string secret = 8;
142
151
  string otpauth = 9;
143
- string qr = 10; // data URL (PNG)
144
- repeated string backup_codes = 11;
145
- }
152
+ string qr = 10; // data URL (PNG)
153
+ repeated string backup_codes = 11;
154
+ string challenge_id = 12;
155
+ string trusted_device_token = 13;
156
+ string trusted_device_expires_at = 14;
157
+ bool security_setup_required = 15;
158
+ }
146
159
 
147
160
  message TwoFactorStatusResponse {
148
161
  TwoFactorType two_factor_type = 1;