@aepstore-dev/contracts 1.108.0 → 1.109.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/taxonomy.d.ts CHANGED
@@ -47,11 +47,13 @@ export interface CategoryResponse {
47
47
  category: Category | undefined;
48
48
  }
49
49
  export interface CreateApplicationRequest {
50
+ ownerId?: string | undefined;
50
51
  name: string;
51
52
  description: string;
52
53
  iconUrl: string;
53
54
  }
54
55
  export interface UpdateApplicationRequest {
56
+ ownerId?: string | undefined;
55
57
  id: string;
56
58
  /** optional — empty keeps current */
57
59
  name: string;
@@ -64,11 +66,15 @@ export interface ApplicationResponse {
64
66
  application: Application | undefined;
65
67
  }
66
68
  export interface CreateIconUploadUrlRequest {
69
+ ownerId?: string | undefined;
67
70
  fileName: string;
68
71
  /** e.g. image/svg+xml */
69
72
  mimeType: string;
73
+ fileSize?: number | undefined;
70
74
  }
71
75
  export interface IconUploadUrlResponse {
76
+ sessionId?: string | undefined;
77
+ status?: string | undefined;
72
78
  /** presigned PUT URL — client uploads the SVG bytes here */
73
79
  uploadUrl: string;
74
80
  /** final public URL to store as Application.iconUrl */
package/gen/taxonomy.ts CHANGED
@@ -67,12 +67,14 @@ export interface CategoryResponse {
67
67
  }
68
68
 
69
69
  export interface CreateApplicationRequest {
70
+ ownerId?: string | undefined;
70
71
  name: string;
71
72
  description: string;
72
73
  iconUrl: string;
73
74
  }
74
75
 
75
76
  export interface UpdateApplicationRequest {
77
+ ownerId?: string | undefined;
76
78
  id: string;
77
79
  /** optional — empty keeps current */
78
80
  name: string;
@@ -87,12 +89,18 @@ export interface ApplicationResponse {
87
89
  }
88
90
 
89
91
  export interface CreateIconUploadUrlRequest {
92
+ ownerId?: string | undefined;
90
93
  fileName: string;
91
94
  /** e.g. image/svg+xml */
92
95
  mimeType: string;
96
+ fileSize?: number | undefined;
93
97
  }
94
98
 
95
99
  export interface IconUploadUrlResponse {
100
+ sessionId?: string | undefined;
101
+ status?:
102
+ | string
103
+ | undefined;
96
104
  /** presigned PUT URL — client uploads the SVG bytes here */
97
105
  uploadUrl: string;
98
106
  /** final public URL to store as Application.iconUrl */
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/gen/users.d.ts CHANGED
@@ -513,6 +513,7 @@ export interface ListAvatarBordersResponse {
513
513
  items: AvatarBorder[];
514
514
  }
515
515
  export interface UpsertAvatarBorderRequest {
516
+ ownerId?: string | undefined;
516
517
  /** empty = create */
517
518
  id: string;
518
519
  /** required when creating */
package/gen/users.ts CHANGED
@@ -592,6 +592,9 @@ export interface ListAvatarBordersResponse {
592
592
  }
593
593
 
594
594
  export interface UpsertAvatarBorderRequest {
595
+ ownerId?:
596
+ | string
597
+ | undefined;
595
598
  /** empty = create */
596
599
  id: string;
597
600
  /** required when creating */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.108.0",
3
+ "version": "1.109.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -33,4 +33,3 @@
33
33
  "typescript": "^5.9.3"
34
34
  }
35
35
  }
36
-
@@ -76,12 +76,14 @@ message CategoryResponse {
76
76
  }
77
77
 
78
78
  message CreateApplicationRequest {
79
+ optional string owner_id = 4;
79
80
  string name = 1;
80
81
  string description = 2;
81
82
  string icon_url = 3;
82
83
  }
83
84
 
84
85
  message UpdateApplicationRequest {
86
+ optional string owner_id = 5;
85
87
  string id = 1;
86
88
  string name = 2; // optional — empty keeps current
87
89
  string description = 3; // optional
@@ -93,11 +95,15 @@ message ApplicationResponse {
93
95
  }
94
96
 
95
97
  message CreateIconUploadUrlRequest {
98
+ optional string owner_id = 3;
96
99
  string file_name = 1;
97
100
  string mime_type = 2; // e.g. image/svg+xml
101
+ optional int64 file_size = 4;
98
102
  }
99
103
 
100
104
  message IconUploadUrlResponse {
105
+ optional string session_id = 5;
106
+ optional string status = 6;
101
107
  string upload_url = 1; // presigned PUT URL — client uploads the SVG bytes here
102
108
  string icon_url = 2; // final public URL to store as Application.iconUrl
103
109
  string file_key = 3;
@@ -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
- message ValidateReadyUploadRequest {
205
- string owner_id = 1;
206
- string storage_key = 2;
207
- UploadKind kind = 3;
208
- optional int64 file_size = 4;
209
- optional string mime_type = 5;
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
+ }
package/proto/users.proto CHANGED
@@ -646,6 +646,7 @@ message ListAvatarBordersResponse {
646
646
  }
647
647
 
648
648
  message UpsertAvatarBorderRequest {
649
+ optional string owner_id = 10;
649
650
  string id = 1; // empty = create
650
651
  string code = 2; // required when creating
651
652
  string name = 3;