jr-common-micro 1.1.85 → 1.1.87
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/proto/micro/v1/chat/chat_messages_nest.d.ts +1 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +1 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +2 -0
- package/dist/proto/micro/v1/user/user_messages_nest.d.ts +1 -0
- package/dist/proto/micro/v1/user/user_messages_pb.d.ts +1 -0
- package/dist/proto/micro/v1/user/user_messages_pb.js +2 -0
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +4 -0
- package/proto/micro/v1/user/user_messages.proto +2 -0
|
@@ -213,6 +213,7 @@ export declare class ChatMediaUploadRequest extends Message<ChatMediaUploadReque
|
|
|
213
213
|
kind: string;
|
|
214
214
|
data: Uint8Array<ArrayBuffer>;
|
|
215
215
|
mimetype: string;
|
|
216
|
+
poster: Uint8Array<ArrayBuffer>;
|
|
216
217
|
constructor(data?: PartialMessage<ChatMediaUploadRequest>);
|
|
217
218
|
static readonly runtime: typeof proto3;
|
|
218
219
|
static readonly typeName = "micro.v1.chat.ChatMediaUploadRequest";
|
|
@@ -459,6 +459,7 @@ class ChatMediaUploadRequest extends protobuf_1.Message {
|
|
|
459
459
|
kind = "";
|
|
460
460
|
data = new Uint8Array(0);
|
|
461
461
|
mimetype = "";
|
|
462
|
+
poster = new Uint8Array(0);
|
|
462
463
|
constructor(data) {
|
|
463
464
|
super();
|
|
464
465
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -470,6 +471,7 @@ class ChatMediaUploadRequest extends protobuf_1.Message {
|
|
|
470
471
|
{ no: 2, name: "kind", kind: "scalar", T: 9 },
|
|
471
472
|
{ no: 3, name: "data", kind: "scalar", T: 12 },
|
|
472
473
|
{ no: 4, name: "mimetype", kind: "scalar", T: 9 },
|
|
474
|
+
{ no: 5, name: "poster", kind: "scalar", T: 12 },
|
|
473
475
|
]);
|
|
474
476
|
static fromBinary(bytes, options) {
|
|
475
477
|
return new ChatMediaUploadRequest().fromBinary(bytes, options);
|
|
@@ -22,6 +22,7 @@ export declare class UserDto extends Message<UserDto> {
|
|
|
22
22
|
updatedAt?: string;
|
|
23
23
|
deletedAt?: string;
|
|
24
24
|
badges: string[];
|
|
25
|
+
username: string;
|
|
25
26
|
constructor(data?: PartialMessage<UserDto>);
|
|
26
27
|
static readonly runtime: typeof proto3;
|
|
27
28
|
static readonly typeName = "micro.v1.user.UserDto";
|
|
@@ -30,6 +30,7 @@ class UserDto extends protobuf_1.Message {
|
|
|
30
30
|
updatedAt;
|
|
31
31
|
deletedAt;
|
|
32
32
|
badges = [];
|
|
33
|
+
username = "";
|
|
33
34
|
constructor(data) {
|
|
34
35
|
super();
|
|
35
36
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -51,6 +52,7 @@ class UserDto extends protobuf_1.Message {
|
|
|
51
52
|
{ no: 12, name: "updated_at", kind: "scalar", T: 9, opt: true },
|
|
52
53
|
{ no: 13, name: "deleted_at", kind: "scalar", T: 9, opt: true },
|
|
53
54
|
{ no: 14, name: "badges", kind: "scalar", T: 9, repeated: true },
|
|
55
|
+
{ no: 15, name: "username", kind: "scalar", T: 9 },
|
|
54
56
|
]);
|
|
55
57
|
static fromBinary(bytes, options) {
|
|
56
58
|
return new UserDto().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -182,6 +182,10 @@ message ChatMediaUploadRequest {
|
|
|
182
182
|
string kind = 2;
|
|
183
183
|
bytes data = 3;
|
|
184
184
|
string mimetype = 4;
|
|
185
|
+
// kind=video only: a still frame the sender's device took from the clip
|
|
186
|
+
// (JPEG). Stored as the media thumbnail; empty when the app could not
|
|
187
|
+
// produce one, in which case the video shows a plain play tile.
|
|
188
|
+
bytes poster = 5;
|
|
185
189
|
}
|
|
186
190
|
|
|
187
191
|
message ChatMediaUploadResponse {
|
|
@@ -32,6 +32,8 @@ message UserDto {
|
|
|
32
32
|
|
|
33
33
|
// Active display badges (utils/badges catalogue).
|
|
34
34
|
repeated string badges = 14;
|
|
35
|
+
// Chat handle ('' until claimed). Admin listings only.
|
|
36
|
+
string username = 15;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
// Admin: grant (grant=true) or revoke a display badge. Only manually
|