jr-common-micro 1.1.65 → 1.1.67
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;
|
|
@@ -58,6 +59,7 @@ export interface ChatMessageDto {
|
|
|
58
59
|
poll: ChatPollDto | undefined;
|
|
59
60
|
media: ChatMediaDto | undefined;
|
|
60
61
|
link_preview: ChatLinkPreviewDto | undefined;
|
|
62
|
+
forwarded_from: string;
|
|
61
63
|
}
|
|
62
64
|
export interface ChatLinkPreviewDto {
|
|
63
65
|
url: string;
|
|
@@ -161,6 +163,7 @@ export interface GroupUpsertRequest {
|
|
|
161
163
|
sort_order: number;
|
|
162
164
|
is_active: boolean;
|
|
163
165
|
post_policy: string;
|
|
166
|
+
retention_hours: number;
|
|
164
167
|
}
|
|
165
168
|
export interface SanctionRequest {
|
|
166
169
|
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";
|
|
@@ -99,6 +100,7 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
99
100
|
poll?: ChatPollDto;
|
|
100
101
|
media?: ChatMediaDto;
|
|
101
102
|
linkPreview?: ChatLinkPreviewDto;
|
|
103
|
+
forwardedFrom: string;
|
|
102
104
|
constructor(data?: PartialMessage<ChatMessageDto>);
|
|
103
105
|
static readonly runtime: typeof proto3;
|
|
104
106
|
static readonly typeName = "micro.v1.chat.ChatMessageDto";
|
|
@@ -346,6 +348,7 @@ export declare class GroupUpsertRequest extends Message<GroupUpsertRequest> {
|
|
|
346
348
|
sortOrder: number;
|
|
347
349
|
isActive: boolean;
|
|
348
350
|
postPolicy: string;
|
|
351
|
+
retentionHours: number;
|
|
349
352
|
constructor(data?: PartialMessage<GroupUpsertRequest>);
|
|
350
353
|
static readonly runtime: typeof proto3;
|
|
351
354
|
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);
|
|
@@ -194,6 +196,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
194
196
|
poll;
|
|
195
197
|
media;
|
|
196
198
|
linkPreview;
|
|
199
|
+
forwardedFrom = "";
|
|
197
200
|
constructor(data) {
|
|
198
201
|
super();
|
|
199
202
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -220,6 +223,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
220
223
|
{ no: 17, name: "poll", kind: "message", T: ChatPollDto },
|
|
221
224
|
{ no: 18, name: "media", kind: "message", T: ChatMediaDto },
|
|
222
225
|
{ no: 19, name: "link_preview", kind: "message", T: ChatLinkPreviewDto },
|
|
226
|
+
{ no: 20, name: "forwarded_from", kind: "scalar", T: 9 },
|
|
223
227
|
]);
|
|
224
228
|
static fromBinary(bytes, options) {
|
|
225
229
|
return new ChatMessageDto().fromBinary(bytes, options);
|
|
@@ -751,6 +755,7 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
751
755
|
sortOrder = 0;
|
|
752
756
|
isActive = false;
|
|
753
757
|
postPolicy = "";
|
|
758
|
+
retentionHours = 0;
|
|
754
759
|
constructor(data) {
|
|
755
760
|
super();
|
|
756
761
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -768,6 +773,7 @@ class GroupUpsertRequest extends protobuf_1.Message {
|
|
|
768
773
|
{ no: 8, name: "sort_order", kind: "scalar", T: 5 },
|
|
769
774
|
{ no: 9, name: "is_active", kind: "scalar", T: 8 },
|
|
770
775
|
{ no: 10, name: "post_policy", kind: "scalar", T: 9 },
|
|
776
|
+
{ no: 11, name: "retention_hours", kind: "scalar", T: 5 },
|
|
771
777
|
]);
|
|
772
778
|
static fromBinary(bytes, options) {
|
|
773
779
|
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 {
|
|
@@ -84,6 +86,9 @@ message ChatMessageDto {
|
|
|
84
86
|
// OpenGraph preview of the first link (staff messages only). Arrives
|
|
85
87
|
// asynchronously after the send; history carries it inline.
|
|
86
88
|
ChatLinkPreviewDto link_preview = 19;
|
|
89
|
+
// Original author when this message was forwarded. Label only: the client
|
|
90
|
+
// must not turn it into a link to a group the viewer may not be in.
|
|
91
|
+
string forwarded_from = 20;
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
message ChatLinkPreviewDto {
|
|
@@ -219,6 +224,9 @@ message GroupUpsertRequest {
|
|
|
219
224
|
bool is_active = 9;
|
|
220
225
|
// everyone | mods (empty = keep/default everyone)
|
|
221
226
|
string post_policy = 10;
|
|
227
|
+
// Message retention in hours; 0 = keep forever. Only the values the chat
|
|
228
|
+
// service whitelists are accepted.
|
|
229
|
+
int32 retention_hours = 11;
|
|
222
230
|
}
|
|
223
231
|
|
|
224
232
|
message SanctionRequest {
|