@aepstore-dev/contracts 1.97.0 → 1.99.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 +1 -1
- package/gen/activity.ts +1 -1
- package/gen/auth.d.ts +19 -2
- package/gen/auth.js +1 -1
- package/gen/auth.ts +20 -3
- package/gen/mail.js +1 -1
- package/gen/mail.ts +1 -1
- package/gen/notifications.js +1 -1
- package/gen/notifications.ts +1 -1
- package/gen/payments.js +1 -1
- package/gen/payments.ts +1 -1
- package/gen/products.js +1 -1
- package/gen/products.ts +1 -1
- package/gen/support.js +1 -1
- package/gen/support.ts +1 -1
- package/gen/taxonomy.js +1 -1
- package/gen/taxonomy.ts +1 -1
- package/gen/upload.js +1 -1
- package/gen/upload.ts +1 -1
- package/gen/users.js +1 -1
- package/gen/users.ts +1 -1
- package/package.json +1 -1
- package/proto/auth.proto +39 -25
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.
|
|
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
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;
|
|
@@ -26,14 +27,17 @@ export interface RegisterRequest {
|
|
|
26
27
|
password: string;
|
|
27
28
|
/** optional, attached by gateway from req */
|
|
28
29
|
ip: string;
|
|
30
|
+
/** optional, attached by gateway from req */
|
|
31
|
+
userAgent: string;
|
|
29
32
|
}
|
|
30
|
-
/** type ∈ { twofa, reset, totp_generate,
|
|
33
|
+
/** type ∈ { twofa, reset, totp_generate, confirm } (legacy strings) */
|
|
31
34
|
export interface CreateCodeRequest {
|
|
32
35
|
email: string;
|
|
33
36
|
type: string;
|
|
34
37
|
}
|
|
35
38
|
/**
|
|
36
|
-
* type ∈ { twofa, twofa_deactivate, reset, totp,
|
|
39
|
+
* type ∈ { twofa, twofa_activate, twofa_deactivate, reset, totp, totp_activate,
|
|
40
|
+
* totp_deactivate, backup, regenerate_backup, confirm }
|
|
37
41
|
* new_password is only used by the 'reset' flow.
|
|
38
42
|
*/
|
|
39
43
|
export interface VerifyCodeRequest {
|
|
@@ -42,6 +46,15 @@ export interface VerifyCodeRequest {
|
|
|
42
46
|
type: string;
|
|
43
47
|
/** optional */
|
|
44
48
|
newPassword: string;
|
|
49
|
+
challengeId: string;
|
|
50
|
+
rememberDevice: boolean;
|
|
51
|
+
userAgent: string;
|
|
52
|
+
ip: string;
|
|
53
|
+
/**
|
|
54
|
+
* Internal service-to-service confirmation for sensitive account actions.
|
|
55
|
+
* Public login completions must use challenge_id instead.
|
|
56
|
+
*/
|
|
57
|
+
accountVerification: boolean;
|
|
45
58
|
}
|
|
46
59
|
export interface CheckTokenRequest {
|
|
47
60
|
token: string;
|
|
@@ -98,6 +111,10 @@ export interface AuthResult {
|
|
|
98
111
|
/** data URL (PNG) */
|
|
99
112
|
qr: string;
|
|
100
113
|
backupCodes: string[];
|
|
114
|
+
challengeId: string;
|
|
115
|
+
trustedDeviceToken: string;
|
|
116
|
+
trustedDeviceExpiresAt: string;
|
|
117
|
+
securitySetupRequired: boolean;
|
|
101
118
|
}
|
|
102
119
|
export interface TwoFactorStatusResponse {
|
|
103
120
|
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.
|
|
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.
|
|
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 {
|
|
@@ -38,16 +39,19 @@ export interface RegisterRequest {
|
|
|
38
39
|
password: string;
|
|
39
40
|
/** optional, attached by gateway from req */
|
|
40
41
|
ip: string;
|
|
42
|
+
/** optional, attached by gateway from req */
|
|
43
|
+
userAgent: string;
|
|
41
44
|
}
|
|
42
45
|
|
|
43
|
-
/** type ∈ { twofa, reset, totp_generate,
|
|
46
|
+
/** type ∈ { twofa, reset, totp_generate, confirm } (legacy strings) */
|
|
44
47
|
export interface CreateCodeRequest {
|
|
45
48
|
email: string;
|
|
46
49
|
type: string;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
/**
|
|
50
|
-
* type ∈ { twofa, twofa_deactivate, reset, totp,
|
|
53
|
+
* type ∈ { twofa, twofa_activate, twofa_deactivate, reset, totp, totp_activate,
|
|
54
|
+
* totp_deactivate, backup, regenerate_backup, confirm }
|
|
51
55
|
* new_password is only used by the 'reset' flow.
|
|
52
56
|
*/
|
|
53
57
|
export interface VerifyCodeRequest {
|
|
@@ -56,6 +60,15 @@ export interface VerifyCodeRequest {
|
|
|
56
60
|
type: string;
|
|
57
61
|
/** optional */
|
|
58
62
|
newPassword: string;
|
|
63
|
+
challengeId: string;
|
|
64
|
+
rememberDevice: boolean;
|
|
65
|
+
userAgent: string;
|
|
66
|
+
ip: string;
|
|
67
|
+
/**
|
|
68
|
+
* Internal service-to-service confirmation for sensitive account actions.
|
|
69
|
+
* Public login completions must use challenge_id instead.
|
|
70
|
+
*/
|
|
71
|
+
accountVerification: boolean;
|
|
59
72
|
}
|
|
60
73
|
|
|
61
74
|
export interface CheckTokenRequest {
|
|
@@ -118,6 +131,10 @@ export interface AuthResult {
|
|
|
118
131
|
/** data URL (PNG) */
|
|
119
132
|
qr: string;
|
|
120
133
|
backupCodes: string[];
|
|
134
|
+
challengeId: string;
|
|
135
|
+
trustedDeviceToken: string;
|
|
136
|
+
trustedDeviceExpiresAt: string;
|
|
137
|
+
securitySetupRequired: boolean;
|
|
121
138
|
}
|
|
122
139
|
|
|
123
140
|
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.
|
|
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
package/gen/notifications.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.
|
|
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;
|
package/gen/notifications.ts
CHANGED
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.
|
|
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
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.
|
|
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
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.
|
|
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
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.
|
|
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
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.
|
|
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
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.
|
|
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
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -45,38 +45,48 @@ 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
|
-
message RegisterRequest {
|
|
60
|
-
string email = 1;
|
|
61
|
-
string username = 2;
|
|
62
|
-
string password = 3;
|
|
63
|
-
string ip = 4; // optional, attached by gateway from req
|
|
64
|
-
|
|
60
|
+
message RegisterRequest {
|
|
61
|
+
string email = 1;
|
|
62
|
+
string username = 2;
|
|
63
|
+
string password = 3;
|
|
64
|
+
string ip = 4; // optional, attached by gateway from req
|
|
65
|
+
string user_agent = 5; // optional, attached by gateway from req
|
|
66
|
+
}
|
|
65
67
|
|
|
66
|
-
// type ∈ { twofa, reset, totp_generate,
|
|
68
|
+
// type ∈ { twofa, reset, totp_generate, confirm } (legacy strings)
|
|
67
69
|
message CreateCodeRequest {
|
|
68
70
|
string email = 1;
|
|
69
71
|
string type = 2;
|
|
70
72
|
}
|
|
71
73
|
|
|
72
|
-
// type ∈ { twofa, twofa_deactivate, reset, totp,
|
|
73
|
-
//
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
string
|
|
77
|
-
string
|
|
78
|
-
string
|
|
79
|
-
|
|
74
|
+
// type ∈ { twofa, twofa_activate, twofa_deactivate, reset, totp, totp_activate,
|
|
75
|
+
// totp_deactivate, backup, regenerate_backup, confirm }
|
|
76
|
+
// new_password is only used by the 'reset' flow.
|
|
77
|
+
message VerifyCodeRequest {
|
|
78
|
+
string email = 1;
|
|
79
|
+
string code = 2;
|
|
80
|
+
string type = 3;
|
|
81
|
+
string new_password = 4; // optional
|
|
82
|
+
string challenge_id = 5;
|
|
83
|
+
bool remember_device = 6;
|
|
84
|
+
string user_agent = 7;
|
|
85
|
+
string ip = 8;
|
|
86
|
+
// Internal service-to-service confirmation for sensitive account actions.
|
|
87
|
+
// Public login completions must use challenge_id instead.
|
|
88
|
+
bool account_verification = 9;
|
|
89
|
+
}
|
|
80
90
|
|
|
81
91
|
message CheckTokenRequest {
|
|
82
92
|
string token = 1;
|
|
@@ -140,9 +150,13 @@ message AuthResult {
|
|
|
140
150
|
// TOTP setup extras
|
|
141
151
|
string secret = 8;
|
|
142
152
|
string otpauth = 9;
|
|
143
|
-
string qr = 10; // data URL (PNG)
|
|
144
|
-
repeated string backup_codes = 11;
|
|
145
|
-
|
|
153
|
+
string qr = 10; // data URL (PNG)
|
|
154
|
+
repeated string backup_codes = 11;
|
|
155
|
+
string challenge_id = 12;
|
|
156
|
+
string trusted_device_token = 13;
|
|
157
|
+
string trusted_device_expires_at = 14;
|
|
158
|
+
bool security_setup_required = 15;
|
|
159
|
+
}
|
|
146
160
|
|
|
147
161
|
message TwoFactorStatusResponse {
|
|
148
162
|
TwoFactorType two_factor_type = 1;
|