jr-common-micro 1.1.86 → 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.
@@ -116,6 +116,7 @@ export interface ChatMediaUploadRequest {
116
116
  kind: string;
117
117
  data: Buffer;
118
118
  mimetype: string;
119
+ poster: Buffer;
119
120
  }
120
121
  export interface ChatMediaUploadResponse {
121
122
  status: ResponseStatus | undefined;
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.86",
3
+ "version": "1.1.87",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -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 {