jr-common-micro 1.1.71 → 1.1.73
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,8 @@ export interface ChatMessageDto {
|
|
|
62
63
|
forwarded_from: string;
|
|
63
64
|
forwarded_from_group: string;
|
|
64
65
|
ticker_cards: ChatTickerCardDto[];
|
|
66
|
+
is_anonymous: boolean;
|
|
67
|
+
is_own: boolean;
|
|
65
68
|
}
|
|
66
69
|
export interface ChatTickerCardDto {
|
|
67
70
|
symbol: string;
|
|
@@ -133,6 +136,7 @@ export interface ChatReplyPreviewDto {
|
|
|
133
136
|
username: string;
|
|
134
137
|
content: string;
|
|
135
138
|
user_id: string;
|
|
139
|
+
is_anonymous: boolean;
|
|
136
140
|
}
|
|
137
141
|
export interface MessageHistoryRequest {
|
|
138
142
|
group_slug: string;
|
|
@@ -210,6 +214,7 @@ export interface ChatMemberDto {
|
|
|
210
214
|
joined_at: string;
|
|
211
215
|
is_online: boolean;
|
|
212
216
|
reapplied: boolean;
|
|
217
|
+
is_anonymous: boolean;
|
|
213
218
|
}
|
|
214
219
|
export interface GroupPhotoSetRequest {
|
|
215
220
|
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,8 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
103
104
|
forwardedFrom: string;
|
|
104
105
|
forwardedFromGroup: string;
|
|
105
106
|
tickerCards: ChatTickerCardDto[];
|
|
107
|
+
isAnonymous: boolean;
|
|
108
|
+
isOwn: boolean;
|
|
106
109
|
constructor(data?: PartialMessage<ChatMessageDto>);
|
|
107
110
|
static readonly runtime: typeof proto3;
|
|
108
111
|
static readonly typeName = "micro.v1.chat.ChatMessageDto";
|
|
@@ -262,6 +265,7 @@ export declare class ChatReplyPreviewDto extends Message<ChatReplyPreviewDto> {
|
|
|
262
265
|
username: string;
|
|
263
266
|
content: string;
|
|
264
267
|
userId: string;
|
|
268
|
+
isAnonymous: boolean;
|
|
265
269
|
constructor(data?: PartialMessage<ChatReplyPreviewDto>);
|
|
266
270
|
static readonly runtime: typeof proto3;
|
|
267
271
|
static readonly typeName = "micro.v1.chat.ChatReplyPreviewDto";
|
|
@@ -459,6 +463,7 @@ export declare class ChatMemberDto extends Message<ChatMemberDto> {
|
|
|
459
463
|
joinedAt: string;
|
|
460
464
|
isOnline: boolean;
|
|
461
465
|
reapplied: boolean;
|
|
466
|
+
isAnonymous: boolean;
|
|
462
467
|
constructor(data?: PartialMessage<ChatMemberDto>);
|
|
463
468
|
static readonly runtime: typeof proto3;
|
|
464
469
|
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,8 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
199
201
|
forwardedFrom = "";
|
|
200
202
|
forwardedFromGroup = "";
|
|
201
203
|
tickerCards = [];
|
|
204
|
+
isAnonymous = false;
|
|
205
|
+
isOwn = false;
|
|
202
206
|
constructor(data) {
|
|
203
207
|
super();
|
|
204
208
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -228,6 +232,8 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
228
232
|
{ no: 20, name: "forwarded_from", kind: "scalar", T: 9 },
|
|
229
233
|
{ no: 21, name: "forwarded_from_group", kind: "scalar", T: 9 },
|
|
230
234
|
{ no: 22, name: "ticker_cards", kind: "message", T: ChatTickerCardDto, repeated: true },
|
|
235
|
+
{ no: 23, name: "is_anonymous", kind: "scalar", T: 8 },
|
|
236
|
+
{ no: 24, name: "is_own", kind: "scalar", T: 8 },
|
|
231
237
|
]);
|
|
232
238
|
static fromBinary(bytes, options) {
|
|
233
239
|
return new ChatMessageDto().fromBinary(bytes, options);
|
|
@@ -568,6 +574,7 @@ class ChatReplyPreviewDto extends protobuf_1.Message {
|
|
|
568
574
|
username = "";
|
|
569
575
|
content = "";
|
|
570
576
|
userId = "";
|
|
577
|
+
isAnonymous = false;
|
|
571
578
|
constructor(data) {
|
|
572
579
|
super();
|
|
573
580
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -579,6 +586,7 @@ class ChatReplyPreviewDto extends protobuf_1.Message {
|
|
|
579
586
|
{ no: 2, name: "username", kind: "scalar", T: 9 },
|
|
580
587
|
{ no: 3, name: "content", kind: "scalar", T: 9 },
|
|
581
588
|
{ no: 4, name: "user_id", kind: "scalar", T: 9 },
|
|
589
|
+
{ no: 5, name: "is_anonymous", kind: "scalar", T: 8 },
|
|
582
590
|
]);
|
|
583
591
|
static fromBinary(bytes, options) {
|
|
584
592
|
return new ChatReplyPreviewDto().fromBinary(bytes, options);
|
|
@@ -1003,6 +1011,7 @@ class ChatMemberDto extends protobuf_1.Message {
|
|
|
1003
1011
|
joinedAt = "";
|
|
1004
1012
|
isOnline = false;
|
|
1005
1013
|
reapplied = false;
|
|
1014
|
+
isAnonymous = false;
|
|
1006
1015
|
constructor(data) {
|
|
1007
1016
|
super();
|
|
1008
1017
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1018,6 +1027,7 @@ class ChatMemberDto extends protobuf_1.Message {
|
|
|
1018
1027
|
{ no: 6, name: "joined_at", kind: "scalar", T: 9 },
|
|
1019
1028
|
{ no: 7, name: "is_online", kind: "scalar", T: 8 },
|
|
1020
1029
|
{ no: 8, name: "reapplied", kind: "scalar", T: 8 },
|
|
1030
|
+
{ no: 9, name: "is_anonymous", kind: "scalar", T: 8 },
|
|
1021
1031
|
]);
|
|
1022
1032
|
static fromBinary(bytes, options) {
|
|
1023
1033
|
return new ChatMemberDto().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -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,15 @@ 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;
|
|
104
|
+
// The viewer authored this anonymous message. Set only in responses
|
|
105
|
+
// addressed to them (history, pins, search, the send ack) — never in a
|
|
106
|
+
// room broadcast — so they keep edit/delete/readers on it without anyone
|
|
107
|
+
// else learning who sent it.
|
|
108
|
+
bool is_own = 24;
|
|
98
109
|
}
|
|
99
110
|
|
|
100
111
|
message ChatTickerCardDto {
|
|
@@ -191,6 +202,8 @@ message ChatReplyPreviewDto {
|
|
|
191
202
|
string content = 3;
|
|
192
203
|
// Quote header colors follow the author's identity color.
|
|
193
204
|
string user_id = 4;
|
|
205
|
+
// Quoted message was posted anonymously: username is the group's name.
|
|
206
|
+
bool is_anonymous = 5;
|
|
194
207
|
}
|
|
195
208
|
|
|
196
209
|
message MessageHistoryRequest {
|
|
@@ -271,7 +284,8 @@ message PinMessageRequest {
|
|
|
271
284
|
message MemberActionRequest {
|
|
272
285
|
string group_slug = 1;
|
|
273
286
|
string username = 2;
|
|
274
|
-
// approve | reject | make_moderator | remove_moderator
|
|
287
|
+
// approve | reject | make_moderator | make_light_mod | remove_moderator |
|
|
288
|
+
// kick | make_anonymous | remove_anonymous
|
|
275
289
|
string action = 3;
|
|
276
290
|
}
|
|
277
291
|
|
|
@@ -287,6 +301,8 @@ message ChatMemberDto {
|
|
|
287
301
|
bool is_online = 7;
|
|
288
302
|
// Pending list only: this user re-applied after an earlier rejection.
|
|
289
303
|
bool reapplied = 8;
|
|
304
|
+
// Staff member posting as the group in this room (admin-managed).
|
|
305
|
+
bool is_anonymous = 9;
|
|
290
306
|
}
|
|
291
307
|
|
|
292
308
|
// Admin user directory row: chat-wide view of one user.
|