jr-common-micro 1.1.70 → 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;
|
|
@@ -70,6 +72,7 @@ export interface ChatTickerCardDto {
|
|
|
70
72
|
price: string;
|
|
71
73
|
change_24h: string;
|
|
72
74
|
captured_at: string;
|
|
75
|
+
coinmarketcap_id: string;
|
|
73
76
|
}
|
|
74
77
|
export interface ChatLinkPreviewDto {
|
|
75
78
|
url: string;
|
|
@@ -132,6 +135,7 @@ export interface ChatReplyPreviewDto {
|
|
|
132
135
|
username: string;
|
|
133
136
|
content: string;
|
|
134
137
|
user_id: string;
|
|
138
|
+
is_anonymous: boolean;
|
|
135
139
|
}
|
|
136
140
|
export interface MessageHistoryRequest {
|
|
137
141
|
group_slug: string;
|
|
@@ -209,6 +213,7 @@ export interface ChatMemberDto {
|
|
|
209
213
|
joined_at: string;
|
|
210
214
|
is_online: boolean;
|
|
211
215
|
reapplied: boolean;
|
|
216
|
+
is_anonymous: boolean;
|
|
212
217
|
}
|
|
213
218
|
export interface GroupPhotoSetRequest {
|
|
214
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";
|
|
@@ -119,6 +121,7 @@ export declare class ChatTickerCardDto extends Message<ChatTickerCardDto> {
|
|
|
119
121
|
price: string;
|
|
120
122
|
change24h: string;
|
|
121
123
|
capturedAt: string;
|
|
124
|
+
coinmarketcapId: string;
|
|
122
125
|
constructor(data?: PartialMessage<ChatTickerCardDto>);
|
|
123
126
|
static readonly runtime: typeof proto3;
|
|
124
127
|
static readonly typeName = "micro.v1.chat.ChatTickerCardDto";
|
|
@@ -261,6 +264,7 @@ export declare class ChatReplyPreviewDto extends Message<ChatReplyPreviewDto> {
|
|
|
261
264
|
username: string;
|
|
262
265
|
content: string;
|
|
263
266
|
userId: string;
|
|
267
|
+
isAnonymous: boolean;
|
|
264
268
|
constructor(data?: PartialMessage<ChatReplyPreviewDto>);
|
|
265
269
|
static readonly runtime: typeof proto3;
|
|
266
270
|
static readonly typeName = "micro.v1.chat.ChatReplyPreviewDto";
|
|
@@ -458,6 +462,7 @@ export declare class ChatMemberDto extends Message<ChatMemberDto> {
|
|
|
458
462
|
joinedAt: string;
|
|
459
463
|
isOnline: boolean;
|
|
460
464
|
reapplied: boolean;
|
|
465
|
+
isAnonymous: boolean;
|
|
461
466
|
constructor(data?: PartialMessage<ChatMemberDto>);
|
|
462
467
|
static readonly runtime: typeof proto3;
|
|
463
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);
|
|
@@ -250,6 +254,7 @@ class ChatTickerCardDto extends protobuf_1.Message {
|
|
|
250
254
|
price = "";
|
|
251
255
|
change24h = "";
|
|
252
256
|
capturedAt = "";
|
|
257
|
+
coinmarketcapId = "";
|
|
253
258
|
constructor(data) {
|
|
254
259
|
super();
|
|
255
260
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -263,6 +268,7 @@ class ChatTickerCardDto extends protobuf_1.Message {
|
|
|
263
268
|
{ no: 4, name: "price", kind: "scalar", T: 9 },
|
|
264
269
|
{ no: 5, name: "change_24h", kind: "scalar", T: 9 },
|
|
265
270
|
{ no: 6, name: "captured_at", kind: "scalar", T: 9 },
|
|
271
|
+
{ no: 7, name: "coinmarketcap_id", kind: "scalar", T: 9 },
|
|
266
272
|
]);
|
|
267
273
|
static fromBinary(bytes, options) {
|
|
268
274
|
return new ChatTickerCardDto().fromBinary(bytes, options);
|
|
@@ -566,6 +572,7 @@ class ChatReplyPreviewDto extends protobuf_1.Message {
|
|
|
566
572
|
username = "";
|
|
567
573
|
content = "";
|
|
568
574
|
userId = "";
|
|
575
|
+
isAnonymous = false;
|
|
569
576
|
constructor(data) {
|
|
570
577
|
super();
|
|
571
578
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -577,6 +584,7 @@ class ChatReplyPreviewDto extends protobuf_1.Message {
|
|
|
577
584
|
{ no: 2, name: "username", kind: "scalar", T: 9 },
|
|
578
585
|
{ no: 3, name: "content", kind: "scalar", T: 9 },
|
|
579
586
|
{ no: 4, name: "user_id", kind: "scalar", T: 9 },
|
|
587
|
+
{ no: 5, name: "is_anonymous", kind: "scalar", T: 8 },
|
|
580
588
|
]);
|
|
581
589
|
static fromBinary(bytes, options) {
|
|
582
590
|
return new ChatReplyPreviewDto().fromBinary(bytes, options);
|
|
@@ -1001,6 +1009,7 @@ class ChatMemberDto extends protobuf_1.Message {
|
|
|
1001
1009
|
joinedAt = "";
|
|
1002
1010
|
isOnline = false;
|
|
1003
1011
|
reapplied = false;
|
|
1012
|
+
isAnonymous = false;
|
|
1004
1013
|
constructor(data) {
|
|
1005
1014
|
super();
|
|
1006
1015
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1016,6 +1025,7 @@ class ChatMemberDto extends protobuf_1.Message {
|
|
|
1016
1025
|
{ no: 6, name: "joined_at", kind: "scalar", T: 9 },
|
|
1017
1026
|
{ no: 7, name: "is_online", kind: "scalar", T: 8 },
|
|
1018
1027
|
{ no: 8, name: "reapplied", kind: "scalar", T: 8 },
|
|
1028
|
+
{ no: 9, name: "is_anonymous", kind: "scalar", T: 8 },
|
|
1019
1029
|
]);
|
|
1020
1030
|
static fromBinary(bytes, options) {
|
|
1021
1031
|
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,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 {
|
|
@@ -106,6 +112,9 @@ message ChatTickerCardDto {
|
|
|
106
112
|
string change_24h = 5;
|
|
107
113
|
// ISO timestamp of the snapshot.
|
|
108
114
|
string captured_at = 6;
|
|
115
|
+
// CoinMarketCap id: our own icon set does not cover every coin, CMC's CDN
|
|
116
|
+
// does, so the client can fall back to it.
|
|
117
|
+
string coinmarketcap_id = 7;
|
|
109
118
|
}
|
|
110
119
|
|
|
111
120
|
message ChatLinkPreviewDto {
|
|
@@ -188,6 +197,8 @@ message ChatReplyPreviewDto {
|
|
|
188
197
|
string content = 3;
|
|
189
198
|
// Quote header colors follow the author's identity color.
|
|
190
199
|
string user_id = 4;
|
|
200
|
+
// Quoted message was posted anonymously: username is the group's name.
|
|
201
|
+
bool is_anonymous = 5;
|
|
191
202
|
}
|
|
192
203
|
|
|
193
204
|
message MessageHistoryRequest {
|
|
@@ -268,7 +279,8 @@ message PinMessageRequest {
|
|
|
268
279
|
message MemberActionRequest {
|
|
269
280
|
string group_slug = 1;
|
|
270
281
|
string username = 2;
|
|
271
|
-
// approve | reject | make_moderator | remove_moderator
|
|
282
|
+
// approve | reject | make_moderator | make_light_mod | remove_moderator |
|
|
283
|
+
// kick | make_anonymous | remove_anonymous
|
|
272
284
|
string action = 3;
|
|
273
285
|
}
|
|
274
286
|
|
|
@@ -284,6 +296,8 @@ message ChatMemberDto {
|
|
|
284
296
|
bool is_online = 7;
|
|
285
297
|
// Pending list only: this user re-applied after an earlier rejection.
|
|
286
298
|
bool reapplied = 8;
|
|
299
|
+
// Staff member posting as the group in this room (admin-managed).
|
|
300
|
+
bool is_anonymous = 9;
|
|
287
301
|
}
|
|
288
302
|
|
|
289
303
|
// Admin user directory row: chat-wide view of one user.
|