jr-common-micro 1.1.64 → 1.1.66
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,8 @@ export interface ChatGroupDto {
|
|
|
21
21
|
poll_policy: string;
|
|
22
22
|
has_unread_mention: boolean;
|
|
23
23
|
has_unread_reaction: boolean;
|
|
24
|
+
post_policy: string;
|
|
25
|
+
retention_hours: number;
|
|
24
26
|
}
|
|
25
27
|
export interface ChatGroupListResponse {
|
|
26
28
|
status: ResponseStatus | undefined;
|
|
@@ -159,6 +161,8 @@ export interface GroupUpsertRequest {
|
|
|
159
161
|
slow_mode_seconds: number;
|
|
160
162
|
sort_order: number;
|
|
161
163
|
is_active: boolean;
|
|
164
|
+
post_policy: string;
|
|
165
|
+
retention_hours: number;
|
|
162
166
|
}
|
|
163
167
|
export interface SanctionRequest {
|
|
164
168
|
username: string;
|
|
@@ -22,6 +22,8 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
|
|
|
22
22
|
pollPolicy: string;
|
|
23
23
|
hasUnreadMention: boolean;
|
|
24
24
|
hasUnreadReaction: boolean;
|
|
25
|
+
postPolicy: string;
|
|
26
|
+
retentionHours: number;
|
|
25
27
|
constructor(data?: PartialMessage<ChatGroupDto>);
|
|
26
28
|
static readonly runtime: typeof proto3;
|
|
27
29
|
static readonly typeName = "micro.v1.chat.ChatGroupDto";
|
|
@@ -344,6 +346,8 @@ export declare class GroupUpsertRequest extends Message<GroupUpsertRequest> {
|
|
|
344
346
|
slowModeSeconds: number;
|
|
345
347
|
sortOrder: number;
|
|
346
348
|
isActive: boolean;
|
|
349
|
+
postPolicy: string;
|
|
350
|
+
retentionHours: number;
|
|
347
351
|
constructor(data?: PartialMessage<GroupUpsertRequest>);
|
|
348
352
|
static readonly runtime: typeof proto3;
|
|
349
353
|
static readonly typeName = "micro.v1.chat.GroupUpsertRequest";
|
|
@@ -24,6 +24,8 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
24
24
|
pollPolicy = "";
|
|
25
25
|
hasUnreadMention = false;
|
|
26
26
|
hasUnreadReaction = false;
|
|
27
|
+
postPolicy = "";
|
|
28
|
+
retentionHours = 0;
|
|
27
29
|
constructor(data) {
|
|
28
30
|
super();
|
|
29
31
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -51,6 +53,8 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
51
53
|
{ no: 18, name: "poll_policy", kind: "scalar", T: 9 },
|
|
52
54
|
{ no: 19, name: "has_unread_mention", kind: "scalar", T: 8 },
|
|
53
55
|
{ no: 20, name: "has_unread_reaction", kind: "scalar", T: 8 },
|
|
56
|
+
{ no: 21, name: "post_policy", kind: "scalar", T: 9 },
|
|
57
|
+
{ no: 22, name: "retention_hours", kind: "scalar", T: 5 },
|
|
54
58
|
]);
|
|
55
59
|
static fromBinary(bytes, options) {
|
|
56
60
|
return new ChatGroupDto().fromBinary(bytes, options);
|
|
@@ -748,6 +752,8 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
748
752
|
slowModeSeconds = 0;
|
|
749
753
|
sortOrder = 0;
|
|
750
754
|
isActive = false;
|
|
755
|
+
postPolicy = "";
|
|
756
|
+
retentionHours = 0;
|
|
751
757
|
constructor(data) {
|
|
752
758
|
super();
|
|
753
759
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -764,6 +770,8 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
764
770
|
{ no: 7, name: "slow_mode_seconds", kind: "scalar", T: 5 },
|
|
765
771
|
{ no: 8, name: "sort_order", kind: "scalar", T: 5 },
|
|
766
772
|
{ no: 9, name: "is_active", kind: "scalar", T: 8 },
|
|
773
|
+
{ no: 10, name: "post_policy", kind: "scalar", T: 9 },
|
|
774
|
+
{ no: 11, name: "retention_hours", kind: "scalar", T: 5 },
|
|
767
775
|
]);
|
|
768
776
|
static fromBinary(bytes, options) {
|
|
769
777
|
return new GroupUpsertRequest().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -34,6 +34,10 @@ 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;
|
|
39
|
+
// How long messages are kept, in hours. 0 = keep forever.
|
|
40
|
+
int32 retention_hours = 22;
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
message ChatGroupListResponse {
|
|
@@ -215,6 +219,11 @@ message GroupUpsertRequest {
|
|
|
215
219
|
int32 slow_mode_seconds = 7;
|
|
216
220
|
int32 sort_order = 8;
|
|
217
221
|
bool is_active = 9;
|
|
222
|
+
// everyone | mods (empty = keep/default everyone)
|
|
223
|
+
string post_policy = 10;
|
|
224
|
+
// Message retention in hours; 0 = keep forever. Only the values the chat
|
|
225
|
+
// service whitelists are accepted.
|
|
226
|
+
int32 retention_hours = 11;
|
|
218
227
|
}
|
|
219
228
|
|
|
220
229
|
message SanctionRequest {
|