jr-common-micro 1.1.73 → 1.1.75
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 +7 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +15 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +34 -1
- package/dist/proto/micro/v1/chat/services_connect.d.ts +8 -2
- package/dist/proto/micro/v1/chat/services_connect.js +7 -1
- package/dist/proto/micro/v1/chat/services_nest.d.ts +5 -3
- package/dist/proto/micro/v1/chat/services_nest.js +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_nest.d.ts +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.d.ts +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.js +2 -0
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +15 -0
- package/proto/micro/v1/chat/services.proto +4 -1
- package/proto/micro/v1/notification/notification_messages.proto +3 -0
|
@@ -205,6 +205,12 @@ export interface MemberActionRequest {
|
|
|
205
205
|
export interface PendingMembersRequest {
|
|
206
206
|
group_slug: string;
|
|
207
207
|
}
|
|
208
|
+
export interface ChatMemberListRequest {
|
|
209
|
+
slug: string;
|
|
210
|
+
cursor: string;
|
|
211
|
+
limit: number;
|
|
212
|
+
query: string;
|
|
213
|
+
}
|
|
208
214
|
export interface ChatMemberDto {
|
|
209
215
|
user_id: string;
|
|
210
216
|
username: string;
|
|
@@ -245,6 +251,7 @@ export interface ChatMemberListResponse {
|
|
|
245
251
|
status: ResponseStatus | undefined;
|
|
246
252
|
pagination: PaginationMetaResult | undefined;
|
|
247
253
|
data: ChatMemberDto[];
|
|
254
|
+
next_cursor: string;
|
|
248
255
|
}
|
|
249
256
|
export interface SanctionDto {
|
|
250
257
|
id: string;
|
|
@@ -454,6 +454,20 @@ export declare class PendingMembersRequest extends Message<PendingMembersRequest
|
|
|
454
454
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PendingMembersRequest;
|
|
455
455
|
static equals(a: PendingMembersRequest | PlainMessage<PendingMembersRequest> | undefined, b: PendingMembersRequest | PlainMessage<PendingMembersRequest> | undefined): boolean;
|
|
456
456
|
}
|
|
457
|
+
export declare class ChatMemberListRequest extends Message<ChatMemberListRequest> {
|
|
458
|
+
slug: string;
|
|
459
|
+
cursor: string;
|
|
460
|
+
limit: number;
|
|
461
|
+
query: string;
|
|
462
|
+
constructor(data?: PartialMessage<ChatMemberListRequest>);
|
|
463
|
+
static readonly runtime: typeof proto3;
|
|
464
|
+
static readonly typeName = "micro.v1.chat.ChatMemberListRequest";
|
|
465
|
+
static readonly fields: FieldList;
|
|
466
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMemberListRequest;
|
|
467
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMemberListRequest;
|
|
468
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMemberListRequest;
|
|
469
|
+
static equals(a: ChatMemberListRequest | PlainMessage<ChatMemberListRequest> | undefined, b: ChatMemberListRequest | PlainMessage<ChatMemberListRequest> | undefined): boolean;
|
|
470
|
+
}
|
|
457
471
|
export declare class ChatMemberDto extends Message<ChatMemberDto> {
|
|
458
472
|
userId: string;
|
|
459
473
|
username: string;
|
|
@@ -534,6 +548,7 @@ export declare class ChatMemberListResponse extends Message<ChatMemberListRespon
|
|
|
534
548
|
status?: ResponseStatus;
|
|
535
549
|
pagination?: PaginationMetaResult;
|
|
536
550
|
data: ChatMemberDto[];
|
|
551
|
+
nextCursor: string;
|
|
537
552
|
constructor(data?: PartialMessage<ChatMemberListResponse>);
|
|
538
553
|
static readonly runtime: typeof proto3;
|
|
539
554
|
static readonly typeName = "micro.v1.chat.ChatMemberListResponse";
|
|
@@ -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.ChatUserAdminListResponse = exports.ChatUserAdminDto = exports.GroupPhotoResponse = exports.GroupPhotoSetRequest = 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.ChatPollDto = exports.ChatPollOptionDto = exports.ChatMediaGetResponse = exports.ChatMediaGetRequest = exports.ChatMediaUploadResponse = exports.ChatMediaUploadRequest = exports.ChatMediaDto = exports.ChatLinkPreviewDto = exports.ChatTickerCardDto = 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.GroupPhotoResponse = exports.GroupPhotoSetRequest = exports.ChatMemberDto = exports.ChatMemberListRequest = 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.ChatPollDto = exports.ChatPollOptionDto = exports.ChatMediaGetResponse = exports.ChatMediaGetRequest = exports.ChatMediaUploadResponse = exports.ChatMediaUploadRequest = exports.ChatMediaDto = exports.ChatLinkPreviewDto = exports.ChatTickerCardDto = 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 {
|
|
@@ -1002,6 +1002,37 @@ class PendingMembersRequest extends protobuf_1.Message {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
exports.PendingMembersRequest = PendingMembersRequest;
|
|
1005
|
+
class ChatMemberListRequest extends protobuf_1.Message {
|
|
1006
|
+
slug = "";
|
|
1007
|
+
cursor = "";
|
|
1008
|
+
limit = 0;
|
|
1009
|
+
query = "";
|
|
1010
|
+
constructor(data) {
|
|
1011
|
+
super();
|
|
1012
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1013
|
+
}
|
|
1014
|
+
static runtime = protobuf_1.proto3;
|
|
1015
|
+
static typeName = "micro.v1.chat.ChatMemberListRequest";
|
|
1016
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1017
|
+
{ no: 1, name: "slug", kind: "scalar", T: 9 },
|
|
1018
|
+
{ no: 2, name: "cursor", kind: "scalar", T: 9 },
|
|
1019
|
+
{ no: 3, name: "limit", kind: "scalar", T: 13 },
|
|
1020
|
+
{ no: 4, name: "query", kind: "scalar", T: 9 },
|
|
1021
|
+
]);
|
|
1022
|
+
static fromBinary(bytes, options) {
|
|
1023
|
+
return new ChatMemberListRequest().fromBinary(bytes, options);
|
|
1024
|
+
}
|
|
1025
|
+
static fromJson(jsonValue, options) {
|
|
1026
|
+
return new ChatMemberListRequest().fromJson(jsonValue, options);
|
|
1027
|
+
}
|
|
1028
|
+
static fromJsonString(jsonString, options) {
|
|
1029
|
+
return new ChatMemberListRequest().fromJsonString(jsonString, options);
|
|
1030
|
+
}
|
|
1031
|
+
static equals(a, b) {
|
|
1032
|
+
return protobuf_1.proto3.util.equals(ChatMemberListRequest, a, b);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
exports.ChatMemberListRequest = ChatMemberListRequest;
|
|
1005
1036
|
class ChatMemberDto extends protobuf_1.Message {
|
|
1006
1037
|
userId = "";
|
|
1007
1038
|
username = "";
|
|
@@ -1173,6 +1204,7 @@ class ChatMemberListResponse extends protobuf_1.Message {
|
|
|
1173
1204
|
status;
|
|
1174
1205
|
pagination;
|
|
1175
1206
|
data = [];
|
|
1207
|
+
nextCursor = "";
|
|
1176
1208
|
constructor(data) {
|
|
1177
1209
|
super();
|
|
1178
1210
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1183,6 +1215,7 @@ class ChatMemberListResponse extends protobuf_1.Message {
|
|
|
1183
1215
|
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1184
1216
|
{ no: 2, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
|
|
1185
1217
|
{ no: 3, name: "data", kind: "message", T: ChatMemberDto, repeated: true },
|
|
1218
|
+
{ no: 4, name: "next_cursor", kind: "scalar", T: 9 },
|
|
1186
1219
|
]);
|
|
1187
1220
|
static fromBinary(bytes, options) {
|
|
1188
1221
|
return new ChatMemberListResponse().fromBinary(bytes, options);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateRequest } from "../general_pb.js";
|
|
2
|
-
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupPhotoResponse, GroupPhotoSetRequest, 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, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupPhotoResponse, GroupPhotoSetRequest, 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";
|
|
@@ -42,7 +42,7 @@ export declare const PChatService: {
|
|
|
42
42
|
};
|
|
43
43
|
readonly listMembers: {
|
|
44
44
|
readonly name: "ListMembers";
|
|
45
|
-
readonly I: typeof
|
|
45
|
+
readonly I: typeof ChatMemberListRequest;
|
|
46
46
|
readonly O: typeof ChatMemberListResponse;
|
|
47
47
|
readonly kind: MethodKind.ServerStreaming;
|
|
48
48
|
};
|
|
@@ -88,6 +88,12 @@ export declare const PChatService: {
|
|
|
88
88
|
readonly O: typeof BlockedUsersResponse;
|
|
89
89
|
readonly kind: MethodKind.ServerStreaming;
|
|
90
90
|
};
|
|
91
|
+
readonly removeUserData: {
|
|
92
|
+
readonly name: "RemoveUserData";
|
|
93
|
+
readonly I: typeof ByIdRequest;
|
|
94
|
+
readonly O: typeof EmptyResponse;
|
|
95
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
96
|
+
};
|
|
91
97
|
};
|
|
92
98
|
};
|
|
93
99
|
export declare const PChatModerationService: {
|
|
@@ -45,7 +45,7 @@ exports.PChatService = {
|
|
|
45
45
|
},
|
|
46
46
|
listMembers: {
|
|
47
47
|
name: "ListMembers",
|
|
48
|
-
I: chat_messages_pb_js_1.
|
|
48
|
+
I: chat_messages_pb_js_1.ChatMemberListRequest,
|
|
49
49
|
O: chat_messages_pb_js_1.ChatMemberListResponse,
|
|
50
50
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
51
51
|
},
|
|
@@ -91,6 +91,12 @@ exports.PChatService = {
|
|
|
91
91
|
O: chat_messages_pb_js_1.BlockedUsersResponse,
|
|
92
92
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
93
93
|
},
|
|
94
|
+
removeUserData: {
|
|
95
|
+
name: "RemoveUserData",
|
|
96
|
+
I: general_pb_js_1.ByIdRequest,
|
|
97
|
+
O: general_pb_js_1.EmptyResponse,
|
|
98
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
99
|
+
},
|
|
94
100
|
}
|
|
95
101
|
};
|
|
96
102
|
exports.PChatModerationService = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "@grpc/grpc-js";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateRequest } from "../general_nest";
|
|
4
|
-
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupPhotoResponse, GroupPhotoSetRequest, 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, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupPhotoResponse, GroupPhotoSetRequest, 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 {
|
|
@@ -11,7 +11,7 @@ export interface PChatServiceClient {
|
|
|
11
11
|
leaveGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
12
12
|
messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
|
|
13
13
|
pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
|
|
14
|
-
listMembers(request:
|
|
14
|
+
listMembers(request: ChatMemberListRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
|
|
15
15
|
getGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<GroupPhotoResponse>;
|
|
16
16
|
uploadChatMedia(request: ChatMediaUploadRequest, metadata?: Metadata): Observable<ChatMediaUploadResponse>;
|
|
17
17
|
getChatMedia(request: ChatMediaGetRequest, metadata?: Metadata): Observable<ChatMediaGetResponse>;
|
|
@@ -19,6 +19,7 @@ export interface PChatServiceClient {
|
|
|
19
19
|
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
20
20
|
unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
21
21
|
blockedUsers(request: EmptyRequest, metadata?: Metadata): Observable<BlockedUsersResponse>;
|
|
22
|
+
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
22
23
|
}
|
|
23
24
|
export interface PChatServiceController {
|
|
24
25
|
listGroups(request: EmptyRequest, metadata?: Metadata): Observable<ChatGroupListResponse>;
|
|
@@ -27,7 +28,7 @@ export interface PChatServiceController {
|
|
|
27
28
|
leaveGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
28
29
|
messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
|
|
29
30
|
pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
|
|
30
|
-
listMembers(request:
|
|
31
|
+
listMembers(request: ChatMemberListRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
|
|
31
32
|
getGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<GroupPhotoResponse>;
|
|
32
33
|
uploadChatMedia(request: ChatMediaUploadRequest, metadata?: Metadata): Observable<ChatMediaUploadResponse>;
|
|
33
34
|
getChatMedia(request: ChatMediaGetRequest, metadata?: Metadata): Observable<ChatMediaGetResponse>;
|
|
@@ -35,6 +36,7 @@ export interface PChatServiceController {
|
|
|
35
36
|
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
36
37
|
unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
37
38
|
blockedUsers(request: EmptyRequest, metadata?: Metadata): Observable<BlockedUsersResponse>;
|
|
39
|
+
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
38
40
|
}
|
|
39
41
|
export declare function PChatServiceControllerMethods(): (constructor: Function) => void;
|
|
40
42
|
export declare const P_CHAT_SERVICE_NAME = "PChatService";
|
|
@@ -243,6 +243,7 @@ export declare class SendChatMentionRequest extends Message<SendChatMentionReque
|
|
|
243
243
|
groupSlug: string;
|
|
244
244
|
preview: string;
|
|
245
245
|
kind: string;
|
|
246
|
+
senderIsGroup: boolean;
|
|
246
247
|
constructor(data?: PartialMessage<SendChatMentionRequest>);
|
|
247
248
|
static readonly runtime: typeof proto3;
|
|
248
249
|
static readonly typeName = "micro.v1.notification.SendChatMentionRequest";
|
|
@@ -528,6 +528,7 @@ class SendChatMentionRequest extends protobuf_1.Message {
|
|
|
528
528
|
groupSlug = "";
|
|
529
529
|
preview = "";
|
|
530
530
|
kind = "";
|
|
531
|
+
senderIsGroup = false;
|
|
531
532
|
constructor(data) {
|
|
532
533
|
super();
|
|
533
534
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -541,6 +542,7 @@ class SendChatMentionRequest extends protobuf_1.Message {
|
|
|
541
542
|
{ no: 4, name: "group_slug", kind: "scalar", T: 9 },
|
|
542
543
|
{ no: 5, name: "preview", kind: "scalar", T: 9 },
|
|
543
544
|
{ no: 6, name: "kind", kind: "scalar", T: 9 },
|
|
545
|
+
{ no: 7, name: "sender_is_group", kind: "scalar", T: 8 },
|
|
544
546
|
]);
|
|
545
547
|
static fromBinary(bytes, options) {
|
|
546
548
|
return new SendChatMentionRequest().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -291,6 +291,19 @@ message MemberActionRequest {
|
|
|
291
291
|
|
|
292
292
|
message PendingMembersRequest { string group_slug = 1; }
|
|
293
293
|
|
|
294
|
+
// Member list page. Wire-compatible with GroupBySlugRequest (slug = 1) so an
|
|
295
|
+
// older caller still gets the first page.
|
|
296
|
+
message ChatMemberListRequest {
|
|
297
|
+
string slug = 1;
|
|
298
|
+
// Last member row id of the previous page; empty for the first page.
|
|
299
|
+
string cursor = 2;
|
|
300
|
+
// Page size, capped by the micro (default 50).
|
|
301
|
+
uint32 limit = 3;
|
|
302
|
+
// Username filter (prefix first, then contains). A search returns one
|
|
303
|
+
// capped list and no cursor.
|
|
304
|
+
string query = 4;
|
|
305
|
+
}
|
|
306
|
+
|
|
294
307
|
message ChatMemberDto {
|
|
295
308
|
string user_id = 1;
|
|
296
309
|
string username = 2;
|
|
@@ -342,6 +355,8 @@ message ChatMemberListResponse {
|
|
|
342
355
|
ResponseStatus status = 1;
|
|
343
356
|
PaginationMetaResult pagination = 2;
|
|
344
357
|
repeated ChatMemberDto data = 3;
|
|
358
|
+
// Empty when this was the last page (or a search).
|
|
359
|
+
string next_cursor = 4;
|
|
345
360
|
}
|
|
346
361
|
|
|
347
362
|
message SanctionDto {
|
|
@@ -13,7 +13,7 @@ service PChatService {
|
|
|
13
13
|
|
|
14
14
|
rpc MessageHistory(MessageHistoryRequest) returns(stream MessageHistoryResponse) {}
|
|
15
15
|
rpc PinnedMessages(PinnedMessagesRequest) returns(stream PinnedMessagesResponse) {}
|
|
16
|
-
rpc ListMembers(
|
|
16
|
+
rpc ListMembers(ChatMemberListRequest) returns(stream ChatMemberListResponse) {}
|
|
17
17
|
rpc GetGroupPhoto(ByIdRequest) returns(stream GroupPhotoResponse) {}
|
|
18
18
|
// Authed upload (staging row); the send then references media_id.
|
|
19
19
|
rpc UploadChatMedia(ChatMediaUploadRequest) returns(stream ChatMediaUploadResponse) {}
|
|
@@ -24,6 +24,9 @@ service PChatService {
|
|
|
24
24
|
rpc BlockUser(BlockUserRequest) returns(stream EmptyResponse) {}
|
|
25
25
|
rpc UnblockUser(BlockUserRequest) returns(stream EmptyResponse) {}
|
|
26
26
|
rpc BlockedUsers(EmptyRequest) returns(stream BlockedUsersResponse) {}
|
|
27
|
+
// Account deletion (called by user-micro's fan-out): erases everything
|
|
28
|
+
// the account wrote or did in chat. id = user id.
|
|
29
|
+
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
service PChatModerationService {
|
|
@@ -142,6 +142,9 @@ message SendChatMentionRequest {
|
|
|
142
142
|
string preview = 5;
|
|
143
143
|
// "mention" (default) or "message" (all-messages subscription push).
|
|
144
144
|
string kind = 6;
|
|
145
|
+
// sender_username is the GROUP's name (anonymous staff post): the push
|
|
146
|
+
// text must not put an "@" in front of it.
|
|
147
|
+
bool sender_is_group = 7;
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
message NotificationPaginationDto {
|