jr-common-micro 1.1.56 → 1.1.58

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.
@@ -17,6 +17,7 @@ export interface ChatGroupDto {
17
17
  last_message_at: string;
18
18
  sort_order: number;
19
19
  is_active: boolean;
20
+ system_notices: boolean;
20
21
  }
21
22
  export interface ChatGroupListResponse {
22
23
  status: ResponseStatus | undefined;
@@ -49,6 +50,7 @@ export interface ChatMessageDto {
49
50
  created_at: string;
50
51
  is_deleted: boolean;
51
52
  reactions: ChatReactionCountDto[];
53
+ edited_at: string;
52
54
  }
53
55
  export interface ChatReactionCountDto {
54
56
  emoji: string;
@@ -18,6 +18,7 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
18
18
  lastMessageAt: string;
19
19
  sortOrder: number;
20
20
  isActive: boolean;
21
+ systemNotices: boolean;
21
22
  constructor(data?: PartialMessage<ChatGroupDto>);
22
23
  static readonly runtime: typeof proto3;
23
24
  static readonly typeName = "micro.v1.chat.ChatGroupDto";
@@ -90,6 +91,7 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
90
91
  createdAt: string;
91
92
  isDeleted: boolean;
92
93
  reactions: ChatReactionCountDto[];
94
+ editedAt: string;
93
95
  constructor(data?: PartialMessage<ChatMessageDto>);
94
96
  static readonly runtime: typeof proto3;
95
97
  static readonly typeName = "micro.v1.chat.ChatMessageDto";
@@ -20,6 +20,7 @@ class ChatGroupDto extends protobuf_1.Message {
20
20
  lastMessageAt = "";
21
21
  sortOrder = 0;
22
22
  isActive = false;
23
+ systemNotices = false;
23
24
  constructor(data) {
24
25
  super();
25
26
  protobuf_1.proto3.util.initPartial(data, this);
@@ -43,6 +44,7 @@ class ChatGroupDto extends protobuf_1.Message {
43
44
  { no: 14, name: "last_message_at", kind: "scalar", T: 9 },
44
45
  { no: 15, name: "sort_order", kind: "scalar", T: 5 },
45
46
  { no: 16, name: "is_active", kind: "scalar", T: 8 },
47
+ { no: 17, name: "system_notices", kind: "scalar", T: 8 },
46
48
  ]);
47
49
  static fromBinary(bytes, options) {
48
50
  return new ChatGroupDto().fromBinary(bytes, options);
@@ -180,6 +182,7 @@ class ChatMessageDto extends protobuf_1.Message {
180
182
  createdAt = "";
181
183
  isDeleted = false;
182
184
  reactions = [];
185
+ editedAt = "";
183
186
  constructor(data) {
184
187
  super();
185
188
  protobuf_1.proto3.util.initPartial(data, this);
@@ -202,6 +205,7 @@ class ChatMessageDto extends protobuf_1.Message {
202
205
  { no: 13, name: "created_at", kind: "scalar", T: 9 },
203
206
  { no: 14, name: "is_deleted", kind: "scalar", T: 8 },
204
207
  { no: 15, name: "reactions", kind: "message", T: ChatReactionCountDto, repeated: true },
208
+ { no: 16, name: "edited_at", kind: "scalar", T: 9 },
205
209
  ]);
206
210
  static fromBinary(bytes, options) {
207
211
  return new ChatMessageDto().fromBinary(bytes, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.56",
3
+ "version": "1.1.58",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -27,6 +27,8 @@ message ChatGroupDto {
27
27
  // them through GroupUpsert without resetting to defaults.
28
28
  int32 sort_order = 15;
29
29
  bool is_active = 16;
30
+ // Per-group policy: generate sanction/join system bubbles (mods-only view).
31
+ bool system_notices = 17;
30
32
  }
31
33
 
32
34
  message ChatGroupListResponse {
@@ -66,6 +68,8 @@ message ChatMessageDto {
66
68
  string created_at = 13;
67
69
  bool is_deleted = 14;
68
70
  repeated ChatReactionCountDto reactions = 15;
71
+ // Set when the owner edited the message (15-minute window).
72
+ string edited_at = 16;
69
73
  }
70
74
 
71
75
  // Aggregated reaction chip for one emoji on one message.