@ciganov/contracts 1.1.15 → 1.1.16
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/dist/gen/media.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "media.v1";
|
|
3
3
|
export interface UploadAvatarRequest {
|
|
4
|
+
userId: string;
|
|
4
5
|
file: Uint8Array;
|
|
5
6
|
filename: string;
|
|
6
7
|
contentType: string;
|
|
7
8
|
}
|
|
8
9
|
export interface UploadAvatarResponse {
|
|
9
|
-
|
|
10
|
+
fileId: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const MEDIA_V1_PACKAGE_NAME = "media.v1";
|
|
12
13
|
export interface MediaServiceClient {
|
|
@@ -2,16 +2,19 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package media.v1;
|
|
4
4
|
|
|
5
|
+
option go_package = "github.com/ciganov-net/backend-media-service/gen/media";
|
|
6
|
+
|
|
5
7
|
service MediaService {
|
|
6
8
|
rpc UploadAvatar(UploadAvatarRequest) returns (UploadAvatarResponse);
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
message UploadAvatarRequest {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
string
|
|
12
|
+
string user_id = 1;
|
|
13
|
+
bytes file = 2;
|
|
14
|
+
string filename = 3;
|
|
15
|
+
string content_type = 4;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
message UploadAvatarResponse {
|
|
16
|
-
string
|
|
19
|
+
string file_id = 1;
|
|
17
20
|
}
|