jr-common-micro 1.1.84 → 1.1.85

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.
@@ -155,6 +155,7 @@ export interface ChatMediaGetResponse {
155
155
  data: Buffer;
156
156
  mimetype: string;
157
157
  kind: string;
158
+ redirect_url: string;
158
159
  }
159
160
  export interface GroupStatsRequest {
160
161
  group_slug: string;
@@ -300,6 +300,7 @@ export declare class ChatMediaGetResponse extends Message<ChatMediaGetResponse>
300
300
  data: Uint8Array<ArrayBuffer>;
301
301
  mimetype: string;
302
302
  kind: string;
303
+ redirectUrl: string;
303
304
  constructor(data?: PartialMessage<ChatMediaGetResponse>);
304
305
  static readonly runtime: typeof proto3;
305
306
  static readonly typeName = "micro.v1.chat.ChatMediaGetResponse";
@@ -651,6 +651,7 @@ class ChatMediaGetResponse extends protobuf_1.Message {
651
651
  data = new Uint8Array(0);
652
652
  mimetype = "";
653
653
  kind = "";
654
+ redirectUrl = "";
654
655
  constructor(data) {
655
656
  super();
656
657
  protobuf_1.proto3.util.initPartial(data, this);
@@ -662,6 +663,7 @@ class ChatMediaGetResponse extends protobuf_1.Message {
662
663
  { no: 2, name: "data", kind: "scalar", T: 12 },
663
664
  { no: 3, name: "mimetype", kind: "scalar", T: 9 },
664
665
  { no: 4, name: "kind", kind: "scalar", T: 9 },
666
+ { no: 5, name: "redirect_url", kind: "scalar", T: 9 },
665
667
  ]);
666
668
  static fromBinary(bytes, options) {
667
669
  return new ChatMediaGetResponse().fromBinary(bytes, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.84",
3
+ "version": "1.1.85",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -238,6 +238,9 @@ message ChatMediaGetResponse {
238
238
  bytes data = 2;
239
239
  string mimetype = 3;
240
240
  string kind = 4;
241
+ // kind=gif: no bytes here; the public media route redirects to this
242
+ // GIPHY URL (keeps apps from before GIF support showing the message).
243
+ string redirect_url = 5;
241
244
  }
242
245
 
243
246
  // Admin-only group statistics. Daily aggregates live in their own tables