jr-common-micro 1.1.63 → 1.1.65
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.
|
@@ -21,6 +21,7 @@ export interface ChatGroupDto {
|
|
|
21
21
|
poll_policy: string;
|
|
22
22
|
has_unread_mention: boolean;
|
|
23
23
|
has_unread_reaction: boolean;
|
|
24
|
+
post_policy: string;
|
|
24
25
|
}
|
|
25
26
|
export interface ChatGroupListResponse {
|
|
26
27
|
status: ResponseStatus | undefined;
|
|
@@ -118,6 +119,7 @@ export interface ChatReplyPreviewDto {
|
|
|
118
119
|
id: string;
|
|
119
120
|
username: string;
|
|
120
121
|
content: string;
|
|
122
|
+
user_id: string;
|
|
121
123
|
}
|
|
122
124
|
export interface MessageHistoryRequest {
|
|
123
125
|
group_slug: string;
|
|
@@ -158,6 +160,7 @@ export interface GroupUpsertRequest {
|
|
|
158
160
|
slow_mode_seconds: number;
|
|
159
161
|
sort_order: number;
|
|
160
162
|
is_active: boolean;
|
|
163
|
+
post_policy: string;
|
|
161
164
|
}
|
|
162
165
|
export interface SanctionRequest {
|
|
163
166
|
username: string;
|
|
@@ -22,6 +22,7 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
|
|
|
22
22
|
pollPolicy: string;
|
|
23
23
|
hasUnreadMention: boolean;
|
|
24
24
|
hasUnreadReaction: boolean;
|
|
25
|
+
postPolicy: string;
|
|
25
26
|
constructor(data?: PartialMessage<ChatGroupDto>);
|
|
26
27
|
static readonly runtime: typeof proto3;
|
|
27
28
|
static readonly typeName = "micro.v1.chat.ChatGroupDto";
|
|
@@ -239,6 +240,7 @@ export declare class ChatReplyPreviewDto extends Message<ChatReplyPreviewDto> {
|
|
|
239
240
|
id: string;
|
|
240
241
|
username: string;
|
|
241
242
|
content: string;
|
|
243
|
+
userId: string;
|
|
242
244
|
constructor(data?: PartialMessage<ChatReplyPreviewDto>);
|
|
243
245
|
static readonly runtime: typeof proto3;
|
|
244
246
|
static readonly typeName = "micro.v1.chat.ChatReplyPreviewDto";
|
|
@@ -343,6 +345,7 @@ export declare class GroupUpsertRequest extends Message<GroupUpsertRequest> {
|
|
|
343
345
|
slowModeSeconds: number;
|
|
344
346
|
sortOrder: number;
|
|
345
347
|
isActive: boolean;
|
|
348
|
+
postPolicy: string;
|
|
346
349
|
constructor(data?: PartialMessage<GroupUpsertRequest>);
|
|
347
350
|
static readonly runtime: typeof proto3;
|
|
348
351
|
static readonly typeName = "micro.v1.chat.GroupUpsertRequest";
|
|
@@ -24,6 +24,7 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
24
24
|
pollPolicy = "";
|
|
25
25
|
hasUnreadMention = false;
|
|
26
26
|
hasUnreadReaction = false;
|
|
27
|
+
postPolicy = "";
|
|
27
28
|
constructor(data) {
|
|
28
29
|
super();
|
|
29
30
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -51,6 +52,7 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
51
52
|
{ no: 18, name: "poll_policy", kind: "scalar", T: 9 },
|
|
52
53
|
{ no: 19, name: "has_unread_mention", kind: "scalar", T: 8 },
|
|
53
54
|
{ no: 20, name: "has_unread_reaction", kind: "scalar", T: 8 },
|
|
55
|
+
{ no: 21, name: "post_policy", kind: "scalar", T: 9 },
|
|
54
56
|
]);
|
|
55
57
|
static fromBinary(bytes, options) {
|
|
56
58
|
return new ChatGroupDto().fromBinary(bytes, options);
|
|
@@ -520,6 +522,7 @@ class ChatReplyPreviewDto extends protobuf_1.Message {
|
|
|
520
522
|
id = "";
|
|
521
523
|
username = "";
|
|
522
524
|
content = "";
|
|
525
|
+
userId = "";
|
|
523
526
|
constructor(data) {
|
|
524
527
|
super();
|
|
525
528
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -530,6 +533,7 @@ class ChatReplyPreviewDto extends protobuf_1.Message {
|
|
|
530
533
|
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
531
534
|
{ no: 2, name: "username", kind: "scalar", T: 9 },
|
|
532
535
|
{ no: 3, name: "content", kind: "scalar", T: 9 },
|
|
536
|
+
{ no: 4, name: "user_id", kind: "scalar", T: 9 },
|
|
533
537
|
]);
|
|
534
538
|
static fromBinary(bytes, options) {
|
|
535
539
|
return new ChatReplyPreviewDto().fromBinary(bytes, options);
|
|
@@ -746,6 +750,7 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
746
750
|
slowModeSeconds = 0;
|
|
747
751
|
sortOrder = 0;
|
|
748
752
|
isActive = false;
|
|
753
|
+
postPolicy = "";
|
|
749
754
|
constructor(data) {
|
|
750
755
|
super();
|
|
751
756
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -762,6 +767,7 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
762
767
|
{ no: 7, name: "slow_mode_seconds", kind: "scalar", T: 5 },
|
|
763
768
|
{ no: 8, name: "sort_order", kind: "scalar", T: 5 },
|
|
764
769
|
{ no: 9, name: "is_active", kind: "scalar", T: 8 },
|
|
770
|
+
{ no: 10, name: "post_policy", kind: "scalar", T: 9 },
|
|
765
771
|
]);
|
|
766
772
|
static fromBinary(bytes, options) {
|
|
767
773
|
return new GroupUpsertRequest().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -34,6 +34,8 @@ message ChatGroupDto {
|
|
|
34
34
|
// Viewer has unseen mentions/replies or reactions in this group.
|
|
35
35
|
bool has_unread_mention = 19;
|
|
36
36
|
bool has_unread_reaction = 20;
|
|
37
|
+
// Who may post messages: everyone | mods (announcement mode).
|
|
38
|
+
string post_policy = 21;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
message ChatGroupListResponse {
|
|
@@ -162,6 +164,8 @@ message ChatReplyPreviewDto {
|
|
|
162
164
|
string id = 1;
|
|
163
165
|
string username = 2;
|
|
164
166
|
string content = 3;
|
|
167
|
+
// Quote header colors follow the author's identity color.
|
|
168
|
+
string user_id = 4;
|
|
165
169
|
}
|
|
166
170
|
|
|
167
171
|
message MessageHistoryRequest {
|
|
@@ -213,6 +217,8 @@ message GroupUpsertRequest {
|
|
|
213
217
|
int32 slow_mode_seconds = 7;
|
|
214
218
|
int32 sort_order = 8;
|
|
215
219
|
bool is_active = 9;
|
|
220
|
+
// everyone | mods (empty = keep/default everyone)
|
|
221
|
+
string post_policy = 10;
|
|
216
222
|
}
|
|
217
223
|
|
|
218
224
|
message SanctionRequest {
|