jr-common-micro 1.1.51 → 1.1.52

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.
@@ -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>;
@@ -37,6 +37,9 @@ function PChatModerationServiceControllerMethods() {
37
37
  return function (constructor) {
38
38
  const grpcMethods = [
39
39
  "upsertGroup",
40
+ "deleteGroup",
41
+ "adminListGroups",
42
+ "adminListUsers",
40
43
  "applySanction",
41
44
  "revokeSanction",
42
45
  "listSanctions",
@@ -107,6 +107,13 @@ 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
+ }
110
117
  export interface NotificationPaginationDto {
111
118
  id: string;
112
119
  title: string;
@@ -236,6 +236,21 @@ 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
+ constructor(data?: PartialMessage<SendChatMentionRequest>);
246
+ static readonly runtime: typeof proto3;
247
+ static readonly typeName = "micro.v1.notification.SendChatMentionRequest";
248
+ static readonly fields: FieldList;
249
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendChatMentionRequest;
250
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendChatMentionRequest;
251
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendChatMentionRequest;
252
+ static equals(a: SendChatMentionRequest | PlainMessage<SendChatMentionRequest> | undefined, b: SendChatMentionRequest | PlainMessage<SendChatMentionRequest> | undefined): boolean;
253
+ }
239
254
  export declare class NotificationPaginationDto extends Message<NotificationPaginationDto> {
240
255
  id: string;
241
256
  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,39 @@ 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
+ constructor(data) {
531
+ super();
532
+ protobuf_1.proto3.util.initPartial(data, this);
533
+ }
534
+ static runtime = protobuf_1.proto3;
535
+ static typeName = "micro.v1.notification.SendChatMentionRequest";
536
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
537
+ { no: 1, name: "user_ids", kind: "scalar", T: 9, repeated: true },
538
+ { no: 2, name: "sender_username", kind: "scalar", T: 9 },
539
+ { no: 3, name: "group_name", kind: "scalar", T: 9 },
540
+ { no: 4, name: "group_slug", kind: "scalar", T: 9 },
541
+ { no: 5, name: "preview", kind: "scalar", T: 9 },
542
+ ]);
543
+ static fromBinary(bytes, options) {
544
+ return new SendChatMentionRequest().fromBinary(bytes, options);
545
+ }
546
+ static fromJson(jsonValue, options) {
547
+ return new SendChatMentionRequest().fromJson(jsonValue, options);
548
+ }
549
+ static fromJsonString(jsonString, options) {
550
+ return new SendChatMentionRequest().fromJsonString(jsonString, options);
551
+ }
552
+ static equals(a, b) {
553
+ return protobuf_1.proto3.util.equals(SendChatMentionRequest, a, b);
554
+ }
555
+ }
556
+ exports.SendChatMentionRequest = SendChatMentionRequest;
524
557
  class NotificationPaginationDto extends protobuf_1.Message {
525
558
  id = "";
526
559
  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>;
@@ -21,6 +21,7 @@ function PNotificationServiceControllerMethods() {
21
21
  "saveUserNotificationPreferences",
22
22
  "sendTestNotification",
23
23
  "sendNotification",
24
+ "sendChatMention",
24
25
  "getUserNotificationPreferences",
25
26
  "saveMobileNotification",
26
27
  "getUserMobileNotification",