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