jr-common-micro 1.1.64 → 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;
|
|
@@ -159,6 +160,7 @@ export interface GroupUpsertRequest {
|
|
|
159
160
|
slow_mode_seconds: number;
|
|
160
161
|
sort_order: number;
|
|
161
162
|
is_active: boolean;
|
|
163
|
+
post_policy: string;
|
|
162
164
|
}
|
|
163
165
|
export interface SanctionRequest {
|
|
164
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";
|
|
@@ -344,6 +345,7 @@ export declare class GroupUpsertRequest extends Message<GroupUpsertRequest> {
|
|
|
344
345
|
slowModeSeconds: number;
|
|
345
346
|
sortOrder: number;
|
|
346
347
|
isActive: boolean;
|
|
348
|
+
postPolicy: string;
|
|
347
349
|
constructor(data?: PartialMessage<GroupUpsertRequest>);
|
|
348
350
|
static readonly runtime: typeof proto3;
|
|
349
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);
|
|
@@ -748,6 +750,7 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
748
750
|
slowModeSeconds = 0;
|
|
749
751
|
sortOrder = 0;
|
|
750
752
|
isActive = false;
|
|
753
|
+
postPolicy = "";
|
|
751
754
|
constructor(data) {
|
|
752
755
|
super();
|
|
753
756
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -764,6 +767,7 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
764
767
|
{ no: 7, name: "slow_mode_seconds", kind: "scalar", T: 5 },
|
|
765
768
|
{ no: 8, name: "sort_order", kind: "scalar", T: 5 },
|
|
766
769
|
{ no: 9, name: "is_active", kind: "scalar", T: 8 },
|
|
770
|
+
{ no: 10, name: "post_policy", kind: "scalar", T: 9 },
|
|
767
771
|
]);
|
|
768
772
|
static fromBinary(bytes, options) {
|
|
769
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 {
|
|
@@ -215,6 +217,8 @@ message GroupUpsertRequest {
|
|
|
215
217
|
int32 slow_mode_seconds = 7;
|
|
216
218
|
int32 sort_order = 8;
|
|
217
219
|
bool is_active = 9;
|
|
220
|
+
// everyone | mods (empty = keep/default everyone)
|
|
221
|
+
string post_policy = 10;
|
|
218
222
|
}
|
|
219
223
|
|
|
220
224
|
message SanctionRequest {
|