@aepstore-dev/contracts 1.108.1 → 1.110.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/auth.d.ts +9 -0
- package/gen/auth.js +1 -0
- package/gen/auth.ts +13 -0
- package/gen/taxonomy.d.ts +1 -0
- package/gen/taxonomy.ts +1 -0
- package/gen/upload.d.ts +6 -0
- package/gen/upload.js +3 -0
- package/gen/upload.ts +6 -0
- package/package.json +1 -3
- package/proto/auth.proto +9 -0
- package/proto/taxonomy.proto +10 -9
- package/proto/upload.proto +56 -51
package/gen/auth.d.ts
CHANGED
|
@@ -7,6 +7,13 @@ export declare enum TwoFactorType {
|
|
|
7
7
|
UNRECOGNIZED = -1
|
|
8
8
|
}
|
|
9
9
|
/** Login by username OR email (one of the two must be set). */
|
|
10
|
+
export interface AdminLoginRequest {
|
|
11
|
+
credentials: string;
|
|
12
|
+
password: string;
|
|
13
|
+
code: string;
|
|
14
|
+
userAgent: string;
|
|
15
|
+
ip: string;
|
|
16
|
+
}
|
|
10
17
|
export interface LoginRequest {
|
|
11
18
|
password: string;
|
|
12
19
|
/** username OR email — resolved by the service */
|
|
@@ -334,6 +341,7 @@ export declare const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
|
334
341
|
*/
|
|
335
342
|
export interface AuthServiceClient {
|
|
336
343
|
login(request: LoginRequest): Observable<AuthResult>;
|
|
344
|
+
adminLogin(request: AdminLoginRequest): Observable<AuthResult>;
|
|
337
345
|
register(request: RegisterRequest): Observable<AuthResult>;
|
|
338
346
|
createCode(request: CreateCodeRequest): Observable<AuthResult>;
|
|
339
347
|
verifyCode(request: VerifyCodeRequest): Observable<AuthResult>;
|
|
@@ -388,6 +396,7 @@ export interface AuthServiceClient {
|
|
|
388
396
|
*/
|
|
389
397
|
export interface AuthServiceController {
|
|
390
398
|
login(request: LoginRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
399
|
+
adminLogin(request: AdminLoginRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
391
400
|
register(request: RegisterRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
392
401
|
createCode(request: CreateCodeRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
393
402
|
verifyCode(request: VerifyCodeRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
package/gen/auth.js
CHANGED
package/gen/auth.ts
CHANGED
|
@@ -18,6 +18,14 @@ export enum TwoFactorType {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/** Login by username OR email (one of the two must be set). */
|
|
21
|
+
export interface AdminLoginRequest {
|
|
22
|
+
credentials: string;
|
|
23
|
+
password: string;
|
|
24
|
+
code: string;
|
|
25
|
+
userAgent: string;
|
|
26
|
+
ip: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
21
29
|
export interface LoginRequest {
|
|
22
30
|
password: string;
|
|
23
31
|
/** username OR email — resolved by the service */
|
|
@@ -396,6 +404,8 @@ export const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
|
396
404
|
export interface AuthServiceClient {
|
|
397
405
|
login(request: LoginRequest): Observable<AuthResult>;
|
|
398
406
|
|
|
407
|
+
adminLogin(request: AdminLoginRequest): Observable<AuthResult>;
|
|
408
|
+
|
|
399
409
|
register(request: RegisterRequest): Observable<AuthResult>;
|
|
400
410
|
|
|
401
411
|
createCode(request: CreateCodeRequest): Observable<AuthResult>;
|
|
@@ -490,6 +500,8 @@ export interface AuthServiceClient {
|
|
|
490
500
|
export interface AuthServiceController {
|
|
491
501
|
login(request: LoginRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
492
502
|
|
|
503
|
+
adminLogin(request: AdminLoginRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
504
|
+
|
|
493
505
|
register(request: RegisterRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
494
506
|
|
|
495
507
|
createCode(request: CreateCodeRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
@@ -609,6 +621,7 @@ export function AuthServiceControllerMethods() {
|
|
|
609
621
|
return function (constructor: Function) {
|
|
610
622
|
const grpcMethods: string[] = [
|
|
611
623
|
"login",
|
|
624
|
+
"adminLogin",
|
|
612
625
|
"register",
|
|
613
626
|
"createCode",
|
|
614
627
|
"verifyCode",
|
package/gen/taxonomy.d.ts
CHANGED
package/gen/taxonomy.ts
CHANGED
package/gen/upload.d.ts
CHANGED
|
@@ -7,10 +7,13 @@ export declare const protobufPackage = "upload.v1";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare enum UploadKind {
|
|
9
9
|
UPLOAD_KIND_UNSPECIFIED = 0,
|
|
10
|
+
/** UPLOAD_KIND_ATTACHMENT - Legacy alias: product_attachment only. */
|
|
10
11
|
UPLOAD_KIND_ATTACHMENT = 1,
|
|
11
12
|
UPLOAD_KIND_MEDIA = 2,
|
|
12
13
|
UPLOAD_KIND_AVATAR = 3,
|
|
13
14
|
UPLOAD_KIND_BANNER = 4,
|
|
15
|
+
UPLOAD_KIND_SUPPORT_ATTACHMENT = 6,
|
|
16
|
+
UPLOAD_KIND_ACCOUNT_EXPORT = 7,
|
|
14
17
|
/** UPLOAD_KIND_ICON - taxonomy program/app brand icons → public/icons/ */
|
|
15
18
|
UPLOAD_KIND_ICON = 5,
|
|
16
19
|
UNRECOGNIZED = -1
|
|
@@ -144,6 +147,9 @@ export interface UploadSessionResponse {
|
|
|
144
147
|
mimeType: string;
|
|
145
148
|
url: string;
|
|
146
149
|
failureCode: string;
|
|
150
|
+
animated: boolean;
|
|
151
|
+
retryAfterSeconds: number;
|
|
152
|
+
verificationType: string;
|
|
147
153
|
}
|
|
148
154
|
export interface ValidateReadyUploadRequest {
|
|
149
155
|
ownerId: string;
|
package/gen/upload.js
CHANGED
|
@@ -18,10 +18,13 @@ exports.protobufPackage = "upload.v1";
|
|
|
18
18
|
var UploadKind;
|
|
19
19
|
(function (UploadKind) {
|
|
20
20
|
UploadKind[UploadKind["UPLOAD_KIND_UNSPECIFIED"] = 0] = "UPLOAD_KIND_UNSPECIFIED";
|
|
21
|
+
/** UPLOAD_KIND_ATTACHMENT - Legacy alias: product_attachment only. */
|
|
21
22
|
UploadKind[UploadKind["UPLOAD_KIND_ATTACHMENT"] = 1] = "UPLOAD_KIND_ATTACHMENT";
|
|
22
23
|
UploadKind[UploadKind["UPLOAD_KIND_MEDIA"] = 2] = "UPLOAD_KIND_MEDIA";
|
|
23
24
|
UploadKind[UploadKind["UPLOAD_KIND_AVATAR"] = 3] = "UPLOAD_KIND_AVATAR";
|
|
24
25
|
UploadKind[UploadKind["UPLOAD_KIND_BANNER"] = 4] = "UPLOAD_KIND_BANNER";
|
|
26
|
+
UploadKind[UploadKind["UPLOAD_KIND_SUPPORT_ATTACHMENT"] = 6] = "UPLOAD_KIND_SUPPORT_ATTACHMENT";
|
|
27
|
+
UploadKind[UploadKind["UPLOAD_KIND_ACCOUNT_EXPORT"] = 7] = "UPLOAD_KIND_ACCOUNT_EXPORT";
|
|
25
28
|
/** UPLOAD_KIND_ICON - taxonomy program/app brand icons → public/icons/ */
|
|
26
29
|
UploadKind[UploadKind["UPLOAD_KIND_ICON"] = 5] = "UPLOAD_KIND_ICON";
|
|
27
30
|
UploadKind[UploadKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
package/gen/upload.ts
CHANGED
|
@@ -17,10 +17,13 @@ export const protobufPackage = "upload.v1";
|
|
|
17
17
|
*/
|
|
18
18
|
export enum UploadKind {
|
|
19
19
|
UPLOAD_KIND_UNSPECIFIED = 0,
|
|
20
|
+
/** UPLOAD_KIND_ATTACHMENT - Legacy alias: product_attachment only. */
|
|
20
21
|
UPLOAD_KIND_ATTACHMENT = 1,
|
|
21
22
|
UPLOAD_KIND_MEDIA = 2,
|
|
22
23
|
UPLOAD_KIND_AVATAR = 3,
|
|
23
24
|
UPLOAD_KIND_BANNER = 4,
|
|
25
|
+
UPLOAD_KIND_SUPPORT_ATTACHMENT = 6,
|
|
26
|
+
UPLOAD_KIND_ACCOUNT_EXPORT = 7,
|
|
24
27
|
/** UPLOAD_KIND_ICON - taxonomy program/app brand icons → public/icons/ */
|
|
25
28
|
UPLOAD_KIND_ICON = 5,
|
|
26
29
|
UNRECOGNIZED = -1,
|
|
@@ -179,6 +182,9 @@ export interface UploadSessionResponse {
|
|
|
179
182
|
mimeType: string;
|
|
180
183
|
url: string;
|
|
181
184
|
failureCode: string;
|
|
185
|
+
animated: boolean;
|
|
186
|
+
retryAfterSeconds: number;
|
|
187
|
+
verificationType: string;
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
export interface ValidateReadyUploadRequest {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aepstore-dev/contracts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.110.0",
|
|
4
4
|
"description": "Protobuf definitions for aepstore microservices",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,5 +33,3 @@
|
|
|
33
33
|
"typescript": "^5.9.3"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
package/proto/auth.proto
CHANGED
|
@@ -10,6 +10,7 @@ package auth.v1;
|
|
|
10
10
|
// revocation). Refresh verifies the HMAC AND that the row still exists.
|
|
11
11
|
service AuthService {
|
|
12
12
|
rpc Login(LoginRequest) returns (AuthResult);
|
|
13
|
+
rpc AdminLogin(AdminLoginRequest) returns (AuthResult);
|
|
13
14
|
rpc Register(RegisterRequest) returns (AuthResult);
|
|
14
15
|
rpc CreateCode(CreateCodeRequest) returns (AuthResult);
|
|
15
16
|
rpc VerifyCode(VerifyCodeRequest) returns (AuthResult);
|
|
@@ -62,6 +63,14 @@ enum TwoFactorType {
|
|
|
62
63
|
// ---------------------------------------------------------------------------
|
|
63
64
|
|
|
64
65
|
// Login by username OR email (one of the two must be set).
|
|
66
|
+
message AdminLoginRequest {
|
|
67
|
+
string credentials = 1;
|
|
68
|
+
string password = 2;
|
|
69
|
+
string code = 3;
|
|
70
|
+
string user_agent = 4;
|
|
71
|
+
string ip = 5;
|
|
72
|
+
}
|
|
73
|
+
|
|
65
74
|
message LoginRequest {
|
|
66
75
|
string password = 1;
|
|
67
76
|
string credentials = 2; // username OR email — resolved by the service
|
package/proto/taxonomy.proto
CHANGED
|
@@ -75,15 +75,15 @@ message CategoryResponse {
|
|
|
75
75
|
Category category = 1;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
message CreateApplicationRequest {
|
|
79
|
-
optional string owner_id = 4;
|
|
78
|
+
message CreateApplicationRequest {
|
|
79
|
+
optional string owner_id = 4;
|
|
80
80
|
string name = 1;
|
|
81
81
|
string description = 2;
|
|
82
82
|
string icon_url = 3;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
message UpdateApplicationRequest {
|
|
86
|
-
optional string owner_id = 5;
|
|
85
|
+
message UpdateApplicationRequest {
|
|
86
|
+
optional string owner_id = 5;
|
|
87
87
|
string id = 1;
|
|
88
88
|
string name = 2; // optional — empty keeps current
|
|
89
89
|
string description = 3; // optional
|
|
@@ -94,15 +94,16 @@ message ApplicationResponse {
|
|
|
94
94
|
Application application = 1;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
message CreateIconUploadUrlRequest {
|
|
98
|
-
optional string owner_id = 3;
|
|
97
|
+
message CreateIconUploadUrlRequest {
|
|
98
|
+
optional string owner_id = 3;
|
|
99
99
|
string file_name = 1;
|
|
100
100
|
string mime_type = 2; // e.g. image/svg+xml
|
|
101
|
+
optional int64 file_size = 4;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
message IconUploadUrlResponse {
|
|
104
|
-
optional string session_id = 5;
|
|
105
|
-
optional string status = 6;
|
|
104
|
+
message IconUploadUrlResponse {
|
|
105
|
+
optional string session_id = 5;
|
|
106
|
+
optional string status = 6;
|
|
106
107
|
string upload_url = 1; // presigned PUT URL — client uploads the SVG bytes here
|
|
107
108
|
string icon_url = 2; // final public URL to store as Application.iconUrl
|
|
108
109
|
string file_key = 3;
|
package/proto/upload.proto
CHANGED
|
@@ -14,11 +14,11 @@ package upload.v1;
|
|
|
14
14
|
//
|
|
15
15
|
// Downloads are gated elsewhere (products-service verifies purchase, then calls
|
|
16
16
|
// GenerateSignedUrl). This service does not know about purchases.
|
|
17
|
-
service UploadService {
|
|
18
|
-
// Complete single PUT, poll readiness, validate domain metadata.
|
|
19
|
-
rpc CompleteUpload(UploadSessionRequest) returns (UploadSessionResponse);
|
|
20
|
-
rpc GetUploadSession(UploadSessionRequest) returns (UploadSessionResponse);
|
|
21
|
-
rpc ValidateReadyUpload(ValidateReadyUploadRequest) returns (UploadSessionResponse);
|
|
17
|
+
service UploadService {
|
|
18
|
+
// Complete single PUT, poll readiness, validate domain metadata.
|
|
19
|
+
rpc CompleteUpload(UploadSessionRequest) returns (UploadSessionResponse);
|
|
20
|
+
rpc GetUploadSession(UploadSessionRequest) returns (UploadSessionResponse);
|
|
21
|
+
rpc ValidateReadyUpload(ValidateReadyUploadRequest) returns (UploadSessionResponse);
|
|
22
22
|
rpc CreateMultipartUpload(CreateMultipartUploadRequest) returns (CreateMultipartUploadResponse);
|
|
23
23
|
rpc SignPart(SignPartRequest) returns (SignPartResponse);
|
|
24
24
|
rpc CompleteMultipartUpload(CompleteMultipartUploadRequest) returns (CompleteMultipartUploadResponse);
|
|
@@ -60,10 +60,12 @@ message ListObjectsResponse {
|
|
|
60
60
|
// MEDIA / AVATAR / BANNER = preview assets.
|
|
61
61
|
enum UploadKind {
|
|
62
62
|
UPLOAD_KIND_UNSPECIFIED = 0;
|
|
63
|
-
UPLOAD_KIND_ATTACHMENT = 1;
|
|
63
|
+
UPLOAD_KIND_ATTACHMENT = 1; // Legacy alias: product_attachment only.
|
|
64
64
|
UPLOAD_KIND_MEDIA = 2;
|
|
65
65
|
UPLOAD_KIND_AVATAR = 3;
|
|
66
66
|
UPLOAD_KIND_BANNER = 4;
|
|
67
|
+
UPLOAD_KIND_SUPPORT_ATTACHMENT = 6;
|
|
68
|
+
UPLOAD_KIND_ACCOUNT_EXPORT = 7;
|
|
67
69
|
UPLOAD_KIND_ICON = 5; // taxonomy program/app brand icons → public/icons/
|
|
68
70
|
}
|
|
69
71
|
|
|
@@ -83,17 +85,17 @@ message CreateMultipartUploadRequest {
|
|
|
83
85
|
string owner_id = 5; // user initiating, for key namespacing + audit
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
message CreateMultipartUploadResponse {
|
|
87
|
-
optional string session_id = 5;
|
|
88
|
-
optional string status = 6;
|
|
88
|
+
message CreateMultipartUploadResponse {
|
|
89
|
+
optional string session_id = 5;
|
|
90
|
+
optional string status = 6;
|
|
89
91
|
string upload_id = 1; // S3 multipart UploadId
|
|
90
92
|
string file_key = 2; // object key this service generated
|
|
91
93
|
int64 part_size = 3; // recommended part size (bytes) the client should slice with
|
|
92
94
|
int32 part_count = 4; // number of parts for file_size at part_size
|
|
93
95
|
}
|
|
94
96
|
|
|
95
|
-
message SignPartRequest {
|
|
96
|
-
optional string owner_id = 4;
|
|
97
|
+
message SignPartRequest {
|
|
98
|
+
optional string owner_id = 4;
|
|
97
99
|
string file_key = 1;
|
|
98
100
|
string upload_id = 2;
|
|
99
101
|
int32 part_number = 3; // 1-based
|
|
@@ -109,23 +111,23 @@ message CompletedPart {
|
|
|
109
111
|
string etag = 2; // ETag the client received in the S3 PUT response header for this part
|
|
110
112
|
}
|
|
111
113
|
|
|
112
|
-
message CompleteMultipartUploadRequest {
|
|
113
|
-
optional string owner_id = 4;
|
|
114
|
+
message CompleteMultipartUploadRequest {
|
|
115
|
+
optional string owner_id = 4;
|
|
114
116
|
string file_key = 1;
|
|
115
117
|
string upload_id = 2;
|
|
116
118
|
repeated CompletedPart parts = 3;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
message CompleteMultipartUploadResponse {
|
|
120
|
-
optional string session_id = 4;
|
|
121
|
-
optional string status = 5;
|
|
121
|
+
message CompleteMultipartUploadResponse {
|
|
122
|
+
optional string session_id = 4;
|
|
123
|
+
optional string status = 5;
|
|
122
124
|
string file_key = 1;
|
|
123
125
|
string location = 2; // final object location (internal reference)
|
|
124
126
|
int64 file_size = 3;
|
|
125
127
|
}
|
|
126
128
|
|
|
127
|
-
message AbortMultipartUploadRequest {
|
|
128
|
-
optional string owner_id = 3;
|
|
129
|
+
message AbortMultipartUploadRequest {
|
|
130
|
+
optional string owner_id = 3;
|
|
129
131
|
string file_key = 1;
|
|
130
132
|
string upload_id = 2;
|
|
131
133
|
}
|
|
@@ -134,17 +136,17 @@ message AbortMultipartUploadRequest {
|
|
|
134
136
|
// Single-PUT upload (small files)
|
|
135
137
|
// ---------------------------------------------------------------------------
|
|
136
138
|
|
|
137
|
-
message CreateUploadUrlRequest {
|
|
138
|
-
optional int64 file_size = 5;
|
|
139
|
+
message CreateUploadUrlRequest {
|
|
140
|
+
optional int64 file_size = 5;
|
|
139
141
|
string file_name = 1;
|
|
140
142
|
string mime_type = 2;
|
|
141
143
|
UploadKind kind = 3;
|
|
142
144
|
string owner_id = 4;
|
|
143
145
|
}
|
|
144
146
|
|
|
145
|
-
message CreateUploadUrlResponse {
|
|
146
|
-
optional string session_id = 5;
|
|
147
|
-
optional string status = 6;
|
|
147
|
+
message CreateUploadUrlResponse {
|
|
148
|
+
optional string session_id = 5;
|
|
149
|
+
optional string status = 6;
|
|
148
150
|
string url = 1; // presigned PUT URL (client PUTs the whole file)
|
|
149
151
|
string file_key = 2;
|
|
150
152
|
int32 expires_in = 3;
|
|
@@ -180,31 +182,34 @@ message HeadObjectResponse {
|
|
|
180
182
|
// Cleanup
|
|
181
183
|
// ---------------------------------------------------------------------------
|
|
182
184
|
|
|
183
|
-
message DeleteObjectRequest {
|
|
184
|
-
string file_key = 1;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
message UploadSessionRequest {
|
|
188
|
-
string session_id = 1;
|
|
189
|
-
string owner_id = 2;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
message UploadSessionResponse {
|
|
193
|
-
string session_id = 1;
|
|
194
|
-
string status = 2;
|
|
195
|
-
// Final metadata is returned only for READY; quarantine keys are never returned here.
|
|
196
|
-
string storage_key = 3;
|
|
197
|
-
string file_name = 4;
|
|
198
|
-
int64 file_size = 5;
|
|
199
|
-
string mime_type = 6;
|
|
200
|
-
string url = 7;
|
|
201
|
-
string failure_code = 8;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
185
|
+
message DeleteObjectRequest {
|
|
186
|
+
string file_key = 1;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
message UploadSessionRequest {
|
|
190
|
+
string session_id = 1;
|
|
191
|
+
string owner_id = 2;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
message UploadSessionResponse {
|
|
195
|
+
string session_id = 1;
|
|
196
|
+
string status = 2;
|
|
197
|
+
// Final metadata is returned only for READY; quarantine keys are never returned here.
|
|
198
|
+
string storage_key = 3;
|
|
199
|
+
string file_name = 4;
|
|
200
|
+
int64 file_size = 5;
|
|
201
|
+
string mime_type = 6;
|
|
202
|
+
string url = 7;
|
|
203
|
+
string failure_code = 8;
|
|
204
|
+
bool animated = 9;
|
|
205
|
+
int32 retry_after_seconds = 10;
|
|
206
|
+
string verification_type = 11;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message ValidateReadyUploadRequest {
|
|
210
|
+
string owner_id = 1;
|
|
211
|
+
string storage_key = 2;
|
|
212
|
+
UploadKind kind = 3;
|
|
213
|
+
optional int64 file_size = 4;
|
|
214
|
+
optional string mime_type = 5;
|
|
215
|
+
}
|