jr-common-micro 1.1.71 → 1.1.72

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.
@@ -23,6 +23,7 @@ export interface ChatGroupDto {
23
23
  has_unread_reaction: boolean;
24
24
  post_policy: string;
25
25
  retention_hours: number;
26
+ viewer_anonymous: boolean;
26
27
  }
27
28
  export interface ChatGroupListResponse {
28
29
  status: ResponseStatus | undefined;
@@ -62,6 +63,7 @@ export interface ChatMessageDto {
62
63
  forwarded_from: string;
63
64
  forwarded_from_group: string;
64
65
  ticker_cards: ChatTickerCardDto[];
66
+ is_anonymous: boolean;
65
67
  }
66
68
  export interface ChatTickerCardDto {
67
69
  symbol: string;
@@ -133,6 +135,7 @@ export interface ChatReplyPreviewDto {
133
135
  username: string;
134
136
  content: string;
135
137
  user_id: string;
138
+ is_anonymous: boolean;
136
139
  }
137
140
  export interface MessageHistoryRequest {
138
141
  group_slug: string;
@@ -210,6 +213,7 @@ export interface ChatMemberDto {
210
213
  joined_at: string;
211
214
  is_online: boolean;
212
215
  reapplied: boolean;
216
+ is_anonymous: boolean;
213
217
  }
214
218
  export interface GroupPhotoSetRequest {
215
219
  id: string;
@@ -24,6 +24,7 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
24
24
  hasUnreadReaction: boolean;
25
25
  postPolicy: string;
26
26
  retentionHours: number;
27
+ viewerAnonymous: boolean;
27
28
  constructor(data?: PartialMessage<ChatGroupDto>);
28
29
  static readonly runtime: typeof proto3;
29
30
  static readonly typeName = "micro.v1.chat.ChatGroupDto";
@@ -103,6 +104,7 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
103
104
  forwardedFrom: string;
104
105
  forwardedFromGroup: string;
105
106
  tickerCards: ChatTickerCardDto[];
107
+ isAnonymous: boolean;
106
108
  constructor(data?: PartialMessage<ChatMessageDto>);
107
109
  static readonly runtime: typeof proto3;
108
110
  static readonly typeName = "micro.v1.chat.ChatMessageDto";
@@ -262,6 +264,7 @@ export declare class ChatReplyPreviewDto extends Message<ChatReplyPreviewDto> {
262
264
  username: string;
263
265
  content: string;
264
266
  userId: string;
267
+ isAnonymous: boolean;
265
268
  constructor(data?: PartialMessage<ChatReplyPreviewDto>);
266
269
  static readonly runtime: typeof proto3;
267
270
  static readonly typeName = "micro.v1.chat.ChatReplyPreviewDto";
@@ -459,6 +462,7 @@ export declare class ChatMemberDto extends Message<ChatMemberDto> {
459
462
  joinedAt: string;
460
463
  isOnline: boolean;
461
464
  reapplied: boolean;
465
+ isAnonymous: boolean;
462
466
  constructor(data?: PartialMessage<ChatMemberDto>);
463
467
  static readonly runtime: typeof proto3;
464
468
  static readonly typeName = "micro.v1.chat.ChatMemberDto";
@@ -26,6 +26,7 @@ class ChatGroupDto extends protobuf_1.Message {
26
26
  hasUnreadReaction = false;
27
27
  postPolicy = "";
28
28
  retentionHours = 0;
29
+ viewerAnonymous = false;
29
30
  constructor(data) {
30
31
  super();
31
32
  protobuf_1.proto3.util.initPartial(data, this);
@@ -55,6 +56,7 @@ class ChatGroupDto extends protobuf_1.Message {
55
56
  { no: 20, name: "has_unread_reaction", kind: "scalar", T: 8 },
56
57
  { no: 21, name: "post_policy", kind: "scalar", T: 9 },
57
58
  { no: 22, name: "retention_hours", kind: "scalar", T: 5 },
59
+ { no: 23, name: "viewer_anonymous", kind: "scalar", T: 8 },
58
60
  ]);
59
61
  static fromBinary(bytes, options) {
60
62
  return new ChatGroupDto().fromBinary(bytes, options);
@@ -199,6 +201,7 @@ class ChatMessageDto extends protobuf_1.Message {
199
201
  forwardedFrom = "";
200
202
  forwardedFromGroup = "";
201
203
  tickerCards = [];
204
+ isAnonymous = false;
202
205
  constructor(data) {
203
206
  super();
204
207
  protobuf_1.proto3.util.initPartial(data, this);
@@ -228,6 +231,7 @@ class ChatMessageDto extends protobuf_1.Message {
228
231
  { no: 20, name: "forwarded_from", kind: "scalar", T: 9 },
229
232
  { no: 21, name: "forwarded_from_group", kind: "scalar", T: 9 },
230
233
  { no: 22, name: "ticker_cards", kind: "message", T: ChatTickerCardDto, repeated: true },
234
+ { no: 23, name: "is_anonymous", kind: "scalar", T: 8 },
231
235
  ]);
232
236
  static fromBinary(bytes, options) {
233
237
  return new ChatMessageDto().fromBinary(bytes, options);
@@ -568,6 +572,7 @@ class ChatReplyPreviewDto extends protobuf_1.Message {
568
572
  username = "";
569
573
  content = "";
570
574
  userId = "";
575
+ isAnonymous = false;
571
576
  constructor(data) {
572
577
  super();
573
578
  protobuf_1.proto3.util.initPartial(data, this);
@@ -579,6 +584,7 @@ class ChatReplyPreviewDto extends protobuf_1.Message {
579
584
  { no: 2, name: "username", kind: "scalar", T: 9 },
580
585
  { no: 3, name: "content", kind: "scalar", T: 9 },
581
586
  { no: 4, name: "user_id", kind: "scalar", T: 9 },
587
+ { no: 5, name: "is_anonymous", kind: "scalar", T: 8 },
582
588
  ]);
583
589
  static fromBinary(bytes, options) {
584
590
  return new ChatReplyPreviewDto().fromBinary(bytes, options);
@@ -1003,6 +1009,7 @@ class ChatMemberDto extends protobuf_1.Message {
1003
1009
  joinedAt = "";
1004
1010
  isOnline = false;
1005
1011
  reapplied = false;
1012
+ isAnonymous = false;
1006
1013
  constructor(data) {
1007
1014
  super();
1008
1015
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1018,6 +1025,7 @@ class ChatMemberDto extends protobuf_1.Message {
1018
1025
  { no: 6, name: "joined_at", kind: "scalar", T: 9 },
1019
1026
  { no: 7, name: "is_online", kind: "scalar", T: 8 },
1020
1027
  { no: 8, name: "reapplied", kind: "scalar", T: 8 },
1028
+ { no: 9, name: "is_anonymous", kind: "scalar", T: 8 },
1021
1029
  ]);
1022
1030
  static fromBinary(bytes, options) {
1023
1031
  return new ChatMemberDto().fromBinary(bytes, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.71",
3
+ "version": "1.1.72",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -38,6 +38,8 @@ message ChatGroupDto {
38
38
  string post_policy = 21;
39
39
  // How long messages are kept, in hours. 0 = keep forever.
40
40
  int32 retention_hours = 22;
41
+ // The viewer posts here as the group (anonymous staff member).
42
+ bool viewer_anonymous = 23;
41
43
  }
42
44
 
43
45
  message ChatGroupListResponse {
@@ -95,6 +97,10 @@ message ChatMessageDto {
95
97
  // captured when the message was sent — snapshots with their own
96
98
  // timestamp, never live.
97
99
  repeated ChatTickerCardDto ticker_cards = 22;
100
+ // Sent by an anonymous staff member: user_id/avatar_id are blank, role is
101
+ // empty and username carries the GROUP's name. Clients show the group's
102
+ // photo and never link to a profile.
103
+ bool is_anonymous = 23;
98
104
  }
99
105
 
100
106
  message ChatTickerCardDto {
@@ -191,6 +197,8 @@ message ChatReplyPreviewDto {
191
197
  string content = 3;
192
198
  // Quote header colors follow the author's identity color.
193
199
  string user_id = 4;
200
+ // Quoted message was posted anonymously: username is the group's name.
201
+ bool is_anonymous = 5;
194
202
  }
195
203
 
196
204
  message MessageHistoryRequest {
@@ -271,7 +279,8 @@ message PinMessageRequest {
271
279
  message MemberActionRequest {
272
280
  string group_slug = 1;
273
281
  string username = 2;
274
- // approve | reject | make_moderator | remove_moderator
282
+ // approve | reject | make_moderator | make_light_mod | remove_moderator |
283
+ // kick | make_anonymous | remove_anonymous
275
284
  string action = 3;
276
285
  }
277
286
 
@@ -287,6 +296,8 @@ message ChatMemberDto {
287
296
  bool is_online = 7;
288
297
  // Pending list only: this user re-applied after an earlier rejection.
289
298
  bool reapplied = 8;
299
+ // Staff member posting as the group in this room (admin-managed).
300
+ bool is_anonymous = 9;
290
301
  }
291
302
 
292
303
  // Admin user directory row: chat-wide view of one user.