jr-common-micro 1.1.126 → 1.1.127

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.
@@ -217,6 +217,7 @@ export interface ChatPollOptionDto {
217
217
  id: string;
218
218
  text: string;
219
219
  votes: number;
220
+ text_tl: string;
220
221
  }
221
222
  export interface ChatPollDto {
222
223
  id: string;
@@ -227,6 +228,7 @@ export interface ChatPollDto {
227
228
  ends_at: string;
228
229
  closed: boolean;
229
230
  voters_visibility: string;
231
+ question_tl: string;
230
232
  }
231
233
  export interface ChatReactorDto {
232
234
  user_id: string;
@@ -418,6 +418,7 @@ export declare class ChatPollOptionDto extends Message<ChatPollOptionDto> {
418
418
  id: string;
419
419
  text: string;
420
420
  votes: number;
421
+ textTl: string;
421
422
  constructor(data?: PartialMessage<ChatPollOptionDto>);
422
423
  static readonly runtime: typeof proto3;
423
424
  static readonly typeName = "micro.v1.chat.ChatPollOptionDto";
@@ -436,6 +437,7 @@ export declare class ChatPollDto extends Message<ChatPollDto> {
436
437
  endsAt: string;
437
438
  closed: boolean;
438
439
  votersVisibility: string;
440
+ questionTl: string;
439
441
  constructor(data?: PartialMessage<ChatPollDto>);
440
442
  static readonly runtime: typeof proto3;
441
443
  static readonly typeName = "micro.v1.chat.ChatPollDto";
@@ -909,6 +909,7 @@ class ChatPollOptionDto extends protobuf_1.Message {
909
909
  id = "";
910
910
  text = "";
911
911
  votes = 0;
912
+ textTl = "";
912
913
  constructor(data) {
913
914
  super();
914
915
  protobuf_1.proto3.util.initPartial(data, this);
@@ -919,6 +920,7 @@ class ChatPollOptionDto extends protobuf_1.Message {
919
920
  { no: 1, name: "id", kind: "scalar", T: 9 },
920
921
  { no: 2, name: "text", kind: "scalar", T: 9 },
921
922
  { no: 3, name: "votes", kind: "scalar", T: 13 },
923
+ { no: 4, name: "text_tl", kind: "scalar", T: 9 },
922
924
  ]);
923
925
  static fromBinary(bytes, options) {
924
926
  return new ChatPollOptionDto().fromBinary(bytes, options);
@@ -943,6 +945,7 @@ class ChatPollDto extends protobuf_1.Message {
943
945
  endsAt = "";
944
946
  closed = false;
945
947
  votersVisibility = "";
948
+ questionTl = "";
946
949
  constructor(data) {
947
950
  super();
948
951
  protobuf_1.proto3.util.initPartial(data, this);
@@ -958,6 +961,7 @@ class ChatPollDto extends protobuf_1.Message {
958
961
  { no: 6, name: "ends_at", kind: "scalar", T: 9 },
959
962
  { no: 7, name: "closed", kind: "scalar", T: 8 },
960
963
  { no: 8, name: "voters_visibility", kind: "scalar", T: 9 },
964
+ { no: 9, name: "question_tl", kind: "scalar", T: 9 },
961
965
  ]);
962
966
  static fromBinary(bytes, options) {
963
967
  return new ChatPollDto().fromBinary(bytes, options);
@@ -170,6 +170,13 @@ export interface SendChatMentionRequest {
170
170
  sender_is_group: boolean;
171
171
  message_id: string;
172
172
  count: number;
173
+ previews: {
174
+ [key: string]: string;
175
+ };
176
+ }
177
+ export interface SendChatMentionRequest_PreviewsEntry {
178
+ key: string;
179
+ value: string;
173
180
  }
174
181
  export interface NotificationPaginationDto {
175
182
  id: string;
@@ -291,6 +291,9 @@ export declare class SendChatMentionRequest extends Message<SendChatMentionReque
291
291
  senderIsGroup: boolean;
292
292
  messageId: string;
293
293
  count: number;
294
+ previews: {
295
+ [key: string]: string;
296
+ };
294
297
  constructor(data?: PartialMessage<SendChatMentionRequest>);
295
298
  static readonly runtime: typeof proto3;
296
299
  static readonly typeName = "micro.v1.notification.SendChatMentionRequest";
@@ -608,6 +608,7 @@ class SendChatMentionRequest extends protobuf_1.Message {
608
608
  senderIsGroup = false;
609
609
  messageId = "";
610
610
  count = 0;
611
+ previews = {};
611
612
  constructor(data) {
612
613
  super();
613
614
  protobuf_1.proto3.util.initPartial(data, this);
@@ -624,6 +625,7 @@ class SendChatMentionRequest extends protobuf_1.Message {
624
625
  { no: 7, name: "sender_is_group", kind: "scalar", T: 8 },
625
626
  { no: 8, name: "message_id", kind: "scalar", T: 9 },
626
627
  { no: 9, name: "count", kind: "scalar", T: 5 },
628
+ { no: 10, name: "previews", kind: "map", K: 9, V: { kind: "scalar", T: 9 } },
627
629
  ]);
628
630
  static fromBinary(bytes, options) {
629
631
  return new SendChatMentionRequest().fromBinary(bytes, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.126",
3
+ "version": "1.1.127",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -341,6 +341,9 @@ message ChatPollOptionDto {
341
341
  string id = 1;
342
342
  string text = 2;
343
343
  uint32 votes = 3;
344
+ // The option in the reader's language (accept-language) when the poll has
345
+ // been translated; empty otherwise.
346
+ string text_tl = 4;
344
347
  }
345
348
 
346
349
  message ChatPollDto {
@@ -354,6 +357,8 @@ message ChatPollDto {
354
357
  bool closed = 7;
355
358
  // everyone | mods | anonymous
356
359
  string voters_visibility = 8;
360
+ // The question in the reader's language when translated; empty otherwise.
361
+ string question_tl = 9;
357
362
  }
358
363
 
359
364
  // One of the first few people behind a reaction chip (avatar preview).
@@ -193,6 +193,9 @@ message SendChatMentionRequest {
193
193
  // kind "summary" only: unread count since the room was last opened;
194
194
  // 0 = open-ended wording ("new messages") once the per-absence cap hits.
195
195
  int32 count = 9;
196
+ // The preview in other languages (code → text) for devices in those
197
+ // languages; a device whose language is missing reads `preview`.
198
+ map<string, string> previews = 10;
196
199
  }
197
200
 
198
201
  message NotificationPaginationDto {