jr-common-micro 1.1.51 → 1.1.53
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.
- package/dist/proto/micro/v1/chat/chat_messages_nest.d.ts +24 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +48 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +106 -1
- package/dist/proto/micro/v1/chat/services_connect.d.ts +19 -1
- package/dist/proto/micro/v1/chat/services_connect.js +18 -0
- package/dist/proto/micro/v1/chat/services_nest.d.ts +7 -1
- package/dist/proto/micro/v1/chat/services_nest.js +3 -0
- package/dist/proto/micro/v1/notification/notification_messages_nest.d.ts +8 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.d.ts +16 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.js +36 -1
- package/dist/proto/micro/v1/notification/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/notification/services_connect.js +6 -0
- package/dist/proto/micro/v1/notification/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/notification/services_nest.js +1 -0
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +35 -0
- package/proto/micro/v1/chat/services.proto +6 -0
- package/proto/micro/v1/notification/notification_messages.proto +11 -0
- package/proto/micro/v1/notification/services.proto +1 -0
|
@@ -15,6 +15,8 @@ export interface ChatGroupDto {
|
|
|
15
15
|
unread_count: number;
|
|
16
16
|
last_message_preview: string;
|
|
17
17
|
last_message_at: string;
|
|
18
|
+
sort_order: number;
|
|
19
|
+
is_active: boolean;
|
|
18
20
|
}
|
|
19
21
|
export interface ChatGroupListResponse {
|
|
20
22
|
status: ResponseStatus | undefined;
|
|
@@ -46,6 +48,12 @@ export interface ChatMessageDto {
|
|
|
46
48
|
is_pinned: boolean;
|
|
47
49
|
created_at: string;
|
|
48
50
|
is_deleted: boolean;
|
|
51
|
+
reactions: ChatReactionCountDto[];
|
|
52
|
+
}
|
|
53
|
+
export interface ChatReactionCountDto {
|
|
54
|
+
emoji: string;
|
|
55
|
+
count: number;
|
|
56
|
+
reacted_by_me: boolean;
|
|
49
57
|
}
|
|
50
58
|
export interface ChatReplyPreviewDto {
|
|
51
59
|
id: string;
|
|
@@ -125,6 +133,22 @@ export interface ChatMemberDto {
|
|
|
125
133
|
status: string;
|
|
126
134
|
joined_at: string;
|
|
127
135
|
is_online: boolean;
|
|
136
|
+
reapplied: boolean;
|
|
137
|
+
}
|
|
138
|
+
export interface ChatUserAdminDto {
|
|
139
|
+
user_id: string;
|
|
140
|
+
username: string;
|
|
141
|
+
avatar_id: string;
|
|
142
|
+
role: string;
|
|
143
|
+
groups: string[];
|
|
144
|
+
moderator_of: string[];
|
|
145
|
+
has_active_ban: boolean;
|
|
146
|
+
has_active_mute: boolean;
|
|
147
|
+
}
|
|
148
|
+
export interface ChatUserAdminListResponse {
|
|
149
|
+
status: ResponseStatus | undefined;
|
|
150
|
+
pagination: PaginationMetaResult | undefined;
|
|
151
|
+
data: ChatUserAdminDto[];
|
|
128
152
|
}
|
|
129
153
|
export interface ChatMemberListResponse {
|
|
130
154
|
status: ResponseStatus | undefined;
|
|
@@ -16,6 +16,8 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
|
|
|
16
16
|
unreadCount: number;
|
|
17
17
|
lastMessagePreview: string;
|
|
18
18
|
lastMessageAt: string;
|
|
19
|
+
sortOrder: number;
|
|
20
|
+
isActive: boolean;
|
|
19
21
|
constructor(data?: PartialMessage<ChatGroupDto>);
|
|
20
22
|
static readonly runtime: typeof proto3;
|
|
21
23
|
static readonly typeName = "micro.v1.chat.ChatGroupDto";
|
|
@@ -87,6 +89,7 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
87
89
|
isPinned: boolean;
|
|
88
90
|
createdAt: string;
|
|
89
91
|
isDeleted: boolean;
|
|
92
|
+
reactions: ChatReactionCountDto[];
|
|
90
93
|
constructor(data?: PartialMessage<ChatMessageDto>);
|
|
91
94
|
static readonly runtime: typeof proto3;
|
|
92
95
|
static readonly typeName = "micro.v1.chat.ChatMessageDto";
|
|
@@ -96,6 +99,19 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
96
99
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessageDto;
|
|
97
100
|
static equals(a: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined, b: ChatMessageDto | PlainMessage<ChatMessageDto> | undefined): boolean;
|
|
98
101
|
}
|
|
102
|
+
export declare class ChatReactionCountDto extends Message<ChatReactionCountDto> {
|
|
103
|
+
emoji: string;
|
|
104
|
+
count: number;
|
|
105
|
+
reactedByMe: boolean;
|
|
106
|
+
constructor(data?: PartialMessage<ChatReactionCountDto>);
|
|
107
|
+
static readonly runtime: typeof proto3;
|
|
108
|
+
static readonly typeName = "micro.v1.chat.ChatReactionCountDto";
|
|
109
|
+
static readonly fields: FieldList;
|
|
110
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatReactionCountDto;
|
|
111
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatReactionCountDto;
|
|
112
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatReactionCountDto;
|
|
113
|
+
static equals(a: ChatReactionCountDto | PlainMessage<ChatReactionCountDto> | undefined, b: ChatReactionCountDto | PlainMessage<ChatReactionCountDto> | undefined): boolean;
|
|
114
|
+
}
|
|
99
115
|
export declare class ChatReplyPreviewDto extends Message<ChatReplyPreviewDto> {
|
|
100
116
|
id: string;
|
|
101
117
|
username: string;
|
|
@@ -294,6 +310,7 @@ export declare class ChatMemberDto extends Message<ChatMemberDto> {
|
|
|
294
310
|
status: string;
|
|
295
311
|
joinedAt: string;
|
|
296
312
|
isOnline: boolean;
|
|
313
|
+
reapplied: boolean;
|
|
297
314
|
constructor(data?: PartialMessage<ChatMemberDto>);
|
|
298
315
|
static readonly runtime: typeof proto3;
|
|
299
316
|
static readonly typeName = "micro.v1.chat.ChatMemberDto";
|
|
@@ -303,6 +320,37 @@ export declare class ChatMemberDto extends Message<ChatMemberDto> {
|
|
|
303
320
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMemberDto;
|
|
304
321
|
static equals(a: ChatMemberDto | PlainMessage<ChatMemberDto> | undefined, b: ChatMemberDto | PlainMessage<ChatMemberDto> | undefined): boolean;
|
|
305
322
|
}
|
|
323
|
+
export declare class ChatUserAdminDto extends Message<ChatUserAdminDto> {
|
|
324
|
+
userId: string;
|
|
325
|
+
username: string;
|
|
326
|
+
avatarId: string;
|
|
327
|
+
role: string;
|
|
328
|
+
groups: string[];
|
|
329
|
+
moderatorOf: string[];
|
|
330
|
+
hasActiveBan: boolean;
|
|
331
|
+
hasActiveMute: boolean;
|
|
332
|
+
constructor(data?: PartialMessage<ChatUserAdminDto>);
|
|
333
|
+
static readonly runtime: typeof proto3;
|
|
334
|
+
static readonly typeName = "micro.v1.chat.ChatUserAdminDto";
|
|
335
|
+
static readonly fields: FieldList;
|
|
336
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatUserAdminDto;
|
|
337
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatUserAdminDto;
|
|
338
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatUserAdminDto;
|
|
339
|
+
static equals(a: ChatUserAdminDto | PlainMessage<ChatUserAdminDto> | undefined, b: ChatUserAdminDto | PlainMessage<ChatUserAdminDto> | undefined): boolean;
|
|
340
|
+
}
|
|
341
|
+
export declare class ChatUserAdminListResponse extends Message<ChatUserAdminListResponse> {
|
|
342
|
+
status?: ResponseStatus;
|
|
343
|
+
pagination?: PaginationMetaResult;
|
|
344
|
+
data: ChatUserAdminDto[];
|
|
345
|
+
constructor(data?: PartialMessage<ChatUserAdminListResponse>);
|
|
346
|
+
static readonly runtime: typeof proto3;
|
|
347
|
+
static readonly typeName = "micro.v1.chat.ChatUserAdminListResponse";
|
|
348
|
+
static readonly fields: FieldList;
|
|
349
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatUserAdminListResponse;
|
|
350
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatUserAdminListResponse;
|
|
351
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatUserAdminListResponse;
|
|
352
|
+
static equals(a: ChatUserAdminListResponse | PlainMessage<ChatUserAdminListResponse> | undefined, b: ChatUserAdminListResponse | PlainMessage<ChatUserAdminListResponse> | undefined): boolean;
|
|
353
|
+
}
|
|
306
354
|
export declare class ChatMemberListResponse extends Message<ChatMemberListResponse> {
|
|
307
355
|
status?: ResponseStatus;
|
|
308
356
|
pagination?: PaginationMetaResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = exports.ChatMemberListResponse = exports.ChatMemberDto = exports.PendingMembersRequest = exports.MemberActionRequest = exports.PinMessageRequest = exports.DeleteMessageRequest = exports.RevokeSanctionRequest = exports.SanctionRequest = exports.GroupUpsertRequest = exports.BlockedUsersResponse = exports.BlockUserRequest = exports.ReportMessageRequest = exports.PinnedMessagesResponse = exports.PinnedMessagesRequest = exports.MessageHistoryResponse = exports.MessageHistoryRequest = exports.ChatReplyPreviewDto = exports.ChatMessageDto = exports.ChatGroupSingleResponse = exports.JoinGroupResponse = exports.GroupBySlugRequest = exports.ChatGroupListResponse = exports.ChatGroupDto = void 0;
|
|
3
|
+
exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = exports.ChatMemberListResponse = exports.ChatUserAdminListResponse = exports.ChatUserAdminDto = exports.ChatMemberDto = exports.PendingMembersRequest = exports.MemberActionRequest = exports.PinMessageRequest = exports.DeleteMessageRequest = exports.RevokeSanctionRequest = exports.SanctionRequest = exports.GroupUpsertRequest = exports.BlockedUsersResponse = exports.BlockUserRequest = exports.ReportMessageRequest = exports.PinnedMessagesResponse = exports.PinnedMessagesRequest = exports.MessageHistoryResponse = exports.MessageHistoryRequest = exports.ChatReplyPreviewDto = exports.ChatReactionCountDto = exports.ChatMessageDto = exports.ChatGroupSingleResponse = exports.JoinGroupResponse = exports.GroupBySlugRequest = exports.ChatGroupListResponse = exports.ChatGroupDto = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
class ChatGroupDto extends protobuf_1.Message {
|
|
@@ -18,6 +18,8 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
18
18
|
unreadCount = 0;
|
|
19
19
|
lastMessagePreview = "";
|
|
20
20
|
lastMessageAt = "";
|
|
21
|
+
sortOrder = 0;
|
|
22
|
+
isActive = false;
|
|
21
23
|
constructor(data) {
|
|
22
24
|
super();
|
|
23
25
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -39,6 +41,8 @@ class ChatGroupDto extends protobuf_1.Message {
|
|
|
39
41
|
{ no: 12, name: "unread_count", kind: "scalar", T: 13 },
|
|
40
42
|
{ no: 13, name: "last_message_preview", kind: "scalar", T: 9 },
|
|
41
43
|
{ no: 14, name: "last_message_at", kind: "scalar", T: 9 },
|
|
44
|
+
{ no: 15, name: "sort_order", kind: "scalar", T: 5 },
|
|
45
|
+
{ no: 16, name: "is_active", kind: "scalar", T: 8 },
|
|
42
46
|
]);
|
|
43
47
|
static fromBinary(bytes, options) {
|
|
44
48
|
return new ChatGroupDto().fromBinary(bytes, options);
|
|
@@ -175,6 +179,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
175
179
|
isPinned = false;
|
|
176
180
|
createdAt = "";
|
|
177
181
|
isDeleted = false;
|
|
182
|
+
reactions = [];
|
|
178
183
|
constructor(data) {
|
|
179
184
|
super();
|
|
180
185
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -196,6 +201,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
196
201
|
{ no: 12, name: "is_pinned", kind: "scalar", T: 8 },
|
|
197
202
|
{ no: 13, name: "created_at", kind: "scalar", T: 9 },
|
|
198
203
|
{ no: 14, name: "is_deleted", kind: "scalar", T: 8 },
|
|
204
|
+
{ no: 15, name: "reactions", kind: "message", T: ChatReactionCountDto, repeated: true },
|
|
199
205
|
]);
|
|
200
206
|
static fromBinary(bytes, options) {
|
|
201
207
|
return new ChatMessageDto().fromBinary(bytes, options);
|
|
@@ -211,6 +217,35 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
211
217
|
}
|
|
212
218
|
}
|
|
213
219
|
exports.ChatMessageDto = ChatMessageDto;
|
|
220
|
+
class ChatReactionCountDto extends protobuf_1.Message {
|
|
221
|
+
emoji = "";
|
|
222
|
+
count = 0;
|
|
223
|
+
reactedByMe = false;
|
|
224
|
+
constructor(data) {
|
|
225
|
+
super();
|
|
226
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
227
|
+
}
|
|
228
|
+
static runtime = protobuf_1.proto3;
|
|
229
|
+
static typeName = "micro.v1.chat.ChatReactionCountDto";
|
|
230
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
231
|
+
{ no: 1, name: "emoji", kind: "scalar", T: 9 },
|
|
232
|
+
{ no: 2, name: "count", kind: "scalar", T: 13 },
|
|
233
|
+
{ no: 3, name: "reacted_by_me", kind: "scalar", T: 8 },
|
|
234
|
+
]);
|
|
235
|
+
static fromBinary(bytes, options) {
|
|
236
|
+
return new ChatReactionCountDto().fromBinary(bytes, options);
|
|
237
|
+
}
|
|
238
|
+
static fromJson(jsonValue, options) {
|
|
239
|
+
return new ChatReactionCountDto().fromJson(jsonValue, options);
|
|
240
|
+
}
|
|
241
|
+
static fromJsonString(jsonString, options) {
|
|
242
|
+
return new ChatReactionCountDto().fromJsonString(jsonString, options);
|
|
243
|
+
}
|
|
244
|
+
static equals(a, b) {
|
|
245
|
+
return protobuf_1.proto3.util.equals(ChatReactionCountDto, a, b);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
exports.ChatReactionCountDto = ChatReactionCountDto;
|
|
214
249
|
class ChatReplyPreviewDto extends protobuf_1.Message {
|
|
215
250
|
id = "";
|
|
216
251
|
username = "";
|
|
@@ -644,6 +679,7 @@ class ChatMemberDto extends protobuf_1.Message {
|
|
|
644
679
|
status = "";
|
|
645
680
|
joinedAt = "";
|
|
646
681
|
isOnline = false;
|
|
682
|
+
reapplied = false;
|
|
647
683
|
constructor(data) {
|
|
648
684
|
super();
|
|
649
685
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -658,6 +694,7 @@ class ChatMemberDto extends protobuf_1.Message {
|
|
|
658
694
|
{ no: 5, name: "status", kind: "scalar", T: 9 },
|
|
659
695
|
{ no: 6, name: "joined_at", kind: "scalar", T: 9 },
|
|
660
696
|
{ no: 7, name: "is_online", kind: "scalar", T: 8 },
|
|
697
|
+
{ no: 8, name: "reapplied", kind: "scalar", T: 8 },
|
|
661
698
|
]);
|
|
662
699
|
static fromBinary(bytes, options) {
|
|
663
700
|
return new ChatMemberDto().fromBinary(bytes, options);
|
|
@@ -673,6 +710,74 @@ class ChatMemberDto extends protobuf_1.Message {
|
|
|
673
710
|
}
|
|
674
711
|
}
|
|
675
712
|
exports.ChatMemberDto = ChatMemberDto;
|
|
713
|
+
class ChatUserAdminDto extends protobuf_1.Message {
|
|
714
|
+
userId = "";
|
|
715
|
+
username = "";
|
|
716
|
+
avatarId = "";
|
|
717
|
+
role = "";
|
|
718
|
+
groups = [];
|
|
719
|
+
moderatorOf = [];
|
|
720
|
+
hasActiveBan = false;
|
|
721
|
+
hasActiveMute = false;
|
|
722
|
+
constructor(data) {
|
|
723
|
+
super();
|
|
724
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
725
|
+
}
|
|
726
|
+
static runtime = protobuf_1.proto3;
|
|
727
|
+
static typeName = "micro.v1.chat.ChatUserAdminDto";
|
|
728
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
729
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
730
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 },
|
|
731
|
+
{ no: 3, name: "avatar_id", kind: "scalar", T: 9 },
|
|
732
|
+
{ no: 4, name: "role", kind: "scalar", T: 9 },
|
|
733
|
+
{ no: 5, name: "groups", kind: "scalar", T: 9, repeated: true },
|
|
734
|
+
{ no: 6, name: "moderator_of", kind: "scalar", T: 9, repeated: true },
|
|
735
|
+
{ no: 7, name: "has_active_ban", kind: "scalar", T: 8 },
|
|
736
|
+
{ no: 8, name: "has_active_mute", kind: "scalar", T: 8 },
|
|
737
|
+
]);
|
|
738
|
+
static fromBinary(bytes, options) {
|
|
739
|
+
return new ChatUserAdminDto().fromBinary(bytes, options);
|
|
740
|
+
}
|
|
741
|
+
static fromJson(jsonValue, options) {
|
|
742
|
+
return new ChatUserAdminDto().fromJson(jsonValue, options);
|
|
743
|
+
}
|
|
744
|
+
static fromJsonString(jsonString, options) {
|
|
745
|
+
return new ChatUserAdminDto().fromJsonString(jsonString, options);
|
|
746
|
+
}
|
|
747
|
+
static equals(a, b) {
|
|
748
|
+
return protobuf_1.proto3.util.equals(ChatUserAdminDto, a, b);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
exports.ChatUserAdminDto = ChatUserAdminDto;
|
|
752
|
+
class ChatUserAdminListResponse extends protobuf_1.Message {
|
|
753
|
+
status;
|
|
754
|
+
pagination;
|
|
755
|
+
data = [];
|
|
756
|
+
constructor(data) {
|
|
757
|
+
super();
|
|
758
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
759
|
+
}
|
|
760
|
+
static runtime = protobuf_1.proto3;
|
|
761
|
+
static typeName = "micro.v1.chat.ChatUserAdminListResponse";
|
|
762
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
763
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
764
|
+
{ no: 2, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
|
|
765
|
+
{ no: 3, name: "data", kind: "message", T: ChatUserAdminDto, repeated: true },
|
|
766
|
+
]);
|
|
767
|
+
static fromBinary(bytes, options) {
|
|
768
|
+
return new ChatUserAdminListResponse().fromBinary(bytes, options);
|
|
769
|
+
}
|
|
770
|
+
static fromJson(jsonValue, options) {
|
|
771
|
+
return new ChatUserAdminListResponse().fromJson(jsonValue, options);
|
|
772
|
+
}
|
|
773
|
+
static fromJsonString(jsonString, options) {
|
|
774
|
+
return new ChatUserAdminListResponse().fromJsonString(jsonString, options);
|
|
775
|
+
}
|
|
776
|
+
static equals(a, b) {
|
|
777
|
+
return protobuf_1.proto3.util.equals(ChatUserAdminListResponse, a, b);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
exports.ChatUserAdminListResponse = ChatUserAdminListResponse;
|
|
676
781
|
class ChatMemberListResponse extends protobuf_1.Message {
|
|
677
782
|
status;
|
|
678
783
|
pagination;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmptyRequest, EmptyResponse, PaginateRequest } from "../general_pb.js";
|
|
2
|
-
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMemberListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_pb.js";
|
|
2
|
+
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
4
|
export declare const PChatService: {
|
|
5
5
|
readonly typeName: "micro.v1.chat.PChatService";
|
|
@@ -81,6 +81,24 @@ export declare const PChatModerationService: {
|
|
|
81
81
|
readonly O: typeof ChatGroupSingleResponse;
|
|
82
82
|
readonly kind: MethodKind.ServerStreaming;
|
|
83
83
|
};
|
|
84
|
+
readonly deleteGroup: {
|
|
85
|
+
readonly name: "DeleteGroup";
|
|
86
|
+
readonly I: typeof GroupBySlugRequest;
|
|
87
|
+
readonly O: typeof EmptyResponse;
|
|
88
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
89
|
+
};
|
|
90
|
+
readonly adminListGroups: {
|
|
91
|
+
readonly name: "AdminListGroups";
|
|
92
|
+
readonly I: typeof EmptyRequest;
|
|
93
|
+
readonly O: typeof ChatGroupListResponse;
|
|
94
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
95
|
+
};
|
|
96
|
+
readonly adminListUsers: {
|
|
97
|
+
readonly name: "AdminListUsers";
|
|
98
|
+
readonly I: typeof PaginateRequest;
|
|
99
|
+
readonly O: typeof ChatUserAdminListResponse;
|
|
100
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
101
|
+
};
|
|
84
102
|
readonly applySanction: {
|
|
85
103
|
readonly name: "ApplySanction";
|
|
86
104
|
readonly I: typeof SanctionRequest;
|
|
@@ -84,6 +84,24 @@ exports.PChatModerationService = {
|
|
|
84
84
|
O: chat_messages_pb_js_1.ChatGroupSingleResponse,
|
|
85
85
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
86
86
|
},
|
|
87
|
+
deleteGroup: {
|
|
88
|
+
name: "DeleteGroup",
|
|
89
|
+
I: chat_messages_pb_js_1.GroupBySlugRequest,
|
|
90
|
+
O: general_pb_js_1.EmptyResponse,
|
|
91
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
92
|
+
},
|
|
93
|
+
adminListGroups: {
|
|
94
|
+
name: "AdminListGroups",
|
|
95
|
+
I: general_pb_js_1.EmptyRequest,
|
|
96
|
+
O: chat_messages_pb_js_1.ChatGroupListResponse,
|
|
97
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
98
|
+
},
|
|
99
|
+
adminListUsers: {
|
|
100
|
+
name: "AdminListUsers",
|
|
101
|
+
I: general_pb_js_1.PaginateRequest,
|
|
102
|
+
O: chat_messages_pb_js_1.ChatUserAdminListResponse,
|
|
103
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
104
|
+
},
|
|
87
105
|
applySanction: {
|
|
88
106
|
name: "ApplySanction",
|
|
89
107
|
I: chat_messages_pb_js_1.SanctionRequest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "@grpc/grpc-js";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { EmptyRequest, EmptyResponse, PaginateRequest } from "../general_nest";
|
|
4
|
-
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMemberListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_nest";
|
|
4
|
+
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_nest";
|
|
5
5
|
export declare const protobufPackage = "micro.v1.chat";
|
|
6
6
|
export declare const MICRO_V1_CHAT_PACKAGE_NAME = "micro.v1.chat";
|
|
7
7
|
export interface PChatServiceClient {
|
|
@@ -34,6 +34,9 @@ export declare function PChatServiceControllerMethods(): (constructor: Function)
|
|
|
34
34
|
export declare const P_CHAT_SERVICE_NAME = "PChatService";
|
|
35
35
|
export interface PChatModerationServiceClient {
|
|
36
36
|
upsertGroup(request: GroupUpsertRequest, metadata?: Metadata): Observable<ChatGroupSingleResponse>;
|
|
37
|
+
deleteGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
38
|
+
adminListGroups(request: EmptyRequest, metadata?: Metadata): Observable<ChatGroupListResponse>;
|
|
39
|
+
adminListUsers(request: PaginateRequest, metadata?: Metadata): Observable<ChatUserAdminListResponse>;
|
|
37
40
|
applySanction(request: SanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
38
41
|
revokeSanction(request: RevokeSanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
39
42
|
listSanctions(request: PaginateRequest, metadata?: Metadata): Observable<SanctionListResponse>;
|
|
@@ -46,6 +49,9 @@ export interface PChatModerationServiceClient {
|
|
|
46
49
|
}
|
|
47
50
|
export interface PChatModerationServiceController {
|
|
48
51
|
upsertGroup(request: GroupUpsertRequest, metadata?: Metadata): Observable<ChatGroupSingleResponse>;
|
|
52
|
+
deleteGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
53
|
+
adminListGroups(request: EmptyRequest, metadata?: Metadata): Observable<ChatGroupListResponse>;
|
|
54
|
+
adminListUsers(request: PaginateRequest, metadata?: Metadata): Observable<ChatUserAdminListResponse>;
|
|
49
55
|
applySanction(request: SanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
50
56
|
revokeSanction(request: RevokeSanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
51
57
|
listSanctions(request: PaginateRequest, metadata?: Metadata): Observable<SanctionListResponse>;
|
|
@@ -107,6 +107,14 @@ export interface SendNotificationRequest_NotificationMessage {
|
|
|
107
107
|
en: string;
|
|
108
108
|
tr: string;
|
|
109
109
|
}
|
|
110
|
+
export interface SendChatMentionRequest {
|
|
111
|
+
user_ids: string[];
|
|
112
|
+
sender_username: string;
|
|
113
|
+
group_name: string;
|
|
114
|
+
group_slug: string;
|
|
115
|
+
preview: string;
|
|
116
|
+
kind: string;
|
|
117
|
+
}
|
|
110
118
|
export interface NotificationPaginationDto {
|
|
111
119
|
id: string;
|
|
112
120
|
title: string;
|
|
@@ -236,6 +236,22 @@ export declare class SendNotificationRequest_NotificationMessage extends Message
|
|
|
236
236
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendNotificationRequest_NotificationMessage;
|
|
237
237
|
static equals(a: SendNotificationRequest_NotificationMessage | PlainMessage<SendNotificationRequest_NotificationMessage> | undefined, b: SendNotificationRequest_NotificationMessage | PlainMessage<SendNotificationRequest_NotificationMessage> | undefined): boolean;
|
|
238
238
|
}
|
|
239
|
+
export declare class SendChatMentionRequest extends Message<SendChatMentionRequest> {
|
|
240
|
+
userIds: string[];
|
|
241
|
+
senderUsername: string;
|
|
242
|
+
groupName: string;
|
|
243
|
+
groupSlug: string;
|
|
244
|
+
preview: string;
|
|
245
|
+
kind: string;
|
|
246
|
+
constructor(data?: PartialMessage<SendChatMentionRequest>);
|
|
247
|
+
static readonly runtime: typeof proto3;
|
|
248
|
+
static readonly typeName = "micro.v1.notification.SendChatMentionRequest";
|
|
249
|
+
static readonly fields: FieldList;
|
|
250
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendChatMentionRequest;
|
|
251
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendChatMentionRequest;
|
|
252
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendChatMentionRequest;
|
|
253
|
+
static equals(a: SendChatMentionRequest | PlainMessage<SendChatMentionRequest> | undefined, b: SendChatMentionRequest | PlainMessage<SendChatMentionRequest> | undefined): boolean;
|
|
254
|
+
}
|
|
239
255
|
export declare class NotificationPaginationDto extends Message<NotificationPaginationDto> {
|
|
240
256
|
id: string;
|
|
241
257
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetMobileNotificationsPaginationResponse = exports.GetMobileNotificationsResponseDto = exports.GetUserMobileNotificationPaginationResponse = exports.GetUserMobileNotificationSingleResponseDto = exports.GetUserMobileNotificationRequest = exports.SaveMobileNotificationRequest = exports.NotificationPaginationResponse = exports.NotificationPaginationDto = exports.SendNotificationRequest_NotificationMessage = exports.SendNotificationRequest = exports.SendTestNotificationRequest = exports.GetUserNotificationPreferencesResponse = exports.GetUserNotificationPreferencesRequest = exports.SaveUserNotificationPreferencesRequest = exports.RemoveDeviceTokenRequest = exports.SaveDeviceTokenRequest = exports.AddBrowserTokenRequest = exports.UpdateUserPreferencesRequest = exports.CreateNotificationRequest = exports.NotificationChannel = exports.NotificationTarget = exports.UserPreferencesResponse = exports.GetUserNotificationPreferencesDto = exports.UserPreferencesDto = void 0;
|
|
3
|
+
exports.GetMobileNotificationsPaginationResponse = exports.GetMobileNotificationsResponseDto = exports.GetUserMobileNotificationPaginationResponse = exports.GetUserMobileNotificationSingleResponseDto = exports.GetUserMobileNotificationRequest = exports.SaveMobileNotificationRequest = exports.NotificationPaginationResponse = exports.NotificationPaginationDto = exports.SendChatMentionRequest = exports.SendNotificationRequest_NotificationMessage = exports.SendNotificationRequest = exports.SendTestNotificationRequest = exports.GetUserNotificationPreferencesResponse = exports.GetUserNotificationPreferencesRequest = exports.SaveUserNotificationPreferencesRequest = exports.RemoveDeviceTokenRequest = exports.SaveDeviceTokenRequest = exports.AddBrowserTokenRequest = exports.UpdateUserPreferencesRequest = exports.CreateNotificationRequest = exports.NotificationChannel = exports.NotificationTarget = exports.UserPreferencesResponse = exports.GetUserNotificationPreferencesDto = exports.UserPreferencesDto = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
class UserPreferencesDto extends protobuf_1.Message {
|
|
@@ -521,6 +521,41 @@ class SendNotificationRequest_NotificationMessage extends protobuf_1.Message {
|
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
exports.SendNotificationRequest_NotificationMessage = SendNotificationRequest_NotificationMessage;
|
|
524
|
+
class SendChatMentionRequest extends protobuf_1.Message {
|
|
525
|
+
userIds = [];
|
|
526
|
+
senderUsername = "";
|
|
527
|
+
groupName = "";
|
|
528
|
+
groupSlug = "";
|
|
529
|
+
preview = "";
|
|
530
|
+
kind = "";
|
|
531
|
+
constructor(data) {
|
|
532
|
+
super();
|
|
533
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
534
|
+
}
|
|
535
|
+
static runtime = protobuf_1.proto3;
|
|
536
|
+
static typeName = "micro.v1.notification.SendChatMentionRequest";
|
|
537
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
538
|
+
{ no: 1, name: "user_ids", kind: "scalar", T: 9, repeated: true },
|
|
539
|
+
{ no: 2, name: "sender_username", kind: "scalar", T: 9 },
|
|
540
|
+
{ no: 3, name: "group_name", kind: "scalar", T: 9 },
|
|
541
|
+
{ no: 4, name: "group_slug", kind: "scalar", T: 9 },
|
|
542
|
+
{ no: 5, name: "preview", kind: "scalar", T: 9 },
|
|
543
|
+
{ no: 6, name: "kind", kind: "scalar", T: 9 },
|
|
544
|
+
]);
|
|
545
|
+
static fromBinary(bytes, options) {
|
|
546
|
+
return new SendChatMentionRequest().fromBinary(bytes, options);
|
|
547
|
+
}
|
|
548
|
+
static fromJson(jsonValue, options) {
|
|
549
|
+
return new SendChatMentionRequest().fromJson(jsonValue, options);
|
|
550
|
+
}
|
|
551
|
+
static fromJsonString(jsonString, options) {
|
|
552
|
+
return new SendChatMentionRequest().fromJsonString(jsonString, options);
|
|
553
|
+
}
|
|
554
|
+
static equals(a, b) {
|
|
555
|
+
return protobuf_1.proto3.util.equals(SendChatMentionRequest, a, b);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
exports.SendChatMentionRequest = SendChatMentionRequest;
|
|
524
559
|
class NotificationPaginationDto extends protobuf_1.Message {
|
|
525
560
|
id = "";
|
|
526
561
|
title = "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateRequest } from "../general_pb.js";
|
|
2
|
-
import { AddBrowserTokenRequest, CreateNotificationRequest, GetMobileNotificationsPaginationResponse, GetUserMobileNotificationPaginationResponse, GetUserMobileNotificationRequest, GetUserNotificationPreferencesRequest, GetUserNotificationPreferencesResponse, NotificationPaginationResponse, RemoveDeviceTokenRequest, SaveDeviceTokenRequest, SaveMobileNotificationRequest, SaveUserNotificationPreferencesRequest, SendNotificationRequest, SendTestNotificationRequest, UpdateUserPreferencesRequest, UserPreferencesResponse } from "./notification_messages_pb.js";
|
|
2
|
+
import { AddBrowserTokenRequest, CreateNotificationRequest, GetMobileNotificationsPaginationResponse, GetUserMobileNotificationPaginationResponse, GetUserMobileNotificationRequest, GetUserNotificationPreferencesRequest, GetUserNotificationPreferencesResponse, NotificationPaginationResponse, RemoveDeviceTokenRequest, SaveDeviceTokenRequest, SaveMobileNotificationRequest, SaveUserNotificationPreferencesRequest, SendChatMentionRequest, SendNotificationRequest, SendTestNotificationRequest, UpdateUserPreferencesRequest, UserPreferencesResponse } from "./notification_messages_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
4
|
import { SendContactMessageRequest, SendForgotPasswordRequest, SendUserVerificationRequest, SendWelcomeRequest } from "./mail_messages_pb.js";
|
|
5
5
|
export declare const PNotificationService: {
|
|
@@ -71,6 +71,12 @@ export declare const PNotificationService: {
|
|
|
71
71
|
readonly O: typeof EmptyResponse;
|
|
72
72
|
readonly kind: MethodKind.ServerStreaming;
|
|
73
73
|
};
|
|
74
|
+
readonly sendChatMention: {
|
|
75
|
+
readonly name: "SendChatMention";
|
|
76
|
+
readonly I: typeof SendChatMentionRequest;
|
|
77
|
+
readonly O: typeof EmptyResponse;
|
|
78
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
79
|
+
};
|
|
74
80
|
readonly getUserNotificationPreferences: {
|
|
75
81
|
readonly name: "GetUserNotificationPreferences";
|
|
76
82
|
readonly I: typeof GetUserNotificationPreferencesRequest;
|
|
@@ -74,6 +74,12 @@ exports.PNotificationService = {
|
|
|
74
74
|
O: general_pb_js_1.EmptyResponse,
|
|
75
75
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
76
76
|
},
|
|
77
|
+
sendChatMention: {
|
|
78
|
+
name: "SendChatMention",
|
|
79
|
+
I: notification_messages_pb_js_1.SendChatMentionRequest,
|
|
80
|
+
O: general_pb_js_1.EmptyResponse,
|
|
81
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
82
|
+
},
|
|
77
83
|
getUserNotificationPreferences: {
|
|
78
84
|
name: "GetUserNotificationPreferences",
|
|
79
85
|
I: notification_messages_pb_js_1.GetUserNotificationPreferencesRequest,
|
|
@@ -2,7 +2,7 @@ import type { Metadata } from "@grpc/grpc-js";
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateRequest } from "../general_nest";
|
|
4
4
|
import { SendContactMessageRequest, SendForgotPasswordRequest, SendUserVerificationRequest, SendWelcomeRequest } from "./mail_messages_nest";
|
|
5
|
-
import { AddBrowserTokenRequest, CreateNotificationRequest, GetMobileNotificationsPaginationResponse, GetUserMobileNotificationPaginationResponse, GetUserMobileNotificationRequest, GetUserNotificationPreferencesRequest, GetUserNotificationPreferencesResponse, NotificationPaginationResponse, RemoveDeviceTokenRequest, SaveDeviceTokenRequest, SaveMobileNotificationRequest, SaveUserNotificationPreferencesRequest, SendNotificationRequest, SendTestNotificationRequest, UpdateUserPreferencesRequest, UserPreferencesResponse } from "./notification_messages_nest";
|
|
5
|
+
import { AddBrowserTokenRequest, CreateNotificationRequest, GetMobileNotificationsPaginationResponse, GetUserMobileNotificationPaginationResponse, GetUserMobileNotificationRequest, GetUserNotificationPreferencesRequest, GetUserNotificationPreferencesResponse, NotificationPaginationResponse, RemoveDeviceTokenRequest, SaveDeviceTokenRequest, SaveMobileNotificationRequest, SaveUserNotificationPreferencesRequest, SendChatMentionRequest, SendNotificationRequest, SendTestNotificationRequest, UpdateUserPreferencesRequest, UserPreferencesResponse } from "./notification_messages_nest";
|
|
6
6
|
export declare const protobufPackage = "micro.v1.notification";
|
|
7
7
|
export declare const MICRO_V1_NOTIFICATION_PACKAGE_NAME = "micro.v1.notification";
|
|
8
8
|
export interface PNotificationServiceClient {
|
|
@@ -17,6 +17,7 @@ export interface PNotificationServiceClient {
|
|
|
17
17
|
saveUserNotificationPreferences(request: SaveUserNotificationPreferencesRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
18
18
|
sendTestNotification(request: SendTestNotificationRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
19
19
|
sendNotification(request: SendNotificationRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
20
|
+
sendChatMention(request: SendChatMentionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
20
21
|
getUserNotificationPreferences(request: GetUserNotificationPreferencesRequest, metadata?: Metadata): Observable<GetUserNotificationPreferencesResponse>;
|
|
21
22
|
saveMobileNotification(request: SaveMobileNotificationRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
22
23
|
getUserMobileNotification(request: GetUserMobileNotificationRequest, metadata?: Metadata): Observable<GetUserMobileNotificationPaginationResponse>;
|
|
@@ -34,6 +35,7 @@ export interface PNotificationServiceController {
|
|
|
34
35
|
saveUserNotificationPreferences(request: SaveUserNotificationPreferencesRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
35
36
|
sendTestNotification(request: SendTestNotificationRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
36
37
|
sendNotification(request: SendNotificationRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
38
|
+
sendChatMention(request: SendChatMentionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
37
39
|
getUserNotificationPreferences(request: GetUserNotificationPreferencesRequest, metadata?: Metadata): Observable<GetUserNotificationPreferencesResponse>;
|
|
38
40
|
saveMobileNotification(request: SaveMobileNotificationRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
39
41
|
getUserMobileNotification(request: GetUserMobileNotificationRequest, metadata?: Metadata): Observable<GetUserMobileNotificationPaginationResponse>;
|
package/package.json
CHANGED
|
@@ -23,6 +23,10 @@ message ChatGroupDto {
|
|
|
23
23
|
uint32 unread_count = 12;
|
|
24
24
|
string last_message_preview = 13;
|
|
25
25
|
string last_message_at = 14;
|
|
26
|
+
// Admin-only concerns, exposed so the mobile admin edit form can round-trip
|
|
27
|
+
// them through GroupUpsert without resetting to defaults.
|
|
28
|
+
int32 sort_order = 15;
|
|
29
|
+
bool is_active = 16;
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
message ChatGroupListResponse {
|
|
@@ -61,6 +65,15 @@ message ChatMessageDto {
|
|
|
61
65
|
bool is_pinned = 12;
|
|
62
66
|
string created_at = 13;
|
|
63
67
|
bool is_deleted = 14;
|
|
68
|
+
repeated ChatReactionCountDto reactions = 15;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Aggregated reaction chip for one emoji on one message.
|
|
72
|
+
message ChatReactionCountDto {
|
|
73
|
+
string emoji = 1;
|
|
74
|
+
uint32 count = 2;
|
|
75
|
+
// True when the requesting user set this reaction (per-viewer field).
|
|
76
|
+
bool reacted_by_me = 3;
|
|
64
77
|
}
|
|
65
78
|
|
|
66
79
|
message ChatReplyPreviewDto {
|
|
@@ -156,6 +169,28 @@ message ChatMemberDto {
|
|
|
156
169
|
string status = 5;
|
|
157
170
|
string joined_at = 6;
|
|
158
171
|
bool is_online = 7;
|
|
172
|
+
// Pending list only: this user re-applied after an earlier rejection.
|
|
173
|
+
bool reapplied = 8;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Admin user directory row: chat-wide view of one user.
|
|
177
|
+
message ChatUserAdminDto {
|
|
178
|
+
string user_id = 1;
|
|
179
|
+
string username = 2;
|
|
180
|
+
string avatar_id = 3;
|
|
181
|
+
string role = 4;
|
|
182
|
+
// Group NAMES the user is a member of.
|
|
183
|
+
repeated string groups = 5;
|
|
184
|
+
// Group names where the user holds a moderator override.
|
|
185
|
+
repeated string moderator_of = 6;
|
|
186
|
+
bool has_active_ban = 7;
|
|
187
|
+
bool has_active_mute = 8;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
message ChatUserAdminListResponse {
|
|
191
|
+
ResponseStatus status = 1;
|
|
192
|
+
PaginationMetaResult pagination = 2;
|
|
193
|
+
repeated ChatUserAdminDto data = 3;
|
|
159
194
|
}
|
|
160
195
|
|
|
161
196
|
message ChatMemberListResponse {
|
|
@@ -23,6 +23,12 @@ service PChatService {
|
|
|
23
23
|
|
|
24
24
|
service PChatModerationService {
|
|
25
25
|
rpc UpsertGroup(GroupUpsertRequest) returns(stream ChatGroupSingleResponse) {}
|
|
26
|
+
// Soft delete (deleted_at + inactive); history purges itself within 3 days.
|
|
27
|
+
rpc DeleteGroup(GroupBySlugRequest) returns(stream EmptyResponse) {}
|
|
28
|
+
// All non-deleted groups, inactive included (admin group management).
|
|
29
|
+
rpc AdminListGroups(EmptyRequest) returns(stream ChatGroupListResponse) {}
|
|
30
|
+
// Chat-wide user directory (users who joined at least one group).
|
|
31
|
+
rpc AdminListUsers(PaginateRequest) returns(stream ChatUserAdminListResponse) {}
|
|
26
32
|
|
|
27
33
|
rpc ApplySanction(SanctionRequest) returns(stream EmptyResponse) {}
|
|
28
34
|
rpc RevokeSanction(RevokeSanctionRequest) returns(stream EmptyResponse) {}
|
|
@@ -133,6 +133,17 @@ message SendNotificationRequest {
|
|
|
133
133
|
NotificationMessage notificationMessage = 3;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
// Targeted push for chat mentions (localized body built micro-side).
|
|
137
|
+
message SendChatMentionRequest {
|
|
138
|
+
repeated string user_ids = 1;
|
|
139
|
+
string sender_username = 2;
|
|
140
|
+
string group_name = 3;
|
|
141
|
+
string group_slug = 4;
|
|
142
|
+
string preview = 5;
|
|
143
|
+
// "mention" (default) or "message" (all-messages subscription push).
|
|
144
|
+
string kind = 6;
|
|
145
|
+
}
|
|
146
|
+
|
|
136
147
|
message NotificationPaginationDto {
|
|
137
148
|
string id = 1;
|
|
138
149
|
string title = 2;
|
|
@@ -18,6 +18,7 @@ service PNotificationService {
|
|
|
18
18
|
rpc SaveUserNotificationPreferences(SaveUserNotificationPreferencesRequest) returns(stream EmptyResponse) {}
|
|
19
19
|
rpc SendTestNotification(SendTestNotificationRequest) returns(stream EmptyResponse) {}
|
|
20
20
|
rpc SendNotification(SendNotificationRequest) returns(stream EmptyResponse) {}
|
|
21
|
+
rpc SendChatMention(SendChatMentionRequest) returns(stream EmptyResponse) {}
|
|
21
22
|
rpc GetUserNotificationPreferences(GetUserNotificationPreferencesRequest) returns(stream GetUserNotificationPreferencesResponse) {}
|
|
22
23
|
rpc SaveMobileNotification(SaveMobileNotificationRequest) returns(stream EmptyResponse) {}
|
|
23
24
|
rpc GetUserMobileNotification(GetUserMobileNotificationRequest) returns(stream GetUserMobileNotificationPaginationResponse) {}
|